RISC-V: bge[u] should get higher priority than ble[u].
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
461464f2
SM
12018-09-17 Simon Marchi <simon.marchi@ericsson.com>
2
3 * compile/compile-cplus-types.c
4 (compile_cplus_instance::enter_scope): Don't use new_scope after
5 std::move.
6
e6cd1dc1
TT
72018-09-17 Tom Tromey <tom@tromey.com>
8
9 * common/pathstuff.c (get_standard_cache_dir): Use
10 ~/Library/Caches on macOS.
11 * common/pathstuff.h (get_standard_cache_dir): Update comment.
12
8588b356
SM
132018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
14
15 PR python/23669
16 * breakpoint.c (commands_cmd_element): New.
17 (_initialize_breakpoint): Assign commands_cmd_element.
18 * breakpoint.h (commands_cmd_element): New.
19 * cli/cli-script.c (while_cmd_element, if_command,
20 define_cmd_element): New.
21 (command_name_equals): Remove.
22 (process_next_line): Compare commands by pointer, not by name.
23 (_initialize_cli_script): Assign the various cmd_list_element
24 variables.
25 * compile/compile.c (compile_cmd_element): New.
26 (_initialize_compile): Assign compile_cmd_element.
27 * compile/compile.h (compile_cmd_element): New.
28 * guile/guile.c (guile_cmd_element): New.
29 (install_gdb_commands): Assign guile_cmd_element.
30 * guile/guile.h (guile_cmd_element): New.
31 * python/python.c (python_cmd_element): New.
32 (_initialize_python): Assign python_cmd_element.
33 * python/python.h (python_cmd_element): New.
34 * tracepoint.c (while_stepping_cmd_element): New.
35 (_initialize_tracepoint): Assign while_stepping_cmd_element.
36 * tracepoint.h (while_stepping_cmd_element): New.
37
cb524840
TT
382018-09-17 Tom Tromey <tom@tromey.com>
39
40 * infrun.c (save_infcall_suspend_state): Return
41 infcall_suspend_state_up.
42 (save_infcall_control_state): Return infcall_control_state_up.
43 * inferior.h (save_infcall_suspend_state)
44 (save_infcall_control_state): Declare later. Return unique
45 pointers.
46
2d844eaf
TT
472018-09-17 Tom Tromey <tom@tromey.com>
48
49 * infrun.c (struct stop_context): Declare constructor,
50 destructor, "changed" method.
51 (stop_context::stop_context): Rename from save_stop_context.
52 (stop_context::~stop_context): Rename from
53 release_stop_context_cleanup.
54 (normal_stop): Update.
55 (stop_context::changed): Rename from stop_context_changed. Return
56 bool.
57
c7c4d3fa
TT
582018-09-17 Tom Tromey <tom@tromey.com>
59
60 * inferior.h (struct infcall_suspend_state_deleter): New.
61 (infcall_suspend_state_up): New typedef.
62 (struct infcall_control_state_deleter): New.
63 (infcall_control_state_up): New typedef.
64 (make_cleanup_restore_infcall_suspend_state)
65 (make_cleanup_restore_infcall_control_state): Don't declare.
66 * infcall.c (call_function_by_hand_dummy): Update.
67 * infrun.c (do_restore_infcall_suspend_state_cleanup)
68 (make_cleanup_restore_infcall_suspend_state): Remove.
69 (do_restore_infcall_control_state_cleanup)
70 (make_cleanup_restore_infcall_control_state): Remove.
71
ee841dd8
TT
722018-09-17 Tom Tromey <tom@tromey.com>
73
74 * gdbthread.h (struct thread_control_state): Add initializer.
75 (class thread_info) <control>: Remove initializer.
76 * inferior.h (struct inferior_control_state): Add initializer.
77 (class inferior) <control>: Remove initializer.
78 (exit_inferior_1): Update.
79 * infrun.c (struct infcall_control_state): Add constructors.
80 (save_infcall_control_state): Use new.
81 (restore_infcall_control_state, discard_infcall_control_state):
82 Use delete.
83
117f580a
TT
842018-09-17 Tom Tromey <tom@tromey.com>
85
86 * infrun.c (struct infcall_suspend_state) <registers>: Now a
87 unique_ptr.
88 <siginfo_data>: Now a unique_xmalloc_ptr.
89 (save_infcall_suspend_state, restore_infcall_suspend_state)
90 (discard_infcall_suspend_state)
91 (get_infcall_suspend_state_regcache): Update.
92
dd848631
TT
932018-09-17 Tom Tromey <tom@tromey.com>
94
95 * gdbthread.h (struct thread_suspend_state): Add initializers.
96 (class thread_info) <suspend>: Remove initializer.
97 * infrun.c (struct infcall_suspend_state): Add initializers.
98 (save_infcall_suspend_state): Use new.
99 (discard_infcall_suspend_state): Use delete.
100
1a338907
TT
1012018-09-16 Tom Tromey <tom@tromey.com>
102
103 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
104 Remove.
105 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
106 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
107 (py_varobj_iter_new): Likewise.
108 (py_varobj_get_iterator): Use gdbpy_ref.
109
4a137fec
TT
1102018-09-16 Tom Tromey <tom@tromey.com>
111
112 * python/py-threadevent.c (py_get_event_thread): Simplify.
113 * python/py-inferior.c (infpy_thread_from_thread_handle):
114 Return immediately after calling thread_to_thread_object. Use
115 Py_RETURN_NONE.
116 (thread_to_thread_object): Set the exception on a NULL return.
117
8ff03f0b
SM
1182018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
119
120 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
121
94c8b725
TT
1222018-09-16 Tom Tromey <tom@tromey.com>
123
124 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
125 Remove.
126
db1337cc
TT
1272018-09-16 Tom Tromey <tom@tromey.com>
128
129 * python/python-internal.h (thread_to_thread_object): Change
130 return type.
131 * python/py-inferior.c (thread_to_thread_object): Return a new
132 reference.
133 (infpy_thread_from_thread_handle): Update.
134 * python/py-infthread.c (gdbpy_selected_thread): Update.
135 * python/py-stopevent.c (create_stop_event_object): Update.
136 * python/py-threadevent.c (py_get_event_thread): Return a new
137 reference.
138 (py_get_event_thread): Update.
139 * python/py-event.h (py_get_event_thread): Change return type.
140 * python/py-continueevent.c (create_continue_event_object):
141 Update.
142
0a9db5ad
TT
1432018-09-16 Tom Tromey <tom@tromey.com>
144
145 * python/py-progspace.c (pspy_get_objfiles): Update.
146 * python/python-internal.h (objfile_to_objfile_object): Change
147 return type.
148 * python/py-newobjfileevent.c (create_new_objfile_event_object):
149 Update.
150 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
151 Update.
152 * python/python.c (gdbpy_get_current_objfile): Update.
153 (gdbpy_objfiles): Update.
154 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
155 Update.
156 (objfile_to_objfile_object): Return a new reference.
157 * python/py-symtab.c (stpy_get_objfile): Update.
158 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
159 Update.
160
3c7aa307
TT
1612018-09-16 Tom Tromey <tom@tromey.com>
162
163 * python/py-inferior.c (infpy_get_progspace): Update.
164 * python/python-internal.h (pspace_to_pspace_object): Change
165 return type.
166 * python/py-newobjfileevent.c
167 (create_clear_objfiles_event_object): Update.
168 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
169 Update.
170 * python/python.c (gdbpy_get_current_progspace): Update.
171 (gdbpy_progspaces): Update.
172 * python/py-progspace.c (pspace_to_pspace_object): Return a new
173 reference.
174 * python/py-objfile.c (objfpy_get_progspace): Update.
175 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
176 Update.
177
8743a9cd
TT
1782018-09-16 Tom Tromey <tom@tromey.com>
179
180 * python/lib/gdb/__init__.py (current_progspace, objfiles)
181 (solib_name, block_for_pc, find_pc_line): New functions.
182 (execute_unwinders): Update.
183 * python/py-block.c (gdbpy_block_for_pc): Remove.
184 * python/py-inferior.c (infpy_get_progspace): New function.
185 (inferior_object_getset) <progspace>: Add.
186 * python/py-progspace.c (pspy_objfiles): Rewrite.
187 (pspy_solib_name, pspy_block_for_pc)
188 (pspy_find_pc_line, pspy_is_valid): New functions.
189 (progspace_object_methods): Add entries for solib_name,
190 block_for_pc, find_pc_line, is_valid.
191 * python/python-internal.h (gdbpy_block_for_pc)
192 (build_objfiles_list): Don't declare.
193 * python/python.c: Don't include solib.h.
194 (gdbpy_solib_name, gdbpy_find_pc_line)
195 (gdbpy_get_current_progspace, build_objfiles_list)
196 (gdbpy_objfiles): Remove.
197 (GdbMethods) <current_progspace, objfiles, block_for_pc,
198 solib_name, find_pc_line>: Remove entries.
199
65e65158
TT
2002018-09-16 Tom Tromey <tom@tromey.com>
201
202 * top.c (new_ui_command): Use GNU style for metasyntactic
203 variables.
204 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
205 variables.
206 * maint.c (maintenance_translate_address): Remove "<>" around
207 text.
208 * interps.c (interpreter_exec_cmd): Use GNU style for
209 metasyntactic variables.
210 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
211 metasyntactic variables.
212 * tracepoint.c (tfind_range_command): Use GNU style for
213 metasyntactic variables.
214 (tfind_outside_command): Likewise.
215 (_initialize_tracepoint): Likewise.
216 * remote.c (extended_remote_target::create_inferior): Use GNU
217 style for metasyntactic variables.
218 * sparc64-tdep.c (adi_examine_command): Use GNU style for
219 metasyntactic variables.
220 (adi_assign_command): Likewise.
221
f4bab6ff
TT
2222018-09-16 Tom Tromey <tom@tromey.com>
223
224 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
225 metasyntactic variables. Print message if no disassembler options
226 are available.
227
cbaaa0ca
TT
2282018-09-15 Tom Tromey <tom@tromey.com>
229
230 * infcmd.c (get_inferior_args): Return const char *.
231 * inferior.h (get_inferior_args): Return type now const.
232 * linux-tdep.c (linux_fill_prpsinfo): Update.
233 * procfs.c (procfs_target::make_corefile_notes): Update.
234
a3a6aef4
TT
2352018-09-07 Tom Tromey <tom@tromey.com>
236
237 * python/python.c (execute_gdb_command): Call bpstat_do_actions
238 inside the TRY.
239
f70e088f
SL
2402018-09-14 Sandra Loosemore <sandra@codesourcery.com>
241
242 * nios2-tdep.c (nios2_type_align): New.
243 (nios2_gdb_arch_init): Install type_align hook.
244
2fabdf33
AB
2452018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
246
247 * eval.c (fake_method::fake_method): Call xzalloc directly for a
248 type that is neither object file owned, nor gdbarch owned.
249 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
250 gdbarch is non-NULL.
251 (alloc_type_instance): Allocate non-objfile owned types on the
252 gdbarch obstack.
253 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
254 using TYPE_ALLOC to ensure memory is allocated on the correct
255 obstack.
256 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
257 obstack, or the gdbarch obstack.
258 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
259
b4b08fa2
TT
2602018-09-14 Tom Tromey <tom@tromey.com>
261
262 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
263 block.
264
87b240d4
TT
2652018-09-14 Tom Tromey <tom@tromey.com>
266
267 * nat/fork-inferior.c (get_startup_shell): Remove "static".
268
7d221512
TT
2692018-09-13 Tom Tromey <tom@tromey.com>
270
271 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
272 static.
273
97e67fc6
TT
2742018-09-13 Tom Tromey <tom@tromey.com>
275
276 * exec.c (try_open_exec_file): Use std::string.
277
803c08d0
TT
2782018-09-13 Tom Tromey <tom@tromey.com>
279
280 * utils.h (gdb_bfd_errmsg): Return std::string.
281 * exec.c (exec_file_attach): Update.
282 * compile/compile-object-load.c (compile_object_load): Update.
283 * utils.c (gdb_bfd_errmsg): Return std::string.
284
5b4cbbe3
TT
2852018-09-13 Tom Tromey <tom@tromey.com>
286
287 * procfs.c (struct procinfo_deleter): New.
288 (procinfo_up): New typedef.
289 (do_destroy_procinfo_cleanup): Remove.
290 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
291
db68fbe2
TT
2922018-09-13 Tom Tromey <tom@tromey.com>
293
294 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
295
0ae1a321
SM
2962018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2972018-09-13 Tom Tromey <tom@tromey.com>
298
299 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
300 (pspy_get_objfiles): New function.
301 (progspace_object_methods): New.
302 (pspace_object_type): Add tp_methods callback.
303 * python/python-internal.h (build_objfiles_list): New
304 declaration.
305 * python/python.c (build_objfiles_list): New function.
306 (gdbpy_objfiles): Implement using build_objfiles_list.
307 * NEWS: Mention the Progspace.objfiles method.
308
a40bf0c2
SM
3092018-09-13 Simon Marchi <simon.marchi@ericsson.com>
310
311 * python/py-inferior.c (infpy_get_progspace): New function.
312 (inferior_object_getset): Add progspace property.
313 * NEWS: Mention the new property.
314
4a3fe98f
TT
3152018-09-13 Tom Tromey <tom@tromey.com>
316
317 PR rust/23650:
318 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
319
098b2108
TT
3202018-09-13 Tom Tromey <tom@tromey.com>
321
322 PR rust/23626:
323 * rust-lang.c (rust_enum_variant): Now static.
324 (rust_empty_enum_p): New function.
325 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
326 Handle empty enum.
327
1256af7d
SM
3282018-09-13 Simon Marchi <simon.marchi@ericsson.com>
329
330 * python/py-inferior.c (infpy_repr): New.
331 (inferior_object_type): Register infpy_repr.
332 * python/py-objfile.c (objfpy_repr): New.
333 (objfile_object_type): Register objfpy_repr.
334
f117a62c
JB
3352018-09-12 John Baldwin <jhb@FreeBSD.org>
336
337 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
338
88f22c34
JB
3392018-09-12 John Baldwin <jhb@FreeBSD.org>
340
341 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
342 typo.
343
3c025cfe
SDJ
3442018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
345
346 * common/common-utils.c: Don't include '<sys/stat.h>'.
347 (is_regular_file): Move to...
348 * common/filestuff.c (is_regular_file): ... here.
349 * common/common-utils.h (is_regular_file): Move to...
350 * common/filestuff.h (is_regular_file): ... here.
351
3e68067f
SM
3522018-09-12 Simon Marchi <simon.marchi@ericsson.com>
353
354 * skip.c (debug_skip): New variable.
355 (skiplist_entry::do_skip_file_p): Add debug output.
356 (skiplist_entry::do_skip_gfile_p): Likewise.
357 (skiplist_entry::skip_function_p): Likewise.
358 (_initialize_step_skip): Create debug command.
359 * NEWS: Mention set/show debug skip.
360
d6be54ef
XR
3612018-09-11 Xavier Roirand <roirand@adacore.com>
362
363 * darwin-nat.c (should_disable_startup_with_shell):
364 New function.
365 (darwin_nat_target::create_inferior): Add call.
366
de1ec836
XR
3672018-09-11 Xavier Roirand <roirand@adacore.com>
368
369 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
370 inf_port, msg_state>: Initialize.
371 (struct darwin_thread_info) <signaled, single_step>: Change
372 type and initialize.
373 (struct darwin_thread_info) <event>: Initialize.
374
e2fc52e7
SDJ
3752018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
376
377 PR gdb/23555
378 PR gdb/23558
379 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
380 guesses.
381
5e8754f9
SDJ
3822018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
383
384 Revert:
385 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
386
387 PR gdb/23555
388 PR gdb/23558
389 * gnulib/aclocal.m4: Regenerate.
390 * gnulib/config.in: Regenerate.
391 * gnulib/configure: Regenerate.
392 * gnulib/import/Makefile.am: Update.
393 * gnulib/import/Makefile.in: Update.
394 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
395 * gnulib/import/_Noreturn.h: ... this.
396 * gnulib/import/alloca.in.h: Update.
397 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
398 * gnulib/import/arg-nonnull.h: ... this.
399 * gnulib/import/assure.h: Update.
400 * gnulib/import/at-func.c: Update.
401 * gnulib/import/basename-lgpl.c: Update.
402 * gnulib/import/extra/snippet/c++defs.h: Rename to...
403 * gnulib/import/c++defs.h: ... this.
404 * gnulib/import/canonicalize-lgpl.c: Update.
405 * gnulib/import/cdefs.h: Update.
406 * gnulib/import/chdir-long.c: Update.
407 * gnulib/import/chdir-long.h: Update.
408 * gnulib/import/cloexec.c: Update.
409 * gnulib/import/cloexec.h: Update.
410 * gnulib/import/close.c: Update.
411 * gnulib/import/closedir.c: Update.
412 * gnulib/import/config.charset: Update.
413 * gnulib/import/dirent-private.h: Update.
414 * gnulib/import/dirent.in.h: Update.
415 * gnulib/import/dirfd.c: Update.
416 * gnulib/import/dirname-lgpl.c: Update.
417 * gnulib/import/dirname.h: Update.
418 * gnulib/import/dosname.h: Update.
419 * gnulib/import/dup-safer-flag.c: Update.
420 * gnulib/import/dup-safer.c: Update.
421 * gnulib/import/dup.c: Update.
422 * gnulib/import/dup2.c: Update.
423 * gnulib/import/errno.in.h: Update.
424 * gnulib/import/error.c: Update.
425 * gnulib/import/error.h: Update.
426 * gnulib/import/exitfail.c: Update.
427 * gnulib/import/exitfail.h: Update.
428 * gnulib/import/extra/update-copyright: Update.
429 * gnulib/import/fchdir.c: Update.
430 * gnulib/import/fcntl.c: Update.
431 * gnulib/import/fcntl.in.h: Update.
432 * gnulib/import/fd-hook.c: Update.
433 * gnulib/import/fd-hook.h: Update.
434 * gnulib/import/fd-safer-flag.c: Update.
435 * gnulib/import/fd-safer.c: Update.
436 * gnulib/import/fdopendir.c: Update.
437 * gnulib/import/filename.h: Update.
438 * gnulib/import/filenamecat-lgpl.c: Update.
439 * gnulib/import/filenamecat.h: Update.
440 * gnulib/import/flexmember.h: Update.
441 * gnulib/import/float+.h: Update.
442 * gnulib/import/float.c: Update.
443 * gnulib/import/float.in.h: Update.
444 * gnulib/import/fnmatch.c: Update.
445 * gnulib/import/fnmatch.in.h: Update.
446 * gnulib/import/fnmatch_loop.c: Update.
447 * gnulib/import/fpucw.h: Update.
448 * gnulib/import/frexp.c: Update.
449 * gnulib/import/frexpl.c: Update.
450 * gnulib/import/fstat.c: Update.
451 * gnulib/import/fstatat.c: Update.
452 * gnulib/import/getcwd-lgpl.c: Update.
453 * gnulib/import/getcwd.c: Update.
454 * gnulib/import/getdtablesize.c: Update.
455 * gnulib/import/getlogin_r.c: Update.
456 * gnulib/import/getprogname.c: Update.
457 * gnulib/import/getprogname.h: Update.
458 * gnulib/import/gettext.h: Update.
459 * gnulib/import/gettimeofday.c: Update.
460 * gnulib/import/glob-libc.h: Update.
461 * gnulib/import/glob.c: Update.
462 * gnulib/import/glob.in.h: Update.
463 * gnulib/import/glob_internal.h: Update.
464 * gnulib/import/glob_pattern_p.c: Update.
465 * gnulib/import/globfree.c: Update.
466 * gnulib/import/hard-locale.c: Update.
467 * gnulib/import/hard-locale.h: Update.
468 * gnulib/import/intprops.h: Update.
469 * gnulib/import/inttypes.in.h: Update.
470 * gnulib/import/isnan.c: Update.
471 * gnulib/import/isnand-nolibm.h: Update.
472 * gnulib/import/isnand.c: Update.
473 * gnulib/import/isnanl-nolibm.h: Update.
474 * gnulib/import/isnanl.c: Update.
475 * gnulib/import/itold.c: Update.
476 * gnulib/import/libc-config.h: Update.
477 * gnulib/import/limits.in.h: Update.
478 * gnulib/import/localcharset.c: Update.
479 * gnulib/import/localcharset.h: Update.
480 * gnulib/import/localtime-buffer.c: Update.
481 * gnulib/import/localtime-buffer.h: Update.
482 * gnulib/import/lstat.c: Update.
483 * gnulib/import/m4/00gnulib.m4: Update.
484 * gnulib/import/m4/__inline.m4: Update.
485 * gnulib/import/m4/absolute-header.m4: Update.
486 * gnulib/import/m4/alloca.m4: Update.
487 * gnulib/import/m4/builtin-expect.m4: Update.
488 * gnulib/import/m4/canonicalize.m4: Update.
489 * gnulib/import/m4/chdir-long.m4: Update.
490 * gnulib/import/m4/close.m4: Update.
491 * gnulib/import/m4/closedir.m4: Update.
492 * gnulib/import/m4/configmake.m4: Update.
493 * gnulib/import/m4/d-ino.m4: Update.
494 * gnulib/import/m4/d-type.m4: Update.
495 * gnulib/import/m4/dirent_h.m4: Update.
496 * gnulib/import/m4/dirfd.m4: Update.
497 * gnulib/import/m4/dirname.m4: Update.
498 * gnulib/import/m4/double-slash-root.m4: Update.
499 * gnulib/import/m4/dup.m4: Update.
500 * gnulib/import/m4/dup2.m4: Update.
501 * gnulib/import/m4/eealloc.m4: Update.
502 * gnulib/import/m4/environ.m4: Update.
503 * gnulib/import/m4/errno_h.m4: Update.
504 * gnulib/import/m4/error.m4: Update.
505 * gnulib/import/m4/exponentd.m4: Update.
506 * gnulib/import/m4/exponentl.m4: Update.
507 * gnulib/import/m4/extensions.m4: Update.
508 * gnulib/import/m4/extern-inline.m4: Update.
509 * gnulib/import/m4/fchdir.m4: Update.
510 * gnulib/import/m4/fcntl-o.m4: Update.
511 * gnulib/import/m4/fcntl.m4: Update.
512 * gnulib/import/m4/fcntl_h.m4: Update.
513 * gnulib/import/m4/fdopendir.m4: Update.
514 * gnulib/import/m4/filenamecat.m4: Update.
515 * gnulib/import/m4/flexmember.m4: Update.
516 * gnulib/import/m4/float_h.m4: Update.
517 * gnulib/import/m4/fnmatch.m4: Update.
518 * gnulib/import/m4/fnmatch_h.m4: Update.
519 * gnulib/import/m4/fpieee.m4: Update.
520 * gnulib/import/m4/frexp.m4: Update.
521 * gnulib/import/m4/frexpl.m4: Update.
522 * gnulib/import/m4/fstat.m4: Update.
523 * gnulib/import/m4/fstatat.m4: Update.
524 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
525 * gnulib/import/m4/getcwd-path-max.m4: Update.
526 * gnulib/import/m4/getcwd.m4: Update.
527 * gnulib/import/m4/getdtablesize.m4: Update.
528 * gnulib/import/m4/getlogin.m4: Update.
529 * gnulib/import/m4/getlogin_r.m4: Update.
530 * gnulib/import/m4/getpagesize.m4: Update.
531 * gnulib/import/m4/getprogname.m4: Update.
532 * gnulib/import/m4/gettimeofday.m4: Update.
533 * gnulib/import/m4/glibc21.m4: Update.
534 * gnulib/import/m4/glob.m4: Update.
535 * gnulib/import/m4/glob_h.m4: Update.
536 * gnulib/import/m4/gnulib-cache.m4: Update.
537 * gnulib/import/m4/gnulib-common.m4: Update.
538 * gnulib/import/m4/gnulib-comp.m4: Update.
539 * gnulib/import/m4/gnulib-tool.m4: Update.
540 * gnulib/import/m4/hard-locale.m4: Update.
541 * gnulib/import/m4/include_next.m4: Update.
542 * gnulib/import/m4/inttypes-pri.m4: Update.
543 * gnulib/import/m4/inttypes.m4: Update.
544 * gnulib/import/m4/isnand.m4: Update.
545 * gnulib/import/m4/isnanl.m4: Update.
546 * gnulib/import/m4/largefile.m4: Update.
547 * gnulib/import/m4/limits-h.m4: Update.
548 * gnulib/import/m4/localcharset.m4: Update.
549 * gnulib/import/m4/locale-fr.m4: Update.
550 * gnulib/import/m4/locale-ja.m4: Update.
551 * gnulib/import/m4/locale-zh.m4: Update.
552 * gnulib/import/m4/localtime-buffer.m4: Update.
553 * gnulib/import/m4/longlong.m4: Update.
554 * gnulib/import/m4/lstat.m4: Update.
555 * gnulib/import/m4/malloc.m4: Update.
556 * gnulib/import/m4/malloca.m4: Update.
557 * gnulib/import/m4/math_h.m4: Update.
558 * gnulib/import/m4/mbrtowc.m4: Update.
559 * gnulib/import/m4/mbsinit.m4: Update.
560 * gnulib/import/m4/mbsrtowcs.m4: Update.
561 * gnulib/import/m4/mbstate_t.m4: Update.
562 * gnulib/import/m4/memchr.m4: Update.
563 * gnulib/import/m4/memmem.m4: Update.
564 * gnulib/import/m4/mempcpy.m4: Update.
565 * gnulib/import/m4/memrchr.m4: Update.
566 * gnulib/import/m4/mkdir.m4: Update.
567 * gnulib/import/m4/mkstemp.m4: Update.
568 * gnulib/import/m4/mmap-anon.m4: Update.
569 * gnulib/import/m4/mode_t.m4: Update.
570 * gnulib/import/m4/msvc-inval.m4: Update.
571 * gnulib/import/m4/msvc-nothrow.m4: Update.
572 * gnulib/import/m4/multiarch.m4: Update.
573 * gnulib/import/m4/nocrash.m4: Update.
574 * gnulib/import/m4/off_t.m4: Update.
575 * gnulib/import/m4/onceonly.m4: Update.
576 * gnulib/import/m4/open-cloexec.m4: Update.
577 * gnulib/import/m4/open.m4: Update.
578 * gnulib/import/m4/openat.m4: Update.
579 * gnulib/import/m4/opendir.m4: Update.
580 * gnulib/import/m4/pathmax.m4: Update.
581 * gnulib/import/m4/rawmemchr.m4: Update.
582 * gnulib/import/m4/readdir.m4: Update.
583 * gnulib/import/m4/readlink.m4: Update.
584 * gnulib/import/m4/realloc.m4: Update.
585 * gnulib/import/m4/rename.m4: Update.
586 * gnulib/import/m4/rewinddir.m4: Update.
587 * gnulib/import/m4/rmdir.m4: Update.
588 * gnulib/import/m4/save-cwd.m4: Update.
589 * gnulib/import/m4/secure_getenv.m4: Update.
590 * gnulib/import/m4/setenv.m4: Update.
591 * gnulib/import/m4/signal_h.m4: Update.
592 * gnulib/import/m4/ssize_t.m4: Update.
593 * gnulib/import/m4/stat-time.m4: Update.
594 * gnulib/import/m4/stat.m4: Update.
595 * gnulib/import/m4/std-gnu11.m4: Update.
596 * gnulib/import/m4/stdbool.m4: Update.
597 * gnulib/import/m4/stddef_h.m4: Update.
598 * gnulib/import/m4/stdint.m4: Update.
599 * gnulib/import/m4/stdio_h.m4: Update.
600 * gnulib/import/m4/stdlib_h.m4: Update.
601 * gnulib/import/m4/strchrnul.m4: Update.
602 * gnulib/import/m4/strdup.m4: Update.
603 * gnulib/import/m4/strerror.m4: Update.
604 * gnulib/import/m4/string_h.m4: Update.
605 * gnulib/import/m4/strstr.m4: Update.
606 * gnulib/import/m4/strtok_r.m4: Update.
607 * gnulib/import/m4/sys_socket_h.m4: Update.
608 * gnulib/import/m4/sys_stat_h.m4: Update.
609 * gnulib/import/m4/sys_time_h.m4: Update.
610 * gnulib/import/m4/sys_types_h.m4: Update.
611 * gnulib/import/m4/tempname.m4: Update.
612 * gnulib/import/m4/time_h.m4: Update.
613 * gnulib/import/m4/unistd-safer.m4: Update.
614 * gnulib/import/m4/unistd_h.m4: Update.
615 * gnulib/import/m4/warn-on-use.m4: Update.
616 * gnulib/import/m4/wchar_h.m4: Update.
617 * gnulib/import/m4/wchar_t.m4: Update.
618 * gnulib/import/m4/wctype_h.m4: Update.
619 * gnulib/import/m4/wint_t.m4: Update.
620 * gnulib/import/malloc.c: Update.
621 * gnulib/import/malloc/scratch_buffer.h: Update.
622 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
623 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
624 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
625 * gnulib/import/malloca.c: Update.
626 * gnulib/import/malloca.h: Update.
627 * gnulib/import/malloca.valgrind: Update.
628 * gnulib/import/math.in.h: Update.
629 * gnulib/import/mbrtowc.c: Update.
630 * gnulib/import/mbsinit.c: Update.
631 * gnulib/import/mbsrtowcs-impl.h: Update.
632 * gnulib/import/mbsrtowcs-state.c: Update.
633 * gnulib/import/mbsrtowcs.c: Update.
634 * gnulib/import/memchr.c: Update.
635 * gnulib/import/memmem.c: Update.
636 * gnulib/import/mempcpy.c: Update.
637 * gnulib/import/memrchr.c: Update.
638 * gnulib/import/mkdir.c: Update.
639 * gnulib/import/mkstemp.c: Update.
640 * gnulib/import/msvc-inval.c: Update.
641 * gnulib/import/msvc-inval.h: Update.
642 * gnulib/import/msvc-nothrow.c: Update.
643 * gnulib/import/msvc-nothrow.h: Update.
644 * gnulib/import/open.c: Update.
645 * gnulib/import/openat-die.c: Update.
646 * gnulib/import/openat-priv.h: Update.
647 * gnulib/import/openat-proc.c: Update.
648 * gnulib/import/openat.c: Update.
649 * gnulib/import/openat.h: Update.
650 * gnulib/import/opendir.c: Update.
651 * gnulib/import/pathmax.h: Update.
652 * gnulib/import/pipe-safer.c: Update.
653 * gnulib/import/rawmemchr.c: Update.
654 * gnulib/import/readdir.c: Update.
655 * gnulib/import/readlink.c: Update.
656 * gnulib/import/realloc.c: Update.
657 * gnulib/import/ref-add.sin: Update.
658 * gnulib/import/ref-del.sin: Update.
659 * gnulib/import/rename.c: Update.
660 * gnulib/import/rewinddir.c: Update.
661 * gnulib/import/rmdir.c: Update.
662 * gnulib/import/same-inode.h: Update.
663 * gnulib/import/save-cwd.c: Update.
664 * gnulib/import/save-cwd.h: Update.
665 * gnulib/import/scratch_buffer.h: Update.
666 * gnulib/import/secure_getenv.c: Update.
667 * gnulib/import/setenv.c: Update.
668 * gnulib/import/signal.in.h: Update.
669 * gnulib/import/stat-time.c: Update.
670 * gnulib/import/stat-time.h: Update.
671 * gnulib/import/stat-w32.c: Update.
672 * gnulib/import/stat-w32.h: Update.
673 * gnulib/import/stat.c: Update.
674 * gnulib/import/stdbool.in.h: Update.
675 * gnulib/import/stddef.in.h: Update.
676 * gnulib/import/stdint.in.h: Update.
677 * gnulib/import/stdio.in.h: Update.
678 * gnulib/import/stdlib.in.h: Update.
679 * gnulib/import/str-two-way.h: Update.
680 * gnulib/import/strchrnul.c: Update.
681 * gnulib/import/strdup.c: Update.
682 * gnulib/import/streq.h: Update.
683 * gnulib/import/strerror-override.c: Update.
684 * gnulib/import/strerror-override.h: Update.
685 * gnulib/import/strerror.c: Update.
686 * gnulib/import/string.in.h: Update.
687 * gnulib/import/stripslash.c: Update.
688 * gnulib/import/strnlen1.c: Update.
689 * gnulib/import/strnlen1.h: Update.
690 * gnulib/import/strstr.c: Update.
691 * gnulib/import/strtok_r.c: Update.
692 * gnulib/import/sys_stat.in.h: Update.
693 * gnulib/import/sys_time.in.h: Update.
694 * gnulib/import/sys_types.in.h: Update.
695 * gnulib/import/tempname.c: Update.
696 * gnulib/import/tempname.h: Update.
697 * gnulib/import/time.in.h: Update.
698 * gnulib/import/unistd--.h: Update.
699 * gnulib/import/unistd-safer.h: Update.
700 * gnulib/import/unistd.in.h: Update.
701 * gnulib/import/unsetenv.c: Update.
702 * gnulib/import/verify.h: Update.
703 * gnulib/import/extra/snippet/warn-on-use.h: Update.
704 * gnulib/import/wchar.in.h: Update.
705 * gnulib/import/wctype.in.h: Update.
706 * gnulib/import/xalloc-oversized.h: Update.
707 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
708 "53e2c179f26a890fa6685af4b6c1397ee370433b".
709
8ec23583
SM
7102018-09-10 Simon Marchi <simon.marchi@ericsson.com>
711
712 * record-btrace.c (get_thread_current_frame): Remove
713 old_inferior_ptid.
714
1f5d1570
JG
7152018-09-10 Jerome Guitton <guitton@adacore.com>
716
717 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
718 with check_tag to 1 if and only if the type is tagged and the
719 component being searched cannot been found in the current
720 view. Otherwise, always call ada_to_fixed_type with
721 check_tag to 0.
722
d91e9ea8
XR
7232018-09-10 Xavier Roirand <roirand@adacore.com>
724
725 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
726 declaration.
727 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
728 * ada-varobj.c (ada_varobj_get_number_of_children,
729 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
730
cc330e39
XR
7312018-09-10 Xavier Roirand <roirand@adacore.com>
732
733 * ada-valprint.c (ada_value_print): Use type instead of
734 enclosing type.
735
b9c50e9a
XR
7362018-09-10 Xavier Roirand <roirand@adacore.com>
737
738 * ada-lang.c (ada_value_subscript): Handle case when parameter is
739 an array of access to unconstrained array.
740
736ade86
XR
7412018-09-10 Xavier Roirand <roirand@adacore.com>
742
743 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
744 (ada_check_typedef): Use it.
745
2963898f
XR
7462018-09-10 Xavier Roirand <roirand@adacore.com>
747
748 * ada-varobj.c (ada_varobj_describe_struct_child)
749 (ada_varobj_describe_child): Handle union case like struct one.
750
a154931e
TT
7512018-09-10 Tom Tromey <tom@tromey.com>
752
753 PR python/18380:
754 * python/python.c (_initialize_python): Make example in "python"
755 help work in Python 3.
756
23c4651c
EZ
7572018-09-10 Eli Zaretskii <eliz@gnu.org>
758
759 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
760 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
761 $(EXEEXT) to the script, as it is not a program.
762
a5c5eda7
SM
7632018-09-09 Simon Marchi <simon.marchi@ericsson.com>
764
765 * python/py-prettyprint.c (pretty_print_one_value): Return
766 gdbpy_ref<>.
767 (print_string_repr): Adjust.
768 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
769 * python/python-internal.h (apply_varobj_pretty_printer): Return
770 gdbpy_ref<>.
771 * varobj.c (varobj_value_get_print_value): Adjust.
772
332cf4c9
TT
7732018-09-08 Tom Tromey <tom@tromey.com>
774
775 PR python/16047:
776 * python/py-prettyprint.c (pretty_print_one_value): Check for
777 to_string method.
778
424da6cf
JB
7792018-09-08 Joel Brobecker <brobecker@adacore.com>
780
781 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
782 replace_operator_with_call.
783
95f39a5b
JB
7842018-09-08 Joel Brobecker <brobecker@adacore.com>
785
786 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
787
16b9eb7b
JB
7882018-09-08 Joel Brobecker <brobecker@adacore.com>
789
790 * ada-typeprint.c (print_range): Print the bounds using TYPE
791 rather than its TYPE_TARGET_TYPE.
792
d8ce9127
JB
7932018-09-08 Joel Brobecker <brobecker@adacore.com>
794
795 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
796 call to ada_to_fixed_value_create.
797
0d81f350
JG
7982018-09-08 Jerome Guitton <guitton@adacore.com>
799
800 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
801
57aff202
JB
8022018-09-08 Joel Brobecker <brobecker@adacore.com>
803
804 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
805 by calls to error.
806
fb44b1a7
JB
8072018-09-08 Joel Brobecker <brobecker@adacore.com>
808
809 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
810 Move update of loop variable "fi".
811
2a62dfa9
JB
8122018-09-08 Joel Brobecker <brobecker@adacore.com>
813
814 * ada-lang.c (value_assign_to_component): In the case of
815 big-endian targets, extract the bits of the given VAL
816 using an src_offset of zero if container is not a scalar.
817
739ab2e9
SS
8182018-09-06 Simon Ser <contact@emersion.fr>
819
820 PR gdb/23105
821 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
822 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
823 * fbsd-tdep.c (fbsd_make_note_desc): New.
824 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
825 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
826 * target.h (enum target_object) Add FreeBSD-specific
827 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
828
d82b3862
SM
8292018-09-06 Simon Marchi <simon.marchi@ericsson.com>
830
831 * compile/compile-c.h (generate_c_for_variable_locations):
832 Change reference to pointer.
833 * compile/compile-c-support.c (compile_program) <compute>:
834 Likewise.
835 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
836 (generate_c_for_for_one_variable): Likewise
837 (generate_c_for_variable_locations): Likewise
838 * compile/compile-c-types.c (compile_c_instance::convert_type):
839 Likewise
840 * compile/compile-cplus-symbols.c (convert_one_symbol):
841 std::move the scope passed to enter_scope.
842 * compile/compile-cplus-types.c
843 (compile_cplus_instance::enter_scope): Make parameter
844 rvalue-reference.
845 (compile_cplus_instance::new_scope): Change reference to
846 pointer.
847 (compile_cplus_instance::convert_type): Likewise
848 (compile_cplus_convert_typedef): std::move the scope passed to
849 enter_scope.
850 (compile_cplus_convert_struct_or_union): Likewise.
851 (compile_cplus_convert_enum): Likewise.
852 (compile_cplus_convert_namespace): Likewise.
853 * compile/compile-cplus.h (compile_cplus_instance)
854 <enter_scope>: Make parameter rvalue-reference.
855 * compile/compile-internal.h (compile_instance)
856 <get_cached_type>: Likewise
857 * compile/compile-loc2c.c (push): Likewise
858 (pushf): Likewise
859 (unary): Likewise
860 (binary): Likewise
861 (print_label): Likewise
862 (pushf_register_address): Likewise
863 (pushf_register): Likewise
864 (do_compile_dwarf_expr_to_c): Likewise
865 (compile_dwarf_expr_to_c): Likewise
866 (compile_dwarf_bounds_to_c): Likewise
867 * compile/compile.c (compile_instance::get_cached_type):
868 Likewise
869 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
870 (compile_dwarf_bounds_to_c): Likewise
871 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
872 (dwarf2_compile_property_to_c): Likewise
873 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
874 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
875 Likewise
876
cc5a5ae5
SM
8772018-09-06 Simon Marchi <simon.marchi@ericsson.com>
878
879 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
880 * tui/tui-data.c (init_content_element): Don't initialize it.
881
137be540
SM
8822018-09-06 Simon Marchi <simon.marchi@ericsson.com>
883
884 * tui/tui-data.h (struct tui_win_info)
885 <detail::opaque>: Remove.
886 * tui/tui-data.c (init_win_info): Remove assignment.
887
f1628857
TT
8882018-09-05 Tom Tromey <tom@tromey.com>
889
890 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
891 -Wformat-nonliteral.
892 * target-float.c (host_float_ops<T>::to_string)
893 (host_float_ops<T>::from_string): Use
894 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
895 * configure: Rebuild.
896
af39b1c2
SM
8972018-09-05 Simon Marchi <simon.marchi@ericsson.com>
898
899 * printcmd.c (printf_c_string): Use
900 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
901 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
902
081bca4d
TT
9032018-09-05 Tom Tromey <tom@tromey.com>
904
905 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
906
e4a62c65
TV
9072018-09-05 Tom de Vries <tdevries@suse.de>
908
909 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
910 with resolve_abstract_p == true.
911 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
912 defaulting to false. Propagate resolve_abstract_p to
913 dwarf2_fetch_die_loc_sect_off.
914 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
915 parameter, defaulting to false.
916 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
917 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
918 parameter.
919 * dwarf2read.h (struct die_info): Forward-declare.
920 (die_info_ptr): New typedef.
921 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
922
2b69821e
JB
9232018-09-05 Joel Brobecker <brobecker@adacore.com>
924
925 GDB 8.2 released.
926
fcc9b044
SDJ
9272018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
928 Pedro Alves <palves@redhat.com>
929
930 * gnulib/Makefile.in (aclocal_m4_deps): Move to
931 "aclocal-m4-deps.mk". Include file here.
932 $(srcdir)/aclocal.m4: Add "configure.ac".
933 * gnulib/aclocal-m4-deps.mk: New file.
934 * gnulib/update-gnulib.sh: Automatically update
935 "aclocal-m4-deps.mk".
936
d53d5436
TT
9372018-09-04 Tom Tromey <tom@tromey.com>
938
939 * configure: Rebuild.
940 * configure.ac: Remove multi-ice code.
941
8dc9fd87
TT
9422018-09-04 Tom Tromey <tom@tromey.com>
943
944 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
945 (ada-exp.o): Update.
946
3322c5d9
TT
9472018-09-04 Tom Tromey <tom@tromey.com>
948
949 * Makefile.in (printcmd.o, target-float.o): Remove.
950 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
951
ba2bf2aa
TT
9522018-09-04 Tom Tromey <tom@tromey.com>
953
954 * gnulib/Makefile.in: Remove obsolete comment.
955 * Makefile.in: Remove obsolete comment.
956
6c9d681b
AB
9572018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
958
959 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
960 line with '+'.
961
78a3b0fa
AB
9622018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
963
964 * riscv-tdep.c: Add 'prologue-value.h' include.
965 (struct riscv_unwind_cache): New struct.
966 (riscv_debug_unwinder): New global.
967 (riscv_scan_prologue): Update arguments, capture register details
968 from prologue scan.
969 (riscv_skip_prologue): Reformat arguments line, move end of
970 prologue calculation into riscv_scan_prologue.
971 (riscv_frame_cache): Update return type, create
972 riscv_unwind_cache, scan the prologue, and fill in remaining cache
973 details.
974 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
975 (riscv_frame_prev_register): Use the trad_frame within the
976 riscv_unwind_cache.
977 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
978 flag.
979
23e60e7a
AB
9802018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
981
982 * trad-frame.h (trad_frame_set_realreg): Declare.
983 (trad_frame_set_addr): Declare.
984 * trad-frame.c (trad_frame_set_realreg): Define new function.
985 (trad_frame_set_addr): Define new function.
986 (trad_frame_set_reg_realreg): Use new function.
987 (trad_frame_set_reg_addr): Use new function.
988
5c889512
KS
9892018-09-01 Keith Seitz <keiths@redhat.com>
990
991 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
992 pulongest instead of "%lld".
993 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
994 ATTRIBUTE_UNUSED.
995
c8c81635
TT
9962018-08-31 Tom Tromey <tom@tromey.com>
997
998 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
999 variant part type.
1000
0c888588
PA
10012018-08-31 Pedro Alves <palves@redhat.com>
1002
1003 * gdbarch.h: Regenerate.
1004
7ea65f08
PA
10052018-08-31 Pedro Alves <palves@redhat.com>
1006
1007 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1008 * target.h (Hardware watchpoint interfaces): Describe
1009 continuable/steppable/non-steppable watchpoints.
1010 * gdbarch.h, gdbarch.c: Regenerate.
1011
7eb65faf
PA
10122018-08-31 Pedro Alves <palves@redhat.com>
1013
1014 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1015 Delete.
1016 * s390-linux-nat.c
1017 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1018 * target.h (target_ops::have_continuable_watchpoint): Delete.
1019 (target_have_continuable_watchpoint): Delete.
1020 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1021 * target-delegates.c: Regenerate.
1022
dab999b1
SDJ
10232018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1024
1025 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1026 the files present in "gnulib/import/m4/".
1027
ff3a05b3
AB
10282018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1029
1030 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1031 c.sw, c.swsp, and c.sdsp.
1032
0b3f9efc
AB
10332018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1034
1035 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1036 (riscv_read_misa_reg): Don't cache value read into inferior data.
1037 (riscv_new_inferior_data): Delete.
1038 (riscv_inferior_data_cleanup): Delete.
1039 (riscv_inferior_data): Delete.
1040 (riscv_invalidate_inferior_data): Delete.
1041 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1042
a0dc02a6
SM
10432018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1044
1045 * compile/compile-cplus-types.c
1046 (compile_cplus_instance::leave_scope): Take the address of scope
1047 object.
1048 (compile_cplus_instance::convert_qualified_base): Compare quals
1049 to 0.
1050
fdad7678
KS
10512018-08-30 Keith Seitz <keiths@redhat.com>
1052
1053 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1054 Use "%s" and host_address_to_string instead of "%p" in printf.
1055
078a0207
KS
10562018-08-29 Keith Seitz <keiths@redhat.com>
1057
1058 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1059 and compile-cplus-types.c.
1060 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1061 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1062 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1063 Declare.
1064 * compile/compile-c-support.c: Include compile-cplus.h.
1065 (load_libcompile): Templatize.
1066 (get_compile_context): "New" function.
1067 (c_get_compile_context): Use get_compile_context.
1068 (cplus_get_compile_context): New function.
1069 (cplus_push_user_expression, cplus_pop_user_expression)
1070 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1071 (cplus_compute_program): Define new structs/functions.
1072 * compile/compile-cplus-symmbols.c: New file.
1073 * compile/compile-cplus-types.c: New file.
1074 * compile/compile-cplus.h: New file.
1075 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1076 Declare.
1077 * compile/compile-object-load.c (get_out_value_type): Use
1078 strncmp_iw when comparing symbol names.
1079 (compile_object_load): Add mst_bss and mst_data.
1080 * compile/compile.c (_initialize_compile): Remove
1081 -Wno-implicit-function-declaration from `compile_args'.
1082 * compile/gcc-cp-plugin.h: New file.
1083 * NEWS: Mention C++ compile support and new debug options.
1084
fcaad03c
KS
10852018-08-29 Keith Seitz <keiths@redhat.com>
1086
1087 * linespec.c (collect_info::add_symbol): Make virtual.
1088 (struct symbol_searcher_collect_info): New struct.
1089 (symbol_searcher::find_all_symbols): New method.
1090 * symtab.h (class symbol_searcher): New class.
1091
7e41c8db
KS
10922018-08-29 Keith Seitz <keiths@redhat.com>
1093
1094 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1095 Change to vector of block_symbol. Update all users.
1096 (struct collect_info) <symbols>: Likewise.
1097 (collect_info::add_symbol): Take block_symbol as argument.
1098 Update all callers.
1099 (decode_compound_collector) <m_symbols>: Change type to vector
1100 of block_symbol. Update all users.
1101 (decode_compound_collector::operator ()): Change parameter type
1102 to block_symbol.
1103 (find_method, find_function_symbols, find_linespec_symbols)
1104 (find_label_symbols_in_block, find_label_symbols): Change symbol
1105 vectors to block_symbol vectors.
1106 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1107 block_symbol.
1108
63e8c3da
KS
11092018-08-29 Keith Seitz <keiths@redhat.com>
1110
1111 * linespec.c (symbolp): Remove typedef and VEC definitions.
1112 (bound_minimal_symbol_d): Likewise.
1113
4dedf84d
KS
11142018-08-29 Keith Seitz <keiths@redhat.com>
1115
1116 * linespec.c (decode_compound_collector::decode_compound_collector):
1117 Remove initialization for `m_symtabs'.
1118 (decode_compound_collector::release_symbols): Change return type
1119 to std::vector. Update all callers.
1120 (class decode_compound_collector) <m_symbols>: Change type to
1121 std::vector.
1122 (lookup_prefix_sym): Change return type to std::vector. Update all
1123 callers.
1124 (compare_symbols): Remove.
1125 (std_compare_symbols): Rename to `compare_symbols'.
1126 (find_method): Change `sym_classes' parameter to std::vector.
1127 Update all callers. Use std::sort to sort sym_classes.
1128 (find_linespec_symbols): Remove cleanup.
1129
c2a031c5
KS
11302018-08-29 Keith Seitz <keiths@redhat.com>
1131
1132 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1133 std::vector. Update all users.
1134 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1135 (struct collect_info) <minimal_symbols>: Likewise.
1136 (compare_msymbols): Return bool. Change parameters to const
1137 bound_minimal_symbol references.
1138 (find_method, find_function_symbols, find_linespec_symbols): Change
1139 `minsyms' parameter to std::vector. Update all callers.
1140
3553eadc
KS
11412018-08-29 Keith Seitz <keiths@redhat.com>
1142
1143 * linespec.c (struct linespec) <label_symbols>: Change type to
1144 std::vector. Update all users.
1145 (find_label_symbols_in_block): Change `result' parameter to
1146 std::vector. Update all callers.
1147 (find_label_symbols): Return std::vector. Update all callers.
1148
7243d011
KS
11492018-08-29 Keith Seitz <keiths@redhat.com>
1150
1151 * linespec.c (struct linespec) <function_symbols>: Change type to
1152 std::vector. Update all users.
1153 (struct collect_info) <function_symbols>: Likewise.
1154 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1155 (std_compare_symbols): New function.
1156 (find_method, find_function_symbols, find_linespec_symbols)
1157 (find_label_symbols_in_block): Change `symbols' parameter to
1158 std::vector. Update all callers.
1159 (find_label_symbols): Likewise for `function_symbols' and
1160 `label_funcs_ret'.
1161
2a908241
KS
11622018-08-29 Keith Seitz <keiths@redhat.com>
1163
1164 * linespec.c (symtab_vector_up): Define.
1165 (struct linespec) <file_symtabs>: Change type to std::vector *.
1166 Update all uses.
1167 (struct collect_info) <file_symtabs>: Likewise.
1168 (collect_symtabs_from_filename): Return symtab_vector_up.
1169 Update all callers.
1170 (decode_objc): Remove cleanup.
1171 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1172 (symtab_collector::release_symtabs): Return symtab_vector_up.
1173 Update all callers.
1174 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1175 Update all users.
1176 (collect_symtabs_from_filename, symtabs_from_filename): Return
1177 symtab_vector_up. Update all callers.
1178
f6c4e3e8
TT
11792018-08-29 Tom Tromey <tom@tromey.com>
1180
1181 * csky-tdep.c (csky_analyze_prologue): Use
1182 core_addr_to_string_nz.
1183
73c13fe6
TT
11842018-08-29 Tom Tromey <tom@tromey.com>
1185
1186 * windows-nat.c (struct xlate_exception) <them>: Change type to
1187 DWORD.
1188 (xlate): Fix formatting. Remove last entry.
1189 (struct xlate_exception, xlate): Comment out.
1190 (windows_nat_target::resume): Use ranged for.
1191
4d3928d7
JW
11922018-08-29 Jim Wilson <jimw@sifive.com>
1193
1194 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1195 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1196 of NT_PRFPREG.
1197 (riscv_linux_nat_target::store_registers): Likewise.
1198
7a6dbc2f
SDJ
11992018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1200
1201 PR gdb/23555
1202 PR gdb/23558
1203 * gnulib/aclocal.m4: Regenerate.
1204 * gnulib/config.in: Regenerate.
1205 * gnulib/configure: Regenerate.
1206 * gnulib/import/Makefile.am: Update.
1207 * gnulib/import/Makefile.in: Update.
1208 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1209 * gnulib/import/_Noreturn.h: ... this.
1210 * gnulib/import/alloca.in.h: Update.
1211 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1212 * gnulib/import/arg-nonnull.h: ... this.
1213 * gnulib/import/assure.h: Update.
1214 * gnulib/import/at-func.c: Update.
1215 * gnulib/import/basename-lgpl.c: Update.
1216 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1217 * gnulib/import/c++defs.h: ... this.
1218 * gnulib/import/canonicalize-lgpl.c: Update.
1219 * gnulib/import/cdefs.h: Update.
1220 * gnulib/import/chdir-long.c: Update.
1221 * gnulib/import/chdir-long.h: Update.
1222 * gnulib/import/cloexec.c: Update.
1223 * gnulib/import/cloexec.h: Update.
1224 * gnulib/import/close.c: Update.
1225 * gnulib/import/closedir.c: Update.
1226 * gnulib/import/config.charset: Update.
1227 * gnulib/import/dirent-private.h: Update.
1228 * gnulib/import/dirent.in.h: Update.
1229 * gnulib/import/dirfd.c: Update.
1230 * gnulib/import/dirname-lgpl.c: Update.
1231 * gnulib/import/dirname.h: Update.
1232 * gnulib/import/dosname.h: Update.
1233 * gnulib/import/dup-safer-flag.c: Update.
1234 * gnulib/import/dup-safer.c: Update.
1235 * gnulib/import/dup.c: Update.
1236 * gnulib/import/dup2.c: Update.
1237 * gnulib/import/errno.in.h: Update.
1238 * gnulib/import/error.c: Update.
1239 * gnulib/import/error.h: Update.
1240 * gnulib/import/exitfail.c: Update.
1241 * gnulib/import/exitfail.h: Update.
1242 * gnulib/import/extra/update-copyright: Update.
1243 * gnulib/import/fchdir.c: Update.
1244 * gnulib/import/fcntl.c: Update.
1245 * gnulib/import/fcntl.in.h: Update.
1246 * gnulib/import/fd-hook.c: Update.
1247 * gnulib/import/fd-hook.h: Update.
1248 * gnulib/import/fd-safer-flag.c: Update.
1249 * gnulib/import/fd-safer.c: Update.
1250 * gnulib/import/fdopendir.c: Update.
1251 * gnulib/import/filename.h: Update.
1252 * gnulib/import/filenamecat-lgpl.c: Update.
1253 * gnulib/import/filenamecat.h: Update.
1254 * gnulib/import/flexmember.h: Update.
1255 * gnulib/import/float+.h: Update.
1256 * gnulib/import/float.c: Update.
1257 * gnulib/import/float.in.h: Update.
1258 * gnulib/import/fnmatch.c: Update.
1259 * gnulib/import/fnmatch.in.h: Update.
1260 * gnulib/import/fnmatch_loop.c: Update.
1261 * gnulib/import/fpucw.h: Update.
1262 * gnulib/import/frexp.c: Update.
1263 * gnulib/import/frexpl.c: Update.
1264 * gnulib/import/fstat.c: Update.
1265 * gnulib/import/fstatat.c: Update.
1266 * gnulib/import/getcwd-lgpl.c: Update.
1267 * gnulib/import/getcwd.c: Update.
1268 * gnulib/import/getdtablesize.c: Update.
1269 * gnulib/import/getlogin_r.c: Update.
1270 * gnulib/import/getprogname.c: Update.
1271 * gnulib/import/getprogname.h: Update.
1272 * gnulib/import/gettext.h: Update.
1273 * gnulib/import/gettimeofday.c: Update.
1274 * gnulib/import/glob-libc.h: Update.
1275 * gnulib/import/glob.c: Update.
1276 * gnulib/import/glob.in.h: Update.
1277 * gnulib/import/glob_internal.h: Update.
1278 * gnulib/import/glob_pattern_p.c: Update.
1279 * gnulib/import/globfree.c: Update.
1280 * gnulib/import/hard-locale.c: Update.
1281 * gnulib/import/hard-locale.h: Update.
1282 * gnulib/import/intprops.h: Update.
1283 * gnulib/import/inttypes.in.h: Update.
1284 * gnulib/import/isnan.c: Update.
1285 * gnulib/import/isnand-nolibm.h: Update.
1286 * gnulib/import/isnand.c: Update.
1287 * gnulib/import/isnanl-nolibm.h: Update.
1288 * gnulib/import/isnanl.c: Update.
1289 * gnulib/import/itold.c: Update.
1290 * gnulib/import/libc-config.h: Update.
1291 * gnulib/import/limits.in.h: Update.
1292 * gnulib/import/localcharset.c: Update.
1293 * gnulib/import/localcharset.h: Update.
1294 * gnulib/import/localtime-buffer.c: Update.
1295 * gnulib/import/localtime-buffer.h: Update.
1296 * gnulib/import/lstat.c: Update.
1297 * gnulib/import/m4/00gnulib.m4: Update.
1298 * gnulib/import/m4/__inline.m4: Update.
1299 * gnulib/import/m4/absolute-header.m4: Update.
1300 * gnulib/import/m4/alloca.m4: Update.
1301 * gnulib/import/m4/builtin-expect.m4: Update.
1302 * gnulib/import/m4/canonicalize.m4: Update.
1303 * gnulib/import/m4/chdir-long.m4: Update.
1304 * gnulib/import/m4/close.m4: Update.
1305 * gnulib/import/m4/closedir.m4: Update.
1306 * gnulib/import/m4/configmake.m4: Update.
1307 * gnulib/import/m4/d-ino.m4: Update.
1308 * gnulib/import/m4/d-type.m4: Update.
1309 * gnulib/import/m4/dirent_h.m4: Update.
1310 * gnulib/import/m4/dirfd.m4: Update.
1311 * gnulib/import/m4/dirname.m4: Update.
1312 * gnulib/import/m4/double-slash-root.m4: Update.
1313 * gnulib/import/m4/dup.m4: Update.
1314 * gnulib/import/m4/dup2.m4: Update.
1315 * gnulib/import/m4/eealloc.m4: Update.
1316 * gnulib/import/m4/environ.m4: Update.
1317 * gnulib/import/m4/errno_h.m4: Update.
1318 * gnulib/import/m4/error.m4: Update.
1319 * gnulib/import/m4/exponentd.m4: Update.
1320 * gnulib/import/m4/exponentl.m4: Update.
1321 * gnulib/import/m4/extensions.m4: Update.
1322 * gnulib/import/m4/extern-inline.m4: Update.
1323 * gnulib/import/m4/fchdir.m4: Update.
1324 * gnulib/import/m4/fcntl-o.m4: Update.
1325 * gnulib/import/m4/fcntl.m4: Update.
1326 * gnulib/import/m4/fcntl_h.m4: Update.
1327 * gnulib/import/m4/fdopendir.m4: Update.
1328 * gnulib/import/m4/filenamecat.m4: Update.
1329 * gnulib/import/m4/flexmember.m4: Update.
1330 * gnulib/import/m4/float_h.m4: Update.
1331 * gnulib/import/m4/fnmatch.m4: Update.
1332 * gnulib/import/m4/fnmatch_h.m4: Update.
1333 * gnulib/import/m4/fpieee.m4: Update.
1334 * gnulib/import/m4/frexp.m4: Update.
1335 * gnulib/import/m4/frexpl.m4: Update.
1336 * gnulib/import/m4/fstat.m4: Update.
1337 * gnulib/import/m4/fstatat.m4: Update.
1338 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1339 * gnulib/import/m4/getcwd-path-max.m4: Update.
1340 * gnulib/import/m4/getcwd.m4: Update.
1341 * gnulib/import/m4/getdtablesize.m4: Update.
1342 * gnulib/import/m4/getlogin.m4: Update.
1343 * gnulib/import/m4/getlogin_r.m4: Update.
1344 * gnulib/import/m4/getpagesize.m4: Update.
1345 * gnulib/import/m4/getprogname.m4: Update.
1346 * gnulib/import/m4/gettimeofday.m4: Update.
1347 * gnulib/import/m4/glibc21.m4: Update.
1348 * gnulib/import/m4/glob.m4: Update.
1349 * gnulib/import/m4/glob_h.m4: Update.
1350 * gnulib/import/m4/gnulib-cache.m4: Update.
1351 * gnulib/import/m4/gnulib-common.m4: Update.
1352 * gnulib/import/m4/gnulib-comp.m4: Update.
1353 * gnulib/import/m4/gnulib-tool.m4: Update.
1354 * gnulib/import/m4/hard-locale.m4: Update.
1355 * gnulib/import/m4/include_next.m4: Update.
1356 * gnulib/import/m4/inttypes-pri.m4: Update.
1357 * gnulib/import/m4/inttypes.m4: Update.
1358 * gnulib/import/m4/isnand.m4: Update.
1359 * gnulib/import/m4/isnanl.m4: Update.
1360 * gnulib/import/m4/largefile.m4: Update.
1361 * gnulib/import/m4/limits-h.m4: Update.
1362 * gnulib/import/m4/localcharset.m4: Update.
1363 * gnulib/import/m4/locale-fr.m4: Update.
1364 * gnulib/import/m4/locale-ja.m4: Update.
1365 * gnulib/import/m4/locale-zh.m4: Update.
1366 * gnulib/import/m4/localtime-buffer.m4: Update.
1367 * gnulib/import/m4/longlong.m4: Update.
1368 * gnulib/import/m4/lstat.m4: Update.
1369 * gnulib/import/m4/malloc.m4: Update.
1370 * gnulib/import/m4/malloca.m4: Update.
1371 * gnulib/import/m4/math_h.m4: Update.
1372 * gnulib/import/m4/mbrtowc.m4: Update.
1373 * gnulib/import/m4/mbsinit.m4: Update.
1374 * gnulib/import/m4/mbsrtowcs.m4: Update.
1375 * gnulib/import/m4/mbstate_t.m4: Update.
1376 * gnulib/import/m4/memchr.m4: Update.
1377 * gnulib/import/m4/memmem.m4: Update.
1378 * gnulib/import/m4/mempcpy.m4: Update.
1379 * gnulib/import/m4/memrchr.m4: Update.
1380 * gnulib/import/m4/mkdir.m4: Update.
1381 * gnulib/import/m4/mkstemp.m4: Update.
1382 * gnulib/import/m4/mmap-anon.m4: Update.
1383 * gnulib/import/m4/mode_t.m4: Update.
1384 * gnulib/import/m4/msvc-inval.m4: Update.
1385 * gnulib/import/m4/msvc-nothrow.m4: Update.
1386 * gnulib/import/m4/multiarch.m4: Update.
1387 * gnulib/import/m4/nocrash.m4: Update.
1388 * gnulib/import/m4/off_t.m4: Update.
1389 * gnulib/import/m4/onceonly.m4: Update.
1390 * gnulib/import/m4/open-cloexec.m4: Update.
1391 * gnulib/import/m4/open.m4: Update.
1392 * gnulib/import/m4/openat.m4: Update.
1393 * gnulib/import/m4/opendir.m4: Update.
1394 * gnulib/import/m4/pathmax.m4: Update.
1395 * gnulib/import/m4/rawmemchr.m4: Update.
1396 * gnulib/import/m4/readdir.m4: Update.
1397 * gnulib/import/m4/readlink.m4: Update.
1398 * gnulib/import/m4/realloc.m4: Update.
1399 * gnulib/import/m4/rename.m4: Update.
1400 * gnulib/import/m4/rewinddir.m4: Update.
1401 * gnulib/import/m4/rmdir.m4: Update.
1402 * gnulib/import/m4/save-cwd.m4: Update.
1403 * gnulib/import/m4/secure_getenv.m4: Update.
1404 * gnulib/import/m4/setenv.m4: Update.
1405 * gnulib/import/m4/signal_h.m4: Update.
1406 * gnulib/import/m4/ssize_t.m4: Update.
1407 * gnulib/import/m4/stat-time.m4: Update.
1408 * gnulib/import/m4/stat.m4: Update.
1409 * gnulib/import/m4/std-gnu11.m4: Update.
1410 * gnulib/import/m4/stdbool.m4: Update.
1411 * gnulib/import/m4/stddef_h.m4: Update.
1412 * gnulib/import/m4/stdint.m4: Update.
1413 * gnulib/import/m4/stdio_h.m4: Update.
1414 * gnulib/import/m4/stdlib_h.m4: Update.
1415 * gnulib/import/m4/strchrnul.m4: Update.
1416 * gnulib/import/m4/strdup.m4: Update.
1417 * gnulib/import/m4/strerror.m4: Update.
1418 * gnulib/import/m4/string_h.m4: Update.
1419 * gnulib/import/m4/strstr.m4: Update.
1420 * gnulib/import/m4/strtok_r.m4: Update.
1421 * gnulib/import/m4/sys_socket_h.m4: Update.
1422 * gnulib/import/m4/sys_stat_h.m4: Update.
1423 * gnulib/import/m4/sys_time_h.m4: Update.
1424 * gnulib/import/m4/sys_types_h.m4: Update.
1425 * gnulib/import/m4/tempname.m4: Update.
1426 * gnulib/import/m4/time_h.m4: Update.
1427 * gnulib/import/m4/unistd-safer.m4: Update.
1428 * gnulib/import/m4/unistd_h.m4: Update.
1429 * gnulib/import/m4/warn-on-use.m4: Update.
1430 * gnulib/import/m4/wchar_h.m4: Update.
1431 * gnulib/import/m4/wchar_t.m4: Update.
1432 * gnulib/import/m4/wctype_h.m4: Update.
1433 * gnulib/import/m4/wint_t.m4: Update.
1434 * gnulib/import/malloc.c: Update.
1435 * gnulib/import/malloc/scratch_buffer.h: Update.
1436 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1437 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1438 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1439 * gnulib/import/malloca.c: Update.
1440 * gnulib/import/malloca.h: Update.
1441 * gnulib/import/malloca.valgrind: Update.
1442 * gnulib/import/math.in.h: Update.
1443 * gnulib/import/mbrtowc.c: Update.
1444 * gnulib/import/mbsinit.c: Update.
1445 * gnulib/import/mbsrtowcs-impl.h: Update.
1446 * gnulib/import/mbsrtowcs-state.c: Update.
1447 * gnulib/import/mbsrtowcs.c: Update.
1448 * gnulib/import/memchr.c: Update.
1449 * gnulib/import/memmem.c: Update.
1450 * gnulib/import/mempcpy.c: Update.
1451 * gnulib/import/memrchr.c: Update.
1452 * gnulib/import/mkdir.c: Update.
1453 * gnulib/import/mkstemp.c: Update.
1454 * gnulib/import/msvc-inval.c: Update.
1455 * gnulib/import/msvc-inval.h: Update.
1456 * gnulib/import/msvc-nothrow.c: Update.
1457 * gnulib/import/msvc-nothrow.h: Update.
1458 * gnulib/import/open.c: Update.
1459 * gnulib/import/openat-die.c: Update.
1460 * gnulib/import/openat-priv.h: Update.
1461 * gnulib/import/openat-proc.c: Update.
1462 * gnulib/import/openat.c: Update.
1463 * gnulib/import/openat.h: Update.
1464 * gnulib/import/opendir.c: Update.
1465 * gnulib/import/pathmax.h: Update.
1466 * gnulib/import/pipe-safer.c: Update.
1467 * gnulib/import/rawmemchr.c: Update.
1468 * gnulib/import/readdir.c: Update.
1469 * gnulib/import/readlink.c: Update.
1470 * gnulib/import/realloc.c: Update.
1471 * gnulib/import/ref-add.sin: Update.
1472 * gnulib/import/ref-del.sin: Update.
1473 * gnulib/import/rename.c: Update.
1474 * gnulib/import/rewinddir.c: Update.
1475 * gnulib/import/rmdir.c: Update.
1476 * gnulib/import/same-inode.h: Update.
1477 * gnulib/import/save-cwd.c: Update.
1478 * gnulib/import/save-cwd.h: Update.
1479 * gnulib/import/scratch_buffer.h: Update.
1480 * gnulib/import/secure_getenv.c: Update.
1481 * gnulib/import/setenv.c: Update.
1482 * gnulib/import/signal.in.h: Update.
1483 * gnulib/import/stat-time.c: Update.
1484 * gnulib/import/stat-time.h: Update.
1485 * gnulib/import/stat-w32.c: Update.
1486 * gnulib/import/stat-w32.h: Update.
1487 * gnulib/import/stat.c: Update.
1488 * gnulib/import/stdbool.in.h: Update.
1489 * gnulib/import/stddef.in.h: Update.
1490 * gnulib/import/stdint.in.h: Update.
1491 * gnulib/import/stdio.in.h: Update.
1492 * gnulib/import/stdlib.in.h: Update.
1493 * gnulib/import/str-two-way.h: Update.
1494 * gnulib/import/strchrnul.c: Update.
1495 * gnulib/import/strdup.c: Update.
1496 * gnulib/import/streq.h: Update.
1497 * gnulib/import/strerror-override.c: Update.
1498 * gnulib/import/strerror-override.h: Update.
1499 * gnulib/import/strerror.c: Update.
1500 * gnulib/import/string.in.h: Update.
1501 * gnulib/import/stripslash.c: Update.
1502 * gnulib/import/strnlen1.c: Update.
1503 * gnulib/import/strnlen1.h: Update.
1504 * gnulib/import/strstr.c: Update.
1505 * gnulib/import/strtok_r.c: Update.
1506 * gnulib/import/sys_stat.in.h: Update.
1507 * gnulib/import/sys_time.in.h: Update.
1508 * gnulib/import/sys_types.in.h: Update.
1509 * gnulib/import/tempname.c: Update.
1510 * gnulib/import/tempname.h: Update.
1511 * gnulib/import/time.in.h: Update.
1512 * gnulib/import/unistd--.h: Update.
1513 * gnulib/import/unistd-safer.h: Update.
1514 * gnulib/import/unistd.in.h: Update.
1515 * gnulib/import/unsetenv.c: Update.
1516 * gnulib/import/verify.h: Update.
1517 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1518 * gnulib/import/wchar.in.h: Update.
1519 * gnulib/import/wctype.in.h: Update.
1520 * gnulib/import/xalloc-oversized.h: Update.
1521 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1522 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1523
b0f492b9
GB
15242018-08-16 Gary Benson <gbenson@redhat.com>
1525
1526 PR gdb/13000:
1527 * gdb/main.c (captured_main_1): Exit with nonzero status
1528 in batch mode if the last command to be executed failed.
1529 * NEWS: Mention the above.
1530
2362e7f7
SM
15312018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1532
1533 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1534 end of warning message.
1535
4f4aedeb
AH
15362018-08-29 Alan Hayward <alan.hayward@arm.com>
1537
1538 PR gdb/22943:
1539 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1540 (aarch64_extract_return_value): Use
1541 aapcs_is_vfp_call_or_return_candidate.
1542 (aarch64_return_in_memory): Likewise.
1543 (aarch64_store_return_value): Likewise.
1544
0e745c60
AH
15452018-08-29 Alan Hayward <alan.hayward@arm.com>
1546
1547 * aarch64-tdep.c
1548 (aapcs_is_vfp_call_or_return_candidate): Make static
1549 (pass_in_v_or_stack): Remove function.
1550 (pass_in_v_vfp_candidate): New function.
1551 (aarch64_push_dummy_call): Check for float register candidates.
1552
ea92689a
AH
15532018-08-29 Alan Hayward <alan.hayward@arm.com>
1554
1555 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1556 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1557 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1558
ad202fcc
SM
15592018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1560
1561 PR build/23399
1562 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1563 (struct ipa_sym_addresses): Rename to...
1564 (struct ipa_sym_addresses_common): ... this.
1565 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1566
5fe3f3e4
TT
15672018-08-28 Tom Tromey <tom@tromey.com>
1568
1569 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1570 (token_fifo): Now a std::vector.
1571 (yylex, c_parse): Update.
1572 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1573 (token_fifo): Now a std::vector.
1574 (yylex, d_parse): Update.
1575 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1576 (token_fifo): Now a std::vector.
1577 (yylex, go_parse): Update.
1578
858d8004
SM
15792018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1580
1581 * parser-defs.h (struct type_stack) <elements>: Change type to
1582 std::vector<union type_stack_elt>.
1583 <depth, size>: Remove.
1584 * parse.c (parse_exp_in_context_1): Adjust.
1585 (type_stack_reserve): Remove.
1586 (check_type_stack_depth): Remove.
1587 (insert_into_type_stack): Adjust to std::vector.
1588 (insert_type): Likewise.
1589 (push_type): Likewise.
1590 (push_type_int): Likewise.
1591 (insert_type_address_space): Likewise.
1592 (pop_type): Likewise.
1593 (pop_type_int): Likewise.
1594 (pop_typelist): Likewise.
1595 (pop_type_stack): Likewise.
1596 (append_type_stack): Likewise.
1597 (push_type_stack): Likewise.
1598 (get_type_stack): Likewise.
1599 (type_stack_cleanup): Likewise.
1600 (push_typelist): Likewise.
1601 (follow_types): Likewise.
1602 (_initialize_parse): Likewise.
1603
416a69af
HAQ
16042018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1605
1606 * NEWS: Mention csky target.
1607
9d24df82
HAQ
16082018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1609 Hafiz Abid Qadeer <abidh@codesourcery.com>
1610 Don Breazeal <donb@codesourcery.com>
1611
1612 * csky-linux-tdep.c: New file.
1613 * csky-tdep.c: Likewise.
1614 * csky-tdep.h: Likewise.
1615 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1616 csky-tdep.o.
1617 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1618 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1619 * configure.tgt: Add csky support.
1620
3bf9c013
JV
16212018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1622
1623 * python/py-framefilter.c (py_print_frame): Print frame architecture
1624 when printing on an MI output.
1625
d3d8724a
TT
16262018-08-27 Tom Tromey <tom@tromey.com>
1627
1628 PR build/23087:
1629 * configure: Rebuild.
1630 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1631
1885053b
TT
16322018-08-27 Tom Tromey <tom@tromey.com>
1633
1634 * aarch64-linux-tdep.c
1635 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1636 casts to int.
1637
8406672e
TT
16382018-08-27 Tom Tromey <tom@tromey.com>
1639
1640 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1641 unsigned.
1642 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1643 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1644 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1645 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1646 unsigned.
1647
ec40cf90
TT
16482018-08-27 Tom Tromey <tom@tromey.com>
1649
1650 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1651 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1652
7bc02706
TT
16532018-08-27 Tom Tromey <tom@tromey.com>
1654
1655 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1656 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1657 ULONGEST_MAX.
1658 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1659 ULONGEST_MAX.
1660 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1661 ULONGEST_MAX.
1662 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1663 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1664 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1665 ULONGEST_MAX.
1666 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1667 (ppc64_linux_sigaction_tramp_frame)
1668 (ppc32_linux_sighandler_tramp_frame)
1669 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1670 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1671 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1672 * mn10300-linux-tdep.c (am33_linux_sigframe)
1673 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1674 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1675 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1676 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1677 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1678 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1679 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1680 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1681 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1682 * microblaze-linux-tdep.c
1683 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1684 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1685 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1686 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1687 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1688 * common/common-types.h (ULONGEST_MAX): New define.
1689 (CORE_ADDR_MAX): Fix formatting.
1690 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1691 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1692 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1693 (arm_linux_rt_sigreturn_tramp_frame)
1694 (arm_eabi_linux_sigreturn_tramp_frame)
1695 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1696 (thumb2_eabi_linux_sigreturn_tramp_frame)
1697 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1698 (arm_linux_restart_syscall_tramp_frame)
1699 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1700 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1701 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1702 ULONGEST_MAX.
1703 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1704
70ab8ccd
TT
17052018-08-27 Tom Tromey <tom@tromey.com>
1706
1707 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1708 CORE_ADDR_MAX.
1709 * mips-tdep.c (mips_deal_with_atomic_sequence)
1710 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1711 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1712 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1713 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1714 CORE_ADDR_MAX.
1715 * aarch64-tdep.c (aarch64_software_single_step): Use
1716 CORE_ADDR_MAX.
1717
896a7aa6
TT
17182018-08-27 Tom Tromey <tom@tromey.com>
1719
1720 * linespec.c (complete_linespec_component): Add cast to "char".
1721 * completer.c (completion_tracker::build_completion_result): Add
1722 cast to "char".
1723
dd33d41d
SM
17242018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1725
1726 * solist.h (struct solist, struct target_so_ops): Fix
1727 indentation.
1728
c645cda4
SM
17292018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1730
1731 * ada-tasks.c (ada_task_info_s): Remove typedef.
1732 (DEF_VEC_O(ada_task_info_s)): Remove.
1733 (struct ada_tasks_inferior_data): Initialize fields.
1734 <task_list>: Make an std::vector.
1735 (get_ada_tasks_inferior_data): Allocate with new.
1736 (ada_get_task_number): Adjust.
1737 (get_task_number_from_id): Likewise.
1738 (valid_task_id): Likewise.
1739 (ada_get_task_info_from_ptid): Likewise.
1740 (iterate_over_live_ada_tasks): Likewise.
1741 (add_ada_task): Likewise.
1742 (read_known_tasks): Likewise.
1743 (ada_build_task_list): Likewise.
1744 (print_ada_task_info): Likewise.
1745 (info_task): Likewise.
1746 (task_command_1): Likewise.
1747
39e7af3e
SM
17482018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1749
1750 * ada-lang.c (add_angle_brackets): Return std::string.
1751
bbbbbcee
SM
17522018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1753
1754 * python/py-threadevent.c (py_get_event_thread): Initialize
1755 pythread.
1756
d98fc15b
PA
17572018-08-24 Pedro Alves <palves@redhat.com>
1758
1759 * python/py-bpevent.c (create_breakpoint_event_object): Use
1760 copy-initialization.
1761 * python/py-continueevent.c (emit_continue_event): Use
1762 copy-initialization.
1763 * python/py-exitedevent.c (create_exited_event_object): Return a
1764 gdbpy_ref<>.
1765 (emit_exited_event): Use copy-initialization.
1766 * python/py-inferior.c (python_new_inferior)
1767 (python_inferior_deleted, add_thread_object): Use
1768 copy-initialization.
1769 * python/py-infevents.c (create_inferior_call_event_object)
1770 (create_register_changed_event_object)
1771 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1772 (emit_inferior_call_event, emit_memory_changed_event)
1773 (emit_register_changed_event): Use copy-initialization.
1774 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1775 Return a gdbpy_ref<>.
1776 (emit_new_objfile_event): Use copy-initialization.
1777 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1778 (emit_clear_objfiles_event): Use copy-initialization.
1779 * python/py-signalevent.c (create_signal_event_object): Use
1780 copy-initialization.
1781 * python/py-threadevent.c (create_thread_event_object): Use
1782 copy-initialization.
1783
da3c8738
PA
17842018-08-24 Pedro Alves <palves@redhat.com>
1785 Simon Marchi <simon.marchi@ericsson.com>
1786
1787 PR gdb/23379
1788 * python/py-continueevent.c: Include "gdbthread.h".
1789 (create_continue_event_object): Add intro comment. Add 'ptid'
1790 parameter. Use it to find thread to pass to
1791 create_thread_event_object.
1792 (emit_continue_event): Pass PTID down to
1793 create_continue_event_object.
1794 * python/py-event.h (py_get_event_thread): Declare.
1795 (create_thread_event_object): Remove default from 'thread'
1796 parameter.
1797 * python/py-stopevent.c (create_stop_event_object): Use
1798 py_get_event_thread.
1799 * python/py-threadevent.c (get_event_thread): Rename to ...
1800 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1801 and use it to find the thread.
1802 (create_thread_event_object): Assert that THREAD isn't null.
1803 Don't find the event thread here.
1804
26457a9c
KB
18052018-08-23 Kevin Buettner <kevinb@redhat.com>
1806
1807 * block.h (blockrange, blockranges): New struct declarations.
1808 (struct block): Add new field named `ranges'.
1809 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1810 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1811 macros for accessing ranges in struct block.
1812 (make_blockranges): New declaration.
1813 block.c (make_blockranges): New function.
2d5f09ec
KB
1814 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1815 for block.
fc811edd
KB
1816 * symtab.h (find_pc_partial_function): Add new parameter `block'.
1817 * blockframe.c (cache_pc_function_block): New static global.
1818 (clear_pc_function_cache): Clear cache_pc_function_block.
1819 (find_pc_partial_function): Move comment to symtab.h. Add
1820 support for non-contiguous blocks.
e9480230
KB
1821 * cli/cli-cmds.c (block.h): Include.
1822 (print_disassembly): Handle printing of non-contiguous blocks.
1823 (disassemble_current_function): Likewise.
1824 (disassemble_command): Likewise.
26457a9c 1825
2b1ffcfd
KB
1826 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
1827 BLOCK_START.
1828 * blockframe.c (get_pc_function_start): Likewise.
1829 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
1830 (gcc_symbol_address): Likewise.
1831 * compile/compile-object-run.c (compile_object_run): Likewise.
1832 * compile/compile.c (get_expr_block_and_pc): Likewise.
1833 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
1834 (func_addr_to_tail_call_list): Likewise.
1835 * findvar.c (default_read_var_value): Likewise.
1836 * inline-frame.c (inline_frame_this_id): Likewise.
1837 (skip-inline_frames): Likewise.
1838 * infcmd.c (until_next_command): Likewise.
1839 * linespec.c (convert_linespec_to_sals): Likewise.
1840 * parse.c (parse_exp_in_context_1): Likewise.
1841 * printcmd.c (build_address_symbolic): likewise.
1842 (info_address_command): Likewise.
1843 symtab.c (find_function_start_sal): Likewise.
1844 (skip_prologue_sal): Likewise.
1845 (find_function_alias_target): Likewise.
1846 (find_gnu_ifunc): Likewise.
1847 * stack.c (find_frame_funname): Likewise.
1848 * symtab.c (fixup_symbol_section): Likewise.
1849 (find_function_start_sal): Likewise.
1850 (skip_prologue_sal): Likewsie.
1851 (find_function_alias_target): Likewise.
1852 (find_gnu_ifunc): Likewise.
1853 * tracepoint.c (info_scope_command): Likewise.
1854 * value.c (value_fn_field): Likewise.
1855
9644dc3a
KB
1856 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
1857 in place of find_pc_partial_function.
1858 * blockframe.c (find_function_entry_range_from_pc): New function.
1859 * symtab.h (find_function_entry_range_from_pc): Declare and document.
1860 * objfiles.c (objfile_relocate1): Relocate start and end addresses
1861 for each range in a block.
1862
1863
12a0d0f6
XR
18642018-08-23 Xavier Roirand <roirand@adacore.com>
1865
1866 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
1867 incrementation.
1868
d1012b8e
SM
18692018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1870
1871 * solib-svr4.c (read_program_headers_from_bfd): Return
1872 gdb::optional<gdb::byte_vector>.
1873 (svr4_exec_displacement): Adjust.
1874
17658d46
SM
18752018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1876
1877 * solib-svr4.c (read_program_header): Return
1878 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
1879 (find_program_interpreter): Return
1880 gdb::optional<gdb::byte_vector>.
1881 (scan_dyntag_auxv): Adjust.
1882 (enable_break): Adjust.
1883 (svr4_exec_displacement): Adjust.
1884
ae739fe7
SM
18852018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1886
1887 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
1888 * inf-child.c (inf_child_target::terminal_save_inferior): New.
1889
467dc1e2
SM
18902018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1891
1892 * guile/scm-string.c (gdbscm_scm_from_printf): Use
1893 string_vprintf.
1894 * guile/scm-utils.c (gdbscm_printf): Likewise.
1895 * serial.c (serial_printf): Likewise.
1896 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
1897
6d52907e
JV
18982018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
1899
1900 * stack.c (print_frame): Print frame architecture when printing on
1901 an MI output.
1902 * NEWS: Mention new "arch" attribute in frame output.
1903
9758a8f8
AH
19042018-08-21 Alan Hayward <alan.hayward@arm.com>
1905
1906 * arch/aarch64.h (aarch64_regnum): Update comment.
1907
1461bdac
AH
19082018-08-21 Alan Hayward <alan.hayward@arm.com>
1909
1910 * NEWS: Add SVE to 8.2 section.
1911
4895f384
PA
19122018-08-21 Pedro Alves <palves@redhat.com>
1913
1914 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
1915 out from gdbscm_parse_function_args.
1916 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
1917 gdbscm_parse_function_args_1.
1918
a4497d2f
SM
19192018-08-21 Simon Marchi <simon.marchi@ericsson.com>
1920
1921 PR gdb/17816
1922 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
1923 operator.
1924
c44deb73
SM
19252018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
1926
1927 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
1928
be2d111a
MS
19292018-08-19 Michael Spang <spang@google.com>
1930
1931 PR gdb/11786
1932 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
1933 for PT_TLS segments.
1934
a6b786da
KB
19352018-08-18 Kevin Buettner <kevinb@redhat.com>
1936
1937 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
1938 dwarf_variable_value.
1939 * dwarf2-frame.c (class dwarf_expr_executor):
1940 Add override for dwarf_variable_value.
1941 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
1942 (class symbol_needs_eval_context): Likewise.
1943 (indirect_synthetic_pointer): Add forward declaration.
1944 (sect_variable_value): New function.
1945 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
1946 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
1947 for DW_OP_GNU_variable_value.
1948
89fbedf3
TT
19492018-08-16 Tom Tromey <tom@tromey.com>
1950
1951 * top.c (read_command_file): Update.
1952 (command_line_input): Remove "repeat" argument.
1953 * ada-lang.c (get_selections): Update.
1954 * linespec.c (decode_line_2): Update.
1955 * defs.h (command_line_input): Remove argument.
1956 * cli/cli-script.c (read_next_line): Update.
1957 * python/py-gdb-readline.c: Update.
1958
12582533
TT
19592018-08-17 Tom Tromey <tom@tromey.com>
1960
1961 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
1962 command_line_input.
1963
49514353
TT
19642018-08-15 Tom Tromey <tom@tromey.com>
1965
1966 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
1967
26fb3983
JV
19682018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
1969
1970 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
1971 If used, use find_pc_partial_function to find address range
1972 to disassemble.
1973 * mi/mi-main.c (mi_cmd_list_features): Report
1974 "data-disassemble-a-option" feature.
1975 * NEWS: Mention new -data-disassemble option -a.
1976
a97b53dd
TT
19772018-08-13 Tom Tromey <tom@tromey.com>
1978
1979 * common/common-defs.h (_FORTIFY_SOURCE): Define.
1980
0c76e06d
AH
19812018-08-13 Alan Hayward <alan.hayward@arm.com>
1982
1983 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
1984 (aarch64_linux_collect_sve_regset): Likewise.
1985 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
1986 * regcache.h (regcache_map_entry_size): New function.
1987
b7fd65b9
AH
19882018-08-13 Alan Hayward <alan.hayward@arm.com>
1989
1990 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
1991 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
1992 (SVE_HEADER_VL_LENGTH): Likewise.
1993 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
1994 (SVE_HEADER_FLAGS_LENGTH): Likewise.
1995 (SVE_HEADER_RESERVED_LENGTH): Likewise.
1996 (SVE_HEADER_SIZE_OFFSET): Likewise.
1997 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
1998 (SVE_HEADER_VL_OFFSET): Likewise.
1999 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2000 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2001 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2002 (SVE_HEADER_SIZE): Likewise.
2003 (aarch64_linux_core_read_vq): Add function.
2004 (aarch64_linux_core_read_description): Check for SVE section.
2005
a616bb94
AH
20062018-08-13 Alan Hayward <alan.hayward@arm.com>
2007
2008 * aarch64-fbsd-tdep.c
2009 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2010 collect_size.
2011 * aarch64-linux-tdep.c
2012 (aarch64_linux_iterate_over_regset_sections): Likewise.
2013 * alpha-linux-tdep.c
2014 (alpha_linux_iterate_over_regset_sections):
2015 * alpha-nbsd-tdep.c
2016 (alphanbsd_iterate_over_regset_sections): Likewise.
2017 * amd64-fbsd-tdep.c
2018 (amd64fbsd_iterate_over_regset_sections): Likewise.
2019 * amd64-linux-tdep.c
2020 (amd64_linux_iterate_over_regset_sections): Likewise.
2021 * arm-bsd-tdep.c
2022 (armbsd_iterate_over_regset_sections): Likewise.
2023 * arm-fbsd-tdep.c
2024 (arm_fbsd_iterate_over_regset_sections): Likewise.
2025 * arm-linux-tdep.c
2026 (arm_linux_iterate_over_regset_sections): Likewise.
2027 * corelow.c (get_core_registers_cb): Likewise.
2028 (core_target::fetch_registers): Likewise.
2029 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2030 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2031 * gdbarch.h (void): Regenerate.
2032 * gdbarch.sh: Add supply_size and collect_size.
2033 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2034 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2035 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2036 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2037 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2038 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2039 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2040 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2041 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2042 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2043 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2044 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2045 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2046 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2047 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2048 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2049 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2050 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2051 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2052 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2053 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2054 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2055 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2056 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2057 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2058 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2059 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2060 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2061 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2062 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2063
a9925d4f
SM
20642018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2065
2066 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2067 with string_printf.
2068
ad3a68e9
KS
20692018-08-10 Keith Seitz <keiths@redhat.com>
2070
2071 * compile/compile-c-support.c (add_code_header, add_code_footer):
2072 Move into policy class.
2073 (c_push_user_expression, pop_user_expression_nop)
2074 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2075 (compile_program): New host class.
2076 (c_compile_program): New typedef.
2077 (c_compute_porgram): Use c_compile_program.
2078
0cfbf430
KS
20792018-08-10 Keith Seitz <keiths@redhat.com>
2080
2081 * compile/compile-internal.h (compile_instance::~compile_instance):
2082 Remove calls to htab_delete.
2083 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2084 * compile.c (compile_instance::compile_instance): Initialize
2085 htab unique pointers.
2086 (compile_instance::get_cached_type, compile_instance::insert_type)
2087 (compile_instance::error_symbol_once): Update for unique_ptr.
2088
946d3d10
KS
20892018-08-10 Keith Seitz <keiths@redhat.com>
2090
2091 * compile/compile-c-symbols.c (struct symbol_error)
2092 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2093 (compile_instance::insert_symbol_error)
2094 (compile_instance::error_symbol_once): Move to ...
2095 * compile/compile.c: ... here.
2096
9cdfd9a2
KS
20972018-08-10 Keith Seitz <keiths@redhat.com>
2098
2099 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2100 instead of `new_compile_instance'.
2101 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2102 Update description.
2103 If the symbol error map is not initialized, create it.
2104 (generate_c_for_for_one_symbol): Do not check/initialize
2105 the symbol error map.
2106 * compile/compile-c-types.c (compile_c_instance): Make a class.
2107 Update all callers.
2108 (compile_instance::compile_instance): Initialize the type cache.
2109 (get_cached_type): New function.
2110 (insert_type): Update description.
2111 (compile_c_instance::m_default_cflags): Define.
2112 (convert_type): Update description. Use get_cached_type.
2113 (delete_instance): Moved to destructor.
2114 (new_compile_instance): Moved to constructor.
2115 * compile/compile-c.h (compile_c_instance): Make class inheriting
2116 from compile_instance.
2117 <base>: Remove field.
2118 <type_map, symbol_err_map>: Move to base class.
2119 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2120 * compile/compile-internal.h (compile_instance): Make class.
2121 <type_map_t, symbol_err_map_t>: Define.
2122 <fe>: Rename to `m_gcc_fe'.
2123 <scope, block, gcc_target_options>: Add `m_' prefix.
2124 <m_type_map, m_symbol_err_map>: New fields, moved from
2125 compile_c_instance.
2126 <destroy>: Remove.
2127 (convert_type, new_compile_instance): Remove.
2128 * compile/compile.c (cleanup_compile_instance): Remove.
2129 (compile_to_object): Use unique_ptr to eliminate cleanups.
2130 (compile_instance::set_print_callback, compile_instance::version)
2131 (compile_instance::set_verbose)
2132 (compile_instance::set_driver_filename)
2133 (compile_instance::set_triplet_regexp)
2134 (compile_instance::set_arguments)
2135 (compile_instance::set_source_file)
2136 (compile_instance::compile): Define.
2137
18cdc6d8
KS
21382018-08-10 Keith Seitz <keiths@redhat.com>
2139
2140 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2141 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2142 gcc-c-fe.def to define C plugin.
2143 (delete_instance): Delete `c_plugin'.
2144 (new_compile_instance): Initialize `c_plugin'.
2145 * compile/compile-c.h: Include gcc_c_plugin.h.
2146 (struct compile_c_instance) <c_plugin>: New member.
2147 * gcc-c-plugin.h: New file.
2148 Update all callers with API change.
2149
b7dc48b4
KS
21502018-08-10 Keith Seitz <keiths@redhat.com>
2151
2152 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2153 (HFILES_NO_SRCDIR): ... to here.
2154 Add compile-internal.h and compile-c.h.
2155 * compile/compile-c-support.c: Include compile-c.h.
2156 * compile/compile-c-symbols.c: Include compile-c.h.
2157 (generate_c_for_variable_locations): Update comment.
2158 * compile/compile-c-types.c: Include compile-c.h.
2159 * compile/compile-c.h: New file -- moved C language declarations
2160 from other files here.
2161 * compile/compile-internal.h: Do not include hashtab.h or
2162 common/enum-flags.h.
2163 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2164 (gcc_convert_symbol, gcc_symbol_address)
2165 (generate_c_for_variable_locations, c_get_mode_for_size)
2166 (c_get_range_decl_name): Definitions moved to compile-c.h.
2167 * compile/compile-loc2c.c: Include compile-c.h.
2168
6f36b6d2
KS
21692018-08-10 Keith Seitz <keiths@redhat.com>
2170
2171 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2172 (c_symbol_substitution_name): ... this.
2173 Update all callers.
2174
bd923e51
KS
21752018-08-10 Keith Seitz <keiths@redhat.com>
2176
2177 * compile/compile-c-support.c (c_compute_program): Use
2178 unique_xmalloc_ptr to eliminate cleanup.
2179 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2180 Return a unique_xmalloc_ptr and eliminate cleanup.
2181 * compile/compile-internal.h (generate_c_for_variable_locations):
2182 Return unique_xmalloc_ptr and update description.
2183
dbd534fe
AH
21842018-08-10 Alan Hayward <alan.hayward@arm.com>
2185
2186 * corelow.c (core_target::get_core_register_section): Rename
2187 min_size to section_min_size.
2188
90ad3654
JW
21892018-08-09 Jim Wilson <jimw@sifive.com>
2190
52a187f8
JW
2191 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2192 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2193 * NEWS: Mention new GNU/Linux RISC-V target.
2194 * configure.host: Add riscv*-*-linux*.
2195 * configure.nat: Add riscv*.
2196 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 2197 * riscv-linux-nat.c: New file.
90ad3654
JW
2198 * riscv-linux-tdep.c: New file.
2199
aff4e175
AB
22002018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2201
2202 * infrun.c (resume): Make static, add forward declaration.
2203 (proceed): Update header comment.
2204 * infrun.h (resume): Delete declaration.
2205
06ab9219
TT
22062018-08-09 Tom Tromey <tom@tromey.com>
2207
2208 * riscv-tdep.h: Minor formatting fixes.
2209
83c8d318
SM
22102018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2211
2212 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2213 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2214 (test_mkdir_recursive): Likewise.
2215 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2216
5ff2bbae
AB
22172018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2218
2219 * valarith.c (value_subscripted_rvalue): If an array is not in
2220 memory, and we don't know the upper bound, then we can't know that
2221 the requested element exists or not.
2222
fdbac7d8
SM
22232018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2224
2225 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2226 (target_options_to_string): Add comment.
2227
83202f7a
TT
22282018-08-08 Tom Tromey <tom@tromey.com>
2229
2230 * unittests/scoped_mmap-selftests.c: Check result of "write".
2231
411baa47
JW
22322018-08-08 Jim Wilson <jimw@sifive.com>
2233
5c720ed8
JW
2234 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2235 (decode_register_index_short): New.
2236 (decode_j_type_insn, decode_cj_type_insn): New.
2237 (decode_b_type_insn, decode_cb_type_insn): New.
2238 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2239 local xlen. Check xlen when decoding ambiguous compressed insns. In
2240 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2241 is_c_sw_insn instead of is_sw_insn.
2242 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2243 (riscv_software_single_step): New.
2244 * riscv-tdep.h (riscv_software_single_step): Declare.
2245
411baa47
JW
2246 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2247 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2248
9d4a934c
AB
22492018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2250
2251 PR gdb/18050:
2252 * target.c (dispose_inferior): Don't dispose of inferiors that are
2253 already killed.
2254
ff36536c
SN
22552018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2256
2257 * remote.c (remote_target::download_tracepoint): Change char* to
2258 const char*.
2259
09ce46f2
SM
22602018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2261
2262 * target.h (target_options_to_string): Return an std::string.
2263 * target.c (str_comma_list_concat_elem): Return void, use
2264 std::string.
2265 (do_option): Likewise.
2266 (target_options_to_string): Return an std::string.
2267 * linux-nat.c (linux_nat_target::wait): Adjust.
2268 * target-debug.h (target_debug_print_options): Adjust.
2269
9c612964
TT
22702018-08-07 Tom Tromey <tom@tromey.com>
2271
2272 * Makefile.in (CPPFLAGS): New variable.
2273 (INTERNAL_CPPFLAGS): Use it.
2274
7d11235d
SM
22752018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2276
2277 * NEWS: Mention the index cache.
2278
87d6a7aa
SM
22792018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2280
2281 * common/pathstuff.h (get_standard_cache_dir): New.
2282 * common/pathstuff.c (get_standard_cache_dir): New.
2283 * build-id.h (build_id_to_string): New.
2284 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2285 DEBUG_STR_SUFFIX): Move to here.
2286 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2287 DEBUG_STR_SUFFIX): Move from there.
2288 (write_psymtabs_to_index): Make non-static, add basename
2289 parameter. Write to temporary files, rename when done.
2290 (save_gdb_index_command): Adjust call to
2291 write_psymtabs_to_index.
2292 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2293 field.
2294 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2295 (get_gdb_index_contents_from_cache): New.
2296 (get_gdb_index_contents_from_cache_dwz): New.
2297 (dwarf2_initialize_objfile): Read index from cache.
2298 (dwarf2_build_psymtabs): Save to index.
2299 * dwarf-index-cache.h: New file.
2300 * dwarf-index-cache.c: New file.
2301 * dwarf-index-write.h: New file.
2302
8a99096f
SM
23032018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2304
2305 * gnulib/aclocal.m4: Re-generate.
2306 * gnulib/config.in: Re-generate.
2307 * gnulib/configure: Re-generate.
2308 * gnulib/import/Makefile.am: Re-generate.
2309 * gnulib/import/Makefile.in: Re-generate.
2310 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2311 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2312 * gnulib/import/m4/mkdir.m4: New file.
2313 * gnulib/import/mkdir.c: New file.
2314 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2315 module.
2316
5c831bb1
SM
23172018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2318
2319 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2320 * common/scoped_mmap.c: New file.
2321 * common/scoped_mmap.h (destroy): New method.
2322 (~scoped_mmap, reset): Use destroy.
2323 (scoped_mmap): New move constructor.
2324 (mmap_file): New declaration.
2325 * unittests/scoped_mmap-selftests.c (test_normal,
2326 test_invalid_filename, run_tests): New functions.
2327 (_initialize_scoped_mmap_selftests): Register selftest.
2328
4485a1c1
SM
23292018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2330
2331 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2332 (read_gdb_index_from_buffer): ... this. Remove section
2333 parameter, add buffer parameter.
2334 (get_gdb_index_contents_ftype,
2335 get_gdb_index_contents_dwz_ftype): New typedefs.
2336 (dwarf2_read_gdb_index): Add callback parameters to get the
2337 index contents.
2338 (get_gdb_index_contents_from_section): New.
2339 (dwarf2_initialize_objfile): Update call to
2340 dwarf2_read_gdb_index.
2341
528e1572
SM
23422018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2343
2344 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2345 (gdb_open_cloexec): Likewise.
2346 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2347 (commandline_from_pid): Likewise.
2348 (linux_xfer_osdata_threads): Likewise.
2349 (linux_xfer_osdata_fds): Likewise.
2350 * ada-lang.c (is_package_name): Likewise.
2351 * auxv.c (procfs_xfer_auxv): Likewise.
2352 * breakpoint.c (print_one_breakpoint_location): Use
2353 uiout::field_fmt.
2354 (print_one_catch_solib): Use string_printf.
2355 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2356 (add_pe_forwarded_sym): Likewise.
2357 * dwarf2read.c (create_type_unit_group): Likewise.
2358 (build_error_marker_type): Likewise.
2359 * infcall.c (get_function_name): Likewise.
2360 * valprint.c (print_converted_chars_to_obstack): Likewise.
2361 * xtensa-tdep.c (xtensa_register_type): Likewise.
2362
a7f25a84
SM
23632018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2364
2365 * remote.c (remote_target::download_tracepoint): Fix format
2366 string errors.
2367
296956be
PFC
23682018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2369
2370 * tracefile.c: Include common/byte-vector.h.
2371 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2372 with trace_regblock_size if needed. Update uses of buf.
2373
a04b9d62
PFC
23742018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2375
2376 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2377 std::vector<unsigned char>.
2378 * tracepoint.c (collection_list::collection_list): Remove
2379 m_regs_mask initializer from initializer list. Resize
2380 m_regs_mask using the largest remote register number.
2381 (collection_list::add_remote_register): Remove size check on
2382 m_regs_mask. Use at to access element.
2383 (collection_list::stringify): Change type of temp_buf to
2384 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2385 stringify the register mask. Use pack_hex_byte for the register
2386 mask.
2387
4277c4b8
PFC
23882018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2389
2390 * tracepoint.h (class collection_list) <add_register>: Remove.
2391 <add_remote_register, add_ax_registers, add_local_register>:
2392 Declare.
2393 <add_memrange>: Add scope parameter.
2394 * tracepoint.c (encode_actions_1): Likewise.
2395 (collection_list::add_register): Rename to ...
2396 (collection_list::add_remote_register): ... this. Update
2397 comment.
2398 (collection_list::add_ax_registers, add_local_register): New
2399 methods.
2400 (collection_list::add_memrange): Add scope parameter. Call
2401 add_local_register instead of add_register.
2402 (finalize_tracepoint_aexpr): New function.
2403 (collection_list::collect_symbol): Update calls to add_memrange.
2404 Call add_local_register instead of add_register. Call
2405 add_ax_registers. Call finalize_tracepoint_aexpr.
2406 (encode_actions_1): Get remote regnos for $reg action. Call
2407 add_remote_register, add_ax_registers, and add_local_register.
2408 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2409 (validate_actionline): Call finalize_tracepoint_aexpr.
2410
3df3a985
PFC
24112018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2412
2413 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2414 Replace array buf with gdb::char_vector buf, of size
2415 get_remote_packet_size (). Replace references to buf and
2416 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2417 and xsnprintf with snprintf. Raise errors if the buffer is too
2418 small.
2419
aa6f3694
PFC
24202018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2421
2422 * remote.c (remote_target::download_tracepoint): Fix the has_more
2423 predicate in the QTDP action list iteration.
2424
05abfc39
PFC
24252018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2426
2427 * remote.c (remote_target::download_tracepoint): Fix indentation
2428 in for block.
2429
821a2682
RO
24302018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2431
2432 * proc-api.c (_initialize_proc_api): Remove c, unused.
2433 * procfs.c (procfs_init_inferior): Remove signals, unused.
2434 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2435 unused.
2436
95347337
AB
24372018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2438 Andrew Burgess <andrew.burgess@embecosm.com>
2439
2440 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2441 'W_STOPCODE (0)' as this could be ambiguous.
2442
425699f5
SDJ
24432018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2444
2445 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2446 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2447 "ai_socktype").
2448
3e1d3d8c
TT
24492018-08-02 Tom Tromey <tom@tromey.com>
2450
2451 PR symtab/16842.
2452 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2453 symbols.
2454 (process_structure_scope): Likewise.
2455
15843549
XR
24562018-08-02 Xavier Roirand <roirand@adacore.com>
2457
2458 PR gdb/22629:
2459 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2460 kill inferior.
2461
b5bddbbb
TT
24622018-08-02 Tom Tromey <tom@tromey.com>
2463
2464 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2465 (darwin_suspend_inferior, darwin_resume_inferior)
2466 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2467 (darwin_check_new_threads): Check result of get_darwin_inferior.
2468
f61cfa07
JB
24692018-07-31 Joel Brobecker <brobecker@adacore.com>
2470
2471 GDB 8.1.1 released.
2472
5abe0f0c
JV
24732018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2474
2475 * varobj.c (varobj_get_path_expr_parent): Report an error if
2476 parent is a dynamic varobj.
2477
472fa5ee
SM
24782018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2479
2480 * gnulib/aclocal.m4: Re-generate.
2481 * gnulib/config.in: Re-generate.
2482 * gnulib/configure: Re-generate.
2483 * gnulib/import/Makefile.in: Re-generate.
2484 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2485 * gnulib/import/m4/onceonly.m4: Re-generate.
2486
1c28969e
SM
24872018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2488
2489 * target-descriptions.c (struct xml_test_tdesc): New.
2490 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2491 (record_xml_tdesc): Update.
2492 (maintenance_check_xml_descriptions): Update.
2493 * target-descriptions.h (record_xml_tdesc): Update comment.
2494
c8f2dc0d
AB
24952018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2496
2497 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2498 checking array bounds are defined.
2499
463c08d1
TT
25002018-07-30 Tom Tromey <tom@tromey.com>
2501
2502 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2503 irreflexivity violation.
2504
dba7455e
TT
25052018-07-30 Tom Tromey <tom@tromey.com>
2506
2507 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2508 * value.c (unpack_long): Remove lint code.
2509 * valops.c (value_ind): Remove lint code.
2510 * valarith.c (value_x_binop, value_x_unop, value_equal)
2511 (value_pos): Remove lint code.
2512
37cc0cae
TV
25132018-07-28 Tom de Vries <tdevries@suse.de>
2514
2515 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2516 with undefined upper bound as <optimized out>.
2517
129eb0f1
SDJ
25182018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2519
2520 * gcore.in: Rename variable "name" to "prefix". Expand
2521 "usage" text.
2522
6af79d7b
JT
25232018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2524
2525 * windows-nat.c (windows_nat_target::create_inferior): Update to
2526 call close() in global namespace.
2527
79748972
TT
25282018-07-26 Tom Tromey <tom@tromey.com>
2529
2530 * dwarf-index-write.c (add_address_entry): Don't add objfile
2531 offsets.
2532 * dbxread.c (find_stab_function): Rename from
2533 find_stab_function_addr. Return a bound_minimal_symbol.
2534 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2535 Don't add objfile offsets.
2536 (end_psymtab): Use raw_text_low, raw_text_high,
2537 MSYMBOL_VALUE_RAW_ADDRESS.
2538 (read_ofile_symtab): Update.
2539 (process_one_symbol): Update.
2540 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2541 offsets.
2542 (dw2_relocate): Remove.
2543 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2544 searching addrmap.
2545 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2546 Update.
2547 (process_psymtab_comp_unit_reader, add_partial_symbol)
2548 (add_partial_subprogram, dwarf2_ranges_read): Update.
2549 (load_partial_dies): Update.
2550 (add_address_entry): Don't add objfile offsets.
2551 (dwarf2_build_include_psymtabs): Update.
2552 (create_addrmap_from_aranges): Don't add objfile offsets.
2553 (dw2_find_pc_sect_compunit_symtab): Update.
2554 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2555 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2556 Update.
2557 (parse_partial_symbols): Don't add objfile offsets. Use
2558 raw_text_low, raw_text_high. Update.
2559 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2560 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2561 or call 'relocate' quick function. Clear psymbol_map.
2562 * psympriv.h (struct partial_symbol) <address>: Add section
2563 offset.
2564 <set_unrelocated_address>: Rename from set_address.
2565 <raw_text_low, raw_text_high>: New methods.
2566 <text_low, text_high>: Add objfile parameter.
2567 (add_psymbol_to_bcache): Add 'section' parameter. Call
2568 set_unrelocated_address.
2569 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2570 (find_pc_psymbol): Update.
2571 (fixup_psymbol_section, relocate_psymtabs): Remove.
2572 (dump_psymtab, psym_functions): Update.
2573 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2574 parameter.
2575 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2576 (start_psymtab_common): Update.
2577 * symfile-debug.c (debug_qf_relocate): Remove.
2578 (debug_sym_quick_functions): Update.
2579 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2580 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2581 Update.
2582
52948f01
TT
25832018-07-26 Tom Tromey <tromey@redhat.com>
2584
2585 * dbxread.c (end_psymtab): Use text_high_valid and
2586 text_low_valid.
2587 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2588 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2589 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2590 Update comment.
2591 <text_low_valid, text_high_valid>: New fields.
2592 <set_text_low, set_text_high>: Update.
2593 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2594
4ae976d1
TT
25952018-07-26 Tom Tromey <tom@tromey.com>
2596
2597 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2598 Update.
2599 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2600 textlow and texthigh fields.
2601 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2602 Update.
2603 * mdebugread.c (parse_lines, parse_partial_symbols)
2604 (psymtab_to_symtab_1): Update.
2605 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2606 Rename fields. Update comment. Now private.
2607 <text_low, text_high, set_text_low, set_text_high>: New methods.
2608 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2609 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2610 (start_psymtab_common, maintenance_info_psymtabs)
2611 (maintenance_check_psymtabs): Update.
2612 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2613 texthigh fields.
2614 (scan_xcoff_symtab): Update.
2615
02e9e7f7
TT
26162018-07-26 Tom Tromey <tromey@redhat.com>
2617
2618 * psympriv.h (struct partial_symbol) <unrelocated_address,
2619 address, set_address>: New methods.
2620 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2621 (fixup_psymbol_section, relocate_psymtabs): Update.
2622 (print_partial_symbols): Add 'objfile' parameter. Update.
2623 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2624 Update.
2625
8a6d4234
TT
26262018-07-26 Tom Tromey <tom@tromey.com>
2627
2628 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2629 (debug_names::write_psymbols): Update.
2630 * psympriv.h (struct partial_symbol): Derive from
2631 general_symbol_info.
2632 <obj_section>: New method.
2633 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2634 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2635 (find_pc_sect_psymbol, fixup_psymbol_section)
2636 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2637 (print_partial_symbols, recursively_search_psymtabs)
2638 (compare_psymbols, psymbol_hash, psymbol_compare)
2639 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2640 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2641
08994e1d
TT
26422018-07-26 Tom Tromey <tromey@redhat.com>
2643
2644 * dbxread.c (end_psymtab): Remove dead code.
2645
3c3bb058
AB
26462018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2647
2648 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2649 DWARF unwinders are disabled.
2650 * dwarf2-frame.c: Add dwarf2read.h include.
2651 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2652 disabled.
2653 (dwarf2_frame_unwinders_enabled_p): Define.
2654 (show_dwarf_unwinders_enabled_p): New function.
2655 (_initialize_dwarf2_frame): Register switch to control DWARF
2656 unwinder use.
2657 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2658 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2659 (show_dwarf_cmdlist): Remove static keyword.
2660 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2661 (show_dwarf_cmdlist): Declare.
2662 * NEWS: Document new feature.
2663
9e7f3bbb
TV
26642018-07-26 Tom de Vries <tdevries@suse.de>
2665
2666 PR breakpoints/23366
2667 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2668
506f5c41
TV
26692018-07-26 Tom de Vries <tdevries@suse.de>
2670
2671 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2672 DW_AT_count can't be translated to a dynamic prop.
2673
16f808ec
TV
26742018-07-25 Tom de Vries <tdevries@suse.de>
2675
2676 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2677 try/catch.
2678
d7154a8d
JV
26792018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2680
2681 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2682
a45389f6
JB
26832018-07-25 Joel Brobecker <brobecker@adacore.com>
2684
2685 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2686
380618d6
KS
26872018-07-24 Keith Seitz <keiths@redhat.comt
2688
2689 PR symtab/23010
2690 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2691 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2692 instead of add_symbol_to_list.
2693 (read_file_scope): Call prepare_one_comp_unit before reading
2694 any other DIEs.
2695
4b17aefe
SM
26962018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2697
2698 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2699
29d17e47
TT
27002018-07-24 Tom Tromey <tom@tromey.com>
2701
2702 * utils.c (malloc, realloc, free): Don't declare.
2703 * configure, config.in: Rebuild.
2704 * configure.ac: Don't check for declarations of free, malloc, or
2705 realloc.
2706
cf4088a9
SM
27072018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2708
2709 * aarch64-linux-nat.c
2710 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2711 variable.
2712 * arm-linux-nat.c (fetch_regs): Likewise.
2713 (store_regs): Likewise.
2714 (fetch_vfp_regs): Likewise.
2715 (store_vfp_regs): Likewise.
2716 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2717 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2718 (arm_linux_nat_target::insert_watchpoint): Likewise.
2719 (arm_linux_nat_target::remove_watchpoint): Likewise.
2720 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2721 Likewise.
2722 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2723 Likewise.
2724 * ppc-linux-nat.c (fetch_register): Likewise.
2725 (fetch_all_gp_regs): Likewise.
2726 (fetch_ppc_registers): Likewise.
2727 (store_all_gp_regs): Likewise.
2728 (store_ppc_registers): Likewise.
2729 (hwdebug_insert_point): Likewise.
2730 (can_use_watchpoint_cond_accel): Likewise.
2731 * remote-sim.c (gdb_os_write_stdout): Likewise.
2732
a0de763e
TT
27332018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2734 Tom Tromey <tom@tromey.com>
2735
2736 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2737 test for it.
2738 * configure: Rebuild.
2739
3b20124b
TT
27402018-07-22 Tom Tromey <tom@tromey.com>
2741
2742 * regformats/regdat.sh: Define xmltarget_${name} inside
2743 #ifndef IN_PROCESS_AGENT.
2744
8c8807f4
TT
27452018-07-22 Tom Tromey <tom@tromey.com>
2746
2747 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2748
c486b610
TT
27492018-07-22 Tom Tromey <tom@tromey.com>
2750
2751 * symfile.c (reread_symbols): Notify iter, not objfile.
2752
494f80a9
TT
27532018-07-22 Tom Tromey <tom@tromey.com>
2754
2755 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2756 Use arch_ops.
2757 (ravenscar_thread_target::prepare_to_store): Likewise.
2758
c51f6a54
TT
27592018-07-22 Tom Tromey <tom@tromey.com>
2760
2761 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2762 unused variable. Call value_fetch_lazy when needed.
2763 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2764 Remove unused variable. Call value_fetch_lazy when needed.
2765
374fd1fd
TT
27662018-07-22 Tom Tromey <tom@tromey.com>
2767
2768 * m32c-tdep.c (mark_dma): Return void.
2769 (make_regs): Remove unused declarations.
2770
d5e9a511
TT
27712018-07-22 Tom Tromey <tom@tromey.com>
2772
2773 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2774 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2775 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2776 bkscm_get_valid_block_smob_arg_unsafe for effect.
2777
996d693a
TT
27782018-07-22 Tom Tromey <tom@tromey.com>
2779
2780 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2781 value_type.
2782
15766370
TT
27832018-07-22 Tom Tromey <tom@tromey.com>
2784
2785 * windows-nat.c (saved_context): Conditionally define.
2786 * remote.c (remote_target::remote_btrace_maybe_reopen):
2787 Conditionally declare "warned".
2788 * inflow.c (sigquit_ours): Conditionally define.
2789 (new_tty): Move "tty" declaration inside #if.
2790 * guile/guile.c (guile_datadir): Conditionally define.
2791 * charset.c (set_be_le_names): Move some declarations inside #if.
2792 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2793 #if.
2794 (parse_xml_btrace_conf): Likewise.
2795
f4e80e13
TT
27962018-07-22 Tom Tromey <tom@tromey.com>
2797
2798 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2799
8d49165d
TT
28002018-07-22 Tom Tromey <tom@tromey.com>
2801
2802 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2803 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2804 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2805 * buildsym-legacy.c (get_macro_table): Remove unused variable.
2806 * stack.c (frame_apply_level_command): Remove unused variable.
2807 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2808 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2809 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2810 unused variable.
2811 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2812 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2813 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2814 variable.
2815 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2816 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2817 variable.
2818 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2819 Remove unused variable.
2820 * cli/cli-script.c (recurse_read_control_structure): Remove unused
2821 variable.
2822 * common/tdesc.c (print_xml_feature::visit): Remove unused
2823 variable.
2824 * compile/compile-object-load.c (store_regs): Remove unused
2825 variables.
2826 * complaints.c (clear_complaints): Remove unused variable.
2827 * corelow.c (core_target_open): Remove unused variable.
2828 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
2829 variable.
2830 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
2831 variable.
2832 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
2833 variable.
2834 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
2835 variable.
2836 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
2837 variable.
2838 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
2839 variable.
2840 * ia64-tdep.c (examine_prologue): Remove unused variable.
2841 * infcall.c (run_inferior_call): Remove unused variable.
2842 * inferior.c (exit_inferior): Remove unused variable.
2843 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
2844 * linespec.c (decode_line_2): Remove unused variable.
2845 * linux-nat.c (super_close): Remove.
2846 * linux-tdep.c (linux_info_proc): Remove unused variable.
2847 * mi/mi-main.c (mi_execute_command): Remove unused variable.
2848 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
2849 Remove unused variable.
2850 * parse.c (find_minsym_type_and_address): Remove unused variable.
2851 * printcmd.c (info_symbol_command, printf_floating): Remove unused
2852 variable.
2853 * python/py-breakpoint.c (bppy_set_commands): Remove unused
2854 variable.
2855 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
2856 variables.
2857 * record-btrace.c (record_btrace_target::store_registers): Remove
2858 unused variable.
2859 (cmd_show_record_btrace_cpu): Remove unused variable.
2860 * riscv-tdep.c (riscv_register_reggroup_p)
2861 (riscv_push_dummy_call, riscv_return_value): Remove unused
2862 variable.
2863 * rust-exp.y (literal): Remove unused variable.
2864 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
2865 unused variable.
2866 <STRUCTOP_ANONYMOUS>: Likewise.
2867 * s390-linux-tdep.c (s390_linux_init_abi_31)
2868 (s390_linux_init_abi_64): Remove unused variable.
2869 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
2870 (file_select_thread, net_windows_open, _initialize_ser_windows):
2871 Remove unused variables.
2872 * symtab.c (find_pc_sect_line): Remove unused variable.
2873 * target-memory.c (compute_garbled_blocks): Remove unused
2874 variable.
2875 (target_write_memory_blocks): Remove unused variable.
2876 * target.c (target_stack::unpush): Remove unused variables.
2877 * tracepoint.c (start_tracing, all_tracepoint_actions)
2878 (merge_uploaded_trace_state_variables)
2879 (print_one_static_tracepoint_marker): Remove unused variable.
2880 * unittests/basic_string_view/element_access/char/1.cc (test01):
2881 Remove unused variable.
2882 * windows-nat.c (windows_continue, windows_add_all_dlls)
2883 (do_initial_windows_stuff, windows_nat_target::create_inferior):
2884 Remove unused variables.
2885
17cbafdb
SM
28862018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2887
2888 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
2889 attr_profile in HAVE_ELF.
2890 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
2891 HAVE_ELF.
2892
0ee6c332
SM
28932018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
2894
2895 * frame.c (frame_register_unwind): Change parameter name.
2896 (frame_unwind_register): Likewise.
2897 (frame_unwind_register_value): Likewise.
2898 (frame_unwind_register_signed): Likewise.
2899 (frame_unwind_register_unsigned): Likewise.
2900 * frame.h (frame_register_unwind): Likewise.
2901 (frame_unwind_register): Likewise.
2902 (frame_unwind_register_value): Likewise.
2903 (frame_unwind_register_signed): Likewise.
2904 (frame_unwind_register_unsigned): Likewise.
2905 (frame_unwind_arch): Likewise.
2906
e2e31f10
MR
29072018-07-20 Maciej W. Rozycki <macro@mips.com>
2908
2909 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
2910 ISA maintenance.
2911
2d389915
MR
29122018-07-20 Maciej W. Rozycki <macro@mips.com>
2913
2914 * mips-linux-nat.c (mips_linux_nat_target::read_description):
2915 Call `get_ptrace_pid' rather than extracting the ptrace PID by
2916 hand.
2917
cbb09508
KS
29182018-07-20 Keith Seitz <keiths@redhat.com>
2919
2920 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
2921 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
2922 m_compunit_symtab, m_language>: Add "m_" prefix.
2923 Update all uses.
2924 * buildsym.c: Update all uses.
2925
bfe2e011
TT
29262018-07-20 Tom Tromey <tom@tromey.com>
2927
2928 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
2929 * buildsym.h (record_line_ftype): Remove typedef.
2930
0e6f3061
TT
29312018-07-20 Tom Tromey <tom@tromey.com>
2932
2933 * buildsym-legacy.h (augment_type_symtab): Don't declare.
2934 (end_expandable_symtab): Likewise.
2935 (end_symtab_get_static_block): Likewise.
2936 (end_symtab_from_static_block): Likewise.
2937 * buildsym-legacy.c (augment_type_symtab): Remove.
2938 (end_expandable_symtab): Remove.
2939 (end_symtab_get_static_block): Remove.
2940 (end_symtab_from_static_block): Remove.
2941
804d2729
TT
29422018-07-20 Tom Tromey <tom@tromey.com>
2943
2944 * dwarf2read.c: Include buildsym.h.
2945 (struct dwarf2_cu) <builder>: New method.
2946 (fixup_go_packaging): Update.
2947 (process_full_comp_unit, process_full_type_unit): Update. Don't
2948 use scoped_free_pendings.
2949 (using_directives): Add "cu" parameter, remove "language".
2950 (read_import_statement, setup_type_unit_groups, )
2951 (read_func_scope, read_lexical_block_scope)
2952 (dwarf2_record_block_ranges, read_namespace): Update.
2953 (lnp_state_machine::lnp_state_machine): Add cu parameter.
2954 (lnp_state_machine::handle_end_sequence): Update.
2955 (class lnp_state_machine) <m_cu>: New member.
2956 <m_record_line_callback>: Remove.
2957 <m_currently_recording_lines>: New member.
2958 (lnp_state_machine::handle_set_file): Update.
2959 (noop_record_line): Remove.
2960 (dwarf_record_line_p): Add cu parameter.
2961 (dwarf_record_line_1, dwarf_finish_line): Likewise.
2962 (lnp_state_machine::record_line)
2963 (lnp_state_machine::lnp_state_machine)
2964 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2965 (dwarf_decode_lines): Update.
2966 (dwarf2_start_subfile): Add cu parameter.
2967 (dwarf2_start_symtab, new_symbol): Update.
2968 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
2969 Remove dwarf2_per_objfile parameter.
2970 (dwarf_decode_macros): Update.
2971
80e649fc
TT
29722018-07-20 Tom Tromey <tom@tromey.com>
2973
2974 * stabsread.c (define_symbol): Update.
2975 * buildsym-legacy.h (get_buildsym_compunit): Declare.
2976 * dwarf2read.c (new_symbol): Update.
2977 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
2978 * cp-namespace.c: Include buildsym.h.
2979 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
2980 * buildsym-legacy.c (get_buildsym_compunit): New function.
2981
0baae8db
TT
29822018-07-20 Tom Tromey <tom@tromey.com>
2983
2984 * xcoffread.c: Include buildsym-legacy.h.
2985 * windows-nat.c: Include buildsym-legacy.h.
2986 * stabsread.c: Include buildsym-legacy.h.
2987 * mdebugread.c: Include buildsym-legacy.h.
2988 * buildsym-legacy.h: New file.
2989 * buildsym-legacy.c: New file, from buildsym.c.
2990 * go32-nat.c: Include buildsym-legacy.h.
2991 * dwarf2read.c: Include buildsym-legacy.h.
2992 * dbxread.c: Include buildsym-legacy.h.
2993 * cp-namespace.c: Include buildsym-legacy.h.
2994 * coffread.c: Include buildsym-legacy.h.
2995 * buildsym.h: Move some contents to buildsym-legacy.h.
2996 * buildsym.c: Include buildsym-legacy.h. Move many functions to
2997 buildsym-legacy.c.
2998 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
2999
ab209f6f
TT
30002018-07-20 Tom Tromey <tom@tromey.com>
3001
3002 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3003 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3004 (buildsym_compunit::buildsym_compunit)
3005 (buildsym_compunit::~buildsym_compunit)
3006 (buildsym_compunit::get_macro_table): Define.
3007
74c72eac
TT
30082018-07-20 Tom Tromey <tom@tromey.com>
3009
3010 * buildsym.c (reset_symtab_globals): Remove.
3011 (buildsym_compunit::end_symtab_from_static_block): Update.
3012 (buildsym_compunit::augment_type_symtab): Update.
3013 (end_symtab_from_static_block): Call free_buildsym_compunit.
3014 (augment_type_symtab, end_symtab, end_expandable_symtab):
3015 Likewise.
3016
da6580e5
TT
30172018-07-20 Tom Tromey <tom@tromey.com>
3018
3019 * arch-utils.c: Do not include buildsym.h.
3020 * mipsread.c: Do not include buildsym.h.
3021 * machoread.c: Do not include buildsym.h.
3022 * elfread.c: Do not include buildsym.h.
3023
4a2125f5
TT
30242018-07-20 Tom Tromey <tom@tromey.com>
3025
3026 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3027 initialization.
3028 (buildsym_compunit): Add new constructor.
3029 (struct buildsym_compunit) <get_last_source_file, finish_block,
3030 record_block_range, start_subfile, patch_subfile_names,
3031 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3032 set_last_source_start_addr, get_last_source_start_addr,
3033 get_local_using_directives, set_local_using_directives,
3034 get_global_using_directives, outermost_context_p,
3035 get_current_context_stack, get_context_stack_depth,
3036 get_current_subfile, get_local_symbols, get_file_symbols,
3037 get_global_symbols, record_debugformat, record_producer,
3038 push_context, pop_context, end_symtab_get_static_block,
3039 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3040 New public methods.
3041 <record_pending_block, finish_block_internal, make_blockvector,
3042 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3043 private methods.
3044 Update all users.
3045
30462018-05-22 Tom Tromey <tom@tromey.com>
3047
3048 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3049 parameter.
3050 (finish_block_internal): Update.
3051
6b213a47
TT
30522018-07-20 Tom Tromey <tom@tromey.com>
3053
3054 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3055 parameter.
3056 (finish_block_internal): Update.
3057
b80a981d
TT
30582018-07-20 Tom Tromey <tom@tromey.com>
3059
3060 * buildsym.h (EXTERN): Don't define or undef.
3061 * buildsym.c (EXTERN): Don't define.
3062
ddb70602
TT
30632018-07-20 Tom Tromey <tom@tromey.com>
3064
3065 * buildsym.c: Remove TODO comment.
3066
b37dd3bc
TT
30672018-07-20 Tom Tromey <tom@tromey.com>
3068
3069 * coffread.c (coff_symtab_read): Update.
3070 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3071 (xcoff_new_init): Update.
3072 * mipsread.c (mipscoff_new_init): Update.
3073 * mdebugread.c (mdebug_build_psymtabs): Update.
3074 * elfread.c (elf_new_init): Update.
3075 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3076 Update.
3077 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3078 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3079 (stabsect_build_psymtabs): Update.
3080 * buildsym.h (buildsym_init): Don't declare.
3081 * buildsym.c: Update comment.
3082 (prepare_for_building): Remove.
3083 (start_symtab, restart_symtab): Update.
3084 (reset_symtab_globals): Update comment.
3085 (buildsym_init): Remove.
3086
e148f09d
TT
30872018-07-20 Tom Tromey <tom@tromey.com>
3088
3089 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3090 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3091 (read_enum_type, common_block_start, common_block_end)
3092 (cleanup_undefined_types_1, finish_global_stabs): Update.
3093 * mdebugread.c (psymtab_to_symtab_1): Update.
3094 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3095 (read_lexical_block_scope, new_symbol): Update.
3096 * dbxread.c (process_one_symbol): Update.
3097 * coffread.c (coff_symtab_read, process_coff_symbol)
3098 (coff_read_enum_type): Update.
3099 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3100 declare.
3101 (get_local_symbols, get_file_symbols, get_global_symbols): New
3102 functions.
3103 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3104 m_global_symbols.
3105 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3106 (~scoped_free_pendings): Update.
3107 (finish_block, prepare_for_building, reset_symtab_globals)
3108 (end_symtab_get_static_block, end_symtab_with_blockvector)
3109 (augment_type_symtab, push_context): Update.
3110 (get_local_symbols, get_file_symbols, get_global_symbols): New
3111 functions.
3112 (buildsym_init): Update.
3113
93b8bea4
TT
31142018-07-20 Tom Tromey <tom@tromey.com>
3115
3116 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3117 (process_full_type_unit): Likewise.
3118 (dwarf2_start_symtab): Set list_in_scope.
3119
f62f6af5
TT
31202018-07-20 Tom Tromey <tom@tromey.com>
3121
3122 * dwarf2read.c (process_psymtab_comp_unit_reader)
3123 (build_type_psymtabs_reader): Do not set list_in_scope.
3124
1d376700
TT
31252018-07-20 Tom Tromey <tom@tromey.com>
3126
3127 * buildsym.c (free_pendings): Remove.
3128 (add_symbol_to_list, scoped_free_pendings)
3129 (finish_block_internal, buildsym_init): Update.
3130
c233e9c6
TT
31312018-07-20 Tom Tromey <tom@tromey.com>
3132
3133 * xcoffread.c (read_xcoff_symtab): Update.
3134 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3135 Update.
3136 * dbxread.c (process_one_symbol): Update.
3137 * coffread.c (coff_symtab_read): Update.
3138 * buildsym.h (finish_block): Update.
3139 * buildsym.c (finish_block): Remove "listhead" argument.
3140 (end_symtab_get_static_block): Update.
3141
5ac04550
TT
31422018-07-20 Tom Tromey <tom@tromey.com>
3143
3144 * buildsym.h (class scoped_free_pendings): Remove constructor.
3145 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3146 method.
3147 <m_pending_block_obstack, m_pending_blocks>: New members.
3148 (pending_block_obstack, pending_blocks): Remove.
3149 (scoped_free_pendings::scoped_free_pendings): Default.
3150 (~scoped_free_pendings): Update.
3151 (free_pending_blocks): Remove.
3152 (finish_block_internal, record_pending_block, make_blockvector)
3153 (end_symtab_get_static_block, augment_type_symtab, push_context)
3154 (buildsym_init): Update.
3155
7ea05a7b
TT
31562018-07-20 Tom Tromey <tom@tromey.com>
3157
3158 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3159 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3160 members.
3161 (pending_addrmap, pending_addrmap_obstack)
3162 (pending_addrmap_interesting): Remove.
3163 (scoped_free_pendings, record_block_range, make_blockvector)
3164 (prepare_for_building, reset_symtab_globals, buildsym_init):
3165 Update.
3166
3c65e5b3
TT
31672018-07-20 Tom Tromey <tom@tromey.com>
3168
3169 * xcoffread.c (process_linenos): Update.
3170 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3171 * mdebugread.c (psymtab_to_symtab_1): Update.
3172 * dwarf2read.c (setup_type_unit_groups)
3173 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3174 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3175 * dbxread.c (process_one_symbol): Update.
3176 * coffread.c (coff_symtab_read, enter_linenos)
3177 (process_coff_symbol): Update.
3178 * buildsym.h (current_subfile): Don't declare.
3179 (get_current_subfile): Declare.
3180 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3181 member.
3182 (start_subfile, free_buildsym_compunit, push_subfile)
3183 (prepare_for_building, start_symtab): Update.
3184 (get_current_subfile): New function.
3185
a60f3166
TT
31862018-07-20 Tom Tromey <tom@tromey.com>
3187
3188 * coffread.c (coff_symtab_read): Update.
3189 * xcoffread.c (read_xcoff_symtab): Update.
3190 * dwarf2read.c (new_symbol): Update.
3191 (read_func_scope, read_lexical_block_scope): Update.
3192 * dbxread.c (process_one_symbol): Update.
3193 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3194 (outermost_context_p): Remove macro.
3195 (outermost_context_p, get_current_context_stack)
3196 (get_context_stack_depth): Declare.
3197 (pop_context): Return struct context_stack.
3198 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3199 member.
3200 (context_stack_size): Remove.
3201 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3202 (prepare_for_building, end_symtab_get_static_block)
3203 (augment_type_symtab, push_context): Update.
3204 (pop_context): Return struct context_stack.
3205 (outermost_context_p, get_current_context_stack)
3206 (get_context_stack_depth): New functions.
3207 (buildsym_init): Update.
3208
56ba65a0
TT
32092018-07-20 Tom Tromey <tom@tromey.com>
3210
3211 * rust-exp.y: Now a pure parser. Update all rules.
3212 (%union): Move earlier.
3213 (current_parser, work_obstack): Remove globals.
3214 (rust_parser, ~rust_parser): Update.
3215 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3216 lex_character, lex_number, lex_string, lex_identifier,
3217 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3218 convert_name, convert_params_to_expression,
3219 convert_ast_to_expression, ast_basic_type, ast_operation,
3220 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3221 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3222 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3223 ast_array_type, ast_slice_type, ast_reference_type,
3224 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3225 (rust_parse): Update.
3226 (rustyyerror, rustyylex): Add parser parameter.
3227 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3228 (rust_lex_stringish_test, rust_lex_test_sequence)
3229 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3230 (rust_lex_test_push_back, rust_lex_tests): Update.
3231
4c693332
PA
32322018-07-19 Pedro Alves <palves@redhat.com>
3233
3234 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3235 gdb::unique_xmalloc_ptr.
3236 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3237 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3238 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3239 copy-initialization.
3240 * guile/scm-pretty-print.c (ppscm_print_children): Use
3241 gdb::unique_xmalloc_ptr instead of cleanups.
3242 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3243 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3244 gdb::unique_xmalloc_ptr.
3245 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3246 Adjust to use gdb::unique_xmalloc_ptr.
3247 * guile/scm-utils.c (extract_arg): Adjust.
3248 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3249 gdb::unique_xmalloc_ptr instead of a cleanup.
3250
4581dc82
TT
32512018-07-19 Tom Tromey <tom@tromey.com>
3252
3253 * utils.c (do_value_free_to_mark)
3254 (make_cleanup_value_free_to_mark): Remove.
3255 * utils.h (make_cleanup_value_free_to_mark): Remove.
3256
43cc6c3a
PA
32572018-07-19 Pedro Alves <palves@redhat.com>
3258
3259 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3260 forwarding reference.
3261
3a5f2a48
PA
32622018-07-18 Pedro Alves <palves@redhat.com>
3263
3264 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3265 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3266 cleanup.
3267
557e56be
PA
32682018-07-18 Pedro Alves <palves@redhat.com>
3269
3270 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3271 exceptions.
3272 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3273 (gdbscm_wrap): New.
3274 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3275 directly instead of a cleanup.
3276 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3277 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3278 (vlscm_binop_gdbthrow): New, factored out from ...
3279 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3280 (vlscm_rich_compare): Use gdbscm_wrap.
3281 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3282 instead of a cleanup.
3283 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3284 cleanup.
3285 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3286 Use xfree directly instead of a cleanup.
3287 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3288 Adjust to use gdbscm_wrap and scoped_value_mark.
3289 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3290 (gdbscm_value_address, gdbscm_value_dereference)
3291 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3292 scoped_value_mark.
3293 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3294 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3295 scoped_value_mark.
3296 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3297 gdbscm_wrap and scoped_value_mark.
3298 (gdbscm_value_to_string): Use xfree directly instead of a
3299 cleanup. Move 'buffer' unique_ptr to TRY scope.
3300 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3301 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3302 scoped_value_mark.
3303 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3304 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3305 scoped_value_mark.
3306 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3307 gdbscm_wrap.
3308
42dc7699
TV
33092018-07-18 Tom de Vries <tdevries@suse.de>
3310
3311 * findvar.c (default_read_var_value): Also resolve dynamic type for
3312 LOC_OPTIMIZED_OUT vars.
3313
6592ceed
MR
33142018-07-18 Maciej W. Rozycki <macro@mips.com>
3315
3316 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3317 decoding.
3318
c6c6149a
TT
33192018-07-17 Tom Tromey <tom@tromey.com>
3320
3321 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3322 (compute_enum_list, pascm_set_param_value_x)
3323 (gdbscm_parameter_value): Update.
3324 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3325 (gdbscm_scm_to_host_string): Update.
3326 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3327 Update.
3328 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3329 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3330 * guile/scm-string.c (gdbscm_scm_to_string): Return
3331 unique_xmalloc_ptr.
3332 (gdbscm_scm_to_host_string): Likewise.
3333
a1a31cb8
TT
33342018-07-17 Tom Tromey <tom@tromey.com>
3335
3336 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3337 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3338 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3339 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3340 unique_xmalloc_ptr.
3341
15bf3002
TT
33422018-07-17 Tom Tromey <tom@tromey.com>
3343
3344 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3345 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3346 Update.
3347 * guile/scm-cmd.c (cmdscm_function): Update.
3348 * guile/scm-pretty-print.c
3349 (ppscm_print_exception_unless_memory_error): Update.
3350 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3351 Return unique_xmalloc_ptr.
3352
7eb1a66c
TT
33532018-07-17 Tom Tromey <tom@tromey.com>
3354
3355 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3356 Use string_printf.
3357
ce73f310
JW
33582018-07-17 Jim Wilson <jimw@sifive.com>
3359
27724bad
JW
3360 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3361 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3362 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3363 unecessary braces after EF_RISCV_RVC test. Delete call to
3364 set_gdbarch_decr_pc_after_break.
3365
ce73f310
JW
3366 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3367 RISCV_LAST_FP_REGNUM + 1.
3368 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3369
056dec39
TT
33702018-07-17 Tom Tromey <tom@tromey.com>
3371
3372 * configure.ac: Remove --disable-gdbcli.
3373 * configure: Rebuild.
3374 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3375 (SUBDIR_CLI_CFLAGS): Remove.
3376 (SFILES): Use SUBDIR_CLI_SRCS.
3377 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3378
4735f0ed
TT
33792018-07-17 Tom Tromey <tom@tromey.com>
3380
3381 PR gdb/18624:
3382 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3383
117a0e99
JW
33842018-07-16 Jim Wilson <jimw@sifive.com>
3385
3386 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3387
8a67aaa8
SM
33882018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3389
3390 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3391 variable.
3392 (libunwind_frame_sniffer): Likewise.
3393 (libunwind_frame_prev_register): Likewise.
3394 (libunwind_sigtramp_frame_sniffer): Likewise.
3395 * ia64-tdep.c (ia64_access_reg): Likewise.
3396 (ia64_access_rse_reg): Likewise.
3397 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3398 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3399
ec74dcd8
SM
34002018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3401
3402 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3403
a700e753
SM
34042018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3405
3406 * remote-sim.c (gdbsim_target::close,
3407 gdbsim_target::mourn_inferior): Remove unused variables.
3408
8b411ff8
SM
34092018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3410
3411 * ia64-tdep.c (ktab_buf): New global.
3412 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3413 (get_kernel_table): Adjust.
3414
edb0470b
TT
34152018-07-16 Tom Tromey <tom@tromey.com>
3416
3417 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3418 * dwarf2read.c (using_directives, new_symbol): Use
3419 outermost_context_p.
3420 * dbxread.c (process_one_symbol): Use outermost_context_p.
3421 * coffread.c (coff_symtab_read): Use outermost_context_p.
3422
6cccc9a8
TT
34232018-07-16 Tom Tromey <tom@tromey.com>
3424
3425 * dwarf2read.c (using_directives, read_func_scope)
3426 (read_lexical_block_scope): Update.
3427 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3428 * buildsym.h (local_using_directives, global_using_directives):
3429 Don't declare.
3430 (get_local_using_directives, set_local_using_directives)
3431 (get_global_using_directives): Declare.
3432 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3433 m_global_using_directives>: New members.
3434 (finish_block_internal, prepare_for_building)
3435 (reset_symtab_globals, end_symtab_get_static_block)
3436 (push_context): Update.
3437 (get_local_using_directives, set_local_using_directives)
3438 (get_global_using_directives): New functions.
3439 (buildsym_init): Update.
3440
652788a7
TT
34412018-07-16 Tom Tromey <tom@tromey.com>
3442
3443 * xcoffread.c (xcoff_initial_scan): Don't call
3444 free_pending_blocks.
3445 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3446 * buildsym.h (class scoped_free_pendings): Add constructor.
3447 (free_pending_blocks): Don't declare.
3448 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3449 (free_pending_blocks): Now static.
3450
8419ee53
TT
34512018-07-16 Tom Tromey <tom@tromey.com>
3452
3453 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3454 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3455 member.
3456 (struct subfile_stack): Remove.
3457 (subfile_stack): Remove.
3458 (push_subfile, pop_subfile, buildsym_init): Update.
3459
ccdac490
TT
34602018-07-16 Tom Tromey <tom@tromey.com>
3461
3462 * buildsym.c (push_subfile): Use gdb_assert.
3463 (pop_subfile): Use gdb_assert.
3464
43130d6f
TT
34652018-07-16 Tom Tromey <tom@tromey.com>
3466
3467 * buildsym.h (merge_symbol_lists): Remove.
3468 * buildsym.c (merge_symbol_lists): Remove.
3469
77d6f1aa
TT
34702018-07-16 Tom Tromey <tom@tromey.com>
3471
3472 * stabsread.c (scan_file_globals): Update comment.
3473 * stabsread.h (scan_file_globals): Move from buildsym.h.
3474 * buildsym.h (scan_file_globals): Move to stabsread.h.
3475
2c722d18
TT
34762018-07-16 Tom Tromey <tom@tromey.com>
3477
3478 * xcoffread.c (xcoff_new_init): Update.
3479 * mipsread.c (mipscoff_new_init): Update.
3480 * mdebugread.c (mdebug_build_psymtabs): Update.
3481 * elfread.c (elf_new_init): Update.
3482 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3483 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3484 * buildsym.h (buildsym_new_init): Don't declare.
3485 * buildsym.c (buildsym_new_init): Remove.
3486
5985ac61
TT
34872018-07-16 Tom Tromey <tom@tromey.com>
3488
3489 * stabsread.h (within_function): Move from buildsym.h.
3490 * stabsread.c (start_stabs): Clear within_function.
3491 * coffread.c (coff_start_symtab): Clear within_function.
3492 * buildsym.h (within_function): Move to stabsread.h.
3493 * buildsym.c (prepare_for_building): Update.
3494
6b84eeb2
TT
34952018-07-16 Tom Tromey <tom@tromey.com>
3496
3497 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3498 * dwarf2read.c (dwarf2_start_symtab): Don't set
3499 processing_gcc_compilation.
3500 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3501
2150c3ef
TT
35022018-07-16 Tom Tromey <tom@tromey.com>
3503
3504 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3505 (next_symbol_text_func): Move from buildsym.h.
3506 * stabsread.c (hashname): Move from buildsym.c.
3507 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3508 (next_symbol_text_func, hashname): Move to stabsread.h.
3509 * buildsym.c: Don't include bcache.h
3510 (hashname): Move to stasbread.c.
3511
0ec44fc0
TT
35122018-07-16 Tom Tromey <tom@tromey.com>
3513
3514 * buildsym.h (context_stack_size): Don't declare.
3515 * buildsym.c (context_stack_size): New global.
3516
81cc346d
TT
35172018-07-16 Tom Tromey <tom@tromey.com>
3518
3519 * dbxread.c (processing_acc_compilation): New global.
3520 * buildsym.h (processing_acc_compilation): Don't declare.
3521
2c99ee5c
TT
35222018-07-16 Tom Tromey <tom@tromey.com>
3523
3524 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3525 * dbxread.c (read_ofile_symtab): Update.
3526 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3527 * buildsym.h (last_source_start_addr): Remove.
3528 (set_last_source_start_addr, get_last_source_start_addr):
3529 Declare.
3530 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3531 parameter.
3532 (struct buildsym_compunit) <m_last_source_start_addr>: New
3533 member.
3534 (prepare_for_building): Remove start_addr parameter.
3535 (start_symtab, restart_symtab, end_symtab_get_static_block)
3536 (end_symtab_with_blockvector): Update.
3537 (set_last_source_start_addr, get_last_source_start_addr): New
3538 functions.
3539
530fedbc
TT
35402018-07-16 Tom Tromey <tom@tromey.com>
3541
3542 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3543 member.
3544 (have_line_numbers): Remove.
3545 (record_line, prepare_for_building, end_symtab_get_static_block)
3546 (augment_type_symtab): Update.
3547
6a976300
TT
35482018-07-16 Tom Tromey <tom@tromey.com>
3549
3550 * buildsym.c (~buildsym_compunit): Free the macro table.
3551 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3552 methods.
3553 <m_pending_macros>: New member.
3554 (pending_macros): Remove.
3555 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3556 (reset_symtab_globals, end_symtab_get_static_block)
3557 (end_symtab_with_blockvector, augment_type_symtab)
3558 (buildsym_init): Update.
3559
c0015d44
TT
35602018-07-16 Tom Tromey <tom@tromey.com>
3561
3562 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3563 parameter.
3564 (buildsym_compunit::set_last_source_file): New method.
3565 <m_last_source_file>: New member.
3566 (prepare_for_building): Remove "name" parameter.
3567 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3568 (last_source_file): Remove.
3569 (set_last_source_file, get_last_source_file): Update.
3570
e62cca7c
TT
35712018-07-16 Tom Tromey <tom@tromey.com>
3572
3573 * buildsym.c (prepare_for_building): Add assert.
3574
905eb0e2
TT
35752018-07-16 Tom Tromey <tom@tromey.com>
3576
3577 * buildsym.c (~buildsym_compunit): Update.
3578 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3579 (start_subfile, patch_subfile_names)
3580 (end_symtab_with_blockvector): Update.
3581
b248663f
TT
35822018-07-16 Tom Tromey <tom@tromey.com>
3583
3584 * buildsym.c (struct buildsym_compunit): Add constructor,
3585 destructor, initializers.
3586 (start_buildsym_compunit): Remove.
3587 (free_buildsym_compunit): Use "delete".
3588 (start_symtab, restart_symtab): Use "new".
3589
ff27d073
SM
35902018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3591
3592 * symfile.c (set_objfile_default_section_offset): Remove struct
3593 keyword.
3594
6a15ecf5
SH
35952018-07-14 Stafford Horne <shorne@gmail.com>
3596
3597 * (Responsible Maintainers): Add myself as or1k maintainer.
3598
027a4c30
TT
35992018-07-13 Tom Tromey <tom@tromey.com>
3600
3601 * symfile.c (set_objfile_default_section_offset): Use extra braces
3602 around initializer.
3603
5c1eda30
AA
36042018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3605
3606 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3607 non-branching basr.
3608
bc7b042b
PW
36092018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3610
3611 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3612 unittests/cli-utils-selftests.c
3613 * unittests/cli-utils-selftests.c: New file.
3614
a14c4daa
PW
36152018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3616
3617 * NEWS: Mention new commands. Mention change to 'thread apply'.
3618
1fe75df7
PW
36192018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3620
3621 * thread.c (thr_try_catch_cmd): New function.
3622 (thread_apply_all_command): Handle qcs flags.
3623 (thread_apply_command): Handle qcs flags.
3624 (taas_command): New function.
3625 (tfaas_command): New function.
3626 (_initialize_thread): Update to setup the new commands 'taas
3627 and 'tfaas'. Change doc string for 'thread apply'.
3628
6a70eb7d
PW
36292018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3630
3631 * stack.c: (trailing_outermost_frame): New function, mostly
3632 extracted from backtrace_command_1.
3633 (leading_innermost_frame): New function.
3634 (backtrace_command_1): Update to call trailing_outermost_frame.
3635 (frame_apply_command_count): New function.
3636 (frame_apply_level_command): New function.
3637 (frame_apply_all_command): New function.
3638 (frame_apply_command): New function.
3639 (faas_command): New function.
3640 (frame_cmd_list): New variable.
3641 (_initialize_stack): Update to setup the new commands 'frame apply'
3642 and 'faas'.
3643
529c08b2
PW
36442018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3645
3646 * cli-utils.c (number_or_range_parser::get_number): Only handle
3647 numbers or convenience var as numbers.
3648 (parse_flags): New function.
3649 (parse_flags_qcs): New function.
3650 (number_or_range_parser::finished): Ensure parsing end is detected
3651 before end of string.
3652 * cli-utils.h (parse_flags): New function.
3653 (parse_flags_qcs): New function.
3654 (number_or_range_parser): Remove m_finished bool.
3655 (number_or_range_parser::skip_range): Set m_in_range to false.
3656
64b58472
SDJ
36572018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3658
3659 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3660 on Windows.
3661
c7ab0aef
SDJ
36622018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3663 Jan Kratochvil <jan.kratochvil@redhat.com>
3664 Paul Fertser <fercerpav@gmail.com>
3665 Tsutomu Seki <sekiriki@gmail.com>
3666 Pedro Alves <palves@redhat.com>
3667
3668 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3669 'unittests/parse-connection-spec-selftests.c'.
3670 (COMMON_SFILES): Add 'common/netstuff.c'.
3671 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3672 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3673 * common/netstuff.c: New file.
3674 * common/netstuff.h: New file.
3675 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3676 (wait_for_connect): Update comment. New parameter
3677 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3678 Use 'sock' directly instead of 'scb->fd'.
3679 (try_connect): New function, with code from 'net_open'.
3680 (net_open): Rewrite main loop to deal with multiple
3681 sockets/addresses. Handle IPv6-style hostnames; implement
3682 support for IPv6 connections.
3683 * unittests/parse-connection-spec-selftests.c: New file.
3684
4c7333b3
PA
36852018-07-11 Pedro Alves <palves@redhat.com>
3686
3687 PR gdb/23377
3688 * remote.c (remote_target::remote_detach_pid): Call
3689 set_current_process.
3690
a6f88f6e
PA
36912018-07-11 Pedro Alves <palves@redhat.com>
3692
3693 * h8300-tdep.c (h8300_gdbarch_init): Remove
3694 set_gdbarch_ecoff_reg_to_regnum calls.
3695
16ff70dd
SDJ
36962018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3697
3698 PR c++/23373
3699 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3700 offsets/sizes for static members of a class/struct.
3701
12863263
AH
37022018-07-11 Alan Hayward <alan.hayward@arm.com>
3703
3704 * target-descriptions.c (tdesc_register_bitsize): Rename.
3705 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3706 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3707 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3708
1123588c
TT
37092018-07-10 Tom Tromey <tom@tromey.com>
3710
3711 * breakpoint.c (moribund_locations): Now static and a
3712 std::vector.
3713 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3714 (build_bpstat_chain, update_global_location_list)
3715 (breakpoint_retire_moribund): Update.
3716 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3717 VEC.
3718
8c49aa89
AB
37192018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3720
3721 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3722 (riscv_register_reggroup_p): Use new function, remove unneeded
3723 parenthesis.
3724 (riscv_push_dummy_call): Extend assert to compare against xlen or
3725 flen based on register type.
3726
42ecac17
AB
37272018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3728
3729 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3730
055303e2
AB
37312018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3732
3733 * remote.c (show_hardware_watchpoint_limit): New function.
3734 (show_hardware_watchpoint_length_limit): New function.
3735 (show_hardware_breakpoint_limit): New function.
3736 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3737 where appropriate, update help text.
3738
8fd32c1c
TT
37392018-07-09 Tom Tromey <tom@tromey.com>
3740
3741 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3742 (CLIBS): Don't mention NAT_CLIBS.
3743
31278b51
TT
37442018-07-09 Tom Tromey <tom@tromey.com>
3745
3746 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3747 (LIBGDB_OBS, clean mostlyclean): Update.
3748 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3749
e5fd1493
TT
37502018-07-09 Tom Tromey <tom@tromey.com>
3751
3752 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3753 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3754 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3755
981e0c0c
TT
37562018-07-09 Tom Tromey <tom@tromey.com>
3757
3758 * Makefile.in (ALLDEPFILES): Remove exec.c.
3759 (COMMON_OBS): Remove exec.o.
3760 (COMMON_SFILES): Add exec.c.
3761
14ccceb2
TT
37622018-07-09 Tom Tromey <tom@tromey.com>
3763
3764 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3765
5d3c3a68
TT
37662018-07-09 Tom Tromey <tom@tromey.com>
3767
3768 * Makefile.in (clean mostlyclean): Remove stamp-version.
3769 (version.c): Depend on stamp-version.
3770 (stamp-version): New rule, from version.c rule.
3771
1998086d
TT
37722018-07-09 Tom Tromey <tom@tromey.com>
3773
3774 * Makefile.in (init.c): Depend on stamp-init.
3775 (stamp-init): New rule, from init.c rule.
3776 (clean mostlyclean): Remove stamp-init.
3777
4c754949
TT
37782018-07-09 Tom Tromey <tom@tromey.com>
3779
3780 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3781 SUBDIR_GCC_COMPILE_SRCS.
3782
6497f1dd
TT
37832018-07-09 Tom Tromey <tom@tromey.com>
3784
3785 * Makefile.in (init.c): Remove some unused sed rules.
3786
97a34db9
TT
37872018-07-09 Tom Tromey <tom@tromey.com>
3788
3789 * Makefile.in (TSOBS): Remove.
3790 (INIT_FILES): Update.
3791 (LIBGDB_OBS): Update.
3792 (COMMON_SFILES): Add inflow.c.
3793 (SFILES): Remove inflow.c.
3794
25289ac1
JK
37952018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3796
3797 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3798
e83f4d97
SM
37992018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
3800
4869c585
SM
3801 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3802 get_saveloc_name, is_signal_frame_name, step_name,
3803 init_remote_name, create_addr_space_name,
3804 destroy_addr_space_name, search_unwind_table_name,
3805 find_dyn_list_name): Constify.
e83f4d97 3806
6821842f
SM
38072018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3808
3809 * darwin-nat.c (darwin_pthread_kill): New function.
3810 (darwin_resume_thread): Use darwin_pthread_kill.
3811
c530603c
TV
38122018-07-05 Tom de Vries <tdevries@suse.de>
3813
3814 * macroexp.c (macro_buffer) <operator=>: New member function.
3815
a7d0f0f0
TT
38162018-07-04 Tom Tromey <tom@tromey.com>
3817
3818 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3819
6242c6a6
SM
38202018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
3821
3822 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
3823 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
3824 * maint.c: Likewise.
3825 * top.c: Likewise.
3826
4e5b2f89
JB
38272018-07-04 Joel Brobecker <brobecker@adacore.com>
3828
3829 * NEWS: Create a new section for the next release branch.
3830 Rename the section of the current branch, now that it has
3831 been cut.
3832
538ccc4a
JB
38332018-07-04 Joel Brobecker <brobecker@adacore.com>
3834
3835 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
3836 * version.in: Bump version to 8.2.50.DATE-git.
3837
1b919490
VB
38382018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3839 Pedro Alves <palves@redhat.com>
3840
3841 * linux-nat.c (linux_init_ptrace): Rename to ...
3842 (linux_init_ptrace_procfs): ... this. Call
3843 linux_proc_init_warnings.
3844 (linux_nat_target::post_attach)
3845 (linux_nat_target::post_startup_inferior): Adjust.
3846 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
3847 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
3848
1ea5da02
TV
38492018-07-04 Tom de Vries <tdevries@suse.de>
3850
3851 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
3852 check ...
3853 (read_comp_unit_head): ... here.
3854
f51e0e20
TT
38552018-07-03 Tom Tromey <tom@tromey.com>
3856
3857 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
3858 (stop_tracing, tstatus_command)
3859 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
3860 (print_one_static_tracepoint_marker): Update.
3861 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
3862 std::vector.
3863 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
3864 VEC.
3865 (all_tracepoints, static_tracepoints_here): Return std::vector.
3866
d7e15655
TT
38672018-07-03 Tom Tromey <tom@tromey.com>
3868
3869 * common/ptid.c (ptid_equal): Remove.
3870 * common/ptid.h (ptid_equal): Don't declare.
3871 * ada-tasks.c: Update.
3872 * breakpoint.c: Update.
3873 * common/agent.c: Update.
3874 * corelow.c: Update.
3875 * darwin-nat-info.c: Update.
3876 * darwin-nat.c: Update.
3877 * dcache.c: Update.
3878 * dtrace-probe.c: Update.
3879 * dummy-frame.c: Update.
3880 * fbsd-nat.c: Update.
3881 * frame.c: Update.
3882 * gdbthread.h: Update.
3883 * gnu-nat.c: Update.
3884 * go32-nat.c: Update.
3885 * inf-loop.c: Update.
3886 * inf-ptrace.c: Update.
3887 * infcall.c: Update.
3888 * infcmd.c: Update.
3889 * inflow.c: Update.
3890 * infrun.c: Update.
3891 * linux-fork.c: Update.
3892 * linux-nat.c: Update.
3893 * linux-thread-db.c: Update.
3894 * mi/mi-cmd-var.c: Update.
3895 * mi/mi-interp.c: Update.
3896 * mi/mi-main.c: Update.
3897 * nto-procfs.c: Update.
3898 * ppc-linux-tdep.c: Update.
3899 * procfs.c: Update.
3900 * python/py-inferior.c: Update.
3901 * python/py-record-btrace.c: Update.
3902 * python/py-record.c: Update.
3903 * ravenscar-thread.c: Update.
3904 * regcache.c: Update.
3905 * remote-sim.c: Update.
3906 * remote.c: Update.
3907 * sol-thread.c: Update.
3908 * solib.c: Update.
3909 * target.c: Update.
3910 * tui/tui-stack.c: Update.
3911 * varobj.c: Update.
3912 * windows-nat.c: Update.
3913 * windows-tdep.c: Update.
3914
26a57c92
TT
39152018-07-03 Tom Tromey <tom@tromey.com>
3916
3917 * common/ptid.c (ptid_match): Remove.
3918 * common/ptid.h (ptid_match): Don't declare.
3919 * fbsd-nat.c: Update.
3920 * infcmd.c: Update.
3921 * infrun.c: Update.
3922 * linux-nat.c: Update.
3923 * record-btrace.c: Update.
3924 * regcache.c: Update.
3925 * remote.c: Update.
3926
d2a107e3
TT
39272018-07-03 Tom Tromey <tom@tromey.com>
3928
3929 * common/ptid.c (ptid_tid_p): Remove.
3930 * common/ptid.h (ptid_tid_p): Don't declare.
3931 * sol-thread.c: Update.
3932
15a9e13e
TT
39332018-07-03 Tom Tromey <tom@tromey.com>
3934
3935 * common/ptid.c (ptid_lwp_p): Remove.
3936 * common/ptid.h (ptid_lwp_p): Don't declare.
3937 * fbsd-nat.c: Update.
3938 * linux-nat.c: Update.
3939 * nat/linux-procfs.c: Update.
3940 * nat/x86-linux-dregs.c: Update.
3941 * sol-thread.c: Update.
3942
0e998d96
TT
39432018-07-03 Tom Tromey <tom@tromey.com>
3944
3945 * common/ptid.c (ptid_is_pid): Remove.
3946 * common/ptid.h (ptid_is_pid): Don't declare.
3947 * infrun.c: Update.
3948 * linux-nat.c: Update.
3949 * mi/mi-interp.c: Update.
3950 * remote.c: Update.
3951 * thread.c: Update.
3952
cc6bcb54
TT
39532018-07-03 Tom Tromey <tom@tromey.com>
3954
3955 * common/ptid.c (ptid_get_tid): Remove.
3956 * common/ptid.h (ptid_get_tid): Don't declare.
3957 * ada-tasks.c: Update.
3958 * aix-thread.c: Update.
3959 * bsd-uthread.c: Update.
3960 * darwin-nat.c: Update.
3961 * fbsd-nat.c: Update.
3962 * i386-darwin-nat.c: Update.
3963 * infrun.c: Update.
3964 * linux-tdep.c: Update.
3965 * nto-procfs.c: Update.
3966 * ppc-ravenscar-thread.c: Update.
3967 * python/py-infthread.c: Update.
3968 * ravenscar-thread.c: Update.
3969 * sol-thread.c: Update.
3970 * sparc-ravenscar-thread.c: Update.
3971 * windows-nat.c: Update.
3972
e38504b3
TT
39732018-07-03 Tom Tromey <tom@tromey.com>
3974
3975 * common/ptid.c (ptid_get_lwp): Remove.
3976 * common/ptid.h (ptid_get_lwp): Don't declare.
3977 * aarch64-linux-nat.c: Update.
3978 * ada-tasks.c: Update.
3979 * aix-thread.c: Update.
3980 * amd64-linux-nat.c: Update.
3981 * arm-linux-nat.c: Update.
3982 * corelow.c: Update.
3983 * fbsd-nat.c: Update.
3984 * fbsd-tdep.c: Update.
3985 * gnu-nat.c: Update.
3986 * i386-cygwin-tdep.c: Update.
3987 * i386-gnu-nat.c: Update.
3988 * i386-linux-nat.c: Update.
3989 * ia64-linux-nat.c: Update.
3990 * inf-ptrace.c: Update.
3991 * infrun.c: Update.
3992 * linux-fork.c: Update.
3993 * linux-nat.c: Update.
3994 * linux-tdep.c: Update.
3995 * linux-thread-db.c: Update.
3996 * mips-linux-nat.c: Update.
3997 * nat/aarch64-linux-hw-point.c: Update.
3998 * nat/aarch64-linux.c: Update.
3999 * nat/linux-btrace.c: Update.
4000 * nat/linux-osdata.c: Update.
4001 * nat/linux-procfs.c: Update.
4002 * nat/x86-linux-dregs.c: Update.
4003 * obsd-nat.c: Update.
4004 * ppc-fbsd-nat.c: Update.
4005 * ppc-linux-nat.c: Update.
4006 * procfs.c: Update.
4007 * python/py-infthread.c: Update.
4008 * ravenscar-thread.c: Update.
4009 * remote.c: Update.
4010 * s390-linux-nat.c: Update.
4011 * sol-thread.c: Update.
4012 * sol2-tdep.c: Update.
4013 * spu-linux-nat.c: Update.
4014 * x86-linux-nat.c: Update.
4015 * xtensa-linux-nat.c: Update.
4016
e99b03dc
TT
40172018-07-03 Tom Tromey <tom@tromey.com>
4018
4019 * common/ptid.c (ptid_get_pid): Remove.
4020 * common/ptid.h (ptid_get_pid): Don't declare.
4021 * aarch64-linux-nat.c: Update.
4022 * ada-lang.c: Update.
4023 * aix-thread.c: Update.
4024 * alpha-bsd-nat.c: Update.
4025 * amd64-fbsd-nat.c: Update.
4026 * amd64-linux-nat.c: Update.
4027 * arm-linux-nat.c: Update.
4028 * arm-nbsd-nat.c: Update.
4029 * auxv.c: Update.
4030 * break-catch-syscall.c: Update.
4031 * breakpoint.c: Update.
4032 * bsd-uthread.c: Update.
4033 * corelow.c: Update.
4034 * ctf.c: Update.
4035 * darwin-nat.c: Update.
4036 * fbsd-nat.c: Update.
4037 * fbsd-tdep.c: Update.
4038 * gcore.c: Update.
4039 * gnu-nat.c: Update.
4040 * hppa-nbsd-nat.c: Update.
4041 * hppa-obsd-nat.c: Update.
4042 * i386-fbsd-nat.c: Update.
4043 * ia64-linux-nat.c: Update.
4044 * inf-ptrace.c: Update.
4045 * infcmd.c: Update.
4046 * inferior.c: Update.
4047 * inferior.h: Update.
4048 * inflow.c: Update.
4049 * infrun.c: Update.
4050 * linux-fork.c: Update.
4051 * linux-nat.c: Update.
4052 * linux-tdep.c: Update.
4053 * linux-thread-db.c: Update.
4054 * m68k-bsd-nat.c: Update.
4055 * mi/mi-interp.c: Update.
4056 * mi/mi-main.c: Update.
4057 * mips-linux-nat.c: Update.
4058 * mips-nbsd-nat.c: Update.
4059 * mips64-obsd-nat.c: Update.
4060 * nat/aarch64-linux-hw-point.c: Update.
4061 * nat/aarch64-linux.c: Update.
4062 * nat/linux-btrace.c: Update.
4063 * nat/linux-osdata.c: Update.
4064 * nat/linux-procfs.c: Update.
4065 * nat/x86-linux-dregs.c: Update.
4066 * nto-procfs.c: Update.
4067 * obsd-nat.c: Update.
4068 * ppc-linux-nat.c: Update.
4069 * ppc-nbsd-nat.c: Update.
4070 * ppc-obsd-nat.c: Update.
4071 * proc-service.c: Update.
4072 * procfs.c: Update.
4073 * python/py-inferior.c: Update.
4074 * python/py-infthread.c: Update.
4075 * ravenscar-thread.c: Update.
4076 * record.c: Update.
4077 * remote-sim.c: Update.
4078 * remote.c: Update.
4079 * rs6000-nat.c: Update.
4080 * s390-linux-nat.c: Update.
4081 * sh-nbsd-nat.c: Update.
4082 * sol-thread.c: Update.
4083 * sparc-nat.c: Update.
4084 * sparc64-tdep.c: Update.
4085 * spu-linux-nat.c: Update.
4086 * spu-tdep.c: Update.
4087 * target-debug.h: Update.
4088 * target.c: Update.
4089 * thread.c: Update.
4090 * tid-parse.c: Update.
4091 * tracefile-tfile.c: Update.
4092 * vax-bsd-nat.c: Update.
4093 * windows-nat.c: Update.
4094 * x86-linux-nat.c: Update.
4095 * x86-nat.c: Update.
4096
f2907e49
TT
40972018-07-03 Tom Tromey <tom@tromey.com>
4098
4099 * common/ptid.c (pid_to_ptid): Remove.
4100 * common/ptid.h (pid_to_ptid): Don't declare.
4101 * aix-thread.c: Update.
4102 * arm-linux-nat.c: Update.
4103 * common/ptid.c: Update.
4104 * common/ptid.h: Update.
4105 * corelow.c: Update.
4106 * ctf.c: Update.
4107 * darwin-nat.c: Update.
4108 * fbsd-nat.c: Update.
4109 * fork-child.c: Update.
4110 * gnu-nat.c: Update.
4111 * go32-nat.c: Update.
4112 * inf-ptrace.c: Update.
4113 * infcmd.c: Update.
4114 * inferior.c: Update.
4115 * infrun.c: Update.
4116 * linux-fork.c: Update.
4117 * linux-nat.c: Update.
4118 * nat/aarch64-linux-hw-point.c: Update.
4119 * nat/fork-inferior.c: Update.
4120 * nat/x86-linux-dregs.c: Update.
4121 * nto-procfs.c: Update.
4122 * obsd-nat.c: Update.
4123 * procfs.c: Update.
4124 * progspace.c: Update.
4125 * remote.c: Update.
4126 * rs6000-nat.c: Update.
4127 * s390-linux-nat.c: Update.
4128 * sol-thread.c: Update.
4129 * spu-linux-nat.c: Update.
4130 * target.c: Update.
4131 * top.c: Update.
4132 * tracefile-tfile.c: Update.
4133 * windows-nat.c: Update.
4134
fd79271b
TT
41352018-07-03 Tom Tromey <tom@tromey.com>
4136
4137 * common/ptid.h (ptid_build): Don't declare.
4138 * common/ptid.c (ptid_build): Remove.
4139 * aix-thread.c: Update.
4140 * bsd-kvm.c: Update.
4141 * bsd-uthread.c: Update.
4142 * common/agent.c: Update.
4143 * common/ptid.c: Update.
4144 * common/ptid.h: Update.
4145 * corelow.c: Update.
4146 * darwin-nat.c: Update.
4147 * fbsd-nat.c: Update.
4148 * gnu-nat.c: Update.
4149 * linux-fork.c: Update.
4150 * linux-nat.c: Update.
4151 * linux-thread-db.c: Update.
4152 * nat/linux-osdata.c: Update.
4153 * nat/linux-procfs.c: Update.
4154 * nto-procfs.c: Update.
4155 * obsd-nat.c: Update.
4156 * proc-service.c: Update.
4157 * procfs.c: Update.
4158 * ravenscar-thread.c: Update.
4159 * remote-sim.c: Update.
4160 * remote.c: Update.
4161 * sol-thread.c: Update.
4162 * target.c: Update.
4163 * windows-nat.c: Update.
4164
057302ce
TT
41652018-07-03 Tom Tromey <tom@tromey.com>
4166
4167 * infrun.c (follow_exec): Use exit_inferior_silent.
4168 * inferior.c (exit_inferior_num_silent): Remove.
4169 * inferior.h (exit_inferior_num_silent): Don't declare.
4170
a50c11c6
TT
41712018-07-03 Tom Tromey <tom@tromey.com>
4172
4173 PR cli/23340:
4174 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4175 inferior_ptid on error.
4176
471b9d15
MR
41772018-07-02 Maciej W. Rozycki <macro@mips.com>
4178 Simon Marchi <simon.marchi@polymtl.ca>
4179
4180 PR tdep/8282
4181 * disasm.h (gdb_disassembler): Add
4182 `m_disassembler_options_holder'. member
4183 * disasm.c (get_all_disassembler_options): New function.
4184 (gdb_disassembler::gdb_disassembler): Use it.
4185 (gdb_buffered_insn_length_init_dis): Likewise.
4186 (gdb_buffered_insn_length): Adjust accordingly.
4187 (set_disassembler_options): Handle options with arguments.
4188 (show_disassembler_options_sfunc): Likewise. Add a leading new
4189 line if showing options with descriptions.
4190 (disassembler_options_completer): Adapt to using the
4191 `disasm_options_and_args_t' structure.
4192 * mips-tdep.c (mips_disassembler_options): New variable.
4193 (mips_disassembler_options_o32): Likewise.
4194 (mips_disassembler_options_n32): Likewise.
4195 (mips_disassembler_options_n64): Likewise.
4196 (gdb_print_insn_mips): Don't set `disassembler_options'.
4197 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4198 functions.
4199 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4200 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4201 `gdbarch_disassembler_options_implicit' and
4202 `gdbarch_valid_disassembler_options'.
4203 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4204 `disasm_options_and_args_t' structure.
4205 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4206 method.
4207 (valid_disassembler_options): Switch from `disasm_options_t' to
4208 the `disasm_options_and_args_t' structure.
4209 * NEWS: Document `set disassembler-options' support for the MIPS
4210 target.
4211 * gdbarch.h: Regenerate.
4212 * gdbarch.c: Regenerate.
4213
41823f29
SH
42142018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4215
4216 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4217
41206e32
JB
42182018-06-29 Joel Brobecker <brobecker@adacore.com>
4219
4220 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4221 parameter in call to amd64_target_description.
4222 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4223 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4224 (amd64fbsd_init_abi): Likewise.
4225 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4226 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4227 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4228 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4229
de52b960
PA
42302018-06-29 Pedro Alves <palves@redhat.com>
4231
4232 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4233 "segments" parameter.
4234 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4235 (_initialize_amd64_tdep): Update call to
4236 amd64_create_target_description.
4237 (amd64_target_description): Add "segments" parameter. Adjust
4238 the implementation to use it.
4239 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4240 call to amd64_create_target_description.
4241 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4242 * gdb/arch/amd64.h (amd64_create_target_description): Add
4243 "segments" register.
4244 * gdb/arch/amd64.c (amd64_create_target_description): Add
4245 "segments" parameter. Call create_feature_i386_64bit_segments
4246 only if SEGMENTS is true.
4247 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4248 call to amd64_create_target_description.
4249
75acb486
PA
42502018-06-29 Pedro Alves <palves@redhat.com>
4251
4252 * thread.c (thread_target_id_str): New, factored out from ...
4253 (print_thread_info_1): ... here. Use it to compute the max
4254 "Target Id" column width.
4255
c76a8ea3
PA
42562018-06-29 Pedro Alves <palves@redhat.com>
4257
4258 * remote.c (remote_target::extra_thread_info): Delete
4259 'display_buf' and 'n' locals. from the cache, regardless of
4260 packet mechanims is in use. Use cache for qThreadExtra and qP
4261 methods too.
4262
cd2bb709
PA
42632018-06-29 Pedro Alves <palves@redhat.com>
4264
4265 * blockframe.c (find_pc_sect_containing_function): New function.
4266 * breakpoint.c (print_breakpoint_location): Don't call
4267 find_pc_sect_function.
4268 * linespec.c (create_sals_line_offset): Record the location's
4269 symbol in the sal.
4270 * linespec.c (convert_address_location_to_sals): Fill in sal's
4271 symbol with find_pc_sect_containing_function.
4272 * symtab.c (find_function_start_sal): Rename to ...
4273 (find_function_start_sal_1): ... this.
4274 (find_function_start_sal): Reimplement as wrapper around
4275 find_function_start_sal_1, and use
4276 find_pc_sect_containing_function to fill in the sal's symbol.
4277 (find_function_start_sal(symbol*, bool)): Adjust.
4278 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4279 comments.
4280 (find_pc_sect_containing_function): Declare.
4281
991ff292
PA
42822018-06-29 Pedro Alves <palves@redhat.com>
4283
4284 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4285 true if the the location has no symbol.
4286
44cee4fd
TT
42872018-06-28 Tom Tromey <tom@tromey.com>
4288
4289 * NEWS: Mention --enable-codesign.
4290 * silent-rules.mk (ECHO_SIGN): New variable.
4291 * configure.ac: Add --enable-codesign.
4292 * configure: Rebuild.
4293 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4294 (gdb$(EXEEXT)): Optionally invoke codesign.
4295
f2ffa92b
PA
42962018-06-28 Pedro Alves <palves@redhat.com>
4297
4298 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4299 comments.
4300 (switch_to_thread_no_regs): Adjust comment.
4301 * infcmd.c (stop_pc): Delete.
4302 (post_create_inferior, info_program_command): Replace references
4303 to stop_pc with references to thread_info->suspend.stop_pc.
4304 * inferior.h (stop_pc): Delete declaration.
4305 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4306 (handle_inferior_event_1, handle_signal_stop)
4307 (process_event_stop_test, keep_going_stepped_thread)
4308 (handle_step_into_function, handle_step_into_function_backward)
4309 (print_stop_location): Replace references to stop_pc with
4310 references to thread_info->suspend.stop_pc.
4311 (struct infcall_suspend_state) <stop_pc>: Delete field.
4312 (save_infcall_suspend_state, restore_infcall_suspend_state):
4313 Remove references to inf_stat->stop_pc.
4314 * linux-fork.c (fork_load_infrun_state): Likewise.
4315 * record-btrace.c (record_btrace_set_replay): Likewise.
4316 * record-full.c (record_full_goto_entry): Likewise.
4317 * remote.c (print_one_stopped_thread): Likewise.
4318 * target.c (target_resume): Extend comment.
4319 * thread.c (set_executing_thread): New.
4320 (set_executing): Use it.
4321 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4322 Remove references to stop_pc.
4323
ecdc3a72
PA
43242018-06-28 Pedro Alves <palves@redhat.com>
4325
4326 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4327 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4328
d95d3aef
TT
43292018-06-28 Tom Tromey <tom@tromey.com>
4330
4331 * coffread.c (coff_symfile_finish): Update.
4332 * xcoffread.c (xcoff_symfile_finish): Update.
4333 * elfread.c (elf_symfile_finish): Update.
4334 * symfile.h (dwarf2_free_objfile): Don't declare.
4335 * dwarf2read.c (_initialize_dwarf2_read): Use
4336 register_objfile_data_with_cleanup.
4337 (dwarf2_free_objfile): Now static. Change signature.
4338
291f9a96
PT
43392018-06-28 Petr Tesarik <ptesarik@suse.cz>
4340
4341 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4342 option "-o" to add-symbol-file-load to add an offset to each
4343 section's load address.
4344 * symfile.c (set_objfile_default_section_offset): New function.
4345
d81a3eaf
PT
43462018-06-28 Petr Tesarik <ptesarik@suse.cz>
4347
4348 * symfile.c (add_symbol_file_command): Make sure that sections
4349 with the same name are sorted in the same order.
4350
ed6dfe51
PT
43512018-06-28 Petr Tesarik <ptesarik@suse.cz>
4352
4353 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4354 require the second argument. If omitted, load sections at the
4355 addresses specified in the file.
4356
d4d429d5
PT
43572018-06-28 Petr Tesarik <ptesarik@suse.cz>
4358
4359 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4360 (_initialize_symfile): Add option "-o" to symbol-file to add an
4361 offset to each section of the symbol file.
4362
39b27ab6
PT
43632018-06-28 Petr Tesarik <ptesarik@suse.cz>
4364
4365 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4366
41827fc3
TT
43672018-06-27 Tom Tromey <tom@tromey.com>
4368
4369 * stack.c (_initialize_stack): Update "func" help text.
4370
0c6aef22
TT
43712018-06-27 Tom Tromey <tom@tromey.com>
4372
4373 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4374 std::vector.
4375 (unwind_infopy_str, pyuw_create_unwind_info)
4376 (unwind_infopy_add_saved_register, pyuw_sniffer)
4377 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4378 Update.
4379 (struct saved_reg): Add constructor.
4380 <value>: Now a gdbpy_ref<>.
4381
63177289
TT
43822018-06-27 Tom Tromey <tom@tromey.com>
4383
4384 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4385
e76f78a0
SM
43862018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4387
4388 * gdb-gdb.py.in: Format using autopep8.
4389
9a14af7b
SM
43902018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4391
4392 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4393 (type_lookup_function): Recognize CORE_ADDR values.
4394
189366cd
SM
43952018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4396
4397 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4398 print tag_name.
4399
68ad5fb9
SM
44002018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4401
4402 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4403 <__lt__>: Add.
4404
141ec9f6
SM
44052018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4406
4407 * gdb-gdb.py: Move to...
4408 * gdb-gdb.py.in: ... here.
4409 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4410 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4411 dependencies.
4412 (distclean): Remove gdb-gdb.py when cleaning.
4413 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4414 * configure: Re-generate.
4415
4c4e7ad4
PA
44162018-06-27 Pedro Alves <palves@redhat.com>
4417
4418 * proc-service.c (get_ps_regcache): New.
4419 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4420 (ps_lsetfpregs): Use it.
4421
7ab6656f
OJ
44222018-06-27 Omair Javaid <omair.javaid@linaro.org>
4423
4424 PR gdb/21695
4425 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4426 (dwarf_decode_lines_1): Adjust.
4427
bd583225
SM
44282018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4429
4430 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4431 override.
4432 <info_proc>: Likewise.
4433
9a325b7b
JB
44342018-06-26 Joel Brobecker <brobecker@adacore.com>
4435
4436 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4437 to windows_fetch_one_register, and only handle the case of
4438 fetching one register. Move the code that reloads the context
4439 and iterates over all registers if R is negative to...
4440 (windows_nat_target::fetch_registers): ... here.
4441 (do_windows_store_inferior_registers): Rename to
4442 windows_store_one_register, and only handle the case of storing
4443 one register. Move the code that handles the case where r is
4444 negative to...
4445 (windows_nat_target::store_registers) ... here.
4446
a33ccfc7
TT
44472018-06-26 Tom Tromey <tom@tromey.com>
4448
4449 PR rust/22574:
4450 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4451 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4452 Update.
4453 (rust_internal_print_type): Add podata parameter.
4454 (rust_print_type): Update.
4455
e0c547d1
TT
44562018-06-26 Tom Tromey <tom@tromey.com>
4457
4458 * typeprint.h (struct print_offset_data) <update, finish,
4459 maybe_print_hole>: New methods.
4460 <indentation>: New constant.
4461 * typeprint.c (print_offset_data::indentation): Define.
4462 (print_offset_data::maybe_print_hole, print_offset_data::update)
4463 (print_offset_data::finish): Move from c-typeprint.c and rename.
4464 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4465 (print_spaces_filtered_with_print_options): Update.
4466 (c_print_type_union_field_offset, maybe_print_hole)
4467 (c_print_type_struct_field_offset): Move to typeprint.c and
4468 rename.
4469 (c_type_print_base_struct_union): Update.
4470
75cbc781
PA
44712018-06-25 Pedro Alves <palves@redhat.com>
4472
4473 * gdbthread.h (thread_info_ref, delete_thread)
4474 (delete_thread_silent, first_thread_of_inferior)
4475 (any_thread_of_inferior, switch_to_thread)
4476 (enable_thread_stack_temporaries)
4477 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4478 (get_last_thread_stack_temporary)
4479 (value_in_thread_stack_temporaries, can_access_registers_thread):
4480 Spell out "struct thread_info" instead of just "thread_info".
4481 * inferior.h (notice_new_inferior): Likewise.
4482
b7a08269
PA
44832018-06-25 Pedro Alves <palves@redhat.com>
4484
4485 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4486 pass thread_info pointer to delete_thread.
4487 (windows_nat_target::detach): Pass inferior pointer to
4488 detach_inferior.
4489 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4490 delete_thread.
4491 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4492 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4493 and pass a thread_info pointer to delete_thread.
4494 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4495 pass thread_info pointer to delete_thread.
4496 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4497 delete_thread_silent call.
4498 * procfs.c (procfs_target::detach): Pass inferior pointer to
4499 detach_inferior.
4500 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4501 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4502 delete_thread_silent call.
4503 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4504 pass thread_info pointer to delete_thread.
4505 (windows_nat_target::detach): Pass inferior pointer to
4506 delete_inferior.
4507
8e7767e3
AH
45082018-06-22 Alan Hayward <alan.hayward@arm.com>
4509
4510 * regcache.c (readable_regcache::read_part): Fix asserts.
4511 (reg_buffer::raw_collect_part): New function.
4512 (regcache::write_part): Fix asserts.
4513 (reg_buffer::raw_supply_part): New function.
4514 (regcache::transfer_regset_register): New helper function.
4515 (regcache::transfer_regset): Call new functions.
4516 (regcache_supply_regset): Use gdb_byte*.
4517 (regcache::supply_regset): Likewise.
4518 (regcache_collect_regset): Likewise.
4519 (regcache::collect_regset): Likewise.
4520 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4521 (reg_buffer::raw_supply_part): Likewise.
4522 (regcache::transfer_regset_register): Likewise.
4523 (regcache::transfer_regset): Use gdb_byte*.
4524
bfd60e34
AH
45252018-06-22 Alan Hayward <alan.hayward@arm.com>
4526
4527 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4528
00431a78
PA
45292018-06-21 Pedro Alves <palves@redhat.com>
4530
4531 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4532 instead of a ptid_t. All callers adjusted.
4533 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4534 adjusted.
4535 (print_ada_task_info, display_current_task_id, task_command_1):
4536 Adjust.
4537 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4538 inferior_thread.
4539 (breakpoint_kind): Adjust.
4540 (remove_breakpoints_pid): Rename to ...
4541 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4542 pointer. All callers adjusted.
4543 (bpstat_clear_actions): Use inferior_thread.
4544 (get_bpstat_thread): New.
4545 (bpstat_do_actions): Use it.
4546 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4547 to take a thread_info pointer. All callers adjusted.
4548 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4549 (breakpoint_re_set_thread): Use inferior_thread.
4550 * breakpoint.h (struct inferior): Forward declare.
4551 (bpstat_stop_status): Update.
4552 (remove_breakpoints_pid): Delete.
4553 (remove_breakpoints_inf): New.
4554 * bsd-uthread.c (bsd_uthread_target::wait)
4555 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4556 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4557 (maint_btrace_packet_history_cmd)
4558 (maint_btrace_clear_packet_history_cmd): Adjust.
4559 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4560 inferior_thread.
4561 * cli/cli-interp.c: Include "inferior.h".
4562 * common/refcounted-object.h (struct
4563 refcounted_object_ref_policy): New.
4564 * compile/compile-object-load.c: Include gdbthread.h.
4565 (store_regs): Use inferior_thread.
4566 * corelow.c (core_target::close): Use current_inferior.
4567 (core_target_open): Adjust to use first_thread_of_inferior and use
4568 the current inferior.
4569 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4570 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4571 <thread>: ... this new field. All references adjusted.
4572 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4573 Take a thread_info pointer instead of a ptid_t.
4574 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4575 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4576 thread_info pointer instead of a ptid_t.
4577 * elfread.c: Include "inferior.h".
4578 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4579 Use inferior_thread.
4580 * eval.c (evaluate_subexp): Likewise.
4581 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4582 inferior_thread.
4583 * gdb_proc_service.h (struct thread_info): Forward declare.
4584 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4585 <thread>: ... this new field. All references adjusted.
4586 * gdbarch.h, gdbarch.c: Regenerate.
4587 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4588 'thread' parameter. All implementations and callers adjusted.
4589 * gdbthread.h (thread_info) <set_running>: New method.
4590 (delete_thread, delete_thread_silent): Take a thread_info pointer
4591 instead of a ptid.
4592 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4593 (first_thread_of_process): Delete, replaced by ...
4594 (first_thread_of_inferior): ... this new function. All callers
4595 adjusted.
4596 (any_live_thread_of_process): Delete, replaced by ...
4597 (any_live_thread_of_inferior): ... this new function. All callers
4598 adjusted.
4599 (switch_to_thread, switch_to_no_thread): Declare.
4600 (is_executing): Delete.
4601 (enable_thread_stack_temporaries): Update comment.
4602 <enable_thread_stack_temporaries>: Take a thread_info pointer
4603 instead of a ptid_t. Incref the thread.
4604 <~enable_thread_stack_temporaries>: Decref the thread.
4605 <m_ptid>: Delete
4606 <m_thr>: New.
4607 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4608 (get_last_thread_stack_temporary)
4609 (value_in_thread_stack_temporaries, can_access_registers_thread):
4610 Take a thread_info pointer instead of a ptid_t. All callers
4611 adjusted.
4612 * infcall.c (get_call_return_value): Use inferior_thread.
4613 (run_inferior_call): Work with thread pointers instead of ptid_t.
4614 (call_function_by_hand_dummy): Work with thread pointers instead
4615 of ptid_t. Use thread_info_ref.
4616 * infcmd.c (proceed_thread_callback): Access thread's state
4617 directly.
4618 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4619 access thread's state directly.
4620 (continue_command): Use inferior_thread.
4621 (info_program_command): Use find_thread_ptid and access thread
4622 state directly.
4623 (proceed_after_attach_callback): Use thread state directly.
4624 (notice_new_inferior): Take a thread_info pointer instead of a
4625 ptid_t. All callers adjusted.
4626 (exit_inferior): Take an inferior pointer instead of a pid. All
4627 callers adjusted.
4628 (exit_inferior_silent): New.
4629 (detach_inferior): Delete.
4630 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4631 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4632 (detach_inferior_command, kill_inferior_command): Use
4633 find_inferior_id instead of valid_gdb_inferior_id and
4634 gdb_inferior_id_to_pid.
4635 (inferior_command): Use inferior and thread pointers.
4636 * inferior.h (struct thread_info): Forward declare.
4637 (notice_new_inferior): Take a thread_info pointer instead of a
4638 ptid_t. All callers adjusted.
4639 (detach_inferior): Delete declaration.
4640 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4641 instead of a pid. All callers adjusted.
4642 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4643 (valid_gdb_inferior_id): Delete.
4644 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4645 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4646 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4647 ...
4648 <inf>: ... this new field.
4649 <step_ptid>: Delete, replaced by ...
4650 <step_thread>: ... this new field.
4651 (get_displaced_stepping_state): Take an inferior pointer instead
4652 of a pid. All callers adjusted.
4653 (displaced_step_in_progress_any_inferior): Adjust.
4654 (displaced_step_in_progress_thread): Take a thread pointer instead
4655 of a ptid_t. All callers adjusted.
4656 (displaced_step_in_progress, add_displaced_stepping_state): Take
4657 an inferior pointer instead of a pid. All callers adjusted.
4658 (get_displaced_step_closure_by_addr): Adjust.
4659 (remove_displaced_stepping_state): Take an inferior pointer
4660 instead of a pid. All callers adjusted.
4661 (displaced_step_prepare_throw, displaced_step_prepare)
4662 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4663 All callers adjusted.
4664 (start_step_over): Adjust.
4665 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4666 displaced step queue.
4667 (do_target_resume): Adjust.
4668 (fetch_inferior_event): Use inferior_thread.
4669 (context_switch, get_inferior_stop_soon): Take an
4670 execution_control_state pointer instead of a ptid_t. All callers
4671 adjusted.
4672 (switch_to_thread_cleanup): Delete.
4673 (stop_all_threads): Use scoped_restore_current_thread.
4674 * inline-frame.c: Include "gdbthread.h".
4675 (inline_state) <inline_state>: Take a thread pointer instead of a
4676 ptid_t. All callers adjusted.
4677 <ptid>: Delete, replaced by ...
4678 <thread>: ... this new field.
4679 (find_inline_frame_state): Take a thread pointer instead of a
4680 ptid_t. All callers adjusted.
4681 (skip_inline_frames, step_into_inline_frame)
4682 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4683 pointer instead of a ptid_t. All callers adjusted.
4684 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4685 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4686 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4687 pointers directly.
4688 * linux-nat.c (get_detach_signal): Likewise.
4689 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4690 (thread_db_notice_clone): Adjust.
4691 (thread_db_find_new_threads_silently)
4692 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4693 a thread pointer instead of a ptid_t. All callers adjusted.
4694 * mi/mi-cmd-var.c: Include "inferior.h".
4695 (mi_cmd_var_update_iter): Update to use thread pointers.
4696 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4697 inferior directly.
4698 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4699 out to ...
4700 (mi_output_running): ... this new function.
4701 (mi_on_resume_1): Adjust to use it.
4702 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4703 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4704 directly.
4705 (interrupt_thread_callback): : Adjust to use thread and inferior
4706 pointers.
4707 * proc-service.c: Include "gdbthread.h".
4708 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4709 * progspace-and-thread.c: Include "inferior.h".
4710 * progspace.c: Include "inferior.h".
4711 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4712 hold a reference to an inferior_object.
4713 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4714 inferior_thread.
4715 * python/py-inferior.c (struct inferior_object): Give the type a
4716 tag name instead of a typedef.
4717 (python_on_normal_stop): No need to check if the current thread is
4718 listed.
4719 (inferior_to_inferior_object): Change return type to
4720 inferior_object. All callers adjusted.
4721 (find_thread_object): Delete, bits factored out to ...
4722 (thread_to_thread_object): ... this new function.
4723 * python/py-infthread.c (create_thread_object): Use
4724 inferior_to_inferior_object.
4725 (thpy_is_stopped): Use thread pointer directly.
4726 (gdbpy_selected_thread): Use inferior_thread.
4727 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4728 field, replaced with ...
4729 <thread>: ... this new field. All users adjusted.
4730 (btpy_insn_or_gap_new): Drop const.
4731 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4732 callers adjusted.
4733 * python/py-record.c: Include "gdbthread.h".
4734 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4735 a ptid_t. All callers adjusted.
4736 (gdbpy_current_recording): Use inferior_thread.
4737 * python/py-record.h (recpy_record_object) <ptid>: Delete
4738 field, replaced with ...
4739 <thread>: ... this new field. All users adjusted.
4740 (recpy_element_object) <ptid>: Delete
4741 field, replaced with ...
4742 <thread>: ... this new field. All users adjusted.
4743 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4744 a ptid_t. All callers adjusted.
4745 * python/py-threadevent.c: Include "gdbthread.h".
4746 (get_event_thread): Use thread_to_thread_object.
4747 * python/python-internal.h (struct inferior_object): Forward
4748 declare.
4749 (find_thread_object, find_inferior_object): Delete declarations.
4750 (thread_to_thread_object, inferior_to_inferior_object): New
4751 declarations.
4752 * record-btrace.c: Include "inferior.h".
4753 (require_btrace_thread): Use inferior_thread.
4754 (record_btrace_frame_sniffer)
4755 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4756 (get_thread_current_frame): Use scoped_restore_current_thread and
4757 switch_to_thread.
4758 (get_thread_current_frame): Use thread pointer directly.
4759 (record_btrace_replay_at_breakpoint): Use thread's inferior
4760 pointer directly.
4761 * record-full.c: Include "inferior.h".
4762 * regcache.c: Include "gdbthread.h".
4763 (get_thread_arch_regcache): Use the inferior's address space
4764 directly.
4765 (get_thread_regcache, registers_changed_thread): New.
4766 * regcache.h (get_thread_regcache(thread_info *thread)): New
4767 overload.
4768 (registers_changed_thread): New.
4769 (remote_target) <remote_detach_1>: Swap order of parameters.
4770 (remote_add_thread): <remote_add_thread>: Return the new thread.
4771 (get_remote_thread_info(ptid_t)): New overload.
4772 (remote_target::remote_notice_new_inferior): Use thread pointers
4773 directly.
4774 (remote_target::process_initial_stop_replies): Use
4775 thread_info::set_running.
4776 (remote_target::remote_detach_1, remote_target::detach)
4777 (extended_remote_target::detach): Adjust.
4778 * stack.c (frame_show_address): Use inferior_thread.
4779 * target-debug.h (target_debug_print_thread_info_pp): New.
4780 * target-delegates.c: Regenerate.
4781 * target.c (default_thread_address_space): Delete.
4782 (memory_xfer_partial_1): Use current_inferior.
4783 (target_detach): Use current_inferior.
4784 (target_thread_address_space): Delete.
4785 (generic_mourn_inferior): Use current_inferior.
4786 * target.h (struct target_ops) <thread_address_space>: Delete.
4787 (target_thread_address_space): Delete.
4788 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4789 pointers directly.
4790 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4791 thread pointer instead of a ptid_t. Adjust all callers.
4792 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4793 (first_thread_of_process): Delete, replaced by ...
4794 (first_thread_of_inferior): ... this new function. All callers
4795 adjusted.
4796 (any_thread_of_process): Rename to ...
4797 (any_thread_of_inferior): ... this, and take an inferior pointer.
4798 (any_live_thread_of_process): Rename to ...
4799 (any_live_thread_of_inferior): ... this, and take an inferior
4800 pointer.
4801 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4802 (value_in_thread_stack_temporaries)
4803 (get_last_thread_stack_temporary): Take a thread pointer instead
4804 of a ptid_t. Adjust all callers.
4805 (thread_info::set_running): New.
4806 (validate_registers_access): Use inferior_thread.
4807 (can_access_registers_ptid): Rename to ...
4808 (can_access_registers_thread): ... this, and take a thread
4809 pointer.
4810 (print_thread_info_1): Adjust to compare thread pointers instead
4811 of ptids.
4812 (switch_to_no_thread, switch_to_thread): Make extern.
4813 (scoped_restore_current_thread::~scoped_restore_current_thread):
4814 Use m_thread pointer directly.
4815 (scoped_restore_current_thread::scoped_restore_current_thread):
4816 Use inferior_thread.
4817 (thread_command): Use thread pointer directly.
4818 (thread_num_make_value_helper): Use inferior_thread.
4819 * top.c (execute_command): Use inferior_thread.
4820 * tui/tui-interp.c: Include "inferior.h".
4821 * varobj.c (varobj_create): Use inferior_thread.
4822 (value_of_root_1): Use find_thread_global_id instead of
4823 global_thread_id_to_ptid.
4824
33bab475
AH
48252018-06-21 Alan Hayward <alan.hayward@arm.com>
4826
4827 * regcache.c (readable_regcache::read_part): Avoid memcpy when
4828 possible.
4829 (regcache::write_part): Likewise.
4830 (readable_regcache::cooked_read_part): Update comment.
4831 (readable_regcache::cooked_write_part): Likewise.
4832 * regcache.h: (readable_regcache::read_part): Likewise.
4833 (regcache::write_part): Likewise.
4834
8363f9d5
RB
48352018-06-21 Richard Bunt <richard.bunt@arm.com>
4836 Dirk Schubert <dirk.schubert@arm.com>
4837
4838 * aarch64-linux-nat.c (post_attach): New.
4839 (aarch64_linux_nat_target::post_attach): Override post_attach to
4840 record the number of hardware debug registers.
4841
0d0b0ea2
TT
48422018-06-20 Tom Tromey <tom@tromey.com>
4843
4844 * python/py-param.c (add_setshow_generic): Make parameters const.
4845 (parmpy_init): Update.
4846
302abd6e
SM
48472018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4848
4849 * regcache.h (regcache_cooked_read_ftype): Rename to...
4850 (register_read_ftype): ...this, change type to function_view.
4851 (class reg_buffer) <save>: Remove src parameter.
4852 (readonly_detached_regcache) <readonly_detached_regcache>: Make
4853 parameter non-const in first overload. Remove src parameter in
4854 second overload.
4855 * regcache.c (do_cooked_read): Remove.
4856 (readonly_detached_regcache::readonly_detached_regcache): Make
4857 parameter non-const, adjust call to other constructor.
4858 (reg_buffer::save): Remove src parameter.
4859 * frame.c (do_frame_register_read): Remove.
4860 (frame_save_as_regcache): Use lambda function.
4861 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
4862 parameter to ppu2spu_data *.
4863 (ppu2spu_sniffer): Use lambda function.
4864
19f3f25f
SM
48652018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4866
4867 * record-full.c (record_full_target::insert_breakpoint): Remove
4868 "struct" keyword, add const.
4869
d0ac1c44
SM
48702018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4871
4872 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
4873 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
4874 * configure.ac: Remove AC_PREREQ, add missing quoting.
4875 * gnulib/configure.ac: Modernize usage of
4876 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
4877 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
4878 (AUTOMAKE_VERSION): Bump to 1.15.1.
4879 * configure: Re-generate.
4880 * config.in: Re-generate.
4881 * aclocal.m4: Re-generate.
4882 * gnulib/aclocal.m4: Re-generate.
4883 * gnulib/config.in: Re-generate.
4884 * gnulib/configure: Re-generate.
4885 * gnulib/import/Makefile.in: Re-generate.
4886
6ae50267
PA
48872018-06-19 Pedro Alves <palves@redhat.com>
4888
4889 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
4890 (lookup_minimal_symbol_by_pc_section): ... here with
4891 gdb_assert_not_reached added.
4892
61b04dd0
PA
48932018-06-19 Pedro Alves <palves@redhat.com>
4894
4895 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
4896 parameter with a block parameter. Compare location's block symbol
4897 with the frame's block instead of addresses.
4898 (skip_inline_frames): Pass the current block instead of the
4899 frame's address. Break out as soon as we determine the frame
4900 should not be skipped.
4901
f709fabb
TT
49022018-06-18 Tom Tromey <tom@tromey.com>
4903
4904 * solib-aix.c (solib_aix_get_section_offsets): Return
4905 unique_xmalloc_ptr.
4906 (solib_aix_solib_create_inferior_hook): Update.
4907
668eb2f0
TT
49082018-06-18 Tom Tromey <tom@tromey.com>
4909
4910 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
4911
309822ca
TT
49122018-06-18 Tom Tromey <tom@tromey.com>
4913
4914 * solib-frv.c (frv_relocate_main_executable): Use
4915 unique_xmalloc_ptr.
4916 * solib-dsbt.c (dsbt_relocate_main_executable): Use
4917 unique_xmalloc_ptr.
4918
06424eac
TT
49192018-06-18 Tom Tromey <tom@tromey.com>
4920
4921 * objfiles.h (inhibit_section_map_updates): Update.
4922 (resume_section_map_updates, resume_section_map_updates_cleanup):
4923 Remove.
4924 * solib-svr4.c (svr4_handle_solib_event): Update.
4925 * objfiles.c (inhibit_section_map_updates): Return
4926 scoped_restore_tmpl<int>.
4927 (resume_section_map_updates, resume_section_map_updates_cleanup):
4928 Remove.
4929
b4be9fad
TT
49302018-06-18 Tom Tromey <tom@tromey.com>
4931
4932 * valprint.h (read_string): Update.
4933 * valprint.c (read_string): Change type of "buffer".
4934 (val_print_string): Update.
4935 * python/py-value.c (valpy_string): Update.
4936 * language.h (struct language_defn) <la_get_string>: Change
4937 type of "buffer".
4938 (default_get_string, c_get_string): Update.
4939 * language.c (default_get_string): Change type of "buffer".
4940 * guile/scm-value.c (gdbscm_value_to_string): Update.
4941 * c-lang.c (c_get_string): Change type of "buffer".
4942
3f0dbd67
TT
49432018-06-18 Tom Tromey <tom@tromey.com>
4944
4945 * ser-mingw.c (struct pipe_state_destroyer): New.
4946 (pipe_state_up): New typedef.
4947 (cleanup_pipe_state): Remove.
4948 (pipe_windows_open): Use pipe_state_up. Don't release argv.
4949
69d340c6
TT
49502018-06-18 Tom Tromey <tom@tromey.com>
4951
4952 * rust-lang.h (rust_yyerror): Don't declare.
4953 * rust-lang.c (rust_language_defn): Update.
4954 * rust-exp.y (yyerror): Now static.
4955 * parse.c (parse_exp_in_context_1): Update.
4956 * p-lang.h (p_yyerror): Don't declare.
4957 * p-lang.c (p_language_defn): Update.
4958 * p-exp.y (yyerror): Now static.
4959 * opencl-lang.c (opencl_language_defn): Update.
4960 * objc-lang.c (objc_language_defn): Update.
4961 * m2-lang.h (m2_yyerror): Don't declare.
4962 * m2-lang.c (m2_language_defn): Update.
4963 * m2-exp.y (yyerror): Now static.
4964 * language.h (struct language_defn) <la_error>: Remove.
4965 * language.c (unk_lang_error): Remove.
4966 (unknown_language_defn, auto_language_defn): Remove.
4967 * go-lang.h (go_yyerror): Don't declare.
4968 * go-lang.c (go_language_defn): Update.
4969 * go-exp.y (yyerror): Now static.
4970 * f-lang.h (f_yyerror): Don't declare.
4971 * f-lang.c (f_language_defn): Update.
4972 * f-exp.y (yyerror): Now static.
4973 * d-lang.h (d_yyerror): Don't declare.
4974 * d-lang.c (d_language_defn): Update.
4975 * d-exp.y (yyerror): Now static.
4976 * c-lang.h (c_yyerror): Don't declare.
4977 * c-lang.c (c_language_defn, cplus_language_defn)
4978 (asm_language_defn, minimal_language_defn): Update.
4979 * c-exp.y (yyerror): Now static.
4980 * ada-lang.h (ada_yyerror): Don't declare.
4981 * ada-lang.c (ada_language_defn): Update.
4982 * ada-exp.y (yyerror): Now static.
4983
e9902bfc
AH
49842018-06-18 Alan Hayward <alan.hayward@arm.com>
4985
4986 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
4987 (store_sveregs_to_thread): Likewise.
4988 (aarch64_linux_fetch_inferior_registers): Check for SVE.
4989 (aarch64_linux_store_inferior_registers): Likewise.
4990 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
4991 function.
4992 (aarch64_sve_regs_copy_to_regcache): Likewise.
4993 (aarch64_sve_regs_copy_from_regcache): Likewise.
4994 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
4995 declaration.
4996 (aarch64_sve_regs_copy_to_regcache): Likewise.
4997 (aarch64_sve_regs_copy_from_regcache): Likewise.
4998 (sve_context): Structure from Linux headers.
4999 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5000 (SVE_SIG_ZREG_SIZE): Likewise.
5001 (SVE_SIG_PREG_SIZE): Likewise.
5002 (SVE_SIG_FFR_SIZE): Likewise.
5003 (SVE_SIG_REGS_OFFSET): Likewise.
5004 (SVE_SIG_ZREGS_OFFSET): Likewise.
5005 (SVE_SIG_ZREG_OFFSET): Likewise.
5006 (SVE_SIG_ZREGS_SIZE): Likewise.
5007 (SVE_SIG_PREGS_OFFSET): Likewise.
5008 (SVE_SIG_PREG_OFFSET): Likewise.
5009 (SVE_SIG_PREGS_SIZE): Likewise.
5010 (SVE_SIG_FFR_OFFSET): Likewise.
5011 (SVE_SIG_REGS_SIZE): Likewise.
5012 (SVE_SIG_CONTEXT_SIZE): Likewise.
5013 (SVE_PT_REGS_MASK): Likewise.
5014 (SVE_PT_REGS_FPSIMD): Likewise.
5015 (SVE_PT_REGS_SVE): Likewise.
5016 (SVE_PT_VL_INHERIT): Likewise.
5017 (SVE_PT_VL_ONEXEC): Likewise.
5018 (SVE_PT_REGS_OFFSET): Likewise.
5019 (SVE_PT_FPSIMD_OFFSET): Likewise.
5020 (SVE_PT_FPSIMD_SIZE): Likewise.
5021 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5022 (SVE_PT_SVE_PREG_SIZE): Likewise.
5023 (SVE_PT_SVE_FFR_SIZE): Likewise.
5024 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5025 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5026 (__SVE_SIG_TO_PT): Likewise.
5027 (SVE_PT_SVE_OFFSET): Likewise.
5028 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5029 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5030 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5031 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5032 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5033 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5034 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5035 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5036 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5037 (SVE_PT_SVE_SIZE): Likewise.
5038 (SVE_PT_SIZE): Likewise.
5039 (HAS_SVE_STATE): New define.
5040
17a1cc89
AH
50412018-06-18 Alan Hayward <alan.hayward@arm.com>
5042
5043 * nat/aarch64-sve-linux-sigcontext.h: New file.
5044 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5045 new files.
5046 (SVE_VQ_MIN): Likewise.
5047 (SVE_VQ_MAX): Likewise.
5048 (SVE_VL_MIN): Likewise.
5049 (SVE_VL_MAX): Likewise.
5050 (SVE_NUM_ZREGS): Likewise.
5051 (SVE_NUM_PREGS): Likewise.
5052 (sve_vl_valid): Likewise.
5053 (struct user_sve_header): Likewise.
5054
7010835a
AB
50552018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5056 Richard Bunt <Richard.Bunt@arm.com>
5057
5058 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5059 was requested by GDB.
5060
479b3ef4
TV
50612018-06-15 Tom de Vries <tdevries@suse.de>
5062
5063 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5064
8199b8f4
SM
50652018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5066
5067 * gnulib/update-gnulib.sh: Print expected versions of
5068 autoconf/aclocal.
5069
55c748a1
SM
50702018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5071
5072 * arch-utils.c (default_type_align): Use type_length_units.
5073 * gdbtypes.c (type_align): Use type_length_units.
5074
87a8eca7
PW
50752018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5076
5077 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5078 of 'define' command.
5079
5d9a0608
TV
50802018-06-14 Tom de Vries <tdevries@suse.de>
5081
5082 PR cli/22573
5083 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5084 get_no_prettyformat_print_options.
5085
ab89b5a5
SM
50862018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5087
5088 * sparc-nat.h: Include target.h.
5089 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5090 <fetch_registers>: Remove this argument in function call.
5091 <store_registers>: Remove this argument in function call, remove
5092 extra semicolon.
5093 <low_forget_process>: Call sparc64_forget_process instead of
5094 sparc_forget_process.
5095
62c808ae
RO
50962018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5097
5098 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5099 (procfs_target::make_corefile_notes): Adjust to new
5100 target_read_alloc return type.
5101
1840d81a
AB
51022018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5103 Stephen Roberts <stephen.roberts@arm.com>
5104
5105 PR gdb/22882
5106 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5107 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5108 Move should_notify_stop local into more inner scope.
5109
9516f85a
AB
51102018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5111 Stephen Roberts <stephen.roberts@arm.com>
5112
5113 PR gdb/22882
5114 * infrun.c (resume_1): Add call to mark_async_event_handler.
5115
defd2172
AB
51162018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5117
5118 * infrun.c (do_target_wait): Change old version of $pc printed.
5119
7b23e087
SM
51202018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5121
5122 * dwarf2read.c (read_index_from_section): Rename to...
5123 (read_gdb_index_from_section): ... this, update all callers.
5124 (dwarf2_read_index): Rename to...
5125 (dwarf2_read_gdb_index): ... this, update all callers.
5126
69c67a0b
JDA
51272018-06-11 John David Anglin <danglin@gcc.gnu.org>
5128
5129 * gdb/hppa-linux-nat.c
5130 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5131 hppa_linux_nat_target::fetch_registers.
5132
65d4cada
AH
51332018-06-11 Alan Hayward <alan.hayward@arm.com>
5134
5135 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5136 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5137 (AARCH64_DWARF_SVE_FFR): Likewise.
5138 (AARCH64_DWARF_SVE_P0): Likewise.
5139 (AARCH64_DWARF_SVE_Z0): Likewise.
5140
f868386e
AH
51412018-06-11 Alan Hayward <alan.hayward@arm.com>
5142
5143 * common/common-regcache.h (raw_compare): New function.
5144 * regcache.c (regcache::raw_compare): Likewise.
5145 * regcache.h (regcache::raw_compare): New declaration.
5146
9c861883
AH
51472018-06-11 Alan Hayward <alan.hayward@arm.com>
5148
5149 * common/common-regcache.h (reg_buffer_common): New structure.
5150 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5151 (reg_buffer::raw_supply): Likewise.
5152 (reg_buffer::raw_supply_integer): Likewise.
5153 (reg_buffer::raw_supply_zeroed): Likewise.
5154 (reg_buffer::raw_collect): Likewise.
5155 (reg_buffer::raw_collect_integer): Likewise.
5156 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5157 (reg_buffer::raw_supply): Likewise.
5158 (reg_buffer::raw_supply_integer): Likewise.
5159 (reg_buffer::raw_supply_zeroed): Likewise.
5160 (reg_buffer::raw_collect): Likewise.
5161 (reg_buffer::raw_collect_integer): Likewise.
5162
953edf2b
TT
51632018-06-10 Tom Tromey <tom@tromey.com>
5164
5165 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5166 (class remote_state) <stop_reply_queue>: Now std::vector.
5167 (remote_state::~remote_state)
5168 (remote_target::stop_reply_queue_length): Update.
5169 (struct queue_iter_param, remove_child_of_pending_fork)
5170 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5171 (check_pending_event_prevents_wildcard_vcont_callback)
5172 (remove_stop_reply_for_inferior)
5173 (remove_stop_reply_of_remote_state)
5174 (remote_notif_remove_once_on_match)
5175 (stop_reply_match_ptid_and_ws)
5176 (remote_kill_child_of_pending_fork): Remove.
5177 (remote_target::remove_new_fork_children)
5178 (remote_target::check_pending_events_prevent_wildcard_vcont)
5179 (remote_target::discard_pending_stop_replies)
5180 (remote_target::discard_pending_stop_replies_in_queue)
5181 (remote_target::remote_notif_remove_queued_reply)
5182 (remote_target::queued_stop_reply)
5183 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5184 (remote_target::wait, remote_target::kill_new_fork_children)
5185 (remote_target::async): Update.
5186
1ddbba9d
TT
51872018-06-10 Tom Tromey <tom@tromey.com>
5188
5189 * record-full.c (record_full_arch_list_cleanups): Remove.
5190 (record_full_message): Use try/catch.
5191 (record_full_wait_cleanups): Remove.
5192 (record_full_wait_1): Use try/catch.
5193 (record_full_restore): Likewise.
5194
219605fd
TT
51952018-06-10 Tom Tromey <tom@tromey.com>
5196
5197 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5198 declare VEC. Add constructor.
5199 <in_target_beneath>: Now bool.
5200 (record_full_breakpoints): Now a std::vector, static.
5201 (record_full_sync_record_breakpoints)
5202 (record_full_init_record_breakpoints)
5203 (record_full_target::insert_breakpoint)
5204 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5205
71b73764
SM
52062018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5207
5208 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5209 * serial.c (serial_interface_lookup): Remove struct keyword.
5210
4360561f
TT
52112018-06-10 Tom Tromey <tom@tromey.com>
5212
5213 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5214 method.
5215 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5216 a method.
5217 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5218 method.
5219 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5220 "beneath" as a method.
5221 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5222 Use "beneath" as a method.
5223
d14b92bf
TT
52242018-06-10 Tom Tromey <tom@tromey.com>
5225
5226 * tracefile.c (struct trace_file_writer_deleter): New.
5227 <operator()>: Rename from trace_file_writer_xfree.
5228 (trace_file_writer_up): New typedef.
5229 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5230
835dcf92
SM
52312018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5232
5233 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5234 <m_registers, m_register_status>: Change type to
5235 std::unique_ptr.
5236 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5237 XCNEWVEC.
5238
aac0d564
SM
52392018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5240
5241 * common/common-regcache.h (enum register_status): Add
5242 underlying type "signed char".
5243 * regcache.h (reg_buffer) <m_register_status>: Change type to
5244 register_status *.
5245 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5246 register_status instead of signed char.
5247 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5248 (reg_buffer::get_register_status): Remove cast.
5249 (readable_regcache::raw_read): Remove cast.
5250 (readable_regcache::cooked_read): Remove cast.
5251
77ad7394
TT
52522018-06-09 Tom Tromey <tom@tromey.com>
5253
5254 * source.c (reverse_search_command, forward_search_command): Use
5255 scoped_fd.
5256
191cca63
TT
52572018-06-09 Tom Tromey <tom@tromey.com>
5258
5259 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5260 (serial_ops_list): Now static, std::vector.
5261 (serial_interface_lookup, serial_add_interface): Update.
5262
c5d0225d
TT
52632018-06-09 Tom Tromey <tom@tromey.com>
5264
5265 * dwarf2read.c (process_cu_includes): Update.
5266 (process_full_comp_unit): Update.
5267 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5268 std::vector.
5269
aeab5128
PK
52702018-06-08 Paul Koning <paul_koning@dell.com>
5271
5272 PR gdb/23252
5273
5274 * python/python.c (do_start_initialization):
5275 Avoid call to internal Python API.
5276 (init__gdb_module): New function.
5277
5045b3d7
GB
52782018-06-08 Gary Benson <gbenson@redhat.com>
5279
5280 * linux-thread-db.c (valprint.h): New include.
5281 (struct check_thread_db_info): New structure.
5282 (check_thread_db_on_load, tdb_testinfo): New static globals.
5283 (check_thread_db, check_thread_db_callback): New functions.
5284 (try_thread_db_load_1): Run integrity checks if requested.
5285 (maintenance_check_libthread_db): New function.
5286 (_initialize_thread_db): Register "maint check libthread-db"
5287 and "maint set/show check-libthread-db".
5288 * NEWS: Mention the above new commands.
5289
2f4f025f
TT
52902018-06-08 Tom Tromey <tom@tromey.com>
5291
5292 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5293 now a method.
5294
343b0027
TT
52952018-06-08 Tom Tromey <tom@tromey.com>
5296
5297 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5298
8dcc53b3
TT
52992018-06-08 Tom Tromey <tom@tromey.com>
5300
5301 * common/btrace-common.h (struct btrace_data): Add constructor,
5302 destructor, move assignment operator.
5303 <empty, clear, fini>: New methods.
5304 <format>: Initialize.
5305 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5306 (btrace_data_empty): Don't declare.
5307 * common/btrace-common.c (btrace_data_init): Remove.
5308 (btrace_data::fini): Rename from btrace_data_fini.
5309 (btrace_data::empty): Rename from btrace_data_empty.
5310 (btrace_data::clear): Rename from btrace_data_clear. Return
5311 bool.
5312 * btrace.h (make_cleanup_btrace_data): Don't declare.
5313 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5314 (parse_xml_btrace): Update.
5315 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5316 (maint_btrace_clear_packet_history_cmd): Update.
5317
a1740ee1
PA
53182018-06-07 Pedro Alves <palves@redhat.com>
5319
5320 * target.h (target_ops) <beneath>: Now a method. All references
5321 updated.
5322 (class target_stack): New.
5323 * target.c (g_target_stack): New.
5324 (g_current_top_target): Delete.
5325 (current_top_target): Get the top target out of g_target_stack.
5326 (target_stack::push, target_stack::unpush): New.
5327 (push_target, unpush_target): Reimplement.
5328 (target_is_pushed): Reimplement in terms of g_target_stack.
5329 (target_ops::beneath, target_stack::find_beneath): New.
5330
d6ca69cd
PA
53312018-06-07 Pedro Alves <palves@redhat.com>
5332
5333 * target.h (find_target_beneath): Delete declaration.
5334 * target.c (find_target_beneath): Delete definition.
5335 * aix-thread.c: All callers of find_target_beneath adjusted to
5336 call target_ops::beneath instead.
5337 * bsd-uthread.c: Likewise.
5338 * linux-thread-db.c: Likewise.
5339 * ravenscar-thread.c: Likewise.
5340 * sol-thread.c: Likewise.
5341 * spu-multiarch.c: Likewise.
5342
b6a8c27b
PA
53432018-06-07 Pedro Alves <palves@redhat.com>
5344
5345 * target.h (target_ops) <beneath>: Now a method. All references
5346 updated.
5347 (target_ops) <m_beneath>: New.
5348 * target.c (target_ops::beneath): New.
5349 * corelow.c: Adjust all references to target_ops::beneath.
5350 * linux-thread-db.c: Likewise.
5351 * make-target-delegates: Likewise.
5352 * record-btrace.c: Likewise.
5353 * record-full.c: Likewise.
5354 * remote.c: Likewise.
5355 * target.c: Likewise.
5356 * target-delegates.c: Regenerate.
5357
8b88a78e
PA
53582018-06-07 Pedro Alves <palves@redhat.com>
5359
5360 * target.h (target_stack): Delete.
5361 (current_top_target): Declare function.
5362 * target.c (target_stack): Delete.
5363 (g_current_top_target): New.
5364 (current_top_target): New function.
5365 * auxv.c: Use current_top_target instead of target_stack
5366 throughout.
5367 * avr-tdep.c: Likewise.
5368 * breakpoint.c: Likewise.
5369 * corefile.c: Likewise.
5370 * elfread.c: Likewise.
5371 * eval.c: Likewise.
5372 * exceptions.c: Likewise.
5373 * frame.c: Likewise.
5374 * gdbarch-selftests.c: Likewise.
5375 * gnu-v3-abi.c: Likewise.
5376 * ia64-tdep.c: Likewise.
5377 * ia64-vms-tdep.c: Likewise.
5378 * infcall.c: Likewise.
5379 * infcmd.c: Likewise.
5380 * infrun.c: Likewise.
5381 * linespec.c: Likewise.
5382 * linux-tdep.c: Likewise.
5383 * minsyms.c: Likewise.
5384 * ppc-linux-nat.c: Likewise.
5385 * ppc-linux-tdep.c: Likewise.
5386 * procfs.c: Likewise.
5387 * regcache.c: Likewise.
5388 * remote.c: Likewise.
5389 * rs6000-tdep.c: Likewise.
5390 * s390-linux-nat.c: Likewise.
5391 * s390-tdep.c: Likewise.
5392 * solib-aix.c: Likewise.
5393 * solib-darwin.c: Likewise.
5394 * solib-dsbt.c: Likewise.
5395 * solib-spu.c: Likewise.
5396 * solib-svr4.c: Likewise.
5397 * solib-target.c: Likewise.
5398 * sparc-tdep.c: Likewise.
5399 * sparc64-tdep.c: Likewise.
5400 * spu-tdep.c: Likewise.
5401 * symfile.c: Likewise.
5402 * symtab.c: Likewise.
5403 * target-descriptions.c: Likewise.
5404 * target-memory.c: Likewise.
5405 * target.c: Likewise.
5406 * target.h: Likewise.
5407 * tracefile-tfile.c: Likewise.
5408 * tracepoint.c: Likewise.
5409 * valops.c: Likewise.
5410 * valprint.c: Likewise.
5411 * value.c: Likewise.
5412 * windows-tdep.c: Likewise.
5413 * mi/mi-main.c: Likewise.
5414
c7110220
TT
54152018-06-07 Tom Tromey <tom@tromey.com>
5416
5417 * valprint.h (build_address_symbolic): Declare.
5418 * printcmd.c (print_address_symbolic): Update.
5419 (build_address_symbolic): Change "name" and "filename" to
5420 std::string.
5421 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5422 Update.
5423 * defs.h (build_address_symbolic): Remove declaration.
5424
63bad7b6
AH
54252018-06-07 Alan Hayward <alan.hayward@arm.com>
5426
5427 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5428 (aarch64_vnv_type): Add function.
5429 (aarch64_pseudo_register_name): Add V regs for SVE.
5430 (aarch64_pseudo_register_type): Likewise.
5431 (aarch64_pseudo_register_reggroup_p): Likewise.
5432 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5433 (aarch64_pseudo_read_value): Add V regs for SVE.
5434 (aarch64_pseudo_write_2): Use V0 offset for SVE
5435 (aarch64_pseudo_write): Add V regs for SVE.
5436 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5437
13e3c608
SDJ
54382018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5439
5440 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5441 (sve_vl_from_vq): Likewise.
5442
c61b06a1
TT
54432018-06-05 Tom Tromey <tom@tromey.com>
5444
5445 * cli/cli-cmds.c (show_version): Update.
5446 * top.c (print_gdb_version): Add "interactive" parameter.
5447 Update.
5448 * main.c (captured_main_1): Update.
5449 * top.h (print_gdb_version): Add "interactive" parameter and a
5450 comment.
5451
115f7325
DM
54522018-06-05 David Malcolm <dmalcolm@redhat.com>
5453
5454 * common/enum-flags.h: Add trailing semicolon to example in
5455 comment.
5456
eb6af809
TT
54572018-06-05 Tom Tromey <tom@tromey.com>
5458
5459 PR cli/12326:
5460 * NEWS: Add entry about pager.
5461 * utils.c (pagination_disabled_for_command): New global.
5462 (prompt_for_continue): Allow "c" response to prompt.
5463 (reinitialize_more_filter): Clear
5464 pagination_disabled_for_command.
5465 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5466
54d343a2
TT
54672018-06-04 Tom Tromey <tom@tromey.com>
5468
5469 * ada-lang.h (ada_lookup_symbol_list): Update.
5470 * ada-lang.c (resolve_subexp): Update.
5471 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5472 parameter.
5473 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5474 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5475 results parameter to std::vector.
5476 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5477 Update.
5478 * ada-exp.y (block_lookup): Update.
5479 (select_possible_type_sym): Change type of syms. Remove nsyms
5480 parameter.
5481 (write_var_or_type, write_name_assoc): Update.
5482
178d6a63
JB
54832018-06-04 Joel Brobecker <brobecker@adacore.com>
5484
5485 * windows-nat.c (windows_nat_target::xfer_partial): Return
5486 TARGET_XFER_E_IO if we need to delegate to the target beneath
5487 but BENEATH is NULL.
5488
baf00c2d
SM
54892018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5490
5491 * Makefile.in (config.status): Add configure.nat as a
5492 dependency.
5493
214b073c
TT
54942018-06-04 Tom Tromey <tom@tromey.com>
5495
5496 * cp-name-parser.y (cpname_state): Add method declarations.
5497 (HANDLE_QUAL): Update.
5498 (cpname_state::d_grab, cpname_state::fill_comp)
5499 (cpname_state::make_operator, cpname_state::make_dtor)
5500 (cpname_state::make_builtin_type, cpname_state::make_name)
5501 (cpname_state::d_qualify, cpname_state::d_int_type)
5502 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5503 (%union): Move earlier.
5504
62b74cb8
AH
55052018-06-04 Alan Hayward <alan.hayward@arm.com>
5506
5507 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5508
3c5cd5c3
AH
55092018-06-04 Alan Hayward <alan.hayward@arm.com>
5510
5511 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5512 (aarch64_pseudo_write_1): Likewise.
5513 (aarch64_pseudo_read_value): Use helper.
5514 (aarch64_pseudo_write): Likewise.
5515
59f413d5
PA
55162018-06-04 Pedro Alves <palves@redhat.com>
5517
5518 * darwin-nat.c (darwin_ops): Delete.
5519 (darwin_attach_pid): Use get_native_target.
5520
1332a140
AH
55212018-06-04 Alan Hayward <alan.hayward@arm.com>
5522
5523 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5524 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5525
ba2d2bb2
AH
55262018-06-04 Alan Hayward <alan.hayward@arm.com>
5527
5528 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5529 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5530 (aarch64_gdbarch_init): Check for SVE.
5531 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5532
55332018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
5534
5535 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5536 * aarch64-tdep.h (aarch64_read_description): Likewise.
5537 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5538 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5539 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5540 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5541 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5542
41c60b4b
SM
55432018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5544
5545 * value.c (value_fetch_lazy_bitfield): New.
5546 (value_fetch_lazy_memory): New.
5547 (value_fetch_lazy_register): New.
5548 (value_fetch_lazy): Factor out to smaller functions.
5549
7b640f72
TT
55502018-06-01 Tom Tromey <tom@tromey.com>
5551
5552 * cp-name-parser.y (backslashable, represented): Now const.
5553
98e69eb3
TT
55542018-06-01 Tom Tromey <tom@tromey.com>
5555
5556 * cp-name-parser.y: Include parser-defs.h.
5557 (parser_fprintf): Remove declaration.
5558
49265499
TT
55592018-06-01 Tom Tromey <tom@tromey.com>
5560
5561 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5562 %parse-param.
5563 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5564 (global_result): Remove globals.
5565 (struct cpname_state): New.
5566 (yyparse): Don't declare.
5567 (yylex, yyerror): Move declarations after %union.
5568 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5569 (make_name): Add state parameter.
5570 Update all callers.
5571 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5572 parameter.
5573 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5574 Update.
5575 (yylex): Add lvalp, state parameters.
5576 (yyerror): Add state parameter.
5577 (cp_demangled_name_to_comp): Update.
5578
55b6c984
TT
55792018-06-01 Tom Tromey <tom@tromey.com>
5580
5581 * cp-name-parser.y (parser_fprintf): Declare.
5582 (GDB_YY_REMAP_PREFIX): Define.
5583 Include yy-remap.h. Don't redefine yy* identifiers.
5584
3513a6bb
TT
55852018-06-01 Tom Tromey <tom@tromey.com>
5586
5587 * python/py-type.c (typy_legacy_template_argument): Update.
5588 * cp-support.h (cp_demangled_name_to_comp): Update.
5589 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5590 parameter to be a "std::string *".
5591 (main): Update.
5592
e9cb46ab
L
55932018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5594
5595 * ada-lex.l: Include "diagnostics.h" instead of
5596 "common/diagnostics.h".
5597 * unittests/environ-selftests.c: Likewise.
5598 * common/diagnostics.h: Moved to ../include.
5599
8e817061
JB
56002018-06-01 Joel Brobecker <brobecker@adacore.com>
5601
5602 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5603 to language_mode_manual while calling breakpoint_re_set_one.
5604
a737d952
TT
56052018-06-01 Tom Tromey <tom@tromey.com>
5606
5607 * valops.c (value_cast_structs, destructor_name_p): Update.
5608 * symtab.c (gdb_mangle_name): Update.
5609 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5610 Update.
5611 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5612 (pascal_object_print_value_fields, pascal_object_print_value):
5613 Update.
5614 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5615 * linespec.c (find_methods): Update.
5616 * gdbtypes.h (type_name_no_tag): Remove.
5617 (type_name_or_error): Rename from type_name_no_tag_or_error.
5618 * gdbtypes.c (type_name_no_tag): Remove.
5619 (type_name_or_error): Rename from type_name_no_tag_or_error.
5620 (lookup_struct_elt_type, check_typedef): Update.
5621 * expprint.c (print_subexp_standard): Update.
5622 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5623 * d-namespace.c (d_lookup_nested_symbol): Update.
5624 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5625 (cp_print_class_member): Update.
5626 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5627 * completer.c (add_struct_fields): Update.
5628 * c-typeprint.c (cp_type_print_derivation_info)
5629 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5630 Update.
5631 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5632 (ada_prefer_type, ada_is_exception_sym): Update.
5633
e86ca25f
TT
56342018-06-01 Tom Tromey <tom@tromey.com>
5635
5636 * valops.c (enum_constant_from_type, value_namespace_elt)
5637 (value_maybe_namespace_elt): Update.
5638 * valarith.c (find_size_for_pointer_math): Update.
5639 * target-descriptions.c (make_gdb_type): Update.
5640 * symmisc.c (print_symbol): Update.
5641 * stabsread.c (define_symbol, read_type)
5642 (complain_about_struct_wipeout, add_undefined_type)
5643 (cleanup_undefined_types_1): Update.
5644 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5645 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5646 (rust_internal_print_type, rust_composite_type)
5647 (rust_evaluate_funcall, rust_evaluate_subexp)
5648 (rust_inclusive_range_type_p): Update.
5649 * python/py-type.c (typy_get_tag): Update.
5650 * p-typeprint.c (pascal_type_print_base): Update.
5651 * mdebugread.c (parse_symbol, parse_type): Update.
5652 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5653 Update.
5654 * guile/scm-type.c (gdbscm_type_tag): Update.
5655 * go-lang.c (sixg_string_p): Update.
5656 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5657 Update.
5658 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5659 (TYPE_TAG_NAME): Remove.
5660 * gdbtypes.c (type_name_no_tag): Simplify.
5661 (check_typedef, check_types_equal, recursive_dump_type)
5662 (copy_type_recursive, arch_composite_type): Update.
5663 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5664 in summary mode when needed.
5665 * eval.c (evaluate_funcall): Update.
5666 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5667 (process_structure_scope, read_enumeration_type)
5668 (read_namespace_type, read_module_type, determine_prefix): Update.
5669 * cp-support.c (inspect_type): Update.
5670 * coffread.c (process_coff_symbol, decode_base_type): Update.
5671 * c-varobj.c (c_is_path_expr_parent): Update.
5672 * c-typeprint.c (c_type_print_base_struct_union): Update.
5673 (c_type_print_base_1): Update. Print struct/class/union/enum in
5674 summary when using C language.
5675 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5676 (gen_maybe_namespace_elt): Update.
5677 * ada-lang.c (ada_type_name): Simplify.
5678 (empty_record, ada_template_to_fixed_record_type_1)
5679 (template_to_static_fixed_type)
5680 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5681
c1ec8cea
TT
56822018-06-01 Tom Tromey <tom@tromey.com>
5683
5684 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5685 c_print_type.
5686 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5687 (c_print_type): Update.
5688 (c_print_type): New overload.
5689 (c_type_print_varspec_prefix, c_type_print_args)
5690 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5691 (c_type_print_base_struct_union, c_type_print_base_1)
5692 (cp_type_print_method_args): Add "language" parameter.
5693 (c_type_print_base): Update.
5694 * c-lang.h (c_print_type): Add new overload.
5695
bc8453a7
TT
56962018-06-01 Tom Tromey <tom@tromey.com>
5697
5698 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5699 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5700
739e8682
AH
57012018-06-01 Alan Hayward <alan.hayward@arm.com>
5702
5703 * aarch64-tdep.c (aarch64_sve_register_names): New const
5704 var.
5705 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5706 (AARCH64_SVE_Z_REGS_NUM): New define.
5707 (AARCH64_SVE_P_REGS_NUM): Likewise.
5708 (AARCH64_SVE_NUM_REGS): Likewise.
5709
8a60efe7
UB
57102018-05-31 Uros Bizjak <ubizjak@gmail.com>
5711
5712 * nat/linux-ptrace.h [__alpha__]
5713 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5714 definitions.
5715
4b2dfa9d
MR
57162018-05-31 Maciej W. Rozycki <macro@mips.com>
5717
5718 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5719 the endianness selected.
5720 * NEWS: Document `set endian auto' mode operation update.
5721
122394f1
AH
57222018-05-31 Alan Hayward <alan.hayward@arm.com>
5723
5724 * Makefile.in: Add new header.
5725 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5726 (sve_vl_from_vg): Likewise.
5727 (sve_vq_from_vl): Likewise.
5728 (sve_vl_from_vq): Likewise.
5729 (sve_vq_from_vg): Likewise.
5730 (sve_vg_from_vq): Likewise.
5731 * configure.nat: Add new c file.
5732 * nat/aarch64-sve-linux-ptrace.c: New file.
5733 * nat/aarch64-sve-linux-ptrace.h: New file.
5734
95228a0d
AH
57352018-05-31 Alan Hayward <alan.hayward@arm.com>
5736
5737 * aarch64-linux-nat.c (aarch64_linux_read_description):
5738 Add parmeter zero.
5739 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5740 Likewise.
5741 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5742 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5743 (aarch64_gdbarch_init): Add parmeter zero.
5744 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5745 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5746 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5747 parmeter.
5748 * doc/gdb.texinfo: Describe SVE feature
5749 * features/aarch64-sve.c: New file.
5750
5969f0db
OJ
57512018-05-31 Omair Javaid <omair.javaid@linaro.org>
5752
5753 PR gdb/23210
5754 * gdbarch.sh (significant_addr_bit): Default to zero when
5755 not set by target architecture.
5756 * gdbarch.c: Re-generated.
5757 * utils.c (address_significant): Update.
5758
61367c61
JB
57592018-05-30 Joel Brobecker <brobecker@adacore.com>
5760
5761 * stack.c (func_command): Remove trailing newline in call to error.
5762
34a79281
SM
57632018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5764
5765 * regcache.h (regcache_raw_collect): Remove, update callers to
5766 use regcache::raw_collect.
5767 * regcache.c (regcache_raw_collect): Remove.
5768
73e1c03f
SM
57692018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5770
5771 * regcache.h (regcache_raw_supply): Remove, update callers to
5772 use detached_regcache::raw_supply.
5773 * regcache.c (regcache_raw_supply): Remove.
5774
e4c4a59b
SM
57752018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5776
5777 * regcache.h (regcache_cooked_write_part): Remove, update
5778 callers to use regcache::cooked_write_part.
5779 * regcache.c (regcache_cooked_write_part): Remove.
5780
73bb0000
SM
57812018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5782
5783 * regcache.h (regcache_cooked_read_part): Remove, update callers
5784 to use readable_regcache::cooked_read_part.
5785 * regcache.c (regcache_cooked_read_part): Remove.
5786
46a45e9d
SM
57872018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5788
5789 * regcache.h (regcache_cooked_read_value): Remove, update
5790 callers to use readable_regcache::cooked_read_value.
5791 * regcache.c (regcache_cooked_read_value): Remove.
5792
b66f5587
SM
57932018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5794
5795 * regcache.h (regcache_cooked_write): Remove, update callers to
5796 use regcache::cooked_write.
5797 * regcache.c (regcache_cooked_write): Remove.
5798
6aa7d724
SM
57992018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5800
5801 * regcache.h (regcache_invalidate): Remove, update callers to
5802 use detached_regcache::invalidate instead.
5803 * regcache.c (regcache_invalidate): Remove.
5804
4f0420fd
SM
58052018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5806
5807 * regcache.h (regcache_raw_write_part): Remove, update callers
5808 to use regcache::raw_write_part instead.
5809 * regcache.c (regcache_raw_write_part): Remove.
5810
502fe83e
SM
58112018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5812
5813 * regcache.h (regcache_raw_read_part): Remove, update callers to
5814 use readable_regcache::raw_read_part instead.
5815 * regcache.c (regcache_raw_read_part): Remove.
5816
dca08e1f
SM
58172018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5818
5819 * regcache.h (regcache_cooked_read): Remove, update callers to
5820 use readable_regcache::cooked_read instead.
5821 * regcache.c (regcache_cooked_read): Remove.
5822
10eaee5f
SM
58232018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5824
5825 * regcache.h (regcache_raw_write): Remove, update callers to use
5826 regcache::raw_write instead.
5827 * regcache.c (regcache_raw_write): Remove.
5828
0b883586
SM
58292018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5830
5831 * regcache.h (regcache_raw_read): Remove, update callers to use
5832 readable_regcache::raw_read instead.
5833 * regcache.c (regcache_raw_read): Remove.
5834
0b47d985
SM
58352018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5836
5837 * regcache.h (regcache_raw_update): Remove, update callers to
5838 use readable_regcache::raw_update instead.
5839 * regcache.c (regcache_raw_update): Remove.
5840
0ec9f114
SM
58412018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5842
5843 * regcache.h (regcache_register_status): Remove, update callers
5844 to use reg_buffer::get_register_status directly instead.
5845 * regcache.c (regcache_register_status): Remove.
5846
222312d3
SM
58472018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5848
5849 * regcache.h (regcache_get_ptid): Remove, update all callers to
5850 call regcache::ptid instead.
5851 * regcache.c (regcache_get_ptid): Remove.
5852
fdbe37e3
SM
58532018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5854
5855 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
5856
f7c6f423
PA
58572018-05-30 Pedro Alves <palves@redhat.com>
5858
5859 * common/common-exceptions.h (exception_rethrow): Use
5860 ATTRIBUTE_NORETURN.
5861
52941706
SM
58622018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
5863
5864 * breakpoint.c (print_solib_event, check_status_catch_solib):
5865 Remove struct keyword in range-based for loops.
5866 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
5867 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
5868 Likewise.
5869 * linespec.c (find_superclass_methods, search_minsyms_for_name):
5870 Likewise.
5871 * symfile.c (addr_info_make_relative): Likewise.
5872 * thread.c (value_in_thread_stack_temporaries): Likewise.
5873
bf2977b5
WP
58742018-06-12 Weimin Pan <weimin.pan@oracle.com>
5875
5876 PR gdb/16841
5877 * valops.c (value_struct_elt_for_reference): Call check_typedef on
5878 aggregate type to get its real type before accessing it.
5879
64cc34d8
WP
58802018-05-29 Weimin Pan <weimin.pan@oracle.com>
5881
5882 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
5883 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
5884 * coff-pe-read.c (add_pe_forwarded_sym): Replace
5885 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
5886 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
5887 * jit.c (jit_breakpoint_re_set_internal): Likewise.
5888 * printcmd.c (info_address_command): Likewise.
5889
e7ec8713
TT
58902018-05-29 Tom Tromey <tom@tromey.com>
5891
5892 * windows-nat.c (handle_exception): Update fall-through comment.
5893
bcb430e4
TT
58942018-05-29 Tom Tromey <tom@tromey.com>
5895
5896 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
5897 (struct program_space) <added_solibs>: Now a std::vector.
5898 * breakpoint.c (print_solib_event): Update.
5899 (check_status_catch_solib): Update.
5900 * progspace.c (clear_program_space_solib_cache): Update.
5901 * solib.c (update_solib_list): Update.
5902
894882e3
TT
59032018-05-29 Tom Tromey <tom@tromey.com>
5904
5905 * python/py-type.c (typy_richcompare): Update.
5906 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
5907 * gdbtypes.h (types_deeply_equal): Return bool.
5908 (types_equal): Likewise.
5909 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
5910 declare VEC.
5911 (check_types_equal): Change worklist to std::vector. Return
5912 bool.
5913 (struct type_equality_entry): Add constructor.
5914 (compare_maybe_null_strings): Return bool.
5915 (check_types_worklist): Return bool. Change worklist to
5916 std::vector.
5917 (types_deeply_equal): Use std::vector.
5918 (types_equal): Return bool.
5919 (compare_maybe_null_strings): Simplify.
5920
10b2ded4
TT
59212018-05-29 Tom Tromey <tom@tromey.com>
5922
5923 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
5924
4f7deebe
TT
59252018-05-29 Tom Tromey <tom@tromey.com>
5926
5927 * objc-lang.h: Don't include cp-support.h.
5928 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
5929 declare VEC.
5930
b8283aea
TT
59312018-05-27 Tom Tromey <tom@tromey.com>
5932
5933 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
5934
41a883c8
TT
59352018-05-25 Tom Tromey <tom@tromey.com>
5936
5937 * value.c (value::location): Initialize.
5938
bf259e25
TT
59392018-05-25 Tom Tromey <tom@tromey.com>
5940
5941 * dbxread.c (init_bincl_list): Remove.
5942 (bincl_list): Now a std::vector.
5943 (bincls_allocated, next_bincl): Remove.
5944 (free_bincl_list, do_free_bincl_list_cleanup)
5945 (make_cleanup_free_bincl_list): Remove.
5946 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
5947 unique_xmalloc_ptr.
5948 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
5949 (struct header_file_location): Add constructor.
5950 (add_bincl_to_list): Remove.
5951
d525a99b
TT
59522018-05-25 Tom Tromey <tom@tromey.com>
5953
5954 * tui/tui.c (tui_enable): Update.
5955 * mi/mi-interp.c (mi_interp::init): Update.
5956 * interps.h (class interp) <name>: New method.
5957 <m_name>: Rename from name.
5958 (~scoped_restore_interp): Update.
5959 * interps.c (interp::interp): Update.
5960 (interp_add, interp_set, interp_lookup_existing)
5961 (current_interp_named_p): Update.
5962
da505cff
TT
59632018-05-25 Tom Tromey <tom@tromey.com>
5964
5965 * interps.c (interp_name): Remove.
5966 * mi/mi-interp.c (mi_interp::init): Update.
5967 * interps.h (interp_name): Remove.
5968 (~scoped_restore_interp): Update.
5969 * tui/tui.c (tui_enable): Update.
5970
29f94340
TT
59712018-05-25 Tom Tromey <tom@tromey.com>
5972
5973 * utils.c (fputs_maybe_filtered): Update.
5974 * linespec.c (decode_line_full): Update.
5975 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
5976 (mi_print_breakpoint_for_event, mi_solib_loaded)
5977 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5978 (mi_user_selected_context_changed): Update.
5979 * mi/mi-main.c (mi_execute_command): Update.
5980 * cli/cli-script.c (execute_control_command): Update.
5981 * python/python.c (execute_gdb_command): Update.
5982 * solib.c (info_sharedlibrary_command): Update.
5983 * interps.c (interp_ui_out): Remove.
5984 * interps.h (interp_ui_out): Remove.
5985
716b8bc5
TT
59862018-05-25 Tom Tromey <tom@tromey.com>
5987
5988 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
5989 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
5990 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
5991
753ff9bd
TT
59922018-05-25 Tom Tromey <tom@tromey.com>
5993
5994 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
5995 * interps.c (interp_exec): Use scoped_restore.
5996
5ca3b260
TT
59972018-05-25 Tom Tromey <tom@tromey.com>
5998
5999 * remote.c (remote_target::remote_file_get): Use
6000 gdb::byte_vector.
6001 (remote_target::remote_file_put): Likewise.
6002
3173aa2f
TT
60032018-05-25 Tom Tromey <tom@tromey.com>
6004
6005 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6006 a std::string.
6007 (get_pe_section_index, add_pe_exported_sym): Update.
6008 (read_pe_exported_syms): Use gdb::def_vector.
6009
09a5e1b5
TT
60102018-05-25 Tom Tromey <tom@tromey.com>
6011
6012 * frame.c (remove_prev_frame): Remove.
6013 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6014
d8dab6c3
MR
60152018-05-25 Maciej W. Rozycki <macro@mips.com>
6016
6017 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6018 Remove prototypes.
6019 * mips-linux-nat.c (supply_fpregset): Always call
6020 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6021 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6022 `mips_fill_fpregset'.
6023 * mips-linux-tdep.c (mips_supply_fpregset)
6024 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6025 (mips_fill_fpregset_wrapper): Remove functions.
6026 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6027 (mips_linux_fpregset): Remove variable.
6028 (mips_linux_iterate_over_regset_sections): Use
6029 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6030 (mips_linux_o32_sigframe_init): Remove comment.
6031
3c69da40
PA
60322018-05-25 Pedro Alves <palves@redhat.com>
6033
6034 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6035 (struct readahead_cache, struct packet_reg, struct
6036 remote_arch_state, class remote_state): Move higher up in the
6037 file.
6038 (remote_target::m_remote_state): Now an object instead of a pointer.
6039 (remote_target::get_remote_state): Adjust.
6040
39f0c204
AB
60412018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6042
6043 * stack.c (select_and_print_frame): Delete.
6044 (struct function_bounds): Move struct within function.
6045 (func_command): Most content moved into new function
6046 find_frame_for_function, use new function, print result, add
6047 function comment.
6048 (find_frame_for_function): New function, now returns a result.
6049
d392224a
PW
60502018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6051
6052 * stack.c (iterate_over_block_arg_vars): Fix comment.
6053 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6054
45f25d6c
AB
60552018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6056
6057 PR gdb/23203
6058 * frame.c
6059 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6060 Define.
6061 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6062 Define.
6063 * frame.h (class scoped_restore_selected_frame): New class.
6064 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6065 of any exception, use scoped_restore_selected_frame to restore the
6066 frame instead.
6067
da05d921
PA
60682018-05-24 Pedro Alves <palves@redhat.com>
6069
6070 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6071 override.
6072
a8be540e
TT
60732018-05-23 Tom Tromey <tom@tromey.com>
6074
6075 * complaints.c (struct complaints): Remove.
6076 (symfile_complaint_book): Remove.
6077 (series): New global.
6078 (complaint_internal): Update.
6079 (clear_complaints): Update.
6080
ff1cf532
TT
60812018-05-23 Tom Tromey <tom@tromey.com>
6082
6083 * complaints.c (counters): New global.
6084 (struct complain): Remove.
6085 (struct complaints) <root>: Remove.
6086 (complaint_sentinel): Remove.
6087 (symfile_complaint_book): Update.
6088 (find_complaint) Remove.
6089 (complaint_internal, clear_complaints): Update.
6090
7ff88174
TT
60912018-05-23 Tom Tromey <tom@tromey.com>
6092
6093 * complaints.c (struct complain) <file, line>: Remove.
6094 (find_complaint): Remove file, line parameters.
6095 (complaint_internal): Update.
6096
de54e1a5
TT
60972018-05-23 Tom Tromey <tom@tromey.com>
6098
6099 * complaints.c (vcomplaint): Remove.
6100 (complaint_internal) Merge in contents of vcomplaint.
6101
2ac237e5
TT
61022018-05-23 Tom Tromey <tom@tromey.com>
6103
6104 * complaints.c (struct complaints) <explanation>: Remove.
6105 (symfile_explanations): Remove.
6106 (symfile_complaint_book): Update.
6107 (vcomplaint): Update.
6108 (struct explanation): Remove.
6109
b98664d3
TT
61102018-05-23 Tom Tromey <tom@tromey.com>
6111
6112 * complaints.c (symfile_complaints): Remove.
6113 (complaint_internal): Remove "complaints" parameter.
6114 (clear_complaints, vcomplaint): Remove "c" parameter.
6115 (get_complaints): Remove.
6116 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6117 (dwarf2_debug_line_missing_file_complaint)
6118 (dwarf2_debug_line_missing_end_sequence_complaint)
6119 (dwarf2_complex_location_expr_complaint)
6120 (dwarf2_const_value_length_mismatch_complaint)
6121 (dwarf2_section_buffer_overflow_complaint)
6122 (dwarf2_macro_malformed_definition_complaint)
6123 (dwarf2_invalid_attrib_class_complaint)
6124 (create_addrmap_from_index, dw2_symtab_iter_next)
6125 (dw2_expand_marked_cus)
6126 (dw2_debug_names_iterator::find_vec_in_debug_names)
6127 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6128 (create_debug_type_hash_table, init_cutu_and_read_dies)
6129 (partial_die_parent_scope, add_partial_enumeration)
6130 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6131 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6132 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6133 (create_cus_hash_table, create_dwp_hash_table)
6134 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6135 (dwarf2_rnglists_process, dwarf2_ranges_process)
6136 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6137 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6138 (handle_struct_member_die, process_structure_scope)
6139 (read_array_type, read_common_block, read_module_type)
6140 (read_tag_pointer_type, read_typedef, read_base_type)
6141 (read_subrange_type, load_partial_dies, partial_die_info::read)
6142 (partial_die_info::read, partial_die_info::read)
6143 (partial_die_info::read, read_checked_initial_length_and_offset)
6144 (dwarf2_string_attr, read_formatted_entries)
6145 (dwarf_decode_line_header)
6146 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6147 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6148 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6149 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6150 (get_signatured_type, get_DW_AT_signature_type)
6151 (decode_locdesc, file_file_name, consume_improper_spaces)
6152 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6153 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6154 (dwarf2_symbol_mark_computed, set_die_type)
6155 (read_attribute_value): Update.
6156 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6157 Update.
6158 * dbxread.c (unknown_symtype_complaint)
6159 (lbrac_mismatch_complaint, repeated_header_complaint)
6160 (set_namestring, function_outside_compilation_unit_complaint)
6161 (read_dbx_symtab, process_one_symbol): Update.
6162 * gdbtypes.c (stub_noname_complaint): Update.
6163 * windows-nat.c (handle_unload_dll): Update.
6164 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6165 (decode_base_type): Update.
6166 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6167 (eb_complaint, record_include_begin, record_include_end)
6168 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6169 (process_xcoff_symbol, read_symbol)
6170 (function_outside_compilation_unit_complaint)
6171 (scan_xcoff_symtab): Update.
6172 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6173 * buildsym.c (finish_block_internal, make_blockvector)
6174 (end_symtab_get_static_block, augment_type_symtab): Update.
6175 * dtrace-probe.c (dtrace_process_dof)
6176 (dtrace_static_probe_ops::get_probes): Update.
6177 * complaints.h (struct complaint): Don't declare.
6178 (symfile_complaints): Remove.
6179 (complaint_internal): Remove "complaints" parameter.
6180 (complaint): Likewise.
6181 (clear_complaints): Likewise.
6182 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6183 (reread_symbols): Update.
6184 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6185 (dwarf2_frame_cache, decode_frame_entry): Update.
6186 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6187 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6188 (info_selectors_command): Update.
6189 * macrotab.c (macro_include, check_for_redefinition)
6190 (macro_undef): Update.
6191 * objfiles.c (filter_overlapping_sections): Update.
6192 * stabsread.c (invalid_cpp_abbrev_complaint)
6193 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6194 (define_symbol, error_type, read_type, rs6000_builtin_type)
6195 (stabs_method_name_from_physname, read_member_functions)
6196 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6197 (attach_fields_to_type, complain_about_struct_wipeout)
6198 (read_range_type, read_args, common_block_start)
6199 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6200 Update.
6201 * mdebugread.c (index_complaint, unknown_ext_complaint)
6202 (basic_type_complaint, bad_tag_guess_complaint)
6203 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6204 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6205 (parse_procedure, parse_lines)
6206 (function_outside_compilation_unit_complaint)
6207 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6208 (bad_tag_guess_complaint, reg_value_complaint): Update.
6209 * cp-support.c (demangled_name_complaint): Update.
6210 * macroscope.c (sal_macro_scope): Update.
6211 * dwarf-index-write.c (class debug_names): Update.
6212
4e9668d0
TT
62132018-05-23 Tom Tromey <tom@tromey.com>
6214
6215 * complaints.c (clear_complaints): Remove "noisy" parameter.
6216 * complaints.h (clear_complaints): Update.
6217 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6218 (reread_symbols): Update.
6219
43ba33c7
TT
62202018-05-23 Tom Tromey <tom@tromey.com>
6221
6222 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6223 SUBSEQUENT_MESSAGE.
6224 (vcomplaint, clear_complaints): Update.
6225 (symfile_explanations): Remove some messages.
6226
2b9496b2
TT
62272018-05-23 Tom Tromey <tom@tromey.com>
6228
6229 * complaints.c (internal_complaint): Remove.
6230 * complaints.h (internal_complaint): Remove.
6231
35f1fea3
MR
62322018-05-22 Maciej W. Rozycki <macro@mips.com>
6233
6234 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6235
6b8edb51
PA
62362018-05-22 Pedro Alves <palves@redhat.com>
6237
6238 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6239 (remote_fileio_badfd, remote_fileio_return_errno)
6240 (remote_fileio_return_success, remote_fileio_func_open)
6241 (remote_fileio_func_open, remote_fileio_func_close)
6242 (remote_fileio_func_read, remote_fileio_func_write)
6243 (remote_fileio_func_lseek, remote_fileio_func_rename)
6244 (remote_fileio_func_unlink, remote_fileio_func_stat)
6245 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6246 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6247 remote_target parameter.
6248 (remote_fio_func_map) <func>: Add remote_target parameter.
6249 (do_remote_fileio_request, remote_fileio_request):
6250 * remote-fileio.h (remote_fileio_request):
6251 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6252 remote_target parameter.
6253 (remote_notif_process, handle_notification): Adjust to pass down
6254 the remote.
6255 (remote_notif_state_allocate): Add remote_target parameter. Save
6256 it.
6257 * remote-notif.h (struct remote_target): Forward declare.
6258 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6259 remote_target parameter.
6260 (struct remote_notif_state) <remote>: New field.
6261 (remote_notif_ack, remote_notif_parse): Add remote_target
6262 parameter.
6263 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6264 remote_target parameter.
6265 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6266 (threads_listing_context, rmt_thread_action, protocol_feature)
6267 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6268 (packet_result, struct threads_listing_context, remote_state):
6269 Move definitions and declarations higher up.
6270 (remote_target) <~remote_target>: Declare.
6271 (remote_download_command_source, remote_file_put, remote_file_get)
6272 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6273 (remote_hostio_pread_vFile, remote_hostio_send_command)
6274 (remote_hostio_set_filesystem, remote_hostio_open)
6275 (remote_hostio_close, remote_hostio_unlink, remote_state)
6276 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6277 (get_memory_write_packet_size, get_memory_read_packet_size)
6278 (append_pending_thread_resumptions, remote_detach_1)
6279 (append_resumption, remote_resume_with_vcont)
6280 (add_current_inferior_and_thread, wait_ns, wait_as)
6281 (process_stop_reply, remote_notice_new_inferior)
6282 (process_initial_stop_replies, remote_add_thread)
6283 (btrace_sync_conf, remote_btrace_maybe_reopen)
6284 (remove_new_fork_children, kill_new_fork_children)
6285 (discard_pending_stop_replies, stop_reply_queue_length)
6286 (check_pending_events_prevent_wildcard_vcont)
6287 (discard_pending_stop_replies_in_queue, stop_reply)
6288 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6289 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6290 (remote_interrupt_as, remote_interrupt_ns)
6291 (remote_get_noisy_reply, remote_query_attached)
6292 (remote_add_inferior, remote_current_thread, get_current_thread)
6293 (set_thread, set_general_thread, set_continue_thread)
6294 (set_general_process, write_ptid)
6295 (remote_unpack_thread_info_response, remote_get_threadinfo)
6296 (parse_threadlist_response, remote_get_threadlist)
6297 (remote_threadlist_iterator, remote_get_threads_with_ql)
6298 (remote_get_threads_with_qxfer)
6299 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6300 (get_offsets, remote_check_symbols, remote_supported_packet)
6301 (remote_query_supported, remote_packet_size)
6302 (remote_serial_quit_handler, remote_detach_pid)
6303 (remote_vcont_probe, remote_resume_with_hc)
6304 (send_interrupt_sequence, interrupt_query)
6305 (remote_notif_get_pending_events, fetch_register_using_p)
6306 (send_g_packet, process_g_packet, fetch_registers_using_g)
6307 (store_register_using_P, store_registers_using_G)
6308 (set_remote_traceframe, check_binary_download)
6309 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6310 (remote_xfer_live_readonly_partial, remote_read_bytes)
6311 (remote_send_printf, remote_flash_write, readchar)
6312 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6313 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6314 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6315 (extended_remote_disable_randomization, extended_remote_run)
6316 (send_environment_packet, extended_remote_environment_support)
6317 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6318 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6319 (packet_command): Now methods of ...
6320 (remote_target): ... this class.
6321 (m_remote_state) <remote_target>: New field.
6322 (struct remote_state) <stop_reply_queue,
6323 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6324 fields.
6325 (remote_state::remote_state): Allocate stop_reply_queue.
6326 (remote_state): Delete global.
6327 (get_remote_state_raw): Delete.
6328 (remote_target::get_remote_state): Allocate m_remote_state on
6329 demand.
6330 (get_current_remote_target): New.
6331 (remote_ops, extended_remote_ops): Delete.
6332 (wait_forever_enabled_p, remote_async_inferior_event_token):
6333 Delete, moved to struct remote_state.
6334 (remote_target::close): Delete self. Destruction bits split to
6335 ...
6336 (remote_target::~remote_target): ... this.
6337 (show_memory_packet_size): Adjust to use
6338 get_current_remote_target.
6339 (struct protocol_feature) <func>: Add remote_target parameter.
6340 All callers adjusted.
6341 (curr_quit_handler_target): New.
6342 (remote_serial_quit_handler): Reimplement.
6343 (remote_target::open_1): Adjust to use get_current_remote_target.
6344 Heap-allocate remote_target/extended_remote_target instances.
6345 (vcont_builder::vcont_builder): Add remote_target parameter, and
6346 save it in m_remote. All callers adjusted.
6347 (vcont_builder::m_remote): New field.
6348 (vcont_builder::restart, vcont_builder::flush)
6349 (vcont_builder::push_action): Use it.
6350 (remote_target::commit_resume): Use it.
6351 (struct queue_iter_param) <remote>: New field.
6352 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6353 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6354 (check_pending_event_prevents_wildcard_vcont_callback)
6355 (remote_target::check_pending_events_prevent_wildcard_vcont)
6356 (remote_target::discard_pending_stop_replies)
6357 (remote_target::discard_pending_stop_replies_in_queue)
6358 (remote_target::remote_notif_remove_queued_reply): Fill in
6359 'remote' field.
6360 (remote_notif_get_pending_events): New.
6361 (remote_target::readchar, remote_target::remote_serial_write):
6362 Save/restore curr_quit_handler_target.
6363 (putpkt): New.
6364 (kill_new_fork_children): Fill in 'remote' field.
6365 (packet_command): Use get_current_remote_target, defer to
6366 remote_target method of same name.
6367 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6368 parameter, and save it in m_remote. All callers adjusted.
6369 (scoped_remote_fd::release): Use m_remote.
6370 (scoped_remote_fd::m_remote): New field.
6371 (remote_file_put, remote_file_get, remote_file_delete): Use
6372 get_current_remote_target, defer to remote_target method of same
6373 name.
6374 (remote_btrace_reset): Add remote_state paremeter. Update all
6375 callers.
6376 (remote_async_inferior_event_handler). Pass down 'data'.
6377 (remote_new_objfile): Use get_current_remote_target.
6378 (remote_target::vcont_r_supported): New.
6379 (set_range_stepping): Use get_current_remote_target and
6380 remote_target::vcont_r_supported.
6381 (_initialize_remote): Don't allocate 'remote_state' and
6382 'stop_reply_queue' globals.
6383 * remote.h (struct remote_target): Forward declare.
6384 (getpkt, putpkt, remote_notif_get_pending_events): Add
6385 'remote_target' parameter.
6386
f5db4863
PA
63872018-05-22 Pedro Alves <palves@redhat.com>
6388
6389 * remote.c (vcont_builder): Now a class. Make all data members
6390 private.
6391 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6392 Declare methods.
6393 (vcont_builder_restart): Rename to ...
6394 (vcont_builder::restart): ... this.
6395 (vcont_builder_flush): Rename to ...
6396 (vcont_builder::flush): ... this.
6397 (vcont_builder_push_action): Rename to ...
6398 (vcont_builder::push_action): ... this.
6399 (remote_target::commit_resume): Adjust.
6400
cc0be08f
PA
64012018-05-22 Pedro Alves <palves@redhat.com>
6402
6403 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6404 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6405 (get_fixed_memory_packet_size): New.
6406 (get_memory_packet_size): Use it.
6407 (set_memory_packet_size): Don't override the config size with
6408 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6409 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6410 Don't refer to get_memory_packet_size if not connected to a remote
6411 target. Show "(default)" if configured size is 0.
6412
9607784a
PA
64132018-05-22 Pedro Alves <palves@redhat.com>
6414
6415 * remote.c (remote_target::mourn_inferior): Move
6416 discard_pending_stop_replies call here from ...
6417 (_initialize_remote): ... here.
6418
0e9a6b2f
PA
64192018-05-22 Pedro Alves <palves@redhat.com>
6420
6421 * remote.c (compare_section_command): Remove set_general_process
6422 call.
6423
43c3a0e4
PA
64242018-05-22 Pedro Alves <palves@redhat.com>
6425
6426 * remote.c (struct packet_reg, struct remote_arch_state):
6427 Move higher up in the file.
6428 (remote_state) <m_arch_states>: Store remote_arch_state values
6429 instead of remote_arch_state pointers.
6430 (remote_state::get_remote_arch_state): Adjust.
6431
9d6eea31
PA
64322018-05-22 Pedro Alves <palves@redhat.com>
6433
6434 * remote.c: Include <unordered_map>.
6435 (remote_state): Now a class.
6436 (remote_state) <get_remote_arch_state>: Declare method.
6437 <get_remote_arch_state>: New field.
6438 (remote_arch_state) <remote_arch_state>: Declare ctor.
6439 <regs>: Now a unique_ptr.
6440 (remote_gdbarch_data_handle): Delete.
6441 (get_remote_arch_state): Delete.
6442 (remote_state::get_remote_arch_state): New.
6443 (get_remote_state): Adjust to call remote_state's
6444 get_remote_arch_state method.
6445 (init_remote_state): Delete, bits factored out to ...
6446 (remote_arch_state::remote_arch_state): ... this new method.
6447 (get_remote_packet_size, get_memory_packet_size)
6448 (process_g_packet, remote_target::fetch_registers)
6449 (remote_target::prepare_to_store, store_registers_using_G)
6450 (remote_target::store_registers, remote_target::get_trace_status):
6451 Adjust to call remote_state's method.
6452 (_initialize_remote): Remove reference to
6453 remote_gdbarch_data_handle.
6454
dd194f6b
PA
64552018-05-22 Pedro Alves <palves@redhat.com>
6456
6457 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6458 pread>: New method declarations.
6459 (remote_target::open_1): Adjust.
6460 (readahead_cache_invalidate): Rename to ...
6461 (readahead_cache::invalidate): ... this, and adjust to be a class
6462 method.
6463 (readahead_cache_invalidate_fd): Rename to ...
6464 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6465 class method.
6466 (remote_hostio_pwrite): Adjust.
6467 (remote_hostio_pread_from_cache): Rename to ...
6468 (readahead_cache::pread): ... this, and adjust to be a class
6469 method.
6470 (remote_hostio_close): Adjust.
6471
440b7aec
PA
64722018-05-22 Pedro Alves <palves@redhat.com>
6473
6474 * remote.c (remote_hostio_close_cleanup): Delete.
6475 (class scoped_remote_fd): New.
6476 (remote_file_put, remote_file_get): Use it.
6477
de44f5a7
PA
64782018-05-22 Pedro Alves <palves@redhat.com>
6479
6480 (struct vCont_action_support): Use bool and initialize all fields.
6481 (struct readahead_cache): Initialize all fields.
6482 (remote_state): Use bool and initialize all fields.
6483 (remote_state::remote_state, remote_state::~remote_state): New.
6484 (new_remote_state): Delete.
6485 (_initialize_remote): Use new to allocate remote_state.
6486
b1b60145
PA
64872018-05-22 Pedro Alves <palves@redhat.com>
6488 張俊芝 <zjz@zjz.name>
6489
6490 PR gdb/22973
6491 * c-exp.y: Include "c-support.h".
6492 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6493 of tolower. Use c_ident_is_alpha to scan names.
6494 * c-lang.c: Include "c-support.h".
6495 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6496 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6497 * c-support.h: New file, with bits factored out from ...
6498 * cp-name-parser.y: ... this file.
6499 Include "c-support.h".
6500 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6501 c-support.h and renamed.
6502 (symbol_end, yylex): Adjust.
6503
0ec848ad
PFC
65042018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6505
6506 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6507 parameter type to CORE_ADDR.
6508 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6509 parameter type in declaration to CORE_ADDR.
6510 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6511 target_auxv_search to get AT_HWCAP and use the result to get the
6512 target description.
6513 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6514 to CORE_ADDR. Remove the cast of the return value to unsigned
6515 long. Fix error predicate of target_auxv_search.
6516 (ppc_linux_nat_target::read_description): Change the type of the
6517 hwcap variable to CORE_ADDR.
6518
0fb2aaa1
PFC
65192018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6520
6521 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6522 if the size of fpscr is larger than 32 bits.
6523
2c3305f6
PFC
65242018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6525
6526 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6527 (ppc32_linux_vsxregmap): New global.
6528 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6529 regcache_supply_regset, and regcache_collect_regset.
6530 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6531 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6532 (fetch_vsx_register, store_vsx_register): Remove.
6533 (fetch_vsx_registers): Add regno parameter. Get regset using
6534 ppc_linux_vsxregset. Use regset to supply registers.
6535 (store_vsx_registers): Add regno parameter. Get regset using
6536 ppc_linux_vsxregset. Use regset to collect registers.
6537 (fetch_register): Call fetch_vsx_registers instead of
6538 fetch_vsx_register.
6539 (store_register): Call store_vsx_registers instead of
6540 store_vsx_register.
6541 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6542 new regno parameter.
6543 (store_ppc_registers): Call store_vsx_registers with -1 for the
6544 new regno parameter.
6545 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6546 (ppc_collect_vsxregset): Remove.
6547
1d75a658
PFC
65482018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6549
6550 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6551 offset fields.
6552 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6553 for vector register offset fields.
6554 (ppc64_fbsd_reg_offsets): Likewise.
6555 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6556 to vector register offset fields.
6557 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6558 to vector register offset fields.
6559 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6560 vector register offset fields.
6561 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6562 initializers for vector register offset fields.
6563 (rs6000_aix64_reg_offsets): Likewise.
6564 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6565 (ppc_supply_vrregset): Remove.
6566 (ppc_collect_vrregset): Remove.
6567 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6568 (ppc_linux_vrregset) : New function.
6569 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6570 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6571 (ppc32_linux_vrregset): Remove.
6572 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6573 and use result instead of ppc32_linux_vrregset.
6574 (ppc32_linux_reg_offsets): Remove initializers for vector register
6575 offset fields.
6576 (ppc64_linux_reg_offsets): Likewise.
6577 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6578 * ppc-linux-nat.c: Include regset.h.
6579 (gdb_vrregset_t): Adjust comment to account for little-endian
6580 mode.
6581 (supply_vrregset, fill_vrregset): Remove.
6582 (fetch_altivec_register, store_altivec_register): Remove.
6583 (fetch_altivec_registers): Add regno parameter. Get regset using
6584 ppc_linux_vrregset. Use regset to supply registers.
6585 (store_altivec_registers): Add regno parameter. Get regset using
6586 ppc_linux_vrregset. Use regset to collect registers.
6587 (fetch_register): Call fetch_altivec_registers instead of
6588 fetch_altivec_register.
6589 (store_register): Call store_altivec_registers instead of
6590 store_altivec_register.
6591 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6592 the new regno parameter.
6593 (store_ppc_registers): Call store_altivec_registers with -1 for
6594 the new regno parameter.
6595
d078308a
PFC
65962018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6597
6598 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6599 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6600 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6601 (gdb_vrregset_t): Change array type size to
6602 PPC_LINUX_SIZEOF_VRREGSET.
6603 (gdb_vsxregset_t): Change array type size to
6604 PPC_LINUX_SIZEOF_VSXREGSET.
6605 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6606 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6607 PPC_LINUX_SIZEOF_VSXREGSET.
6608
2e077f5e
PFC
66092018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6610
6611 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6612 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6613 nat/ppc-linux.c.
6614 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6615 ppc_linux_target_wordsize with tid.
6616 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6617 wordsize with tid.
6618 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6619 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6620 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6621 tid parameter. Remove static specifier.
6622 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6623 (ppc_linux_target_wordsize): New declaration.
6624
bd64614e
PFC
66252018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6626
6627 * arch/ppc-linux-common.c: New file.
6628 * arch/ppc-linux-common.h: New file.
6629 * arch/ppc-linux-tdesc.h: New file.
6630 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6631 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6632 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6633 arch/ppc-linux-tdesc.h.
6634 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6635 arch/ppc-linux-tdesc.h.
6636 (ppc_linux_nat_target::read_description): Remove target
6637 description matching code. Fill a ppc_linux_features struct and
6638 call ppc_linux_match_description with it. Move comment about ISA
6639 2.05 to ppc-linux-common.c.
6640 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6641 arch/ppc-linux-tdesc.h.
6642 (ppc_linux_core_read_description): Remove target description
6643 matching code. Fill a ppc_linux_features struct and call
6644 ppc_linux_match_description with it.
6645 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6646 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6647 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6648 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6649 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6650 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6651 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6652 (tdesc_powerpc_e500l): Remove.
6653
241db429
JB
66542018-05-22 Joel Brobecker <brobecker@adacore.com>
6655
6656 * ada-lang.c (catch_assert_command): Pass empty string instead
6657 of NULL for excep_string argument.
6658
75d74cca
MR
66592018-05-22 Maciej W. Rozycki <macro@mips.com>
6660
6661 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6662 the width of the requested register exceeds the width of the
6663 `ptrace' data type.
6664
122b53ea
TT
66652018-05-21 Tom Tromey <tom@tromey.com>
6666
6667 * printcmd.c (output_command): Remove.
6668 (output_command_const): Rename to output_command.
6669 * valprint.h (output_command): Rename from output_command_const.
6670 * tracepoint.c (trace_dump_actions): Call output_command.
6671
bc18fbb5
TT
66722018-05-21 Tom Tromey <tom@tromey.com>
6673
6674 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6675 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6676 * ada-lang.h (create_ada_exception_catchpoint): Update.
6677 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6678 std::string.
6679 (create_excep_cond_exprs, ~ada_catchpoint)
6680 (should_stop_exception, print_one_exception)
6681 (print_mention_exception, print_recreate_exception): Update.
6682 (ada_get_next_arg): Remove.
6683 (catch_ada_exception_command_split): Use std::string. Change type
6684 of "excep_string", "cond_string".
6685 (catch_ada_exception_command): Update.
6686 (create_ada_exception_catchpoint): Change type of excep_string.
6687 (ada_exception_sal): Remove excep_string parameter.
6688 (~ada_catchpoint): Remove.
6689
790217f6
TT
66902018-05-21 Tom Tromey <tom@tromey.com>
6691
6692 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6693 cleanup.
6694
6f46ac85
TT
66952018-05-21 Tom Tromey <tom@tromey.com>
6696
6697 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6698 Return unique_xmalloc_ptr.
6699 (print_it_exception): Update.
6700
15b6611c
TT
67012018-05-21 Tom Tromey <tom@tromey.com>
6702
6703 * tracepoint.c (trace_dump_actions): Use std::string.
6704
c0c9f665
TT
67052018-05-21 Tom Tromey <tom@tromey.com>
6706
6707 * symfile.c (reread_symbols): Use std::string for original_name.
6708
22ca247e
TT
67092018-05-21 Tom Tromey <tom@tromey.com>
6710
6711 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6712 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6713 constructor.
6714
184cde75
SM
67152018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6716
6717 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6718 instance to...
6719 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6720 * objfiles.c (get_objfile_bfd_data): Allocate
6721 objfile_per_bfd_storage with obstack_new when allocating on
6722 obstack.
6723
e39db4db
SM
67242018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6725
6726 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6727 OBSTACK_ZALLOC.
6728 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6729 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6730 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6731 (add_pending): Likewise.
6732 (parse_symbol): Likewise.
6733 (parse_partial_symbols): Likewise.
6734 (psymtab_to_symtab_1): Likewise.
6735 (new_psymtab): Likewise.
6736 (elfmdebug_build_psymtabs): Likewise.
6737 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6738 * objfiles.c (get_objfile_bfd_data): Likewise.
6739 (objfile_register_static_link): Likewise.
6740 * psymtab.c (allocate_psymtab): Likewise.
6741 * stabsread.c (read_member_functions): Likewise.
6742 * xcoffread.c (xcoff_end_psymtab): Likewise.
6743
284a0e3c
SM
67442018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6745
6746 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6747 compiler supports std::is_trivially_constructible.
6748 * common/poison.h: Include obstack.h.
6749 (IsMallocable): Define to is_trivially_constructible if the
6750 compiler supports it, define to true_type otherwise.
6751 (xobnew): New.
6752 (XOBNEW): Redefine.
6753 (xobnewvec): New.
6754 (XOBNEWVEC): Redefine.
6755 * gdb_obstack.h (obstack_zalloc): New.
6756 (OBSTACK_ZALLOC): Redefine.
6757 (obstack_calloc): New.
6758 (OBSTACK_CALLOC): Redefine.
6759 (obstack_new): New.
6760 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6761 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6762 gdbarch.c.
6763 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6764 obstack_calloc/obstack_zalloc.
6765 (gdbarch_obstack_zalloc): Remove.
6766 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6767
59f66be3
PW
67682018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6769
6770 * stack.c (backtrace_command_1): Remove useless variable int i.
6771
50c65c2d
PW
67722018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6773
6774 * stack.c (print_frame_info): Fix comment.
6775
7ff8cb8c
TT
67762018-05-18 Tom Tromey <tom@tromey.com>
6777
6778 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6779 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6780 (~dwarf2_per_objfile): Update
6781 (dwarf2_get_dwz_file): Use new.
6782 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6783 unique_ptr.
6784
400174b1
TT
67852018-05-18 Tom Tromey <tom@tromey.com>
6786
6787 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6788 unique_ptr.
6789 * dwarf2read.c (struct dwp_file): Add constructor and
6790 initializers.
6791 (open_and_init_dwp_file): Return a unique_ptr.
6792 (dwarf2_per_objfile, create_dwp_hash_table)
6793 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6794 (lookup_dwo_unit_in_dwp): Update.
6795 (open_and_init_dwp_file, get_dwp_file): Update.
6796
3063847f
TT
67972018-05-18 Tom Tromey <tom@tromey.com>
6798
6799 * dwarf2read.c (dwarf2_per_objfile): Update.
6800 (struct mapped_index): Add initializers.
6801 (dwarf2_read_index): Use new.
6802 (dw2_symtab_iter_init): Update.
6803 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6804 unique_ptr.
6805
d3d02dee
SM
68062018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6807
6808 * dwarf2read.c (mapped_index) <total_size>: Remove.
6809
1d143c36
SM
68102018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6811
6812 * unittests/format_pieces-selftests.c (test_format_specifier):
6813 Add ARI comments.
6814
ce1e8424
TT
68152018-05-18 Tom Tromey <tom@tromey.com>
6816
6817 * c-typeprint.c (maybe_print_hole): New function.
6818 (c_print_type_struct_field_offset): Update.
6819 (c_type_print_base_struct_union): Call maybe_print_hole.
6820
ddfe970e
KS
68212018-05-17 Keith Seitz <keiths@redhat.com>
6822
6823 * breakpoint.c (build_bpstat_chain): New function, moved from
6824 bpstat_stop_status.
6825 (bpstat_stop_status): Add optional parameter, `stop_chain'.
6826 If no stop chain is passed, call build_bpstat_chain to build it.
6827 * breakpoint.h (build_bpstat_chain): Declare.
6828 (bpstat_stop_status): Move documentation here from breakpoint.c.
6829 * infrun.c (handle_signal_stop): Before eliding inlined frames,
6830 build the stop chain and pass it to skip_inline_frames.
6831 Pass this stop chain to bpstat_stop_status.
6832 * inline-frame.c: Include breakpoint.h.
6833 (stopped_by_user_bp_inline_frame): New function.
6834 (skip_inline_frames): Add parameter `stop_chain'.
6835 Move documention to inline-frame.h.
6836 If non-NULL, use stopped_by_user_bp_inline_frame to determine
6837 whether the frame should be elided.
6838 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
6839 Add moved documentation and update for new parameter.
6840
b17992c1
SM
68412018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6842
6843 PR cli/14975
6844 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6845 unittests/format_pieces-selftests.c.
6846 * common/format.h (format_piece) <operator==>: New.
6847 (format_pieces) <operator[]>: Remove.
6848 * common/format.c (format_pieces::format_pieces): Handle \e.
6849 * unittests/format_pieces-selftests.c: New.
6850
58f0c718
TT
68512018-05-17 Tom Tromey <tom@tromey.com>
6852
6853 PR symtab/23010:
6854 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
6855 (dw2_instantiate_symtab): Add skip_partial parameter.
6856 (dw2_find_last_source_symtab, dw2_map_expand_apply)
6857 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
6858 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
6859 (dw2_expand_symtabs_matching_one)
6860 (dw2_find_pc_sect_compunit_symtab)
6861 (dw2_debug_names_lookup_symbol)
6862 (dw2_debug_names_expand_symtabs_for_function): Update.
6863 (init_cutu_and_read_dies): Add skip_partial parameter.
6864 (process_psymtab_comp_unit, build_type_psymtabs_1)
6865 (process_skeletonless_type_unit, load_partial_comp_unit)
6866 (psymtab_to_symtab_1): Update.
6867 (load_full_comp_unit): Add skip_partial parameter.
6868 (process_imported_unit_die, dwarf2_read_addr_index)
6869 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
6870 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
6871 (read_signatured_type): Update.
6872
3e618834
SM
68732018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6874
6875 * value.c (release_value): Remove unused variable.
6876 (record_latest_value): Likewise.
6877 (access_value_history): Likewise.
6878 (preserve_values): Likewise.
6879
fe10fe31
TT
68802018-05-17 Tom Tromey <tom@tromey.com>
6881
6882 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
6883 Initialize.
6884
1d761124
MR
68852018-05-16 Maciej W. Rozycki <macro@mips.com>
6886
6887 PR gdb/22286
6888 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
6889 Also handle registers whose width is not a multiple of
6890 PTRACE_TYPE_RET.
6891 (linux_nat_trad_target::store_register): Likewise.
6892
06333fea
TT
68932018-05-16 Tom Tromey <tom@tromey.com>
6894
6895 * gdbcore.h (core_bfd): Redefine.
6896 * corelow.c (core_target::close): Update.
6897 (core_target_open): Update.
6898 * progspace.h (struct program_space) <cbfd>: Now a
6899 gdb_bfd_ref_ptr.
6900
921222e2
TT
69012018-05-16 Tom Tromey <tom@tromey.com>
6902
6903 PR cli/19551:
6904 * symfile-add-flags.h (enum symfile_add_flags)
6905 <SYMFILE_NOT_FILENAME>: New constant.
6906 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
6907 objfile name from BFD.
6908 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
6909 * minidebug.c (find_separate_debug_file_in_section): Put
6910 ".gnu_debugdata" into BFD's file name.
6911
3acb7083
SM
69122018-05-16 Simon Marchi <simon.marchi@ericsson.com>
6913
6914 * regcache.c (regcache_read_ftype, regcache_write_ftype):
6915 Remove.
6916
561a72d4
TC
69172018-05-15 Tamar Christina <tamar.christina@arm.com>
6918
6919 PR binutils/21446
6920 * aarch64-tdep.c (aarch64_analyze_prologue,
6921 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
6922 Indicate not interested in errors.
6923
4e6ff0e1
MR
69242018-05-15 Maciej W. Rozycki <macro@mips.com>
6925
6926 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
6927 Supply the MIPS_ZERO_REGNUM register.
6928
ea33cd92
MR
69292018-05-15 Maciej W. Rozycki <macro@mips.com>
6930
6931 * mips-tdep.c (mask_address_var): Make variable static.
6932
2d79090e
TT
69332018-05-14 Tom Tromey <tom@tromey.com>
6934
6935 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
6936
cf4912ae
AB
69372018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
6938
6939 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
6940 FXSAVE_ADDR for the mxcsr register.
6941
67e6f569
MF
69422018-05-11 Max Filippov <jcmvbkbc@gmail.com>
6943
6944 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
6945
15244507
PA
69462018-05-11 Pedro Alves <palves@redhat.com>
6947
6948 * corelow.c (core_target) <core_target>: No longer inline.
6949 Initialize m_core_gdbarch, m_core_vec and build the section table
6950 here.
6951 <~core_target>: New.
6952 <core_gdbarch, get_core_register_section>: New methods.
6953 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
6954 factored out from ...
6955 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
6956 (core_ops): Delete.
6957 (sniff_core_bfd): Add gdbarch parameter.
6958 (core_close): Delete, merged into ...
6959 (core_target::close): ... here. Delete self.
6960 (core_close_cleanup): Delete.
6961 (core_target_open): Allocate a core_target on the heap. Use a
6962 unique_ptr instead of a cleanup. Bits moved into the core_target
6963 ctor. Adjust to use core_target methods instead of globals.
6964 (get_core_register_section): Rename to ...
6965 (core_target::get_core_register_section): ... this and adjust.
6966 (struct get_core_registers_cb_data): New.
6967 (get_core_registers_cb): Use it. Use bool.
6968 (core_target::fetch_registers, core_target::files_info)
6969 (core_target::xfer_partial, core_target::read_description)
6970 (core_target::pid_to, core_target::thread_name): Adjust to
6971 reference class fields instead of globals.
6972 * target.h (struct target_ops_deleter, target_ops_up): New.
6973
451953fa
PA
69742018-05-11 Pedro Alves <palves@redhat.com>
6975
6976 * corefile.c (core_file_command): Move to corelow.c.
6977 * corelow.c (the_core_target): Delete.
6978 (core_file_command): Moved from corefile.c. Check exec_bfd
6979 instead of the_core_target. Use target_detach instead of calling
6980 into the_core_target directly.
6981 (maybe_say_no_core_file_now): New.
6982 (core_target::detach): Use it.
6983 (_initialize_corelow): Remove references to the_core_target.
6984 * gdbcore.h (the_core_target): Delete.
6985
e540a5a2 69862018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 6987 Pedro Alves <palves@redhat.com>
e540a5a2
TT
6988
6989 * corefile.c (core_bfd): Remove.
6990 * gdbcore.h (core_bfd): Now a macro.
6991 * progspace.h (struct program_space) <cbfd>: New field.
6992
633cf254
TT
69932018-05-11 Tom Tromey <tom@tromey.com>
6994
6995 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
6996 gdb::def_vector.
6997
1a34f210
TT
69982018-05-10 Tom Tromey <tom@tromey.com>
6999
7000 * configure: Rebuild.
7001 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7002
190852c8
JB
70032018-05-10 Joel Brobecker <brobecker@adacore.com>
7004
7005 PR server/23158:
7006 * regformats/regdat.sh: Adjust script, following the addition
7007 of the new expedite_regs parameter to init_target_desc.
7008
8727de56
OJ
70092018-05-10 Omair Javaid <omair.javaid@linaro.org>
7010
7011 PR gdb/23127
7012 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7013 set_gdbarch_significant_addr_bit.
7014 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7015 set_gdbarch_significant_addr_bit.
7016 * utils.c (address_significant): Update to sign extend addr.
7017
37d9e062
MF
70182018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7019
7020 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7021 (xtensa_linux_init_abi): Limit tdep->num_regs by
7022 tdep->num_nopriv_regs.
7023 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7024 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7025 not initialized.
7026
7402fbca
SM
70272018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7028
7029 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7030
8ee22052
AB
70312018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7032
7033 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7034 (I387_MXCSR_INIT_VAL): New constant.
7035 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7036 buffer if it was supplied by the inferior.
7037 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7038 (i387_xsave_get_clear_bv): New function.
7039 (i387_supply_xsave): Only read x87 control registers from the
7040 xsave buffer if the feature is enabled, and the state will have
7041 been written, otherwise, provide a suitable default.
7042 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7043 including x87 control registers. Update control registers if they
7044 have changed from the default value, and mark features as enabled
7045 as required.
7046 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7047
968ae51b
UW
70482018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7049
7050 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7051
aff689d3
TT
70522018-05-07 Tom Tromey <tom@tromey.com>
7053
7054 * configure: Rebuild.
7055 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7056
ce887586
TT
70572018-05-07 Tom Tromey <tom@tromey.com>
7058
7059 PR tdep/20362:
7060 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7061 bit. Use correct value for VDIV.
7062
85e26832
TT
70632018-05-04 Tom Tromey <tom@tromey.com>
7064
7065 * configure: Rebuild.
7066 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7067
449b1ac7
TT
70682018-05-04 Tom Tromey <tom@tromey.com>
7069
7070 * linux-record.c (record_linux_system_call) <case
7071 RECORD_SYS_RECVFROM>: Add "break".
7072
15c9ffd6
TT
70732018-05-04 Tom Tromey <tom@tromey.com>
7074
7075 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7076 Add missing "break".
7077 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7078 Add missing "break".
7079
e3829d13
TT
70802018-05-04 Tom Tromey <tom@tromey.com>
7081
7082 * rs6000-tdep.c (ppc_process_record_op4)
7083 (ppc_process_record_op63): Add fall-through comment.
7084
da0e1563
TT
70852018-05-04 Tom Tromey <tom@tromey.com>
7086
7087 * i386-tdep.c (i386_process_record): Add fall-through comment.
7088
0019cd49
TT
70892018-05-04 Tom Tromey <tom@tromey.com>
7090
7091 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7092 comment.
7093
565e0eda
TT
70942018-05-04 Tom Tromey <tom@tromey.com>
7095
7096 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7097 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7098 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7099 comment.
7100 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7101 comment.
7102 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7103 comment.
7104
621846f4
TT
71052018-05-04 Tom Tromey <tom@tromey.com>
7106
7107 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7108
86a73007
TT
71092018-05-04 Tom Tromey <tom@tromey.com>
7110
7111 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7112 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7113 * symfile.c (section_is_mapped): Fix fall-through comment.
7114 * stabsread.c (define_symbol, read_member_functions): Fix
7115 fall-through comment.
7116 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7117 comment.
7118 * remote.c (remote_wait_as): Fix fall-through comment.
7119 * p-exp.y (yylex): Fix fall-through comment.
7120 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7121 comment.
7122 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7123 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7124 * jv-exp.y (yylex): Fix fall-through comment.
7125 * go-exp.y (lex_one_token): Fix fall-through comment.
7126 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7127 fall-through comment.
7128 * f-exp.y (yylex): Fix fall-through comment.
7129 * dwarf2read.c (process_die): Fix fall-through comments.
7130 * dbxread.c (process_one_symbol): Fix fall-through comment.
7131 * d-exp.y (lex_one_token): Fix fall-through comment.
7132 * cp-name-parser.y (yylex): Fix fall-through comment.
7133 * coffread.c (coff_symtab_read): Fix fall-through comment.
7134 * c-exp.y (lex_one_token): Fix fall-through comment.
7135 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7136 comment.
7137 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7138 comment.
7139
56bcdbea
TT
71402018-05-04 Tom Tromey <tom@tromey.com>
7141
7142 PR python/22730:
7143 * NEWS: Mention gdb.execute change.
7144 * gdbcmd.h (execute_control_command): Don't declare.
7145 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7146 execute_control_commands, execute_control_commands_to_string.
7147 * cli/cli-script.h (execute_control_commands)
7148 (execute_control_commands_to_string): Declare.
7149 (execute_control_command): Add from_tty parameter.
7150 * cli/cli-script.c (execute_control_commands)
7151 (execute_control_commands_to_string): New functions.
7152 (execute_user_command): Use execute_control_commands.
7153 (execute_control_command_1): Add "from_tty" parameter. Update.
7154 (execute_control_command): Likewise.
7155
a913fffb
TT
71562018-05-04 Tom Tromey <tom@tromey.com>
7157
7158 PR python/22731:
7159 * NEWS: Mention that breakpoint commands are writable.
7160 * python/py-breakpoint.c (bppy_set_commands): New function.
7161 (breakpoint_object_getset) <"commands">: Use it.
7162
60b3cef2
TT
71632018-05-04 Tom Tromey <tom@tromey.com>
7164
7165 * tracepoint.c (actions_command): Update.
7166 * mi/mi-cmd-break.c (mi_command_line_array)
7167 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7168 (mi_read_next_line): Remove.
7169 (mi_cmd_break_commands): Update.
7170 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7171 function_view.
7172 * cli/cli-script.c (get_command_line): Update.
7173 (process_next_line): Use function_view. Constify.
7174 (recurse_read_control_structure, read_command_lines)
7175 (read_command_lines_1): Change argument types to function_view.
7176 (do_define_command, document_command): Update.
7177 * breakpoint.h (check_tracepoint_command): Don't declare.
7178 * breakpoint.c (check_tracepoint_command): Remove.
7179 (commands_command_1, create_tracepoint_from_upload): Update.
7180
7a2c85f2
TT
71812018-05-04 Tom Tromey <tom@tromey.com>
7182
7183 PR gdb/11750:
7184 * cli/cli-script.h (enum command_control_type) <define_control>:
7185 New constant.
7186 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7187 (build_command_line, execute_control_command_1)
7188 (process_next_line): Likewise.
7189 (do_define_command): New function, extracted from define_command.
7190 (define_command): Use it.
7191
295dc222
TT
71922018-05-04 Tom Tromey <tom@tromey.com>
7193
7194 * tracepoint.c (actions_command): Update.
7195 * cli/cli-script.h (read_command_lines): Update.
7196 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7197 (MAX_TMPBUF): Remove define.
7198 (define_command): Use string_printf.
7199 (document_command): Likewise.
7200 * breakpoint.c (commands_command_1): Update.
7201
1263a9d5
TT
72022018-05-04 Tom Tromey <tom@tromey.com>
7203
7204 * top.c (execute_command): Update.
7205 * cli/cli-script.h (print_command_lines): Now varargs.
7206 * cli/cli-script.c (print_command_lines): Now varargs.
7207 (execute_control_command_1) <case while_control, case if_control>:
7208 Update.
7209
12973681
TT
72102018-05-04 Tom Tromey <tom@tromey.com>
7211
7212 * tracepoint.c (all_tracepoint_actions): Rename from
7213 all_tracepoint_actions_and_cleanup. Change return type.
7214 (actions_command, encode_actions_1, encode_actions)
7215 (trace_dump_actions, tdump_command): Update.
7216 * remote.c (remote_download_command_source): Update.
7217 * python/python.c (gdbpy_eval_from_control_command)
7218 (python_command, python_interactive_command): Update.
7219 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7220 * guile/guile.c (guile_command)
7221 (gdbscm_eval_from_control_command, guile_command): Update.
7222 * compile/compile.c (compile_code_command)
7223 (compile_print_command, compile_to_object): Update.
7224 * cli/cli-script.h (struct command_lines_deleter): New.
7225 (counted_command_line): New typedef.
7226 (struct command_line): Add constructor, destructor.
7227 <body_list>: Remove.
7228 <body_list_0, body_list_1>: New members.
7229 (command_line_up): Remove typedef.
7230 (read_command_lines, read_command_lines_1, get_command_line):
7231 Update.
7232 (copy_command_lines): Don't declare.
7233 * cli/cli-script.c (build_command_line): Use "new".
7234 (get_command_line): Return counted_command_line.
7235 (print_command_lines, execute_user_command)
7236 (execute_control_command_1, while_command, if_command): Update.
7237 (realloc_body_list): Remove.
7238 (process_next_line, recurse_read_control_structure): Update.
7239 (read_command_lines, read_command_lines_1): Return counted_command_line.
7240 (free_command_lines): Use "delete".
7241 (copy_command_lines): Remove.
7242 (define_command, document_command, show_user_1): Update.
7243 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7244 a counted_command_line.
7245 * breakpoint.h (counted_command_line): Remove typedef.
7246 (breakpoint_set_commands): Update.
7247 * breakpoint.c (check_no_tracepoint_commands)
7248 (validate_commands_for_breakpoint): Update.
7249 (breakpoint_set_commands): Change commands to be a
7250 counted_command_line.
7251 (commands_command_1, update_dprintf_command_list)
7252 (create_tracepoint_from_upload): Update.
7253
e2fc72e2
TT
72542018-05-04 Tom Tromey <tom@tromey.com>
7255
7256 * cli/cli-decode.h (cmd_list_element): New constructor.
7257 (~cmd_list_element): New destructor.
7258 (struct cmd_list_element): Add initializers.
7259 * cli/cli-decode.c (do_add_cmd): Use "new".
7260 (delete_cmd): Use "delete".
7261
a3b60e45
JK
72622018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7263 Pedro Alves <palves@redhat.com>
7264
7265 PR breakpoints/19806 and support for PR external/20207.
7266 * NEWS: Mention Aarch64 watchpoint improvements.
7267 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7268 watchpoints and PR external/20207 watchpoints.
7269 * nat/aarch64-linux-hw-point.c
7270 (kernel_supports_any_contiguous_range): New.
7271 (aarch64_watchpoint_offset): New.
7272 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7273 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7274 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7275 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7276 next_addr_orig_p. Support PR external/20207 watchpoints.
7277 (aarch64_downgrade_regs): New.
7278 (aarch64_dr_state_insert_one_point): New parameters offset and
7279 addr_orig.
7280 (aarch64_dr_state_remove_one_point): Likewise.
7281 (aarch64_handle_breakpoint): Update caller.
7282 (aarch64_handle_aligned_watchpoint): Likewise.
7283 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7284 aligned_offset.
7285 (aarch64_linux_set_debug_regs): Remove const from state. Call
7286 aarch64_downgrade_regs.
7287 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7288 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7289 (DR_CONTROL_MASK): ... this.
7290 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7291 (unsigned int aarch64_watchpoint_offset): New prototype.
7292 (aarch64_linux_set_debug_regs): Remove const from state.
7293 * utils.c (align_up, align_down): Move to ...
7294 * common/common-utils.c (align_up, align_down): ... here.
7295 * utils.h (align_up, align_down): Move to ...
7296 * common/common-utils.h (align_up, align_down): ... here.
7297
05bc7456
JB
72982018-05-04 Joel Brobecker <brobecker@adacore.com>
7299
7300 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7301 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7302 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7303 Re-implement to match the ABI as summarized in GCC's
7304 gcc/config/sparc/sparc.c. All callers updated.
7305 (sparc32_store_arguments): Remove assertion.
7306
2f433492
TT
73072018-05-04 Tom Tromey <tom@tromey.com>
7308
7309 * printcmd.c: Don't include tui.h.
7310 (decode_format): Use skip_spaces.
7311
9be2ae8f
TT
73122018-05-04 Tom Tromey <tom@tromey.com>
7313
7314 PR gdb/22619:
7315 * printcmd.c (last_count): New global.
7316 (x_command): Use saved count when repeating.
7317
f0b3976b
TT
73182018-05-04 Tom Tromey <tom@tromey.com>
7319
7320 * nto-procfs.c (do_closedir_cleanup): Remove.
7321 (procfs_pidlist): Use gdb_dir_up.
7322 * procfs.c (do_closedir_cleanup): Remove.
7323 (proc_update_threads): Use gdb_dir_up.
7324 * common/filestuff.h (struct gdb_dir_deleter): New.
7325 (gdb_dir_up): New typedef.
7326
862d101a
TT
73272018-05-04 Tom Tromey <tom@tromey.com>
7328
7329 * ada-lang.c (print_mention_exception): Use std::string.
7330
cb7de75e
TT
73312018-05-04 Tom Tromey <tom@tromey.com>
7332
7333 * ada-lang.c (create_excep_cond_exprs): Update.
7334 (ada_exception_catchpoint_cond_string): Use std::string.
7335
49d83361
TT
73362018-05-04 Tom Tromey <tom@tromey.com>
7337
7338 * ada-lang.c (xget_renaming_scope): Return std::string.
7339 (old_renaming_is_invisible): Update.
7340
ade72a34
TT
73412018-05-04 Tom Tromey <tom@tromey.com>
7342
7343 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7344 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7345
2be4d7f0
UW
73462018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7347
7348 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7349
69b6ecb0
TT
73502018-05-04 Tom Tromey <tom@tromey.com>
7351
7352 * remote.c (remote_query_supported_append): Change type.
7353 (remote_check_symbols): Update.
7354
bf27f0e2
PP
73552018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7356
7357 PR gdb/11420
7358 * configure.ac: Prepend libpython.
7359 * python/python-config.py: Likewise.
7360 * configure: Regenerate.
7361
4ea17de8
SM
73622018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7363
7364 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7365
bd732259
PA
73662018-05-03 Pedro Alves <palves@redhat.com>
7367
7368 * s390-linux-nat.c
7369 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7370 override. Write 'true' instead of '1'.
7371 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7372 declaration.
7373
d9f719f1
PA
73742018-05-02 Pedro Alves <palves@redhat.com>
7375
7376 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7377 add_inf_child_target.
7378 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7379 add_inf_child_target.
7380 * aix-thread.c (aix_thread_target_info): New.
7381 (aix_thread_target) <shortname, longname, doc>: Delete.
7382 <info>: New.
7383 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7384 add_inf_child_target.
7385 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7386 add_inf_child_target.
7387 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7388 add_inf_child_target.
7389 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7390 add_inf_child_target.
7391 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7392 add_inf_child_target.
7393 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7394 add_inf_child_target.
7395 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7396 add_inf_child_target.
7397 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7398 add_inf_child_target.
7399 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7400 add_inf_child_target.
7401 * bfd-target.c (target_bfd_target_info): New.
7402 (target_bfd) <shortname, longname, doc>: Delete.
7403 <info>: New.
7404 * bsd-kvm.c (bsd_kvm_target_info): New.
7405 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7406 <info>: New.
7407 (bsd_kvm_target::open): Rename to ...
7408 (bsd_kvm_target_open): ... this. Adjust.
7409 * bsd-uthread.c (bsd_uthread_target_info): New.
7410 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7411 <info>: New.
7412 * corefile.c (core_file_command): Adjust.
7413 * corelow.c (core_target_info): New.
7414 (core_target) <shortname, longname, doc>: Delete.
7415 <info>: New.
7416 (core_target::open): Rename to ...
7417 (core_target_open): ... this. Adjust.
7418 * ctf.c (ctf_target_info): New.
7419 (ctf_target) <shortname, longname, doc>: Delete.
7420 <info>: New.
7421 (ctf_target::open): Rename to ...
7422 (ctf_target_open): ... this.
7423 (_initialize_ctf): Adjust.
7424 * exec.c (exec_target_info): New.
7425 (exec_target) <shortname, longname, doc>: Delete.
7426 <info>: New.
7427 (exec_target::open): Rename to ...
7428 (exec_target_open): ... this.
7429 * gdbcore.h (core_target_open): Declare.
7430 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7431 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7432 add_inf_child_target.
7433 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7434 add_inf_child_target.
7435 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7436 add_inf_child_target.
7437 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7438 add_inf_child_target.
7439 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7440 add_inf_child_target.
7441 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7442 add_inf_child_target.
7443 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7444 add_inf_child_target.
7445 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7446 add_inf_child_target.
7447 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7448 add_inf_child_target.
7449 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7450 add_inf_child_target.
7451 * inf-child.c (inf_child_target_info): New.
7452 (inf_child_target::info): New.
7453 (inf_child_open_target): Remove 'target' parameter. Use
7454 get_native_target instead.
7455 (inf_child_target::open): Delete.
7456 (add_inf_child_target): New.
7457 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7458 Delete.
7459 <info>: New.
7460 (add_inf_child_target): Declare.
7461 (inf_child_open_target): Declare.
7462 * linux-thread-db.c (thread_db_target_info): New.
7463 (thread_db_target) <shortname, longname, doc>: Delete.
7464 <info>: New.
7465 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7466 add_inf_child_target.
7467 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7468 add_inf_child_target.
7469 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7470 add_inf_child_target.
7471 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7472 add_inf_child_target.
7473 * make-target-delegates (print_class): Adjust.
7474 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7475 add_inf_child_target.
7476 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7477 add_inf_child_target.
7478 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7479 add_inf_child_target.
7480 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7481 add_inf_child_target.
7482 * nto-procfs.c (nto_native_target_info): New.
7483 (nto_procfs_target_native) <shortname, longname, doc>:
7484 Delete.
7485 <info>: New.
7486 (nto_procfs_target_info): New.
7487 (nto_procfs_target_procfs) <shortname, longname, doc>:
7488 Delete.
7489 <info>: New.
7490 (init_procfs_targets): Adjust.
7491 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7492 add_inf_child_target.
7493 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7494 add_inf_child_target.
7495 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7496 add_inf_child_target.
7497 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7498 add_inf_child_target.
7499 * ravenscar-thread.c (ravenscar_target_info): New.
7500 (ravenscar_thread_target) <shortname, longname, doc>:
7501 Delete.
7502 <info>: New.
7503 * record-btrace.c (record_btrace_target_info):
7504 (record_btrace_target) <shortname, longname, doc>: Delete.
7505 <info>: New.
7506 (record_btrace_target::open): Rename to ...
7507 (record_btrace_target_open): ... this. Adjust.
7508 * record-full.c (record_longname, record_doc): New.
7509 (record_full_base_target) <shortname, longname, doc>: Delete.
7510 <info>: New.
7511 (record_full_target_info): New.
7512 (record_full_target): <shortname>: Delete.
7513 <info>: New.
7514 (record_full_core_open_1, record_full_open_1): Update comments.
7515 (record_full_base_target::open): Rename to ...
7516 (record_full_open): ... this.
7517 (cmd_record_full_restore): Update.
7518 (_initialize_record_full): Update.
7519 * remote-sim.c (remote_sim_target_info): New.
7520 (gdbsim_target) <shortname, longname, doc>: Delete.
7521 <info>: New.
7522 (gdbsim_target::open): Rename to ...
7523 (gdbsim_target_open): ... this.
7524 (_initialize_remote_sim): Adjust.
7525 * remote.c (remote_doc): New.
7526 (remote_target_info): New.
7527 (remote_target) <shortname, longname, doc>: Delete.
7528 <info>: New.
7529 (extended_remote_target_info): New.
7530 (extended_remote_target) <shortname, longname, doc>: Delete.
7531 <info>: New.
7532 (remote_target::open_1): Make static. Adjust.
7533 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7534 * s390-linux-nat.c (_initialize_s390_nat): Use
7535 add_inf_child_target.
7536 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7537 add_inf_child_target.
7538 * sol-thread.c (thread_db_target_info): New.
7539 (sol_thread_target) <shortname, longname, doc>: Delete.
7540 <info>: New.
7541 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7542 add_inf_child_target.
7543 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7544 add_inf_child_target.
7545 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7546 add_inf_child_target.
7547 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7548 add_inf_child_target.
7549 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7550 add_inf_child_target.
7551 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7552 add_inf_child_target.
7553 * spu-linux-nat.c (_initialize_spu_nat): Use
7554 add_inf_child_target.
7555 * spu-multiarch.c (spu_multiarch_target_info): New.
7556 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7557 <info>: New.
7558 * target-delegates.c: Regenerate.
7559 * target.c: Include <unordered_map>.
7560 (target_ops_p): Delete.
7561 (DEF_VEC_P(target_ops_p)): Delete.
7562 (target_factories): New.
7563 (test_target_info): New.
7564 (test_target_ops::info): New.
7565 (open_target): Adjust to use target_factories.
7566 (add_target_with_completer): Rename to ...
7567 (add_target): ... this. Change prototype. Register target_info
7568 and open callback in target_factories. Register target_info in
7569 command context instead of target_ops.
7570 (add_target): Delete old implementation.
7571 (add_deprecated_target_alias): Change prototype. Adjust.
7572 (the_native_target): New.
7573 (set_native_target, get_native_target): New.
7574 (find_default_run_target): Use the_native_target.
7575 (find_attach_target, find_run_target): Simplify.
7576 (target_ops::open): Delete.
7577 (dummy_target_info): New.
7578 (dummy_target::shortname, dummy_target::longname)
7579 (dummy_target::doc): Delete.
7580 (dummy_target::info): New.
7581 (debug_target::shortname, debug_target::longname)
7582 (debug_target::doc): Delete.
7583 (debug_target::info): New.
7584 * target.h (struct target_info): New.
7585 (target_ops::~target_ops): Add comment.
7586 (target_ops::info): New.
7587 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7588 longer virtual. Implement in terms of target_info.
7589 (set_native_target, get_native_target): Declare.
7590 (target_open_ftype): New.
7591 (add_target, add_target_with_completer)
7592 (add_deprecated_target_alias): Change prototype.
7593 (test_target) <shortname, longname, doc>: Delete.
7594 <info>: New.
7595 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7596 add_inf_child_target.
7597 * tracefile-tfile.c (tfile_target_info): New.
7598 (tfile_target) <shortname, longname, doc>: Delete.
7599 <info>: New.
7600 (tfile_target::open): Rename to ...
7601 (tfile_target_open): ... this.
7602 (_initialize_tracefile_tfile): Adjust.
7603 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7604 add_inf_child_target.
7605 * windows-nat.c (_initialize_windows_nat): Use
7606 add_inf_child_target.
7607 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7608 add_inf_child_target.
7609
135340af
PA
76102018-05-02 Pedro Alves <palves@redhat.com>
7611
7612 * linux-nat.h (linux_nat_target) <low_new_thread,
7613 low_delete_thread, low_new_fork, low_forget_process,
7614 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7615 New virtual methods.
7616 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7617 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7618 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7619 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7620 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7621 Delete.
7622 * linux-fork.c (delete_fork): Adjust to call low method.
7623 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7624 (linux_nat_new_fork, linux_nat_forget_process_hook)
7625 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7626 (linux_nat_status_is_event):
7627 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7628 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7629 to call low method.
7630 (sigtrap_is_event): Rename to ...
7631 (linux_nat_target::low_status_is_event): ... this.
7632 (linux_nat_set_status_is_event): Delete.
7633 (save_stop_reason, linux_nat_wait_1)
7634 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7635 low methods.
7636 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7637 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7638 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7639 (linux_nat_set_prepare_to_resume): Delete.
7640 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7641 low virtual methods.
7642 * amd64-linux-nat.c: Likewise.
7643 * arm-linux-nat.c: Likewise.
7644 * i386-linux-nat.c: Likewise.
7645 * ia64-linux-nat.c: Likewise.
7646 * mips-linux-nat.c: Likewise.
7647 * ppc-linux-nat.c: Likewise.
7648 * s390-linux-nat.c: Likewise.
7649 * sparc64-linux-nat.c: Likewise.
7650 * x86-linux-nat.c: Likewise.
7651 * x86-linux-nat.h: Include "nat/x86-linux.h".
7652 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7653 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7654 Override methods.
7655
57810aa7
PA
76562018-05-02 Pedro Alves <palves@redhat.com>
7657
7658 * target.h (target_ops)
7659 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7660 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7661 stopped_by_watchpoint, have_continuable_watchpoint,
7662 stopped_data_address, watchpoint_addr_within_range,
7663 can_accel_watchpoint_condition, can_run, thread_alive,
7664 has_all_memory, has_memory, has_stack, has_registers,
7665 has_execution, can_async_p, is_async_p, supports_non_stop,
7666 always_non_stop_p, can_execute_reverse, supports_multi_process,
7667 supports_enable_disable_tracepoint,
7668 supports_disable_randomization, supports_string_tracing,
7669 supports_evaluation_of_breakpoint_conditions,
7670 can_run_breakpoint_commands, filesystem_is_local,
7671 can_download_tracepoint, get_trace_state_variable_value,
7672 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7673 record_is_replaying, record_will_replay,
7674 augmented_libraries_svr4_read>: Adjust to return bool.
7675 * aarch64-linux-nat.c: All implementations adjusted.
7676 * aix-thread.c: All implementations adjusted.
7677 * arm-linux-nat.c: All implementations adjusted.
7678 * breakpoint.c: All implementations adjusted.
7679 * bsd-kvm.c: All implementations adjusted.
7680 * bsd-uthread.c: All implementations adjusted.
7681 * corelow.c: All implementations adjusted.
7682 * ctf.c: All implementations adjusted.
7683 * darwin-nat.c: All implementations adjusted.
7684 * darwin-nat.h: All implementations adjusted.
7685 * exec.c: All implementations adjusted.
7686 * fbsd-nat.c: All implementations adjusted.
7687 * fbsd-nat.h: All implementations adjusted.
7688 * gnu-nat.c: All implementations adjusted.
7689 * gnu-nat.h: All implementations adjusted.
7690 * go32-nat.c: All implementations adjusted.
7691 * ia64-linux-nat.c: All implementations adjusted.
7692 * inf-child.c: All implementations adjusted.
7693 * inf-child.h: All implementations adjusted.
7694 * inf-ptrace.c: All implementations adjusted.
7695 * inf-ptrace.h: All implementations adjusted.
7696 * linux-nat.c: All implementations adjusted.
7697 * linux-nat.h: All implementations adjusted.
7698 * mips-linux-nat.c: All implementations adjusted.
7699 * nto-procfs.c: All implementations adjusted.
7700 * ppc-linux-nat.c: All implementations adjusted.
7701 * procfs.c: All implementations adjusted.
7702 * ravenscar-thread.c: All implementations adjusted.
7703 * record-btrace.c: All implementations adjusted.
7704 * record-full.c: All implementations adjusted.
7705 * remote-sim.c: All implementations adjusted.
7706 * remote.c: All implementations adjusted.
7707 * s390-linux-nat.c: All implementations adjusted.
7708 * sol-thread.c: All implementations adjusted.
7709 * spu-multiarch.c: All implementations adjusted.
7710 * target-delegates.c: All implementations adjusted.
7711 * target.c: All implementations adjusted.
7712 * target.h: All implementations adjusted.
7713 * tracefile-tfile.c: All implementations adjusted.
7714 * tracefile.c: All implementations adjusted.
7715 * tracefile.h: All implementations adjusted.
7716 * windows-nat.c: All implementations adjusted.
7717 * x86-linux-nat.h: All implementations adjusted.
7718 * x86-nat.h: All implementations adjusted.
7719
ad6a4e2d
PA
77202018-05-02 Pedro Alves <palves@redhat.com>
7721
7722 * make-target-delegates (scan_target_h): Don't trim lines here.
7723 Replace sequences of tabs and/or whitespace with a single
7724 whitespace.
7725 (top level, parsing methods): Trim each line before processing it
7726 here.
7727
f6ac5f3d
PA
77282018-05-02 Pedro Alves <palves@redhat.com>
7729 John Baldwin <jhb@freebsd.org>
7730
7731 * target.h (enum strata) <debug_stratum>: New.
7732 (struct target_ops) <all delegation methods>: Replace by C++
7733 virtual methods, and drop "to_" prefix. All references updated
7734 throughout.
7735 <to_shortname, to_longname, to_doc, to_data,
7736 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7737 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7738 virtual methods. All references updated throughout.
7739 <can_attach, supports_terminal_ours, can_create_inferior,
7740 get_thread_control_capabilities, attach_no_wait>: New
7741 virtual methods.
7742 <insert_breakpoint, remove_breakpoint>: Now
7743 TARGET_DEFAULT_NORETURN methods.
7744 <info_proc>: Now returns bool.
7745 <to_magic>: Delete.
7746 (OPS_MAGIC): Delete.
7747 (current_target): Delete. All references replaced by references
7748 to ...
7749 (target_stack): ... this. New.
7750 (target_shortname, target_longname): Adjust.
7751 (target_can_run): Now a function declaration.
7752 (default_child_has_all_memory, default_child_has_memory)
7753 (default_child_has_stack, default_child_has_registers)
7754 (default_child_has_execution): Remove target_ops parameter.
7755 (complete_target_initialization): Delete.
7756 (memory_breakpoint_target): New template class.
7757 (test_target_ops): Refactor as a C++ class with virtual methods.
7758 * make-target-delegates (NAME_PART): Tighten.
7759 (POINTER_PART, CP_SYMBOL): New.
7760 (SIMPLE_RETURN_PART): Reimplement.
7761 (VEC_RETURN_PART): Expect less.
7762 (RETURN_PART, VIRTUAL_PART): New.
7763 (METHOD): Adjust to C++ virtual methods.
7764 (scan_target_h): Remove reference to C99.
7765 (dname): Output "target_ops::" prefix.
7766 (write_function_header): Adjust to output a C++ class method.
7767 (write_declaration): New.
7768 (write_delegator): Adjust to output a C++ class method.
7769 (tdname): Output "dummy_target::" prefix.
7770 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7771 method.
7772 (tdefault_names, debug_names): Delete.
7773 (return_types, tdefaults, styles, argtypes_array): New.
7774 (top level): All methods are delegators.
7775 (print_class): New.
7776 (top level): Print dummy_target and debug_target classes.
7777 * target-delegates.c: Regenerate.
7778 * target-debug.h (target_debug_print_enum_info_proc_what)
7779 (target_debug_print_thread_control_capabilities)
7780 (target_debug_print_thread_info_p): New.
7781 * target.c (dummy_target): Delete.
7782 (the_dummy_target, the_debug_target): New.
7783 (target_stack): Now extern.
7784 (set_targetdebug): Push/unpush debug target.
7785 (default_child_has_all_memory, default_child_has_memory)
7786 (default_child_has_stack, default_child_has_registers)
7787 (default_child_has_execution): Remove target_ops parameter.
7788 (complete_target_initialization): Delete.
7789 (add_target_with_completer): No longer call
7790 complete_target_initialization.
7791 (target_supports_terminal_ours): Use regular delegation.
7792 (update_current_target): Delete.
7793 (push_target): No longer check magic number. Don't call
7794 update_current_target.
7795 (unpush_target): Don't call update_current_target.
7796 (target_is_pushed): No longer check magic number.
7797 (target_require_runnable): Skip for all stratums over
7798 process_stratum.
7799 (target_ops::info_proc): New.
7800 (target_info_proc): Use find_target_at and
7801 find_default_run_target.
7802 (target_supports_disable_randomization): Use regular delegation.
7803 (target_get_osdata): Use find_target_at.
7804 (target_ops::open, target_ops::close, target_ops::can_attach)
7805 (target_ops::attach, target_ops::can_create_inferior)
7806 (target_ops::create_inferior, target_ops::can_run)
7807 (target_can_run): New.
7808 (default_fileio_target): Use regular delegation.
7809 (target_ops::fileio_open, target_ops::fileio_pwrite)
7810 (target_ops::fileio_pread, target_ops::fileio_fstat)
7811 (target_ops::fileio_close, target_ops::fileio_unlink)
7812 (target_ops::fileio_readlink): New.
7813 (target_fileio_open_1, target_fileio_unlink)
7814 (target_fileio_readlink): Always call the target method. Handle
7815 FILEIO_ENOSYS.
7816 (return_zero, return_zero_has_execution): Delete.
7817 (init_dummy_target): Delete.
7818 (dummy_target::dummy_target, dummy_target::shortname)
7819 (dummy_target::longname, dummy_target::doc)
7820 (debug_target::debug_target, debug_target::shortname)
7821 (debug_target::longname, debug_target::doc): New.
7822 (target_supports_delete_record): Use regular delegation.
7823 (setup_target_debug): Delete.
7824 (maintenance_print_target_stack): Skip debug_stratum.
7825 (initialize_targets): Instantiate the_dummy_target and
7826 the_debug_target.
7827 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
7828 use target_stack.
7829 (target_auxv_search, fprint_target_auxv): Adjust.
7830 (info_auxv_command): Adjust to use target_stack.
7831 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
7832 * exceptions.c (print_flush): Handle a NULL target_stack.
7833 * regcache.c (target_ops_no_register): Refactor as class with
7834 virtual methods.
7835
7836 * exec.c (exec_target): New class.
7837 (exec_ops): Now an exec_target.
7838 (exec_open, exec_close_1, exec_get_section_table)
7839 (exec_xfer_partial, exec_files_info, exec_has_memory)
7840 (exec_make_note_section): Refactor as exec_target methods.
7841 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
7842 Delete.
7843 (exec_target::find_memory_regions): New.
7844 (_initialize_exec): Don't call init_exec_ops.
7845 * gdbcore.h (exec_file_clear): Delete.
7846
7847 * corefile.c (core_target): Delete.
7848 (core_file_command): Adjust.
7849 * corelow.c (core_target): New class.
7850 (the_core_target): New.
7851 (core_close): Remove target_ops parameter.
7852 (core_close_cleanup): Adjust.
7853 (core_target::close): New.
7854 (core_open, core_detach, get_core_registers, core_files_info)
7855 (core_xfer_partial, core_thread_alive, core_read_description)
7856 (core_pid_to_str, core_thread_name, core_has_memory)
7857 (core_has_stack, core_has_registers, core_info_proc): Rework as
7858 core_target methods.
7859 (ignore, core_remove_breakpoint, init_core_ops): Delete.
7860 (_initialize_corelow): Initialize the_core_target.
7861 * gdbcore.h (core_target): Delete.
7862 (the_core_target): New.
7863
7864 * ctf.c: (ctf_target): New class.
7865 (ctf_ops): Now a ctf_target.
7866 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
7867 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
7868 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
7869 methods.
7870 (init_ctf_ops): Delete.
7871 (_initialize_ctf): Don't call it.
7872 * tracefile-tfile.c (tfile_target): New class.
7873 (tfile_ops): Now a tfile_target.
7874 (tfile_open, tfile_close, tfile_files_info)
7875 (tfile_get_tracepoint_status, tfile_trace_find)
7876 (tfile_fetch_registers, tfile_xfer_partial)
7877 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
7878 Refactor as tfile_target methods.
7879 (tfile_xfer_partial_features): Remove target_ops parameter.
7880 (init_tfile_ops): Delete.
7881 (_initialize_tracefile_tfile): Don't call it.
7882 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
7883 (tracefile_has_stack, tracefile_has_registers)
7884 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
7885 tracefile_target methods.
7886 (init_tracefile_ops): Delete.
7887 (tracefile_target::tracefile_target): New.
7888 * tracefile.h: Include "target.h".
7889 (tracefile_target): New class.
7890 (init_tracefile_ops): Delete.
7891
7892 * spu-multiarch.c (spu_multiarch_target): New class.
7893 (spu_ops): Now a spu_multiarch_target.
7894 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
7895 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
7896 (spu_search_memory, spu_mourn_inferior): Refactor as
7897 spu_multiarch_target methods.
7898 (init_spu_ops): Delete.
7899 (_initialize_spu_multiarch): Remove references to init_spu_ops,
7900 complete_target_initialization.
7901
7902 * ravenscar-thread.c (ravenscar_thread_target): New class.
7903 (ravenscar_ops): Now a ravenscar_thread_target.
7904 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
7905 (ravenscar_thread_alive, ravenscar_pid_to_str)
7906 (ravenscar_fetch_registers, ravenscar_store_registers)
7907 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
7908 (ravenscar_stopped_by_hw_breakpoint)
7909 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
7910 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
7911 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
7912 methods.
7913 (init_ravenscar_thread_ops): Delete.
7914 (_initialize_ravenscar): Remove references to
7915 init_ravenscar_thread_ops and complete_target_initialization.
7916
7917 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
7918 (bsd_uthread_target): New class.
7919 (bsd_uthread_ops): Now a bsd_uthread_target.
7920 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
7921 (bsd_uthread_close, bsd_uthread_mourn_inferior)
7922 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
7923 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
7924 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
7925 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
7926 (bsd_uthread_target): Delete function.
7927 (_initialize_bsd_uthread): Remove reference to
7928 complete_target_initialization.
7929
7930 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
7931 (target_bfd): ... this new class.
7932 (target_bfd_xfer_partial, target_bfd_get_section_table)
7933 (target_bfd_close): Refactor as target_bfd methods.
7934 (target_bfd::~target_bfd): New.
7935 (target_bfd_reopen): Adjust.
7936 (target_bfd::close): New.
7937
7938 * record-btrace.c (record_btrace_target): New class.
7939 (record_btrace_ops): Now a record_btrace_target.
7940 (record_btrace_open, record_btrace_stop_recording)
7941 (record_btrace_disconnect, record_btrace_close)
7942 (record_btrace_async, record_btrace_info)
7943 (record_btrace_insn_history, record_btrace_insn_history_range)
7944 (record_btrace_insn_history_from, record_btrace_call_history)
7945 (record_btrace_call_history_range)
7946 (record_btrace_call_history_from, record_btrace_record_method)
7947 (record_btrace_is_replaying, record_btrace_will_replay)
7948 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7949 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
7950 (record_btrace_store_registers, record_btrace_prepare_to_store)
7951 (record_btrace_to_get_unwinder)
7952 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
7953 (record_btrace_commit_resume, record_btrace_wait)
7954 (record_btrace_stop, record_btrace_can_execute_reverse)
7955 (record_btrace_stopped_by_sw_breakpoint)
7956 (record_btrace_supports_stopped_by_sw_breakpoint)
7957 (record_btrace_stopped_by_hw_breakpoint)
7958 (record_btrace_supports_stopped_by_hw_breakpoint)
7959 (record_btrace_update_thread_list, record_btrace_thread_alive)
7960 (record_btrace_goto_begin, record_btrace_goto_end)
7961 (record_btrace_goto, record_btrace_stop_replaying_all)
7962 (record_btrace_execution_direction)
7963 (record_btrace_prepare_to_generate_core)
7964 (record_btrace_done_generating_core): Refactor as
7965 record_btrace_target methods.
7966 (init_record_btrace_ops): Delete.
7967 (_initialize_record_btrace): Remove reference to
7968 init_record_btrace_ops.
7969 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
7970 the execution_direction global.
7971 (record_full_base_target, record_full_target)
7972 (record_full_core_target): New classes.
7973 (record_full_ops): Now a record_full_target.
7974 (record_full_core_ops): Now a record_full_core_target.
7975 (record_full_target::detach, record_full_target::disconnect)
7976 (record_full_core_target::disconnect)
7977 (record_full_target::mourn_inferior, record_full_target::kill):
7978 New.
7979 (record_full_open, record_full_close, record_full_async): Refactor
7980 as methods of the record_full_base_target class.
7981 (record_full_resume, record_full_commit_resume): Refactor
7982 as methods of the record_full_target class.
7983 (record_full_wait, record_full_stopped_by_watchpoint)
7984 (record_full_stopped_data_address)
7985 (record_full_stopped_by_sw_breakpoint)
7986 (record_full_supports_stopped_by_sw_breakpoint)
7987 (record_full_stopped_by_hw_breakpoint)
7988 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
7989 methods of the record_full_base_target class.
7990 (record_full_store_registers, record_full_xfer_partial)
7991 (record_full_insert_breakpoint, record_full_remove_breakpoint):
7992 Refactor as methods of the record_full_target class.
7993 (record_full_can_execute_reverse, record_full_get_bookmark)
7994 (record_full_goto_bookmark, record_full_execution_direction)
7995 (record_full_record_method, record_full_info, record_full_delete)
7996 (record_full_is_replaying, record_full_will_replay)
7997 (record_full_goto_begin, record_full_goto_end, record_full_goto)
7998 (record_full_stop_replaying): Refactor as methods of the
7999 record_full_base_target class.
8000 (record_full_core_resume, record_full_core_kill)
8001 (record_full_core_fetch_registers)
8002 (record_full_core_prepare_to_store)
8003 (record_full_core_store_registers, record_full_core_xfer_partial)
8004 (record_full_core_insert_breakpoint)
8005 (record_full_core_remove_breakpoint)
8006 (record_full_core_has_execution): Refactor
8007 as methods of the record_full_core_target class.
8008 (record_full_base_target::supports_delete_record): New.
8009 (init_record_full_ops): Delete.
8010 (init_record_full_core_ops): Delete.
8011 (record_full_save): Refactor as method of the
8012 record_full_base_target class.
8013 (_initialize_record_full): Remove references to
8014 init_record_full_ops and init_record_full_core_ops.
8015
8016 * remote.c (remote_target, extended_remote_target): New classes.
8017 (remote_ops): Now a remote_target.
8018 (extended_remote_ops): Now an extended_remote_target.
8019 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8020 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8021 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8022 (remote_pass_signals, remote_set_syscall_catchpoint)
8023 (remote_program_signals, )
8024 (remote_thread_always_alive): Remove target_ops parameter.
8025 (remote_thread_alive, remote_thread_name)
8026 (remote_update_thread_list, remote_threads_extra_info)
8027 (remote_static_tracepoint_marker_at)
8028 (remote_static_tracepoint_markers_by_strid)
8029 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8030 (remote_open): Refactor as methods of remote_target.
8031 (extended_remote_open, extended_remote_detach)
8032 (extended_remote_attach, extended_remote_post_attach):
8033 (extended_remote_supports_disable_randomization)
8034 (extended_remote_create_inferior): : Refactor as method of
8035 extended_remote_target.
8036 (remote_set_permissions, remote_open_1, remote_detach)
8037 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8038 (remote_resume, remote_commit_resume, remote_stop)
8039 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8040 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8041 (remote_prepare_to_store, remote_store_registers)
8042 (remote_flash_erase, remote_flash_done, remote_files_info)
8043 (remote_kill, remote_mourn, remote_insert_breakpoint)
8044 (remote_remove_breakpoint, remote_insert_watchpoint)
8045 (remote_watchpoint_addr_within_range)
8046 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8047 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8048 (remote_supports_stopped_by_sw_breakpoint)
8049 (remote_stopped_by_hw_breakpoint)
8050 (remote_supports_stopped_by_hw_breakpoint)
8051 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8052 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8053 (remote_verify_memory): Refactor as methods of remote_target.
8054 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8055 parameter.
8056 (remote_xfer_partial, remote_get_memory_xfer_limit)
8057 (remote_search_memory, remote_rcmd, remote_memory_map)
8058 (remote_pid_to_str, remote_get_thread_local_address)
8059 (remote_get_tib_address, remote_read_description): Refactor as
8060 methods of remote_target.
8061 (remote_target::fileio_open, remote_target::fileio_pwrite)
8062 (remote_target::fileio_pread, remote_target::fileio_close): New.
8063 (remote_hostio_readlink, remote_hostio_fstat)
8064 (remote_filesystem_is_local, remote_can_execute_reverse)
8065 (remote_supports_non_stop, remote_supports_disable_randomization)
8066 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8067 (remote_supports_enable_disable_tracepoint)
8068 (remote_supports_string_tracing)
8069 (remote_can_run_breakpoint_commands, remote_trace_init)
8070 (remote_download_tracepoint, remote_can_download_tracepoint)
8071 (remote_download_trace_state_variable, remote_enable_tracepoint)
8072 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8073 (remote_trace_start, remote_get_trace_status)
8074 (remote_get_tracepoint_status, remote_trace_stop)
8075 (remote_trace_find, remote_get_trace_state_variable_value)
8076 (remote_save_trace_data, remote_get_raw_trace_data)
8077 (remote_set_disconnected_tracing, remote_core_of_thread)
8078 (remote_set_circular_trace_buffer, remote_traceframe_info)
8079 (remote_get_min_fast_tracepoint_insn_len)
8080 (remote_set_trace_buffer_size, remote_set_trace_notes)
8081 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8082 (remote_disable_btrace, remote_teardown_btrace)
8083 (remote_read_btrace, remote_btrace_conf)
8084 (remote_augmented_libraries_svr4_read, remote_load)
8085 (remote_pid_to_exec_file, remote_can_do_single_step)
8086 (remote_execution_direction, remote_thread_handle_to_thread_info):
8087 Refactor as methods of remote_target.
8088 (init_remote_ops, init_extended_remote_ops): Delete.
8089 (remote_can_async_p, remote_is_async_p, remote_async)
8090 (remote_thread_events, remote_upload_tracepoints)
8091 (remote_upload_trace_state_variables): Refactor as methods of
8092 remote_target.
8093 (_initialize_remote): Remove references to init_remote_ops and
8094 init_extended_remote_ops.
8095
8096 * remote-sim.c (gdbsim_target): New class.
8097 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8098 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8099 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8100 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8101 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8102 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8103 Refactor as methods of gdbsim_target.
8104 (gdbsim_ops): Now a gdbsim_target.
8105 (init_gdbsim_ops): Delete.
8106 (gdbsim_cntrl_c): Adjust.
8107 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8108
8109 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8110 (the_amd64_linux_nat_target): New.
8111 (amd64_linux_fetch_inferior_registers)
8112 (amd64_linux_store_inferior_registers): Refactor as methods of
8113 amd64_linux_nat_target.
8114 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8115 * i386-linux-nat.c: Don't include "linux-nat.h".
8116 (i386_linux_nat_target): New class.
8117 (the_i386_linux_nat_target): New.
8118 (i386_linux_fetch_inferior_registers)
8119 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8120 as methods of i386_linux_nat_target.
8121 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8122 * inf-child.c (inf_child_ops): Delete.
8123 (inf_child_fetch_inferior_registers)
8124 (inf_child_store_inferior_registers): Delete.
8125 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8126 methods of inf_child_target.
8127 (inf_child_target::supports_terminal_ours)
8128 (inf_child_target::terminal_init)
8129 (inf_child_target::terminal_inferior)
8130 (inf_child_target::terminal_ours_for_output)
8131 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8132 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8133 New.
8134 (inf_child_open, inf_child_disconnect, inf_child_close)
8135 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8136 (inf_child_post_startup_inferior, inf_child_can_run)
8137 (inf_child_pid_to_exec_file): Refactor as methods of
8138 inf_child_target.
8139 (inf_child_follow_fork): Delete.
8140 (inf_child_target::can_create_inferior)
8141 (inf_child_target::can_attach): New.
8142 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8143 (inf_child_target::has_stack, inf_child_target::has_registers)
8144 (inf_child_target::has_execution): New.
8145 (inf_child_fileio_open, inf_child_fileio_pwrite)
8146 (inf_child_fileio_pread, inf_child_fileio_fstat)
8147 (inf_child_fileio_close, inf_child_fileio_unlink)
8148 (inf_child_fileio_readlink, inf_child_use_agent)
8149 (inf_child_can_use_agent): Refactor as methods of
8150 inf_child_target.
8151 (return_zero, inf_child_target): Delete.
8152 (inf_child_target::inf_child_target): New.
8153 * inf-child.h: Include "target.h".
8154 (inf_child_target): Delete function prototype.
8155 (inf_child_target): New class.
8156 (inf_child_open_target, inf_child_mourn_inferior)
8157 (inf_child_maybe_unpush_target): Delete.
8158 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8159 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8160 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8161 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8162 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8163 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8164 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8165 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8166 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8167 methods of inf_ptrace_target.
8168 (inf_ptrace_target): Delete function.
8169 * inf-ptrace.h: Include "inf-child.h".
8170 (inf_ptrace_target): Delete function declaration.
8171 (inf_ptrace_target): New class.
8172 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8173 * linux-nat.c (linux_target): New.
8174 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8175 (linux_nat_target::~linux_nat_target): New.
8176 (linux_child_post_attach, linux_child_post_startup_inferior)
8177 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8178 (linux_child_remove_fork_catchpoint)
8179 (linux_child_insert_vfork_catchpoint)
8180 (linux_child_remove_vfork_catchpoint)
8181 (linux_child_insert_exec_catchpoint)
8182 (linux_child_remove_exec_catchpoint)
8183 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8184 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8185 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8186 (linux_nat_stopped_data_address)
8187 (linux_nat_stopped_by_sw_breakpoint)
8188 (linux_nat_supports_stopped_by_sw_breakpoint)
8189 (linux_nat_stopped_by_hw_breakpoint)
8190 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8191 (linux_nat_kill, linux_nat_mourn_inferior)
8192 (linux_nat_xfer_partial, linux_nat_thread_alive)
8193 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8194 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8195 (linux_child_static_tracepoint_markers_by_strid)
8196 (linux_nat_is_async_p, linux_nat_can_async_p)
8197 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8198 (linux_nat_supports_multi_process)
8199 (linux_nat_supports_disable_randomization, linux_nat_async)
8200 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8201 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8202 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8203 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8204 methods of linux_nat_target.
8205 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8206 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8207 parameter.
8208 (check_stopped_by_watchpoint): Adjust.
8209 (linux_xfer_partial): Delete.
8210 (linux_target_install_ops, linux_target, linux_nat_add_target):
8211 Delete.
8212 (linux_nat_target::linux_nat_target): New.
8213 * linux-nat.h: Include "inf-ptrace.h".
8214 (linux_nat_target): New.
8215 (linux_target, linux_target_install_ops, linux_nat_add_target):
8216 Delete function declarations.
8217 (linux_target): Declare global.
8218 * linux-thread-db.c (thread_db_target): New.
8219 (thread_db_target::thread_db_target): New.
8220 (thread_db_ops): Delete.
8221 (the_thread_db_target): New.
8222 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8223 (thread_db_update_thread_list, thread_db_pid_to_str)
8224 (thread_db_extra_thread_info)
8225 (thread_db_thread_handle_to_thread_info)
8226 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8227 (thread_db_resume): Refactor as methods of thread_db_target.
8228 (init_thread_db_ops): Delete.
8229 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8230 * x86-linux-nat.c: Don't include "linux-nat.h".
8231 (super_post_startup_inferior): Delete.
8232 (x86_linux_nat_target::~x86_linux_nat_target): New.
8233 (x86_linux_child_post_startup_inferior)
8234 (x86_linux_read_description, x86_linux_enable_btrace)
8235 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8236 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8237 methods of x86_linux_nat_target.
8238 (x86_linux_create_target): Delete. Bits folded ...
8239 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8240 pointer.
8241 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8242 (x86_linux_nat_target): New class.
8243 (x86_linux_create_target): Delete.
8244 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8245 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8246 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8247 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8248 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8249 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8250 make extern.
8251 (x86_use_watchpoints): Delete.
8252 * x86-nat.h: Include "breakpoint.h" and "target.h".
8253 (x86_use_watchpoints): Delete.
8254 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8255 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8256 (x86_insert_watchpoint, x86_remove_watchpoint)
8257 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8258 (x86_stopped_by_hw_breakpoint): New declarations.
8259 (x86_nat_target): New template class.
8260
8261 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8262 (the_ppc_linux_nat_target): New.
8263 (ppc_linux_fetch_inferior_registers)
8264 (ppc_linux_can_use_hw_breakpoint)
8265 (ppc_linux_region_ok_for_hw_watchpoint)
8266 (ppc_linux_ranged_break_num_registers)
8267 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8268 (ppc_linux_insert_mask_watchpoint)
8269 (ppc_linux_remove_mask_watchpoint)
8270 (ppc_linux_can_accel_watchpoint_condition)
8271 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8272 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8273 (ppc_linux_watchpoint_addr_within_range)
8274 (ppc_linux_masked_watch_num_registers)
8275 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8276 (ppc_linux_read_description): Refactor as methods of
8277 ppc_linux_nat_target.
8278 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8279
8280 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8281 (procfs_target): New class.
8282 (the_procfs_target): New.
8283 (procfs_target): Delete function.
8284 (procfs_auxv_parse, procfs_attach, procfs_detach)
8285 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8286 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8287 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8288 (procfs_create_inferior, procfs_update_thread_list)
8289 (procfs_thread_alive, procfs_pid_to_str)
8290 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8291 (procfs_stopped_data_address, procfs_insert_watchpoint)
8292 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8293 (proc_find_memory_regions, procfs_info_proc)
8294 (procfs_make_note_section): Refactor as methods of procfs_target.
8295 (_initialize_procfs): Adjust.
8296 * sol-thread.c (sol_thread_target): New class.
8297 (sol_thread_ops): Now a sol_thread_target.
8298 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8299 (sol_thread_fetch_registers, sol_thread_store_registers)
8300 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8301 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8302 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8303 (init_sol_thread_ops): Delete.
8304 (_initialize_sol_thread): Adjust. Remove references to
8305 init_sol_thread_ops and complete_target_initialization.
8306
8307 * windows-nat.c (windows_nat_target): New class.
8308 (windows_fetch_inferior_registers)
8309 (windows_store_inferior_registers, windows_resume, windows_wait)
8310 (windows_attach, windows_detach, windows_pid_to_exec_file)
8311 (windows_files_info, windows_create_inferior)
8312 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8313 (windows_close, windows_pid_to_str, windows_xfer_partial)
8314 (windows_get_tib_address, windows_get_ada_task_ptid)
8315 (windows_thread_name, windows_thread_alive): Refactor as
8316 windows_nat_target methods.
8317 (do_initial_windows_stuff): Adjust.
8318 (windows_target): Delete function.
8319 (_initialize_windows_nat): Adjust.
8320
8321 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8322 (darwin_mourn_inferior, darwin_kill_inferior)
8323 (darwin_create_inferior, darwin_attach, darwin_detach)
8324 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8325 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8326 (darwin_supports_multi_process): Refactor as darwin_nat_target
8327 methods.
8328 (darwin_resume_to, darwin_files_info): Delete.
8329 (_initialize_darwin_inferior): Rename to ...
8330 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8331 * darwin-nat.h: Include "inf-child.h".
8332 (darwin_nat_target): New class.
8333 (darwin_complete_target): Delete.
8334 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8335 (darwin_target): New.
8336 (i386_darwin_fetch_inferior_registers)
8337 (i386_darwin_store_inferior_registers): Refactor as methods of
8338 darwin_nat_target.
8339 (darwin_complete_target): Delete, with ...
8340 (_initialize_i386_darwin_nat): ... bits factored out here.
8341
8342 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8343 (the_alpha_linux_nat_target): New.
8344 (alpha_linux_register_u_offset): Refactor as
8345 alpha_linux_nat_target method.
8346 (_initialize_alpha_linux_nat): Adjust.
8347 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8348 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8349 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8350 methods of linux_nat_trad_target.
8351 (linux_trad_target): Delete.
8352 * linux-nat-trad.h (linux_trad_target): Delete function.
8353 (linux_nat_trad_target): New class.
8354 * mips-linux-nat.c (mips_linux_nat_target): New class.
8355 (super_fetch_registers, super_store_registers, super_close):
8356 Delete.
8357 (the_mips_linux_nat_target): New.
8358 (mips64_linux_regsets_fetch_registers)
8359 (mips64_linux_regsets_store_registers)
8360 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8361 (mips_linux_register_u_offset, mips_linux_read_description)
8362 (mips_linux_can_use_hw_breakpoint)
8363 (mips_linux_stopped_by_watchpoint)
8364 (mips_linux_stopped_data_address)
8365 (mips_linux_region_ok_for_hw_watchpoint)
8366 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8367 (mips_linux_close): Refactor as methods of mips_linux_nat.
8368 (_initialize_mips_linux_nat): Adjust to C++ification.
8369
8370 * aix-thread.c (aix_thread_target): New class.
8371 (aix_thread_ops): Now an aix_thread_target.
8372 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8373 (aix_thread_fetch_registers, aix_thread_store_registers)
8374 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8375 (aix_thread_thread_alive, aix_thread_pid_to_str)
8376 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8377 Refactor as methods of aix_thread_target.
8378 (init_aix_thread_ops): Delete.
8379 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8380 and complete_target_initialization.
8381 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8382 (rs6000_nat_target): New class.
8383 (the_rs6000_nat_target): New.
8384 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8385 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8386 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8387 (super_create_inferior): Delete.
8388 (_initialize_rs6000_nat): Adjust to C++ification.
8389
8390 * arm-linux-nat.c (arm_linux_nat_target): New class.
8391 (the_arm_linux_nat_target): New.
8392 (arm_linux_fetch_inferior_registers)
8393 (arm_linux_store_inferior_registers, arm_linux_read_description)
8394 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8395 (arm_linux_remove_hw_breakpoint)
8396 (arm_linux_region_ok_for_hw_watchpoint)
8397 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8398 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8399 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8400 arm_linux_nat_target.
8401 (_initialize_arm_linux_nat): Adjust to C++ification.
8402
8403 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8404 (the_aarch64_linux_nat_target): New.
8405 (aarch64_linux_fetch_inferior_registers)
8406 (aarch64_linux_store_inferior_registers)
8407 (aarch64_linux_child_post_startup_inferior)
8408 (aarch64_linux_read_description)
8409 (aarch64_linux_can_use_hw_breakpoint)
8410 (aarch64_linux_insert_hw_breakpoint)
8411 (aarch64_linux_remove_hw_breakpoint)
8412 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8413 (aarch64_linux_region_ok_for_hw_watchpoint)
8414 (aarch64_linux_stopped_data_address)
8415 (aarch64_linux_stopped_by_watchpoint)
8416 (aarch64_linux_watchpoint_addr_within_range)
8417 (aarch64_linux_can_do_single_step): Refactor as methods of
8418 aarch64_linux_nat_target.
8419 (super_post_startup_inferior): Delete.
8420 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8421
8422 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8423 (the_hppa_linux_nat_target): New.
8424 (hppa_linux_fetch_inferior_registers)
8425 (hppa_linux_store_inferior_registers): Refactor as methods of
8426 hppa_linux_nat_target.
8427 (_initialize_hppa_linux_nat): Adjust to C++ification.
8428
8429 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8430 (the_ia64_linux_nat_target): New.
8431 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8432 (ia64_linux_stopped_data_address)
8433 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8434 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8435 ia64_linux_nat_target methods.
8436 (super_xfer_partial): Delete.
8437 (_initialize_ia64_linux_nat): Adjust to C++ification.
8438
8439 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8440 (the_m32r_linux_nat_target): New.
8441 (m32r_linux_fetch_inferior_registers)
8442 (m32r_linux_store_inferior_registers): Refactor as
8443 m32r_linux_nat_target methods.
8444 (_initialize_m32r_linux_nat): Adjust to C++ification.
8445
8446 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8447 (the_m68k_linux_nat_target): New.
8448 (m68k_linux_fetch_inferior_registers)
8449 (m68k_linux_store_inferior_registers): Refactor as
8450 m68k_linux_nat_target methods.
8451 (_initialize_m68k_linux_nat): Adjust to C++ification.
8452
8453 * s390-linux-nat.c (s390_linux_nat_target): New class.
8454 (the_s390_linux_nat_target): New.
8455 (s390_linux_fetch_inferior_registers)
8456 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8457 (s390_insert_watchpoint, s390_remove_watchpoint)
8458 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8459 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8460 (s390_auxv_parse, s390_read_description): Refactor as methods of
8461 s390_linux_nat_target.
8462 (_initialize_s390_nat): Adjust to C++ification.
8463
8464 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8465 (the_sparc_linux_nat_target): New.
8466 (_initialize_sparc_linux_nat): Adjust to C++ification.
8467 * sparc-nat.c (sparc_fetch_inferior_registers)
8468 (sparc_store_inferior_registers): Remove target_ops parameter.
8469 * sparc-nat.h (sparc_fetch_inferior_registers)
8470 (sparc_store_inferior_registers): Remove target_ops parameter.
8471 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8472 (the_sparc64_linux_nat_target): New.
8473 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8474
8475 * spu-linux-nat.c (spu_linux_nat_target): New class.
8476 (the_spu_linux_nat_target): New.
8477 (spu_child_post_startup_inferior, spu_child_post_attach)
8478 (spu_child_wait, spu_fetch_inferior_registers)
8479 (spu_store_inferior_registers, spu_xfer_partial)
8480 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8481 methods.
8482 (_initialize_spu_nat): Adjust to C++ification.
8483
8484 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8485 (the_tilegx_linux_nat_target): New.
8486 (fetch_inferior_registers, store_inferior_registers):
8487 Refactor as methods.
8488 (_initialize_tile_linux_nat): Adjust to C++ification.
8489
8490 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8491 (the_xtensa_linux_nat_target): New.
8492 (xtensa_linux_fetch_inferior_registers)
8493 (xtensa_linux_store_inferior_registers): Refactor as
8494 xtensa_linux_nat_target methods.
8495 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8496
8497 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8498 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8499 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8500 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8501 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8502 (fbsd_stopped_by_sw_breakpoint)
8503 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8504 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8505 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8506 (fbsd_post_startup_inferior, fbsd_post_attach)
8507 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8508 (fbsd_set_syscall_catchpoint)
8509 (super_xfer_partial, super_resume, super_wait)
8510 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8511 (fbsd_handle_debug_trap): Remove target_ops parameter.
8512 (fbsd_nat_add_target): Delete.
8513 * fbsd-nat.h: Include "inf-ptrace.h".
8514 (fbsd_nat_add_target): Delete.
8515 (USE_SIGTRAP_SIGINFO): Define.
8516 (fbsd_nat_target): New class.
8517
8518 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8519 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8520 (amd64bsd_target): Delete.
8521 * amd64-bsd-nat.h: New file.
8522 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8523 "x86-bsd-nat.h".
8524 (amd64_fbsd_nat_target): New class.
8525 (the_amd64_fbsd_nat_target): New.
8526 (amd64fbsd_read_description): Refactor as method of
8527 amd64_fbsd_nat_target.
8528 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8529 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8530 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8531 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8532 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8533 (i386bsd_target): Delete.
8534 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8535 (i386bsd_fetch_inferior_registers)
8536 (i386bsd_store_inferior_registers): Declare.
8537 (i386_bsd_nat_target): New class.
8538 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8539 (the_i386_fbsd_nat_target): New.
8540 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8541 i386_fbsd_nat_target methods.
8542 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8543 (_initialize_i386fbsd_nat): Adjust to C++ification.
8544 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8545 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8546 (_initialize_x86_bsd_nat): Adjust to C++ification.
8547 * x86-bsd-nat.h: Include "x86-nat.h".
8548 (x86bsd_target): Delete declaration.
8549 (x86bsd_nat_target): New class.
8550
8551 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8552 (the_aarch64_fbsd_nat_target): New.
8553 (aarch64_fbsd_fetch_inferior_registers)
8554 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8555 aarch64_fbsd_nat_target.
8556 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8557 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8558 (the_alpha_bsd_nat_target): New.
8559 (alphabsd_fetch_inferior_registers)
8560 (alphabsd_store_inferior_registers): Refactor as
8561 alpha_bsd_nat_target methods.
8562 (_initialize_alphabsd_nat): Refactor as methods of
8563 alpha_bsd_nat_target.
8564 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8565 (the_amd64_nbsd_nat_target): New.
8566 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8567 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8568 (the_amd64_obsd_nat_target): New.
8569 (_initialize_amd64obsd_nat): Adjust to C++ification.
8570 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8571 (the_arm_fbsd_nat_target): New.
8572 (arm_fbsd_fetch_inferior_registers)
8573 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8574 (_initialize_arm_fbsd_nat): Refactor as methods of
8575 arm_fbsd_nat_target.
8576 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8577 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8578 (the_arm_netbsd_nat_target): New.
8579 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8580 arm_netbsd_nat_target.
8581 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8582 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8583 (the_hppa_nbsd_nat_target): New.
8584 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8585 hppa_nbsd_nat_target methods.
8586 (_initialize_hppanbsd_nat): Adjust to C++ification.
8587 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8588 (the_hppa_obsd_nat_target): New.
8589 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8590 methods of hppa_obsd_nat_target.
8591 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8592 add_target.
8593 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8594 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8595 add_target.
8596 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8597 (_initialize_i386obsd_nat): Use add_target.
8598 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8599 (the_m68k_bsd_nat_target): New.
8600 (m68kbsd_fetch_inferior_registers)
8601 (m68kbsd_store_inferior_registers): Refactor as methods of
8602 m68k_bsd_nat_target.
8603 (_initialize_m68kbsd_nat): Adjust to C++ification.
8604 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8605 (the_mips_fbsd_nat_target): New.
8606 (mips_fbsd_fetch_inferior_registers)
8607 (mips_fbsd_store_inferior_registers): Refactor as methods of
8608 mips_fbsd_nat_target.
8609 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8610 add_target.
8611 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8612 (the_mips_nbsd_nat_target): New.
8613 (mipsnbsd_fetch_inferior_registers)
8614 (mipsnbsd_store_inferior_registers): Refactor as methods of
8615 mips_nbsd_nat_target.
8616 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8617 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8618 (the_mips64_obsd_nat_target): New.
8619 (mips64obsd_fetch_inferior_registers)
8620 (mips64obsd_store_inferior_registers): Refactor as methods of
8621 mips64_obsd_nat_target.
8622 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8623 add_target.
8624 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8625 nbsd_nat_target.
8626 * nbsd-nat.h: Include "inf-ptrace.h".
8627 (nbsd_nat_target): New class.
8628 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8629 (obsd_wait): Refactor as methods of obsd_nat_target.
8630 (obsd_add_target): Delete.
8631 * obsd-nat.h: Include "inf-ptrace.h".
8632 (obsd_nat_target): New class.
8633 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8634 (the_ppc_fbsd_nat_target): New.
8635 (ppcfbsd_fetch_inferior_registers)
8636 (ppcfbsd_store_inferior_registers): Refactor as methods of
8637 ppc_fbsd_nat_target.
8638 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8639 add_target.
8640 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8641 (the_ppc_nbsd_nat_target): New.
8642 (ppcnbsd_fetch_inferior_registers)
8643 (ppcnbsd_store_inferior_registers): Refactor as methods of
8644 ppc_nbsd_nat_target.
8645 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8646 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8647 (the_ppc_obsd_nat_target): New.
8648 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8649 methods of ppc_obsd_nat_target.
8650 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8651 add_target.
8652 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8653 (the_sh_nbsd_nat_target): New.
8654 (shnbsd_fetch_inferior_registers)
8655 (shnbsd_store_inferior_registers): Refactor as methods of
8656 sh_nbsd_nat_target.
8657 (_initialize_shnbsd_nat): Adjust to C++ification.
8658 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8659 (inf_ptrace_xfer_partial): Delete.
8660 (sparc_xfer_partial, sparc_target): Delete.
8661 * sparc-nat.h (sparc_fetch_inferior_registers)
8662 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8663 (sparc_target): Delete function declaration.
8664 (sparc_target): New template class.
8665 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8666 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8667 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8668 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8669 add_target.
8670 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8671 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8672 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8673 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8674 add_target.
8675 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8676 (the_vax_bsd_nat_target): New.
8677 (vaxbsd_fetch_inferior_registers)
8678 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8679 methods.
8680 (_initialize_vaxbsd_nat): Adjust to C++ification.
8681
8682 * bsd-kvm.c (bsd_kvm_target): New class.
8683 (bsd_kvm_ops): Now a bsd_kvm_target.
8684 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8685 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8686 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8687 bsd_kvm_target.
8688 (bsd_kvm_return_one): Delete.
8689 (bsd_kvm_add_target): Adjust to C++ification.
8690
8691 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8692 (nto_procfs_target_procfs): New classes.
8693 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8694 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8695 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8696 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8697 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8698 (procfs_remove_hw_breakpoint, procfs_resume)
8699 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8700 (procfs_kill_inferior, procfs_store_registers)
8701 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8702 as methods of nto_procfs_target.
8703 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8704 (nto_native_ops): Delete.
8705 (procfs_open, procfs_native_open): Delete.
8706 (nto_native_ops): Now an nto_procfs_target_native.
8707 (init_procfs_targets): Adjust to C++ification.
8708 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8709 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8710 Refactor as methods of nto_procfs_target.
8711
8712 * go32-nat.c (go32_nat_target): New class.
8713 (the_go32_nat_target): New.
8714 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8715 (go32_store_registers, go32_xfer_partial, go32_files_info)
8716 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8717 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8718 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8719 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8720 (go32_target): Delete.
8721 (_initialize_go32_nat): Adjust to C++ification.
8722
8723 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8724 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8725 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8726 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8727 gnu_nat_target.
8728 (gnu_target): Delete.
8729 * gnu-nat.h (gnu_target): Delete.
8730 (gnu_nat_target): New class.
8731 * i386-gnu-nat.c (gnu_base_target): New.
8732 (i386_gnu_nat_target): New class.
8733 (the_i386_gnu_nat_target): New.
8734 (_initialize_i386gnu_nat): Adjust to C++ification.
8735
3fffc070
PA
87362018-05-02 Pedro Alves <palves@redhat.com>
8737
8738 * bfd-target.c (target_bfd_xclose): Rename to ...
8739 (target_bfd_close): ... this.
8740 (target_bfd_reopen): Adjust.
8741 * target.c (target_close): Remove references to to_xclose.
8742 * target.h (target_ops::to_xclose): Delete.
8743 (target_ops::to_close): Update comments.
8744
6798487f
PA
87452018-05-02 Pedro Alves <palves@redhat.com>
8746
8747 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8748 "linux-nat.h".
8749 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8750 * inf-ptrace.c (inf_ptrace_register_u_offset)
8751 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8752 (inf_ptrace_store_register, inf_ptrace_store_registers)
8753 (inf_ptrace_trad_target): Move to ...
8754 * linux-nat-trad.c: ... this new file.
8755 * linux-nat-trad.h: New file.
8756 * linux-nat.c (linux_target_install_ops): Make extern.
8757 (linux_trad_target): Delete.
8758 * linux-nat.h (linux_trad_target): Delete declaration.
8759 (linux_target_install_ops): Declare.
8760 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8761 "linux-nat.h".
8762
c1955e17
PA
87632018-05-02 Pedro Alves <palves@redhat.com>
8764
8765 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8766 procfs_target/add_target here.
8767 * procfs.c (procfs_target): Make static.
8768 (_initialize_procfs): Call add_target here.
8769 * procfs.h (struct target_ops): Remove forward declaration.
8770 (procfs_target): Remove declaration.
8771 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8772
b5c8fcb1
PA
87732018-05-02 Pedro Alves <palves@redhat.com>
8774
8775 * procfs.c (procfs_stopped_by_watchpoint)
8776 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8777 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8778 Forward declare.
8779 (procfs_use_watchpoints): Delete, move contents...
8780 (procfs_target): ... here.
8781 * procfs.h (procfs_use_watchpoints): Delete declaration.
8782 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8783 procfs_use_watchpoints.
8784 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8785 procfs_use_watchpoints.
8786
0489430a
TT
87872018-05-02 Tom Tromey <tom@tromey.com>
8788
8789 PR python/20084:
8790 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8791 and var_zuinteger_unlimited.
8792 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8793 and PARAM_ZUINTEGER_UNLIMITED.
8794 (set_parameter_value): Handle var_zuinteger and
8795 var_zuinteger_unlimited.
8796 (add_setshow_generic): Likewise.
8797 (parmpy_init): Likewise.
8798
1632f8ba
DR
87992018-04-28 Dan Robertson <danlrobertson89@gmail.com>
8800
8801 PR rust/23124
8802 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8803 pointer is not null before dereferencing it.
8804
76761936
TT
88052018-04-30 Tom Tromey <tom@tromey.com>
8806
8807 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8808 is_mi_like_p.
8809
2d33446d
TT
88102018-04-30 Tom Tromey <tom@tromey.com>
8811
8812 * breakpoint.c (mention): Remove use of is_mi_like_p.
8813 (print_mention_ranged_breakpoint): Likewise.
8814 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8815 of is_mi_like_p.
8816
f3c6abab
TT
88172018-04-30 Tom Tromey <tom@tromey.com>
8818
8819 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8820
40c03530
TT
88212018-04-30 Tom Tromey <tom@tromey.com>
8822
8823 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
8824 (info_spu_event_command): Remove some uses of is_mi_like_p.
8825
2038b7fd
TT
88262018-04-30 Tom Tromey <tom@tromey.com>
8827
8828 * python/py-framefilter.c (py_print_single_arg)
8829 (enumerate_locals, py_print_args, py_print_frame): Remove some
8830 uses of is_mi_like_p.
8831
4904c3c6
TT
88322018-04-30 Tom Tromey <tom@tromey.com>
8833
8834 * ui-out.c: Update.
8835 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
8836 * ui-out.h (ui_out::is_mi_like_p): Now const.
8837 (ui_out::do_is_mi_like_p): Now const.
8838 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
8839
7c66fffc
TT
88402018-04-30 Tom Tromey <tom@tromey.com>
8841
8842 * varobj.c (varobj_set_visualizer): Use new_reference.
8843 * python/python.c (gdbpy_decode_line): Use new_reference.
8844 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
8845 new_reference.
8846
bbfa6f00
TT
88472018-04-30 Tom Tromey <tom@tromey.com>
8848
8849 * varobj.c (install_new_value): Use new_reference.
8850 * value.h (value_incref): Return void. Swap intro comment with
8851 value_decref.
8852 * value.c (set_value_parent): Use new_reference.
8853 (value_incref): Return void. Update intro comment.
8854 (release_value): Use new_reference.
8855 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
8856
1831a9f9
TT
88572018-04-30 Tom Tromey <tom@tromey.com>
8858
8859 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
8860 * gdb_bfd.h (new_bfd_ref): Remove.
8861 (gdb_bfd_open): Update comment.
8862 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
8863 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
8864 (gdb_bfd_fdopenr): Use new_reference.
8865 * exec.c (exec_file_attach): Use new_reference.
8866
7c1b5f3d
TT
88672018-04-30 Tom Tromey <tom@tromey.com>
8868
8869 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
8870 method.
8871
e11fb955
TT
88722018-04-30 Tom Tromey <tom@tromey.com>
8873
8874 * jit.c (jit_read_code_entry): Use type_align.
8875 * i386-tdep.c (i386_gdbarch_init): Don't call
8876 set_gdbarch_long_long_align_bit.
8877 * gdbarch.sh: Remove long_long_align_bit.
8878 * gdbarch.c, gdbarch.h: Rebuild.
8879 * arc-tdep.c (arc_type_align): New function.
8880 (arc_gdbarch_init): Use arc_type_align. Don't call
8881 set_gdbarch_long_long_align_bit.
8882
2fff16dd
TT
88832018-04-30 Tom Tromey <tom@tromey.com>
8884
8885 * rust-lang.c (rust_type_alignment): Remove.
8886 (rust_composite_type): Use type_align.
8887
6d7bb824
TT
88882018-04-30 Tom Tromey <tom@tromey.com>
8889
8890 * NEWS: Mention Type.align.
8891 * python/py-type.c (typy_get_alignof): New function.
8892 (type_object_getset): Add "alignof".
8893
007e1530
TT
88942018-04-30 Tom Tromey <tom@tromey.com>
8895
8896 PR exp/17095:
8897 * NEWS: Update.
8898 * std-operator.def (UNOP_ALIGNOF): New operator.
8899 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
8900 New.
8901 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
8902 * c-lang.c (c_op_print_tab): Add alignof.
8903 * c-exp.y (ALIGNOF): New token.
8904 (exp): Add "ALIGNOF" production.
8905 (ident_tokens): Add _Alignof and alignof.
8906
2b4424c3
TT
89072018-04-30 Tom Tromey <tom@tromey.com>
8908
8909 * i386-tdep.c (i386_type_align): New function.
8910 (i386_gdbarch_init): Update.
8911 * gdbarch.sh (type_align): New method.
8912 * gdbarch.c, gdbarch.h: Rebuild.
8913 * arch-utils.h (default_type_align): Declare.
8914 * arch-utils.c (default_type_align): New function.
8915 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
8916 (struct type) <align_log2>: New field.
8917 <instance_flags>: Now a bitfield.
8918 (TYPE_RAW_ALIGN): New macro.
8919 (type_align, type_raw_align, set_type_align): Declare.
8920 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
8921 functions.
8922 * dwarf2read.c (quirk_rust_enum): Set type alignment.
8923 (get_alignment, maybe_set_alignment): New functions.
8924 (read_structure_type, read_enumeration_type, read_array_type)
8925 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
8926 (read_subrange_type, read_base_type): Set type alignment.
8927
d33bc52e
SM
89282018-04-30 Simon Marchi <simon.marchi@ericsson.com>
8929
8930 * dwarf2read.c (read_index_from_section): Use bool.
8931
e28b63a9
FG
89322018-04-29 Fabian Groffen <grobian@gentoo.org>
8933
8934 PR gdb/22950
8935 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
8936 with #ifdef.
8937
cd8c76e4
JR
89382018-04-29 John Reiser <jreiser@BitWagon.com>
8939
8940 PR build/22873
8941 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
8942 last step, and do it atomically.
8943
476d250e
AO
89442018-04-27 Alexandre Oliva <aoliva@redhat.com>
8945
8946 * compile/compile-c-types.c (convert_int, convert_float):
8947 Update for C FE v1.
8948
6873858b
TT
89492018-04-27 Tom Tromey <tom@tromey.com>
8950
8951 PR rust/22545:
8952 * rust-lang.c (rust_inclusive_range_type_p): New function.
8953 (rust_range): Handle inclusive ranges.
8954 (rust_compute_range): Likewise.
8955 * rust-exp.y (struct rust_op) <inclusive>: New field.
8956 (DOTDOTEQ): New constant.
8957 (range_expr): Add "..=" productions.
8958 (operator_tokens): Add "..=" token.
8959 (ast_range): Add "inclusive" parameter.
8960 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
8961 ranges.
8962 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
8963 bounds values.
8964 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
8965 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
8966 Update comments.
8967 * expprint.c (print_subexp_standard): Handle new bounds values.
8968 (dump_subexp_body_standard): Likewise.
8969
632e107b
TT
89702018-04-27 Tom Tromey <tom@tromey.com>
8971
8972 * configure: Rebuild.
8973 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
8974 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
8975 "OVERRIDE".
8976 (class symbol_needs_eval_context): Likewise.
8977 * dwarf2read.c (mock_mapped_index::symbol_name_count)
8978 (mock_mapped_index::symbol_name_at): Use "override". Remove
8979 "virtual".
8980 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
8981 "override".
8982 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
8983 * aarch64-tdep.c (instruction_reader::read): Use "override".
8984 (instruction_reader_test::read): Likewise.
8985 * arm-tdep.c (instruction_reader::read): Use "override".
8986 (instruction_reader_thumb::read): Likewise.
8987
b75abf5b
AK
89882018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
8989
8990 PR remote/9665
8991 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
8992 instead of remote_send.
8993 (remote_send): Remove.
8994
79188d8d
PA
89952018-04-26 Pedro Alves <palves@redhat.com>
8996
8997 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
8998 find_function_start_sal instead of find_pc_line.
8999
f50776aa
PA
90002018-04-26 Pedro Alves <palves@redhat.com>
9001
9002 * breakpoint.c (set_breakpoint_location_function): Handle
9003 mst_data_gnu_ifunc.
9004 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9005 * elfread.c (elf_symtab_read): Give data symbols with
9006 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9007 (elf_rel_plt_read): Update comment.
9008 * linespec.c (convert_linespec_to_sals): Handle
9009 mst_data_gnu_ifunc.
9010 (minsym_found): Handle mst_data_gnu_ifunc.
9011 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9012 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9013 * parse.c (find_minsym_type_and_address): Handle
9014 mst_data_gnu_ifunc.
9015 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9016 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9017 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9018 comment.
9019 <mst_data_gnu_ifunc>: New enumerator.
9020
20944a6e
PA
90212018-04-26 Pedro Alves <palves@redhat.com>
9022
9023 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9024 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9025 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9026 Handle it.
9027 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9028 (lookup_minimal_symbol_by_pc): Adjust.
9029 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9030 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9031 * minsyms.h (lookup_msym_prefer): New enum.
9032 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9033 parameter by a lookup_msym_prefer parameter.
9034
1adeb822
PA
90352018-04-26 Pedro Alves <palves@redhat.com>
9036
9037 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9038 ends in "@plt" instead of looking at the symbol's section.
9039
a0aca7b0
PA
90402018-04-26 Pedro Alves <palves@redhat.com>
9041
9042 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9043 all references.
9044 (find_pc_partial_function_gnu_ifunc): Rename to ...
9045 (find_pc_partial_function): ... this, and remove references to
9046 'is_gnu_ifunc_p'.
9047 (find_pc_partial_function): Delete old implementation.
9048 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9049
76af0f26
PA
90502018-04-26 Pedro Alves <palves@redhat.com>
9051
9052 * linespec.c (struct bound_minimal_symbol_search_key): New.
9053 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9054 skip first line if we found a GNU ifunc minimal symbol by name.
9055 (compare_msymbols): Change parameters to work with a destructured
9056 lhs minsym.
9057 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9058 functions.
9059
3467ec66
PA
90602018-04-26 Pedro Alves <palves@redhat.com>
9061
9062 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9063 ifunc targets here. Instead, if we have an ifunc minsym, use its
9064 address/name.
9065 (add_location_to_breakpoint): Store the minsym and the objfile in
9066 the breakpoint location.
9067 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9068 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9069 Record the minsym in the sal.
9070 * symtab.h (symtab_and_line) <msymbol>: New field.
9071
28f4fa4d
PA
90722018-04-26 Pedro Alves <palves@redhat.com>
9073
9074 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9075 unless we actually resolved the ifunc.
9076
ca31ab1d
PA
90772018-04-26 Pedro Alves <palves@redhat.com>
9078
9079 * c-exp.y (variable production): Prefer ifunc minsyms over
9080 regular function symbols.
9081 * symtab.c (find_gnu_ifunc): New function.
9082 * minsyms.h (lookup_msym_prefer): New enum.
9083 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9084 parameter by a lookup_msym_prefer parameter.
9085 * symtab.h (find_gnu_ifunc): New declaration.
9086
8388016d
PA
90872018-04-26 Pedro Alves <palves@redhat.com>
9088
9089 * blockframe.c (find_gnu_ifunc_target_type): New function.
9090 (find_function_type): New.
9091 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9092 return a value with a memory address.
9093 (eval_call): For calls to GNU ifunc functions, try to find the
9094 type of the target function from the type that the resolver
9095 returns.
9096 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9097 symbols.
9098 * infcall.c (find_function_return_type): Delete.
9099 (find_function_addr): Add 'function_type' parameter. For calls to
9100 GNU ifunc functions, try to find the type of the target function
9101 from the type that the resolver returns, and return it via
9102 FUNCTION_TYPE.
9103 (call_function_by_hand_dummy): Adjust to use the function type
9104 returned by find_function_addr.
9105 (find_function_addr): Add 'function_type' parameter and move
9106 description here.
9107 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9108 declarations.
9109
a376e11d
PA
91102018-04-26 Pedro Alves <palves@redhat.com>
9111
9112 * c-exp.y (variable production): Skip finding an alias for ifunc
9113 symbols.
9114
02e169e2
PA
91152018-04-26 Pedro Alves <palves@redhat.com>
9116
9117 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9118
249b5733
PA
91192018-04-25 Pedro Alves <palves@redhat.com>
9120
9121 * infcmd.c (kill_command): Print the pid as string, not the whole
9122 thread's ptid. Add comment. s/has been killed/killed/ in output
9123 message.
9124 * remote.c (remote_detach_1): Print the pid as string, not the
9125 whole thread's ptid.
9126
f67c0c91
SDJ
91272018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9128 Sergio Durigan Junior <sergiodj@redhat.com>
9129 Pedro Alves <palves@redhat.com>
9130
9131 * infcmd.c (kill_command): Print message when inferior has
9132 been killed.
9133 * inferior.c (print_inferior_events): Remove 'static'. Set as
9134 '1'.
9135 (add_inferior): Improve message printed when
9136 'print_inferior_events' is on.
9137 (exit_inferior): Remove message printed when
9138 'print_inferior_events' is on.
9139 (detach_inferior): Improve message printed when
9140 'print_inferior_events' is on.
9141 (initialize_inferiors): Use 'add_inferior_silent' to set
9142 'current_inferior_'.
9143 * inferior.h (print_inferior_events): Declare here as
9144 'extern'.
9145 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9146 '[Detaching...]' messages when 'print_inferior_events' is on.
9147 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9148 as prefix/suffix for messages. Remove periods. Fix erroneous
9149 'Detaching after fork from child...', replace it by '... from
9150 parent...'.
9151 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9152 prefix/suffix when printing 'Detaching...' messages. Print
9153 them when 'print_inferior_events' is on.
9154 * remote.c (remote_detach_1): Print message when detaching
9155 from inferior and '!is_fork_parent'.
9156
e427af18
TT
91572018-04-24 Tom Tromey <tom@tromey.com>
9158
9159 * cli-out.h: Reindent.
9160
05b1d8d6
TT
91612018-04-24 Tom Tromey <tom@tromey.com>
9162
9163 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9164 (cli_ui_out::do_field_string): Use fputs_filtered.
9165 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9166
a95c7dab
TT
91672018-04-23 Tom Tromey <tom@tromey.com>
9168
9169 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9170 gdb::unique_xmalloc_ptr.
9171
458412c3
TT
91722018-04-23 Tom Tromey <tom@tromey.com>
9173
9174 * configure: Rebuild.
9175
db86b02b
RS
91762018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9177
9178 PR gdb/23095
9179 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9180 prepare_for_testing. Set normal_bp to r_debug_state if target
9181 is bsd.
9182
00aecdcf
PA
91832018-04-21 Pedro Alves <palves@redhat.com>
9184 Rajendra SY <rajendra.sy@gmail.com>
9185
9186 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9187 * remote.c (extended_remote_attach): In all-stop mode, mark the
9188 thread as executing.
9189
224608c3
PW
91902018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9191
9192 * thread.c (thread_apply_all_command): Fix comment.
9193 (thread_command): Fix comment.
9194
3b74854b
AH
91952018-04-10 Alan Hayward <alan.hayward@arm.com>
9196
9197 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9198 parameter.
9199 * features/aarch64-core.c (create_feature_aarch64_core):
9200 Regenerate.
9201 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9202 Likewise.
9203 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9204 Likewise.
9205 * features/i386/32bit-avx512.c
9206 (create_feature_i386_32bit_avx512): Likewise.
9207 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9208 Likewise.
9209 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9210 Likewise.
9211 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9212 Likewise.
9213 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9214 Likewise.
9215 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9216 Likewise.
9217 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9218 Likewise.
9219 * features/i386/64bit-avx512.c
9220 (create_feature_i386_64bit_avx512): Likewise.
9221 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9222 Likewise.
9223 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9224 Likewise.
9225 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9226 Likewise.
9227 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9228 Likewise.
9229 * features/i386/64bit-segments.c
9230 (create_feature_i386_64bit_segments): Likewise.
9231 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9232 Likewise.
9233 * features/i386/x32-core.c
9234 (create_feature_i386_x32_core): Likewise.
9235 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9236 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9237 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9238 * target-descriptions.c: In generated code, don't pass xml
9239 filename.
9240
e98577a9
AH
92412018-04-18 Alan Hayward <alan.hayward@arm.com>
9242
9243 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9244 (print_xml_feature::visit_post): Likewise.
9245 (print_xml_feature::visit): Likewise.
9246 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9247 (print_xml_feature): Add new class.
9248 * regformats/regdat.sh: Null xmltarget on feature targets.
9249 * target-descriptions.c (struct target_desc): Add xmltarget.
9250 (maintenance_check_tdesc_xml_convert): Add unittest function.
9251 (tdesc_get_features_xml): Add function to get xml.
9252 (maintenance_check_xml_descriptions): Test xml generation.
9253 * xml-tdesc.c (string_read_description_xml): Add function.
9254 * xml-tdesc.h (string_read_description_xml): Add declaration.
9255
ad7fc756
AH
92562018-04-18 Alan Hayward <alan.hayward@arm.com>
9257
9258 * features/Makefile: Add feature marker to targets with new style
9259 target descriptions.
9260 * regformats/aarch64.dat: Regenerate.
9261 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9262 * regformats/i386/amd64-avx-linux.dat: Likewise.
9263 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9264 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9265 * regformats/i386/amd64-linux.dat: Likewise.
9266 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9267 * regformats/i386/amd64.dat: Likewise.
9268 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9269 * regformats/i386/i386-avx-linux.dat: Likewise.
9270 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9271 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9272 * regformats/i386/i386-linux.dat: Likewise.
9273 * regformats/i386/i386-mmx-linux.dat: Likewise.
9274 * regformats/i386/i386-mpx-linux.dat: Likewise.
9275 * regformats/i386/i386.dat: Likewise.
9276 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9277 * regformats/i386/x32-avx-linux.dat: Likewise.
9278 * regformats/i386/x32-linux.dat: Likewise.
9279 * regformats/tic6x-c62x-linux.dat: Likewise.
9280 * regformats/tic6x-c64x-linux.dat: Likewise.
9281 * regformats/tic6x-c64xp-linux.dat: Likewise.
9282 * regformats/regdat.sh: Parse feature marker.
9283
d278f585
AH
92842018-04-18 Alan Hayward <alan.hayward@arm.com>
9285
9286 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9287 (tdesc_osabi_name): Likewise.
9288 * target-descriptions.c (tdesc_architecture_name): Add new
9289 function.
9290 (tdesc_osabi_name): Likewise.
9291
eee8a18d
AH
92922018-04-18 Alan Hayward <alan.hayward@arm.com>
9293
9294 * common/tdesc.c (tdesc_predefined_type): Move to here.
9295 (tdesc_named_type): Likewise.
9296 (tdesc_create_vector): Likewise.
9297 (tdesc_create_struct): Likewise.
9298 (tdesc_set_struct_size): Likewise.
9299 (tdesc_create_union): Likewise.
9300 (tdesc_create_flags): Likewise.
9301 (tdesc_create_enum): Likewise.
9302 (tdesc_add_field): Likewise.
9303 (tdesc_add_typed_bitfield): Likewise.
9304 (tdesc_add_bitfield): Likewise.
9305 (tdesc_add_flag): Likewise.
9306 (tdesc_add_enum_value): Likewise.
9307 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9308 (struct tdesc_type_vector): Likewise.
9309 (struct tdesc_type_field): Likewise.
9310 (struct tdesc_type_with_fields): Likewise.
9311 (tdesc_create_enum): Add declaration.
9312 (tdesc_add_typed_bitfield): Likewise.
9313 (tdesc_add_enum_value): Likewise.
9314 * target-descriptions.c (tdesc_type_field): Move from here.
9315 (tdesc_type_builtin): Likewise.
9316 (tdesc_type_vector): Likewise.
9317 (tdesc_type_with_fields): Likewise.
9318 (tdesc_predefined_types): Likewise.
9319 (tdesc_named_type): Likewise.
9320 (tdesc_create_vector): Likewise.
9321 (tdesc_create_struct): Likewise.
9322 (tdesc_set_struct_size): Likewise.
9323 (tdesc_create_union): Likewise.
9324 (tdesc_create_flags): Likewise.
9325 (tdesc_create_enum): Likewise.
9326 (tdesc_add_field): Likewise.
9327 (tdesc_add_typed_bitfield): Likewise.
9328 (tdesc_add_bitfield): Likewise.
9329 (tdesc_add_flag): Likewise.
9330 (tdesc_add_enum_value): Likewise.
9331 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9332 (tdesc_add_typed_bitfield): Likewise.
9333 (tdesc_add_enum_value): Likewise.
9334
82ec9bc7
AH
93352018-04-18 Alan Hayward <alan.hayward@arm.com>
9336
9337 * common/tdesc.c (tdesc_feature::accept): Move to here.
9338 (tdesc_feature::operator==): Likewise.
9339 (tdesc_create_reg): Likewise.
9340 * common/tdesc.h (tdesc_type_kind): Likewise.
9341 (struct tdesc_type): Likewise.
9342 (struct tdesc_feature): Likewise.
9343 * regformats/regdat.sh: Create a feature.
9344 * target-descriptions.c (tdesc_type_kind): Move from here.
9345 (tdesc_type): Likewise.
9346 (tdesc_type_up): Likewise.
9347 (tdesc_feature): Likewise.
9348 (tdesc_create_reg): Likewise.
9349
ea3e7d71
AH
93502018-04-18 Alan Hayward <alan.hayward@arm.com>
9351
9352 * Makefile.in: Add arch/tdesc.c
9353 * common/tdesc.c: New file.
9354 * common/tdesc.h (tdesc_element_visitor): Move to here.
9355 (tdesc_element): Likewise.
9356 (tdesc_reg): Likewise.
9357 (tdesc_reg_up): Likewise.
9358 * regformats/regdef.h (reg): Add offset to constructors.
9359 * target-descriptions.c (tdesc_element_visitor): Move from here.
9360 (tdesc_element): Likewise.
9361 (tdesc_reg): Likewise.
9362 (tdesc_reg_up): Likewise.
9363
bedda9ac
TT
93642018-04-17 Tom Tromey <tom@tromey.com>
9365
9366 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9367 discriminant field.
9368
a037790e
TT
93692018-04-17 Tom Tromey <tom@tromey.com>
9370
9371 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9372
c7dcbf88
AA
93732018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9374
9375 * symtab.c (print_symbol_info): Skip printing filename and line
9376 number when `last' is NULL.
9377 (symtab_symbol_info): Use empty string instead of NULL for first
9378 invocation of print_symbol_info.
9379 (rbreak_command): Pass NULL to `last' parameter of
9380 print_symbol_info.
9381
07d28c77
SM
93822018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9383
9384 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9385 instead of nullptr.
9386
8a3de5e1
PA
93872018-04-16 Pedro Alves <palves@redhat.com>
9388
9389 * MAINTAINERS (sh): Remove.
9390 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9391 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9392 (ALLDEPFILES): Remove sh64-tdep.c.
9393 * NEWS: Mentions that support for SH-5/SH64 is removed.
9394 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9395 (sh*-*-openbsd*): Ditto.
9396 (sh64-*-elf*): Remove.
9397 (sh*): Remove.
9398 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9399 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9400 * sh-tdep.c: No longer include "sh64-tdep.h".
9401 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9402 * sh64-tdep.c, sh64-tdep.h: Remove files.
9403
a2a79012
PA
94042018-04-16 Pedro Alves <palves@redhat.com>
9405
9406 * MAINTAINERS: Remove m88k.
9407 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9408 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9409 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9410 * NEWS: Mention that support for m88k was removed.
9411 * configure.host (m88*-*-*): Remove support.
9412 * configure.nat (m88k-*-*): Remove support.
9413 * configure.tgt (m88*-*-openbsd*): Remove.
9414 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9415
eda4efb1
SM
94162018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9417
9418 * configure.tgt (x86_tobjs): New variable.
9419 (amd64_tobjs, i386_tobjs): Use it.
9420
b744723f
AA
94212018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9422
9423 * symtab.c (print_symbol_info): Precede the symbol definition by
9424 the line number when available.
9425 * NEWS: Advertise this enhancement.
9426
4a4495d6
MM
94272018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9428
9429 * NEWS (New options): announce set/show record btrace cpu.
9430 * btrace.c: Include record-btrace.h.
9431 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9432 the vendor is unknown.
9433 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9434 Maybe overwrite the btrace configuration's cpu.
9435 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9436 (btrace_fetch): Add cpu parameter. Update callers.
9437 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9438 Maybe overwrite the btrace configuration's cpu. Skip enabling
9439 errata workarounds if the vendor is unknown.
9440 * python/py-record-btrace.c: Include record-btrace.h.
9441 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9442 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9443 * record-btrace.c (record_btrace_cpu_state_kind): New.
9444 (record_btrace_cpu): New.
9445 (set_record_btrace_cpu_cmdlist): New.
9446 (record_btrace_get_cpu): New.
9447 (require_btrace_thread, record_btrace_info)
9448 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9449 (cmd_set_record_btrace_cpu_none): New.
9450 (cmd_set_record_btrace_cpu_auto): New.
9451 (cmd_set_record_btrace_cpu): New.
9452 (cmd_show_record_btrace_cpu): New.
9453 (_initialize_record_btrace): Initialize set/show record btrace cpu
9454 commands.
9455 * record-btrace.h (record_btrace_get_cpu): New.
9456
69f90c75
MM
94572018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9458
9459 * record.c (set_record_command): Fix typo in message.
9460
b85310e1
MM
94612018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9462
9463 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9464
1d509aa6
MM
94652018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9466
9467 * infrun.c (process_event_stop_test): Call
9468 gdbarch_in_indirect_branch_thunk.
9469 * gdbarch.sh (in_indirect_branch_thunk): New.
9470 * gdbarch.c: Regenerated.
9471 * gdbarch.h: Regenerated.
9472 * x86-tdep.h: New.
9473 * x86-tdep.c: New.
9474 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9475 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9476 (ALLDEPFILES): Add x86-tdep.c.
9477 * arch-utils.h (default_in_indirect_branch_thunk): New.
9478 * arch-utils.c (default_in_indirect_branch_thunk): New.
9479 * i386-tdep: Include x86-tdep.h.
9480 (i386_in_indirect_branch_thunk): New.
9481 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9482 function.
9483 * amd64-tdep: Include x86-tdep.h.
9484 (amd64_in_indirect_branch_thunk): New.
9485 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9486
b4be9bfd
JK
94872018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9488
9489 PR gdb/23053
9490 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9491 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9492 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9493 regression.
9494
53d7df28
TT
94952018-04-12 Tom Tromey <tom@tromey.com>
9496
9497 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9498 (rust_evaluate_subexp): Likewise.
9499
70b33f19
PA
95002018-04-12 Pedro Alves <palves@redhat.com>
9501
9502 * procfs.c (procfs_detach): Make forward declaration's prototype
9503 match definition's protototype.
9504 (proc_get_LDT_entry): Remove stale do_cleanups call.
9505
436411b1
PA
95062018-04-12 Pedro Alves <palves@redhat.com>
9507
9508 * target.h (target_ops::to_has_exited): Delete.
9509 (target_has_exited): Delete.
9510 * target-delegates.c: Regenerate.
9511
20db9c52
PA
95122018-04-11 Pedro Alves <palves@redhat.com>
9513
9514 * target.c (fileio_fh_t::t): Add comment.
9515 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9516 (target_fileio_close): Handle a NULL target.
9517 (invalidate_fileio_fh): New.
9518 (target_close): Call it.
9519 * remote.c (remote_hostio_send_command): No longer check whether
9520 remote_desc is open.
9521
5ff79300
PA
95222018-04-11 Pedro Alves <palves@redhat.com>
9523
9524 * target.c (fileio_fh_t): Make it a named struct instead of a
9525 typedef.
9526 (fileio_fh_t::is_closed): New method.
9527 (DEF_VEC_O (fileio_fh_t)): Remove.
9528 (fileio_fhandles): Now a std::vector.
9529 (is_closed_fileio_fh): Delete.
9530 (acquire_fileio_fd): Adjust. Rename parameters.
9531 (release_fileio_fd): Adjust.
9532 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9533 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9534 (target_fileio_close): Adjust.
9535
6e22e10d
SM
95362018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9537
9538 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9539 index.
9540
731f534f
PA
95412018-04-10 Pedro Alves <palves@redhat.com>
9542
9543 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9544 (scoped_finish_thread_state): New class.
9545 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9546 cleanup.
9547 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9548 (fetch_inferior_event, normal_stop): Likewise.
9549 * thread.c (finish_thread_state_cleanup): Delete.
9550
d5f4488f
SM
95512018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9552 Pedro Alves <palves@redhat.com>
9553
9554 * value.c: Include "selftest.h" and "common/array-view.h".
9555 (struct range) <operator ==>: New.
9556 (test_ranges_contain): New.
9557 (check_ranges_vector): New.
9558 (test_insert_into_bit_range_vector): New.
9559 (_initialize_values): Register selftests.
9560 * common/array-view.h (operator==, operator!=): New.
9561
b24531ed
SM
95622018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9563
9564 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9565 an iterator.
9566 * inline-frame.c: Include <algorithm>.
9567 (struct inline_state): Add constructor.
9568 (inline_state_s): Remove.
9569 (DEF_VEC_O(inline_state_s)): Remove.
9570 (inline_states): Change type to std::vector.
9571 (find_inline_frame_state): Adjust to std::vector.
9572 (allocate_inline_frame_state): Remove.
9573 (clear_inline_frame_state): Adjust to std::vector.
9574 (skip_inline_frames): Adjust to std::vector.
9575
c252925c
SM
95762018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9577
9578 * tracepoint.h (struct trace_state_variable): Add constructor.
9579 <name>: Change type to std::string.
9580 * tracepoint.c (tsv_s): Remove.
9581 (DEF_VEC_O(tsv_s)): Remove.
9582 (tvariables): Change to std::vector.
9583 (create_trace_state_variable): Adjust to std::vector.
9584 (find_trace_state_variable): Likewise.
9585 (find_trace_state_variable_by_number): Likewise.
9586 (delete_trace_state_variable): Likewise.
9587 (trace_variable_command): Adjust to std::string.
9588 (delete_trace_variable_command): Likewise.
9589 (tvariables_info_1): Adjust to std::vector.
9590 (save_trace_state_variables): Likewise.
9591 (start_tracing): Likewise.
9592 (merge_uploaded_trace_state_variables): Adjust to std::vector
9593 and std::string.
9594 * target.h (struct target_ops)
9595 <to_download_trace_state_variable>: Pass reference to
9596 trace_state_variable.
9597 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9598 * target-delegates.c: Re-generate.
9599 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9600 (mi_tsv_deleted): Likewise.
9601 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9602 * remote.c (remote_download_trace_state_variable): Change
9603 pointer to reference and adjust.
9604 * make-target-delegates (parse_argtypes): Handle references.
9605 (write_function_header): Likewise.
9606 (munge_type): Likewise.
9607
c9638d26
SM
96082018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9609
9610 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9611 string_view-selftests.c.
9612 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9613 testsuite.
9614 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9615 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9616 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9617 * unittests/basic_string_view/element_access/char/1.cc:
9618 Likewise.
9619 * unittests/basic_string_view/element_access/char/empty.cc:
9620 Likewise.
9621 * unittests/basic_string_view/element_access/char/front_back.cc:
9622 Likewise.
9623 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9624 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9625 Likewise.
9626 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9627 Likewise.
9628 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9629 Likewise.
9630 * unittests/basic_string_view/operations/compare/char/1.cc:
9631 Likewise.
9632 * unittests/basic_string_view/operations/compare/char/13650.cc:
9633 Likewise.
9634 * unittests/basic_string_view/operations/copy/char/1.cc:
9635 Likewise.
9636 * unittests/basic_string_view/operations/data/char/1.cc:
9637 Likewise.
9638 * unittests/basic_string_view/operations/find/char/1.cc:
9639 Likewise.
9640 * unittests/basic_string_view/operations/find/char/2.cc:
9641 Likewise.
9642 * unittests/basic_string_view/operations/find/char/3.cc:
9643 Likewise.
9644 * unittests/basic_string_view/operations/find/char/4.cc:
9645 Likewise.
9646 * unittests/basic_string_view/operations/rfind/char/1.cc:
9647 Likewise.
9648 * unittests/basic_string_view/operations/rfind/char/2.cc:
9649 Likewise.
9650 * unittests/basic_string_view/operations/rfind/char/3.cc:
9651 Likewise.
9652 * unittests/basic_string_view/operations/substr/char/1.cc:
9653 Likewise.
9654 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9655 * unittests/string_view-selftests.c: New file.
9656
fdc11678
SM
96572018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9658
9659 * unittests/basic_string_view/capacity/1.cc: New file.
9660 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9661 * unittests/basic_string_view/cons/char/1.cc: New file.
9662 * unittests/basic_string_view/cons/char/2.cc: New file.
9663 * unittests/basic_string_view/cons/char/3.cc: New file.
9664 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9665 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9666 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9667 * unittests/basic_string_view/element_access/char/1.cc: New file.
9668 * unittests/basic_string_view/element_access/char/2.cc: New file.
9669 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9670 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9671 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9672 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9673 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9674 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9675 * unittests/basic_string_view/include.cc: New file.
9676 * unittests/basic_string_view/inserters/char/1.cc: New file.
9677 * unittests/basic_string_view/inserters/char/2.cc: New file.
9678 * unittests/basic_string_view/inserters/char/3.cc: New file.
9679 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9680 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9681 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9682 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9683 * unittests/basic_string_view/literals/types.cc: New file.
9684 * unittests/basic_string_view/literals/values.cc: New file.
9685 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9686 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9687 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9688 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9689 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9690 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9691 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9692 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9693 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9694 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9695 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9696 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9697 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9698 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9699 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9700 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9701 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9702 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9703 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9704 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9705 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9706 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9707 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9708 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9709 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9710 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9711 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9712 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9713 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9714 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9715 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9716 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9717 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9718 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9719 * unittests/basic_string_view/operators/char/2.cc: New file.
9720 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9721 * unittests/basic_string_view/range_access/char/1.cc: New file.
9722 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9723 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9724 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9725 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9726 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9727 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9728 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9729 * unittests/basic_string_view/typedefs.cc: New file.
9730 * unittests/basic_string_view/types/1.cc: New file.
9731
8345c4a2
SM
97322018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9733
9734 * common/gdb_string_view.h: Remove libstdc++ implementation
9735 details, adjust to gdb reality.
9736 * common/gdb_string_view.tcc: Likewise.
9737 * cli/cli-script.c (struct string_view): Remove.
9738 (user_args) <m_args>: Change element type to gdb::string_view.
9739 (user_args::insert_args): Adjust.
9740
7adcdf08
SM
97412018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9742
9743 * common/gdb_string_view.h: New file.
9744 * common/gdb_string_view.tcc: New file.
9745
41260ac2
SM
97462018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9747
9748 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9749 * configure: Re-generate.
9750
0bee6dd4
PA
97512018-04-09 Pedro Alves <palves@redhat.com>
9752
9753 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9754 (set_target_gdbarch): Call
9755 gdb::observers::architecture_changed.notify instead of
9756 observer_notify_architecture_changed.
9757
6f14adc5
SM
97582018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9759
9760 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9761 (do_restore_current_traceframe_cleanup): Remove.
9762 (restore_current_traceframe_cleanup_dtor): Remove.
9763 (make_cleanup_restore_current_traceframe): Remove.
9764 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9765 New.
9766 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9767 * infrun.c (fetch_inferior_event): Use
9768 scoped_restore_current_traceframe.
9769
b2bdb8cf
SM
97702018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9771
9772 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9773 Remove.
9774 <n_allocated_type_units>: Remove.
9775 <all_type_units>: Change to std::vector.
9776 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9777 to std::vector change.
9778 (dwarf2_per_objfile::get_cutu): Likewise.
9779 (dwarf2_per_objfile::get_tu): Likewise.
9780 (create_signatured_type_table_from_index): Likewise.
9781 (create_signatured_type_table_from_debug_names): Likewise.
9782 (dw2_symtab_iter_next): Likewise.
9783 (dw2_print_stats): Likewise.
9784 (dw2_expand_all_symtabs): Likewise.
9785 (dw2_expand_marked_cus): Likewise.
9786 (dw2_debug_names_iterator::next): Likewise.
9787 (dwarf2_initialize_objfile): Likewise.
9788 (add_signatured_type_cu_to_table): Likewise.
9789 (create_all_type_units): Likewise.
9790 (add_type_unit): Likewise.
9791 (struct tu_abbrev_offset): Add constructor.
9792 (build_type_psymtabs_1): Adjust to std::vector change.
9793 (print_tu_stats): Likewise.
9794 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9795 (write_debug_names): Likewise.
9796
b76e467d
SM
97972018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9798
9799 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9800 Make an std::vector.
9801 <n_comp_units>: Remove.
9802 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9803 to std::vector change.
9804 (dwarf2_per_objfile::get_cutu): Likewise.
9805 (dwarf2_per_objfile::get_cu): Likewise.
9806 (create_cus_from_index): Likewise.
9807 (create_addrmap_from_index): Likewise.
9808 (create_addrmap_from_aranges): Likewise.
9809 (dwarf2_read_index): Likewise.
9810 (dw2_find_last_source_symtab): Likewise.
9811 (dw2_map_symtabs_matching_filename): Likewise.
9812 (dw2_symtab_iter_next): Likewise.
9813 (dw2_print_stats): Likewise.
9814 (dw2_expand_all_symtabs): Likewise.
9815 (dw2_expand_symtabs_with_fullname): Likewise.
9816 (dw2_expand_marked_cus): Likewise.
9817 (dw2_map_symbol_filenames): Likewise.
9818 (create_cus_from_debug_names): Likewise.
9819 (dwarf2_read_debug_names): Likewise.
9820 (dw2_debug_names_iterator::next): Likewise.
9821 (dwarf2_initialize_objfile): Likewise.
9822 (set_partial_user): Likewise.
9823 (dwarf2_build_psymtabs_hard): Likewise.
9824 (read_comp_units_from_section): Remove arguments, adjust to
9825 std::vector change.
9826 (create_all_comp_units): Adjust to std::vector and
9827 read_comp_units_from_section changes.
9828 (dwarf2_find_containing_comp_unit): Adjust to std::vector
9829 change.
9830 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9831 (psyms_seen_size): Likewise.
9832 (write_gdbindex): Likewise.
9833 (write_debug_names): Likewise.
9834
12359b5e
SM
98352018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9836
9837 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
9838 with dwarf2_per_objfile.
9839 (create_cus_from_index): Likewise.
9840 (create_signatured_type_table_from_index): Likewise.
9841 (dwarf2_read_index): Likewise.
9842 (dwarf2_initialize_objfile): Likewise.
9843 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
9844 per_cu rather than get_dwarf2_per_objfile.
9845
ff4c9fec
SM
98462018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9847
9848 * dwarf2read.h (struct signatured_type): Forward declare.
9849 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
9850 New methods.
9851 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
9852 (dw2_get_cutu): ...this.
9853 (dwarf2_per_objfile::get_cu): Rename from...
9854 (dw2_get_cu): ...this.
9855 (dwarf2_per_objfile::get_tu): New.
9856 (create_addrmap_from_index): Adjust.
9857 (create_addrmap_from_aranges): Adjust.
9858 (dw2_find_last_source_symtab): Adjust.
9859 (dw2_map_symtabs_matching_filename): Adjust.
9860 (dw2_symtab_iter_next): Adjust.
9861 (dw2_print_stats): Adjust.
9862 (dw2_expand_all_symtabs): Adjust.
9863 (dw2_expand_symtabs_with_fullname): Adjust.
9864 (dw2_expand_marked_cus): Adjust.
9865 (dw_expand_symtabs_matching_file_matcher): Adjust.
9866 (dw2_map_symbol_filenames): Adjust.
9867 (dw2_debug_names_iterator::next): Adjust.
9868 (dwarf2_initialize_objfile): Adjust.
9869 (set_partial_user): Adjust.
9870 (dwarf2_build_psymtabs_hard): Adjust.
9871
5ca3fcb6
SM
98722018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9873
9874 * dwarf2read.c (create_signatured_type_table_from_debug_names):
9875 Remove unused variables.
9876 (dw2_map_symtabs_matching_filename): Likewise.
9877 (dwarf2_record_block_ranges): Likewise.
9878 (dwarf2_read_addr_index): Likewise.
9879 (follow_die_offset): Likewise.
9880
b2e586e8
SM
98812018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9882
9883 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
9884 to symbol_file_add_main.
9885
7c4e78cf
SM
98862018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9887
9888 PR mi/22299
9889 * mi/mi-console.c (do_fputc_async_safe): New.
9890 (mi_console_file::write_async_safe): New.
9891 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
9892 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
9893 New.
9894 * ui-file.c (ui_file::putstrn): Adjust call to
9895 fputstrn_unfiltered.
9896 * utils.c (printchar): Replace do_fputs and do_fprintf
9897 parameters by do_fputc.
9898 (fputstr_filtered): Adjust call to printchar.
9899 (fputstr_unfiltered): Likewise.
9900 (fputstrn_filtered): Likewise.
9901 (fputstrn_unfiltered): Add do_fputc parameter, pass to
9902 printchar.
9903 * utils.h (do_fputc_ftype): New typedef.
9904 (fputstrn_unfiltered): Add do_fputc parameter.
9905
5dc026d3
SM
99062018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9907
9908 * regformats/i386/i386-avx.dat: Remove.
9909
c912f608
SM
99102018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9911
9912 PR gdb/22979
9913 * amd64-tdep.c (amd64_none_init_abi): New function.
9914 (amd64_x32_none_init_abi): New function.
9915 (_initialize_amd64_tdep): Register handlers for x86-64 and
9916 x64_32 with GDB_OSABI_NONE.
9917 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
9918 GDB_OSABI_NONE osabi.
9919
26540402
SM
99202018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9921
9922 PR gdb/22980
9923 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
9924 GDB_OSABI_NONE.
9925 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
9926 * osabi.c (gdb_osabi_names): Add "unknown" entry.
9927
9018be22
SM
99282018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9929
9930 * common/byte-vector.h (char_vector): New type.
9931 * target.h (target_read_alloc): Return
9932 gdb::optional<byte_vector>.
9933 (target_read_stralloc): Return gdb::optional<char_vector>.
9934 (target_get_osdata): Return gdb::optional<char_vector>.
9935 * target.c (target_read_alloc_1): Templatize. Replacement
9936 manual memory management with vector.
9937 (target_read_alloc): Change return type, adjust.
9938 (target_read_stralloc): Change return type, adjust.
9939 (target_get_osdata): Change return type, adjust.
9940 * auxv.c (struct auxv_info) <length>: Remove.
9941 <data>: Change type to gdb::optional<byte_vector>.
9942 (auxv_inferior_data_cleanup): Free auxv_info with delete.
9943 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
9944 (target_auxv_search): Adjust.
9945 (fprint_target_auxv): Adjust.
9946 * avr-tdep.c (avr_io_reg_read_command): Adjust.
9947 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
9948 (linux_make_corefile_notes): Adjust.
9949 * osdata.c (get_osdata): Adjust.
9950 * remote.c (remote_get_threads_with_qxfer): Adjust.
9951 (remote_memory_map): Adjust.
9952 (remote_traceframe_info): Adjust.
9953 (btrace_read_config): Adjust.
9954 (remote_read_btrace): Adjust.
9955 (remote_pid_to_exec_file): Adjust.
9956 * solib-aix.c (solib_aix_get_library_list): Adjust.
9957 * solib-dsbt.c (decode_loadmap): Don't free buf.
9958 (dsbt_get_initial_loadmaps): Adjust.
9959 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
9960 * solib-target.c (solib_target_current_sos): Adjust.
9961 * tracepoint.c (sdata_make_value): Adjust.
9962 * xml-support.c (xinclude_start_include): Adjust.
9963 (xml_fetch_content_from_file): Adjust.
9964 * xml-support.h (xml_fetch_another): Change return type.
9965 (xml_fetch_content_from_file): Change return type.
9966 * xml-syscall.c (xml_init_syscalls_info): Adjust.
9967 * xml-tdesc.c (file_read_description_xml): Adjust.
9968 (fetch_available_features_from_target): Change return type.
9969 (target_fetch_description_xml): Adjust.
9970 (target_read_description_xml): Adjust.
9971
14c88955
TT
99722018-04-06 Tom Tromey <tom@tromey.com>
9973
9974 * value.c (~value): Update.
9975 (struct value) <contents>: Now unique_xmalloc_ptr.
9976 (value_contents_bits_eq, allocate_value_contents)
9977 (value_contents_raw, value_contents_all_raw)
9978 (value_contents_for_printing, value_contents_for_printing_const)
9979 (set_value_enclosing_type): Update.
9980
0c7e6dd8
TT
99812018-04-06 Tom Tromey <tom@tromey.com>
9982
9983 * value.c (range_s): Remove typedef, VEC.
9984 (struct range): Add operator<.
9985 (range_lessthan): Remove.
9986 (ranges_contain): Change type.
9987 (~value): Update.
9988 (struct value) <unavailable, optimized_out>: Now std::vector.
9989 (value_entirely_available)
9990 (value_entirely_covered_by_range_vector)
9991 (value_entirely_unavailable, value_entirely_optimized_out):
9992 Update.
9993 (insert_into_bit_range_vector): Change argument type.
9994 (find_first_range_overlap): Likewise.
9995 (struct ranges_and_idx, value_contents_bits_eq)
9996 (require_not_optimized_out, require_available): Update.
9997 (ranges_copy_adjusted): Change argument types.
9998 (value_optimized_out, value_copy, value_fetch_lazy): Update.
9999
2c8331b9
TT
100002018-04-06 Tom Tromey <tom@tromey.com>
10001
10002 * value.c (~value): Update.
10003 (struct value) <parent>: Now a value_ref_ptr.
10004 (value_parent, set_value_parent, value_address, value_copy):
10005 Update.
10006
466ce3ae
TT
100072018-04-06 Tom Tromey <tom@tromey.com>
10008
10009 * value.c (struct value): Add constructor, destructor, and member
10010 initializers.
10011 (allocate_value_lazy, value_decref): Update.
10012
062d818d
TT
100132018-04-06 Tom Tromey <tom@tromey.com>
10014
10015 * value.c (struct value) <released, next>: Remove.
10016 (all_values): Now a std::vector.
10017 (allocate_value_lazy): Update.
10018 (value_next): Remove.
10019 (value_mark, value_free_to_mark, release_value)
10020 (value_release_to_mark): Update.
10021
a6535de1
TT
100222018-04-06 Tom Tromey <tom@tromey.com>
10023
10024 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10025 (free_value_chain): Remove.
10026 * value.c (free_value_chain): Remove.
10027 (value_release_to_mark): Return a std::vector.
10028 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10029 std::vector.
10030 (check_condition): Update.
10031 * eval.c (fetch_subexp_value): Change "val_chain" to a
10032 std::vector.
10033 * breakpoint.c (update_watchpoint): Update.
10034 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10035
b5621201
TT
100362018-04-06 Tom Tromey <tom@tromey.com>
10037
10038 * value.h (free_all_values): Remove.
10039 * value.c (free_all_values): Remove.
10040
4d0266a0
TT
100412018-04-06 Tom Tromey <tom@tromey.com>
10042
10043 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10044 (value_history_chain, value_history_count): Remove.
10045 (value_history): New global.
10046 (record_latest_value, access_value_history, show_values)
10047 (preserve_values): Update.
10048
b4d61099
TT
100492018-04-06 Tom Tromey <tom@tromey.com>
10050
10051 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10052 * varobj.c (varobj_set_display_format, varobj_set_value)
10053 (install_default_visualizer, construct_visualizer)
10054 (install_new_value, ~varobj, varobj_get_value_type)
10055 (my_value_of_variable, varobj_editable_p): Update.
10056 * c-varobj.c (c_describe_child, c_value_of_variable)
10057 (cplus_number_of_children, cplus_describe_child): Update.
10058 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10059 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10060 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10061
9b558729
TT
100622018-04-06 Tom Tromey <tom@tromey.com>
10063
10064 * printcmd.c (last_examine_address): Change type to
10065 value_ref_ptr.
10066 (do_examine, x_command): Update.
10067
850645cf
TT
100682018-04-06 Tom Tromey <tom@tromey.com>
10069
10070 * value.c (release_value): Update.
10071 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10072 (struct bpstats) <val>: Now a value_ref_ptr.
10073 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10074 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10075 (~watchpoint, print_it_watchpoint, watch_command_1)
10076 (invalidate_bp_value_on_memory_change): Update.
10077
22bc8444
TT
100782018-04-06 Tom Tromey <tom@tromey.com>
10079
10080 * varobj.c (varobj_clear_saved_item)
10081 (update_dynamic_varobj_children, install_new_value, ~varobj):
10082 Update.
10083 * value.h (value_incref): Move declaration earlier.
10084 (value_decref): Rename from value_free.
10085 (struct value_ref_policy): New.
10086 (value_ref_ptr): New typedef.
10087 (struct value_deleter): Remove.
10088 (gdb_value_up): Remove typedef.
10089 (release_value): Change return type.
10090 (release_value_or_incref): Remove.
10091 * value.c (set_value_parent): Update.
10092 (value_incref): Change return type.
10093 (value_decref): Rename from value_free.
10094 (value_free_to_mark, free_all_values, free_value_chain): Update.
10095 (release_value): Return value_ref_ptr.
10096 (release_value_or_incref): Remove.
10097 (record_latest_value, set_internalvar, clear_internalvar):
10098 Update.
10099 * stack.c (info_frame_command): Don't call value_free.
10100 * python/py-value.c (valpy_dealloc, valpy_new)
10101 (value_to_value_object): Update.
10102 * printcmd.c (do_examine): Update.
10103 * opencl-lang.c (lval_func_free_closure): Update.
10104 * mi/mi-main.c (register_changed_p): Don't call value_free.
10105 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10106 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10107 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10108 value_free.
10109 * guile/scm-value.c (vlscm_free_value_smob)
10110 (vlscm_scm_from_value): Update.
10111 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10112 (frame_unwind_register_unsigned, get_frame_register_bytes)
10113 (put_frame_register_bytes): Don't call value_free.
10114 * findvar.c (address_from_register): Don't call value_free.
10115 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10116 * dwarf2loc.c (entry_data_value_free_closure)
10117 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10118 (dwarf2_evaluate_loc_desc_full): Update.
10119 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10120 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10121 (~watchpoint, watch_command_1)
10122 (invalidate_bp_value_on_memory_change): Update.
10123 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10124
7f8a5d38
SM
101252018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10126
10127 PR gdb/23022
10128 * warning.m4: Add -Wno-error=deprecated-register.
10129 * configure: Re-generate.
10130
8a76bd3b
TT
101312018-04-05 Tom Tromey <tom@tromey.com>
10132
10133 * linespec.h: Remove include of "vec.h".
10134
8e8d776e
TT
101352018-04-05 Tom Tromey <tom@tromey.com>
10136
10137 * linespec.c (typep): Remove typedef.
10138 (find_methods, find_superclass_methods): Take a std::vector.
10139 (find_method): Use std::vector.
10140
9b2f8581
TT
101412018-04-05 Tom Tromey <tom@tromey.com>
10142
10143 * utils.c (compare_strings): Remove.
10144 * utils.h (compare_strings): Remove.
10145 * objc-lang.h (find_imps): Update.
10146 * objc-lang.c (find_methods): Take a std::vector.
10147 (uniquify_strings, find_imps): Likewise.
10148 * linespec.c (find_methods): Take a std::vector.
10149 (decode_objc): Use std::vector.
10150 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10151 a std::vector.
10152 (find_method, find_function_symbols): Use std::vector.
10153
459a2e4c
TT
101542018-04-05 Tom Tromey <tom@tromey.com>
10155
10156 * completer.c (completion_tracker::completion_tracker): Remove
10157 cast.
10158 (completion_tracker::discard_completions): Likewise.
10159 * breakpoint.c (ambiguous_names_p): Remove cast.
10160 * ada-lang.c (_initialize_ada_language): Remove cast.
10161 * utils.h (streq): Update.
10162 (streq_hash): Add new declaration.
10163 * utils.c (streq): Return bool.
10164 (streq_hash): New function.
10165
9be2c17a
TT
101662018-04-05 Tom Tromey <tom@tromey.com>
10167
10168 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10169 Remove a string copy.
10170
f73c6ece
TT
101712018-04-05 Tom Tromey <tom@tromey.com>
10172
10173 * linespec.c (filter_results): Use std::vector.
10174 (decode_line_2, decode_line_full): Update.
10175
53a0f8a2
TT
101762018-04-05 Tom Tromey <tom@tromey.com>
10177
10178 * linespec.c (canonical_to_fullform): Return std::string.
10179 (filter_results): Update.
10180 (struct decode_line_2_item): Add constructor.
10181 <fullform, displayform>: Now std::string.
10182 (decode_line_2_compare_items): Now a std::sort comparator.
10183 (decode_line_2): Update.
10184
a5b5adf5
TT
101852018-04-05 Tom Tromey <tom@tromey.com>
10186
10187 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10188 (unexpected_linespec_error): Update.
10189 (linespec_parse_basic, parse_linespec): Update.
10190
6a307fc5
TT
101912018-04-05 Tom Tromey <tom@tromey.com>
10192
10193 * linespec.c (linespec_parse_basic): Reindent.
10194
41c1efc6
TT
101952018-04-05 Tom Tromey <tom@tromey.com>
10196
10197 * minsyms.h (iterate_over_minimal_symbols): Update.
10198 * minsyms.c (iterate_over_minimal_symbols): Take a
10199 gdb::function_view.
10200 * linespec.c (struct collect_minsyms): Remove.
10201 (compare_msyms): Now a std::sort comparator.
10202 (add_minsym): Add parameters.
10203 (search_minsyms_for_name): Update. Use std::vector.
10204
c5edbf3d
TT
102052018-04-03 Tom Tromey <tom@tromey.com>
10206
10207 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10208 gdb::byte_vector.
10209
b39efc48
WP
102102018-04-02 Weimin Pan <weimin.pan@oracle.com>
10211
10212 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10213
121ad66c 102142018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
10215
10216 PR gdb/16959
10217 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10218 printing static type.
10219
09473be8
TT
102202018-04-01 Tom Tromey <tom@tromey.com>
10221
10222 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10223 (rs6000_xfer_shared_libraries): Update.
10224
ec1f2d91
SM
102252018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10226
10227 * common/gdb_vecs.h (char_ptr): Remove.
10228 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10229
d8611974
SM
102302018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10231
10232 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10233 with std::vector.
10234 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10235
a18ba4e4
SM
102362018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10237
10238 * tracepoint.h (struct uploaded_tp): Initialize fields.
10239 <actions, step_actions, cmd_strings>: Change type to
10240 std::vector<char *>.
10241 * tracepoint.c (get_uploaded_tp): Allocate with new.
10242 (free_uploaded_tps): Free with delete.
10243 (parse_tracepoint_definition): Adjust to std::vector change.
10244 * breakpoint.c (read_uploaded_action): Likewise.
10245 (create_tracepoint_from_upload): Likewise.
10246 * ctf.c (ctf_write_uploaded_tp): Likewise.
10247 (SET_ARRAY_FIELD): Likewise.
10248 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10249
a7961323
TT
102502018-03-30 Tom Tromey <tom@tromey.com>
10251
10252 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10253 std::unique_ptr.
10254 (svr4_keep_data_in_core): Update.
10255 (svr4_read_so_list): Update.
10256
e83e4e24
TT
102572018-03-30 Tom Tromey <tom@tromey.com>
10258
10259 * windows-nat.c (handle_output_debug_string, handle_exception):
10260 Update.
10261 * target.h (target_read_string): Update.
10262 * target.c (target_read_string): Change "string" to
10263 unique_xmalloc_ptr.
10264 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10265 Update.
10266 * solib-frv.c (frv_current_sos): Update.
10267 * solib-dsbt.c (dsbt_current_sos): Update.
10268 * solib-darwin.c (darwin_current_sos): Update.
10269 * linux-thread-db.c (inferior_has_bug): Update.
10270 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10271 Update. Remove alloca.
10272 * ada-lang.c (ada_main_name): Update.
10273
263db9a1
TT
102742018-03-30 Tom Tromey <tom@tromey.com>
10275
10276 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10277 (struct dwo_file_deleter): New.
10278 (dwo_file_up): New typedef.
10279 (open_and_init_dwo_file): Use dwo_file_up.
10280 (free_dwo_file_cleanup): Remove.
10281
5dafb3d1
TT
102822018-03-30 Tom Tromey <tom@tromey.com>
10283
10284 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10285 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10286
11ed8cad
TT
102872018-03-30 Tom Tromey <tom@tromey.com>
10288
10289 * dwarf2read.c (class free_cached_comp_units): New class.
10290 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10291 (free_cached_comp_units): Remove function.
10292
9ae79dac
TT
102932018-03-30 Tom Tromey <tom@tromey.com>
10294
10295 * utils.h (make_cleanup_unpush_target): Remove.
10296 * inf-ptrace.c (struct target_unpusher): New.
10297 (target_unpush_up) New typedef.
10298 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10299 target_unpush_up.
10300 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10301
5aa89276
TT
103022018-03-27 Tom Tromey <tom@tromey.com>
10303
10304 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10305
1dbeed45
TT
103062018-03-27 Pedro Alves <palves@redhat.com>
10307 Tom Tromey <tom@tromey.com>
10308
10309 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10310 destructor. Now a class.
10311 (gdb_readline_wrapper_cleanup): Remove function.
10312 (gdb_readline_wrapper): Remove cleanups.
10313
c819b2c0
TT
103142018-03-27 Tom Tromey <tom@tromey.com>
10315
10316 * typeprint.h (struct type_print_options) <local_typedefs,
10317 global_typedefs>: Remove "struct" keyword.
10318 (class typedef_hash_table): New class.
10319 (recursively_update_typedef_hash, add_template_parameters)
10320 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10321 (find_typedef_in_hash): Don't declare.
10322 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10323 (typedef_hash_table::recursively_update): Rename from
10324 recursively_update_typedef_hash. Now a member.
10325 (typedef_hash_table::add_template_parameters): Rename from
10326 add_template_parameters. Now a member.
10327 (typedef_hash_table::typedef_hash_table): Now a constructor;
10328 rename from create_typedef_hash.
10329 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10330 rename from free_typedef_hash.
10331 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10332 (do_free_global_table): Remove.
10333 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10334 from copy_type_recursive.
10335 (create_global_typedef_table): Remove.
10336 (typedef_hash_table::find_global_typedef): Now a member of
10337 typedef_hash_table.
10338 (typedef_hash_table::find_typedef): Rename from
10339 find_typedef_in_hash; now a member.
10340 (whatis_exp): Update.
10341 * extension.h (struct ext_lang_type_printers): Add constructor and
10342 destructor.
10343 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10344 declare.
10345 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10346 Now a constructor; rename from start_ext_lang_type_printers.
10347 (ext_lang_type_printers): Now a destructor; rename from
10348 free_ext_lang_type_printers.
10349 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10350 Update.
10351 (c_type_print_base_struct_union): Update. Remove cleanups.
10352
608219fb
TT
103532018-03-27 Tom Tromey <tom@tromey.com>
10354
10355 * dwarf-index-write.c: Include <cmath>.
10356
3fcded8f
JB
103572018-03-27 Joel Brobecker <brobecker@adacore.com>
10358
10359 * NEWS: Add entry describing new "set|show varsize-limit" command.
10360 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10361 command.
10362 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10363 "set variable".
10364
cd4fb1b2
SM
103652018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10366
10367 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10368 dwarf-index-write.c
10369 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10370 * dwarf-index-common.c: New file.
10371 * dwarf-index-common.h: New file.
10372 * dwarf-index-write.c: New file.
10373 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10374 (struct dwarf2_section_info): Move from here.
10375 (dwarf2_section_info_def): Likewise.
10376 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10377 (offset_type): Likewise.
10378 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10379 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10380 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10381 (byte_swap): Likewise.
10382 (MAYBE_SWAP): Likewise.
10383 (dwarf2_per_cu_ptr): Likewise.
10384 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10385 (struct tu_stats): Likewise.
10386 (struct dwarf2_per_objfile): Likewise.
10387 (struct dwarf2_per_cu_data): Likewise.
10388 (struct signatured_type): Likewise.
10389 (sig_type_ptr): Likewise.
10390 (DEF_VEC_P (sig_type_ptr)): Likewise.
10391 (INDEX4_SUFFIX): Likewise.
10392 (INDEX5_SUFFIX): Likewise.
10393 (DEBUG_STR_SUFFIX): Likewise.
10394 (dwarf2_read_section): Make non-static.
10395 (mapped_index_string_hash): Move from here.
10396 (dwarf5_djb_hash): Likewise.
10397 (file_write): Likewise.
10398 (class data_buf): Likewise.
10399 (struct symtab_index_entry): Likewise.
10400 (struct mapped_symtab): Likewise.
10401 (find_slot): Likewise.
10402 (hash_expand): Likewise.
10403 (add_index_entry): Likewise.
10404 (uniquify_cu_indices): Likewise.
10405 (class c_str_view): Likewise.
10406 (class c_str_view_hasher): Likewise.
10407 (class vector_hasher): Likewise.
10408 (write_hash_table): Likewise.
10409 (psym_index_map): Likewise.
10410 (struct addrmap_index_data): Likewise.
10411 (add_address_entry): Likewise.
10412 (add_address_entry_worker): Likewise.
10413 (write_address_map): Likewise.
10414 (symbol_kind): Likewise.
10415 (write_psymbols): Likewise.
10416 (struct signatured_type_index_data): Likewise.
10417 (write_one_signatured_type): Likewise.
10418 (recursively_count_psymbols): Likewise.
10419 (recursively_write_psymbols): Likewise.
10420 (class debug_names): Likewise.
10421 (check_dwarf64_offsets): Likewise.
10422 (psyms_seen_size): Likewise.
10423 (write_gdbindex): Likewise.
10424 (write_debug_names): Likewise.
10425 (assert_file_size): Likewise.
10426 (write_psymtabs_to_index): Likewise.
10427 (save_gdb_index_command): Likewise.
10428 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10429 command.
10430 * dwarf2read.h: New file.
10431
59cc4834
JB
104322018-03-27 Joel Brobecker <brobecker@adacore.com>
10433
10434 PR gdb/22670
10435 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10436 symbol name if the CU's language stores symbol names in linkage
10437 format.
10438 * language.h (struct language_defn)
10439 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10440 all instances of this struct.
10441
67501539
TT
104422018-03-26 Tom Tromey <tom@tromey.com>
10443
10444 * stack.c (backtrace_command_1): Remove verbose code.
10445
76c939ac
TT
104462018-03-26 Tom Tromey <tom@tromey.com>
10447
10448 * python/py-framefilter.c (py_print_type): Don't catch
10449 exceptions. Return void.
10450 (py_print_value): Likewise.
10451 (py_print_single_arg): Likewise.
10452 (enumerate_args): Don't catch exceptions.
10453 (py_print_args): Likewise.
10454 (py_print_frame): Likewise.
10455 (gdbpy_apply_frame_filter): Catch exceptions here.
10456
9507b29c
TT
104572018-03-26 Tom Tromey <tom@tromey.com>
10458
10459 * stack.c (_initialize_stack): Remove trailing newlines from help
10460 text. Add "Usage" line to "backtrace" help.
10461
eb68e487
TT
104622018-03-26 Tom Tromey <tom@tromey.com>
10463
10464 PR python/16486:
10465 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10466
1f111921
TT
104672018-03-26 Tom Tromey <tom@tromey.com>
10468
10469 * python/py-framefilter.c (py_print_single_arg): Return
10470 EXT_LANG_BT_ERROR from catch.
10471
fb7eb8b5
TT
104722018-03-26 Tom Tromey <tom@tromey.com>
10473
10474 PR backtrace/15584:
10475 * stack.c (backtrace_command_1): Move some code into no-filters
10476 "if".
10477
4ca59a9f
TT
104782018-03-26 Tom Tromey <tom@tromey.com>
10479
10480 * python/py-framefilter.c (throw_quit_or_print_exception): New
10481 function.
10482 (gdbpy_apply_frame_filter): Use it.
10483
92256134
TT
104842018-03-26 Tom Tromey <tom@tromey.com>
10485
10486 PR cli/17716:
10487 * python/py-framefilter.c (py_print_type, py_print_value)
10488 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10489 RETURN_MASK_ERROR.
10490
7a630bc2
TT
104912018-03-26 Tom Tromey <tom@tromey.com>
10492
10493 * python/py-framefilter.c (enumerate_args): Use
10494 gdb::unique_xmalloc_ptr.
10495
63283d4a
TT
104962018-03-26 Tom Tromey <tom@tromey.com>
10497
10498 * python/py-framefilter.c (py_print_frame): Return
10499 EXT_LANG_BT_OK.
10500 (gdbpy_apply_frame_filter): Update comment.
10501 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10502 Remove.
10503 <EXT_LANG_BT_NO_FILTERS>: Change value.
10504
978d6c75
TT
105052018-03-26 Tom Tromey <tom@tromey.com>
10506
10507 PR backtrace/15582:
10508 * stack.c (backtrace_command): Parse "hide" argument.
10509 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10510 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10511 constant.
10512
1cf7e640
TT
105132018-03-26 Tom Tromey <tom@tromey.com>
10514
10515 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10516 add "flags".
10517 (backtrace_command): Remove "fulltrace", add "flags".
10518
ea3b0687
TT
105192018-03-26 Tom Tromey <tom@tromey.com>
10520
10521 * stack.c (backtrace_command): Rewrite command line parsing.
10522
9f034d75
SM
105232018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10524
10525 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10526
ce1459e5
SM
105272018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10528
10529 * filename-seen-cache.h: Add include guard.
10530
4f7ae6f5
KS
105312018-03-26 Keith Seitz <keiths@redhat.com>
10532
10533 * symfile.c (place_section): Remove "struct" from section_addr_info
10534 in comment.
10535 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10536 "struct" keyword from section_addr_info.
10537
5cd3e386
AH
105382018-03-26 Alan Hayward <alan.hayward@arm.com>
10539
10540 * regformats/regdef.h (reg): Add constructors.
10541
3e5ef9a4
PA
105422018-03-25 Pedro Alves <palves@redhat.com>
10543
10544 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10545 if then/else bodies in var_func_name extraction.
10546
c88d2fcc 105472018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
10548
10549 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10550 lookup_minimal_symbol() to find symbol entry.
10551 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10552
b7fee5a3
KS
105532018-03-23 Keith Seitz <keiths@redhat.com>
10554
10555 PR c++/22968
10556 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10557 nested type definitions for C++, too.
10558
2cc9b304
TT
105592018-03-23 Tom Tromey <tom@tromey.com>
10560
10561 * machoread.c (struct oso_el): Add a constructor. Don't define as
10562 a typedef.
10563 (macho_register_oso): Remove.
10564 (macho_symtab_read): Take a std::vector.
10565 (oso_el_compare_name): Now a std::sort comparator.
10566 (macho_symfile_read_all_oso): Take a std::vector.
10567 (macho_symfile_read): Use std::vector. Remove cleanups.
10568
a2b2bc12
TT
105692018-03-22 Tom Tromey <tom@tromey.com>
10570
10571 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10572 (record_full_goto_bookmark): Use std::string.
10573
7a8f494c
PFC
105742018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10575
10576 PR tdep/18295
10577 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10578 a single mask.
10579
dd6d677f
PFC
105802018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10581
10582 * rs6000-tdep.c (store_insn_p): New function.
10583 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10584 and cr_reg to their unshifted values. Use store_insn_p to
10585 match LR saves using either R1 or fdata->alloca_reg. Use
10586 store_insn_p to match CR saves. Set alloca_reg_offset
10587 when alloca_reg and framep are set. Remove lr_reg shift
10588 when assigning to fdata->lr_register.
10589
26d6cec4
AA
105902018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10591
10592 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10593 command line args instead of emitting a warning.
10594
5d9310c4
SM
105952018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10596
10597 * tracepoint.h (struct static_tracepoint_marker): Initialize
10598 fields, define default constructor, move constructor and move
10599 assignment, disable the rest.
10600 <str_id, extra>: Make std::string.
10601 (release_static_tracepoint_marker): Remove.
10602 (free_current_marker): Remove.
10603 * tracepoint.c (free_current_marker): Remove.
10604 (parse_static_tracepoint_marker_definition): Adjust to
10605 std::string, use new hex2str overload.
10606 (release_static_tracepoint_marker): Remove.
10607 (print_one_static_tracepoint_marker): Get marker by reference
10608 and adjust to std::string.
10609 (info_static_tracepoint_markers_command): Adjust to std::vector
10610 changes
10611 * target.h (static_tracepoint_marker_p): Remove typedef.
10612 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10613 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10614 bool.
10615 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10616 * target-debug.h
10617 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10618 (target_debug_print_std_vector_static_tracepoint_marker): New.
10619 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10620 to...
10621 (target_debug_print_static_tracepoint_marker_p): ... this.
10622 * target-delegates.c: Re-generate.
10623 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10624 Make std::string.
10625 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10626 (decode_static_tracepoint_spec): Adjust to std::vector.
10627 (tracepoint_print_one_detail): Adjust to std::string.
10628 (strace_marker_decode_location): Adjust to std::string.
10629 (update_static_tracepoint): Adjust to std::string, remove call
10630 to release_static_tracepoint_marker.
10631 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10632 Adjust to std::vector.
10633 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10634 (remote_static_tracepoint_markers_by_strid): Adjust to
10635 std::vector.
10636 * common/rsp-low.h (hex2str): New overload with explicit count
10637 of bytes.
10638 * common/rsp-low.c (hex2str): New overload with explicit count
10639 of bytes.
10640 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10641 (_initialize_rsp_low_selftests): Add test_hex2str test.
10642 * unittests/tracepoint-selftests.c
10643 (test_parse_static_tracepoint_marker_definition): Adjust to
10644 std::string.
10645
62c222b6
SM
106462018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10647
10648 * tracepoint.c (parse_static_tracepoint_marker_definition):
10649 Consider case where the definition is followed by more
10650 definitions.
10651 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10652 tracepoint-selftests.c.
10653 * unittests/tracepoint-selftests.c: New.
10654
7eb2418f
PFC
106552018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10656
10657 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10658 Carvalho.
10659
7cbe16e9
SR
106602018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10661
3d6b3b82 10662 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 10663
4ee89e90
SR
106642018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10665
3d6b3b82 10666 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 10667
92630041
TT
106682018-03-19 Tom Tromey <tom@tromey.com>
10669
10670 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10671 "IDENT" production.
10672
76727919
TT
106732018-03-19 Pedro Alves <palves@redhat.com>
10674 Tom Tromey <tom@tromey.com>
10675
10676 * unittests/observable-selftests.c: New file.
10677 * common/observable.h: New file.
10678 * observable.h: New file.
10679 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10680 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10681 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10682 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10683 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10684 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10685 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10686 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10687 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10688 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10689 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10690 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10691 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10692 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10693 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10694 tui/tui-interp.c, valops.c: Update all users.
10695 * tui/tui-hooks.c (tui_bp_created_observer)
10696 (tui_bp_deleted_observer, tui_bp_modified_observer)
10697 (tui_inferior_exit_observer, tui_before_prompt_observer)
10698 (tui_normal_stop_observer, tui_register_changed_observer):
10699 Remove.
10700 (tui_observers_token): New global.
10701 (attach_or_detach, tui_attach_detach_observers): New functions.
10702 (tui_install_hooks, tui_remove_hooks): Use
10703 tui_attach_detach_observers.
10704 * record-btrace.c (record_btrace_thread_observer): Remove.
10705 (record_btrace_thread_observer_token): New global.
10706 * observer.sh: Remove.
10707 * observer.c: Rename to observable.c.
10708 * observable.c (namespace gdb_observers): Define new objects.
10709 (observer_debug): Move into gdb_observers namespace.
10710 (struct observer, struct observer_list, xalloc_observer_list_node)
10711 (xfree_observer_list_node, generic_observer_attach)
10712 (generic_observer_detach, generic_observer_notify): Remove.
10713 (_initialize_observer): Update.
10714 Don't include observer.inc.
10715 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10716 (clean mostlyclean): Likewise.
10717 (observer.h, observer.inc): Remove targets.
10718 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10719 (COMMON_SFILES): Use observable.c, not observer.c.
10720 * .gitignore: Remove observer.h.
10721
1cb1f3da
TT
107222018-03-18 Tom Tromey <tom@tromey.com>
10723
10724 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10725 gdb::def_vector.
10726 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10727
a06ab151
TT
107282018-03-17 Tom Tromey <tom@tromey.com>
10729
10730 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10731
770623f7
TT
107322018-03-17 Tom Tromey <tom@tromey.com>
10733
10734 * target.c (class scoped_target_fd): New.
10735 (target_fileio_close_cleanup): Remove.
10736 (target_fileio_read_alloc_1): Use scoped_target_fd.
10737
39be3c7e
SM
107382018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10739
10740 * silent-rules.mk: New.
10741 * Makefile.in: Include silent-rules.mk
10742 (srcdir, VPATH, top_srcdir): Move up.
10743 (COMPILE): Add ECHO_CXX.
10744 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10745 (init.c): Add ECHO_INIT_C.
10746 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10747 (version.c): Add ECHO_GEN.
10748 (printcmd.o): Add ECHO_CXX.
10749 (target-float.o): Add ECHO_CXX.
10750 (ada-exp.o): Add ECHO_CXX.
10751 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10752 (insight$(EXEEXT)): Add ECHO_CXXLD.
10753 * gnulib/configure.ac: Add AM_SILENT_RULES.
10754 * gnulib/aclocal.m4: Re-generate.
10755 * gnulib/configure: Re-generate.
10756 * gnulib/import/Makefile.in: Re-generate.
10757
37e136b1
TT
107582018-03-16 Tom Tromey <tom@tromey.com>
10759
10760 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10761 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10762 * utils.c (do_free_section_addr_info)
10763 (make_cleanup_free_section_addr_info): Remove.
10764 * symfile.h (struct other_sections): Add constructor.
10765 (struct section_addr_info): Remove.
10766 (section_addr_info): New typedef.
10767 (struct sym_fns) <sym_offsets>: Change type of parameter.
10768 (build_section_addr_info_from_objfile)
10769 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10770 (default_symfile_offsets, symbol_file_add)
10771 (symbol_file_add_from_bfd)
10772 (build_section_addr_info_from_section_table): Update.
10773 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10774 * symfile.c (alloc_section_addr_info): Remove.
10775 (build_section_addr_info_from_section_table): Change return type.
10776 Update.
10777 (build_section_addr_info_from_bfd)
10778 (build_section_addr_info_from_objfile): Likewise.
10779 (free_section_addr_info): Remove.
10780 (relative_addr_info_to_section_offsets): Change type of "addrs".
10781 (addrs_section_compar): Now a std::sort comparator.
10782 (addrs_section_sort): Change return type.
10783 (addr_info_make_relative): Change type of "addrs". Update.
10784 (default_symfile_offsets, syms_from_objfile_1)
10785 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10786 (symbol_file_add_separate): Update.
10787 (symbol_file_add): Change type of "addrs". Update.
10788 (add_symbol_file_command): Update. Remove cleanups.
10789 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10790 cleanups.
10791 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10792 * solib.c (solib_read_symbols): Update.
10793 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10794 * machoread.c (macho_symfile_offsets): Update.
10795 * jit.c (jit_bfd_try_read_symtab): Update.
10796
03afa6ef
SM
107972018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10798
10799 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10800 unittests/utils-selftests.c.
10801 * unittests/utils-selftests.c: New file.
10802
3ae9ce5d
TT
108032018-03-14 Tom Tromey <tom@tromey.com>
10804
10805 PR cli/14977:
10806 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10807 for NULL.
10808
b8c2339b
TT
108092018-03-14 Tom Tromey <tom@tromey.com>
10810
10811 PR cli/19918:
10812 * printcmd.c (printf_pointer): Allow "-" in format.
10813
80ae639d
TT
108142018-03-14 Tom Tromey <tom@tromey.com>
10815
10816 * printcmd.c (_initialize_printcmd): Add usage to printf.
10817
0d671d99
YQ
108182018-03-14 Yao Qi <qiyao@sourceware.org>
10819
10820 * MAINTAINERS: Update my email address.
10821
b577b6af
TT
108222018-03-13 Tom Tromey <tom@tromey.com>
10823
10824 * machoread.c (macho_check_dsym): Change filenamep to a
10825 std::string*.
10826 (macho_symfile_read): Update.
10827 * symfile.c (load_command): Use std::string.
10828
89a3b63e
AB
108292018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
10830
10831 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
10832 to error message string.
10833 (riscv_register_name): Use xsnprintf instead of sprintf.
10834 (riscv_insn::fetch_instruction): Use gdb_assert instead of
10835 internal_error.
10836 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
10837 error.
10838 (riscv_push_dummy_call): Likewise.
10839
984c7238
TT
108402018-03-12 Tom Tromey <tom@tromey.com>
10841
10842 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
10843 Use gdb::byte_vector.
10844 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
10845
933522d1
YQ
108462018-03-12 Yao Qi <yao.qi@linaro.org>
10847
10848 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
10849 parameter type to readable_regcache.
10850 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
10851 the declaration.
10852
be2daae6
TT
108532018-03-11 Tom Tromey <tom@tromey.com>
10854
10855 * dwarf2read.c (struct nextfield): Add initializers.
10856 (struct nextfnfield): Remove.
10857 (struct fnfieldlist): Add initializers. Remove "length" and
10858 "head", use std::vector.
10859 (struct decl_field_list): Remove.
10860 (struct field_info): Add initializers.
10861 <fields, baseclasses>: Now std::vector.
10862 <nbaseclasses, nfnfields, typedef_field_list_count,
10863 nested_types_list_count>: Remove.
10864 (dwarf2_add_field, dwarf2_add_type_defn)
10865 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
10866 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
10867 (process_structure_scope): Update.
10868
484cf504
TT
108692018-03-11 Tom Tromey <tom@tromey.com>
10870
10871 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
10872 for use by std::sort.
10873 (build_type_psymtabs_1): Use std::vector.
10874
9bd8e0b0
EZ
108752018-03-09 Eli Zaretskii <eliz@gnu.org>
10876
10877 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
10878 and LIBMPFR in the printed configuration.
10879
5dc1a704
TT
108802018-03-08 Tom Tromey <tom@tromey.com>
10881
10882 * source.c (get_filename_and_charpos): Use scoped_fd.
10883 * nto-procfs.c (procfs_open_1): Use scoped_fd.
10884 (procfs_pidlist): Likewise.
10885 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
10886 (iterate_over_mappings): Likewise.
10887
fdf07f3a
TT
108882018-03-08 Tom Tromey <tom@tromey.com>
10889
10890 * infcall.c (struct call_return_meta_info)
10891 <stack_temporaries_enabled>: Remove.
10892 (get_call_return_value, call_function_by_hand_dummy): Update.
10893 * thread.c (disable_thread_stack_temporaries): Remove.
10894 (enable_thread_stack_temporaries): Remove.
10895 (thread_stack_temporaries_enabled_p): Return bool.
10896 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
10897 (get_last_thread_stack_temporary): Update.
10898 * eval.c (evaluate_subexp): Update.
10899 * gdbthread.h (class enable_thread_stack_temporaries): Now a
10900 class, not a function.
10901 (value_ptr, value_vec): Remove typedefs.
10902 (class thread_info) <stack_temporaries_enabled>: Now bool.
10903 <stack_temporaries>: Now a std::vector.
10904 (thread_stack_temporaries_enabled_p)
10905 (value_in_thread_stack_temporaries): Return bool.
10906
567a3e54
SM
109072018-03-08 Simon Marchi <simon.marchi@ericsson.com>
10908
10909 * remote.c (putpkt_binary): Fix omitted bytes reporting.
10910 (getpkt_or_notif_sane_1): Likewise.
10911
00b40057
SM
109122018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10913
10914 * build-id.c (build_id_to_debug_bfd): Use std::string.
10915
a8dbfd58
SM
109162018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10917
10918 * build-id.c (find_separate_debug_file_by_buildid): Return
10919 std::string.
10920 * build-id.h (find_separate_debug_file_by_buildid): Return
10921 std::string.
10922 * coffread.c (coff_symfile_read): Adjust to std::string.
10923 * elfread.c (elf_symfile_read): Adjust to std::string.
10924 * symfile.c (separate_debug_file_exists): Change parameter to
10925 std::string.
10926 (find_separate_debug_file): Return std::string.
10927 (find_separate_debug_file_by_debuglink): Return std::string.
10928 * symfile.h (find_separate_debug_file_by_debuglink): Return
10929 std::string.
10930
e6a58aa8
SM
109312018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10932
10933 * common/xml-utils.c (xml_escape_text): Move code to...
10934 (xml_escape_text_append): ... this new function.
10935 * common/xml-utils.h (xml_escape_text_append): New declaration.
10936 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
10937 New function.
10938 (_initialize_xml_utils): register test_xml_escape_text_append as
10939 a selftest.
10940
4ef0bef6
AH
109412018-03-07 Alan Hayward <alan.hayward@arm.com>
10942
10943 * defs.h: Remove MAX_REGISTER_SIZE.
10944 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
10945 asserts.
10946 * python/py-unwind.c (pyuw_sniffer): Likewise.
10947
e0d3522b
TT
109482018-03-07 Tom Tromey <tom@tromey.com>
10949
10950 * linux-tdep.c (linux_info_proc): Update.
10951 * target.h (struct target_ops) <to_fileio_readlink>: Return
10952 optional<string>.
10953 (target_fileio_readlink): Return optional<string>.
10954 * remote.c (remote_hostio_readlink): Return optional<string>.
10955 * inf-child.c (inf_child_fileio_readlink): Return
10956 optional<string>.
10957 * target.c (target_fileio_readlink): Return optional<string>.
10958
ea005f31
AB
109592018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10960
10961 * regcache.c (cooked_read_test): Add riscv to the list of
10962 architectures that have a save_reggroup.
10963
e95a97d4
AA
109642018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
10965
10966 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
10967 value is not a dynamic class object.
10968
d8344f3d
TT
109692018-03-06 Tom Tromey <tom@tromey.com>
10970
10971 * rust-exp.y: Formatting fixes.
10972
9add17f2
AB
109732018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10974
10975 * riscv-tdep.c (riscv_register_name): Remove target description
10976 support.
10977 (riscv_gdbarch_init): Remove target description check.
10978
c9486dfe
AB
109792018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10980
10981 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
10982 comment.
10983 * riscv-tdep.h: Likewise.
10984
d74aff3d
AB
109852018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10986
10987 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
10988 (riscv_pseudo_register_write): Delete.
10989 (riscv_gdbarch_init): Remove all use of pseudo registers.
10990
7ea78b59
SM
109912018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10992
10993 * record-btrace.c (btrace_print_lines): Replace cleanup
10994 parameter with RAII equivalents.
10995 (btrace_insn_history): Replace cleanup with RAII equivalents.
10996 * ui-out.h (make_cleanup_ui_out_list_begin_end,
10997 make_cleanup_ui_out_tuple_begin_end): Remove.
10998 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
10999 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11000 make_cleanup_ui_out_list_begin_end): Remove.
11001
53127008
SM
110022018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11003
11004 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11005 parameter types to std::vector. Use bool.
11006 (record_btrace_wait): Replace VEC(tp_t) with
11007 std::vector<thread_info *>.
11008 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11009
228f1508
SM
110102018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11011
11012 * record-btrace.c (record_btrace_disable_callback): Remove.
11013 (struct scoped_btrace_disable): New.
11014 (record_btrace_open): Use scoped_btrace_disable.
11015
b2970c23
AB
110162018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11017
11018 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11019 reading values from registers.
11020
fb294655
AB
110212018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11022
11023 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11024 where appropriate.
11025
cab5bb9d
AB
110262018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11027
11028 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11029 change parameter type. Use GDB's print functions, and use
11030 core_addr_to_string where appropriate.
11031 (riscv_push_dummy_call): Use core_addr_to_string where
11032 appropriate, update call to riscv_print_arg_location, and reindent
11033 a few lines.
11034 (riscv_return_value): Update call to riscv_print_arg_location.
11035
dbbb1059
AB
110362018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11037 Tim Newsome <tim@sifive.com>
11038 Albert Ou <a0u@eecs.berkeley.edu>
11039 Darius Rad <darius@bluespec.com>
11040
11041 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11042 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11043 (ALLDEPFILES): Add riscv-tdep.c
11044 * configure.tgt: Add riscv support.
11045 * riscv-tdep.c: New file.
11046 * riscv-tdep.h: New file.
11047 * NEWS: Mention new target.
11048 * MAINTAINERS: Add entry for riscv.
11049
5dc43913
AB
110502018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11051
11052 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11053 fields within aggregates.
11054
3dea1ef7
SM
110552018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11056
11057 * record-btrace.c (btrace_print_lines): Change type of flags to
11058 gdb_disassembly_flags.
11059
7efba073
JB
110602018-03-04 John Baldwin <jhb@FreeBSD.org>
11061
11062 * fbsd-nat.c: Include "inf-ptrace.h".
11063 (USE_SIGTRAP_SIGINFO): Conditionally define.
11064 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11065 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11066 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11067 function.
11068 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11069 Likewise.
11070 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11071 Likewise.
11072 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11073 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11074 "supports_stopped_by_hw_breakpoint" target methods.
11075
386a8676
JB
110762018-03-04 John Baldwin <jhb@FreeBSD.org>
11077
11078 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11079 * fbsd-nat.c (debug_fbsd_nat): New variable.
11080 (show_fbsd_nat_debug): New function.
11081 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11082 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11083
12279366
JB
110842018-03-04 John Baldwin <jhb@FreeBSD.org>
11085
11086 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11087 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11088 prototype.
11089 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11090 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11091 method.
11092
54693cf5
SM
110932018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11094
11095 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11096 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11097
ccb2231c
SM
110982018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11099
11100 * charset.c (struct charset_vector): New.
11101 (charsets): Change type to charset_vector.
11102 (find_charset_names): Adjust.
11103 (add_one): Adjust.
11104 (_initialize_charset): Adjust.
11105
6fb16ce6
SM
111062018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11107
11108 * progspace.h (struct program_space) <deleted_solibs>: Change
11109 type to std::vector<std::string>.
11110 * progspace.c (clear_program_space_solib_cache): Adjust.
11111 * breakpoint.c (print_solib_event): Adjust.
11112 (check_status_catch_solib): Adjust.
11113 * solib.c (update_solib_list): Adjust.
11114 * ui-out.h (class ui_out) <field_string>: New overload.
11115 * ui-out.c (ui_out::field_string): New overload.
11116
564b1e3f
SM
111172018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11118
11119 * progspace.h (struct program_space): Add constructor and
11120 destructor, initialize fields.
11121 (add_program_space): Remove.
11122 * progspace.c (add_program_space): Rename to...
11123 (program_space::program_space): ... this.
11124 (release_program_space): Rename to...
11125 (program_space::~program_space): ... this.
11126 (delete_program_space): Use delete to delete program_space.
11127 (initialize_progspace): Use new to allocate program_space.
11128 * inferior.c (add_inferior_with_spaces): Likewise.
11129 (clone_inferior_command): Likewise.
11130 * infrun.c (follow_fork_inferior): Likewise.
11131 (handle_vfork_child_exec_or_exit): Likewise.
11132
e80aaf61
SM
111332018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11134
11135 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11136 (delim_string_to_char_ptr_vec): Return std::vector of
11137 gdb::unique_xmalloc_ptr.
11138 (dirnames_to_char_ptr_vec_append): Take std::vector of
11139 gdb::unique_xmalloc_ptr.
11140 (dirnames_to_char_ptr_vec): Return std::vector of
11141 gdb::unique_xmalloc_ptr.
11142 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11143 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11144 (delim_string_to_char_ptr_vec): Return an std::vector of
11145 gdb::unique_xmalloc_ptr, adjust the code.
11146 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11147 gdb::unique_xmalloc_ptr, adjust the code.
11148 (dirnames_to_char_ptr_vec): Return an std::vector of
11149 gdb::unique_xmalloc_ptr, adjust the code.
11150 * auto-load.c (auto_load_safe_path_vec): Change type to
11151 std::vector of gdb::unique_xmalloc_ptr.
11152 (auto_load_expand_dir_vars): Return an std::vector of
11153 gdb::unique_xmalloc_ptr, adjust the code.
11154 (auto_load_safe_path_vec_update): Adjust.
11155 (filename_is_in_auto_load_safe_path_vec): Adjust.
11156 (auto_load_objfile_script_1): Adjust.
11157 * build-id.c (build_id_to_debug_bfd): Adjust.
11158 * linux-thread-db.c (thread_db_load_search): Adjust.
11159 * source.c (add_path): Adjust.
11160 (openp): Adjust.
11161 * symfile.c (find_separate_debug_file): Adjust.
11162 * utils.c (do_free_char_ptr_vec): Remove.
11163 (make_cleanup_free_char_ptr_vec): Remove.
11164
ab818ade
SDJ
111652018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11166
11167 PR gdb/22907
11168 * common/pathstuff.c: Conditionally include "<windows.h>".
11169
e1e6f073
GS
111702018-03-01 Georg Sauthoff <mail@georg.so>
11171
11172 PR gdb/22888
11173 * gcore.in: Quote variables and switch interpreter to bash.
11174
c7b15a66
TT
111752018-03-01 Tom Tromey <tom@tromey.com>
11176
11177 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11178 assertion. Add assertion for discriminant_index.
11179 (quirk_rust_enum): Use correct base type name in univariant case.
11180
0cb7c7b0
SM
111812018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11182
11183 * record.c (get_call_history_modifiers): Return a
11184 record_print_flags.
11185 (cmd_record_call_history): Adjust.
11186 * record-btrace.c (record_btrace_call_history): Adjust.
11187 (record_btrace_call_history_range): Adjust.
11188 (record_btrace_call_history_from): Adjust.
11189 * target-debug.h (target_debug_print_record_print_flags): New.
11190 * target-delegates.c: Re-generate.
11191 * target.c (target_call_history): Change flags type.
11192 (target_call_history_from): Likewise.
11193 (target_call_history_range): Likewise.
11194 * target.h (struct target_ops) <target_call_history>: Likewise.
11195 (target_call_history_from): Likewise.
11196 (target_call_history_range): Likewise.
11197
25e3c82c
SDJ
111982018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11199 Simon Marchi <simon.marchi@polymtl.ca>
11200
11201 * common/common-utils.c: Include "sys/stat.h".
11202 (is_regular_file): Move here from "source.c"; change return
11203 type to "bool".
11204 * common/common-utils.h (is_regular_file): New prototype.
11205 * common/pathstuff.c (contains_dir_separator): New function.
11206 * common/pathstuff.h (contains_dir_separator): New prototype.
11207 * source.c: Don't include "sys/stat.h".
11208 (is_regular_file): Move to "common/common-utils.c".
11209
b4987c95
SDJ
112102018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11211
11212 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11213 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11214 * auto-load.c: Include "common/pathstuff.h".
11215 * common/common-def.h (current_directory): Move here.
11216 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11217 function.
11218 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11219 prototype.
11220 * common/pathstuff.c: New file.
11221 * common/pathstuff.h: New file.
11222 * compile/compile.c: Include "common/pathstuff.h".
11223 * defs.h (current_directory): Move to "common/common-defs.h".
11224 * dwarf2read.c: Include "common/pathstuff.h".
11225 * exec.c: Likewise.
11226 * guile/scm-safe-call.c: Likewise.
11227 * linux-thread-db.c: Likewise.
11228 * main.c: Likewise.
11229 * nto-tdep.c: Likewise.
11230 * objfiles.c: Likewise.
11231 * source.c: Likewise.
11232 * symtab.c: Likewise.
11233 * utils.c: Include "common/pathstuff.h".
11234 (gdb_realpath): Move to "common/pathstuff.c".
11235 (gdb_realpath_keepfile): Likewise.
11236 (gdb_abspath): Likewise.
11237 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11238 (gdb_realpath_keepfile): Likewise.
11239 (gdb_abspath): Likewise.
11240
f169cfdc
JB
112412018-02-28 John Baldwin <jhb@FreeBSD.org>
11242
11243 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11244 wildcard process pid for super_resume for kernels with a
11245 specific bug.
11246
e05cac70
PM
112472018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11248
11249 * compile/compile.c (get_args): Add additional comments
11250 explaining function.
11251
55089490
TT
112522018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11253 Tom Tromey <tom@tromey.com>
11254
11255 * target.h (memory_write_request_s): Remove typedef. Don't define
11256 VEC.
11257 (target_write_memory_blocks): Change argument to std::vector.
11258 (struct memory_write_request): Add constructor.
11259 * target-memory.c (compare_block_starting_address): Return bool.
11260 Change argument types.
11261 (claim_memory): Change arguments to use std::vector.
11262 (split_regular_and_flash_blocks, blocks_to_erase)
11263 (compute_garbled_blocks): Likewise.
11264 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11265 (target_write_memory_blocks): Change argument to std::vector.
11266 * symfile.c (struct load_section_data): Add constructor and
11267 destructor. Use std::vector for "requests".
11268 (struct load_progress_data): Add initializers.
11269 (load_section_callback): Update. Use "new".
11270 (clear_memory_write_data): Remove.
11271 (generic_load): Update.
11272
0c305b61
AH
112732018-02-27 Alan Hayward <alan.hayward@arm.com>
11274
11275 * arch/aarch64.h: Use common/tdesc.h.
11276
c5196c92
MR
112772018-02-26 Maciej W. Rozycki <macro@mips.com>
11278
11279 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11280 architecture with a 64-bit ABI.
11281
37c33887
MR
112822018-02-26 Maciej W. Rozycki <macro@mips.com>
11283
11284 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11285 ahead of target description loading.
11286
d4dd3282
TT
112872018-02-26 Tom Tromey <tom@tromey.com>
11288
11289 * stack.c (backtrace_command_1): Update.
11290 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11291 of "flags".
11292 * python/py-framefilter.c (py_print_frame)
11293 (gdbpy_apply_frame_filter): Change type of "flags".
11294 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11295 of "flags".
11296 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11297 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11298 * extension.h (enum frame_filter_flag): Rename from
11299 frame_filter_flags.
11300 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11301 (apply_ext_lang_frame_filter): Change type of "flags".
11302 * extension.c (apply_ext_lang_frame_filter): Change type of
11303 "flags".
11304 * extension-priv.h (struct extension_language_ops)
11305 <apply_frame_filter>: Change type of "flags".
11306
6893c19a
TT
113072018-02-26 Tom Tromey <tom@tromey.com>
11308
11309 PR python/16497:
11310 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11311 off-by-one in py_end computation.
11312 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11313 PRINT_MORE_FRAMES.
11314 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11315 constant.
11316
2ddeaf8a
TT
113172018-02-26 Tom Tromey <tom@tromey.com>
11318
11319 * dwarf2read.c (struct variant_field): New.
11320 (struct nextfield) <variant>: New field.
11321 (dwarf2_add_field): Handle DW_TAG_variant_part.
11322 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11323 discriminated union.
11324 (read_structure_type): Handle DW_TAG_variant_part.
11325 (handle_struct_member_die): New function, extracted from
11326 process_structure_scope. Handle DW_TAG_variant.
11327 (process_structure_scope): Handle discriminated unions. Call
11328 handle_struct_member_die.
11329
c9317f21
TT
113302018-02-26 Tom Tromey <tom@tromey.com>
11331
11332 * rust-lang.h (rust_last_path_segment): Declare.
11333 * rust-lang.c (rust_last_path_segment): Now public. Change
11334 contract.
11335 (struct disr_info): Remove.
11336 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11337 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11338 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11339 (rust_enum_p, rust_enum_variant): New function.
11340 (rust_underscore_fields): Remove "offset" parameter.
11341 (rust_print_enum): New function.
11342 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11343 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11344 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11345 enums.
11346 (rust_internal_print_type): New function, from rust_print_type.
11347 Remove enum code.
11348 (rust_print_type): Call rust_internal_print_type.
11349 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11350 Update enum handling.
11351 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11352 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11353 (rust_union_quirks): New functions.
11354 (process_full_comp_unit, process_full_type_unit): Call
11355 rust_union_quirks.
11356 (process_structure_scope): Update rust_unions if necessary.
11357
7c22600a
TT
113582018-02-26 Tom Tromey <tom@tromey.com>
11359
11360 * value.h (value_union_variant): Declare.
11361 * valops.c (value_union_variant): New function.
11362 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11363 (struct discriminant_info): New.
11364 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11365 enumerator.
11366 (struct main_type) <flag_discriminated_union>: New field.
11367
15ce8941
TT
113682018-02-26 Tom Tromey <tom@tromey.com>
11369
11370 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11371 unittests/unpack-selftests.c.
11372 * unittests/unpack-selftests.c: New file.
11373 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11374
48fbe735
YQ
113752018-02-26 Yao Qi <yao.qi@linaro.org>
11376
11377 * dwarf2read.c (struct partial_die_info) <read>: New method.
11378 (read_partial_die): Remove the declaration.
11379 (load_partial_dies): Update.
11380 (partial_die_info::partial_die_info):
11381 (read_partial_die): Change it to partial_die_info::read.
11382
52356b79
YQ
113832018-02-26 Yao Qi <yao.qi@linaro.org>
11384
11385 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11386 (fixup_partial_die): Remove declaration.
11387 (scan_partial_symbols): Update.
11388 (partial_die_parent_scope): Likewise.
11389 (partial_die_full_name): Likewise.
11390 (fixup_partial_die): Change it to partial_die_info::fixup.
11391
35cc7ed7
YQ
113922018-02-26 Yao Qi <yao.qi@linaro.org>
11393
11394 * dwarf2read.c (read_partial_die): Update the declaration.
11395 (load_partial_dies): Caller update.
11396 (read_partial_die): Remove one argument abbrev_len.
11397
6f06d47b
YQ
113982018-02-26 Yao Qi <yao.qi@linaro.org>
11399
11400 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11401 assignment operator.
11402 (load_partial_dies): Use ctor and copy ctor.
11403 (read_partial_die): Update.
11404 (dwarf2_cu::find_partial_die): Use ctor.
11405
d590ff25
YQ
114062018-02-26 Yao Qi <yao.qi@linaro.org>
11407
11408 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11409 (find_partial_die_in_comp_unit): Change it to
11410 dwarf2_cu::find_partial_die.
11411 (find_partial_die): Update.
11412
fd0a254f
YQ
114132018-02-26 Yao Qi <yao.qi@linaro.org>
11414
11415 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11416 is NULL.
11417
cd9983dd
YQ
114182018-02-26 Yao Qi <yao.qi@linaro.org>
11419
11420 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11421
f46cd62a
AH
114222018-02-26 Alan Hayward <alan.hayward@arm.com>
11423
11424 * arch/amd64.h: Use common/tdesc.h.
11425 * arch/i386.c: Likewise.
11426 * arch/i386.h: Likewise.
11427 * arch/tic6x.c: Likewise.
11428 * arch/tdesc.h: Move file from here...
11429 * common/tdesc.h: ...to here.
11430 * features/aarch64-core.c: Regenerate.
11431 * features/aarch64-fpu.c: Regenerate.
11432 * features/i386/32bit-avx.c: Regenerate.
11433 * features/i386/32bit-avx512.c: Regenerate.
11434 * features/i386/32bit-core.c: Regenerate.
11435 * features/i386/32bit-linux.c: Regenerate.
11436 * features/i386/32bit-mpx.c: Regenerate.
11437 * features/i386/32bit-pkeys.c: Regenerate.
11438 * features/i386/32bit-sse.c: Regenerate.
11439 * features/i386/64bit-avx.c: Regenerate.
11440 * features/i386/64bit-avx512.c: Regenerate.
11441 * features/i386/64bit-core.c: Regenerate.
11442 * features/i386/64bit-linux.c: Regenerate.
11443 * features/i386/64bit-mpx.c: Regenerate.
11444 * features/i386/64bit-pkeys.c: Regenerate.
11445 * features/i386/64bit-segments.c: Regenerate.
11446 * features/i386/64bit-sse.c: Regenerate.
11447 * features/i386/x32-core.c: Regenerate.
11448 * features/tic6x-c6xp.c: Regenerate.
11449 * features/tic6x-core.c: Regenerate.
11450 * features/tic6x-gp.c: Regenerate.
11451 * target-descriptions.c: Use common/tdesc.h.
11452 * target-descriptions.h: Likewise.
11453
9b292f68
TT
114542018-02-24 Tom Tromey <tom@tromey.com>
11455
11456 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11457 (try_thread_db_load_from_dir, thread_db_load_search): Use
11458 std::string.
11459 (info_auto_load_libthread_db_compare): Return bool. Change
11460 argument types.
11461 (info_auto_load_libthread_db): Use std::vector, std::string.
11462 Remove cleanups.
11463
281d762b
TT
114642018-02-24 Tom Tromey <tom@tromey.com>
11465
11466 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11467 std::string.
11468 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11469 std::string*.
11470 * gdbarch.c: Rebuild.
11471 * gdbarch.h: Rebuild.
11472 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11473 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11474 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11475 std::string*.
11476
9d8780f0
SM
114772018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11478
11479 * gdbtypes.h (sect_offset): Change type to uint64_t.
11480 (sect_offset_str): New function.
11481 * dwarf2read.c (create_addrmap_from_aranges): Use
11482 sect_offset_str.
11483 (error_check_comp_unit_head): Likewise.
11484 (create_debug_type_hash_table): Likewise.
11485 (read_cutu_die_from_dwo): Likewise.
11486 (init_cutu_and_read_dies): Likewise.
11487 (init_cutu_and_read_dies_no_follow): Likewise.
11488 (process_psymtab_comp_unit_reader): Likewise.
11489 (partial_die_parent_scope): Likewise.
11490 (peek_die_abbrev): Likewise.
11491 (process_queue): Likewise.
11492 (dwarf2_physname): Likewise.
11493 (read_namespace_alias): Likewise.
11494 (read_import_statement): Likewise.
11495 (create_dwo_cu_reader): Likewise.
11496 (create_cus_hash_table): Likewise.
11497 (lookup_dwo_cutu): Likewise.
11498 (inherit_abstract_dies): Likewise.
11499 (read_func_scope): Likewise.
11500 (read_call_site_scope): Likewise.
11501 (dwarf2_add_member_fn): Likewise.
11502 (read_common_block): Likewise.
11503 (read_module_type): Likewise.
11504 (read_typedef): Likewise.
11505 (read_subrange_type): Likewise.
11506 (load_partial_dies): Likewise.
11507 (read_partial_die): Likewise.
11508 (find_partial_die): Likewise.
11509 (read_str_index): Likewise.
11510 (dwarf2_string_attr): Likewise.
11511 (build_error_marker_type): Likewise.
11512 (lookup_die_type): Likewise.
11513 (dump_die_shallow): Likewise.
11514 (follow_die_ref): Likewise.
11515 (dwarf2_fetch_die_loc_sect_off): Likewise.
11516 (dwarf2_fetch_constant_bytes): Likewise.
11517 (follow_die_sig): Likewise.
11518 (get_signatured_type): Likewise.
11519 (get_DW_AT_signature_type): Likewise.
11520 (dwarf2_find_containing_comp_unit): Likewise.
11521 (set_die_type): Likewise.
11522
8ec57239
JB
115232018-02-21 John Baldwin <jhb@FreeBSD.org>
11524
11525 * arch/aarch64.c: Include "common-defs.h".
11526 * arch/amd64.c: Likewise.
11527 * arch/i386.c: Likewise.
11528
3eac2b65
TT
115292018-02-21 Tom Tromey <tom@tromey.com>
11530
11531 * value.h: (extract_field_op): Update.
11532 * eval.c (extract_field_op): Return a const char *.
11533 * expression.h (parse_expression_for_completion): Update.
11534 * completer.c (complete_expression): Update.
11535 (add_struct_fields): Make fieldname const.
11536 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11537 (mark_completion_tag, parse_exp_in_context_1): Update.
11538 (parse_expression_for_completion): Change "name" to
11539 unique_xmalloc_ptr*.
11540
6ccb583f
TT
115412018-02-21 Tom Tromey <tom@tromey.com>
11542
11543 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11544
c113ed0c
YQ
115452018-02-21 Yao Qi <yao.qi@linaro.org>
11546
11547 * avr-tdep.c (avr_read_pc): Change parameter type to
11548 readable_regcache.
11549 * gdbarch.sh (read_pc): Likewise.
11550 * gdbarch.c: Re-generated.
11551 * gdbarch.h: Re-generated.
11552 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11553 readable_regcache.
11554 * ia64-tdep.c (ia64_read_pc): Likewise.
11555 * mips-tdep.c (mips_read_pc): Likewise.
11556 * spu-tdep.c (spu_read_pc): Likewise.
11557
4c74fe6b
YQ
115582018-02-21 Yao Qi <yao.qi@linaro.org>
11559
11560 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11561 * regcache-dump.c: New file.
11562 * regcache.c: Move register_dump to regcache-dump.c.
11563 (maintenance_print_registers): Likewise.
11564 (maintenance_print_raw_registers): Likewise.
11565 (maintenance_print_cooked_registers): Likewise.
11566 (maintenance_print_register_groups): Likewise.
11567 (maintenance_print_remote_registers): Likewise.
11568 (_initialize_regcache): Likewise.
11569 * regcache.h (register_dump): Moved from regcache.c.
11570
796bb026
YQ
115712018-02-21 Yao Qi <yao.qi@linaro.org>
11572
11573 * regcache.c (regcache::regcache): Update.
11574 (regcache::invalidate): Move it to detached_regcache::invalidate.
11575 (get_thread_arch_aspace_regcache): Update.
11576 (regcache::raw_update): Update.
11577 (regcache::cooked_read): Remove some code.
11578 (regcache::cooked_read_value): Likewise.
11579 (regcache::raw_write): Remove assert on m_readonly_p.
11580 (regcache::raw_supply_integer): Move it to
11581 detached_regcache::raw_supply_integer.
11582 (regcache::raw_supply_zeroed): Likewise.
11583 * regcache.h (detached_regcache) <raw_supply_integer>: New
11584 declaration.
11585 <raw_supply_zeroed, invalidate>: Likewise.
11586 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11587 <invalidate>: Likewise.
11588 <m_readonly_p>: Removed.
11589
215c69dc
YQ
115902018-02-21 Yao Qi <yao.qi@linaro.org>
11591
11592 * infcmd.c (get_return_value): Let stop_regs point to
11593 get_current_regcache.
11594 * regcache.c (regcache::regcache): Remove.
11595 (register_dump_reg_buffer): New class.
11596 (regcache_print): Adjust.
11597 * regcache.h (regcache): Remove constructors.
11598
f3384e66
YQ
115992018-02-21 Yao Qi <yao.qi@linaro.org>
11600
11601 * regcache.c (class register_dump): New class.
11602 (register_dump_regcache, register_dump_none): New class.
11603 (register_dump_remote, register_dump_groups): New class.
11604 (regcache_print): Update.
11605 * regcache.h (regcache_dump_what): Move it to regcache.c.
11606 (regcache) <dump>: Remove.
11607
c8ec2f33
YQ
116082018-02-21 Yao Qi <yao.qi@linaro.org>
11609
11610 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11611 reg_buffer_rw *.
11612 (jit_unwind_reg_set_impl): Call raw_supply.
11613 (jit_frame_sniffer): Use reg_buffer_rw.
11614 * record-full.c (record_full_core_regbuf): Change its type.
11615 (record_full_core_open_1): Use reg_buffer_rw.
11616 (record_full_close): Likewise.
11617 (record_full_core_fetch_registers): Use regcache->raw_supply.
11618 (record_full_core_store_registers): Likewise.
11619 * regcache.c (regcache::get_register_status): Move it to
11620 reg_buffer.
11621 (regcache_raw_set_cached_value): Remove.
11622 (regcache::raw_set_cached_value): Remove.
11623 (regcache::raw_write): Call raw_supply.
11624 (regcache::raw_supply): Move it to reg_buffer_rw.
11625 * regcache.h (regcache_raw_set_cached_value): Remove.
11626 (reg_buffer_rw): New class.
11627
daf6667d
YQ
116282018-02-21 Yao Qi <yao.qi@linaro.org>
11629
11630 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11631 readonly_detached_regcache.
11632 (dummy_frame_prev_register): Use regcache->cooked_read.
11633 * frame.c (frame_save_as_regcache): Change return type.
11634 (frame_pop): Update.
11635 * frame.h (frame_save_as_regcache): Update declaration.
11636 * inferior.h (get_infcall_suspend_state_regcache): Update
11637 declaration.
11638 * infrun.c (infcall_suspend_state) <registers>: use
11639 readonly_detached_regcache.
11640 (save_infcall_suspend_state): Don't use regcache_dup.
11641 (get_infcall_suspend_state_regcache): Change return type.
11642 * linux-fork.c (struct fork_info) <savedregs>: Change to
11643 readonly_detached_regcache.
11644 <pc>: New field.
11645 (fork_save_infrun_state): Don't use regcache_dup.
11646 (info_checkpoints_command): Adjust.
11647 * mi/mi-main.c (register_changed_p): Update declaration.
11648 (mi_cmd_data_list_changed_registers): Use
11649 readonly_detached_regcache.
11650 (register_changed_p): Change parameter type to
11651 readonly_detached_regcache.
11652 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11653 readonly_detached_regcache.
11654 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11655 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11656 New.
11657 (regcache::save): Move it to reg_buffer.
11658 (regcache::restore): Change parameter type.
11659 (regcache_dup): Remove.
11660 * regcache.h (reg_buffer) <save>: New method.
11661 (readonly_detached_regcache): New class.
11662 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11663 readonly_detached_regcache.
11664 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11665
fc5b8736
YQ
116662018-02-21 Yao Qi <yao.qi@linaro.org>
11667
11668 * frame.c (frame_save_as_regcache): Use regcache method save.
11669 (frame_pop): Use regcache method restore.
11670 * infrun.c (restore_infcall_suspend_state): Likewise.
11671 * linux-fork.c (fork_load_infrun_state): Likewise.
11672 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11673 save.
11674 * regcache.c (regcache_save): Remove.
11675 (regcache::restore): More asserts.
11676 (regcache_cpy): Remove.
11677 * regcache.h (regcache_save): Remove the declaration.
11678 (regcache::restore): Move from private to public.
11679 Remove the friend declaration of regcache_cpy.
11680 (regcache_cpy): Remove declaration.
11681
849d0ba8
YQ
116822018-02-21 Yao Qi <yao.qi@linaro.org>
11683
11684 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11685 parameter type to 'readable_regcache *'.
11686 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11687 * arm-tdep.c (arm_neon_quad_read): Likewise.
11688 (arm_pseudo_read): Likewise.
11689 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11690 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11691 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11692 * gdbarch.c: Re-generated.
11693 * gdbarch.h: Re-generated.
11694 * gdbarch.sh (pseudo_register_read): Change parameter type to
11695 'readable_regcache *'.
11696 (pseudo_register_read_value): Likewise.
11697 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11698 (h8300_pseudo_register_read): Likewise.
11699 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11700 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11701 (i386_pseudo_register_read_into_value): Likewise.
11702 (i386_pseudo_register_read_value): Likewise.
11703 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11704 declaration.
11705 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11706 * m32c-tdep.c (m32c_raw_read): Likewise.
11707 (m32c_read_flg): Likewise.
11708 (m32c_banked_register): Likewise.
11709 (m32c_banked_read): Likewise.
11710 (m32c_sb_read): Likewise.
11711 (m32c_part_read): Likewise.
11712 (m32c_cat_read): Likewise.
11713 (m32c_r3r2r1r0_read): Likewise.
11714 (m32c_pseudo_register_read): Likewise.
11715 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11716 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11717 (mep_pseudo_cr64_read): Likewise.
11718 (mep_pseudo_register_read): Likewise.
11719 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11720 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11721 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11722 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11723 (regcache::cooked_read): Likewise.
11724 (regcache::cooked_read_value): Likewise.
11725 (regcache_cooked_read_signed):
11726 (regcache::cooked_read): Likewise.
11727 * regcache.h (readable_regcache): New class.
11728 (regcache): Inherit readable_regcache. Move some methods to
11729 readable_regcache.
11730 * rl78-tdep.c (rl78_pseudo_register_read): Change
11731 parameter type to 'readable_regcache *'.
11732 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11733 (e500_pseudo_register_read): Change parameter type to
11734 'readable_regcache *'.
11735 (dfp_pseudo_register_read): Likewise.
11736 (vsx_pseudo_register_read): Likewise.
11737 (efpr_pseudo_register_read): Likewise.
11738 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11739 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11740 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11741 (sh64_pseudo_register_read): Likewise.
11742 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11743 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11744 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11745 (spu_pseudo_register_read): Likewise.
11746 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11747 (xtensa_pseudo_register_read): Likewise.
11748
31716595
YQ
117492018-02-21 Yao Qi <yao.qi@linaro.org>
11750
11751 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11752 (regcache::arch): Move it to reg_buffer::arch.
11753 (regcache::register_buffer): Likewise.
11754 (regcache::assert_regnum): Likewise.
11755 (regcache::num_raw_registers): Likewise.
11756 * regcache.h (reg_buffer): New class.
11757 (regcache): Inherit reg_buffer.
11758
7104e59b
SM
117592018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11760
11761 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11762 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11763
2d8adcbd
MM
117642018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11765
11766 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11767
b5884fa7
AH
117682018-02-19 Alan Hayward <alan.hayward@arm.com>
11769
11770 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11771 (SFILES): Remove common/*.c files.
11772 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11773 * common/common.host: Add common reference.
11774 * configure.ac: Likewise.
11775 * configure: Regenerate.
11776
fd90ace4
YQ
117772018-02-16 Yao Qi <yao.qi@linaro.org>
11778
11779 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11780 (block_initialize_namespace): Use new.
11781 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11782 (dwarf2_free_objfile): Use delete.
11783 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11784 (copy_type_recursive): Use new.
11785 * gdb_obstack.h (allocate_on_obstack): New.
11786
85046ae2
YQ
117872018-02-15 Yao Qi <yao.qi@linaro.org>
11788
11789 PR gdb/22849
11790 * inferior.c (exit_inferior_1): Reset inf->control.
11791
355c559b
JB
117922018-02-15 Joel Brobecker <brobecker@adacore.com>
11793
11794 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11795 declaration.
11796
980548fd
PA
117972018-02-14 Pedro Alves <palves@redhat.com>
11798
11799 * frame-unwind.c (frame_unwind_try_unwinder): Always call
11800 frame_cleanup_after_sniffer on exception.
11801
692d6f97
TT
118022018-02-14 Tom Tromey <tom@tromey.com>
11803
11804 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11805 const.
11806 (solib_bfd_open): Make pathname const.
11807 * solib.c (solib_bfd_open): Make pathname const.
11808 * solib-spu.c (spu_bfd_fopen): Make name const.
11809 (spu_bfd_open): Make pathname const.
11810 * solib-darwin.c (darwin_bfd_open): Make pathname const.
11811 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11812
e0cc99a6
TT
118132018-02-14 Tom Tromey <tom@tromey.com>
11814
11815 * symfile.c (symfile_bfd_open): Update.
11816 * source.h (openp, source_full_path_of, find_and_open_source):
11817 Change argument type to unique_xmalloc_ptr.
11818 * source.c (openp): Take a unique_xmalloc_ptr.
11819 (source_full_path_of, find_and_open_source): Likewise.
11820 (open_source_file, symtab_to_fullname): Update.
11821 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11822 unique_xmalloc_ptr.
11823 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
11824 (exec_file_find): Update.
11825 * psymtab.c (psymtab_to_fullname): Update.
11826 * nto-tdep.h (nto_find_and_open_solib): Update.
11827 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
11828 unique_xmalloc_ptr.
11829 * exec.c (exec_file_attach): Update.
11830 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
11831 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
11832
b46a8d7c
TT
118332018-02-14 Tom Tromey <tom@tromey.com>
11834
11835 * solib.c: Include source.h.
11836 * nto-tdep.c: Include source.h.
11837 * mi/mi-cmd-env.c: Include source.h.
11838 * infcmd.c: Include source.h.
11839 * exec.c: Include source.h.
11840 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
11841 (add_path, directory_switch, source_path, init_source_path): Move
11842 declarations...
11843 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
11844 (add_path, directory_switch, source_path, init_source_path):
11845 ...here.
11846
797bc1cb
TT
118472018-02-14 Tom Tromey <tom@tromey.com>
11848
11849 * solist.h (exec_file_find, solib_find): Return
11850 unique_xmalloc_ptr.
11851 (solib_bfd_fopen): Take a const char *.
11852 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
11853 (exec_file_find, solib_find): Likewise.
11854 (solib_bfd_fopen): Do not take ownership of "pathname".
11855 (solib_bfd_open): Use unique_xmalloc_ptr.
11856 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
11857 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
11858 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
11859 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
11860
f98b2e33
JB
118612018-02-14 Joel Brobecker <brobecker@adacore.com>
11862
11863 * ada-lang.c (name_match_type_from_name): Remove reference to
11864 ada_name_for_lookup in function's documentation.
11865 * ada-lang.h (ada_name_for_lookup): Delete declaration.
11866
24b9144d
SM
118672018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11868
11869 * defs.h (enum openp_flags): New enum.
11870 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
11871 Move to enum openp_flags.
11872 (openp_flags): New enum flags.
11873 (openp): Change parameter type to openp_flags.
11874 * source.c (openp): Change parameter type to openp_flags.
11875 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
11876 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
11877
387cd15b
SM
118782018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11879
11880 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
11881 per-command.
11882
b303c6f6
AB
118832018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
11884
11885 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
11886 into...
11887 (class dwarf2_queue_guard): ...the destructor of this new class.
11888 (dw2_do_instantiate_symtab): Create instance of the new class
11889 dwarf2_queue_guard, remove cleanup.
11890
9c3630e9
TT
118912018-02-09 Tom Tromey <tom@tromey.com>
11892
11893 * source.c (find_source_lines): Don't reference past the end of
11894 the vector.
11895
c4e12631
MM
118962018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11897
11898 * remote.c (remote_btrace_maybe_reopen): Change error message.
11899 * btrace.c (btrace_enable): Likewise.
11900 (parse_xml_btrace): Likewise.
11901 (parse_xml_btrace_conf): Likewise.
11902
88711fbf
MM
119032018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11904
11905 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
11906 (linux_enable_pt, linux_enable_bts): Call
11907 diagnose_perf_event_open_fail.
11908
17ad2a4f
MM
119092018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11910
11911 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
11912 Remove parameter and change return type. Update callers. Move it.
11913 (linux_enable_bts, linux_enable_pt): Improve error message.
11914 (linux_enable_pt): Remove zero buffer size check.
11915 (linux_enable_btrace): Improve error messages. Remove NULL return
11916 check.
11917
de6242d3
MM
119182018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11919
11920 * btrace.c (btrace_enable): Remove target_supports_btrace call.
11921 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
11922 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
11923 (linux_supports_pt, linux_supports_btrace): Remove.
11924 (linux_enable_bts): Call cpu_supports_bts.
11925 * nat/linux-btrace.h (linux_supports_btrace): Remove.
11926 * remote.c (remote_supports_btrace): Remove.
11927 (init_remote_ops): Remove remote_supports_btrace.
11928 * target-delegates.c: Regenerated.
11929 * target.c (target_supports_btrace): Remove.
11930 * target.h (target_ops) <to_supports_btrace>: Remove
11931 (target_supports_btrace): Remove.
11932 * x86-linux-nat.c (x86_linux_create_target): Remove
11933 linux_supports_btrace.
11934
9ee23a85
MM
119352018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11936
11937 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
11938 btrace failed.
11939 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
11940 exception and use message in own exception.
11941
5c3284c1
MM
119422018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11943
11944 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
11945 (perf_event_pt_event_type): Use gdb_file_up.
11946 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
11947 scoped_fd, and scoped_mmap.
11948
84696f37
MM
119492018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11950
11951 * common/scoped_mmap.h: New.
11952 * unittests/scoped_mmap-selftest.c: New.
11953 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11954 unittests/scoped_mmap-selftest.c.
11955
ea4a0888
MM
119562018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11957
11958 * common/scoped_fd.h: New.
11959 * unittests/scoped_fd-selftest.c: New.
11960 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11961 unittests/scoped_fd-selftest.c.
11962
869e8290
TT
119632018-02-09 Tom Tromey <tom@tromey.com>
11964
11965 * auto-load.c (auto_load_section_scripts): Use
11966 gdb::unique_xmalloc_ptr.
11967
a37a2ae7
TT
119682018-02-09 Tom Tromey <tom@tromey.com>
11969
11970 * auto-load.c (execute_script_contents): Use std::string.
11971
4e725347
JB
119722018-02-09 Joel Brobecker <brobecker@adacore.com>
11973
11974 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
11975 Python function, rather than a new command.
11976
9a897d43
TT
119772018-02-08 Tom Tromey <tom@tromey.com>
11978
11979 * solib.c (solib_find_1): Use std::string.
11980 (solib_bfd_fopen): Use unique_xmalloc_ptr.
11981
58ef3771
TT
119822018-02-08 Tom Tromey <tom@tromey.com>
11983
11984 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
11985
a9abc434
TT
119862018-02-08 Tom Tromey <tom@tromey.com>
11987
11988 * source.c (find_source_lines): Use gdb::def_vector.
11989
84f27c6f
TT
119902018-02-08 Tom Tromey <tom@tromey.com>
11991
11992 * macrocmd.c (struct temporary_macro_definition): New.
11993 (macro_define_command): Use temporary_macro_definition. Remove
11994 cleanups.
11995 (free_macro_definition_ptr): Remove.
11996
0354904b
TT
119972018-02-08 Tom Tromey <tom@tromey.com>
11998
11999 * macroexp.c (maybe_expand): Use std::string.
12000
1739cf24
TT
120012018-02-08 Tom Tromey <tom@tromey.com>
12002
12003 * macroexp.c (struct macro_buffer): Add initializers for some
12004 members.
12005 (init_buffer, init_shared_buffer, free_buffer)
12006 (free_buffer_return_text): Remove.
12007 (macro_buffer): New constructors.
12008 (~macro_buffer): New destructor.
12009 (macro_buffer::set_shared): New method.
12010 (macro_buffer::resize_buffer, macro_buffer::appendc)
12011 (macro_buffer::appendmem): Now methods, not free functions.
12012 (set_token, append_tokens_without_splicing, stringify)
12013 (macro_stringify): Update.
12014 (gather_arguments): Change return type. Remove argc_p argument,
12015 add args_ptr argument. Use std::vector.
12016 (substitute_args): Remove argc argument. Accept std::vector.
12017 (expand): Update. Use std::vector.
12018 (scan, macro_expand, macro_expand_next): Update.
12019
f6c2623e
TT
120202018-02-08 Tom Tromey <tom@tromey.com>
12021
12022 * symtab.c (default_collect_symbol_completion_matches_break_on):
12023 Use unique_xmalloc_ptr.
12024 * macroscope.h: (sal_macro_scope, user_macro_scope)
12025 (default_macro_scope): Return unique_xmalloc_ptr.
12026 * macroscope.c (sal_macro_scope, user_macro_scope)
12027 (default_macro_scope): Return unique_xmalloc_ptr.
12028 * macroexp.h (macro_expand, macro_expand_once): Return
12029 unique_xmalloc_ptr.
12030 * macroexp.c (macro_expand, macro_expand_once): Return
12031 unique_xmalloc_ptr.
12032 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12033 (info_macro_command, info_macros_command): Use
12034 unique_xmalloc_ptr.
12035 * compile/compile-c-support.c (write_macro_definitions): Use
12036 unique_xmalloc_ptr.
12037 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12038
c2e0e465
SM
120392018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12040
12041 * value.c (value_static_field): Assign field type instead of
12042 containing type when returning an optimized out value.
12043
3f8c94b4
YQ
120442018-02-06 Yao Qi <yao.qi@linaro.org>
12045
12046 * ft32-tdep.c (ft32_read_pc): Remove.
12047 (ft32_write_pc): Remove.
12048 (ft32_gdbarch_init): Update.
12049 * m32r-tdep.c (m32r_read_pc): Remove.
12050 (m32r_gdbarch_init): Update.
12051 * mep-tdep.c (mep_read_pc): Remove.
12052 (mep_gdbarch_init): Update.
12053 * microblaze-tdep.c (microblaze_write_pc): Remove.
12054 (microblaze_gdbarch_init): Update.
12055 * mn10300-tdep.c (mn10300_read_pc): Remove.
12056 (mn10300_write_pc): Remove.
12057 (mn10300_gdbarch_init): Update.
12058 * moxie-tdep.c (moxie_read_pc): Remove.
12059 (moxie_write_pc): Remove.
12060 (moxie_gdbarch_init): Update.
12061
bca65a23
YQ
120622018-02-06 Yao Qi <yao.qi@linaro.org>
12063
12064 * expprint.c (print_subexp_standard): Handle
12065 OP_F77_UNDETERMINED_ARGLIST.
12066 (dump_subexp_body_standard): Likewise.
12067
583e3f90 120682018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 12069
583e3f90
YQ
12070 * target-descriptions.c (tdesc_element_visitor) Add empty
12071 implementations.
b8df6ca7
AH
12072 (tdesc_type): Move make_gdb_type from here.
12073 (tdesc_type_builtin): Likewise.
12074 (tdesc_type_vector): Likewise.
12075 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12076 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12077 (make_gdb_type_union): Likewise.
12078 (make_gdb_type_flags): Likewise.
12079 (make_gdb_type_enum): Likewise.
12080 (make_gdb_type): New function.
12081 (tdesc_register_type): Use static make_gdb_type.
12082
e813d34a
RK
120832018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12084
12085 * infcmd.c (default_print_one_register_info): Align natural-format
12086 column values consistently one under another.
12087 (pad_to_column): New function.
12088
0eb876f5
JB
120892018-02-05 Joel Brobecker <brobecker@adacore.com>
12090
12091 * dwarf2read.c (dwarf2_physname): Move commment.
12092
0625771b
LS
120932018-02-01 Leszek Swirski <leszeks@google.com>
12094
12095 * varobj.c (varobj_formatted_print_options): Allow recursive
12096 pretty printing if pretty printing is enabled.
12097
59498c30
LS
120982018-02-01 Leszek Swirski <leszeks@google.com>
12099
12100 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12101 names after a structop as a filename.
12102
2d9e6acb
YQ
121032018-02-01 Yao Qi <yao.qi@linaro.org>
12104
12105 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12106 (arm_record_coproc_data_proc): Likewise.
12107
df95a9cf
YQ
121082018-02-01 Yao Qi <yao.qi@linaro.org>
12109
12110 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12111
07e5f5cf
NP
121122018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12113
12114 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12115 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12116
3045b475
PA
121172018-01-31 Pedro Alves <palves@redhat.com>
12118
12119 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12120 * inflow.c (child_terminal_save_inferior): Wrap reference to
12121 tcgetpgrp in HAVE_TERMIOS_H.
12122 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12123 _WIN32.
12124 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12125 always iterate over all inferiors.
12126 (gdbsim_cntrl_c): Adjust.
12127 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12128
929b5ad4
JB
121292018-01-31 Joel Brobecker <brobecker@adacore.com>
12130
12131 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12132 index type is objfile-owned if the element type is as well.
12133
29236ca2
JB
121342018-01-31 Joel Brobecker <brobecker@adacore.com>
12135
12136 GDB 8.1 released.
12137
c81e8879
PR
121382018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12139
12140 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12141 "features/s390x-linux64.c".
12142 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12143 s390_linux32 and s390x_linux64.
12144 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12145 default tdesc.
12146 * s390-tdep.c: Include "features/s390-linux32.c" and
12147 "features/s390x-linux64.c".
12148 (s390_tdesc_valid): Add check for tdesc_has_registers.
12149 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12150 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12151 tdesc_s390x_linux64.
12152 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12153 tdesc_s390x_linux64 to...
12154 * s390-tdep.h: ...here.
12155
e671cd59
PA
121562018-01-30 Pedro Alves <palves@redhat.com>
12157
12158 PR gdb/13211
12159 * config.in, configure: Regenerate.
12160 * configure.ac: Check for getpgid.
12161 * go32-nat.c (go32_pass_ctrlc): New.
12162 (go32_target): Install it.
12163 * inf-child.c (inf_child_target): Install
12164 child_terminal_save_inferior, child_pass_ctrlc and
12165 child_interrupt.
12166 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12167 (inf_ptrace_target): No longer install it.
12168 * infcmd.c (interrupt_target_1): Adjust.
12169 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12170 (child_interrupt): Declare.
12171 (inferior::terminal_state): New.
12172 * inflow.c (struct terminal_info): Update comments.
12173 (inferior_process_group): Delete.
12174 (terminal_is_ours): Delete.
12175 (gdb_tty_state): New.
12176 (child_terminal_init): Adjust.
12177 (is_gdb_terminal, sharing_input_terminal_1)
12178 (sharing_input_terminal): New functions.
12179 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12180 Set the process's actual process group in the foreground if
12181 possible. Handle is_ours_for_output/is_ours distinction. Don't
12182 mark terminal as the inferior's if not sharing GDB's terminal.
12183 Don't check attach_flag.
12184 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12185 pass down a target_terminal_state.
12186 (child_terminal_save_inferior): New, factored out from ...
12187 (child_terminal_ours_1): ... this. Handle
12188 target_terminal_state::is_ours_for_output.
12189 (child_interrupt, child_pass_ctrlc): New.
12190 (inflow_inferior_exit): Clear the inferior's terminal_state.
12191 (copy_terminal_info): Copy the inferior's terminal state.
12192 (_initialize_inflow): Remove reference to terminal_is_ours.
12193 * inflow.h (inferior_process_group): Delete.
12194 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12195 * procfs.c (procfs_target): Don't install procfs_interrupt.
12196 (procfs_interrupt): Delete.
12197 * remote.c (remote_serial_quit_handler): Adjust.
12198 (remote_interrupt): Remove ptid parameter. Adjust.
12199 * target-delegates.c: Regenerate.
12200 * target.c: Include "terminal.h".
12201 (target_terminal::terminal_state): Rename to ...
12202 (target_terminal::m_terminal_state): ... this.
12203 (target_terminal::init): Adjust.
12204 (target_terminal::inferior): Adjust to per-inferior
12205 terminal_state.
12206 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12207 (target_terminal::ours, target_terminal::ours_for_output): Use
12208 target_terminal_is_ours_kind.
12209 (target_interrupt): Remove ptid parameter. Adjust.
12210 (default_target_pass_ctrlc): Adjust.
12211 * target.h (target_ops::to_terminal_save_inferior): New field.
12212 (target_ops::to_interrupt): Remove ptid_t parameter.
12213 (target_interrupt): Remove ptid_t parameter. Update comment.
12214 (target_pass_ctrlc): Update comment.
12215 * target/target.h (target_terminal_state): New scoped enum,
12216 factored out of ...
12217 (target_terminal::terminal_state): ... here.
12218 (target_terminal::inferior): Update comments.
12219 (target_terminal::restore_inferior): New.
12220 (target_terminal::is_inferior, target_terminal::is_ours)
12221 (target_terminal::is_ours_for_output): Adjust.
12222 (target_terminal::scoped_restore_terminal_state): Adjust to
12223 rename, and call restore_inferior() instead of inferior().
12224 (target_terminal::scoped_restore_terminal_state::m_state): Change
12225 type.
12226 (target_terminal::terminal_state): Rename to ...
12227 (target_terminal::m_terminal_state): ... this and change type.
12228
9c3a5d93
PA
122292018-01-30 Pedro Alves <palves@redhat.com>
12230
12231 * linux-nat.c (wait_for_signal): New function.
12232 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12233 directly.
12234 (async_terminal_is_ours)
12235 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12236 (linux_nat_add_target): Don't override
12237 to_terminal_inferior/to_terminal_ours.
12238
69ab5edb
SDJ
122392018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12240
12241 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12242
fc8e7e75
SM
122432018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12244
12245 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12246 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12247 dwarf2_per_objfile_free here.
12248 (dwarf2_per_objfile_free): Remove.
12249 (_initialize_dwarf2_read): Don't register
12250 dwarf2_per_objfile_free as a registry cleanup.
12251
b2a426e2
EZ
122522018-01-27 Eli Zaretskii <eliz@gnu.org>
12253
12254 Avoid compilation errors in MinGW native builds
12255
12256 The error is triggered by including python-internal.h, and the
12257 error message is:
12258
12259 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12260 from build-gnulib/import/math.h:27,
12261 from d:/usr/Python26/include/pyport.h:235,
12262 from d:/usr/Python26/include/Python.h:58,
12263 from python/python-internal.h:94,
12264 from python/py-arch.c:24:
12265 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12266 using ::hypot;
12267 ^~~~~
12268
12269 This happens because Python headers define 'hypot' to expand t
12270 '_hypot' in the Windows builds.
12271 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12272 'hypoth'. This avoids a compilation error.
12273
0bdd8eac
AH
122742018-01-26 Alan Hayward <alan.hayward@arm.com>
12275
12276 * MAINTAINERS (Write After Approval): Fix ordering.
12277
56ae9dc3
AH
122782018-01-26 Alan Hayward <alan.hayward@arm.com>
12279
12280 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12281
7433498b
AM
122822018-01-26 Alan Modra <amodra@gmail.com>
12283
12284 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12285 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12286 Remove nop. Make const. Comment.
12287 (powerpc32_plt_stub_so_2): New.
12288 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12289 Correct count. Update uses.
12290 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12291 Move common code reading PLT entry word. Correct
12292 powerpc32_plt_stub PLT address calculation.
12293 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12294 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12295 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12296 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12297 (ppc64_standard_linkage8): Likewise.
12298 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12299 Correct insns description.
12300 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12301
0f59d5fc
PA
123022018-01-24 Pedro Alves <palves@redhat.com>
12303
12304 GCC PR libstdc++/83906
12305 * gdbtypes.c (operator==(const dynamic_prop &,
12306 const dynamic_prop &)): New.
12307 (operator==(const range_bounds &, const range_bounds &)): New.
12308 (check_types_equal): Use them instead of memcmp.
12309 * gdbtypes.h (operator==(const dynamic_prop &,
12310 const dynamic_prop &)): Declare.
12311 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12312 (operator==(const range_bounds &, const range_bounds &)): Declare.
12313 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12314
ef8914a4
PR
123152018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12316
12317 * s390-linux-tdep.c (s390_record_address_mask)
12318 (s390_record_calc_disp_common, s390_record_calc_disp)
12319 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12320 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12321 (s390_process_record): Move to s390-tdep.c.
12322 (s390_linux_init_abi_any): Adjust.
12323 * s390-tdep.c (s390_record_address_mask)
12324 (s390_record_calc_disp_common, s390_record_calc_disp)
12325 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12326 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12327 (s390_process_record): Moved from s390-linux-tdep.c
12328 (s390_gdbarch_init): Adjust.
12329
d6e58945
PR
123302018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12331
12332 * s390-linux-nat.c (s390-tdep.h): New include.
12333 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12334 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12335 (ALLDEPFILES): Add s390-tdep.c.
12336 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12337 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12338 * s390-tdep.h: ...this. New file.
12339 * s390-linux-tdep.c (s390-tdep.h): New include.
12340 (_initialize_s390_tdep): Rename to...
12341 (_initialize_s390_linux_tdep): ...this and adjust.
12342 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12343 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12344 s390-tdep.h.
12345 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12346 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12347 (s390_is_partial_instruction, s390_software_single_step)
12348 (is_non_branch_ril, s390_displaced_step_copy_insn)
12349 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12350 (s390_prologue_data, s390_addr, s390_store, s390_load)
12351 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12352 (s390_register_call_saved, s390_guess_tracepoint_registers)
12353 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12354 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12355 (s390_pseudo_register_name, s390_pseudo_register_type)
12356 (s390_pseudo_register_read, s390_pseudo_register_write)
12357 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12358 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12359 (s390_addr_bits_remove, s390_address_class_type_flags)
12360 (s390_address_class_type_flags_to_name)
12361 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12362 (s390_function_arg_float, s390_function_arg_vector)
12363 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12364 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12365 (s390_frame_align, s390_register_return_value, s390_return_value)
12366 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12367 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12368 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12369 (s390_trad_frame_prev_register, s390_unwind_cache)
12370 (s390_prologue_frame_unwind_cache)
12371 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12372 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12373 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12374 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12375 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12376 (s390_frame_base_address, s390_local_base_address)
12377 (s390_frame_base, s390_gcc_target_options)
12378 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12379 (s390_validate_reg_range, s390_tdesc_valid)
12380 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12381 * s390-tdep.c: ...this. New file.
12382
9c0b896e
PR
123832018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12384
12385 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12386 (s390_process_record, s390_gdbarch_tdep_alloc)
12387 (s390_linux_init_abi_any): Use/set new hook.
12388
7042632b
PR
123892018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12390
12391 * s390-linux-tdep.c (osabi.h): New include.
12392 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12393 (s390_linux_init_abi_any): New functions.
12394 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12395
650f5e13
PR
123962018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12397
12398 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12399 tdesc_has_registers check
12400
47c9317e
PR
124012018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12402
12403 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12404 (s390_validate_reg_range): New macro.
12405 (s390_gdbarch_init): Adjust.
12406
095085d8
PR
124072018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12408
12409 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12410 (s390_gdbarch_tdep_alloc): Adjust.
12411 (s390_gdbarch_init): Adjust.
12412
ab9bcc67
PR
124132018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12414
12415 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12416 <have_tdb>: Change type to bool.
12417 (s390_gdbarch_tdep_alloc): Adjust.
12418 (s390_gdbarch_init): Adjust.
12419
21f6f5ff
PR
124202018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12421
12422 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12423 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12424 (s390_gdbarch_tdep_alloc): New function.
12425 (s390_gdbarch_init): Allocate tdep at start and use its fields
12426 instead of separate variables.
12427
0eb97953
PR
124282018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12429
12430 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12431 when looking for cached gdbarch and add comment for remaining.
12432
5c319bb2
PA
124332018-01-22 Pedro Alves <palves@redhat.com>
12434 Sergio Durigan Junior <sergiodj@redhat.com>
12435
12436 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12437 case.
12438
d65ce302
MR
124392018-01-22 Maciej W. Rozycki <macro@mips.com>
12440
12441 * MAINTAINERS: Update my company e-mail address.
12442
ec7a5fcb
YQ
124432018-01-22 Yao Qi <yao.qi@linaro.org>
12444
12445 * regcache.c (cooked_write_test): New function.
12446 (_initialize_regcache): Register the test.
12447
11f57cb6
YQ
124482018-01-22 Yao Qi <yao.qi@linaro.org>
12449
12450 * ia64-tdep.c (ia64_pseudo_register_read): Call
12451 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12452 * m32c-tdep.c (m32c_cat_read): Likewise.
12453 (m32c_r3r2r1r0_read): Likewise.
12454 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12455 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12456
03f50fc8
YQ
124572018-01-22 Yao Qi <yao.qi@linaro.org>
12458
12459 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12460 method raw_read instead of regcache_raw_read.
12461 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12462 * arm-tdep.c (arm_neon_quad_read): Likewise.
12463 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12464 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12465 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12466 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12467 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12468 (i386_pseudo_register_read_into_value): Likewise.
12469 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12470 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12471 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12472 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12473 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12474 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12475 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12476 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12477 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12478
dc711524
YQ
124792018-01-22 Yao Qi <yao.qi@linaro.org>
12480
12481 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12482 * configure.tgt: Remove target mt.
12483 * mt-tdep.c: Remove.
12484 * regcache.c (cooked_read_test): Remove the check for mt.
12485
3f5a868b
YQ
124862018-01-22 Yao Qi <yao.qi@linaro.org>
12487
12488 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12489 instead of gdbarch_pseudo_register_read_value.
12490
de4cb04a
JB
124912018-01-22 Joel Brobecker <brobecker@adacore.com>
12492
12493 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12494 language is Ada.
12495
a9e40818
JB
124962018-01-22 Joel Brobecker <brobecker@adacore.com>
12497
12498 * linespec.c (create_sals_line_offset): Remove code that preserved
12499 the symtab_and_line's line number.
12500
e707fc44
AB
125012018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12502
12503 * varobj.c (varobj_create): Don't set valid_block when creating a
12504 floating varobj.
12505
03d0bf7b
AB
125062018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12507
12508 * varobj.c (varobj_create): Remove out of date comment.
12509
ae451627
AB
125102018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12511
12512 PR mi/20395
12513 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12514 updating innermost block.
12515 * parse.c (innermost_block_tracker::update): Take extra type
12516 parameter, and check types match before updating innermost block.
12517 (write_dollar_variable): Update innermost block for registers.
12518 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12519 (innermost_block_tracker::innermost_block_tracker): Initialise
12520 m_types member.
12521 (innermost_block_tracker::reset): Take type parameter.
12522 (innermost_block_tracker::update): Take type parameter, and pass
12523 type through as needed.
12524 (innermost_block_tracker::m_types): New member.
12525 * varobj.c (varobj_create): Pass type when reseting innermost
12526 block.
12527
aee1fcdf
AB
125282018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12529
12530 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12531 * ada-lang.c (resolve_subexp): Likewise.
12532 * breakpoint.c (set_breakpoint_condition) Likewise.
12533 (watch_command_1) Likewise.
12534 * c-exp.y (variable): Likewise.
12535 * d-exp.y (PrimaryExpression): Likewise.
12536 * f-exp.y (variable): Likewise.
12537 * go-exp.y (variable): Likewise.
12538 * m2-exp.y (variable): Likewise.
12539 * objfiles.c (objfile::~objfile): Likewise.
12540 * p-exp.y (variable): Likewise.
12541 * parse.c (innermost_block): Change type.
12542 * parser-defs.h (class innermost_block_tracker): New.
12543 (innermost_block): Change to innermost_block_tracker.
12544 * printcmd.c (display_command): Switch to innermost_block API.
12545 (do_one_display): Likewise.
12546 * rust-exp.y (do_one_display): Likewise.
12547 * symfile.c (clear_symtab_users): Likewise.
12548 * varobj.c (varobj_create): Switch to innermost_block API, replace
12549 use of innermost_block with block stored on varobj object.
12550
396af9a1
AB
125512018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12552
12553 * expression.h (innermost_block): Remove declaration.
12554 * varobj.c: Add 'parser-defs.h' include.
12555
fcfcc376
TT
125562018-01-19 Tom Tromey <tom@tromey.com>
12557
12558 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12559 symbols in the static and global blocks.
12560
5a6c3296
JC
125612018-01-19 James Clarke <jrtc27@jrtc27.com>
12562
12563 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12564 gdb_ptrace.h, and move including gdb_wait.h ...
12565 * nat/linux-ptrace.h: ... to here.
12566
bc09b0c1
SM
125672018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12568
12569 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12570 inf_ptrace_detach_success.
12571 (inf_ptrace_detach_success): Add inferior parameter, use it
12572 instead of inferior_ptid, pass it to detach_inferior.
12573 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12574 parameter.
12575 * inferior.c (detach_inferior): Add overload that takes an
12576 inferior object.
12577 * inferior.h (detach_inferior): Likewise.
12578 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12579 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12580 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12581
6e1e1966
SM
125822018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12583
12584 * target.h (struct target_ops) <to_detach>: Add inferior
12585 parameter.
12586 (target_detach): Likewise.
12587 * target.c (dispose_inferior): Pass inferior down.
12588 (target_detach): Pass inferior down. Assert that it is equal to
12589 the current inferior.
12590 * aix-thread.c (aix_thread_detach): Pass inferior down.
12591 * corefile.c (core_file_command): Pass current_inferior() down.
12592 * corelow.c (core_detach): Add inferior parameter.
12593 * darwin-nat.c (darwin_detach): Likewise.
12594 * gnu-nat.c (gnu_detach): Likewise.
12595 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12596 * infcmd.c (detach_command): Pass current_inferior() down to
12597 target_detach.
12598 * infrun.c (follow_fork_inferior): Pass parent_inf to
12599 target_detach.
12600 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12601 target_detach.
12602 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12603 * linux-thread-db.c (thread_db_detach): Likewise.
12604 * nto-procfs.c (procfs_detach): Likewise.
12605 * procfs.c (procfs_detach): Likewise.
12606 * record.c (record_detach): Likewise.
12607 * record.h (struct inferior): Forward-declare.
12608 (record_detach): Add inferior parameter.
12609 * remote-sim.c (gdbsim_detach): Likewise.
12610 * remote.c (remote_detach_1): Likewise.
12611 (remote_detach): Likewise.
12612 (extended_remote_detach): Likewise.
12613 * sol-thread.c (sol_thread_detach): Likewise.
12614 * target-debug.h (target_debug_print_inferior_p): New macro.
12615 * target-delegates.c: Re-generate.
12616 * top.c (kill_or_detach): Pass inferior down to target_detach.
12617 * windows-nat.c (windows_detach): Add inferior parameter.
12618
6bd6f3b6
SM
126192018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12620
12621 * target.h (struct target_ops) <to_detach>: Remove args
12622 parameter.
12623 (target_detach): Likewise.
12624 * target.c (dispose_inferior): Adjust.
12625 (target_detach): Remove args parameter, adjust.
12626 * aix-thread.c (aix_thread_detach): Adjust.
12627 * corefile.c (core_file_command): Adjust.
12628 * corelow.c (core_detach): Adjust.
12629 * darwin-nat.c (darwin_detach): Adjust.
12630 * gnu-nat.c (gnu_detach): Adjust.
12631 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12632 * infcmd.c (detach_command): Adjust
12633 * infrun.c (follow_fork_inferior): Adjust.
12634 (handle_vfork_child_exec_or_exit): Adjust.
12635 * linux-fork.c (linux_fork_detach): Remove args parameter.
12636 * linux-fork.h (linux_fork_detach): Likewise.
12637 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12638 * linux-thread-db.c (thread_db_detach): Likewise.
12639 * nto-procfs.c (procfs_detach): Likewise.
12640 * procfs.c (procfs_detach): Likewise.
12641 (do_detach): Remove signo parameter.
12642 * record.c (record_detach): Remove args parameter.
12643 * record.h (record_detach): Likewise.
12644 * remote-sim.c (gdbsim_detach): Likewise.
12645 * remote.c (remote_detach_1): Likewise.
12646 (remote_detach): Likewise.
12647 (extended_remote_detach): Likewise.
12648 * sol-thread.c (sol_thread_detach): Likewise.
12649 * target-delegates.c: Re-generate.
12650 * top.c (struct qt_args) <args>: Remove field.
12651 (kill_or_detach): Don't pass args.
12652 (quit_force): Don't set args.
12653 * windows-nat.c (windows_detach): Remove args parameter.
12654
88af8ea8
YQ
126552018-01-19 Yao Qi <yao.qi@linaro.org>
12656
12657 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12658 (arm_linux_init_abi): Install it.
12659
dea445b9
YQ
126602018-01-19 Yao Qi <yao.qi@linaro.org>
12661
12662 * osabi.c (gdb_osabi_names): Extend the regexp for
12663 arm-linux-gnueabihf.
12664
4a17f768
YQ
126652018-01-18 Yao Qi <yao.qi@linaro.org>
12666
12667 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12668 m_abbrevs.
12669 (abbrev_table::add_abbrev): Update.
12670 (abbrev_table::lookup_abbrev): Update.
12671
d679c21a
YQ
126722018-01-18 Yao Qi <yao.qi@linaro.org>
12673
12674 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12675
7d937cad
SDJ
126762018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12677
12678 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12679 to "std::string".
12680
9e14690d
TT
126812018-01-17 Tom Tromey <tom@tromey.com>
12682
12683 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12684
50a82047
TT
126852018-01-17 Tom Tromey <tom@tromey.com>
12686
12687 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12688 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12689 (create_array_type_with_stride): Update.
12690 * dwarf2read.c (set_die_type): Update.
12691
c89b44cd
TT
126922018-01-17 Tom Tromey <tom@tromey.com>
12693
12694 * dwarf2read.c (delayed_method_info): Remove typedef.
12695 (dwarf2_cu::method_info): Now a std::vector.
12696 (add_to_method_list): Update.
12697 (free_delayed_list): Remove.
12698 (compute_delayed_physnames): Update.
12699 (process_full_comp_unit, process_full_type_unit): Clear the method
12700 list. Remove cleanups.
12701 (psymtab_include_file_name): Add name_holder parameter. Use
12702 unique_xmalloc_ptr.
12703 (dwarf_decode_lines): Update.
12704
fcd3b13d
SM
127052018-01-17 Tom Tromey <tom@tromey.com>
12706 Simon Marchi <simon.marchi@ericsson.com>
12707
12708 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12709 (dwarf2_per_objfile::free_cached_comp_units)
12710 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12711 (init_cutu_and_read_dies_no_follow): Update.
12712 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12713 (dwarf2_cu::~dwarf2_cu): New.
12714 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12715 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12716
685af9cd
TT
127172018-01-17 Tom Tromey <tom@tromey.com>
12718 Simon Marchi <simon.marchi@ericsson.com>
12719
12720 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12721 (struct die_reader_specs) <abbrev_table>: New member.
12722 (struct abbrev_table): Add constructor.
12723 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12724 <abbrev_obstack>: Now an auto_obstack.
12725 (abbrev_table_up): New typedef.
12726 (init_cu_die_reader): Add abbrev_table parameter.
12727 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12728 Add result_dwo_abbrev_table.
12729 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12730 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12731 Update.
12732 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12733 parameter.
12734 (skip_children): Update.
12735 (abbrev_table::alloc_abbrev): Rename from
12736 abbrev_table_alloc_abbrev.
12737 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12738 (abbrev_table::lookup_abbrev): Rename from
12739 abbrev_table_lookup_abbrev.
12740 (abbrev_table_read_table): Return abbrev_table_up.
12741 (abbrev_table_free, abbrev_table_free_cleanup)
12742 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12743 (load_partial_dies): Update.
12744
5e2db402
TT
127452018-01-17 Tom Tromey <tom@tromey.com>
12746
12747 * dwarf2read.c (dwarf2_compute_name): Update comment.
12748 (read_func_scope, read_variable): Update.
12749 (new_symbol): Remove.
12750 (new_symbol_full): Rename to new_symbol.
12751
ee7f689e 127522018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
12753
12754 PR gdb/16577
12755 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12756 a warning instead of throwing an error, set section size to 0 and return
12757 NULL.
12758 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12759
4d9b86e1
SM
127602018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12761
12762 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12763 std::string.
12764 (linux_ptrace_attach_fail_reason_string): Likewise.
12765 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12766 Likewise.
12767 (linux_ptrace_attach_fail_reason_string): Likewise.
12768 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12769
a7b2d0fb
SM
127702018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12771
12772 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12773
f517c180
EA
127742018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12775
12776 PR gdb/21559
12777 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12778 checking for fs_base/gs_base fields in struct user_regs_struct.
12779 * configure: Regenerate.
12780
7045b1ca
YQ
127812018-01-17 Yao Qi <yao.qi@linaro.org>
12782
12783 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12784 function.
12785 (aarch64_linux_init_abi): Install it to gdbarch hook
12786 gcc_target_options.
12787
db422fb2
PA
127882018-01-15 Pedro Alves <palves@redhat.com>
12789
12790 * common/signals-state-save-restore.c
12791 (save_original_signals_state): Fix typos.
12792
ba643918
SDJ
127932017-01-12 Tom Tromey <tom@tromey.com>
12794 Sergio Durigan Junior <sergiodj@redhat.com>
12795
12796 * Makefile.in (install-only): Install gdb-add-index.
12797
906b4aac
JB
127982018-01-12 John Baldwin <jhb@FreeBSD.org>
12799
12800 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12801
bdf2a94a
AA
128022018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12803
12804 * infrun.c (keep_going_pass_signal): Clear step-over info when
12805 insert_breakpoints fails.
12806
71d378ae
PA
128072018-01-11 Pedro Alves <palves@redhat.com>
12808
12809 PR gdb/22583
12810 * infrun.c (resume): Rename to ...
12811 (resume_1): ... this.
12812 (resume): Reimplement as wrapper around resume_1.
12813
3cada740
PA
128142018-01-11 Pedro Alves <palves@redhat.com>
12815
12816 PR remote/22597
12817 * remote.c (remote_parse_stop_reply): Default to the last-set
12818 general thread instead of to 'magic_null_ptid'.
12819
618daa93
PA
128202018-01-10 Pedro Alves <palves@redhat.com>
12821
12822 * language.h (language_get_symbol_name_matcher): Rename ...
12823 (get_symbol_name_matcher): ... this.
12824 * language.c (language_get_symbol_name_matcher): Ditto.
12825 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
12826 callers adjusted.
12827
c63d3e8d
PA
128282018-01-10 Pedro Alves <palves@redhat.com>
12829
12830 PR gdb/22670
12831 * dwarf2read.c
12832 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
12833 Adjust to use language_get_symbol_name_matcher instead of
12834 language_defn::la_get_symbol_name_matcher.
12835 * language.c (language_get_symbol_name_matcher): If in Ada mode
12836 and the lookup name is a verbatim match, return Ada's matcher.
12837 * language.h (language_get_symbol_name_matcher): Adjust comment.
12838 (ada_lookup_name_info::verbatim_p):: New method.
12839
d4c2a405
PA
128402018-01-10 Pedro Alves <palves@redhat.com>
12841
12842 PR gdb/22670
12843 * ada-lang.c (ada_collect_symbol_completion_matches): If the
12844 minsym's language is language_auto or language_cplus, pass down
12845 language_ada instead.
12846 * symtab.c (compare_symbol_name): Don't frob symbol language here.
12847
8825213e
PA
128482018-01-10 Pedro Alves <palves@redhat.com>
12849
12850 PR gdb/22670
12851 * minsyms.c (linkage_name_str): New function.
12852 (iterate_over_minimal_symbols): Use it.
12853
2d97a5d9
JB
128542018-01-09 John Baldwin <jhb@FreeBSD.org>
12855
12856 * NEWS: Document that 'info proc' now works on FreeBSD.
12857
92fce24d
JB
128582018-01-09 John Baldwin <jhb@FreeBSD.org>
12859
12860 * configure.ac: Check for kinfo_getfile in libutil.
12861 * configure: Regenerate.
12862 * config.in: Regenerate.
12863 * fbsd-nat.c: Include "fbsd-tdep.h".
12864 (fbsd_fetch_cmdline): New.
12865 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
12866 rather than calling error.
12867 (fbsd_info_proc): New.
12868 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
12869 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
12870 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
12871
262f62f5
JB
128722018-01-09 John Baldwin <jhb@FreeBSD.org>
12873
12874 * fbsd-nat.c (struct free_deleter): Remove.
12875 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
12876
b999e203
JB
128772018-01-09 John Baldwin <jhb@FreeBSD.org>
12878
12879 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
12880 NULL for an empty pathname.
12881
d2176225
JB
128822018-01-09 John Baldwin <jhb@FreeBSD.org>
12883
12884 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
12885 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
12886 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12887 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12888 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
12889 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
12890 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
12891 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
12892 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
12893 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
12894 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
12895 (fbsd_core_fetch_timeval, fbsd_print_sigset)
12896 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
12897 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
12898 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
12899
9c4ac400
ST
129002018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
12901
12902 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
12903 (gnu_xfer_auxv): New function.
12904 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
12905 TARGET_OBJECT_AUXV.
12906
1e5ded6c
YQ
129072018-01-08 Yao Qi <yao.qi@linaro.org>
12908 Simon Marchi <simon.marchi@ericsson.com>
12909
12910 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
12911 common/selftest.c.
12912 (COMMON_OBS): Remove selftest.o.
12913 * configure.ac: Append selftest-arch.c and common/selftest.c to
12914 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
12915 * configure: Re-generated.
12916 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
12917 GDB_SELF_TEST.
12918 (maintenance_info_selftests): Likewise.
12919
04bafb1e
XR
129202018-01-08 Xavier Roirand <roirand@adacore.com>
12921
12922 * ada-valprint.c (val_print_packed_array_elements): Use
12923 proper number of elements when printing an array indexed
12924 by an enumeration type.
12925
518817b3
SM
129262018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12927
12928 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
12929 (dw2_get_file_names_reader): Adjust.
12930 (lookup_dwo_signatured_type): Adjust.
12931 (lookup_dwp_signatured_type): Adjust.
12932 (lookup_signatured_type): Adjust.
12933 (create_type_unit_group): Adjust.
12934 (get_type_unit_group): Adjust.
12935 (process_psymtab_comp_unit_reader): Adjust.
12936 (build_type_psymtabs_reader): Adjust.
12937 (scan_partial_symbols): Adjust.
12938 (add_partial_symbol): Adjust.
12939 (add_partial_subprogram): Adjust.
12940 (peek_die_abbrev): Adjust.
12941 (fixup_go_packaging): Adjust.
12942 (process_imported_unit_die): Adjust.
12943 (dwarf2_compute_name): Adjust.
12944 (dwarf2_physname): Adjust.
12945 (read_import_statement): Adjust.
12946 (handle_DW_AT_stmt_list): Adjust.
12947 (read_file_scope): Adjust.
12948 (read_func_scope): Adjust.
12949 (read_lexical_block_scope): Adjust.
12950 (read_call_site_scope): Adjust.
12951 (read_variable): Adjust.
12952 (dwarf2_rnglists_process): Adjust.
12953 (dwarf2_ranges_process): Adjust.
12954 (dwarf2_ranges_read): Adjust.
12955 (dwarf2_get_pc_bounds): Adjust.
12956 (dwarf2_record_block_ranges): Adjust.
12957 (dwarf2_add_field): Adjust.
12958 (dwarf2_add_member_fn): Adjust.
12959 (read_structure_type): Adjust.
12960 (process_structure_scope): Adjust.
12961 (read_enumeration_type): Adjust.
12962 (read_array_type): Adjust.
12963 (mark_common_block_symbol_computed): Adjust.
12964 (read_common_block): Adjust.
12965 (read_namespace_type): Adjust.
12966 (read_namespace): Adjust.
12967 (read_module_type): Adjust.
12968 (read_tag_pointer_type): Adjust.
12969 (read_tag_ptr_to_member_type): Adjust.
12970 (read_tag_string_type): Adjust.
12971 (read_subroutine_type): Adjust.
12972 (read_typedef): Adjust.
12973 (read_base_type): Adjust.
12974 (attr_to_dynamic_prop): Adjust.
12975 (read_subrange_type): Adjust.
12976 (read_unspecified_type): Adjust.
12977 (dwarf2_read_abbrevs): Adjust.
12978 (load_partial_dies): Adjust.
12979 (read_partial_die): Adjust.
12980 (find_partial_die): Adjust.
12981 (guess_partial_die_structure_name): Adjust.
12982 (fixup_partial_die): Adjust.
12983 (read_attribute_value): Adjust.
12984 (read_addr_index): Adjust.
12985 (read_addr_index_from_leb128): Adjust.
12986 (read_str_index): Adjust.
12987 (dwarf2_string_attr): Adjust.
12988 (get_debug_line_section): Adjust.
12989 (dwarf_decode_line_header): Adjust.
12990 (lnp_state_machine::check_line_address): Adjust.
12991 (dwarf_decode_lines_1): Adjust.
12992 (dwarf_decode_lines): Adjust.
12993 (dwarf2_start_symtab): Adjust.
12994 (var_decode_location): Adjust.
12995 (new_symbol_full): Adjust.
12996 (dwarf2_const_value_data): Adjust.
12997 (dwarf2_const_value_attr): Adjust.
12998 (dwarf2_const_value): Adjust.
12999 (die_type): Adjust.
13000 (die_containing_type): Adjust.
13001 (build_error_marker_type): Adjust.
13002 (lookup_die_type): Adjust.
13003 (guess_full_die_structure_name): Adjust.
13004 (anonymous_struct_prefix): Adjust.
13005 (determine_prefix): Adjust.
13006 (dwarf2_name): Adjust.
13007 (follow_die_ref_or_sig): Adjust.
13008 (follow_die_offset): Adjust.
13009 (follow_die_ref): Adjust.
13010 (follow_die_sig_1): Adjust.
13011 (follow_die_sig): Adjust.
13012 (get_signatured_type): Adjust.
13013 (get_DW_AT_signature_type): Adjust.
13014 (decode_locdesc): Adjust.
13015 (dwarf_decode_macros): Adjust.
13016 (cu_debug_loc_section): Adjust.
13017 (fill_in_loclist_baton): Adjust.
13018 (dwarf2_symbol_mark_computed): Adjust.
13019 (init_one_comp_unit): Don't assign
13020 dwarf2_cu::dwarf2_per_objfile.
13021 (set_die_type): Adjust.
13022
ed2dc618
SM
130232018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13024
13025 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13026 <dwarf2_per_objfile>: New field.
13027 (dwarf2_per_objfile): Remove global.
13028 (get_dwarf2_per_objfile): New function.
13029 (set_dwarf2_per_objfile): New function.
13030 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13031 dwarf2_per_objfile.
13032 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13033 (read_abbrev_offset): Likewise.
13034 (read_indirect_string): Likewise.
13035 (read_indirect_line_string): Likewise.
13036 (read_indirect_string_at_offset): Likewise.
13037 (read_indirect_string_from_dwz): Likewise.
13038 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13039 dwarf2_per_objfile.
13040 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13041 (create_all_comp_units): Change objfile parameter to
13042 dwarf2_per_objfile.
13043 (create_all_type_units): Likewise.
13044 (process_queue): Add dwarf2_per_objfile parameter.
13045 (read_and_check_comp_unit_head): Likewise.
13046 (lookup_dwo_unit_in_dwp): Likewise.
13047 (get_dwp_file): Likewise.
13048 (process_cu_includes): Likewise.
13049 (struct free_dwo_file_cleanup_data): New struct.
13050 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13051 set_dwarf2_per_objfile.
13052 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13053 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13054 context, adjust calls.
13055 (dw2_instantiate_symtab): Likewise.
13056 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13057 (dw2_get_cu): Likewise.
13058 (create_cu_from_index_list): Change objfile parameter to
13059 dwarf2_per_objfile.
13060 (create_cus_from_index_list): Get dwarf2_per_objfile from
13061 context, adjust calls.
13062 (create_cus_from_index): Likewise.
13063 (create_signatured_type_table_from_index): Change objfile
13064 parameter to dwarf2_per_objfile.
13065 (create_signatured_type_table_from_debug_names): Change objfile
13066 parameter to dwarf2_per_objfile.
13067 (create_addrmap_from_index): Likewise.
13068 (create_addrmap_from_aranges): Likewise.
13069 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13070 (dw2_setup): Remove.
13071 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13072 context.
13073 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13074 get_dwarf2_per_objfile.
13075 (dw2_forget_cached_source_info): Likewise.
13076 (dw2_map_symtabs_matching_filename): Likewise.
13077 (struct dw2_symtab_iterator) <index>: Remove.
13078 <dwarf2_per_objfile>: New field.
13079 (dw2_symtab_iter_init): Replace index parameter with
13080 dwarf2_per_objfile.
13081 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13082 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13083 (dw2_print_stats): Likewise.
13084 (dw2_dump): Likewise.
13085 (dw2_expand_symtabs_for_function): Likewise.
13086 (dw2_expand_all_symtabs): Likewise.
13087 (dw2_expand_symtabs_with_fullname): Likewise.
13088 (dw2_expand_marked_cus): Replace index and objfile parameters
13089 with dwarf2_per_objfile.
13090 (dw_expand_symtabs_matching_file_matcher): Add
13091 dwarf2_per_objfile parameter and adjust calls.
13092 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13093 adjust calls.
13094 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13095 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13096 adjust calls.
13097 (create_cus_from_debug_names_list): Replace objfile parameter
13098 with dwarf2_per_objfile and adjust calls.
13099 (create_cus_from_debug_names): Likewise.
13100 (dwarf2_read_debug_names): Likewise.
13101 (mapped_debug_names::namei_to_name): Adjust call.
13102 (dw2_debug_names_iterator::next): Likewise.
13103 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13104 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13105 (dw2_debug_names_dump): Likewise.
13106 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13107 (dw2_debug_names_expand_symtabs_matching): Likewise.
13108 (dwarf2_initialize_objfile): Likewise.
13109 (dwarf2_build_psymtabs): Likewise.
13110 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13111 this_cu.
13112 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13113 (read_and_check_comp_unit_head): Likewise.
13114 (read_abbrev_offset): Likewise.
13115 (create_debug_type_hash_table): Likewise.
13116 (create_debug_types_hash_table): Likewise.
13117 (create_all_type_units): Replace objfile parameter with
13118 dwarf2_per_objfile.
13119 (add_type_unit): Add dwarf2_per_objfile parameter.
13120 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13121 with dwarf2_per_objfile.
13122 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13123 (lookup_dwp_signatured_type): Likewise.
13124 (lookup_signatured_type): Likewise.
13125 (read_cutu_die_from_dwo): Likewise.
13126 (init_tu_and_read_dwo_dies): Likewise.
13127 (init_cutu_and_read_dies): Likewise.
13128 (init_cutu_and_read_dies_no_follow): Likewise.
13129 (allocate_type_unit_groups_table): Add objfile parameter.
13130 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13131 (get_type_unit_group): Likewise.
13132 (process_psymtab_comp_unit): Update call.
13133 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13134 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13135 (print_tu_stats): Likewise.
13136 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13137 in void* parameter.
13138 (build_type_psymtabs): Change objfile parameter to
13139 dwarf2_per_objfile.
13140 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13141 passed in void* parameter.
13142 (process_skeletonless_type_units): Change objfile parameter to
13143 dwarf2_per_objfile.
13144 (set_partial_user): Likewise.
13145 (dwarf2_build_psymtabs_hard): Likewise.
13146 (read_comp_units_from_section): Likewise.
13147 (create_all_comp_units): Likewise.
13148 (scan_partial_symbols): Update calls.
13149 (add_partial_symbol): Likewise.
13150 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13151 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13152 (process_queue): Add dwarf2_per_objfile parameter.
13153 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13154 (compute_compunit_symtab_includes): Likewise.
13155 (process_cu_includes): Add dwarf2_per_objfile parameter.
13156 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13157 (process_full_type_unit): Likewise.
13158 (process_imported_unit_die): Update call.
13159 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13160 (read_file_scope): Likewise.
13161 (allocate_dwo_file_hash_table): Add objfile parameter.
13162 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13163 (create_cus_hash_table): Likewise.
13164 (create_dwp_hash_table): Likewise.
13165 (create_dwo_unit_in_dwp_v1): Likewise.
13166 (create_dwp_v2_section): Likewise.
13167 (create_dwo_unit_in_dwp_v2): Likewise.
13168 (lookup_dwo_unit_in_dwp): Likewise.
13169 (try_open_dwop_file): Likewise.
13170 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13171 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13172 cleanup to include a reference to dwarf2_per_objfile.
13173 (open_dwp_file): Add dwarf2_per_objfile parameter.
13174 (open_and_init_dwp_file): Likewise.
13175 (get_dwp_file): Likewise.
13176 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13177 (queue_and_load_all_dwo_tus): Update call.
13178 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13179 data.
13180 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13181 (dwarf2_ranges_process): Likewise.
13182 (dwarf2_get_pc_bounds): Likewise.
13183 (mark_common_block_symbol_computed): Likewise.
13184 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13185 (dwarf2_read_abbrevs): Update call.
13186 (read_partial_die): Use dwarf2_per_objfile from cu.
13187 (find_partial_die): Likewise.
13188 (fixup_partial_die): Likewise.
13189 (read_attribute_value): Likewise.
13190 (read_indirect_string_at_offset_from): Add objfile parameter.
13191 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13192 parameter.
13193 (read_indirect_string_from_dwz): Add objfile parameter.
13194 (read_indirect_string): Add objfile parameter.
13195 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13196 (read_addr_index): Use dwarf2_per_objfile from cu.
13197 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13198 call dw2_setup.
13199 (read_str_index): Use dwarf2_per_objfile from cu.
13200 (get_debug_line_section): Likewise.
13201 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13202 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13203 (new_symbol_full): Use dwarf2_per_objfile from cu.
13204 (build_error_marker_type): Likewise.
13205 (lookup_die_type): Likewise.
13206 (determine_prefix): Likewise.
13207 (follow_die_offset): Likewise.
13208 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13209 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13210 (dwarf2_fetch_die_type_sect_off): Likewise.
13211 (dwarf2_get_die_type): Likewise.
13212 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13213 (get_signatured_type): Likewise.
13214 (get_DW_AT_signature_type): Likewise.
13215 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13216 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13217 (cu_debug_loc_section): Likewise.
13218 (fill_in_loclist_baton): Likewise.
13219 (dwarf2_symbol_mark_computed): Likewise.
13220 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13221 dwarf2_per_objfile.
13222 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13223 parameter.
13224 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13225 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13226 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13227 (set_die_type): Use dwarf2_free_objfile from cu.
13228 (get_die_type_at_offset): Likewise.
13229 (dwarf2_per_objfile_free): Don't assign global variable.
13230 (debug_names) <constructor>: Add dwarf2_per_objfile
13231 parameter, update m_debugstrlookup construction.
13232 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13233 parameter.
13234 <m_dwarf2_per_objfile>: New field.
13235 <lookup>: Use m_dwarf2_per_objfile.
13236 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13237 (psyms_seen_size): Likewise.
13238 (write_gdbindex): Replace objfile parameter with
13239 dwarf2_per_objfile.
13240 (write_debug_names): Likewise.
13241 (write_psymtabs_to_index): Likewise.
13242 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13243 calls.
13244
e3b94546
SM
132452018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13246
13247 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13248 <dwarf2_per_objfile>: New field.
13249 (struct dwarf2_per_cu_data) <objfile>: Remove.
13250 <dwarf2_per_objfile>: New field.
13251 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13252 of objfile.
13253 (create_signatured_type_table_from_index): Likewise.
13254 (create_debug_type_hash_table): Likewise.
13255 (fill_in_sig_entry_from_dwo_entry): Likewise.
13256 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13257 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13258 objfile.
13259 (create_partial_symtab): Access objfile through
13260 dwarf2_per_objfile.
13261 (process_psymtab_comp_unit_reader): Likewise.
13262 (read_comp_units_from_section): Likewise.
13263 (scan_partial_symbols): Likewise.
13264 (add_partial_symbol): Likewise.
13265 (add_partial_subprogram): Likewise.
13266 (peek_die_abbrev): Likewise.
13267 (fixup_go_packaging): Likewise.
13268 (process_full_comp_unit): Likewise.
13269 (process_full_type_unit): Likewise.
13270 (process_imported_unit_die): Likewise.
13271 (dwarf2_compute_name): Likewise.
13272 (dwarf2_physname): Likewise.
13273 (read_import_statement): Likewise.
13274 (create_cus_hash_table): Assign dwarf2_physname instead of
13275 objfile.
13276 (read_func_scope): Access objfile through dwarf2_per_objfile.
13277 (read_lexical_block_scope): Likewise.
13278 (read_call_site_scope): Likewise.
13279 (read_variable): Likewise.
13280 (dwarf2_rnglists_process): Likewise.
13281 (dwarf2_ranges_process): Likewise.
13282 (dwarf2_ranges_read): Likewise.
13283 (dwarf2_record_block_ranges): Likewise.
13284 (dwarf2_add_field): Likewise.
13285 (dwarf2_add_member_fn): Likewise.
13286 (read_structure_type): Likewise.
13287 (process_structure_scope): Likewise.
13288 (read_enumeration_type): Likewise.
13289 (read_array_type): Likewise.
13290 (read_common_block): Likewise.
13291 (read_namespace_type): Likewise.
13292 (read_namespace): Likewise.
13293 (read_module_type): Likewise.
13294 (read_tag_pointer_type): Likewise.
13295 (read_tag_ptr_to_member_type): Likewise.
13296 (read_tag_string_type): Likewise.
13297 (read_subroutine_type): Likewise.
13298 (read_typedef): Likewise.
13299 (read_base_type): Likewise.
13300 (attr_to_dynamic_prop): Likewise.
13301 (read_subrange_type): Likewise.
13302 (read_unspecified_type): Likewise.
13303 (load_partial_dies): Likewise.
13304 (read_partial_die): Likewise.
13305 (find_partial_die): Likewise.
13306 (guess_partial_die_structure_name): Likewise.
13307 (fixup_partial_die): Likewise.
13308 (read_attribute_value): Likewise.
13309 (read_addr_index_from_leb128): Likewise.
13310 (dwarf2_read_addr_index): Likewise.
13311 (dwarf2_string_attr): Likewise.
13312 (lnp_state_machine::check_line_address): Likewise.
13313 (dwarf_decode_lines_1): Likewise.
13314 (dwarf_decode_lines): Likewise.
13315 (dwarf2_start_symtab): Likewise.
13316 (var_decode_location): Likewise.
13317 (new_symbol_full): Likewise.
13318 (dwarf2_const_value_data): Likewise.
13319 (dwarf2_const_value_attr): Likewise.
13320 (dwarf2_const_value): Likewise.
13321 (die_type): Likewise.
13322 (die_containing_type): Likewise.
13323 (lookup_die_type): Likewise.
13324 (guess_full_die_structure_name): Likewise.
13325 (anonymous_struct_prefix): Likewise.
13326 (dwarf2_name): Likewise.
13327 (follow_die_ref_or_sig): Likewise.
13328 (follow_die_offset): Likewise.
13329 (follow_die_ref): Likewise.
13330 (dwarf2_fetch_die_loc_sect_off): Likewise.
13331 (dwarf2_fetch_constant_bytes): Likewise.
13332 (dwarf2_fetch_die_type_sect_off): Likewise.
13333 (dwarf2_get_die_type): Likewise.
13334 (follow_die_sig): Likewise.
13335 (decode_locdesc): Likewise.
13336 (dwarf2_per_cu_objfile): Likewise.
13337 (dwarf2_per_cu_text_offset): Likewise.
13338 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13339 objfile.
13340 (set_die_type): Access objfile through
13341 dwarf2_per_objfile.
13342
b01ba14d
SM
133432018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13344
13345 * valprint.c (converted_character_d): Remove typedef.
13346 (DEF_VEC_O (converted_character_d)): Remove.
13347 (count_next_character): Use std::vector.
13348 (print_converted_chars_to_obstack): Likewise.
13349 (generic_printstr): Likewise.
13350
4d0fdd9b
SM
133512018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13352
13353 * xml-support.h (struct gdb_xml_value): Add constructor.
13354 <value>: Change type to unique_xmalloc_ptr.
13355 (gdb_xml_value_s): Remove typedef.
13356 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13357 (gdb_xml_element_start_handler): Change parameter type to
13358 std::vector.
13359 (xml_find_attribute): Likewise.
13360 * xml-support.c (xml_find_attribute): Change parameter type to
13361 std::vector and adjust.
13362 (gdb_xml_values_cleanup): Remove.
13363 (gdb_xml_parser::start_element): Adjust to std::vector.
13364 (xinclude_start_include): Change paraeter type to std::vector
13365 and adjust.
13366 * btrace.c (check_xml_btrace_version): Likewise.
13367 (parse_xml_btrace_block): Likewise.
13368 (parse_xml_btrace_pt_config_cpu): Likewise.
13369 (parse_xml_btrace_pt): Likewise.
13370 (parse_xml_btrace_conf_bts): Likewise.
13371 (parse_xml_btrace_conf_pt): Likewise.
13372 * memory-map.c (memory_map_start_memory): Likewise.
13373 (memory_map_start_property): Likewise.
13374 * osdata.c (osdata_start_osdata): Likewise.
13375 (osdata_start_item): Likewise.
13376 (osdata_start_column): Likewise.
13377 * remote.c (start_thread): Likewise.
13378 * solib-aix.c (library_list_start_library): Likewise.
13379 (library_list_start_list): Likewise.
13380 * solib-svr4.c (library_list_start_library): Likewise.
13381 (svr4_library_list_start_list): Likewise.
13382 * solib-target.c (library_list_start_segment): Likewise.
13383 (library_list_start_section): Likewise.
13384 (library_list_start_library): Likewise.
13385 (library_list_start_list): Likewise.
13386 * tracepoint.c (traceframe_info_start_memory): Likewise.
13387 (traceframe_info_start_tvar): Likewise.
13388 * xml-syscall.c (syscall_start_syscall): Likewise.
13389 * xml-tdesc.c (tdesc_start_target): Likewise.
13390 (tdesc_start_feature): Likewise.
13391 (tdesc_start_reg): Likewise.
13392 (tdesc_start_union): Likewise.
13393 (tdesc_start_struct): Likewise.
13394 (tdesc_start_flags): Likewise.
13395 (tdesc_start_enum): Likewise.
13396 (tdesc_start_field): Likewise.
13397 (tdesc_start_enum_value): Likewise.
13398 (tdesc_start_vector): Likewise.
13399
f979c73f
SM
134002018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13401
13402 * extension.h (struct xmethod_worker) <clone>: Remove.
13403 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13404 Remove.
13405 (python_xmethod_worker::clone): Remove.
13406 * valops.c (find_overload_match): Use std::move instead of
13407 clone.
13408
ba18742c
SM
134092018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13410
13411 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13412 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13413 <free_xmethod_worker_data>: Remove.
13414 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13415 <get_xmethod_arg_types>: Remove.
13416 <get_xmethod_result_type>: Remove.
13417 <invoke_xmethod>: Remove.
13418 * extension.c (new_xmethod_worker): Remove.
13419 (clone_xmethod_worker): Remove.
13420 (get_matching_xmethod_workers): Return void, pass std::vector by
13421 pointer.
13422 (get_xmethod_arg_types): Rename to...
13423 (xmethod_worker::get_arg_types): ... this, and adjust.
13424 (get_xmethod_result_type): Rename to...
13425 (xmethod_worker::get_result_type): ... this, and adjust.
13426 (invoke_xmethod): Remove.
13427 (free_xmethod_worker): Remove.
13428 (free_xmethod_worker_vec): Remove.
13429 * extension.h (enum ext_lang_rc): Move here from
13430 extension-priv.h.
13431 (struct xmethod_worker): Add constructor and destructor.
13432 <data>: Remove.
13433 <value>: Remove.
13434 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13435 virtual pure methods.
13436 <get_arg_types, get_result_type>: New methods.
13437 (xmethod_worker_ptr): Remove typedef.
13438 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13439 (xmethod_worker_vec): Remove typedef.
13440 (xmethod_worker_up): New typedef.
13441 (invoke_xmethod): Remove.
13442 (clone_xmethod_worker): Remove.
13443 (free_xmethod_worker): Remove.
13444 (free_xmethod_worker_vec): Remove.
13445 (get_xmethod_arg_types): Remove.
13446 (get_xmethod_result_type): Remove.
13447 * valops.c (find_method_list): Use std::vector, don't use
13448 intermediate vector.
13449 (value_find_oload_method_list): Use std::vector.
13450 (find_overload_match): Use std::vector.
13451 (find_oload_champ): Use std::vector.
13452 * value.c (value_free): Use operator delete.
13453 (value_of_xmethod): Rename to...
13454 (value_from_xmethod): ... this. Don't assign
13455 xmethod_worker::value, take rvalue-reference.
13456 (result_type_of_xmethod): Adjust.
13457 (call_xmethod): Adjust.
13458 * value.h: Include extension.h.
13459 (struct xmethod_worker): Don't forward-declare.
13460 (value_of_xmethod): Rename to...
13461 (value_from_xmethod): ... this, take rvalue-reference.
13462 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13463 (struct python_xmethod_worker): ... this, add constructor and
13464 destructor.
13465 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13466 (gdbpy_free_xmethod_worker_data): Rename to...
13467 (python_xmethod_worker::~python_xmethod_worker): ... this and
13468 adjust.
13469 (gdbpy_clone_xmethod_worker_data): Rename to...
13470 (python_xmethod_worker::clone): ... this and adjust.
13471 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13472 temporary vector.
13473 (gdbpy_get_xmethod_arg_types): Rename to...
13474 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13475 (gdbpy_get_xmethod_result_type): Rename to...
13476 (python_xmethod_worker::do_get_result_type): ... this and
13477 adjust.
13478 (gdbpy_invoke_xmethod): Rename to...
13479 (python_xmethod_worker::invoke): ... this and adjust.
13480 (new_python_xmethod_worker): Rename to...
13481 (python_xmethod_worker::python_xmethod_worker): ... this and
13482 adjust.
13483 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13484 Remove.
13485 (gdbpy_free_xmethod_worker_data): Remove.
13486 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13487 (gdbpy_get_xmethod_arg_types): Remove.
13488 (gdbpy_get_xmethod_result_type): Remove.
13489 (gdbpy_invoke_xmethod): Remove.
13490 * python/python.c (python_extension_ops): Remove obsolete
13491 callbacks.
13492
e379cee6
PA
134932018-01-05 Pedro Alves <palves@redhat.com>
13494
13495 PR gdb/18653
13496 * common/signals-state-save-restore.c
13497 (save_original_signals_state): New parameter 'quiet'. Warn if we
13498 find a custom handler preinstalled, instead of internal erroring.
13499 But only warn if !quiet.
13500 * common/signals-state-save-restore.h
13501 (save_original_signals_state): New parameter 'quiet'.
13502 * main.c (captured_main_1): Move save_original_signals_state call
13503 after option handling, and pass QUIET.
13504
a655456c
PA
135052018-01-05 Pedro Alves <palves@redhat.com>
13506
13507 * spu-tdep.c (spu_catch_start): Pass
13508 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13509
de63c46b
PA
135102018-01-05 Pedro Alves <palves@redhat.com>
13511
13512 PR gdb/22670
13513 * ada-lang.c (literal_symbol_name_matcher): New function.
13514 (ada_get_symbol_name_matcher): Use it for
13515 symbol_name_match_type::SEARCH_NAME.
13516 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13517 it down instead of assuming symbol_name_match_type::FULL.
13518 * block.h (block_lookup_symbol): New parameter 'match_type'.
13519 * c-valprint.c (print_unpacked_pointer): Use
13520 lookup_symbol_search_name instead of lookup_symbol.
13521 * compile/compile-object-load.c (get_out_value_type): Pass down
13522 symbol_name_match_type::SEARCH_NAME.
13523 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13524 symbol_name_match_type::FULL.
13525 * cp-support.c (cp_get_symbol_name_matcher): Handle
13526 symbol_name_match_type::SEARCH_NAME.
13527 * infrun.c (insert_exception_resume_breakpoint): Use
13528 lookup_symbol_search_name.
13529 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13530 * psymtab.c (maintenance_check_psymtabs): Use
13531 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13532 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13533 SYMBOL_SEARCH_NAME.
13534 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13535 if symbol_name_match_type::SEARCH_NAME.
13536 (lookup_symbol_in_language): Pass down
13537 symbol_name_match_type::FULL.
13538 (lookup_symbol_search_name): New.
13539 (lookup_language_this): Pass down
13540 symbol_name_match_type::SEARCH_NAME.
13541 (lookup_symbol_aux, lookup_local_symbol): New parameter
13542 'match_type'. Pass it down.
13543 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13544 (lookup_symbol_search_name): New declaration.
13545 (lookup_symbol_in_block): New 'match_type' parameter.
13546
f98fc17b
PA
135472018-01-05 Pedro Alves <palves@redhat.com>
13548
13549 PR gdb/22670
13550 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13551 ada_lookup_symbol.
13552 (ada_lookup_symbol): Reimplement in terms of
13553 ada_lookup_symbol_list, bits factored out from
13554 ada_lookup_encoded_symbol.
13555
342f8240
JB
135562018-01-05 Joel Brobecker <brobecker@adacore.com>
13557
13558 * ada-exp.y (write_object_renaming): When subscripting an array
13559 using a symbol as the index, pass the block in call to
13560 ada_lookup_encoded_symbol when looking that symbol up.
13561
7150d33c
JG
135622018-01-05 Jerome Guitton <guitton@adacore.com>
13563
13564 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13565 TYPE_INDEX_TYPE.
13566
cc0e770c
JB
135672018-01-05 Joel Brobecker <brobecker@adacore.com>
13568
13569 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13570 the case where VALUE_LVAL (val0) is not lval_memory.
13571
f79da888 135722018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
13573
13574 * ada-valprint.c (print_optional_low_bound): Handle
13575 character-indexed array printing like boolean-indexed array
13576 printing.
13577
cd385f94
JB
135782018-01-05 Joel Brobecker <brobecker@adacore.com>
13579
13580 * NEWS: Create a new section for the next release branch.
13581 Rename the section of the current branch, now that it has
13582 been cut.
13583
09aca949
JB
135842018-01-05 Joel Brobecker <brobecker@adacore.com>
13585
13586 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13587 * version.in: Bump version to 8.1.50.DATE-git.
13588
9f757bf7
XR
135892018-01-03 Xavier Roirand <roirand@adacore.com>
13590
13591 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13592 Add field.
13593 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13594 Add field.
13595 (default_exception_support_info) <catch_handlers_sym>: Add field.
13596 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13597 (ada_exception_name_addr_1): Add "catch handlers" handling.
13598 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13599 Update all callers.
13600 (create_excep_cond_exprs) <ex>: Add parameter.
13601 (re_set_exception): Update create_excep_cond_exprs call.
13602 (print_it_exception, print_one_exception, print_mention_exception)
13603 (print_recreate_exception): Add "catch handler" handling.
13604 (allocate_location_catch_handlers, re_set_catch_handlers)
13605 (check_status_catch_handlers, print_it_catch_handlers)
13606 (print_one_catch_handlers, print_mention_catch_handlers)
13607 (print_recreate_catch_handlers): New function.
13608 (catch_handlers_breakpoint_ops): New variable.
13609 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13610 Add parameter. Add "catch handler" handling.
13611 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13612 Add "catch handler" handling.
13613 (ada_exception_catchpoint_cond_string): Add "catch handler"
13614 handling.
13615 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13616 call.
13617 (catch_ada_handlers_command): New function.
13618 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13619 operations structure.
13620 (_initialize_ada_language): Add "catch handlers" command entry.
13621 * NEWS: Document "catch handlers" feature.
13622
9fe561ab
JB
136232018-01-02 Joel Brobecker <brobecker@adacore.com>
13624
13625 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13626 account when creating the array type of the slice.
13627 (ada_value_slice): Likewise.
13628
a405673c
JB
136292018-01-02 Joel Brobecker <brobecker@adacore.com>
13630
13631 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13632 New enum value.
13633 (create_array_type_with_stride): Add byte_stride_prop parameter.
13634 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13635 New parameter. Update all callers in this file.
13636 (array_type_has_dynamic_stride): New function.
13637 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13638 of arrays with dynamic byte strides.
13639 * dwarf2read.c (read_array_type): Add support for dynamic
13640 DW_AT_byte_stride attributes.
13641
74a2f8ff
JB
136422018-01-02 Joel Brobecker <brobecker@adacore.com>
13643
13644 * dwarf2read.c (read_unspecified_type): Treat
13645 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13646
e2882c85
JB
136472018-01-01 Joel Brobecker <brobecker@adacore.com>
13648
13649 Update copyright year range in all GDB files.
13650
1690bb24
JB
136512018-01-01 Joel Brobecker <brobecker@adacore.com>
13652
13653 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13654 and gdb/testsuite/gdb.base/step-line.c.
13655
0f0c98a8
JB
136562018-01-01 Joel Brobecker <brobecker@adacore.com>
13657
13658 * copyright.py (main): Dump the contents of
13659 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13660 even if BY_HAND is empty.
13661
82e1e79a
JB
136622018-01-01 Joel Brobecker <brobecker@adacore.com>
13663
13664 * top.c (print_gdb_version): Update Copyright year in version
13665 message.
13666
053f54e5 136672018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 13668
053f54e5 13669 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 13670
053f54e5 13671For older changes see ChangeLog-2017.
c906108c
SS
13672\f
13673Local Variables:
13674mode: change-log
13675left-margin: 8
13676fill-column: 74
13677version-control: never
57da7796 13678coding: utf-8
c906108c 13679End:
This page took 2.954203 seconds and 4 git commands to generate.