Handle missing Solaris auxv entries
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3d282ac3
RO
12018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2
3 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
4 renaming.
5 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
6 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
7
8c93fae6
RO
82018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9
10 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
11 (supply_fpregset, fill_fpregset): Move ...
12 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
13 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
14 Remove references to ioctl-based procfs.
15 Include <sys/reg.h>.
16 Remove PR_MODEL_NATIVE guards.
17 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
18 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
19
79b32f4a
XR
202018-09-19 Xavier Roirand <roirand@adacore.com>
21
22 PR gdb/20981:
23 * solib-darwin.c (darwin_get_dyld_bfd): New function.
24 (darwin_solib_get_all_image_info_addr_at_init): Update call.
25 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
26
07147793
JB
272018-09-19 John Baldwin <jhb@FreeBSD.org>
28
29 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
30 (fbsd_print_sockaddr_in6): Likewise.
31
23be8da7
RB
322018-09-19 Richard Bunt <richard.bunt@arm.com>
33 Chris January <chris.january@arm.com>
34
35 * eval.c (skip_undetermined_arglist): Skip argument list helper.
36 (evaluate_subexp_standard): Return a dummy type when
37 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
38 OP_F77_UNDETERMINED_ARGLIST case.
39 * expression.h (enum noside): Update comment.
40
7307a73a
RO
412018-09-19 George Vasick <george.vasick@oracle.com>
42
43 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
44
13db92d3
RO
452018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
46 April Chin <april.chin@oracle.com>
47 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
48
49 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
50 uint_t lwpid_t.
51 (create_procinfo): Print pids in /proc without leading zeros.
52
3d50f170
SL
532018-09-18 Sandra Loosemore <sandra@codesourcery.com>
54
55 * nios2-tdep.c (nios2_gcc_target_options): New.
56 (nios2_gdb_arch_init): Install new hook.
57
b567ca63
SM
582018-09-18 Simon Marchi <simon.marchi@ericsson.com>
59
60 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
61 New file.
62 * update-gnulib.sh: Apply patch.
63 * configure: Re-generate.
64
73f1bd76
JB
652018-09-18 John Baldwin <jhb@FreeBSD.org>
66
67 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
68 description. Make "info proc" command descriptions more
69 consistent.
70
8b113111
JB
712018-09-18 John Baldwin <jhb@FreeBSD.org>
72
73 * NEWS: Mention 'info proc files' command.
74
7e69672e
JB
752018-09-18 John Baldwin <jhb@FreeBSD.org>
76
77 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
78 descriptors for IP_FILES and IP_ALL.
79
57c2a98a
JB
802018-09-18 John Baldwin <jhb@FreeBSD.org>
81
82 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
83 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
84 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
85 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
86 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
87 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
88 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
89 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
90 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
91 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
92 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
93 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
94 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
95 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
96 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
97 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
98 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
99 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
100 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
101 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
102 (struct fbsd_sockaddr_un): New types.
103 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
104 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
105 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
106 (fbsd_core_info_proc_files): New functions.
107 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
108 IP_ALL.
109 * fbsd-tdep.h (fbsd_info_proc_files_header)
110 (fbsd_info_proc_files_entry): New.
111
e98ee8c4
JB
1122018-09-18 John Baldwin <jhb@FreeBSD.org>
113
114 * defs.h (enum info_proc_what) [IP_FILES]: New value.
115 * infcmd.c (info_proc_cmd_files): New function.
116 (_initialize_infcmd): Register 'info proc files' command.
117
725e2999
JB
1182018-09-18 John Baldwin <jhb@FreeBSD.org>
119
120 * gnulib/aclocal-m4-deps.mk: Re-generate.
121 * gnulib/aclocal.m4: Re-generate.
122 * gnulib/config.in: Re-generate.
123 * gnulib/configure: Re-generate.
124 * gnulib/import/Makefile.am: Re-generate.
125 * gnulib/import/Makefile.in: Re-generate.
126 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
127 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
128 * gnulib/import/arpa_inet.in.h: New file.
129 * gnulib/import/inet_ntop.c: New file.
130 * gnulib/import/m4/arpa_inet_h.m4: New file.
131 * gnulib/import/m4/inet_ntop.m4: New file.
132 * gnulib/import/m4/netinet_in_h.m4: New file.
133 * gnulib/import/m4/socklen.m4: New file.
134 * gnulib/import/m4/sockpfaf.m4: New file.
135 * gnulib/import/m4/stdalign.m4: New file.
136 * gnulib/import/m4/sys_uio_h.m4: New file.
137 * gnulib/import/netinet_in.in.h: New file.
138 * gnulib/import/stdalign.in.h: New file.
139 * gnulib/import/sys_socket.c: New file.
140 * gnulib/import/sys_socket.in.h: New file.
141 * gnulib/import/sys_uio.in.h: New file.
142 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
143 module.
144
2afffa7f
JB
1452018-09-18 John Baldwin <jhb@FreeBSD.org>
146
147 * gnulib/aclocal-m4-deps.mk: New file.
148 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
149 deterministically.
150
9f235e09
JB
1512018-09-18 John Baldwin <jhb@FreeBSD.org>
152
153 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
154 KVE_PATH.
155
40f03055
TT
1562018-09-18 Tom Tromey <tom@tromey.com>
157
158 * compile/compile-object-load.c (struct
159 link_hash_table_cleanup_data): Add constructor and destructor.
160 Use DISABLE_COPY_AND_ASSIGN.
161 (~link_hash_table_cleanup_data): Rename from
162 link_hash_table_free. Now a destructor.
163 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
164
c9e0a7e3
TT
1652018-09-18 Tom Tromey <tom@tromey.com>
166
167 * compile/compile-object-run.c (do_module_cleanup): Use delete.
168 * compile/compile-object-load.c (struct munmap_list): Move to
169 header file.
170 (munmap_list::add): Rename from munmap_list_add; rewrite.
171 (munmap_list::~munmap_list): Rename from munmap_list_free.
172 (munmap_listp_free_cleanup): Remove.
173 (compile_object_load): Update.
174 * compile/compile-object-load.h (struct munmap_list): Move from
175 compile-object-load.c. Rewrite.
176
3ff2c72e
AH
1772018-09-18 Alan Hayward <alan.hayward@arm.com>
178
179 * aarch64-tdep.c (pass_in_v): Use register size.
180 (aarch64_extract_return_value): Likewise.
181 (aarch64_store_return_value): Likewise.
182
206c1947
RO
1832018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
184
185 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
186 rlim_t.
187
6eb5dbce
PW
1882018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
189
190 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
191 Fix short help line.
192
ae292b3a
TT
1932018-09-17 Tom Tromey <tom@tromey.com>
194
195 PR python/20445:
196 * configure: Rebuild.
197 * configure.ac: Conditionally use -DNDEBUG for Python.
198
da658607
TT
1992018-09-17 Tom Tromey <tom@tromey.com>
200
201 * configure: Rebuild.
202 * configure.ac: Use gmp as a library dependency when checking for
203 mpfr.
204
d35da542
PA
2052018-09-17 Pedro Alves <palves@redhat.com>
206
207 * python/py-inferior.c (find_inferior_object): Delete.
208
461464f2
SM
2092018-09-17 Simon Marchi <simon.marchi@ericsson.com>
210
211 * compile/compile-cplus-types.c
212 (compile_cplus_instance::enter_scope): Don't use new_scope after
213 std::move.
214
e6cd1dc1
TT
2152018-09-17 Tom Tromey <tom@tromey.com>
216
217 * common/pathstuff.c (get_standard_cache_dir): Use
218 ~/Library/Caches on macOS.
219 * common/pathstuff.h (get_standard_cache_dir): Update comment.
220
8588b356
SM
2212018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
222
223 PR python/23669
224 * breakpoint.c (commands_cmd_element): New.
225 (_initialize_breakpoint): Assign commands_cmd_element.
226 * breakpoint.h (commands_cmd_element): New.
227 * cli/cli-script.c (while_cmd_element, if_command,
228 define_cmd_element): New.
229 (command_name_equals): Remove.
230 (process_next_line): Compare commands by pointer, not by name.
231 (_initialize_cli_script): Assign the various cmd_list_element
232 variables.
233 * compile/compile.c (compile_cmd_element): New.
234 (_initialize_compile): Assign compile_cmd_element.
235 * compile/compile.h (compile_cmd_element): New.
236 * guile/guile.c (guile_cmd_element): New.
237 (install_gdb_commands): Assign guile_cmd_element.
238 * guile/guile.h (guile_cmd_element): New.
239 * python/python.c (python_cmd_element): New.
240 (_initialize_python): Assign python_cmd_element.
241 * python/python.h (python_cmd_element): New.
242 * tracepoint.c (while_stepping_cmd_element): New.
243 (_initialize_tracepoint): Assign while_stepping_cmd_element.
244 * tracepoint.h (while_stepping_cmd_element): New.
245
cb524840
TT
2462018-09-17 Tom Tromey <tom@tromey.com>
247
248 * infrun.c (save_infcall_suspend_state): Return
249 infcall_suspend_state_up.
250 (save_infcall_control_state): Return infcall_control_state_up.
251 * inferior.h (save_infcall_suspend_state)
252 (save_infcall_control_state): Declare later. Return unique
253 pointers.
254
2d844eaf
TT
2552018-09-17 Tom Tromey <tom@tromey.com>
256
257 * infrun.c (struct stop_context): Declare constructor,
258 destructor, "changed" method.
259 (stop_context::stop_context): Rename from save_stop_context.
260 (stop_context::~stop_context): Rename from
261 release_stop_context_cleanup.
262 (normal_stop): Update.
263 (stop_context::changed): Rename from stop_context_changed. Return
264 bool.
265
c7c4d3fa
TT
2662018-09-17 Tom Tromey <tom@tromey.com>
267
268 * inferior.h (struct infcall_suspend_state_deleter): New.
269 (infcall_suspend_state_up): New typedef.
270 (struct infcall_control_state_deleter): New.
271 (infcall_control_state_up): New typedef.
272 (make_cleanup_restore_infcall_suspend_state)
273 (make_cleanup_restore_infcall_control_state): Don't declare.
274 * infcall.c (call_function_by_hand_dummy): Update.
275 * infrun.c (do_restore_infcall_suspend_state_cleanup)
276 (make_cleanup_restore_infcall_suspend_state): Remove.
277 (do_restore_infcall_control_state_cleanup)
278 (make_cleanup_restore_infcall_control_state): Remove.
279
ee841dd8
TT
2802018-09-17 Tom Tromey <tom@tromey.com>
281
282 * gdbthread.h (struct thread_control_state): Add initializer.
283 (class thread_info) <control>: Remove initializer.
284 * inferior.h (struct inferior_control_state): Add initializer.
285 (class inferior) <control>: Remove initializer.
286 (exit_inferior_1): Update.
287 * infrun.c (struct infcall_control_state): Add constructors.
288 (save_infcall_control_state): Use new.
289 (restore_infcall_control_state, discard_infcall_control_state):
290 Use delete.
291
117f580a
TT
2922018-09-17 Tom Tromey <tom@tromey.com>
293
294 * infrun.c (struct infcall_suspend_state) <registers>: Now a
295 unique_ptr.
296 <siginfo_data>: Now a unique_xmalloc_ptr.
297 (save_infcall_suspend_state, restore_infcall_suspend_state)
298 (discard_infcall_suspend_state)
299 (get_infcall_suspend_state_regcache): Update.
300
dd848631
TT
3012018-09-17 Tom Tromey <tom@tromey.com>
302
303 * gdbthread.h (struct thread_suspend_state): Add initializers.
304 (class thread_info) <suspend>: Remove initializer.
305 * infrun.c (struct infcall_suspend_state): Add initializers.
306 (save_infcall_suspend_state): Use new.
307 (discard_infcall_suspend_state): Use delete.
308
1a338907
TT
3092018-09-16 Tom Tromey <tom@tromey.com>
310
311 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
312 Remove.
313 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
314 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
315 (py_varobj_iter_new): Likewise.
316 (py_varobj_get_iterator): Use gdbpy_ref.
317
4a137fec
TT
3182018-09-16 Tom Tromey <tom@tromey.com>
319
320 * python/py-threadevent.c (py_get_event_thread): Simplify.
321 * python/py-inferior.c (infpy_thread_from_thread_handle):
322 Return immediately after calling thread_to_thread_object. Use
323 Py_RETURN_NONE.
324 (thread_to_thread_object): Set the exception on a NULL return.
325
8ff03f0b
SM
3262018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
327
328 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
329
94c8b725
TT
3302018-09-16 Tom Tromey <tom@tromey.com>
331
332 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
333 Remove.
334
db1337cc
TT
3352018-09-16 Tom Tromey <tom@tromey.com>
336
337 * python/python-internal.h (thread_to_thread_object): Change
338 return type.
339 * python/py-inferior.c (thread_to_thread_object): Return a new
340 reference.
341 (infpy_thread_from_thread_handle): Update.
342 * python/py-infthread.c (gdbpy_selected_thread): Update.
343 * python/py-stopevent.c (create_stop_event_object): Update.
344 * python/py-threadevent.c (py_get_event_thread): Return a new
345 reference.
346 (py_get_event_thread): Update.
347 * python/py-event.h (py_get_event_thread): Change return type.
348 * python/py-continueevent.c (create_continue_event_object):
349 Update.
350
0a9db5ad
TT
3512018-09-16 Tom Tromey <tom@tromey.com>
352
353 * python/py-progspace.c (pspy_get_objfiles): Update.
354 * python/python-internal.h (objfile_to_objfile_object): Change
355 return type.
356 * python/py-newobjfileevent.c (create_new_objfile_event_object):
357 Update.
358 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
359 Update.
360 * python/python.c (gdbpy_get_current_objfile): Update.
361 (gdbpy_objfiles): Update.
362 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
363 Update.
364 (objfile_to_objfile_object): Return a new reference.
365 * python/py-symtab.c (stpy_get_objfile): Update.
366 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
367 Update.
368
3c7aa307
TT
3692018-09-16 Tom Tromey <tom@tromey.com>
370
371 * python/py-inferior.c (infpy_get_progspace): Update.
372 * python/python-internal.h (pspace_to_pspace_object): Change
373 return type.
374 * python/py-newobjfileevent.c
375 (create_clear_objfiles_event_object): Update.
376 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
377 Update.
378 * python/python.c (gdbpy_get_current_progspace): Update.
379 (gdbpy_progspaces): Update.
380 * python/py-progspace.c (pspace_to_pspace_object): Return a new
381 reference.
382 * python/py-objfile.c (objfpy_get_progspace): Update.
383 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
384 Update.
385
8743a9cd
TT
3862018-09-16 Tom Tromey <tom@tromey.com>
387
388 * python/lib/gdb/__init__.py (current_progspace, objfiles)
389 (solib_name, block_for_pc, find_pc_line): New functions.
390 (execute_unwinders): Update.
391 * python/py-block.c (gdbpy_block_for_pc): Remove.
392 * python/py-inferior.c (infpy_get_progspace): New function.
393 (inferior_object_getset) <progspace>: Add.
394 * python/py-progspace.c (pspy_objfiles): Rewrite.
395 (pspy_solib_name, pspy_block_for_pc)
396 (pspy_find_pc_line, pspy_is_valid): New functions.
397 (progspace_object_methods): Add entries for solib_name,
398 block_for_pc, find_pc_line, is_valid.
399 * python/python-internal.h (gdbpy_block_for_pc)
400 (build_objfiles_list): Don't declare.
401 * python/python.c: Don't include solib.h.
402 (gdbpy_solib_name, gdbpy_find_pc_line)
403 (gdbpy_get_current_progspace, build_objfiles_list)
404 (gdbpy_objfiles): Remove.
405 (GdbMethods) <current_progspace, objfiles, block_for_pc,
406 solib_name, find_pc_line>: Remove entries.
407
65e65158
TT
4082018-09-16 Tom Tromey <tom@tromey.com>
409
410 * top.c (new_ui_command): Use GNU style for metasyntactic
411 variables.
412 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
413 variables.
414 * maint.c (maintenance_translate_address): Remove "<>" around
415 text.
416 * interps.c (interpreter_exec_cmd): Use GNU style for
417 metasyntactic variables.
418 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
419 metasyntactic variables.
420 * tracepoint.c (tfind_range_command): Use GNU style for
421 metasyntactic variables.
422 (tfind_outside_command): Likewise.
423 (_initialize_tracepoint): Likewise.
424 * remote.c (extended_remote_target::create_inferior): Use GNU
425 style for metasyntactic variables.
426 * sparc64-tdep.c (adi_examine_command): Use GNU style for
427 metasyntactic variables.
428 (adi_assign_command): Likewise.
429
f4bab6ff
TT
4302018-09-16 Tom Tromey <tom@tromey.com>
431
432 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
433 metasyntactic variables. Print message if no disassembler options
434 are available.
435
cbaaa0ca
TT
4362018-09-15 Tom Tromey <tom@tromey.com>
437
438 * infcmd.c (get_inferior_args): Return const char *.
439 * inferior.h (get_inferior_args): Return type now const.
440 * linux-tdep.c (linux_fill_prpsinfo): Update.
441 * procfs.c (procfs_target::make_corefile_notes): Update.
442
a3a6aef4
TT
4432018-09-07 Tom Tromey <tom@tromey.com>
444
445 * python/python.c (execute_gdb_command): Call bpstat_do_actions
446 inside the TRY.
447
f70e088f
SL
4482018-09-14 Sandra Loosemore <sandra@codesourcery.com>
449
450 * nios2-tdep.c (nios2_type_align): New.
451 (nios2_gdb_arch_init): Install type_align hook.
452
2fabdf33
AB
4532018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
454
455 * eval.c (fake_method::fake_method): Call xzalloc directly for a
456 type that is neither object file owned, nor gdbarch owned.
457 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
458 gdbarch is non-NULL.
459 (alloc_type_instance): Allocate non-objfile owned types on the
460 gdbarch obstack.
461 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
462 using TYPE_ALLOC to ensure memory is allocated on the correct
463 obstack.
464 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
465 obstack, or the gdbarch obstack.
466 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
467
b4b08fa2
TT
4682018-09-14 Tom Tromey <tom@tromey.com>
469
470 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
471 block.
472
87b240d4
TT
4732018-09-14 Tom Tromey <tom@tromey.com>
474
475 * nat/fork-inferior.c (get_startup_shell): Remove "static".
476
7d221512
TT
4772018-09-13 Tom Tromey <tom@tromey.com>
478
479 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
480 static.
481
97e67fc6
TT
4822018-09-13 Tom Tromey <tom@tromey.com>
483
484 * exec.c (try_open_exec_file): Use std::string.
485
803c08d0
TT
4862018-09-13 Tom Tromey <tom@tromey.com>
487
488 * utils.h (gdb_bfd_errmsg): Return std::string.
489 * exec.c (exec_file_attach): Update.
490 * compile/compile-object-load.c (compile_object_load): Update.
491 * utils.c (gdb_bfd_errmsg): Return std::string.
492
5b4cbbe3
TT
4932018-09-13 Tom Tromey <tom@tromey.com>
494
495 * procfs.c (struct procinfo_deleter): New.
496 (procinfo_up): New typedef.
497 (do_destroy_procinfo_cleanup): Remove.
498 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
499
db68fbe2
TT
5002018-09-13 Tom Tromey <tom@tromey.com>
501
502 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
503
0ae1a321
SM
5042018-09-13 Simon Marchi <simon.marchi@ericsson.com>
5052018-09-13 Tom Tromey <tom@tromey.com>
506
507 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
508 (pspy_get_objfiles): New function.
509 (progspace_object_methods): New.
510 (pspace_object_type): Add tp_methods callback.
511 * python/python-internal.h (build_objfiles_list): New
512 declaration.
513 * python/python.c (build_objfiles_list): New function.
514 (gdbpy_objfiles): Implement using build_objfiles_list.
515 * NEWS: Mention the Progspace.objfiles method.
516
a40bf0c2
SM
5172018-09-13 Simon Marchi <simon.marchi@ericsson.com>
518
519 * python/py-inferior.c (infpy_get_progspace): New function.
520 (inferior_object_getset): Add progspace property.
521 * NEWS: Mention the new property.
522
4a3fe98f
TT
5232018-09-13 Tom Tromey <tom@tromey.com>
524
525 PR rust/23650:
526 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
527
098b2108
TT
5282018-09-13 Tom Tromey <tom@tromey.com>
529
530 PR rust/23626:
531 * rust-lang.c (rust_enum_variant): Now static.
532 (rust_empty_enum_p): New function.
533 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
534 Handle empty enum.
535
1256af7d
SM
5362018-09-13 Simon Marchi <simon.marchi@ericsson.com>
537
538 * python/py-inferior.c (infpy_repr): New.
539 (inferior_object_type): Register infpy_repr.
540 * python/py-objfile.c (objfpy_repr): New.
541 (objfile_object_type): Register objfpy_repr.
542
f117a62c
JB
5432018-09-12 John Baldwin <jhb@FreeBSD.org>
544
545 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
546
88f22c34
JB
5472018-09-12 John Baldwin <jhb@FreeBSD.org>
548
549 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
550 typo.
551
3c025cfe
SDJ
5522018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
553
554 * common/common-utils.c: Don't include '<sys/stat.h>'.
555 (is_regular_file): Move to...
556 * common/filestuff.c (is_regular_file): ... here.
557 * common/common-utils.h (is_regular_file): Move to...
558 * common/filestuff.h (is_regular_file): ... here.
559
3e68067f
SM
5602018-09-12 Simon Marchi <simon.marchi@ericsson.com>
561
562 * skip.c (debug_skip): New variable.
563 (skiplist_entry::do_skip_file_p): Add debug output.
564 (skiplist_entry::do_skip_gfile_p): Likewise.
565 (skiplist_entry::skip_function_p): Likewise.
566 (_initialize_step_skip): Create debug command.
567 * NEWS: Mention set/show debug skip.
568
d6be54ef
XR
5692018-09-11 Xavier Roirand <roirand@adacore.com>
570
571 * darwin-nat.c (should_disable_startup_with_shell):
572 New function.
573 (darwin_nat_target::create_inferior): Add call.
574
de1ec836
XR
5752018-09-11 Xavier Roirand <roirand@adacore.com>
576
577 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
578 inf_port, msg_state>: Initialize.
579 (struct darwin_thread_info) <signaled, single_step>: Change
580 type and initialize.
581 (struct darwin_thread_info) <event>: Initialize.
582
e2fc52e7
SDJ
5832018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
584
585 PR gdb/23555
586 PR gdb/23558
587 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
588 guesses.
589
5e8754f9
SDJ
5902018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
591
592 Revert:
593 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
594
595 PR gdb/23555
596 PR gdb/23558
597 * gnulib/aclocal.m4: Regenerate.
598 * gnulib/config.in: Regenerate.
599 * gnulib/configure: Regenerate.
600 * gnulib/import/Makefile.am: Update.
601 * gnulib/import/Makefile.in: Update.
602 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
603 * gnulib/import/_Noreturn.h: ... this.
604 * gnulib/import/alloca.in.h: Update.
605 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
606 * gnulib/import/arg-nonnull.h: ... this.
607 * gnulib/import/assure.h: Update.
608 * gnulib/import/at-func.c: Update.
609 * gnulib/import/basename-lgpl.c: Update.
610 * gnulib/import/extra/snippet/c++defs.h: Rename to...
611 * gnulib/import/c++defs.h: ... this.
612 * gnulib/import/canonicalize-lgpl.c: Update.
613 * gnulib/import/cdefs.h: Update.
614 * gnulib/import/chdir-long.c: Update.
615 * gnulib/import/chdir-long.h: Update.
616 * gnulib/import/cloexec.c: Update.
617 * gnulib/import/cloexec.h: Update.
618 * gnulib/import/close.c: Update.
619 * gnulib/import/closedir.c: Update.
620 * gnulib/import/config.charset: Update.
621 * gnulib/import/dirent-private.h: Update.
622 * gnulib/import/dirent.in.h: Update.
623 * gnulib/import/dirfd.c: Update.
624 * gnulib/import/dirname-lgpl.c: Update.
625 * gnulib/import/dirname.h: Update.
626 * gnulib/import/dosname.h: Update.
627 * gnulib/import/dup-safer-flag.c: Update.
628 * gnulib/import/dup-safer.c: Update.
629 * gnulib/import/dup.c: Update.
630 * gnulib/import/dup2.c: Update.
631 * gnulib/import/errno.in.h: Update.
632 * gnulib/import/error.c: Update.
633 * gnulib/import/error.h: Update.
634 * gnulib/import/exitfail.c: Update.
635 * gnulib/import/exitfail.h: Update.
636 * gnulib/import/extra/update-copyright: Update.
637 * gnulib/import/fchdir.c: Update.
638 * gnulib/import/fcntl.c: Update.
639 * gnulib/import/fcntl.in.h: Update.
640 * gnulib/import/fd-hook.c: Update.
641 * gnulib/import/fd-hook.h: Update.
642 * gnulib/import/fd-safer-flag.c: Update.
643 * gnulib/import/fd-safer.c: Update.
644 * gnulib/import/fdopendir.c: Update.
645 * gnulib/import/filename.h: Update.
646 * gnulib/import/filenamecat-lgpl.c: Update.
647 * gnulib/import/filenamecat.h: Update.
648 * gnulib/import/flexmember.h: Update.
649 * gnulib/import/float+.h: Update.
650 * gnulib/import/float.c: Update.
651 * gnulib/import/float.in.h: Update.
652 * gnulib/import/fnmatch.c: Update.
653 * gnulib/import/fnmatch.in.h: Update.
654 * gnulib/import/fnmatch_loop.c: Update.
655 * gnulib/import/fpucw.h: Update.
656 * gnulib/import/frexp.c: Update.
657 * gnulib/import/frexpl.c: Update.
658 * gnulib/import/fstat.c: Update.
659 * gnulib/import/fstatat.c: Update.
660 * gnulib/import/getcwd-lgpl.c: Update.
661 * gnulib/import/getcwd.c: Update.
662 * gnulib/import/getdtablesize.c: Update.
663 * gnulib/import/getlogin_r.c: Update.
664 * gnulib/import/getprogname.c: Update.
665 * gnulib/import/getprogname.h: Update.
666 * gnulib/import/gettext.h: Update.
667 * gnulib/import/gettimeofday.c: Update.
668 * gnulib/import/glob-libc.h: Update.
669 * gnulib/import/glob.c: Update.
670 * gnulib/import/glob.in.h: Update.
671 * gnulib/import/glob_internal.h: Update.
672 * gnulib/import/glob_pattern_p.c: Update.
673 * gnulib/import/globfree.c: Update.
674 * gnulib/import/hard-locale.c: Update.
675 * gnulib/import/hard-locale.h: Update.
676 * gnulib/import/intprops.h: Update.
677 * gnulib/import/inttypes.in.h: Update.
678 * gnulib/import/isnan.c: Update.
679 * gnulib/import/isnand-nolibm.h: Update.
680 * gnulib/import/isnand.c: Update.
681 * gnulib/import/isnanl-nolibm.h: Update.
682 * gnulib/import/isnanl.c: Update.
683 * gnulib/import/itold.c: Update.
684 * gnulib/import/libc-config.h: Update.
685 * gnulib/import/limits.in.h: Update.
686 * gnulib/import/localcharset.c: Update.
687 * gnulib/import/localcharset.h: Update.
688 * gnulib/import/localtime-buffer.c: Update.
689 * gnulib/import/localtime-buffer.h: Update.
690 * gnulib/import/lstat.c: Update.
691 * gnulib/import/m4/00gnulib.m4: Update.
692 * gnulib/import/m4/__inline.m4: Update.
693 * gnulib/import/m4/absolute-header.m4: Update.
694 * gnulib/import/m4/alloca.m4: Update.
695 * gnulib/import/m4/builtin-expect.m4: Update.
696 * gnulib/import/m4/canonicalize.m4: Update.
697 * gnulib/import/m4/chdir-long.m4: Update.
698 * gnulib/import/m4/close.m4: Update.
699 * gnulib/import/m4/closedir.m4: Update.
700 * gnulib/import/m4/configmake.m4: Update.
701 * gnulib/import/m4/d-ino.m4: Update.
702 * gnulib/import/m4/d-type.m4: Update.
703 * gnulib/import/m4/dirent_h.m4: Update.
704 * gnulib/import/m4/dirfd.m4: Update.
705 * gnulib/import/m4/dirname.m4: Update.
706 * gnulib/import/m4/double-slash-root.m4: Update.
707 * gnulib/import/m4/dup.m4: Update.
708 * gnulib/import/m4/dup2.m4: Update.
709 * gnulib/import/m4/eealloc.m4: Update.
710 * gnulib/import/m4/environ.m4: Update.
711 * gnulib/import/m4/errno_h.m4: Update.
712 * gnulib/import/m4/error.m4: Update.
713 * gnulib/import/m4/exponentd.m4: Update.
714 * gnulib/import/m4/exponentl.m4: Update.
715 * gnulib/import/m4/extensions.m4: Update.
716 * gnulib/import/m4/extern-inline.m4: Update.
717 * gnulib/import/m4/fchdir.m4: Update.
718 * gnulib/import/m4/fcntl-o.m4: Update.
719 * gnulib/import/m4/fcntl.m4: Update.
720 * gnulib/import/m4/fcntl_h.m4: Update.
721 * gnulib/import/m4/fdopendir.m4: Update.
722 * gnulib/import/m4/filenamecat.m4: Update.
723 * gnulib/import/m4/flexmember.m4: Update.
724 * gnulib/import/m4/float_h.m4: Update.
725 * gnulib/import/m4/fnmatch.m4: Update.
726 * gnulib/import/m4/fnmatch_h.m4: Update.
727 * gnulib/import/m4/fpieee.m4: Update.
728 * gnulib/import/m4/frexp.m4: Update.
729 * gnulib/import/m4/frexpl.m4: Update.
730 * gnulib/import/m4/fstat.m4: Update.
731 * gnulib/import/m4/fstatat.m4: Update.
732 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
733 * gnulib/import/m4/getcwd-path-max.m4: Update.
734 * gnulib/import/m4/getcwd.m4: Update.
735 * gnulib/import/m4/getdtablesize.m4: Update.
736 * gnulib/import/m4/getlogin.m4: Update.
737 * gnulib/import/m4/getlogin_r.m4: Update.
738 * gnulib/import/m4/getpagesize.m4: Update.
739 * gnulib/import/m4/getprogname.m4: Update.
740 * gnulib/import/m4/gettimeofday.m4: Update.
741 * gnulib/import/m4/glibc21.m4: Update.
742 * gnulib/import/m4/glob.m4: Update.
743 * gnulib/import/m4/glob_h.m4: Update.
744 * gnulib/import/m4/gnulib-cache.m4: Update.
745 * gnulib/import/m4/gnulib-common.m4: Update.
746 * gnulib/import/m4/gnulib-comp.m4: Update.
747 * gnulib/import/m4/gnulib-tool.m4: Update.
748 * gnulib/import/m4/hard-locale.m4: Update.
749 * gnulib/import/m4/include_next.m4: Update.
750 * gnulib/import/m4/inttypes-pri.m4: Update.
751 * gnulib/import/m4/inttypes.m4: Update.
752 * gnulib/import/m4/isnand.m4: Update.
753 * gnulib/import/m4/isnanl.m4: Update.
754 * gnulib/import/m4/largefile.m4: Update.
755 * gnulib/import/m4/limits-h.m4: Update.
756 * gnulib/import/m4/localcharset.m4: Update.
757 * gnulib/import/m4/locale-fr.m4: Update.
758 * gnulib/import/m4/locale-ja.m4: Update.
759 * gnulib/import/m4/locale-zh.m4: Update.
760 * gnulib/import/m4/localtime-buffer.m4: Update.
761 * gnulib/import/m4/longlong.m4: Update.
762 * gnulib/import/m4/lstat.m4: Update.
763 * gnulib/import/m4/malloc.m4: Update.
764 * gnulib/import/m4/malloca.m4: Update.
765 * gnulib/import/m4/math_h.m4: Update.
766 * gnulib/import/m4/mbrtowc.m4: Update.
767 * gnulib/import/m4/mbsinit.m4: Update.
768 * gnulib/import/m4/mbsrtowcs.m4: Update.
769 * gnulib/import/m4/mbstate_t.m4: Update.
770 * gnulib/import/m4/memchr.m4: Update.
771 * gnulib/import/m4/memmem.m4: Update.
772 * gnulib/import/m4/mempcpy.m4: Update.
773 * gnulib/import/m4/memrchr.m4: Update.
774 * gnulib/import/m4/mkdir.m4: Update.
775 * gnulib/import/m4/mkstemp.m4: Update.
776 * gnulib/import/m4/mmap-anon.m4: Update.
777 * gnulib/import/m4/mode_t.m4: Update.
778 * gnulib/import/m4/msvc-inval.m4: Update.
779 * gnulib/import/m4/msvc-nothrow.m4: Update.
780 * gnulib/import/m4/multiarch.m4: Update.
781 * gnulib/import/m4/nocrash.m4: Update.
782 * gnulib/import/m4/off_t.m4: Update.
783 * gnulib/import/m4/onceonly.m4: Update.
784 * gnulib/import/m4/open-cloexec.m4: Update.
785 * gnulib/import/m4/open.m4: Update.
786 * gnulib/import/m4/openat.m4: Update.
787 * gnulib/import/m4/opendir.m4: Update.
788 * gnulib/import/m4/pathmax.m4: Update.
789 * gnulib/import/m4/rawmemchr.m4: Update.
790 * gnulib/import/m4/readdir.m4: Update.
791 * gnulib/import/m4/readlink.m4: Update.
792 * gnulib/import/m4/realloc.m4: Update.
793 * gnulib/import/m4/rename.m4: Update.
794 * gnulib/import/m4/rewinddir.m4: Update.
795 * gnulib/import/m4/rmdir.m4: Update.
796 * gnulib/import/m4/save-cwd.m4: Update.
797 * gnulib/import/m4/secure_getenv.m4: Update.
798 * gnulib/import/m4/setenv.m4: Update.
799 * gnulib/import/m4/signal_h.m4: Update.
800 * gnulib/import/m4/ssize_t.m4: Update.
801 * gnulib/import/m4/stat-time.m4: Update.
802 * gnulib/import/m4/stat.m4: Update.
803 * gnulib/import/m4/std-gnu11.m4: Update.
804 * gnulib/import/m4/stdbool.m4: Update.
805 * gnulib/import/m4/stddef_h.m4: Update.
806 * gnulib/import/m4/stdint.m4: Update.
807 * gnulib/import/m4/stdio_h.m4: Update.
808 * gnulib/import/m4/stdlib_h.m4: Update.
809 * gnulib/import/m4/strchrnul.m4: Update.
810 * gnulib/import/m4/strdup.m4: Update.
811 * gnulib/import/m4/strerror.m4: Update.
812 * gnulib/import/m4/string_h.m4: Update.
813 * gnulib/import/m4/strstr.m4: Update.
814 * gnulib/import/m4/strtok_r.m4: Update.
815 * gnulib/import/m4/sys_socket_h.m4: Update.
816 * gnulib/import/m4/sys_stat_h.m4: Update.
817 * gnulib/import/m4/sys_time_h.m4: Update.
818 * gnulib/import/m4/sys_types_h.m4: Update.
819 * gnulib/import/m4/tempname.m4: Update.
820 * gnulib/import/m4/time_h.m4: Update.
821 * gnulib/import/m4/unistd-safer.m4: Update.
822 * gnulib/import/m4/unistd_h.m4: Update.
823 * gnulib/import/m4/warn-on-use.m4: Update.
824 * gnulib/import/m4/wchar_h.m4: Update.
825 * gnulib/import/m4/wchar_t.m4: Update.
826 * gnulib/import/m4/wctype_h.m4: Update.
827 * gnulib/import/m4/wint_t.m4: Update.
828 * gnulib/import/malloc.c: Update.
829 * gnulib/import/malloc/scratch_buffer.h: Update.
830 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
831 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
832 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
833 * gnulib/import/malloca.c: Update.
834 * gnulib/import/malloca.h: Update.
835 * gnulib/import/malloca.valgrind: Update.
836 * gnulib/import/math.in.h: Update.
837 * gnulib/import/mbrtowc.c: Update.
838 * gnulib/import/mbsinit.c: Update.
839 * gnulib/import/mbsrtowcs-impl.h: Update.
840 * gnulib/import/mbsrtowcs-state.c: Update.
841 * gnulib/import/mbsrtowcs.c: Update.
842 * gnulib/import/memchr.c: Update.
843 * gnulib/import/memmem.c: Update.
844 * gnulib/import/mempcpy.c: Update.
845 * gnulib/import/memrchr.c: Update.
846 * gnulib/import/mkdir.c: Update.
847 * gnulib/import/mkstemp.c: Update.
848 * gnulib/import/msvc-inval.c: Update.
849 * gnulib/import/msvc-inval.h: Update.
850 * gnulib/import/msvc-nothrow.c: Update.
851 * gnulib/import/msvc-nothrow.h: Update.
852 * gnulib/import/open.c: Update.
853 * gnulib/import/openat-die.c: Update.
854 * gnulib/import/openat-priv.h: Update.
855 * gnulib/import/openat-proc.c: Update.
856 * gnulib/import/openat.c: Update.
857 * gnulib/import/openat.h: Update.
858 * gnulib/import/opendir.c: Update.
859 * gnulib/import/pathmax.h: Update.
860 * gnulib/import/pipe-safer.c: Update.
861 * gnulib/import/rawmemchr.c: Update.
862 * gnulib/import/readdir.c: Update.
863 * gnulib/import/readlink.c: Update.
864 * gnulib/import/realloc.c: Update.
865 * gnulib/import/ref-add.sin: Update.
866 * gnulib/import/ref-del.sin: Update.
867 * gnulib/import/rename.c: Update.
868 * gnulib/import/rewinddir.c: Update.
869 * gnulib/import/rmdir.c: Update.
870 * gnulib/import/same-inode.h: Update.
871 * gnulib/import/save-cwd.c: Update.
872 * gnulib/import/save-cwd.h: Update.
873 * gnulib/import/scratch_buffer.h: Update.
874 * gnulib/import/secure_getenv.c: Update.
875 * gnulib/import/setenv.c: Update.
876 * gnulib/import/signal.in.h: Update.
877 * gnulib/import/stat-time.c: Update.
878 * gnulib/import/stat-time.h: Update.
879 * gnulib/import/stat-w32.c: Update.
880 * gnulib/import/stat-w32.h: Update.
881 * gnulib/import/stat.c: Update.
882 * gnulib/import/stdbool.in.h: Update.
883 * gnulib/import/stddef.in.h: Update.
884 * gnulib/import/stdint.in.h: Update.
885 * gnulib/import/stdio.in.h: Update.
886 * gnulib/import/stdlib.in.h: Update.
887 * gnulib/import/str-two-way.h: Update.
888 * gnulib/import/strchrnul.c: Update.
889 * gnulib/import/strdup.c: Update.
890 * gnulib/import/streq.h: Update.
891 * gnulib/import/strerror-override.c: Update.
892 * gnulib/import/strerror-override.h: Update.
893 * gnulib/import/strerror.c: Update.
894 * gnulib/import/string.in.h: Update.
895 * gnulib/import/stripslash.c: Update.
896 * gnulib/import/strnlen1.c: Update.
897 * gnulib/import/strnlen1.h: Update.
898 * gnulib/import/strstr.c: Update.
899 * gnulib/import/strtok_r.c: Update.
900 * gnulib/import/sys_stat.in.h: Update.
901 * gnulib/import/sys_time.in.h: Update.
902 * gnulib/import/sys_types.in.h: Update.
903 * gnulib/import/tempname.c: Update.
904 * gnulib/import/tempname.h: Update.
905 * gnulib/import/time.in.h: Update.
906 * gnulib/import/unistd--.h: Update.
907 * gnulib/import/unistd-safer.h: Update.
908 * gnulib/import/unistd.in.h: Update.
909 * gnulib/import/unsetenv.c: Update.
910 * gnulib/import/verify.h: Update.
911 * gnulib/import/extra/snippet/warn-on-use.h: Update.
912 * gnulib/import/wchar.in.h: Update.
913 * gnulib/import/wctype.in.h: Update.
914 * gnulib/import/xalloc-oversized.h: Update.
915 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
916 "53e2c179f26a890fa6685af4b6c1397ee370433b".
917
8ec23583
SM
9182018-09-10 Simon Marchi <simon.marchi@ericsson.com>
919
920 * record-btrace.c (get_thread_current_frame): Remove
921 old_inferior_ptid.
922
1f5d1570
JG
9232018-09-10 Jerome Guitton <guitton@adacore.com>
924
925 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
926 with check_tag to 1 if and only if the type is tagged and the
927 component being searched cannot been found in the current
928 view. Otherwise, always call ada_to_fixed_type with
929 check_tag to 0.
930
d91e9ea8
XR
9312018-09-10 Xavier Roirand <roirand@adacore.com>
932
933 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
934 declaration.
935 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
936 * ada-varobj.c (ada_varobj_get_number_of_children,
937 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
938
cc330e39
XR
9392018-09-10 Xavier Roirand <roirand@adacore.com>
940
941 * ada-valprint.c (ada_value_print): Use type instead of
942 enclosing type.
943
b9c50e9a
XR
9442018-09-10 Xavier Roirand <roirand@adacore.com>
945
946 * ada-lang.c (ada_value_subscript): Handle case when parameter is
947 an array of access to unconstrained array.
948
736ade86
XR
9492018-09-10 Xavier Roirand <roirand@adacore.com>
950
951 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
952 (ada_check_typedef): Use it.
953
2963898f
XR
9542018-09-10 Xavier Roirand <roirand@adacore.com>
955
956 * ada-varobj.c (ada_varobj_describe_struct_child)
957 (ada_varobj_describe_child): Handle union case like struct one.
958
a154931e
TT
9592018-09-10 Tom Tromey <tom@tromey.com>
960
961 PR python/18380:
962 * python/python.c (_initialize_python): Make example in "python"
963 help work in Python 3.
964
23c4651c
EZ
9652018-09-10 Eli Zaretskii <eliz@gnu.org>
966
967 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
968 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
969 $(EXEEXT) to the script, as it is not a program.
970
a5c5eda7
SM
9712018-09-09 Simon Marchi <simon.marchi@ericsson.com>
972
973 * python/py-prettyprint.c (pretty_print_one_value): Return
974 gdbpy_ref<>.
975 (print_string_repr): Adjust.
976 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
977 * python/python-internal.h (apply_varobj_pretty_printer): Return
978 gdbpy_ref<>.
979 * varobj.c (varobj_value_get_print_value): Adjust.
980
332cf4c9
TT
9812018-09-08 Tom Tromey <tom@tromey.com>
982
983 PR python/16047:
984 * python/py-prettyprint.c (pretty_print_one_value): Check for
985 to_string method.
986
424da6cf
JB
9872018-09-08 Joel Brobecker <brobecker@adacore.com>
988
989 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
990 replace_operator_with_call.
991
95f39a5b
JB
9922018-09-08 Joel Brobecker <brobecker@adacore.com>
993
994 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
995
16b9eb7b
JB
9962018-09-08 Joel Brobecker <brobecker@adacore.com>
997
998 * ada-typeprint.c (print_range): Print the bounds using TYPE
999 rather than its TYPE_TARGET_TYPE.
1000
d8ce9127
JB
10012018-09-08 Joel Brobecker <brobecker@adacore.com>
1002
1003 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1004 call to ada_to_fixed_value_create.
1005
0d81f350
JG
10062018-09-08 Jerome Guitton <guitton@adacore.com>
1007
1008 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1009
57aff202
JB
10102018-09-08 Joel Brobecker <brobecker@adacore.com>
1011
1012 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1013 by calls to error.
1014
fb44b1a7
JB
10152018-09-08 Joel Brobecker <brobecker@adacore.com>
1016
1017 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1018 Move update of loop variable "fi".
1019
2a62dfa9
JB
10202018-09-08 Joel Brobecker <brobecker@adacore.com>
1021
1022 * ada-lang.c (value_assign_to_component): In the case of
1023 big-endian targets, extract the bits of the given VAL
1024 using an src_offset of zero if container is not a scalar.
1025
739ab2e9
SS
10262018-09-06 Simon Ser <contact@emersion.fr>
1027
1028 PR gdb/23105
1029 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1030 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1031 * fbsd-tdep.c (fbsd_make_note_desc): New.
1032 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1033 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1034 * target.h (enum target_object) Add FreeBSD-specific
1035 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1036
d82b3862
SM
10372018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1038
1039 * compile/compile-c.h (generate_c_for_variable_locations):
1040 Change reference to pointer.
1041 * compile/compile-c-support.c (compile_program) <compute>:
1042 Likewise.
1043 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1044 (generate_c_for_for_one_variable): Likewise
1045 (generate_c_for_variable_locations): Likewise
1046 * compile/compile-c-types.c (compile_c_instance::convert_type):
1047 Likewise
1048 * compile/compile-cplus-symbols.c (convert_one_symbol):
1049 std::move the scope passed to enter_scope.
1050 * compile/compile-cplus-types.c
1051 (compile_cplus_instance::enter_scope): Make parameter
1052 rvalue-reference.
1053 (compile_cplus_instance::new_scope): Change reference to
1054 pointer.
1055 (compile_cplus_instance::convert_type): Likewise
1056 (compile_cplus_convert_typedef): std::move the scope passed to
1057 enter_scope.
1058 (compile_cplus_convert_struct_or_union): Likewise.
1059 (compile_cplus_convert_enum): Likewise.
1060 (compile_cplus_convert_namespace): Likewise.
1061 * compile/compile-cplus.h (compile_cplus_instance)
1062 <enter_scope>: Make parameter rvalue-reference.
1063 * compile/compile-internal.h (compile_instance)
1064 <get_cached_type>: Likewise
1065 * compile/compile-loc2c.c (push): Likewise
1066 (pushf): Likewise
1067 (unary): Likewise
1068 (binary): Likewise
1069 (print_label): Likewise
1070 (pushf_register_address): Likewise
1071 (pushf_register): Likewise
1072 (do_compile_dwarf_expr_to_c): Likewise
1073 (compile_dwarf_expr_to_c): Likewise
1074 (compile_dwarf_bounds_to_c): Likewise
1075 * compile/compile.c (compile_instance::get_cached_type):
1076 Likewise
1077 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1078 (compile_dwarf_bounds_to_c): Likewise
1079 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1080 (dwarf2_compile_property_to_c): Likewise
1081 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1082 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1083 Likewise
1084
cc5a5ae5
SM
10852018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1086
1087 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1088 * tui/tui-data.c (init_content_element): Don't initialize it.
1089
137be540
SM
10902018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1091
1092 * tui/tui-data.h (struct tui_win_info)
1093 <detail::opaque>: Remove.
1094 * tui/tui-data.c (init_win_info): Remove assignment.
1095
f1628857
TT
10962018-09-05 Tom Tromey <tom@tromey.com>
1097
1098 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1099 -Wformat-nonliteral.
1100 * target-float.c (host_float_ops<T>::to_string)
1101 (host_float_ops<T>::from_string): Use
1102 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1103 * configure: Rebuild.
1104
af39b1c2
SM
11052018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1106
1107 * printcmd.c (printf_c_string): Use
1108 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1109 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1110
081bca4d
TT
11112018-09-05 Tom Tromey <tom@tromey.com>
1112
1113 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1114
e4a62c65
TV
11152018-09-05 Tom de Vries <tdevries@suse.de>
1116
1117 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1118 with resolve_abstract_p == true.
1119 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1120 defaulting to false. Propagate resolve_abstract_p to
1121 dwarf2_fetch_die_loc_sect_off.
1122 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1123 parameter, defaulting to false.
1124 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1125 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1126 parameter.
1127 * dwarf2read.h (struct die_info): Forward-declare.
1128 (die_info_ptr): New typedef.
1129 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1130
2b69821e
JB
11312018-09-05 Joel Brobecker <brobecker@adacore.com>
1132
1133 GDB 8.2 released.
1134
fcc9b044
SDJ
11352018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1136 Pedro Alves <palves@redhat.com>
1137
1138 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1139 "aclocal-m4-deps.mk". Include file here.
1140 $(srcdir)/aclocal.m4: Add "configure.ac".
1141 * gnulib/aclocal-m4-deps.mk: New file.
1142 * gnulib/update-gnulib.sh: Automatically update
1143 "aclocal-m4-deps.mk".
1144
d53d5436
TT
11452018-09-04 Tom Tromey <tom@tromey.com>
1146
1147 * configure: Rebuild.
1148 * configure.ac: Remove multi-ice code.
1149
8dc9fd87
TT
11502018-09-04 Tom Tromey <tom@tromey.com>
1151
1152 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1153 (ada-exp.o): Update.
1154
3322c5d9
TT
11552018-09-04 Tom Tromey <tom@tromey.com>
1156
1157 * Makefile.in (printcmd.o, target-float.o): Remove.
1158 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1159
ba2bf2aa
TT
11602018-09-04 Tom Tromey <tom@tromey.com>
1161
1162 * gnulib/Makefile.in: Remove obsolete comment.
1163 * Makefile.in: Remove obsolete comment.
1164
6c9d681b
AB
11652018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1166
1167 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1168 line with '+'.
1169
78a3b0fa
AB
11702018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1171
1172 * riscv-tdep.c: Add 'prologue-value.h' include.
1173 (struct riscv_unwind_cache): New struct.
1174 (riscv_debug_unwinder): New global.
1175 (riscv_scan_prologue): Update arguments, capture register details
1176 from prologue scan.
1177 (riscv_skip_prologue): Reformat arguments line, move end of
1178 prologue calculation into riscv_scan_prologue.
1179 (riscv_frame_cache): Update return type, create
1180 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1181 details.
1182 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1183 (riscv_frame_prev_register): Use the trad_frame within the
1184 riscv_unwind_cache.
1185 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1186 flag.
1187
23e60e7a
AB
11882018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1189
1190 * trad-frame.h (trad_frame_set_realreg): Declare.
1191 (trad_frame_set_addr): Declare.
1192 * trad-frame.c (trad_frame_set_realreg): Define new function.
1193 (trad_frame_set_addr): Define new function.
1194 (trad_frame_set_reg_realreg): Use new function.
1195 (trad_frame_set_reg_addr): Use new function.
1196
5c889512
KS
11972018-09-01 Keith Seitz <keiths@redhat.com>
1198
1199 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1200 pulongest instead of "%lld".
1201 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1202 ATTRIBUTE_UNUSED.
1203
c8c81635
TT
12042018-08-31 Tom Tromey <tom@tromey.com>
1205
1206 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1207 variant part type.
1208
0c888588
PA
12092018-08-31 Pedro Alves <palves@redhat.com>
1210
1211 * gdbarch.h: Regenerate.
1212
7ea65f08
PA
12132018-08-31 Pedro Alves <palves@redhat.com>
1214
1215 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1216 * target.h (Hardware watchpoint interfaces): Describe
1217 continuable/steppable/non-steppable watchpoints.
1218 * gdbarch.h, gdbarch.c: Regenerate.
1219
7eb65faf
PA
12202018-08-31 Pedro Alves <palves@redhat.com>
1221
1222 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1223 Delete.
1224 * s390-linux-nat.c
1225 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1226 * target.h (target_ops::have_continuable_watchpoint): Delete.
1227 (target_have_continuable_watchpoint): Delete.
1228 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1229 * target-delegates.c: Regenerate.
1230
dab999b1
SDJ
12312018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1232
1233 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1234 the files present in "gnulib/import/m4/".
1235
ff3a05b3
AB
12362018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1237
1238 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1239 c.sw, c.swsp, and c.sdsp.
1240
0b3f9efc
AB
12412018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1242
1243 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1244 (riscv_read_misa_reg): Don't cache value read into inferior data.
1245 (riscv_new_inferior_data): Delete.
1246 (riscv_inferior_data_cleanup): Delete.
1247 (riscv_inferior_data): Delete.
1248 (riscv_invalidate_inferior_data): Delete.
1249 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1250
a0dc02a6
SM
12512018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1252
1253 * compile/compile-cplus-types.c
1254 (compile_cplus_instance::leave_scope): Take the address of scope
1255 object.
1256 (compile_cplus_instance::convert_qualified_base): Compare quals
1257 to 0.
1258
fdad7678
KS
12592018-08-30 Keith Seitz <keiths@redhat.com>
1260
1261 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1262 Use "%s" and host_address_to_string instead of "%p" in printf.
1263
078a0207
KS
12642018-08-29 Keith Seitz <keiths@redhat.com>
1265
1266 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1267 and compile-cplus-types.c.
1268 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1269 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1270 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1271 Declare.
1272 * compile/compile-c-support.c: Include compile-cplus.h.
1273 (load_libcompile): Templatize.
1274 (get_compile_context): "New" function.
1275 (c_get_compile_context): Use get_compile_context.
1276 (cplus_get_compile_context): New function.
1277 (cplus_push_user_expression, cplus_pop_user_expression)
1278 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1279 (cplus_compute_program): Define new structs/functions.
1280 * compile/compile-cplus-symmbols.c: New file.
1281 * compile/compile-cplus-types.c: New file.
1282 * compile/compile-cplus.h: New file.
1283 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1284 Declare.
1285 * compile/compile-object-load.c (get_out_value_type): Use
1286 strncmp_iw when comparing symbol names.
1287 (compile_object_load): Add mst_bss and mst_data.
1288 * compile/compile.c (_initialize_compile): Remove
1289 -Wno-implicit-function-declaration from `compile_args'.
1290 * compile/gcc-cp-plugin.h: New file.
1291 * NEWS: Mention C++ compile support and new debug options.
1292
fcaad03c
KS
12932018-08-29 Keith Seitz <keiths@redhat.com>
1294
1295 * linespec.c (collect_info::add_symbol): Make virtual.
1296 (struct symbol_searcher_collect_info): New struct.
1297 (symbol_searcher::find_all_symbols): New method.
1298 * symtab.h (class symbol_searcher): New class.
1299
7e41c8db
KS
13002018-08-29 Keith Seitz <keiths@redhat.com>
1301
1302 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1303 Change to vector of block_symbol. Update all users.
1304 (struct collect_info) <symbols>: Likewise.
1305 (collect_info::add_symbol): Take block_symbol as argument.
1306 Update all callers.
1307 (decode_compound_collector) <m_symbols>: Change type to vector
1308 of block_symbol. Update all users.
1309 (decode_compound_collector::operator ()): Change parameter type
1310 to block_symbol.
1311 (find_method, find_function_symbols, find_linespec_symbols)
1312 (find_label_symbols_in_block, find_label_symbols): Change symbol
1313 vectors to block_symbol vectors.
1314 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1315 block_symbol.
1316
63e8c3da
KS
13172018-08-29 Keith Seitz <keiths@redhat.com>
1318
1319 * linespec.c (symbolp): Remove typedef and VEC definitions.
1320 (bound_minimal_symbol_d): Likewise.
1321
4dedf84d
KS
13222018-08-29 Keith Seitz <keiths@redhat.com>
1323
1324 * linespec.c (decode_compound_collector::decode_compound_collector):
1325 Remove initialization for `m_symtabs'.
1326 (decode_compound_collector::release_symbols): Change return type
1327 to std::vector. Update all callers.
1328 (class decode_compound_collector) <m_symbols>: Change type to
1329 std::vector.
1330 (lookup_prefix_sym): Change return type to std::vector. Update all
1331 callers.
1332 (compare_symbols): Remove.
1333 (std_compare_symbols): Rename to `compare_symbols'.
1334 (find_method): Change `sym_classes' parameter to std::vector.
1335 Update all callers. Use std::sort to sort sym_classes.
1336 (find_linespec_symbols): Remove cleanup.
1337
c2a031c5
KS
13382018-08-29 Keith Seitz <keiths@redhat.com>
1339
1340 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1341 std::vector. Update all users.
1342 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1343 (struct collect_info) <minimal_symbols>: Likewise.
1344 (compare_msymbols): Return bool. Change parameters to const
1345 bound_minimal_symbol references.
1346 (find_method, find_function_symbols, find_linespec_symbols): Change
1347 `minsyms' parameter to std::vector. Update all callers.
1348
3553eadc
KS
13492018-08-29 Keith Seitz <keiths@redhat.com>
1350
1351 * linespec.c (struct linespec) <label_symbols>: Change type to
1352 std::vector. Update all users.
1353 (find_label_symbols_in_block): Change `result' parameter to
1354 std::vector. Update all callers.
1355 (find_label_symbols): Return std::vector. Update all callers.
1356
7243d011
KS
13572018-08-29 Keith Seitz <keiths@redhat.com>
1358
1359 * linespec.c (struct linespec) <function_symbols>: Change type to
1360 std::vector. Update all users.
1361 (struct collect_info) <function_symbols>: Likewise.
1362 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1363 (std_compare_symbols): New function.
1364 (find_method, find_function_symbols, find_linespec_symbols)
1365 (find_label_symbols_in_block): Change `symbols' parameter to
1366 std::vector. Update all callers.
1367 (find_label_symbols): Likewise for `function_symbols' and
1368 `label_funcs_ret'.
1369
2a908241
KS
13702018-08-29 Keith Seitz <keiths@redhat.com>
1371
1372 * linespec.c (symtab_vector_up): Define.
1373 (struct linespec) <file_symtabs>: Change type to std::vector *.
1374 Update all uses.
1375 (struct collect_info) <file_symtabs>: Likewise.
1376 (collect_symtabs_from_filename): Return symtab_vector_up.
1377 Update all callers.
1378 (decode_objc): Remove cleanup.
1379 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1380 (symtab_collector::release_symtabs): Return symtab_vector_up.
1381 Update all callers.
1382 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1383 Update all users.
1384 (collect_symtabs_from_filename, symtabs_from_filename): Return
1385 symtab_vector_up. Update all callers.
1386
f6c4e3e8
TT
13872018-08-29 Tom Tromey <tom@tromey.com>
1388
1389 * csky-tdep.c (csky_analyze_prologue): Use
1390 core_addr_to_string_nz.
1391
73c13fe6
TT
13922018-08-29 Tom Tromey <tom@tromey.com>
1393
1394 * windows-nat.c (struct xlate_exception) <them>: Change type to
1395 DWORD.
1396 (xlate): Fix formatting. Remove last entry.
1397 (struct xlate_exception, xlate): Comment out.
1398 (windows_nat_target::resume): Use ranged for.
1399
4d3928d7
JW
14002018-08-29 Jim Wilson <jimw@sifive.com>
1401
1402 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1403 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1404 of NT_PRFPREG.
1405 (riscv_linux_nat_target::store_registers): Likewise.
1406
7a6dbc2f
SDJ
14072018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1408
1409 PR gdb/23555
1410 PR gdb/23558
1411 * gnulib/aclocal.m4: Regenerate.
1412 * gnulib/config.in: Regenerate.
1413 * gnulib/configure: Regenerate.
1414 * gnulib/import/Makefile.am: Update.
1415 * gnulib/import/Makefile.in: Update.
1416 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1417 * gnulib/import/_Noreturn.h: ... this.
1418 * gnulib/import/alloca.in.h: Update.
1419 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1420 * gnulib/import/arg-nonnull.h: ... this.
1421 * gnulib/import/assure.h: Update.
1422 * gnulib/import/at-func.c: Update.
1423 * gnulib/import/basename-lgpl.c: Update.
1424 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1425 * gnulib/import/c++defs.h: ... this.
1426 * gnulib/import/canonicalize-lgpl.c: Update.
1427 * gnulib/import/cdefs.h: Update.
1428 * gnulib/import/chdir-long.c: Update.
1429 * gnulib/import/chdir-long.h: Update.
1430 * gnulib/import/cloexec.c: Update.
1431 * gnulib/import/cloexec.h: Update.
1432 * gnulib/import/close.c: Update.
1433 * gnulib/import/closedir.c: Update.
1434 * gnulib/import/config.charset: Update.
1435 * gnulib/import/dirent-private.h: Update.
1436 * gnulib/import/dirent.in.h: Update.
1437 * gnulib/import/dirfd.c: Update.
1438 * gnulib/import/dirname-lgpl.c: Update.
1439 * gnulib/import/dirname.h: Update.
1440 * gnulib/import/dosname.h: Update.
1441 * gnulib/import/dup-safer-flag.c: Update.
1442 * gnulib/import/dup-safer.c: Update.
1443 * gnulib/import/dup.c: Update.
1444 * gnulib/import/dup2.c: Update.
1445 * gnulib/import/errno.in.h: Update.
1446 * gnulib/import/error.c: Update.
1447 * gnulib/import/error.h: Update.
1448 * gnulib/import/exitfail.c: Update.
1449 * gnulib/import/exitfail.h: Update.
1450 * gnulib/import/extra/update-copyright: Update.
1451 * gnulib/import/fchdir.c: Update.
1452 * gnulib/import/fcntl.c: Update.
1453 * gnulib/import/fcntl.in.h: Update.
1454 * gnulib/import/fd-hook.c: Update.
1455 * gnulib/import/fd-hook.h: Update.
1456 * gnulib/import/fd-safer-flag.c: Update.
1457 * gnulib/import/fd-safer.c: Update.
1458 * gnulib/import/fdopendir.c: Update.
1459 * gnulib/import/filename.h: Update.
1460 * gnulib/import/filenamecat-lgpl.c: Update.
1461 * gnulib/import/filenamecat.h: Update.
1462 * gnulib/import/flexmember.h: Update.
1463 * gnulib/import/float+.h: Update.
1464 * gnulib/import/float.c: Update.
1465 * gnulib/import/float.in.h: Update.
1466 * gnulib/import/fnmatch.c: Update.
1467 * gnulib/import/fnmatch.in.h: Update.
1468 * gnulib/import/fnmatch_loop.c: Update.
1469 * gnulib/import/fpucw.h: Update.
1470 * gnulib/import/frexp.c: Update.
1471 * gnulib/import/frexpl.c: Update.
1472 * gnulib/import/fstat.c: Update.
1473 * gnulib/import/fstatat.c: Update.
1474 * gnulib/import/getcwd-lgpl.c: Update.
1475 * gnulib/import/getcwd.c: Update.
1476 * gnulib/import/getdtablesize.c: Update.
1477 * gnulib/import/getlogin_r.c: Update.
1478 * gnulib/import/getprogname.c: Update.
1479 * gnulib/import/getprogname.h: Update.
1480 * gnulib/import/gettext.h: Update.
1481 * gnulib/import/gettimeofday.c: Update.
1482 * gnulib/import/glob-libc.h: Update.
1483 * gnulib/import/glob.c: Update.
1484 * gnulib/import/glob.in.h: Update.
1485 * gnulib/import/glob_internal.h: Update.
1486 * gnulib/import/glob_pattern_p.c: Update.
1487 * gnulib/import/globfree.c: Update.
1488 * gnulib/import/hard-locale.c: Update.
1489 * gnulib/import/hard-locale.h: Update.
1490 * gnulib/import/intprops.h: Update.
1491 * gnulib/import/inttypes.in.h: Update.
1492 * gnulib/import/isnan.c: Update.
1493 * gnulib/import/isnand-nolibm.h: Update.
1494 * gnulib/import/isnand.c: Update.
1495 * gnulib/import/isnanl-nolibm.h: Update.
1496 * gnulib/import/isnanl.c: Update.
1497 * gnulib/import/itold.c: Update.
1498 * gnulib/import/libc-config.h: Update.
1499 * gnulib/import/limits.in.h: Update.
1500 * gnulib/import/localcharset.c: Update.
1501 * gnulib/import/localcharset.h: Update.
1502 * gnulib/import/localtime-buffer.c: Update.
1503 * gnulib/import/localtime-buffer.h: Update.
1504 * gnulib/import/lstat.c: Update.
1505 * gnulib/import/m4/00gnulib.m4: Update.
1506 * gnulib/import/m4/__inline.m4: Update.
1507 * gnulib/import/m4/absolute-header.m4: Update.
1508 * gnulib/import/m4/alloca.m4: Update.
1509 * gnulib/import/m4/builtin-expect.m4: Update.
1510 * gnulib/import/m4/canonicalize.m4: Update.
1511 * gnulib/import/m4/chdir-long.m4: Update.
1512 * gnulib/import/m4/close.m4: Update.
1513 * gnulib/import/m4/closedir.m4: Update.
1514 * gnulib/import/m4/configmake.m4: Update.
1515 * gnulib/import/m4/d-ino.m4: Update.
1516 * gnulib/import/m4/d-type.m4: Update.
1517 * gnulib/import/m4/dirent_h.m4: Update.
1518 * gnulib/import/m4/dirfd.m4: Update.
1519 * gnulib/import/m4/dirname.m4: Update.
1520 * gnulib/import/m4/double-slash-root.m4: Update.
1521 * gnulib/import/m4/dup.m4: Update.
1522 * gnulib/import/m4/dup2.m4: Update.
1523 * gnulib/import/m4/eealloc.m4: Update.
1524 * gnulib/import/m4/environ.m4: Update.
1525 * gnulib/import/m4/errno_h.m4: Update.
1526 * gnulib/import/m4/error.m4: Update.
1527 * gnulib/import/m4/exponentd.m4: Update.
1528 * gnulib/import/m4/exponentl.m4: Update.
1529 * gnulib/import/m4/extensions.m4: Update.
1530 * gnulib/import/m4/extern-inline.m4: Update.
1531 * gnulib/import/m4/fchdir.m4: Update.
1532 * gnulib/import/m4/fcntl-o.m4: Update.
1533 * gnulib/import/m4/fcntl.m4: Update.
1534 * gnulib/import/m4/fcntl_h.m4: Update.
1535 * gnulib/import/m4/fdopendir.m4: Update.
1536 * gnulib/import/m4/filenamecat.m4: Update.
1537 * gnulib/import/m4/flexmember.m4: Update.
1538 * gnulib/import/m4/float_h.m4: Update.
1539 * gnulib/import/m4/fnmatch.m4: Update.
1540 * gnulib/import/m4/fnmatch_h.m4: Update.
1541 * gnulib/import/m4/fpieee.m4: Update.
1542 * gnulib/import/m4/frexp.m4: Update.
1543 * gnulib/import/m4/frexpl.m4: Update.
1544 * gnulib/import/m4/fstat.m4: Update.
1545 * gnulib/import/m4/fstatat.m4: Update.
1546 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1547 * gnulib/import/m4/getcwd-path-max.m4: Update.
1548 * gnulib/import/m4/getcwd.m4: Update.
1549 * gnulib/import/m4/getdtablesize.m4: Update.
1550 * gnulib/import/m4/getlogin.m4: Update.
1551 * gnulib/import/m4/getlogin_r.m4: Update.
1552 * gnulib/import/m4/getpagesize.m4: Update.
1553 * gnulib/import/m4/getprogname.m4: Update.
1554 * gnulib/import/m4/gettimeofday.m4: Update.
1555 * gnulib/import/m4/glibc21.m4: Update.
1556 * gnulib/import/m4/glob.m4: Update.
1557 * gnulib/import/m4/glob_h.m4: Update.
1558 * gnulib/import/m4/gnulib-cache.m4: Update.
1559 * gnulib/import/m4/gnulib-common.m4: Update.
1560 * gnulib/import/m4/gnulib-comp.m4: Update.
1561 * gnulib/import/m4/gnulib-tool.m4: Update.
1562 * gnulib/import/m4/hard-locale.m4: Update.
1563 * gnulib/import/m4/include_next.m4: Update.
1564 * gnulib/import/m4/inttypes-pri.m4: Update.
1565 * gnulib/import/m4/inttypes.m4: Update.
1566 * gnulib/import/m4/isnand.m4: Update.
1567 * gnulib/import/m4/isnanl.m4: Update.
1568 * gnulib/import/m4/largefile.m4: Update.
1569 * gnulib/import/m4/limits-h.m4: Update.
1570 * gnulib/import/m4/localcharset.m4: Update.
1571 * gnulib/import/m4/locale-fr.m4: Update.
1572 * gnulib/import/m4/locale-ja.m4: Update.
1573 * gnulib/import/m4/locale-zh.m4: Update.
1574 * gnulib/import/m4/localtime-buffer.m4: Update.
1575 * gnulib/import/m4/longlong.m4: Update.
1576 * gnulib/import/m4/lstat.m4: Update.
1577 * gnulib/import/m4/malloc.m4: Update.
1578 * gnulib/import/m4/malloca.m4: Update.
1579 * gnulib/import/m4/math_h.m4: Update.
1580 * gnulib/import/m4/mbrtowc.m4: Update.
1581 * gnulib/import/m4/mbsinit.m4: Update.
1582 * gnulib/import/m4/mbsrtowcs.m4: Update.
1583 * gnulib/import/m4/mbstate_t.m4: Update.
1584 * gnulib/import/m4/memchr.m4: Update.
1585 * gnulib/import/m4/memmem.m4: Update.
1586 * gnulib/import/m4/mempcpy.m4: Update.
1587 * gnulib/import/m4/memrchr.m4: Update.
1588 * gnulib/import/m4/mkdir.m4: Update.
1589 * gnulib/import/m4/mkstemp.m4: Update.
1590 * gnulib/import/m4/mmap-anon.m4: Update.
1591 * gnulib/import/m4/mode_t.m4: Update.
1592 * gnulib/import/m4/msvc-inval.m4: Update.
1593 * gnulib/import/m4/msvc-nothrow.m4: Update.
1594 * gnulib/import/m4/multiarch.m4: Update.
1595 * gnulib/import/m4/nocrash.m4: Update.
1596 * gnulib/import/m4/off_t.m4: Update.
1597 * gnulib/import/m4/onceonly.m4: Update.
1598 * gnulib/import/m4/open-cloexec.m4: Update.
1599 * gnulib/import/m4/open.m4: Update.
1600 * gnulib/import/m4/openat.m4: Update.
1601 * gnulib/import/m4/opendir.m4: Update.
1602 * gnulib/import/m4/pathmax.m4: Update.
1603 * gnulib/import/m4/rawmemchr.m4: Update.
1604 * gnulib/import/m4/readdir.m4: Update.
1605 * gnulib/import/m4/readlink.m4: Update.
1606 * gnulib/import/m4/realloc.m4: Update.
1607 * gnulib/import/m4/rename.m4: Update.
1608 * gnulib/import/m4/rewinddir.m4: Update.
1609 * gnulib/import/m4/rmdir.m4: Update.
1610 * gnulib/import/m4/save-cwd.m4: Update.
1611 * gnulib/import/m4/secure_getenv.m4: Update.
1612 * gnulib/import/m4/setenv.m4: Update.
1613 * gnulib/import/m4/signal_h.m4: Update.
1614 * gnulib/import/m4/ssize_t.m4: Update.
1615 * gnulib/import/m4/stat-time.m4: Update.
1616 * gnulib/import/m4/stat.m4: Update.
1617 * gnulib/import/m4/std-gnu11.m4: Update.
1618 * gnulib/import/m4/stdbool.m4: Update.
1619 * gnulib/import/m4/stddef_h.m4: Update.
1620 * gnulib/import/m4/stdint.m4: Update.
1621 * gnulib/import/m4/stdio_h.m4: Update.
1622 * gnulib/import/m4/stdlib_h.m4: Update.
1623 * gnulib/import/m4/strchrnul.m4: Update.
1624 * gnulib/import/m4/strdup.m4: Update.
1625 * gnulib/import/m4/strerror.m4: Update.
1626 * gnulib/import/m4/string_h.m4: Update.
1627 * gnulib/import/m4/strstr.m4: Update.
1628 * gnulib/import/m4/strtok_r.m4: Update.
1629 * gnulib/import/m4/sys_socket_h.m4: Update.
1630 * gnulib/import/m4/sys_stat_h.m4: Update.
1631 * gnulib/import/m4/sys_time_h.m4: Update.
1632 * gnulib/import/m4/sys_types_h.m4: Update.
1633 * gnulib/import/m4/tempname.m4: Update.
1634 * gnulib/import/m4/time_h.m4: Update.
1635 * gnulib/import/m4/unistd-safer.m4: Update.
1636 * gnulib/import/m4/unistd_h.m4: Update.
1637 * gnulib/import/m4/warn-on-use.m4: Update.
1638 * gnulib/import/m4/wchar_h.m4: Update.
1639 * gnulib/import/m4/wchar_t.m4: Update.
1640 * gnulib/import/m4/wctype_h.m4: Update.
1641 * gnulib/import/m4/wint_t.m4: Update.
1642 * gnulib/import/malloc.c: Update.
1643 * gnulib/import/malloc/scratch_buffer.h: Update.
1644 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1645 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1646 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1647 * gnulib/import/malloca.c: Update.
1648 * gnulib/import/malloca.h: Update.
1649 * gnulib/import/malloca.valgrind: Update.
1650 * gnulib/import/math.in.h: Update.
1651 * gnulib/import/mbrtowc.c: Update.
1652 * gnulib/import/mbsinit.c: Update.
1653 * gnulib/import/mbsrtowcs-impl.h: Update.
1654 * gnulib/import/mbsrtowcs-state.c: Update.
1655 * gnulib/import/mbsrtowcs.c: Update.
1656 * gnulib/import/memchr.c: Update.
1657 * gnulib/import/memmem.c: Update.
1658 * gnulib/import/mempcpy.c: Update.
1659 * gnulib/import/memrchr.c: Update.
1660 * gnulib/import/mkdir.c: Update.
1661 * gnulib/import/mkstemp.c: Update.
1662 * gnulib/import/msvc-inval.c: Update.
1663 * gnulib/import/msvc-inval.h: Update.
1664 * gnulib/import/msvc-nothrow.c: Update.
1665 * gnulib/import/msvc-nothrow.h: Update.
1666 * gnulib/import/open.c: Update.
1667 * gnulib/import/openat-die.c: Update.
1668 * gnulib/import/openat-priv.h: Update.
1669 * gnulib/import/openat-proc.c: Update.
1670 * gnulib/import/openat.c: Update.
1671 * gnulib/import/openat.h: Update.
1672 * gnulib/import/opendir.c: Update.
1673 * gnulib/import/pathmax.h: Update.
1674 * gnulib/import/pipe-safer.c: Update.
1675 * gnulib/import/rawmemchr.c: Update.
1676 * gnulib/import/readdir.c: Update.
1677 * gnulib/import/readlink.c: Update.
1678 * gnulib/import/realloc.c: Update.
1679 * gnulib/import/ref-add.sin: Update.
1680 * gnulib/import/ref-del.sin: Update.
1681 * gnulib/import/rename.c: Update.
1682 * gnulib/import/rewinddir.c: Update.
1683 * gnulib/import/rmdir.c: Update.
1684 * gnulib/import/same-inode.h: Update.
1685 * gnulib/import/save-cwd.c: Update.
1686 * gnulib/import/save-cwd.h: Update.
1687 * gnulib/import/scratch_buffer.h: Update.
1688 * gnulib/import/secure_getenv.c: Update.
1689 * gnulib/import/setenv.c: Update.
1690 * gnulib/import/signal.in.h: Update.
1691 * gnulib/import/stat-time.c: Update.
1692 * gnulib/import/stat-time.h: Update.
1693 * gnulib/import/stat-w32.c: Update.
1694 * gnulib/import/stat-w32.h: Update.
1695 * gnulib/import/stat.c: Update.
1696 * gnulib/import/stdbool.in.h: Update.
1697 * gnulib/import/stddef.in.h: Update.
1698 * gnulib/import/stdint.in.h: Update.
1699 * gnulib/import/stdio.in.h: Update.
1700 * gnulib/import/stdlib.in.h: Update.
1701 * gnulib/import/str-two-way.h: Update.
1702 * gnulib/import/strchrnul.c: Update.
1703 * gnulib/import/strdup.c: Update.
1704 * gnulib/import/streq.h: Update.
1705 * gnulib/import/strerror-override.c: Update.
1706 * gnulib/import/strerror-override.h: Update.
1707 * gnulib/import/strerror.c: Update.
1708 * gnulib/import/string.in.h: Update.
1709 * gnulib/import/stripslash.c: Update.
1710 * gnulib/import/strnlen1.c: Update.
1711 * gnulib/import/strnlen1.h: Update.
1712 * gnulib/import/strstr.c: Update.
1713 * gnulib/import/strtok_r.c: Update.
1714 * gnulib/import/sys_stat.in.h: Update.
1715 * gnulib/import/sys_time.in.h: Update.
1716 * gnulib/import/sys_types.in.h: Update.
1717 * gnulib/import/tempname.c: Update.
1718 * gnulib/import/tempname.h: Update.
1719 * gnulib/import/time.in.h: Update.
1720 * gnulib/import/unistd--.h: Update.
1721 * gnulib/import/unistd-safer.h: Update.
1722 * gnulib/import/unistd.in.h: Update.
1723 * gnulib/import/unsetenv.c: Update.
1724 * gnulib/import/verify.h: Update.
1725 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1726 * gnulib/import/wchar.in.h: Update.
1727 * gnulib/import/wctype.in.h: Update.
1728 * gnulib/import/xalloc-oversized.h: Update.
1729 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1730 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1731
b0f492b9
GB
17322018-08-16 Gary Benson <gbenson@redhat.com>
1733
1734 PR gdb/13000:
1735 * gdb/main.c (captured_main_1): Exit with nonzero status
1736 in batch mode if the last command to be executed failed.
1737 * NEWS: Mention the above.
1738
2362e7f7
SM
17392018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1740
1741 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1742 end of warning message.
1743
4f4aedeb
AH
17442018-08-29 Alan Hayward <alan.hayward@arm.com>
1745
1746 PR gdb/22943:
1747 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1748 (aarch64_extract_return_value): Use
1749 aapcs_is_vfp_call_or_return_candidate.
1750 (aarch64_return_in_memory): Likewise.
1751 (aarch64_store_return_value): Likewise.
1752
0e745c60
AH
17532018-08-29 Alan Hayward <alan.hayward@arm.com>
1754
1755 * aarch64-tdep.c
1756 (aapcs_is_vfp_call_or_return_candidate): Make static
1757 (pass_in_v_or_stack): Remove function.
1758 (pass_in_v_vfp_candidate): New function.
1759 (aarch64_push_dummy_call): Check for float register candidates.
1760
ea92689a
AH
17612018-08-29 Alan Hayward <alan.hayward@arm.com>
1762
1763 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1764 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1765 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1766
ad202fcc
SM
17672018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1768
1769 PR build/23399
1770 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1771 (struct ipa_sym_addresses): Rename to...
1772 (struct ipa_sym_addresses_common): ... this.
1773 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1774
5fe3f3e4
TT
17752018-08-28 Tom Tromey <tom@tromey.com>
1776
1777 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1778 (token_fifo): Now a std::vector.
1779 (yylex, c_parse): Update.
1780 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1781 (token_fifo): Now a std::vector.
1782 (yylex, d_parse): Update.
1783 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1784 (token_fifo): Now a std::vector.
1785 (yylex, go_parse): Update.
1786
858d8004
SM
17872018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1788
1789 * parser-defs.h (struct type_stack) <elements>: Change type to
1790 std::vector<union type_stack_elt>.
1791 <depth, size>: Remove.
1792 * parse.c (parse_exp_in_context_1): Adjust.
1793 (type_stack_reserve): Remove.
1794 (check_type_stack_depth): Remove.
1795 (insert_into_type_stack): Adjust to std::vector.
1796 (insert_type): Likewise.
1797 (push_type): Likewise.
1798 (push_type_int): Likewise.
1799 (insert_type_address_space): Likewise.
1800 (pop_type): Likewise.
1801 (pop_type_int): Likewise.
1802 (pop_typelist): Likewise.
1803 (pop_type_stack): Likewise.
1804 (append_type_stack): Likewise.
1805 (push_type_stack): Likewise.
1806 (get_type_stack): Likewise.
1807 (type_stack_cleanup): Likewise.
1808 (push_typelist): Likewise.
1809 (follow_types): Likewise.
1810 (_initialize_parse): Likewise.
1811
416a69af
HAQ
18122018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1813
1814 * NEWS: Mention csky target.
1815
9d24df82
HAQ
18162018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1817 Hafiz Abid Qadeer <abidh@codesourcery.com>
1818 Don Breazeal <donb@codesourcery.com>
1819
1820 * csky-linux-tdep.c: New file.
1821 * csky-tdep.c: Likewise.
1822 * csky-tdep.h: Likewise.
1823 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1824 csky-tdep.o.
1825 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1826 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1827 * configure.tgt: Add csky support.
1828
3bf9c013
JV
18292018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1830
1831 * python/py-framefilter.c (py_print_frame): Print frame architecture
1832 when printing on an MI output.
1833
d3d8724a
TT
18342018-08-27 Tom Tromey <tom@tromey.com>
1835
1836 PR build/23087:
1837 * configure: Rebuild.
1838 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1839
1885053b
TT
18402018-08-27 Tom Tromey <tom@tromey.com>
1841
1842 * aarch64-linux-tdep.c
1843 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1844 casts to int.
1845
8406672e
TT
18462018-08-27 Tom Tromey <tom@tromey.com>
1847
1848 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1849 unsigned.
1850 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1851 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1852 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1853 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1854 unsigned.
1855
ec40cf90
TT
18562018-08-27 Tom Tromey <tom@tromey.com>
1857
1858 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1859 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1860
7bc02706
TT
18612018-08-27 Tom Tromey <tom@tromey.com>
1862
1863 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1864 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1865 ULONGEST_MAX.
1866 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1867 ULONGEST_MAX.
1868 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1869 ULONGEST_MAX.
1870 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1871 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1872 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1873 ULONGEST_MAX.
1874 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1875 (ppc64_linux_sigaction_tramp_frame)
1876 (ppc32_linux_sighandler_tramp_frame)
1877 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1878 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1879 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1880 * mn10300-linux-tdep.c (am33_linux_sigframe)
1881 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1882 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1883 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1884 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1885 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1886 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1887 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1888 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1889 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1890 * microblaze-linux-tdep.c
1891 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1892 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1893 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1894 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1895 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1896 * common/common-types.h (ULONGEST_MAX): New define.
1897 (CORE_ADDR_MAX): Fix formatting.
1898 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1899 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1900 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1901 (arm_linux_rt_sigreturn_tramp_frame)
1902 (arm_eabi_linux_sigreturn_tramp_frame)
1903 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1904 (thumb2_eabi_linux_sigreturn_tramp_frame)
1905 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1906 (arm_linux_restart_syscall_tramp_frame)
1907 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1908 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1909 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1910 ULONGEST_MAX.
1911 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1912
70ab8ccd
TT
19132018-08-27 Tom Tromey <tom@tromey.com>
1914
1915 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1916 CORE_ADDR_MAX.
1917 * mips-tdep.c (mips_deal_with_atomic_sequence)
1918 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1919 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1920 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1921 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1922 CORE_ADDR_MAX.
1923 * aarch64-tdep.c (aarch64_software_single_step): Use
1924 CORE_ADDR_MAX.
1925
896a7aa6
TT
19262018-08-27 Tom Tromey <tom@tromey.com>
1927
1928 * linespec.c (complete_linespec_component): Add cast to "char".
1929 * completer.c (completion_tracker::build_completion_result): Add
1930 cast to "char".
1931
dd33d41d
SM
19322018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1933
1934 * solist.h (struct solist, struct target_so_ops): Fix
1935 indentation.
1936
c645cda4
SM
19372018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1938
1939 * ada-tasks.c (ada_task_info_s): Remove typedef.
1940 (DEF_VEC_O(ada_task_info_s)): Remove.
1941 (struct ada_tasks_inferior_data): Initialize fields.
1942 <task_list>: Make an std::vector.
1943 (get_ada_tasks_inferior_data): Allocate with new.
1944 (ada_get_task_number): Adjust.
1945 (get_task_number_from_id): Likewise.
1946 (valid_task_id): Likewise.
1947 (ada_get_task_info_from_ptid): Likewise.
1948 (iterate_over_live_ada_tasks): Likewise.
1949 (add_ada_task): Likewise.
1950 (read_known_tasks): Likewise.
1951 (ada_build_task_list): Likewise.
1952 (print_ada_task_info): Likewise.
1953 (info_task): Likewise.
1954 (task_command_1): Likewise.
1955
39e7af3e
SM
19562018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1957
1958 * ada-lang.c (add_angle_brackets): Return std::string.
1959
bbbbbcee
SM
19602018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1961
1962 * python/py-threadevent.c (py_get_event_thread): Initialize
1963 pythread.
1964
d98fc15b
PA
19652018-08-24 Pedro Alves <palves@redhat.com>
1966
1967 * python/py-bpevent.c (create_breakpoint_event_object): Use
1968 copy-initialization.
1969 * python/py-continueevent.c (emit_continue_event): Use
1970 copy-initialization.
1971 * python/py-exitedevent.c (create_exited_event_object): Return a
1972 gdbpy_ref<>.
1973 (emit_exited_event): Use copy-initialization.
1974 * python/py-inferior.c (python_new_inferior)
1975 (python_inferior_deleted, add_thread_object): Use
1976 copy-initialization.
1977 * python/py-infevents.c (create_inferior_call_event_object)
1978 (create_register_changed_event_object)
1979 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1980 (emit_inferior_call_event, emit_memory_changed_event)
1981 (emit_register_changed_event): Use copy-initialization.
1982 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1983 Return a gdbpy_ref<>.
1984 (emit_new_objfile_event): Use copy-initialization.
1985 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1986 (emit_clear_objfiles_event): Use copy-initialization.
1987 * python/py-signalevent.c (create_signal_event_object): Use
1988 copy-initialization.
1989 * python/py-threadevent.c (create_thread_event_object): Use
1990 copy-initialization.
1991
da3c8738
PA
19922018-08-24 Pedro Alves <palves@redhat.com>
1993 Simon Marchi <simon.marchi@ericsson.com>
1994
1995 PR gdb/23379
1996 * python/py-continueevent.c: Include "gdbthread.h".
1997 (create_continue_event_object): Add intro comment. Add 'ptid'
1998 parameter. Use it to find thread to pass to
1999 create_thread_event_object.
2000 (emit_continue_event): Pass PTID down to
2001 create_continue_event_object.
2002 * python/py-event.h (py_get_event_thread): Declare.
2003 (create_thread_event_object): Remove default from 'thread'
2004 parameter.
2005 * python/py-stopevent.c (create_stop_event_object): Use
2006 py_get_event_thread.
2007 * python/py-threadevent.c (get_event_thread): Rename to ...
2008 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2009 and use it to find the thread.
2010 (create_thread_event_object): Assert that THREAD isn't null.
2011 Don't find the event thread here.
2012
26457a9c
KB
20132018-08-23 Kevin Buettner <kevinb@redhat.com>
2014
2015 * block.h (blockrange, blockranges): New struct declarations.
2016 (struct block): Add new field named `ranges'.
2017 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2018 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2019 macros for accessing ranges in struct block.
2020 (make_blockranges): New declaration.
2021 block.c (make_blockranges): New function.
2d5f09ec
KB
2022 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2023 for block.
fc811edd
KB
2024 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2025 * blockframe.c (cache_pc_function_block): New static global.
2026 (clear_pc_function_cache): Clear cache_pc_function_block.
2027 (find_pc_partial_function): Move comment to symtab.h. Add
2028 support for non-contiguous blocks.
e9480230
KB
2029 * cli/cli-cmds.c (block.h): Include.
2030 (print_disassembly): Handle printing of non-contiguous blocks.
2031 (disassemble_current_function): Likewise.
2032 (disassemble_command): Likewise.
26457a9c 2033
2b1ffcfd
KB
2034 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2035 BLOCK_START.
2036 * blockframe.c (get_pc_function_start): Likewise.
2037 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2038 (gcc_symbol_address): Likewise.
2039 * compile/compile-object-run.c (compile_object_run): Likewise.
2040 * compile/compile.c (get_expr_block_and_pc): Likewise.
2041 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2042 (func_addr_to_tail_call_list): Likewise.
2043 * findvar.c (default_read_var_value): Likewise.
2044 * inline-frame.c (inline_frame_this_id): Likewise.
2045 (skip-inline_frames): Likewise.
2046 * infcmd.c (until_next_command): Likewise.
2047 * linespec.c (convert_linespec_to_sals): Likewise.
2048 * parse.c (parse_exp_in_context_1): Likewise.
2049 * printcmd.c (build_address_symbolic): likewise.
2050 (info_address_command): Likewise.
2051 symtab.c (find_function_start_sal): Likewise.
2052 (skip_prologue_sal): Likewise.
2053 (find_function_alias_target): Likewise.
2054 (find_gnu_ifunc): Likewise.
2055 * stack.c (find_frame_funname): Likewise.
2056 * symtab.c (fixup_symbol_section): Likewise.
2057 (find_function_start_sal): Likewise.
2058 (skip_prologue_sal): Likewsie.
2059 (find_function_alias_target): Likewise.
2060 (find_gnu_ifunc): Likewise.
2061 * tracepoint.c (info_scope_command): Likewise.
2062 * value.c (value_fn_field): Likewise.
2063
9644dc3a
KB
2064 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2065 in place of find_pc_partial_function.
2066 * blockframe.c (find_function_entry_range_from_pc): New function.
2067 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2068 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2069 for each range in a block.
2070
2071
12a0d0f6
XR
20722018-08-23 Xavier Roirand <roirand@adacore.com>
2073
2074 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2075 incrementation.
2076
d1012b8e
SM
20772018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2078
2079 * solib-svr4.c (read_program_headers_from_bfd): Return
2080 gdb::optional<gdb::byte_vector>.
2081 (svr4_exec_displacement): Adjust.
2082
17658d46
SM
20832018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2084
2085 * solib-svr4.c (read_program_header): Return
2086 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2087 (find_program_interpreter): Return
2088 gdb::optional<gdb::byte_vector>.
2089 (scan_dyntag_auxv): Adjust.
2090 (enable_break): Adjust.
2091 (svr4_exec_displacement): Adjust.
2092
ae739fe7
SM
20932018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2094
2095 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2096 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2097
467dc1e2
SM
20982018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2099
2100 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2101 string_vprintf.
2102 * guile/scm-utils.c (gdbscm_printf): Likewise.
2103 * serial.c (serial_printf): Likewise.
2104 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2105
6d52907e
JV
21062018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2107
2108 * stack.c (print_frame): Print frame architecture when printing on
2109 an MI output.
2110 * NEWS: Mention new "arch" attribute in frame output.
2111
9758a8f8
AH
21122018-08-21 Alan Hayward <alan.hayward@arm.com>
2113
2114 * arch/aarch64.h (aarch64_regnum): Update comment.
2115
1461bdac
AH
21162018-08-21 Alan Hayward <alan.hayward@arm.com>
2117
2118 * NEWS: Add SVE to 8.2 section.
2119
4895f384
PA
21202018-08-21 Pedro Alves <palves@redhat.com>
2121
2122 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2123 out from gdbscm_parse_function_args.
2124 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2125 gdbscm_parse_function_args_1.
2126
a4497d2f
SM
21272018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2128
2129 PR gdb/17816
2130 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2131 operator.
2132
c44deb73
SM
21332018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2134
2135 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2136
be2d111a
MS
21372018-08-19 Michael Spang <spang@google.com>
2138
2139 PR gdb/11786
2140 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2141 for PT_TLS segments.
2142
a6b786da
KB
21432018-08-18 Kevin Buettner <kevinb@redhat.com>
2144
2145 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2146 dwarf_variable_value.
2147 * dwarf2-frame.c (class dwarf_expr_executor):
2148 Add override for dwarf_variable_value.
2149 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2150 (class symbol_needs_eval_context): Likewise.
2151 (indirect_synthetic_pointer): Add forward declaration.
2152 (sect_variable_value): New function.
2153 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2154 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2155 for DW_OP_GNU_variable_value.
2156
89fbedf3
TT
21572018-08-16 Tom Tromey <tom@tromey.com>
2158
2159 * top.c (read_command_file): Update.
2160 (command_line_input): Remove "repeat" argument.
2161 * ada-lang.c (get_selections): Update.
2162 * linespec.c (decode_line_2): Update.
2163 * defs.h (command_line_input): Remove argument.
2164 * cli/cli-script.c (read_next_line): Update.
2165 * python/py-gdb-readline.c: Update.
2166
12582533
TT
21672018-08-17 Tom Tromey <tom@tromey.com>
2168
2169 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2170 command_line_input.
2171
49514353
TT
21722018-08-15 Tom Tromey <tom@tromey.com>
2173
2174 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2175
26fb3983
JV
21762018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2177
2178 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2179 If used, use find_pc_partial_function to find address range
2180 to disassemble.
2181 * mi/mi-main.c (mi_cmd_list_features): Report
2182 "data-disassemble-a-option" feature.
2183 * NEWS: Mention new -data-disassemble option -a.
2184
a97b53dd
TT
21852018-08-13 Tom Tromey <tom@tromey.com>
2186
2187 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2188
0c76e06d
AH
21892018-08-13 Alan Hayward <alan.hayward@arm.com>
2190
2191 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2192 (aarch64_linux_collect_sve_regset): Likewise.
2193 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2194 * regcache.h (regcache_map_entry_size): New function.
2195
b7fd65b9
AH
21962018-08-13 Alan Hayward <alan.hayward@arm.com>
2197
2198 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2199 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2200 (SVE_HEADER_VL_LENGTH): Likewise.
2201 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2202 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2203 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2204 (SVE_HEADER_SIZE_OFFSET): Likewise.
2205 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2206 (SVE_HEADER_VL_OFFSET): Likewise.
2207 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2208 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2209 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2210 (SVE_HEADER_SIZE): Likewise.
2211 (aarch64_linux_core_read_vq): Add function.
2212 (aarch64_linux_core_read_description): Check for SVE section.
2213
a616bb94
AH
22142018-08-13 Alan Hayward <alan.hayward@arm.com>
2215
2216 * aarch64-fbsd-tdep.c
2217 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2218 collect_size.
2219 * aarch64-linux-tdep.c
2220 (aarch64_linux_iterate_over_regset_sections): Likewise.
2221 * alpha-linux-tdep.c
2222 (alpha_linux_iterate_over_regset_sections):
2223 * alpha-nbsd-tdep.c
2224 (alphanbsd_iterate_over_regset_sections): Likewise.
2225 * amd64-fbsd-tdep.c
2226 (amd64fbsd_iterate_over_regset_sections): Likewise.
2227 * amd64-linux-tdep.c
2228 (amd64_linux_iterate_over_regset_sections): Likewise.
2229 * arm-bsd-tdep.c
2230 (armbsd_iterate_over_regset_sections): Likewise.
2231 * arm-fbsd-tdep.c
2232 (arm_fbsd_iterate_over_regset_sections): Likewise.
2233 * arm-linux-tdep.c
2234 (arm_linux_iterate_over_regset_sections): Likewise.
2235 * corelow.c (get_core_registers_cb): Likewise.
2236 (core_target::fetch_registers): Likewise.
2237 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2238 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2239 * gdbarch.h (void): Regenerate.
2240 * gdbarch.sh: Add supply_size and collect_size.
2241 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2242 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2243 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2244 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2245 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2246 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2247 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2248 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2249 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2250 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2251 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2252 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2253 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2254 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2255 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2256 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2257 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2258 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2259 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2260 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2261 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2262 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2263 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2264 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2265 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2266 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2267 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2268 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2269 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2270 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2271
a9925d4f
SM
22722018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2273
2274 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2275 with string_printf.
2276
ad3a68e9
KS
22772018-08-10 Keith Seitz <keiths@redhat.com>
2278
2279 * compile/compile-c-support.c (add_code_header, add_code_footer):
2280 Move into policy class.
2281 (c_push_user_expression, pop_user_expression_nop)
2282 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2283 (compile_program): New host class.
2284 (c_compile_program): New typedef.
2285 (c_compute_porgram): Use c_compile_program.
2286
0cfbf430
KS
22872018-08-10 Keith Seitz <keiths@redhat.com>
2288
2289 * compile/compile-internal.h (compile_instance::~compile_instance):
2290 Remove calls to htab_delete.
2291 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2292 * compile.c (compile_instance::compile_instance): Initialize
2293 htab unique pointers.
2294 (compile_instance::get_cached_type, compile_instance::insert_type)
2295 (compile_instance::error_symbol_once): Update for unique_ptr.
2296
946d3d10
KS
22972018-08-10 Keith Seitz <keiths@redhat.com>
2298
2299 * compile/compile-c-symbols.c (struct symbol_error)
2300 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2301 (compile_instance::insert_symbol_error)
2302 (compile_instance::error_symbol_once): Move to ...
2303 * compile/compile.c: ... here.
2304
9cdfd9a2
KS
23052018-08-10 Keith Seitz <keiths@redhat.com>
2306
2307 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2308 instead of `new_compile_instance'.
2309 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2310 Update description.
2311 If the symbol error map is not initialized, create it.
2312 (generate_c_for_for_one_symbol): Do not check/initialize
2313 the symbol error map.
2314 * compile/compile-c-types.c (compile_c_instance): Make a class.
2315 Update all callers.
2316 (compile_instance::compile_instance): Initialize the type cache.
2317 (get_cached_type): New function.
2318 (insert_type): Update description.
2319 (compile_c_instance::m_default_cflags): Define.
2320 (convert_type): Update description. Use get_cached_type.
2321 (delete_instance): Moved to destructor.
2322 (new_compile_instance): Moved to constructor.
2323 * compile/compile-c.h (compile_c_instance): Make class inheriting
2324 from compile_instance.
2325 <base>: Remove field.
2326 <type_map, symbol_err_map>: Move to base class.
2327 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2328 * compile/compile-internal.h (compile_instance): Make class.
2329 <type_map_t, symbol_err_map_t>: Define.
2330 <fe>: Rename to `m_gcc_fe'.
2331 <scope, block, gcc_target_options>: Add `m_' prefix.
2332 <m_type_map, m_symbol_err_map>: New fields, moved from
2333 compile_c_instance.
2334 <destroy>: Remove.
2335 (convert_type, new_compile_instance): Remove.
2336 * compile/compile.c (cleanup_compile_instance): Remove.
2337 (compile_to_object): Use unique_ptr to eliminate cleanups.
2338 (compile_instance::set_print_callback, compile_instance::version)
2339 (compile_instance::set_verbose)
2340 (compile_instance::set_driver_filename)
2341 (compile_instance::set_triplet_regexp)
2342 (compile_instance::set_arguments)
2343 (compile_instance::set_source_file)
2344 (compile_instance::compile): Define.
2345
18cdc6d8
KS
23462018-08-10 Keith Seitz <keiths@redhat.com>
2347
2348 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2349 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2350 gcc-c-fe.def to define C plugin.
2351 (delete_instance): Delete `c_plugin'.
2352 (new_compile_instance): Initialize `c_plugin'.
2353 * compile/compile-c.h: Include gcc_c_plugin.h.
2354 (struct compile_c_instance) <c_plugin>: New member.
2355 * gcc-c-plugin.h: New file.
2356 Update all callers with API change.
2357
b7dc48b4
KS
23582018-08-10 Keith Seitz <keiths@redhat.com>
2359
2360 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2361 (HFILES_NO_SRCDIR): ... to here.
2362 Add compile-internal.h and compile-c.h.
2363 * compile/compile-c-support.c: Include compile-c.h.
2364 * compile/compile-c-symbols.c: Include compile-c.h.
2365 (generate_c_for_variable_locations): Update comment.
2366 * compile/compile-c-types.c: Include compile-c.h.
2367 * compile/compile-c.h: New file -- moved C language declarations
2368 from other files here.
2369 * compile/compile-internal.h: Do not include hashtab.h or
2370 common/enum-flags.h.
2371 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2372 (gcc_convert_symbol, gcc_symbol_address)
2373 (generate_c_for_variable_locations, c_get_mode_for_size)
2374 (c_get_range_decl_name): Definitions moved to compile-c.h.
2375 * compile/compile-loc2c.c: Include compile-c.h.
2376
6f36b6d2
KS
23772018-08-10 Keith Seitz <keiths@redhat.com>
2378
2379 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2380 (c_symbol_substitution_name): ... this.
2381 Update all callers.
2382
bd923e51
KS
23832018-08-10 Keith Seitz <keiths@redhat.com>
2384
2385 * compile/compile-c-support.c (c_compute_program): Use
2386 unique_xmalloc_ptr to eliminate cleanup.
2387 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2388 Return a unique_xmalloc_ptr and eliminate cleanup.
2389 * compile/compile-internal.h (generate_c_for_variable_locations):
2390 Return unique_xmalloc_ptr and update description.
2391
dbd534fe
AH
23922018-08-10 Alan Hayward <alan.hayward@arm.com>
2393
2394 * corelow.c (core_target::get_core_register_section): Rename
2395 min_size to section_min_size.
2396
90ad3654
JW
23972018-08-09 Jim Wilson <jimw@sifive.com>
2398
52a187f8
JW
2399 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2400 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2401 * NEWS: Mention new GNU/Linux RISC-V target.
2402 * configure.host: Add riscv*-*-linux*.
2403 * configure.nat: Add riscv*.
2404 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 2405 * riscv-linux-nat.c: New file.
90ad3654
JW
2406 * riscv-linux-tdep.c: New file.
2407
aff4e175
AB
24082018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2409
2410 * infrun.c (resume): Make static, add forward declaration.
2411 (proceed): Update header comment.
2412 * infrun.h (resume): Delete declaration.
2413
06ab9219
TT
24142018-08-09 Tom Tromey <tom@tromey.com>
2415
2416 * riscv-tdep.h: Minor formatting fixes.
2417
83c8d318
SM
24182018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2419
2420 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2421 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2422 (test_mkdir_recursive): Likewise.
2423 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2424
5ff2bbae
AB
24252018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2426
2427 * valarith.c (value_subscripted_rvalue): If an array is not in
2428 memory, and we don't know the upper bound, then we can't know that
2429 the requested element exists or not.
2430
fdbac7d8
SM
24312018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2432
2433 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2434 (target_options_to_string): Add comment.
2435
83202f7a
TT
24362018-08-08 Tom Tromey <tom@tromey.com>
2437
2438 * unittests/scoped_mmap-selftests.c: Check result of "write".
2439
411baa47
JW
24402018-08-08 Jim Wilson <jimw@sifive.com>
2441
5c720ed8
JW
2442 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2443 (decode_register_index_short): New.
2444 (decode_j_type_insn, decode_cj_type_insn): New.
2445 (decode_b_type_insn, decode_cb_type_insn): New.
2446 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2447 local xlen. Check xlen when decoding ambiguous compressed insns. In
2448 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2449 is_c_sw_insn instead of is_sw_insn.
2450 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2451 (riscv_software_single_step): New.
2452 * riscv-tdep.h (riscv_software_single_step): Declare.
2453
411baa47
JW
2454 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2455 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2456
9d4a934c
AB
24572018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2458
2459 PR gdb/18050:
2460 * target.c (dispose_inferior): Don't dispose of inferiors that are
2461 already killed.
2462
ff36536c
SN
24632018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2464
2465 * remote.c (remote_target::download_tracepoint): Change char* to
2466 const char*.
2467
09ce46f2
SM
24682018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2469
2470 * target.h (target_options_to_string): Return an std::string.
2471 * target.c (str_comma_list_concat_elem): Return void, use
2472 std::string.
2473 (do_option): Likewise.
2474 (target_options_to_string): Return an std::string.
2475 * linux-nat.c (linux_nat_target::wait): Adjust.
2476 * target-debug.h (target_debug_print_options): Adjust.
2477
9c612964
TT
24782018-08-07 Tom Tromey <tom@tromey.com>
2479
2480 * Makefile.in (CPPFLAGS): New variable.
2481 (INTERNAL_CPPFLAGS): Use it.
2482
7d11235d
SM
24832018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2484
2485 * NEWS: Mention the index cache.
2486
87d6a7aa
SM
24872018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2488
2489 * common/pathstuff.h (get_standard_cache_dir): New.
2490 * common/pathstuff.c (get_standard_cache_dir): New.
2491 * build-id.h (build_id_to_string): New.
2492 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2493 DEBUG_STR_SUFFIX): Move to here.
2494 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2495 DEBUG_STR_SUFFIX): Move from there.
2496 (write_psymtabs_to_index): Make non-static, add basename
2497 parameter. Write to temporary files, rename when done.
2498 (save_gdb_index_command): Adjust call to
2499 write_psymtabs_to_index.
2500 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2501 field.
2502 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2503 (get_gdb_index_contents_from_cache): New.
2504 (get_gdb_index_contents_from_cache_dwz): New.
2505 (dwarf2_initialize_objfile): Read index from cache.
2506 (dwarf2_build_psymtabs): Save to index.
2507 * dwarf-index-cache.h: New file.
2508 * dwarf-index-cache.c: New file.
2509 * dwarf-index-write.h: New file.
2510
8a99096f
SM
25112018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2512
2513 * gnulib/aclocal.m4: Re-generate.
2514 * gnulib/config.in: Re-generate.
2515 * gnulib/configure: Re-generate.
2516 * gnulib/import/Makefile.am: Re-generate.
2517 * gnulib/import/Makefile.in: Re-generate.
2518 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2519 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2520 * gnulib/import/m4/mkdir.m4: New file.
2521 * gnulib/import/mkdir.c: New file.
2522 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2523 module.
2524
5c831bb1
SM
25252018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2526
2527 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2528 * common/scoped_mmap.c: New file.
2529 * common/scoped_mmap.h (destroy): New method.
2530 (~scoped_mmap, reset): Use destroy.
2531 (scoped_mmap): New move constructor.
2532 (mmap_file): New declaration.
2533 * unittests/scoped_mmap-selftests.c (test_normal,
2534 test_invalid_filename, run_tests): New functions.
2535 (_initialize_scoped_mmap_selftests): Register selftest.
2536
4485a1c1
SM
25372018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2538
2539 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2540 (read_gdb_index_from_buffer): ... this. Remove section
2541 parameter, add buffer parameter.
2542 (get_gdb_index_contents_ftype,
2543 get_gdb_index_contents_dwz_ftype): New typedefs.
2544 (dwarf2_read_gdb_index): Add callback parameters to get the
2545 index contents.
2546 (get_gdb_index_contents_from_section): New.
2547 (dwarf2_initialize_objfile): Update call to
2548 dwarf2_read_gdb_index.
2549
528e1572
SM
25502018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2551
2552 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2553 (gdb_open_cloexec): Likewise.
2554 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2555 (commandline_from_pid): Likewise.
2556 (linux_xfer_osdata_threads): Likewise.
2557 (linux_xfer_osdata_fds): Likewise.
2558 * ada-lang.c (is_package_name): Likewise.
2559 * auxv.c (procfs_xfer_auxv): Likewise.
2560 * breakpoint.c (print_one_breakpoint_location): Use
2561 uiout::field_fmt.
2562 (print_one_catch_solib): Use string_printf.
2563 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2564 (add_pe_forwarded_sym): Likewise.
2565 * dwarf2read.c (create_type_unit_group): Likewise.
2566 (build_error_marker_type): Likewise.
2567 * infcall.c (get_function_name): Likewise.
2568 * valprint.c (print_converted_chars_to_obstack): Likewise.
2569 * xtensa-tdep.c (xtensa_register_type): Likewise.
2570
a7f25a84
SM
25712018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2572
2573 * remote.c (remote_target::download_tracepoint): Fix format
2574 string errors.
2575
296956be
PFC
25762018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2577
2578 * tracefile.c: Include common/byte-vector.h.
2579 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2580 with trace_regblock_size if needed. Update uses of buf.
2581
a04b9d62
PFC
25822018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2583
2584 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2585 std::vector<unsigned char>.
2586 * tracepoint.c (collection_list::collection_list): Remove
2587 m_regs_mask initializer from initializer list. Resize
2588 m_regs_mask using the largest remote register number.
2589 (collection_list::add_remote_register): Remove size check on
2590 m_regs_mask. Use at to access element.
2591 (collection_list::stringify): Change type of temp_buf to
2592 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2593 stringify the register mask. Use pack_hex_byte for the register
2594 mask.
2595
4277c4b8
PFC
25962018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2597
2598 * tracepoint.h (class collection_list) <add_register>: Remove.
2599 <add_remote_register, add_ax_registers, add_local_register>:
2600 Declare.
2601 <add_memrange>: Add scope parameter.
2602 * tracepoint.c (encode_actions_1): Likewise.
2603 (collection_list::add_register): Rename to ...
2604 (collection_list::add_remote_register): ... this. Update
2605 comment.
2606 (collection_list::add_ax_registers, add_local_register): New
2607 methods.
2608 (collection_list::add_memrange): Add scope parameter. Call
2609 add_local_register instead of add_register.
2610 (finalize_tracepoint_aexpr): New function.
2611 (collection_list::collect_symbol): Update calls to add_memrange.
2612 Call add_local_register instead of add_register. Call
2613 add_ax_registers. Call finalize_tracepoint_aexpr.
2614 (encode_actions_1): Get remote regnos for $reg action. Call
2615 add_remote_register, add_ax_registers, and add_local_register.
2616 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2617 (validate_actionline): Call finalize_tracepoint_aexpr.
2618
3df3a985
PFC
26192018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2620
2621 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2622 Replace array buf with gdb::char_vector buf, of size
2623 get_remote_packet_size (). Replace references to buf and
2624 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2625 and xsnprintf with snprintf. Raise errors if the buffer is too
2626 small.
2627
aa6f3694
PFC
26282018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2629
2630 * remote.c (remote_target::download_tracepoint): Fix the has_more
2631 predicate in the QTDP action list iteration.
2632
05abfc39
PFC
26332018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2634
2635 * remote.c (remote_target::download_tracepoint): Fix indentation
2636 in for block.
2637
821a2682
RO
26382018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2639
2640 * proc-api.c (_initialize_proc_api): Remove c, unused.
2641 * procfs.c (procfs_init_inferior): Remove signals, unused.
2642 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2643 unused.
2644
95347337
AB
26452018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2646 Andrew Burgess <andrew.burgess@embecosm.com>
2647
2648 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2649 'W_STOPCODE (0)' as this could be ambiguous.
2650
425699f5
SDJ
26512018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2652
2653 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2654 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2655 "ai_socktype").
2656
3e1d3d8c
TT
26572018-08-02 Tom Tromey <tom@tromey.com>
2658
2659 PR symtab/16842.
2660 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2661 symbols.
2662 (process_structure_scope): Likewise.
2663
15843549
XR
26642018-08-02 Xavier Roirand <roirand@adacore.com>
2665
2666 PR gdb/22629:
2667 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2668 kill inferior.
2669
b5bddbbb
TT
26702018-08-02 Tom Tromey <tom@tromey.com>
2671
2672 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2673 (darwin_suspend_inferior, darwin_resume_inferior)
2674 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2675 (darwin_check_new_threads): Check result of get_darwin_inferior.
2676
f61cfa07
JB
26772018-07-31 Joel Brobecker <brobecker@adacore.com>
2678
2679 GDB 8.1.1 released.
2680
5abe0f0c
JV
26812018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2682
2683 * varobj.c (varobj_get_path_expr_parent): Report an error if
2684 parent is a dynamic varobj.
2685
472fa5ee
SM
26862018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2687
2688 * gnulib/aclocal.m4: Re-generate.
2689 * gnulib/config.in: Re-generate.
2690 * gnulib/configure: Re-generate.
2691 * gnulib/import/Makefile.in: Re-generate.
2692 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2693 * gnulib/import/m4/onceonly.m4: Re-generate.
2694
1c28969e
SM
26952018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2696
2697 * target-descriptions.c (struct xml_test_tdesc): New.
2698 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2699 (record_xml_tdesc): Update.
2700 (maintenance_check_xml_descriptions): Update.
2701 * target-descriptions.h (record_xml_tdesc): Update comment.
2702
c8f2dc0d
AB
27032018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2704
2705 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2706 checking array bounds are defined.
2707
463c08d1
TT
27082018-07-30 Tom Tromey <tom@tromey.com>
2709
2710 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2711 irreflexivity violation.
2712
dba7455e
TT
27132018-07-30 Tom Tromey <tom@tromey.com>
2714
2715 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2716 * value.c (unpack_long): Remove lint code.
2717 * valops.c (value_ind): Remove lint code.
2718 * valarith.c (value_x_binop, value_x_unop, value_equal)
2719 (value_pos): Remove lint code.
2720
37cc0cae
TV
27212018-07-28 Tom de Vries <tdevries@suse.de>
2722
2723 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2724 with undefined upper bound as <optimized out>.
2725
129eb0f1
SDJ
27262018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2727
2728 * gcore.in: Rename variable "name" to "prefix". Expand
2729 "usage" text.
2730
6af79d7b
JT
27312018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2732
2733 * windows-nat.c (windows_nat_target::create_inferior): Update to
2734 call close() in global namespace.
2735
79748972
TT
27362018-07-26 Tom Tromey <tom@tromey.com>
2737
2738 * dwarf-index-write.c (add_address_entry): Don't add objfile
2739 offsets.
2740 * dbxread.c (find_stab_function): Rename from
2741 find_stab_function_addr. Return a bound_minimal_symbol.
2742 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2743 Don't add objfile offsets.
2744 (end_psymtab): Use raw_text_low, raw_text_high,
2745 MSYMBOL_VALUE_RAW_ADDRESS.
2746 (read_ofile_symtab): Update.
2747 (process_one_symbol): Update.
2748 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2749 offsets.
2750 (dw2_relocate): Remove.
2751 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2752 searching addrmap.
2753 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2754 Update.
2755 (process_psymtab_comp_unit_reader, add_partial_symbol)
2756 (add_partial_subprogram, dwarf2_ranges_read): Update.
2757 (load_partial_dies): Update.
2758 (add_address_entry): Don't add objfile offsets.
2759 (dwarf2_build_include_psymtabs): Update.
2760 (create_addrmap_from_aranges): Don't add objfile offsets.
2761 (dw2_find_pc_sect_compunit_symtab): Update.
2762 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2763 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2764 Update.
2765 (parse_partial_symbols): Don't add objfile offsets. Use
2766 raw_text_low, raw_text_high. Update.
2767 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2768 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2769 or call 'relocate' quick function. Clear psymbol_map.
2770 * psympriv.h (struct partial_symbol) <address>: Add section
2771 offset.
2772 <set_unrelocated_address>: Rename from set_address.
2773 <raw_text_low, raw_text_high>: New methods.
2774 <text_low, text_high>: Add objfile parameter.
2775 (add_psymbol_to_bcache): Add 'section' parameter. Call
2776 set_unrelocated_address.
2777 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2778 (find_pc_psymbol): Update.
2779 (fixup_psymbol_section, relocate_psymtabs): Remove.
2780 (dump_psymtab, psym_functions): Update.
2781 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2782 parameter.
2783 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2784 (start_psymtab_common): Update.
2785 * symfile-debug.c (debug_qf_relocate): Remove.
2786 (debug_sym_quick_functions): Update.
2787 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2788 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2789 Update.
2790
52948f01
TT
27912018-07-26 Tom Tromey <tromey@redhat.com>
2792
2793 * dbxread.c (end_psymtab): Use text_high_valid and
2794 text_low_valid.
2795 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2796 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2797 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2798 Update comment.
2799 <text_low_valid, text_high_valid>: New fields.
2800 <set_text_low, set_text_high>: Update.
2801 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2802
4ae976d1
TT
28032018-07-26 Tom Tromey <tom@tromey.com>
2804
2805 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2806 Update.
2807 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2808 textlow and texthigh fields.
2809 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2810 Update.
2811 * mdebugread.c (parse_lines, parse_partial_symbols)
2812 (psymtab_to_symtab_1): Update.
2813 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2814 Rename fields. Update comment. Now private.
2815 <text_low, text_high, set_text_low, set_text_high>: New methods.
2816 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2817 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2818 (start_psymtab_common, maintenance_info_psymtabs)
2819 (maintenance_check_psymtabs): Update.
2820 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2821 texthigh fields.
2822 (scan_xcoff_symtab): Update.
2823
02e9e7f7
TT
28242018-07-26 Tom Tromey <tromey@redhat.com>
2825
2826 * psympriv.h (struct partial_symbol) <unrelocated_address,
2827 address, set_address>: New methods.
2828 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2829 (fixup_psymbol_section, relocate_psymtabs): Update.
2830 (print_partial_symbols): Add 'objfile' parameter. Update.
2831 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2832 Update.
2833
8a6d4234
TT
28342018-07-26 Tom Tromey <tom@tromey.com>
2835
2836 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2837 (debug_names::write_psymbols): Update.
2838 * psympriv.h (struct partial_symbol): Derive from
2839 general_symbol_info.
2840 <obj_section>: New method.
2841 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2842 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2843 (find_pc_sect_psymbol, fixup_psymbol_section)
2844 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2845 (print_partial_symbols, recursively_search_psymtabs)
2846 (compare_psymbols, psymbol_hash, psymbol_compare)
2847 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2848 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2849
08994e1d
TT
28502018-07-26 Tom Tromey <tromey@redhat.com>
2851
2852 * dbxread.c (end_psymtab): Remove dead code.
2853
3c3bb058
AB
28542018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2855
2856 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2857 DWARF unwinders are disabled.
2858 * dwarf2-frame.c: Add dwarf2read.h include.
2859 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2860 disabled.
2861 (dwarf2_frame_unwinders_enabled_p): Define.
2862 (show_dwarf_unwinders_enabled_p): New function.
2863 (_initialize_dwarf2_frame): Register switch to control DWARF
2864 unwinder use.
2865 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2866 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2867 (show_dwarf_cmdlist): Remove static keyword.
2868 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2869 (show_dwarf_cmdlist): Declare.
2870 * NEWS: Document new feature.
2871
9e7f3bbb
TV
28722018-07-26 Tom de Vries <tdevries@suse.de>
2873
2874 PR breakpoints/23366
2875 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2876
506f5c41
TV
28772018-07-26 Tom de Vries <tdevries@suse.de>
2878
2879 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2880 DW_AT_count can't be translated to a dynamic prop.
2881
16f808ec
TV
28822018-07-25 Tom de Vries <tdevries@suse.de>
2883
2884 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2885 try/catch.
2886
d7154a8d
JV
28872018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2888
2889 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2890
a45389f6
JB
28912018-07-25 Joel Brobecker <brobecker@adacore.com>
2892
2893 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2894
380618d6
KS
28952018-07-24 Keith Seitz <keiths@redhat.comt
2896
2897 PR symtab/23010
2898 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2899 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2900 instead of add_symbol_to_list.
2901 (read_file_scope): Call prepare_one_comp_unit before reading
2902 any other DIEs.
2903
4b17aefe
SM
29042018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2905
2906 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2907
29d17e47
TT
29082018-07-24 Tom Tromey <tom@tromey.com>
2909
2910 * utils.c (malloc, realloc, free): Don't declare.
2911 * configure, config.in: Rebuild.
2912 * configure.ac: Don't check for declarations of free, malloc, or
2913 realloc.
2914
cf4088a9
SM
29152018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2916
2917 * aarch64-linux-nat.c
2918 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2919 variable.
2920 * arm-linux-nat.c (fetch_regs): Likewise.
2921 (store_regs): Likewise.
2922 (fetch_vfp_regs): Likewise.
2923 (store_vfp_regs): Likewise.
2924 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2925 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2926 (arm_linux_nat_target::insert_watchpoint): Likewise.
2927 (arm_linux_nat_target::remove_watchpoint): Likewise.
2928 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2929 Likewise.
2930 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2931 Likewise.
2932 * ppc-linux-nat.c (fetch_register): Likewise.
2933 (fetch_all_gp_regs): Likewise.
2934 (fetch_ppc_registers): Likewise.
2935 (store_all_gp_regs): Likewise.
2936 (store_ppc_registers): Likewise.
2937 (hwdebug_insert_point): Likewise.
2938 (can_use_watchpoint_cond_accel): Likewise.
2939 * remote-sim.c (gdb_os_write_stdout): Likewise.
2940
a0de763e
TT
29412018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2942 Tom Tromey <tom@tromey.com>
2943
2944 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2945 test for it.
2946 * configure: Rebuild.
2947
3b20124b
TT
29482018-07-22 Tom Tromey <tom@tromey.com>
2949
2950 * regformats/regdat.sh: Define xmltarget_${name} inside
2951 #ifndef IN_PROCESS_AGENT.
2952
8c8807f4
TT
29532018-07-22 Tom Tromey <tom@tromey.com>
2954
2955 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2956
c486b610
TT
29572018-07-22 Tom Tromey <tom@tromey.com>
2958
2959 * symfile.c (reread_symbols): Notify iter, not objfile.
2960
494f80a9
TT
29612018-07-22 Tom Tromey <tom@tromey.com>
2962
2963 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2964 Use arch_ops.
2965 (ravenscar_thread_target::prepare_to_store): Likewise.
2966
c51f6a54
TT
29672018-07-22 Tom Tromey <tom@tromey.com>
2968
2969 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2970 unused variable. Call value_fetch_lazy when needed.
2971 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2972 Remove unused variable. Call value_fetch_lazy when needed.
2973
374fd1fd
TT
29742018-07-22 Tom Tromey <tom@tromey.com>
2975
2976 * m32c-tdep.c (mark_dma): Return void.
2977 (make_regs): Remove unused declarations.
2978
d5e9a511
TT
29792018-07-22 Tom Tromey <tom@tromey.com>
2980
2981 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2982 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2983 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2984 bkscm_get_valid_block_smob_arg_unsafe for effect.
2985
996d693a
TT
29862018-07-22 Tom Tromey <tom@tromey.com>
2987
2988 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2989 value_type.
2990
15766370
TT
29912018-07-22 Tom Tromey <tom@tromey.com>
2992
2993 * windows-nat.c (saved_context): Conditionally define.
2994 * remote.c (remote_target::remote_btrace_maybe_reopen):
2995 Conditionally declare "warned".
2996 * inflow.c (sigquit_ours): Conditionally define.
2997 (new_tty): Move "tty" declaration inside #if.
2998 * guile/guile.c (guile_datadir): Conditionally define.
2999 * charset.c (set_be_le_names): Move some declarations inside #if.
3000 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3001 #if.
3002 (parse_xml_btrace_conf): Likewise.
3003
f4e80e13
TT
30042018-07-22 Tom Tromey <tom@tromey.com>
3005
3006 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3007
8d49165d
TT
30082018-07-22 Tom Tromey <tom@tromey.com>
3009
3010 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3011 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3012 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3013 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3014 * stack.c (frame_apply_level_command): Remove unused variable.
3015 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3016 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3017 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3018 unused variable.
3019 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3020 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3021 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3022 variable.
3023 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3024 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3025 variable.
3026 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3027 Remove unused variable.
3028 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3029 variable.
3030 * common/tdesc.c (print_xml_feature::visit): Remove unused
3031 variable.
3032 * compile/compile-object-load.c (store_regs): Remove unused
3033 variables.
3034 * complaints.c (clear_complaints): Remove unused variable.
3035 * corelow.c (core_target_open): Remove unused variable.
3036 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3037 variable.
3038 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3039 variable.
3040 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3041 variable.
3042 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3043 variable.
3044 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3045 variable.
3046 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3047 variable.
3048 * ia64-tdep.c (examine_prologue): Remove unused variable.
3049 * infcall.c (run_inferior_call): Remove unused variable.
3050 * inferior.c (exit_inferior): Remove unused variable.
3051 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3052 * linespec.c (decode_line_2): Remove unused variable.
3053 * linux-nat.c (super_close): Remove.
3054 * linux-tdep.c (linux_info_proc): Remove unused variable.
3055 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3056 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3057 Remove unused variable.
3058 * parse.c (find_minsym_type_and_address): Remove unused variable.
3059 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3060 variable.
3061 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3062 variable.
3063 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3064 variables.
3065 * record-btrace.c (record_btrace_target::store_registers): Remove
3066 unused variable.
3067 (cmd_show_record_btrace_cpu): Remove unused variable.
3068 * riscv-tdep.c (riscv_register_reggroup_p)
3069 (riscv_push_dummy_call, riscv_return_value): Remove unused
3070 variable.
3071 * rust-exp.y (literal): Remove unused variable.
3072 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3073 unused variable.
3074 <STRUCTOP_ANONYMOUS>: Likewise.
3075 * s390-linux-tdep.c (s390_linux_init_abi_31)
3076 (s390_linux_init_abi_64): Remove unused variable.
3077 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3078 (file_select_thread, net_windows_open, _initialize_ser_windows):
3079 Remove unused variables.
3080 * symtab.c (find_pc_sect_line): Remove unused variable.
3081 * target-memory.c (compute_garbled_blocks): Remove unused
3082 variable.
3083 (target_write_memory_blocks): Remove unused variable.
3084 * target.c (target_stack::unpush): Remove unused variables.
3085 * tracepoint.c (start_tracing, all_tracepoint_actions)
3086 (merge_uploaded_trace_state_variables)
3087 (print_one_static_tracepoint_marker): Remove unused variable.
3088 * unittests/basic_string_view/element_access/char/1.cc (test01):
3089 Remove unused variable.
3090 * windows-nat.c (windows_continue, windows_add_all_dlls)
3091 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3092 Remove unused variables.
3093
17cbafdb
SM
30942018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3095
3096 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3097 attr_profile in HAVE_ELF.
3098 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3099 HAVE_ELF.
3100
0ee6c332
SM
31012018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3102
3103 * frame.c (frame_register_unwind): Change parameter name.
3104 (frame_unwind_register): Likewise.
3105 (frame_unwind_register_value): Likewise.
3106 (frame_unwind_register_signed): Likewise.
3107 (frame_unwind_register_unsigned): Likewise.
3108 * frame.h (frame_register_unwind): Likewise.
3109 (frame_unwind_register): Likewise.
3110 (frame_unwind_register_value): Likewise.
3111 (frame_unwind_register_signed): Likewise.
3112 (frame_unwind_register_unsigned): Likewise.
3113 (frame_unwind_arch): Likewise.
3114
e2e31f10
MR
31152018-07-20 Maciej W. Rozycki <macro@mips.com>
3116
3117 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3118 ISA maintenance.
3119
2d389915
MR
31202018-07-20 Maciej W. Rozycki <macro@mips.com>
3121
3122 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3123 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3124 hand.
3125
cbb09508
KS
31262018-07-20 Keith Seitz <keiths@redhat.com>
3127
3128 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3129 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3130 m_compunit_symtab, m_language>: Add "m_" prefix.
3131 Update all uses.
3132 * buildsym.c: Update all uses.
3133
bfe2e011
TT
31342018-07-20 Tom Tromey <tom@tromey.com>
3135
3136 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3137 * buildsym.h (record_line_ftype): Remove typedef.
3138
0e6f3061
TT
31392018-07-20 Tom Tromey <tom@tromey.com>
3140
3141 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3142 (end_expandable_symtab): Likewise.
3143 (end_symtab_get_static_block): Likewise.
3144 (end_symtab_from_static_block): Likewise.
3145 * buildsym-legacy.c (augment_type_symtab): Remove.
3146 (end_expandable_symtab): Remove.
3147 (end_symtab_get_static_block): Remove.
3148 (end_symtab_from_static_block): Remove.
3149
804d2729
TT
31502018-07-20 Tom Tromey <tom@tromey.com>
3151
3152 * dwarf2read.c: Include buildsym.h.
3153 (struct dwarf2_cu) <builder>: New method.
3154 (fixup_go_packaging): Update.
3155 (process_full_comp_unit, process_full_type_unit): Update. Don't
3156 use scoped_free_pendings.
3157 (using_directives): Add "cu" parameter, remove "language".
3158 (read_import_statement, setup_type_unit_groups, )
3159 (read_func_scope, read_lexical_block_scope)
3160 (dwarf2_record_block_ranges, read_namespace): Update.
3161 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3162 (lnp_state_machine::handle_end_sequence): Update.
3163 (class lnp_state_machine) <m_cu>: New member.
3164 <m_record_line_callback>: Remove.
3165 <m_currently_recording_lines>: New member.
3166 (lnp_state_machine::handle_set_file): Update.
3167 (noop_record_line): Remove.
3168 (dwarf_record_line_p): Add cu parameter.
3169 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3170 (lnp_state_machine::record_line)
3171 (lnp_state_machine::lnp_state_machine)
3172 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3173 (dwarf_decode_lines): Update.
3174 (dwarf2_start_subfile): Add cu parameter.
3175 (dwarf2_start_symtab, new_symbol): Update.
3176 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3177 Remove dwarf2_per_objfile parameter.
3178 (dwarf_decode_macros): Update.
3179
80e649fc
TT
31802018-07-20 Tom Tromey <tom@tromey.com>
3181
3182 * stabsread.c (define_symbol): Update.
3183 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3184 * dwarf2read.c (new_symbol): Update.
3185 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3186 * cp-namespace.c: Include buildsym.h.
3187 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3188 * buildsym-legacy.c (get_buildsym_compunit): New function.
3189
0baae8db
TT
31902018-07-20 Tom Tromey <tom@tromey.com>
3191
3192 * xcoffread.c: Include buildsym-legacy.h.
3193 * windows-nat.c: Include buildsym-legacy.h.
3194 * stabsread.c: Include buildsym-legacy.h.
3195 * mdebugread.c: Include buildsym-legacy.h.
3196 * buildsym-legacy.h: New file.
3197 * buildsym-legacy.c: New file, from buildsym.c.
3198 * go32-nat.c: Include buildsym-legacy.h.
3199 * dwarf2read.c: Include buildsym-legacy.h.
3200 * dbxread.c: Include buildsym-legacy.h.
3201 * cp-namespace.c: Include buildsym-legacy.h.
3202 * coffread.c: Include buildsym-legacy.h.
3203 * buildsym.h: Move some contents to buildsym-legacy.h.
3204 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3205 buildsym-legacy.c.
3206 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3207
ab209f6f
TT
32082018-07-20 Tom Tromey <tom@tromey.com>
3209
3210 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3211 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3212 (buildsym_compunit::buildsym_compunit)
3213 (buildsym_compunit::~buildsym_compunit)
3214 (buildsym_compunit::get_macro_table): Define.
3215
74c72eac
TT
32162018-07-20 Tom Tromey <tom@tromey.com>
3217
3218 * buildsym.c (reset_symtab_globals): Remove.
3219 (buildsym_compunit::end_symtab_from_static_block): Update.
3220 (buildsym_compunit::augment_type_symtab): Update.
3221 (end_symtab_from_static_block): Call free_buildsym_compunit.
3222 (augment_type_symtab, end_symtab, end_expandable_symtab):
3223 Likewise.
3224
da6580e5
TT
32252018-07-20 Tom Tromey <tom@tromey.com>
3226
3227 * arch-utils.c: Do not include buildsym.h.
3228 * mipsread.c: Do not include buildsym.h.
3229 * machoread.c: Do not include buildsym.h.
3230 * elfread.c: Do not include buildsym.h.
3231
4a2125f5
TT
32322018-07-20 Tom Tromey <tom@tromey.com>
3233
3234 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3235 initialization.
3236 (buildsym_compunit): Add new constructor.
3237 (struct buildsym_compunit) <get_last_source_file, finish_block,
3238 record_block_range, start_subfile, patch_subfile_names,
3239 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3240 set_last_source_start_addr, get_last_source_start_addr,
3241 get_local_using_directives, set_local_using_directives,
3242 get_global_using_directives, outermost_context_p,
3243 get_current_context_stack, get_context_stack_depth,
3244 get_current_subfile, get_local_symbols, get_file_symbols,
3245 get_global_symbols, record_debugformat, record_producer,
3246 push_context, pop_context, end_symtab_get_static_block,
3247 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3248 New public methods.
3249 <record_pending_block, finish_block_internal, make_blockvector,
3250 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3251 private methods.
3252 Update all users.
3253
32542018-05-22 Tom Tromey <tom@tromey.com>
3255
3256 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3257 parameter.
3258 (finish_block_internal): Update.
3259
6b213a47
TT
32602018-07-20 Tom Tromey <tom@tromey.com>
3261
3262 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3263 parameter.
3264 (finish_block_internal): Update.
3265
b80a981d
TT
32662018-07-20 Tom Tromey <tom@tromey.com>
3267
3268 * buildsym.h (EXTERN): Don't define or undef.
3269 * buildsym.c (EXTERN): Don't define.
3270
ddb70602
TT
32712018-07-20 Tom Tromey <tom@tromey.com>
3272
3273 * buildsym.c: Remove TODO comment.
3274
b37dd3bc
TT
32752018-07-20 Tom Tromey <tom@tromey.com>
3276
3277 * coffread.c (coff_symtab_read): Update.
3278 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3279 (xcoff_new_init): Update.
3280 * mipsread.c (mipscoff_new_init): Update.
3281 * mdebugread.c (mdebug_build_psymtabs): Update.
3282 * elfread.c (elf_new_init): Update.
3283 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3284 Update.
3285 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3286 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3287 (stabsect_build_psymtabs): Update.
3288 * buildsym.h (buildsym_init): Don't declare.
3289 * buildsym.c: Update comment.
3290 (prepare_for_building): Remove.
3291 (start_symtab, restart_symtab): Update.
3292 (reset_symtab_globals): Update comment.
3293 (buildsym_init): Remove.
3294
e148f09d
TT
32952018-07-20 Tom Tromey <tom@tromey.com>
3296
3297 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3298 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3299 (read_enum_type, common_block_start, common_block_end)
3300 (cleanup_undefined_types_1, finish_global_stabs): Update.
3301 * mdebugread.c (psymtab_to_symtab_1): Update.
3302 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3303 (read_lexical_block_scope, new_symbol): Update.
3304 * dbxread.c (process_one_symbol): Update.
3305 * coffread.c (coff_symtab_read, process_coff_symbol)
3306 (coff_read_enum_type): Update.
3307 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3308 declare.
3309 (get_local_symbols, get_file_symbols, get_global_symbols): New
3310 functions.
3311 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3312 m_global_symbols.
3313 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3314 (~scoped_free_pendings): Update.
3315 (finish_block, prepare_for_building, reset_symtab_globals)
3316 (end_symtab_get_static_block, end_symtab_with_blockvector)
3317 (augment_type_symtab, push_context): Update.
3318 (get_local_symbols, get_file_symbols, get_global_symbols): New
3319 functions.
3320 (buildsym_init): Update.
3321
93b8bea4
TT
33222018-07-20 Tom Tromey <tom@tromey.com>
3323
3324 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3325 (process_full_type_unit): Likewise.
3326 (dwarf2_start_symtab): Set list_in_scope.
3327
f62f6af5
TT
33282018-07-20 Tom Tromey <tom@tromey.com>
3329
3330 * dwarf2read.c (process_psymtab_comp_unit_reader)
3331 (build_type_psymtabs_reader): Do not set list_in_scope.
3332
1d376700
TT
33332018-07-20 Tom Tromey <tom@tromey.com>
3334
3335 * buildsym.c (free_pendings): Remove.
3336 (add_symbol_to_list, scoped_free_pendings)
3337 (finish_block_internal, buildsym_init): Update.
3338
c233e9c6
TT
33392018-07-20 Tom Tromey <tom@tromey.com>
3340
3341 * xcoffread.c (read_xcoff_symtab): Update.
3342 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3343 Update.
3344 * dbxread.c (process_one_symbol): Update.
3345 * coffread.c (coff_symtab_read): Update.
3346 * buildsym.h (finish_block): Update.
3347 * buildsym.c (finish_block): Remove "listhead" argument.
3348 (end_symtab_get_static_block): Update.
3349
5ac04550
TT
33502018-07-20 Tom Tromey <tom@tromey.com>
3351
3352 * buildsym.h (class scoped_free_pendings): Remove constructor.
3353 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3354 method.
3355 <m_pending_block_obstack, m_pending_blocks>: New members.
3356 (pending_block_obstack, pending_blocks): Remove.
3357 (scoped_free_pendings::scoped_free_pendings): Default.
3358 (~scoped_free_pendings): Update.
3359 (free_pending_blocks): Remove.
3360 (finish_block_internal, record_pending_block, make_blockvector)
3361 (end_symtab_get_static_block, augment_type_symtab, push_context)
3362 (buildsym_init): Update.
3363
7ea05a7b
TT
33642018-07-20 Tom Tromey <tom@tromey.com>
3365
3366 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3367 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3368 members.
3369 (pending_addrmap, pending_addrmap_obstack)
3370 (pending_addrmap_interesting): Remove.
3371 (scoped_free_pendings, record_block_range, make_blockvector)
3372 (prepare_for_building, reset_symtab_globals, buildsym_init):
3373 Update.
3374
3c65e5b3
TT
33752018-07-20 Tom Tromey <tom@tromey.com>
3376
3377 * xcoffread.c (process_linenos): Update.
3378 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3379 * mdebugread.c (psymtab_to_symtab_1): Update.
3380 * dwarf2read.c (setup_type_unit_groups)
3381 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3382 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3383 * dbxread.c (process_one_symbol): Update.
3384 * coffread.c (coff_symtab_read, enter_linenos)
3385 (process_coff_symbol): Update.
3386 * buildsym.h (current_subfile): Don't declare.
3387 (get_current_subfile): Declare.
3388 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3389 member.
3390 (start_subfile, free_buildsym_compunit, push_subfile)
3391 (prepare_for_building, start_symtab): Update.
3392 (get_current_subfile): New function.
3393
a60f3166
TT
33942018-07-20 Tom Tromey <tom@tromey.com>
3395
3396 * coffread.c (coff_symtab_read): Update.
3397 * xcoffread.c (read_xcoff_symtab): Update.
3398 * dwarf2read.c (new_symbol): Update.
3399 (read_func_scope, read_lexical_block_scope): Update.
3400 * dbxread.c (process_one_symbol): Update.
3401 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3402 (outermost_context_p): Remove macro.
3403 (outermost_context_p, get_current_context_stack)
3404 (get_context_stack_depth): Declare.
3405 (pop_context): Return struct context_stack.
3406 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3407 member.
3408 (context_stack_size): Remove.
3409 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3410 (prepare_for_building, end_symtab_get_static_block)
3411 (augment_type_symtab, push_context): Update.
3412 (pop_context): Return struct context_stack.
3413 (outermost_context_p, get_current_context_stack)
3414 (get_context_stack_depth): New functions.
3415 (buildsym_init): Update.
3416
56ba65a0
TT
34172018-07-20 Tom Tromey <tom@tromey.com>
3418
3419 * rust-exp.y: Now a pure parser. Update all rules.
3420 (%union): Move earlier.
3421 (current_parser, work_obstack): Remove globals.
3422 (rust_parser, ~rust_parser): Update.
3423 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3424 lex_character, lex_number, lex_string, lex_identifier,
3425 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3426 convert_name, convert_params_to_expression,
3427 convert_ast_to_expression, ast_basic_type, ast_operation,
3428 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3429 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3430 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3431 ast_array_type, ast_slice_type, ast_reference_type,
3432 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3433 (rust_parse): Update.
3434 (rustyyerror, rustyylex): Add parser parameter.
3435 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3436 (rust_lex_stringish_test, rust_lex_test_sequence)
3437 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3438 (rust_lex_test_push_back, rust_lex_tests): Update.
3439
4c693332
PA
34402018-07-19 Pedro Alves <palves@redhat.com>
3441
3442 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3443 gdb::unique_xmalloc_ptr.
3444 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3445 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3446 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3447 copy-initialization.
3448 * guile/scm-pretty-print.c (ppscm_print_children): Use
3449 gdb::unique_xmalloc_ptr instead of cleanups.
3450 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3451 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3452 gdb::unique_xmalloc_ptr.
3453 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3454 Adjust to use gdb::unique_xmalloc_ptr.
3455 * guile/scm-utils.c (extract_arg): Adjust.
3456 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3457 gdb::unique_xmalloc_ptr instead of a cleanup.
3458
4581dc82
TT
34592018-07-19 Tom Tromey <tom@tromey.com>
3460
3461 * utils.c (do_value_free_to_mark)
3462 (make_cleanup_value_free_to_mark): Remove.
3463 * utils.h (make_cleanup_value_free_to_mark): Remove.
3464
43cc6c3a
PA
34652018-07-19 Pedro Alves <palves@redhat.com>
3466
3467 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3468 forwarding reference.
3469
3a5f2a48
PA
34702018-07-18 Pedro Alves <palves@redhat.com>
3471
3472 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3473 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3474 cleanup.
3475
557e56be
PA
34762018-07-18 Pedro Alves <palves@redhat.com>
3477
3478 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3479 exceptions.
3480 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3481 (gdbscm_wrap): New.
3482 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3483 directly instead of a cleanup.
3484 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3485 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3486 (vlscm_binop_gdbthrow): New, factored out from ...
3487 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3488 (vlscm_rich_compare): Use gdbscm_wrap.
3489 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3490 instead of a cleanup.
3491 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3492 cleanup.
3493 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3494 Use xfree directly instead of a cleanup.
3495 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3496 Adjust to use gdbscm_wrap and scoped_value_mark.
3497 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3498 (gdbscm_value_address, gdbscm_value_dereference)
3499 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3500 scoped_value_mark.
3501 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3502 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3503 scoped_value_mark.
3504 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3505 gdbscm_wrap and scoped_value_mark.
3506 (gdbscm_value_to_string): Use xfree directly instead of a
3507 cleanup. Move 'buffer' unique_ptr to TRY scope.
3508 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3509 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3510 scoped_value_mark.
3511 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3512 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3513 scoped_value_mark.
3514 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3515 gdbscm_wrap.
3516
42dc7699
TV
35172018-07-18 Tom de Vries <tdevries@suse.de>
3518
3519 * findvar.c (default_read_var_value): Also resolve dynamic type for
3520 LOC_OPTIMIZED_OUT vars.
3521
6592ceed
MR
35222018-07-18 Maciej W. Rozycki <macro@mips.com>
3523
3524 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3525 decoding.
3526
c6c6149a
TT
35272018-07-17 Tom Tromey <tom@tromey.com>
3528
3529 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3530 (compute_enum_list, pascm_set_param_value_x)
3531 (gdbscm_parameter_value): Update.
3532 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3533 (gdbscm_scm_to_host_string): Update.
3534 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3535 Update.
3536 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3537 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3538 * guile/scm-string.c (gdbscm_scm_to_string): Return
3539 unique_xmalloc_ptr.
3540 (gdbscm_scm_to_host_string): Likewise.
3541
a1a31cb8
TT
35422018-07-17 Tom Tromey <tom@tromey.com>
3543
3544 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3545 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3546 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3547 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3548 unique_xmalloc_ptr.
3549
15bf3002
TT
35502018-07-17 Tom Tromey <tom@tromey.com>
3551
3552 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3553 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3554 Update.
3555 * guile/scm-cmd.c (cmdscm_function): Update.
3556 * guile/scm-pretty-print.c
3557 (ppscm_print_exception_unless_memory_error): Update.
3558 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3559 Return unique_xmalloc_ptr.
3560
7eb1a66c
TT
35612018-07-17 Tom Tromey <tom@tromey.com>
3562
3563 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3564 Use string_printf.
3565
ce73f310
JW
35662018-07-17 Jim Wilson <jimw@sifive.com>
3567
27724bad
JW
3568 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3569 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3570 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3571 unecessary braces after EF_RISCV_RVC test. Delete call to
3572 set_gdbarch_decr_pc_after_break.
3573
ce73f310
JW
3574 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3575 RISCV_LAST_FP_REGNUM + 1.
3576 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3577
056dec39
TT
35782018-07-17 Tom Tromey <tom@tromey.com>
3579
3580 * configure.ac: Remove --disable-gdbcli.
3581 * configure: Rebuild.
3582 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3583 (SUBDIR_CLI_CFLAGS): Remove.
3584 (SFILES): Use SUBDIR_CLI_SRCS.
3585 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3586
4735f0ed
TT
35872018-07-17 Tom Tromey <tom@tromey.com>
3588
3589 PR gdb/18624:
3590 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3591
117a0e99
JW
35922018-07-16 Jim Wilson <jimw@sifive.com>
3593
3594 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3595
8a67aaa8
SM
35962018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3597
3598 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3599 variable.
3600 (libunwind_frame_sniffer): Likewise.
3601 (libunwind_frame_prev_register): Likewise.
3602 (libunwind_sigtramp_frame_sniffer): Likewise.
3603 * ia64-tdep.c (ia64_access_reg): Likewise.
3604 (ia64_access_rse_reg): Likewise.
3605 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3606 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3607
ec74dcd8
SM
36082018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3609
3610 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3611
a700e753
SM
36122018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3613
3614 * remote-sim.c (gdbsim_target::close,
3615 gdbsim_target::mourn_inferior): Remove unused variables.
3616
8b411ff8
SM
36172018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3618
3619 * ia64-tdep.c (ktab_buf): New global.
3620 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3621 (get_kernel_table): Adjust.
3622
edb0470b
TT
36232018-07-16 Tom Tromey <tom@tromey.com>
3624
3625 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3626 * dwarf2read.c (using_directives, new_symbol): Use
3627 outermost_context_p.
3628 * dbxread.c (process_one_symbol): Use outermost_context_p.
3629 * coffread.c (coff_symtab_read): Use outermost_context_p.
3630
6cccc9a8
TT
36312018-07-16 Tom Tromey <tom@tromey.com>
3632
3633 * dwarf2read.c (using_directives, read_func_scope)
3634 (read_lexical_block_scope): Update.
3635 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3636 * buildsym.h (local_using_directives, global_using_directives):
3637 Don't declare.
3638 (get_local_using_directives, set_local_using_directives)
3639 (get_global_using_directives): Declare.
3640 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3641 m_global_using_directives>: New members.
3642 (finish_block_internal, prepare_for_building)
3643 (reset_symtab_globals, end_symtab_get_static_block)
3644 (push_context): Update.
3645 (get_local_using_directives, set_local_using_directives)
3646 (get_global_using_directives): New functions.
3647 (buildsym_init): Update.
3648
652788a7
TT
36492018-07-16 Tom Tromey <tom@tromey.com>
3650
3651 * xcoffread.c (xcoff_initial_scan): Don't call
3652 free_pending_blocks.
3653 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3654 * buildsym.h (class scoped_free_pendings): Add constructor.
3655 (free_pending_blocks): Don't declare.
3656 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3657 (free_pending_blocks): Now static.
3658
8419ee53
TT
36592018-07-16 Tom Tromey <tom@tromey.com>
3660
3661 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3662 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3663 member.
3664 (struct subfile_stack): Remove.
3665 (subfile_stack): Remove.
3666 (push_subfile, pop_subfile, buildsym_init): Update.
3667
ccdac490
TT
36682018-07-16 Tom Tromey <tom@tromey.com>
3669
3670 * buildsym.c (push_subfile): Use gdb_assert.
3671 (pop_subfile): Use gdb_assert.
3672
43130d6f
TT
36732018-07-16 Tom Tromey <tom@tromey.com>
3674
3675 * buildsym.h (merge_symbol_lists): Remove.
3676 * buildsym.c (merge_symbol_lists): Remove.
3677
77d6f1aa
TT
36782018-07-16 Tom Tromey <tom@tromey.com>
3679
3680 * stabsread.c (scan_file_globals): Update comment.
3681 * stabsread.h (scan_file_globals): Move from buildsym.h.
3682 * buildsym.h (scan_file_globals): Move to stabsread.h.
3683
2c722d18
TT
36842018-07-16 Tom Tromey <tom@tromey.com>
3685
3686 * xcoffread.c (xcoff_new_init): Update.
3687 * mipsread.c (mipscoff_new_init): Update.
3688 * mdebugread.c (mdebug_build_psymtabs): Update.
3689 * elfread.c (elf_new_init): Update.
3690 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3691 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3692 * buildsym.h (buildsym_new_init): Don't declare.
3693 * buildsym.c (buildsym_new_init): Remove.
3694
5985ac61
TT
36952018-07-16 Tom Tromey <tom@tromey.com>
3696
3697 * stabsread.h (within_function): Move from buildsym.h.
3698 * stabsread.c (start_stabs): Clear within_function.
3699 * coffread.c (coff_start_symtab): Clear within_function.
3700 * buildsym.h (within_function): Move to stabsread.h.
3701 * buildsym.c (prepare_for_building): Update.
3702
6b84eeb2
TT
37032018-07-16 Tom Tromey <tom@tromey.com>
3704
3705 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3706 * dwarf2read.c (dwarf2_start_symtab): Don't set
3707 processing_gcc_compilation.
3708 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3709
2150c3ef
TT
37102018-07-16 Tom Tromey <tom@tromey.com>
3711
3712 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3713 (next_symbol_text_func): Move from buildsym.h.
3714 * stabsread.c (hashname): Move from buildsym.c.
3715 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3716 (next_symbol_text_func, hashname): Move to stabsread.h.
3717 * buildsym.c: Don't include bcache.h
3718 (hashname): Move to stasbread.c.
3719
0ec44fc0
TT
37202018-07-16 Tom Tromey <tom@tromey.com>
3721
3722 * buildsym.h (context_stack_size): Don't declare.
3723 * buildsym.c (context_stack_size): New global.
3724
81cc346d
TT
37252018-07-16 Tom Tromey <tom@tromey.com>
3726
3727 * dbxread.c (processing_acc_compilation): New global.
3728 * buildsym.h (processing_acc_compilation): Don't declare.
3729
2c99ee5c
TT
37302018-07-16 Tom Tromey <tom@tromey.com>
3731
3732 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3733 * dbxread.c (read_ofile_symtab): Update.
3734 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3735 * buildsym.h (last_source_start_addr): Remove.
3736 (set_last_source_start_addr, get_last_source_start_addr):
3737 Declare.
3738 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3739 parameter.
3740 (struct buildsym_compunit) <m_last_source_start_addr>: New
3741 member.
3742 (prepare_for_building): Remove start_addr parameter.
3743 (start_symtab, restart_symtab, end_symtab_get_static_block)
3744 (end_symtab_with_blockvector): Update.
3745 (set_last_source_start_addr, get_last_source_start_addr): New
3746 functions.
3747
530fedbc
TT
37482018-07-16 Tom Tromey <tom@tromey.com>
3749
3750 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3751 member.
3752 (have_line_numbers): Remove.
3753 (record_line, prepare_for_building, end_symtab_get_static_block)
3754 (augment_type_symtab): Update.
3755
6a976300
TT
37562018-07-16 Tom Tromey <tom@tromey.com>
3757
3758 * buildsym.c (~buildsym_compunit): Free the macro table.
3759 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3760 methods.
3761 <m_pending_macros>: New member.
3762 (pending_macros): Remove.
3763 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3764 (reset_symtab_globals, end_symtab_get_static_block)
3765 (end_symtab_with_blockvector, augment_type_symtab)
3766 (buildsym_init): Update.
3767
c0015d44
TT
37682018-07-16 Tom Tromey <tom@tromey.com>
3769
3770 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3771 parameter.
3772 (buildsym_compunit::set_last_source_file): New method.
3773 <m_last_source_file>: New member.
3774 (prepare_for_building): Remove "name" parameter.
3775 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3776 (last_source_file): Remove.
3777 (set_last_source_file, get_last_source_file): Update.
3778
e62cca7c
TT
37792018-07-16 Tom Tromey <tom@tromey.com>
3780
3781 * buildsym.c (prepare_for_building): Add assert.
3782
905eb0e2
TT
37832018-07-16 Tom Tromey <tom@tromey.com>
3784
3785 * buildsym.c (~buildsym_compunit): Update.
3786 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3787 (start_subfile, patch_subfile_names)
3788 (end_symtab_with_blockvector): Update.
3789
b248663f
TT
37902018-07-16 Tom Tromey <tom@tromey.com>
3791
3792 * buildsym.c (struct buildsym_compunit): Add constructor,
3793 destructor, initializers.
3794 (start_buildsym_compunit): Remove.
3795 (free_buildsym_compunit): Use "delete".
3796 (start_symtab, restart_symtab): Use "new".
3797
ff27d073
SM
37982018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3799
3800 * symfile.c (set_objfile_default_section_offset): Remove struct
3801 keyword.
3802
6a15ecf5
SH
38032018-07-14 Stafford Horne <shorne@gmail.com>
3804
3805 * (Responsible Maintainers): Add myself as or1k maintainer.
3806
027a4c30
TT
38072018-07-13 Tom Tromey <tom@tromey.com>
3808
3809 * symfile.c (set_objfile_default_section_offset): Use extra braces
3810 around initializer.
3811
5c1eda30
AA
38122018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3813
3814 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3815 non-branching basr.
3816
bc7b042b
PW
38172018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3818
3819 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3820 unittests/cli-utils-selftests.c
3821 * unittests/cli-utils-selftests.c: New file.
3822
a14c4daa
PW
38232018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3824
3825 * NEWS: Mention new commands. Mention change to 'thread apply'.
3826
1fe75df7
PW
38272018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3828
3829 * thread.c (thr_try_catch_cmd): New function.
3830 (thread_apply_all_command): Handle qcs flags.
3831 (thread_apply_command): Handle qcs flags.
3832 (taas_command): New function.
3833 (tfaas_command): New function.
3834 (_initialize_thread): Update to setup the new commands 'taas
3835 and 'tfaas'. Change doc string for 'thread apply'.
3836
6a70eb7d
PW
38372018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3838
3839 * stack.c: (trailing_outermost_frame): New function, mostly
3840 extracted from backtrace_command_1.
3841 (leading_innermost_frame): New function.
3842 (backtrace_command_1): Update to call trailing_outermost_frame.
3843 (frame_apply_command_count): New function.
3844 (frame_apply_level_command): New function.
3845 (frame_apply_all_command): New function.
3846 (frame_apply_command): New function.
3847 (faas_command): New function.
3848 (frame_cmd_list): New variable.
3849 (_initialize_stack): Update to setup the new commands 'frame apply'
3850 and 'faas'.
3851
529c08b2
PW
38522018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3853
3854 * cli-utils.c (number_or_range_parser::get_number): Only handle
3855 numbers or convenience var as numbers.
3856 (parse_flags): New function.
3857 (parse_flags_qcs): New function.
3858 (number_or_range_parser::finished): Ensure parsing end is detected
3859 before end of string.
3860 * cli-utils.h (parse_flags): New function.
3861 (parse_flags_qcs): New function.
3862 (number_or_range_parser): Remove m_finished bool.
3863 (number_or_range_parser::skip_range): Set m_in_range to false.
3864
64b58472
SDJ
38652018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3866
3867 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3868 on Windows.
3869
c7ab0aef
SDJ
38702018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3871 Jan Kratochvil <jan.kratochvil@redhat.com>
3872 Paul Fertser <fercerpav@gmail.com>
3873 Tsutomu Seki <sekiriki@gmail.com>
3874 Pedro Alves <palves@redhat.com>
3875
3876 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3877 'unittests/parse-connection-spec-selftests.c'.
3878 (COMMON_SFILES): Add 'common/netstuff.c'.
3879 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3880 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3881 * common/netstuff.c: New file.
3882 * common/netstuff.h: New file.
3883 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3884 (wait_for_connect): Update comment. New parameter
3885 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3886 Use 'sock' directly instead of 'scb->fd'.
3887 (try_connect): New function, with code from 'net_open'.
3888 (net_open): Rewrite main loop to deal with multiple
3889 sockets/addresses. Handle IPv6-style hostnames; implement
3890 support for IPv6 connections.
3891 * unittests/parse-connection-spec-selftests.c: New file.
3892
4c7333b3
PA
38932018-07-11 Pedro Alves <palves@redhat.com>
3894
3895 PR gdb/23377
3896 * remote.c (remote_target::remote_detach_pid): Call
3897 set_current_process.
3898
a6f88f6e
PA
38992018-07-11 Pedro Alves <palves@redhat.com>
3900
3901 * h8300-tdep.c (h8300_gdbarch_init): Remove
3902 set_gdbarch_ecoff_reg_to_regnum calls.
3903
16ff70dd
SDJ
39042018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3905
3906 PR c++/23373
3907 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3908 offsets/sizes for static members of a class/struct.
3909
12863263
AH
39102018-07-11 Alan Hayward <alan.hayward@arm.com>
3911
3912 * target-descriptions.c (tdesc_register_bitsize): Rename.
3913 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3914 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3915 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3916
1123588c
TT
39172018-07-10 Tom Tromey <tom@tromey.com>
3918
3919 * breakpoint.c (moribund_locations): Now static and a
3920 std::vector.
3921 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3922 (build_bpstat_chain, update_global_location_list)
3923 (breakpoint_retire_moribund): Update.
3924 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3925 VEC.
3926
8c49aa89
AB
39272018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3928
3929 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3930 (riscv_register_reggroup_p): Use new function, remove unneeded
3931 parenthesis.
3932 (riscv_push_dummy_call): Extend assert to compare against xlen or
3933 flen based on register type.
3934
42ecac17
AB
39352018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3936
3937 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3938
055303e2
AB
39392018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3940
3941 * remote.c (show_hardware_watchpoint_limit): New function.
3942 (show_hardware_watchpoint_length_limit): New function.
3943 (show_hardware_breakpoint_limit): New function.
3944 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3945 where appropriate, update help text.
3946
8fd32c1c
TT
39472018-07-09 Tom Tromey <tom@tromey.com>
3948
3949 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3950 (CLIBS): Don't mention NAT_CLIBS.
3951
31278b51
TT
39522018-07-09 Tom Tromey <tom@tromey.com>
3953
3954 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3955 (LIBGDB_OBS, clean mostlyclean): Update.
3956 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3957
e5fd1493
TT
39582018-07-09 Tom Tromey <tom@tromey.com>
3959
3960 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3961 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3962 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3963
981e0c0c
TT
39642018-07-09 Tom Tromey <tom@tromey.com>
3965
3966 * Makefile.in (ALLDEPFILES): Remove exec.c.
3967 (COMMON_OBS): Remove exec.o.
3968 (COMMON_SFILES): Add exec.c.
3969
14ccceb2
TT
39702018-07-09 Tom Tromey <tom@tromey.com>
3971
3972 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3973
5d3c3a68
TT
39742018-07-09 Tom Tromey <tom@tromey.com>
3975
3976 * Makefile.in (clean mostlyclean): Remove stamp-version.
3977 (version.c): Depend on stamp-version.
3978 (stamp-version): New rule, from version.c rule.
3979
1998086d
TT
39802018-07-09 Tom Tromey <tom@tromey.com>
3981
3982 * Makefile.in (init.c): Depend on stamp-init.
3983 (stamp-init): New rule, from init.c rule.
3984 (clean mostlyclean): Remove stamp-init.
3985
4c754949
TT
39862018-07-09 Tom Tromey <tom@tromey.com>
3987
3988 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3989 SUBDIR_GCC_COMPILE_SRCS.
3990
6497f1dd
TT
39912018-07-09 Tom Tromey <tom@tromey.com>
3992
3993 * Makefile.in (init.c): Remove some unused sed rules.
3994
97a34db9
TT
39952018-07-09 Tom Tromey <tom@tromey.com>
3996
3997 * Makefile.in (TSOBS): Remove.
3998 (INIT_FILES): Update.
3999 (LIBGDB_OBS): Update.
4000 (COMMON_SFILES): Add inflow.c.
4001 (SFILES): Remove inflow.c.
4002
25289ac1
JK
40032018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4004
4005 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4006
e83f4d97
SM
40072018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4008
4869c585
SM
4009 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4010 get_saveloc_name, is_signal_frame_name, step_name,
4011 init_remote_name, create_addr_space_name,
4012 destroy_addr_space_name, search_unwind_table_name,
4013 find_dyn_list_name): Constify.
e83f4d97 4014
6821842f
SM
40152018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4016
4017 * darwin-nat.c (darwin_pthread_kill): New function.
4018 (darwin_resume_thread): Use darwin_pthread_kill.
4019
c530603c
TV
40202018-07-05 Tom de Vries <tdevries@suse.de>
4021
4022 * macroexp.c (macro_buffer) <operator=>: New member function.
4023
a7d0f0f0
TT
40242018-07-04 Tom Tromey <tom@tromey.com>
4025
4026 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4027
6242c6a6
SM
40282018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4029
4030 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4031 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4032 * maint.c: Likewise.
4033 * top.c: Likewise.
4034
4e5b2f89
JB
40352018-07-04 Joel Brobecker <brobecker@adacore.com>
4036
4037 * NEWS: Create a new section for the next release branch.
4038 Rename the section of the current branch, now that it has
4039 been cut.
4040
538ccc4a
JB
40412018-07-04 Joel Brobecker <brobecker@adacore.com>
4042
4043 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4044 * version.in: Bump version to 8.2.50.DATE-git.
4045
1b919490
VB
40462018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4047 Pedro Alves <palves@redhat.com>
4048
4049 * linux-nat.c (linux_init_ptrace): Rename to ...
4050 (linux_init_ptrace_procfs): ... this. Call
4051 linux_proc_init_warnings.
4052 (linux_nat_target::post_attach)
4053 (linux_nat_target::post_startup_inferior): Adjust.
4054 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4055 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4056
1ea5da02
TV
40572018-07-04 Tom de Vries <tdevries@suse.de>
4058
4059 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4060 check ...
4061 (read_comp_unit_head): ... here.
4062
f51e0e20
TT
40632018-07-03 Tom Tromey <tom@tromey.com>
4064
4065 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4066 (stop_tracing, tstatus_command)
4067 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4068 (print_one_static_tracepoint_marker): Update.
4069 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4070 std::vector.
4071 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4072 VEC.
4073 (all_tracepoints, static_tracepoints_here): Return std::vector.
4074
d7e15655
TT
40752018-07-03 Tom Tromey <tom@tromey.com>
4076
4077 * common/ptid.c (ptid_equal): Remove.
4078 * common/ptid.h (ptid_equal): Don't declare.
4079 * ada-tasks.c: Update.
4080 * breakpoint.c: Update.
4081 * common/agent.c: Update.
4082 * corelow.c: Update.
4083 * darwin-nat-info.c: Update.
4084 * darwin-nat.c: Update.
4085 * dcache.c: Update.
4086 * dtrace-probe.c: Update.
4087 * dummy-frame.c: Update.
4088 * fbsd-nat.c: Update.
4089 * frame.c: Update.
4090 * gdbthread.h: Update.
4091 * gnu-nat.c: Update.
4092 * go32-nat.c: Update.
4093 * inf-loop.c: Update.
4094 * inf-ptrace.c: Update.
4095 * infcall.c: Update.
4096 * infcmd.c: Update.
4097 * inflow.c: Update.
4098 * infrun.c: Update.
4099 * linux-fork.c: Update.
4100 * linux-nat.c: Update.
4101 * linux-thread-db.c: Update.
4102 * mi/mi-cmd-var.c: Update.
4103 * mi/mi-interp.c: Update.
4104 * mi/mi-main.c: Update.
4105 * nto-procfs.c: Update.
4106 * ppc-linux-tdep.c: Update.
4107 * procfs.c: Update.
4108 * python/py-inferior.c: Update.
4109 * python/py-record-btrace.c: Update.
4110 * python/py-record.c: Update.
4111 * ravenscar-thread.c: Update.
4112 * regcache.c: Update.
4113 * remote-sim.c: Update.
4114 * remote.c: Update.
4115 * sol-thread.c: Update.
4116 * solib.c: Update.
4117 * target.c: Update.
4118 * tui/tui-stack.c: Update.
4119 * varobj.c: Update.
4120 * windows-nat.c: Update.
4121 * windows-tdep.c: Update.
4122
26a57c92
TT
41232018-07-03 Tom Tromey <tom@tromey.com>
4124
4125 * common/ptid.c (ptid_match): Remove.
4126 * common/ptid.h (ptid_match): Don't declare.
4127 * fbsd-nat.c: Update.
4128 * infcmd.c: Update.
4129 * infrun.c: Update.
4130 * linux-nat.c: Update.
4131 * record-btrace.c: Update.
4132 * regcache.c: Update.
4133 * remote.c: Update.
4134
d2a107e3
TT
41352018-07-03 Tom Tromey <tom@tromey.com>
4136
4137 * common/ptid.c (ptid_tid_p): Remove.
4138 * common/ptid.h (ptid_tid_p): Don't declare.
4139 * sol-thread.c: Update.
4140
15a9e13e
TT
41412018-07-03 Tom Tromey <tom@tromey.com>
4142
4143 * common/ptid.c (ptid_lwp_p): Remove.
4144 * common/ptid.h (ptid_lwp_p): Don't declare.
4145 * fbsd-nat.c: Update.
4146 * linux-nat.c: Update.
4147 * nat/linux-procfs.c: Update.
4148 * nat/x86-linux-dregs.c: Update.
4149 * sol-thread.c: Update.
4150
0e998d96
TT
41512018-07-03 Tom Tromey <tom@tromey.com>
4152
4153 * common/ptid.c (ptid_is_pid): Remove.
4154 * common/ptid.h (ptid_is_pid): Don't declare.
4155 * infrun.c: Update.
4156 * linux-nat.c: Update.
4157 * mi/mi-interp.c: Update.
4158 * remote.c: Update.
4159 * thread.c: Update.
4160
cc6bcb54
TT
41612018-07-03 Tom Tromey <tom@tromey.com>
4162
4163 * common/ptid.c (ptid_get_tid): Remove.
4164 * common/ptid.h (ptid_get_tid): Don't declare.
4165 * ada-tasks.c: Update.
4166 * aix-thread.c: Update.
4167 * bsd-uthread.c: Update.
4168 * darwin-nat.c: Update.
4169 * fbsd-nat.c: Update.
4170 * i386-darwin-nat.c: Update.
4171 * infrun.c: Update.
4172 * linux-tdep.c: Update.
4173 * nto-procfs.c: Update.
4174 * ppc-ravenscar-thread.c: Update.
4175 * python/py-infthread.c: Update.
4176 * ravenscar-thread.c: Update.
4177 * sol-thread.c: Update.
4178 * sparc-ravenscar-thread.c: Update.
4179 * windows-nat.c: Update.
4180
e38504b3
TT
41812018-07-03 Tom Tromey <tom@tromey.com>
4182
4183 * common/ptid.c (ptid_get_lwp): Remove.
4184 * common/ptid.h (ptid_get_lwp): Don't declare.
4185 * aarch64-linux-nat.c: Update.
4186 * ada-tasks.c: Update.
4187 * aix-thread.c: Update.
4188 * amd64-linux-nat.c: Update.
4189 * arm-linux-nat.c: Update.
4190 * corelow.c: Update.
4191 * fbsd-nat.c: Update.
4192 * fbsd-tdep.c: Update.
4193 * gnu-nat.c: Update.
4194 * i386-cygwin-tdep.c: Update.
4195 * i386-gnu-nat.c: Update.
4196 * i386-linux-nat.c: Update.
4197 * ia64-linux-nat.c: Update.
4198 * inf-ptrace.c: Update.
4199 * infrun.c: Update.
4200 * linux-fork.c: Update.
4201 * linux-nat.c: Update.
4202 * linux-tdep.c: Update.
4203 * linux-thread-db.c: Update.
4204 * mips-linux-nat.c: Update.
4205 * nat/aarch64-linux-hw-point.c: Update.
4206 * nat/aarch64-linux.c: Update.
4207 * nat/linux-btrace.c: Update.
4208 * nat/linux-osdata.c: Update.
4209 * nat/linux-procfs.c: Update.
4210 * nat/x86-linux-dregs.c: Update.
4211 * obsd-nat.c: Update.
4212 * ppc-fbsd-nat.c: Update.
4213 * ppc-linux-nat.c: Update.
4214 * procfs.c: Update.
4215 * python/py-infthread.c: Update.
4216 * ravenscar-thread.c: Update.
4217 * remote.c: Update.
4218 * s390-linux-nat.c: Update.
4219 * sol-thread.c: Update.
4220 * sol2-tdep.c: Update.
4221 * spu-linux-nat.c: Update.
4222 * x86-linux-nat.c: Update.
4223 * xtensa-linux-nat.c: Update.
4224
e99b03dc
TT
42252018-07-03 Tom Tromey <tom@tromey.com>
4226
4227 * common/ptid.c (ptid_get_pid): Remove.
4228 * common/ptid.h (ptid_get_pid): Don't declare.
4229 * aarch64-linux-nat.c: Update.
4230 * ada-lang.c: Update.
4231 * aix-thread.c: Update.
4232 * alpha-bsd-nat.c: Update.
4233 * amd64-fbsd-nat.c: Update.
4234 * amd64-linux-nat.c: Update.
4235 * arm-linux-nat.c: Update.
4236 * arm-nbsd-nat.c: Update.
4237 * auxv.c: Update.
4238 * break-catch-syscall.c: Update.
4239 * breakpoint.c: Update.
4240 * bsd-uthread.c: Update.
4241 * corelow.c: Update.
4242 * ctf.c: Update.
4243 * darwin-nat.c: Update.
4244 * fbsd-nat.c: Update.
4245 * fbsd-tdep.c: Update.
4246 * gcore.c: Update.
4247 * gnu-nat.c: Update.
4248 * hppa-nbsd-nat.c: Update.
4249 * hppa-obsd-nat.c: Update.
4250 * i386-fbsd-nat.c: Update.
4251 * ia64-linux-nat.c: Update.
4252 * inf-ptrace.c: Update.
4253 * infcmd.c: Update.
4254 * inferior.c: Update.
4255 * inferior.h: Update.
4256 * inflow.c: Update.
4257 * infrun.c: Update.
4258 * linux-fork.c: Update.
4259 * linux-nat.c: Update.
4260 * linux-tdep.c: Update.
4261 * linux-thread-db.c: Update.
4262 * m68k-bsd-nat.c: Update.
4263 * mi/mi-interp.c: Update.
4264 * mi/mi-main.c: Update.
4265 * mips-linux-nat.c: Update.
4266 * mips-nbsd-nat.c: Update.
4267 * mips64-obsd-nat.c: Update.
4268 * nat/aarch64-linux-hw-point.c: Update.
4269 * nat/aarch64-linux.c: Update.
4270 * nat/linux-btrace.c: Update.
4271 * nat/linux-osdata.c: Update.
4272 * nat/linux-procfs.c: Update.
4273 * nat/x86-linux-dregs.c: Update.
4274 * nto-procfs.c: Update.
4275 * obsd-nat.c: Update.
4276 * ppc-linux-nat.c: Update.
4277 * ppc-nbsd-nat.c: Update.
4278 * ppc-obsd-nat.c: Update.
4279 * proc-service.c: Update.
4280 * procfs.c: Update.
4281 * python/py-inferior.c: Update.
4282 * python/py-infthread.c: Update.
4283 * ravenscar-thread.c: Update.
4284 * record.c: Update.
4285 * remote-sim.c: Update.
4286 * remote.c: Update.
4287 * rs6000-nat.c: Update.
4288 * s390-linux-nat.c: Update.
4289 * sh-nbsd-nat.c: Update.
4290 * sol-thread.c: Update.
4291 * sparc-nat.c: Update.
4292 * sparc64-tdep.c: Update.
4293 * spu-linux-nat.c: Update.
4294 * spu-tdep.c: Update.
4295 * target-debug.h: Update.
4296 * target.c: Update.
4297 * thread.c: Update.
4298 * tid-parse.c: Update.
4299 * tracefile-tfile.c: Update.
4300 * vax-bsd-nat.c: Update.
4301 * windows-nat.c: Update.
4302 * x86-linux-nat.c: Update.
4303 * x86-nat.c: Update.
4304
f2907e49
TT
43052018-07-03 Tom Tromey <tom@tromey.com>
4306
4307 * common/ptid.c (pid_to_ptid): Remove.
4308 * common/ptid.h (pid_to_ptid): Don't declare.
4309 * aix-thread.c: Update.
4310 * arm-linux-nat.c: Update.
4311 * common/ptid.c: Update.
4312 * common/ptid.h: Update.
4313 * corelow.c: Update.
4314 * ctf.c: Update.
4315 * darwin-nat.c: Update.
4316 * fbsd-nat.c: Update.
4317 * fork-child.c: Update.
4318 * gnu-nat.c: Update.
4319 * go32-nat.c: Update.
4320 * inf-ptrace.c: Update.
4321 * infcmd.c: Update.
4322 * inferior.c: Update.
4323 * infrun.c: Update.
4324 * linux-fork.c: Update.
4325 * linux-nat.c: Update.
4326 * nat/aarch64-linux-hw-point.c: Update.
4327 * nat/fork-inferior.c: Update.
4328 * nat/x86-linux-dregs.c: Update.
4329 * nto-procfs.c: Update.
4330 * obsd-nat.c: Update.
4331 * procfs.c: Update.
4332 * progspace.c: Update.
4333 * remote.c: Update.
4334 * rs6000-nat.c: Update.
4335 * s390-linux-nat.c: Update.
4336 * sol-thread.c: Update.
4337 * spu-linux-nat.c: Update.
4338 * target.c: Update.
4339 * top.c: Update.
4340 * tracefile-tfile.c: Update.
4341 * windows-nat.c: Update.
4342
fd79271b
TT
43432018-07-03 Tom Tromey <tom@tromey.com>
4344
4345 * common/ptid.h (ptid_build): Don't declare.
4346 * common/ptid.c (ptid_build): Remove.
4347 * aix-thread.c: Update.
4348 * bsd-kvm.c: Update.
4349 * bsd-uthread.c: Update.
4350 * common/agent.c: Update.
4351 * common/ptid.c: Update.
4352 * common/ptid.h: Update.
4353 * corelow.c: Update.
4354 * darwin-nat.c: Update.
4355 * fbsd-nat.c: Update.
4356 * gnu-nat.c: Update.
4357 * linux-fork.c: Update.
4358 * linux-nat.c: Update.
4359 * linux-thread-db.c: Update.
4360 * nat/linux-osdata.c: Update.
4361 * nat/linux-procfs.c: Update.
4362 * nto-procfs.c: Update.
4363 * obsd-nat.c: Update.
4364 * proc-service.c: Update.
4365 * procfs.c: Update.
4366 * ravenscar-thread.c: Update.
4367 * remote-sim.c: Update.
4368 * remote.c: Update.
4369 * sol-thread.c: Update.
4370 * target.c: Update.
4371 * windows-nat.c: Update.
4372
057302ce
TT
43732018-07-03 Tom Tromey <tom@tromey.com>
4374
4375 * infrun.c (follow_exec): Use exit_inferior_silent.
4376 * inferior.c (exit_inferior_num_silent): Remove.
4377 * inferior.h (exit_inferior_num_silent): Don't declare.
4378
a50c11c6
TT
43792018-07-03 Tom Tromey <tom@tromey.com>
4380
4381 PR cli/23340:
4382 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4383 inferior_ptid on error.
4384
471b9d15
MR
43852018-07-02 Maciej W. Rozycki <macro@mips.com>
4386 Simon Marchi <simon.marchi@polymtl.ca>
4387
4388 PR tdep/8282
4389 * disasm.h (gdb_disassembler): Add
4390 `m_disassembler_options_holder'. member
4391 * disasm.c (get_all_disassembler_options): New function.
4392 (gdb_disassembler::gdb_disassembler): Use it.
4393 (gdb_buffered_insn_length_init_dis): Likewise.
4394 (gdb_buffered_insn_length): Adjust accordingly.
4395 (set_disassembler_options): Handle options with arguments.
4396 (show_disassembler_options_sfunc): Likewise. Add a leading new
4397 line if showing options with descriptions.
4398 (disassembler_options_completer): Adapt to using the
4399 `disasm_options_and_args_t' structure.
4400 * mips-tdep.c (mips_disassembler_options): New variable.
4401 (mips_disassembler_options_o32): Likewise.
4402 (mips_disassembler_options_n32): Likewise.
4403 (mips_disassembler_options_n64): Likewise.
4404 (gdb_print_insn_mips): Don't set `disassembler_options'.
4405 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4406 functions.
4407 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4408 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4409 `gdbarch_disassembler_options_implicit' and
4410 `gdbarch_valid_disassembler_options'.
4411 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4412 `disasm_options_and_args_t' structure.
4413 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4414 method.
4415 (valid_disassembler_options): Switch from `disasm_options_t' to
4416 the `disasm_options_and_args_t' structure.
4417 * NEWS: Document `set disassembler-options' support for the MIPS
4418 target.
4419 * gdbarch.h: Regenerate.
4420 * gdbarch.c: Regenerate.
4421
41823f29
SH
44222018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4423
4424 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4425
41206e32
JB
44262018-06-29 Joel Brobecker <brobecker@adacore.com>
4427
4428 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4429 parameter in call to amd64_target_description.
4430 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4431 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4432 (amd64fbsd_init_abi): Likewise.
4433 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4434 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4435 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4436 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4437
de52b960
PA
44382018-06-29 Pedro Alves <palves@redhat.com>
4439
4440 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4441 "segments" parameter.
4442 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4443 (_initialize_amd64_tdep): Update call to
4444 amd64_create_target_description.
4445 (amd64_target_description): Add "segments" parameter. Adjust
4446 the implementation to use it.
4447 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4448 call to amd64_create_target_description.
4449 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4450 * gdb/arch/amd64.h (amd64_create_target_description): Add
4451 "segments" register.
4452 * gdb/arch/amd64.c (amd64_create_target_description): Add
4453 "segments" parameter. Call create_feature_i386_64bit_segments
4454 only if SEGMENTS is true.
4455 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4456 call to amd64_create_target_description.
4457
75acb486
PA
44582018-06-29 Pedro Alves <palves@redhat.com>
4459
4460 * thread.c (thread_target_id_str): New, factored out from ...
4461 (print_thread_info_1): ... here. Use it to compute the max
4462 "Target Id" column width.
4463
c76a8ea3
PA
44642018-06-29 Pedro Alves <palves@redhat.com>
4465
4466 * remote.c (remote_target::extra_thread_info): Delete
4467 'display_buf' and 'n' locals. from the cache, regardless of
4468 packet mechanims is in use. Use cache for qThreadExtra and qP
4469 methods too.
4470
cd2bb709
PA
44712018-06-29 Pedro Alves <palves@redhat.com>
4472
4473 * blockframe.c (find_pc_sect_containing_function): New function.
4474 * breakpoint.c (print_breakpoint_location): Don't call
4475 find_pc_sect_function.
4476 * linespec.c (create_sals_line_offset): Record the location's
4477 symbol in the sal.
4478 * linespec.c (convert_address_location_to_sals): Fill in sal's
4479 symbol with find_pc_sect_containing_function.
4480 * symtab.c (find_function_start_sal): Rename to ...
4481 (find_function_start_sal_1): ... this.
4482 (find_function_start_sal): Reimplement as wrapper around
4483 find_function_start_sal_1, and use
4484 find_pc_sect_containing_function to fill in the sal's symbol.
4485 (find_function_start_sal(symbol*, bool)): Adjust.
4486 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4487 comments.
4488 (find_pc_sect_containing_function): Declare.
4489
991ff292
PA
44902018-06-29 Pedro Alves <palves@redhat.com>
4491
4492 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4493 true if the the location has no symbol.
4494
44cee4fd
TT
44952018-06-28 Tom Tromey <tom@tromey.com>
4496
4497 * NEWS: Mention --enable-codesign.
4498 * silent-rules.mk (ECHO_SIGN): New variable.
4499 * configure.ac: Add --enable-codesign.
4500 * configure: Rebuild.
4501 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4502 (gdb$(EXEEXT)): Optionally invoke codesign.
4503
f2ffa92b
PA
45042018-06-28 Pedro Alves <palves@redhat.com>
4505
4506 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4507 comments.
4508 (switch_to_thread_no_regs): Adjust comment.
4509 * infcmd.c (stop_pc): Delete.
4510 (post_create_inferior, info_program_command): Replace references
4511 to stop_pc with references to thread_info->suspend.stop_pc.
4512 * inferior.h (stop_pc): Delete declaration.
4513 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4514 (handle_inferior_event_1, handle_signal_stop)
4515 (process_event_stop_test, keep_going_stepped_thread)
4516 (handle_step_into_function, handle_step_into_function_backward)
4517 (print_stop_location): Replace references to stop_pc with
4518 references to thread_info->suspend.stop_pc.
4519 (struct infcall_suspend_state) <stop_pc>: Delete field.
4520 (save_infcall_suspend_state, restore_infcall_suspend_state):
4521 Remove references to inf_stat->stop_pc.
4522 * linux-fork.c (fork_load_infrun_state): Likewise.
4523 * record-btrace.c (record_btrace_set_replay): Likewise.
4524 * record-full.c (record_full_goto_entry): Likewise.
4525 * remote.c (print_one_stopped_thread): Likewise.
4526 * target.c (target_resume): Extend comment.
4527 * thread.c (set_executing_thread): New.
4528 (set_executing): Use it.
4529 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4530 Remove references to stop_pc.
4531
ecdc3a72
PA
45322018-06-28 Pedro Alves <palves@redhat.com>
4533
4534 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4535 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4536
d95d3aef
TT
45372018-06-28 Tom Tromey <tom@tromey.com>
4538
4539 * coffread.c (coff_symfile_finish): Update.
4540 * xcoffread.c (xcoff_symfile_finish): Update.
4541 * elfread.c (elf_symfile_finish): Update.
4542 * symfile.h (dwarf2_free_objfile): Don't declare.
4543 * dwarf2read.c (_initialize_dwarf2_read): Use
4544 register_objfile_data_with_cleanup.
4545 (dwarf2_free_objfile): Now static. Change signature.
4546
291f9a96
PT
45472018-06-28 Petr Tesarik <ptesarik@suse.cz>
4548
4549 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4550 option "-o" to add-symbol-file-load to add an offset to each
4551 section's load address.
4552 * symfile.c (set_objfile_default_section_offset): New function.
4553
d81a3eaf
PT
45542018-06-28 Petr Tesarik <ptesarik@suse.cz>
4555
4556 * symfile.c (add_symbol_file_command): Make sure that sections
4557 with the same name are sorted in the same order.
4558
ed6dfe51
PT
45592018-06-28 Petr Tesarik <ptesarik@suse.cz>
4560
4561 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4562 require the second argument. If omitted, load sections at the
4563 addresses specified in the file.
4564
d4d429d5
PT
45652018-06-28 Petr Tesarik <ptesarik@suse.cz>
4566
4567 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4568 (_initialize_symfile): Add option "-o" to symbol-file to add an
4569 offset to each section of the symbol file.
4570
39b27ab6
PT
45712018-06-28 Petr Tesarik <ptesarik@suse.cz>
4572
4573 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4574
41827fc3
TT
45752018-06-27 Tom Tromey <tom@tromey.com>
4576
4577 * stack.c (_initialize_stack): Update "func" help text.
4578
0c6aef22
TT
45792018-06-27 Tom Tromey <tom@tromey.com>
4580
4581 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4582 std::vector.
4583 (unwind_infopy_str, pyuw_create_unwind_info)
4584 (unwind_infopy_add_saved_register, pyuw_sniffer)
4585 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4586 Update.
4587 (struct saved_reg): Add constructor.
4588 <value>: Now a gdbpy_ref<>.
4589
63177289
TT
45902018-06-27 Tom Tromey <tom@tromey.com>
4591
4592 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4593
e76f78a0
SM
45942018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4595
4596 * gdb-gdb.py.in: Format using autopep8.
4597
9a14af7b
SM
45982018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4599
4600 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4601 (type_lookup_function): Recognize CORE_ADDR values.
4602
189366cd
SM
46032018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4604
4605 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4606 print tag_name.
4607
68ad5fb9
SM
46082018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4609
4610 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4611 <__lt__>: Add.
4612
141ec9f6
SM
46132018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4614
4615 * gdb-gdb.py: Move to...
4616 * gdb-gdb.py.in: ... here.
4617 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4618 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4619 dependencies.
4620 (distclean): Remove gdb-gdb.py when cleaning.
4621 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4622 * configure: Re-generate.
4623
4c4e7ad4
PA
46242018-06-27 Pedro Alves <palves@redhat.com>
4625
4626 * proc-service.c (get_ps_regcache): New.
4627 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4628 (ps_lsetfpregs): Use it.
4629
7ab6656f
OJ
46302018-06-27 Omair Javaid <omair.javaid@linaro.org>
4631
4632 PR gdb/21695
4633 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4634 (dwarf_decode_lines_1): Adjust.
4635
bd583225
SM
46362018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4637
4638 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4639 override.
4640 <info_proc>: Likewise.
4641
9a325b7b
JB
46422018-06-26 Joel Brobecker <brobecker@adacore.com>
4643
4644 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4645 to windows_fetch_one_register, and only handle the case of
4646 fetching one register. Move the code that reloads the context
4647 and iterates over all registers if R is negative to...
4648 (windows_nat_target::fetch_registers): ... here.
4649 (do_windows_store_inferior_registers): Rename to
4650 windows_store_one_register, and only handle the case of storing
4651 one register. Move the code that handles the case where r is
4652 negative to...
4653 (windows_nat_target::store_registers) ... here.
4654
a33ccfc7
TT
46552018-06-26 Tom Tromey <tom@tromey.com>
4656
4657 PR rust/22574:
4658 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4659 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4660 Update.
4661 (rust_internal_print_type): Add podata parameter.
4662 (rust_print_type): Update.
4663
e0c547d1
TT
46642018-06-26 Tom Tromey <tom@tromey.com>
4665
4666 * typeprint.h (struct print_offset_data) <update, finish,
4667 maybe_print_hole>: New methods.
4668 <indentation>: New constant.
4669 * typeprint.c (print_offset_data::indentation): Define.
4670 (print_offset_data::maybe_print_hole, print_offset_data::update)
4671 (print_offset_data::finish): Move from c-typeprint.c and rename.
4672 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4673 (print_spaces_filtered_with_print_options): Update.
4674 (c_print_type_union_field_offset, maybe_print_hole)
4675 (c_print_type_struct_field_offset): Move to typeprint.c and
4676 rename.
4677 (c_type_print_base_struct_union): Update.
4678
75cbc781
PA
46792018-06-25 Pedro Alves <palves@redhat.com>
4680
4681 * gdbthread.h (thread_info_ref, delete_thread)
4682 (delete_thread_silent, first_thread_of_inferior)
4683 (any_thread_of_inferior, switch_to_thread)
4684 (enable_thread_stack_temporaries)
4685 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4686 (get_last_thread_stack_temporary)
4687 (value_in_thread_stack_temporaries, can_access_registers_thread):
4688 Spell out "struct thread_info" instead of just "thread_info".
4689 * inferior.h (notice_new_inferior): Likewise.
4690
b7a08269
PA
46912018-06-25 Pedro Alves <palves@redhat.com>
4692
4693 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4694 pass thread_info pointer to delete_thread.
4695 (windows_nat_target::detach): Pass inferior pointer to
4696 detach_inferior.
4697 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4698 delete_thread.
4699 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4700 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4701 and pass a thread_info pointer to delete_thread.
4702 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4703 pass thread_info pointer to delete_thread.
4704 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4705 delete_thread_silent call.
4706 * procfs.c (procfs_target::detach): Pass inferior pointer to
4707 detach_inferior.
4708 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4709 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4710 delete_thread_silent call.
4711 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4712 pass thread_info pointer to delete_thread.
4713 (windows_nat_target::detach): Pass inferior pointer to
4714 delete_inferior.
4715
8e7767e3
AH
47162018-06-22 Alan Hayward <alan.hayward@arm.com>
4717
4718 * regcache.c (readable_regcache::read_part): Fix asserts.
4719 (reg_buffer::raw_collect_part): New function.
4720 (regcache::write_part): Fix asserts.
4721 (reg_buffer::raw_supply_part): New function.
4722 (regcache::transfer_regset_register): New helper function.
4723 (regcache::transfer_regset): Call new functions.
4724 (regcache_supply_regset): Use gdb_byte*.
4725 (regcache::supply_regset): Likewise.
4726 (regcache_collect_regset): Likewise.
4727 (regcache::collect_regset): Likewise.
4728 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4729 (reg_buffer::raw_supply_part): Likewise.
4730 (regcache::transfer_regset_register): Likewise.
4731 (regcache::transfer_regset): Use gdb_byte*.
4732
bfd60e34
AH
47332018-06-22 Alan Hayward <alan.hayward@arm.com>
4734
4735 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4736
00431a78
PA
47372018-06-21 Pedro Alves <palves@redhat.com>
4738
4739 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4740 instead of a ptid_t. All callers adjusted.
4741 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4742 adjusted.
4743 (print_ada_task_info, display_current_task_id, task_command_1):
4744 Adjust.
4745 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4746 inferior_thread.
4747 (breakpoint_kind): Adjust.
4748 (remove_breakpoints_pid): Rename to ...
4749 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4750 pointer. All callers adjusted.
4751 (bpstat_clear_actions): Use inferior_thread.
4752 (get_bpstat_thread): New.
4753 (bpstat_do_actions): Use it.
4754 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4755 to take a thread_info pointer. All callers adjusted.
4756 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4757 (breakpoint_re_set_thread): Use inferior_thread.
4758 * breakpoint.h (struct inferior): Forward declare.
4759 (bpstat_stop_status): Update.
4760 (remove_breakpoints_pid): Delete.
4761 (remove_breakpoints_inf): New.
4762 * bsd-uthread.c (bsd_uthread_target::wait)
4763 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4764 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4765 (maint_btrace_packet_history_cmd)
4766 (maint_btrace_clear_packet_history_cmd): Adjust.
4767 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4768 inferior_thread.
4769 * cli/cli-interp.c: Include "inferior.h".
4770 * common/refcounted-object.h (struct
4771 refcounted_object_ref_policy): New.
4772 * compile/compile-object-load.c: Include gdbthread.h.
4773 (store_regs): Use inferior_thread.
4774 * corelow.c (core_target::close): Use current_inferior.
4775 (core_target_open): Adjust to use first_thread_of_inferior and use
4776 the current inferior.
4777 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4778 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4779 <thread>: ... this new field. All references adjusted.
4780 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4781 Take a thread_info pointer instead of a ptid_t.
4782 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4783 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4784 thread_info pointer instead of a ptid_t.
4785 * elfread.c: Include "inferior.h".
4786 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4787 Use inferior_thread.
4788 * eval.c (evaluate_subexp): Likewise.
4789 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4790 inferior_thread.
4791 * gdb_proc_service.h (struct thread_info): Forward declare.
4792 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4793 <thread>: ... this new field. All references adjusted.
4794 * gdbarch.h, gdbarch.c: Regenerate.
4795 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4796 'thread' parameter. All implementations and callers adjusted.
4797 * gdbthread.h (thread_info) <set_running>: New method.
4798 (delete_thread, delete_thread_silent): Take a thread_info pointer
4799 instead of a ptid.
4800 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4801 (first_thread_of_process): Delete, replaced by ...
4802 (first_thread_of_inferior): ... this new function. All callers
4803 adjusted.
4804 (any_live_thread_of_process): Delete, replaced by ...
4805 (any_live_thread_of_inferior): ... this new function. All callers
4806 adjusted.
4807 (switch_to_thread, switch_to_no_thread): Declare.
4808 (is_executing): Delete.
4809 (enable_thread_stack_temporaries): Update comment.
4810 <enable_thread_stack_temporaries>: Take a thread_info pointer
4811 instead of a ptid_t. Incref the thread.
4812 <~enable_thread_stack_temporaries>: Decref the thread.
4813 <m_ptid>: Delete
4814 <m_thr>: New.
4815 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4816 (get_last_thread_stack_temporary)
4817 (value_in_thread_stack_temporaries, can_access_registers_thread):
4818 Take a thread_info pointer instead of a ptid_t. All callers
4819 adjusted.
4820 * infcall.c (get_call_return_value): Use inferior_thread.
4821 (run_inferior_call): Work with thread pointers instead of ptid_t.
4822 (call_function_by_hand_dummy): Work with thread pointers instead
4823 of ptid_t. Use thread_info_ref.
4824 * infcmd.c (proceed_thread_callback): Access thread's state
4825 directly.
4826 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4827 access thread's state directly.
4828 (continue_command): Use inferior_thread.
4829 (info_program_command): Use find_thread_ptid and access thread
4830 state directly.
4831 (proceed_after_attach_callback): Use thread state directly.
4832 (notice_new_inferior): Take a thread_info pointer instead of a
4833 ptid_t. All callers adjusted.
4834 (exit_inferior): Take an inferior pointer instead of a pid. All
4835 callers adjusted.
4836 (exit_inferior_silent): New.
4837 (detach_inferior): Delete.
4838 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4839 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4840 (detach_inferior_command, kill_inferior_command): Use
4841 find_inferior_id instead of valid_gdb_inferior_id and
4842 gdb_inferior_id_to_pid.
4843 (inferior_command): Use inferior and thread pointers.
4844 * inferior.h (struct thread_info): Forward declare.
4845 (notice_new_inferior): Take a thread_info pointer instead of a
4846 ptid_t. All callers adjusted.
4847 (detach_inferior): Delete declaration.
4848 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4849 instead of a pid. All callers adjusted.
4850 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4851 (valid_gdb_inferior_id): Delete.
4852 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4853 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4854 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4855 ...
4856 <inf>: ... this new field.
4857 <step_ptid>: Delete, replaced by ...
4858 <step_thread>: ... this new field.
4859 (get_displaced_stepping_state): Take an inferior pointer instead
4860 of a pid. All callers adjusted.
4861 (displaced_step_in_progress_any_inferior): Adjust.
4862 (displaced_step_in_progress_thread): Take a thread pointer instead
4863 of a ptid_t. All callers adjusted.
4864 (displaced_step_in_progress, add_displaced_stepping_state): Take
4865 an inferior pointer instead of a pid. All callers adjusted.
4866 (get_displaced_step_closure_by_addr): Adjust.
4867 (remove_displaced_stepping_state): Take an inferior pointer
4868 instead of a pid. All callers adjusted.
4869 (displaced_step_prepare_throw, displaced_step_prepare)
4870 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4871 All callers adjusted.
4872 (start_step_over): Adjust.
4873 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4874 displaced step queue.
4875 (do_target_resume): Adjust.
4876 (fetch_inferior_event): Use inferior_thread.
4877 (context_switch, get_inferior_stop_soon): Take an
4878 execution_control_state pointer instead of a ptid_t. All callers
4879 adjusted.
4880 (switch_to_thread_cleanup): Delete.
4881 (stop_all_threads): Use scoped_restore_current_thread.
4882 * inline-frame.c: Include "gdbthread.h".
4883 (inline_state) <inline_state>: Take a thread pointer instead of a
4884 ptid_t. All callers adjusted.
4885 <ptid>: Delete, replaced by ...
4886 <thread>: ... this new field.
4887 (find_inline_frame_state): Take a thread pointer instead of a
4888 ptid_t. All callers adjusted.
4889 (skip_inline_frames, step_into_inline_frame)
4890 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4891 pointer instead of a ptid_t. All callers adjusted.
4892 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4893 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4894 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4895 pointers directly.
4896 * linux-nat.c (get_detach_signal): Likewise.
4897 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4898 (thread_db_notice_clone): Adjust.
4899 (thread_db_find_new_threads_silently)
4900 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4901 a thread pointer instead of a ptid_t. All callers adjusted.
4902 * mi/mi-cmd-var.c: Include "inferior.h".
4903 (mi_cmd_var_update_iter): Update to use thread pointers.
4904 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4905 inferior directly.
4906 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4907 out to ...
4908 (mi_output_running): ... this new function.
4909 (mi_on_resume_1): Adjust to use it.
4910 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4911 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4912 directly.
4913 (interrupt_thread_callback): : Adjust to use thread and inferior
4914 pointers.
4915 * proc-service.c: Include "gdbthread.h".
4916 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4917 * progspace-and-thread.c: Include "inferior.h".
4918 * progspace.c: Include "inferior.h".
4919 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4920 hold a reference to an inferior_object.
4921 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4922 inferior_thread.
4923 * python/py-inferior.c (struct inferior_object): Give the type a
4924 tag name instead of a typedef.
4925 (python_on_normal_stop): No need to check if the current thread is
4926 listed.
4927 (inferior_to_inferior_object): Change return type to
4928 inferior_object. All callers adjusted.
4929 (find_thread_object): Delete, bits factored out to ...
4930 (thread_to_thread_object): ... this new function.
4931 * python/py-infthread.c (create_thread_object): Use
4932 inferior_to_inferior_object.
4933 (thpy_is_stopped): Use thread pointer directly.
4934 (gdbpy_selected_thread): Use inferior_thread.
4935 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4936 field, replaced with ...
4937 <thread>: ... this new field. All users adjusted.
4938 (btpy_insn_or_gap_new): Drop const.
4939 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4940 callers adjusted.
4941 * python/py-record.c: Include "gdbthread.h".
4942 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4943 a ptid_t. All callers adjusted.
4944 (gdbpy_current_recording): Use inferior_thread.
4945 * python/py-record.h (recpy_record_object) <ptid>: Delete
4946 field, replaced with ...
4947 <thread>: ... this new field. All users adjusted.
4948 (recpy_element_object) <ptid>: Delete
4949 field, replaced with ...
4950 <thread>: ... this new field. All users adjusted.
4951 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4952 a ptid_t. All callers adjusted.
4953 * python/py-threadevent.c: Include "gdbthread.h".
4954 (get_event_thread): Use thread_to_thread_object.
4955 * python/python-internal.h (struct inferior_object): Forward
4956 declare.
4957 (find_thread_object, find_inferior_object): Delete declarations.
4958 (thread_to_thread_object, inferior_to_inferior_object): New
4959 declarations.
4960 * record-btrace.c: Include "inferior.h".
4961 (require_btrace_thread): Use inferior_thread.
4962 (record_btrace_frame_sniffer)
4963 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4964 (get_thread_current_frame): Use scoped_restore_current_thread and
4965 switch_to_thread.
4966 (get_thread_current_frame): Use thread pointer directly.
4967 (record_btrace_replay_at_breakpoint): Use thread's inferior
4968 pointer directly.
4969 * record-full.c: Include "inferior.h".
4970 * regcache.c: Include "gdbthread.h".
4971 (get_thread_arch_regcache): Use the inferior's address space
4972 directly.
4973 (get_thread_regcache, registers_changed_thread): New.
4974 * regcache.h (get_thread_regcache(thread_info *thread)): New
4975 overload.
4976 (registers_changed_thread): New.
4977 (remote_target) <remote_detach_1>: Swap order of parameters.
4978 (remote_add_thread): <remote_add_thread>: Return the new thread.
4979 (get_remote_thread_info(ptid_t)): New overload.
4980 (remote_target::remote_notice_new_inferior): Use thread pointers
4981 directly.
4982 (remote_target::process_initial_stop_replies): Use
4983 thread_info::set_running.
4984 (remote_target::remote_detach_1, remote_target::detach)
4985 (extended_remote_target::detach): Adjust.
4986 * stack.c (frame_show_address): Use inferior_thread.
4987 * target-debug.h (target_debug_print_thread_info_pp): New.
4988 * target-delegates.c: Regenerate.
4989 * target.c (default_thread_address_space): Delete.
4990 (memory_xfer_partial_1): Use current_inferior.
4991 (target_detach): Use current_inferior.
4992 (target_thread_address_space): Delete.
4993 (generic_mourn_inferior): Use current_inferior.
4994 * target.h (struct target_ops) <thread_address_space>: Delete.
4995 (target_thread_address_space): Delete.
4996 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4997 pointers directly.
4998 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4999 thread pointer instead of a ptid_t. Adjust all callers.
5000 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5001 (first_thread_of_process): Delete, replaced by ...
5002 (first_thread_of_inferior): ... this new function. All callers
5003 adjusted.
5004 (any_thread_of_process): Rename to ...
5005 (any_thread_of_inferior): ... this, and take an inferior pointer.
5006 (any_live_thread_of_process): Rename to ...
5007 (any_live_thread_of_inferior): ... this, and take an inferior
5008 pointer.
5009 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5010 (value_in_thread_stack_temporaries)
5011 (get_last_thread_stack_temporary): Take a thread pointer instead
5012 of a ptid_t. Adjust all callers.
5013 (thread_info::set_running): New.
5014 (validate_registers_access): Use inferior_thread.
5015 (can_access_registers_ptid): Rename to ...
5016 (can_access_registers_thread): ... this, and take a thread
5017 pointer.
5018 (print_thread_info_1): Adjust to compare thread pointers instead
5019 of ptids.
5020 (switch_to_no_thread, switch_to_thread): Make extern.
5021 (scoped_restore_current_thread::~scoped_restore_current_thread):
5022 Use m_thread pointer directly.
5023 (scoped_restore_current_thread::scoped_restore_current_thread):
5024 Use inferior_thread.
5025 (thread_command): Use thread pointer directly.
5026 (thread_num_make_value_helper): Use inferior_thread.
5027 * top.c (execute_command): Use inferior_thread.
5028 * tui/tui-interp.c: Include "inferior.h".
5029 * varobj.c (varobj_create): Use inferior_thread.
5030 (value_of_root_1): Use find_thread_global_id instead of
5031 global_thread_id_to_ptid.
5032
33bab475
AH
50332018-06-21 Alan Hayward <alan.hayward@arm.com>
5034
5035 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5036 possible.
5037 (regcache::write_part): Likewise.
5038 (readable_regcache::cooked_read_part): Update comment.
5039 (readable_regcache::cooked_write_part): Likewise.
5040 * regcache.h: (readable_regcache::read_part): Likewise.
5041 (regcache::write_part): Likewise.
5042
8363f9d5
RB
50432018-06-21 Richard Bunt <richard.bunt@arm.com>
5044 Dirk Schubert <dirk.schubert@arm.com>
5045
5046 * aarch64-linux-nat.c (post_attach): New.
5047 (aarch64_linux_nat_target::post_attach): Override post_attach to
5048 record the number of hardware debug registers.
5049
0d0b0ea2
TT
50502018-06-20 Tom Tromey <tom@tromey.com>
5051
5052 * python/py-param.c (add_setshow_generic): Make parameters const.
5053 (parmpy_init): Update.
5054
302abd6e
SM
50552018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5056
5057 * regcache.h (regcache_cooked_read_ftype): Rename to...
5058 (register_read_ftype): ...this, change type to function_view.
5059 (class reg_buffer) <save>: Remove src parameter.
5060 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5061 parameter non-const in first overload. Remove src parameter in
5062 second overload.
5063 * regcache.c (do_cooked_read): Remove.
5064 (readonly_detached_regcache::readonly_detached_regcache): Make
5065 parameter non-const, adjust call to other constructor.
5066 (reg_buffer::save): Remove src parameter.
5067 * frame.c (do_frame_register_read): Remove.
5068 (frame_save_as_regcache): Use lambda function.
5069 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5070 parameter to ppu2spu_data *.
5071 (ppu2spu_sniffer): Use lambda function.
5072
19f3f25f
SM
50732018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5074
5075 * record-full.c (record_full_target::insert_breakpoint): Remove
5076 "struct" keyword, add const.
5077
d0ac1c44
SM
50782018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5079
5080 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5081 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5082 * configure.ac: Remove AC_PREREQ, add missing quoting.
5083 * gnulib/configure.ac: Modernize usage of
5084 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5085 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5086 (AUTOMAKE_VERSION): Bump to 1.15.1.
5087 * configure: Re-generate.
5088 * config.in: Re-generate.
5089 * aclocal.m4: Re-generate.
5090 * gnulib/aclocal.m4: Re-generate.
5091 * gnulib/config.in: Re-generate.
5092 * gnulib/configure: Re-generate.
5093 * gnulib/import/Makefile.in: Re-generate.
5094
6ae50267
PA
50952018-06-19 Pedro Alves <palves@redhat.com>
5096
5097 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5098 (lookup_minimal_symbol_by_pc_section): ... here with
5099 gdb_assert_not_reached added.
5100
61b04dd0
PA
51012018-06-19 Pedro Alves <palves@redhat.com>
5102
5103 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5104 parameter with a block parameter. Compare location's block symbol
5105 with the frame's block instead of addresses.
5106 (skip_inline_frames): Pass the current block instead of the
5107 frame's address. Break out as soon as we determine the frame
5108 should not be skipped.
5109
f709fabb
TT
51102018-06-18 Tom Tromey <tom@tromey.com>
5111
5112 * solib-aix.c (solib_aix_get_section_offsets): Return
5113 unique_xmalloc_ptr.
5114 (solib_aix_solib_create_inferior_hook): Update.
5115
668eb2f0
TT
51162018-06-18 Tom Tromey <tom@tromey.com>
5117
5118 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5119
309822ca
TT
51202018-06-18 Tom Tromey <tom@tromey.com>
5121
5122 * solib-frv.c (frv_relocate_main_executable): Use
5123 unique_xmalloc_ptr.
5124 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5125 unique_xmalloc_ptr.
5126
06424eac
TT
51272018-06-18 Tom Tromey <tom@tromey.com>
5128
5129 * objfiles.h (inhibit_section_map_updates): Update.
5130 (resume_section_map_updates, resume_section_map_updates_cleanup):
5131 Remove.
5132 * solib-svr4.c (svr4_handle_solib_event): Update.
5133 * objfiles.c (inhibit_section_map_updates): Return
5134 scoped_restore_tmpl<int>.
5135 (resume_section_map_updates, resume_section_map_updates_cleanup):
5136 Remove.
5137
b4be9fad
TT
51382018-06-18 Tom Tromey <tom@tromey.com>
5139
5140 * valprint.h (read_string): Update.
5141 * valprint.c (read_string): Change type of "buffer".
5142 (val_print_string): Update.
5143 * python/py-value.c (valpy_string): Update.
5144 * language.h (struct language_defn) <la_get_string>: Change
5145 type of "buffer".
5146 (default_get_string, c_get_string): Update.
5147 * language.c (default_get_string): Change type of "buffer".
5148 * guile/scm-value.c (gdbscm_value_to_string): Update.
5149 * c-lang.c (c_get_string): Change type of "buffer".
5150
3f0dbd67
TT
51512018-06-18 Tom Tromey <tom@tromey.com>
5152
5153 * ser-mingw.c (struct pipe_state_destroyer): New.
5154 (pipe_state_up): New typedef.
5155 (cleanup_pipe_state): Remove.
5156 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5157
69d340c6
TT
51582018-06-18 Tom Tromey <tom@tromey.com>
5159
5160 * rust-lang.h (rust_yyerror): Don't declare.
5161 * rust-lang.c (rust_language_defn): Update.
5162 * rust-exp.y (yyerror): Now static.
5163 * parse.c (parse_exp_in_context_1): Update.
5164 * p-lang.h (p_yyerror): Don't declare.
5165 * p-lang.c (p_language_defn): Update.
5166 * p-exp.y (yyerror): Now static.
5167 * opencl-lang.c (opencl_language_defn): Update.
5168 * objc-lang.c (objc_language_defn): Update.
5169 * m2-lang.h (m2_yyerror): Don't declare.
5170 * m2-lang.c (m2_language_defn): Update.
5171 * m2-exp.y (yyerror): Now static.
5172 * language.h (struct language_defn) <la_error>: Remove.
5173 * language.c (unk_lang_error): Remove.
5174 (unknown_language_defn, auto_language_defn): Remove.
5175 * go-lang.h (go_yyerror): Don't declare.
5176 * go-lang.c (go_language_defn): Update.
5177 * go-exp.y (yyerror): Now static.
5178 * f-lang.h (f_yyerror): Don't declare.
5179 * f-lang.c (f_language_defn): Update.
5180 * f-exp.y (yyerror): Now static.
5181 * d-lang.h (d_yyerror): Don't declare.
5182 * d-lang.c (d_language_defn): Update.
5183 * d-exp.y (yyerror): Now static.
5184 * c-lang.h (c_yyerror): Don't declare.
5185 * c-lang.c (c_language_defn, cplus_language_defn)
5186 (asm_language_defn, minimal_language_defn): Update.
5187 * c-exp.y (yyerror): Now static.
5188 * ada-lang.h (ada_yyerror): Don't declare.
5189 * ada-lang.c (ada_language_defn): Update.
5190 * ada-exp.y (yyerror): Now static.
5191
e9902bfc
AH
51922018-06-18 Alan Hayward <alan.hayward@arm.com>
5193
5194 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5195 (store_sveregs_to_thread): Likewise.
5196 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5197 (aarch64_linux_store_inferior_registers): Likewise.
5198 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5199 function.
5200 (aarch64_sve_regs_copy_to_regcache): Likewise.
5201 (aarch64_sve_regs_copy_from_regcache): Likewise.
5202 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5203 declaration.
5204 (aarch64_sve_regs_copy_to_regcache): Likewise.
5205 (aarch64_sve_regs_copy_from_regcache): Likewise.
5206 (sve_context): Structure from Linux headers.
5207 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5208 (SVE_SIG_ZREG_SIZE): Likewise.
5209 (SVE_SIG_PREG_SIZE): Likewise.
5210 (SVE_SIG_FFR_SIZE): Likewise.
5211 (SVE_SIG_REGS_OFFSET): Likewise.
5212 (SVE_SIG_ZREGS_OFFSET): Likewise.
5213 (SVE_SIG_ZREG_OFFSET): Likewise.
5214 (SVE_SIG_ZREGS_SIZE): Likewise.
5215 (SVE_SIG_PREGS_OFFSET): Likewise.
5216 (SVE_SIG_PREG_OFFSET): Likewise.
5217 (SVE_SIG_PREGS_SIZE): Likewise.
5218 (SVE_SIG_FFR_OFFSET): Likewise.
5219 (SVE_SIG_REGS_SIZE): Likewise.
5220 (SVE_SIG_CONTEXT_SIZE): Likewise.
5221 (SVE_PT_REGS_MASK): Likewise.
5222 (SVE_PT_REGS_FPSIMD): Likewise.
5223 (SVE_PT_REGS_SVE): Likewise.
5224 (SVE_PT_VL_INHERIT): Likewise.
5225 (SVE_PT_VL_ONEXEC): Likewise.
5226 (SVE_PT_REGS_OFFSET): Likewise.
5227 (SVE_PT_FPSIMD_OFFSET): Likewise.
5228 (SVE_PT_FPSIMD_SIZE): Likewise.
5229 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5230 (SVE_PT_SVE_PREG_SIZE): Likewise.
5231 (SVE_PT_SVE_FFR_SIZE): Likewise.
5232 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5233 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5234 (__SVE_SIG_TO_PT): Likewise.
5235 (SVE_PT_SVE_OFFSET): Likewise.
5236 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5237 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5238 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5239 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5240 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5241 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5242 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5243 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5244 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5245 (SVE_PT_SVE_SIZE): Likewise.
5246 (SVE_PT_SIZE): Likewise.
5247 (HAS_SVE_STATE): New define.
5248
17a1cc89
AH
52492018-06-18 Alan Hayward <alan.hayward@arm.com>
5250
5251 * nat/aarch64-sve-linux-sigcontext.h: New file.
5252 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5253 new files.
5254 (SVE_VQ_MIN): Likewise.
5255 (SVE_VQ_MAX): Likewise.
5256 (SVE_VL_MIN): Likewise.
5257 (SVE_VL_MAX): Likewise.
5258 (SVE_NUM_ZREGS): Likewise.
5259 (SVE_NUM_PREGS): Likewise.
5260 (sve_vl_valid): Likewise.
5261 (struct user_sve_header): Likewise.
5262
7010835a
AB
52632018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5264 Richard Bunt <Richard.Bunt@arm.com>
5265
5266 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5267 was requested by GDB.
5268
479b3ef4
TV
52692018-06-15 Tom de Vries <tdevries@suse.de>
5270
5271 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5272
8199b8f4
SM
52732018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5274
5275 * gnulib/update-gnulib.sh: Print expected versions of
5276 autoconf/aclocal.
5277
55c748a1
SM
52782018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5279
5280 * arch-utils.c (default_type_align): Use type_length_units.
5281 * gdbtypes.c (type_align): Use type_length_units.
5282
87a8eca7
PW
52832018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5284
5285 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5286 of 'define' command.
5287
5d9a0608
TV
52882018-06-14 Tom de Vries <tdevries@suse.de>
5289
5290 PR cli/22573
5291 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5292 get_no_prettyformat_print_options.
5293
ab89b5a5
SM
52942018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5295
5296 * sparc-nat.h: Include target.h.
5297 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5298 <fetch_registers>: Remove this argument in function call.
5299 <store_registers>: Remove this argument in function call, remove
5300 extra semicolon.
5301 <low_forget_process>: Call sparc64_forget_process instead of
5302 sparc_forget_process.
5303
62c808ae
RO
53042018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5305
5306 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5307 (procfs_target::make_corefile_notes): Adjust to new
5308 target_read_alloc return type.
5309
1840d81a
AB
53102018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5311 Stephen Roberts <stephen.roberts@arm.com>
5312
5313 PR gdb/22882
5314 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5315 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5316 Move should_notify_stop local into more inner scope.
5317
9516f85a
AB
53182018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5319 Stephen Roberts <stephen.roberts@arm.com>
5320
5321 PR gdb/22882
5322 * infrun.c (resume_1): Add call to mark_async_event_handler.
5323
defd2172
AB
53242018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5325
5326 * infrun.c (do_target_wait): Change old version of $pc printed.
5327
7b23e087
SM
53282018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5329
5330 * dwarf2read.c (read_index_from_section): Rename to...
5331 (read_gdb_index_from_section): ... this, update all callers.
5332 (dwarf2_read_index): Rename to...
5333 (dwarf2_read_gdb_index): ... this, update all callers.
5334
69c67a0b
JDA
53352018-06-11 John David Anglin <danglin@gcc.gnu.org>
5336
5337 * gdb/hppa-linux-nat.c
5338 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5339 hppa_linux_nat_target::fetch_registers.
5340
65d4cada
AH
53412018-06-11 Alan Hayward <alan.hayward@arm.com>
5342
5343 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5344 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5345 (AARCH64_DWARF_SVE_FFR): Likewise.
5346 (AARCH64_DWARF_SVE_P0): Likewise.
5347 (AARCH64_DWARF_SVE_Z0): Likewise.
5348
f868386e
AH
53492018-06-11 Alan Hayward <alan.hayward@arm.com>
5350
5351 * common/common-regcache.h (raw_compare): New function.
5352 * regcache.c (regcache::raw_compare): Likewise.
5353 * regcache.h (regcache::raw_compare): New declaration.
5354
9c861883
AH
53552018-06-11 Alan Hayward <alan.hayward@arm.com>
5356
5357 * common/common-regcache.h (reg_buffer_common): New structure.
5358 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5359 (reg_buffer::raw_supply): Likewise.
5360 (reg_buffer::raw_supply_integer): Likewise.
5361 (reg_buffer::raw_supply_zeroed): Likewise.
5362 (reg_buffer::raw_collect): Likewise.
5363 (reg_buffer::raw_collect_integer): Likewise.
5364 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5365 (reg_buffer::raw_supply): Likewise.
5366 (reg_buffer::raw_supply_integer): Likewise.
5367 (reg_buffer::raw_supply_zeroed): Likewise.
5368 (reg_buffer::raw_collect): Likewise.
5369 (reg_buffer::raw_collect_integer): Likewise.
5370
953edf2b
TT
53712018-06-10 Tom Tromey <tom@tromey.com>
5372
5373 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5374 (class remote_state) <stop_reply_queue>: Now std::vector.
5375 (remote_state::~remote_state)
5376 (remote_target::stop_reply_queue_length): Update.
5377 (struct queue_iter_param, remove_child_of_pending_fork)
5378 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5379 (check_pending_event_prevents_wildcard_vcont_callback)
5380 (remove_stop_reply_for_inferior)
5381 (remove_stop_reply_of_remote_state)
5382 (remote_notif_remove_once_on_match)
5383 (stop_reply_match_ptid_and_ws)
5384 (remote_kill_child_of_pending_fork): Remove.
5385 (remote_target::remove_new_fork_children)
5386 (remote_target::check_pending_events_prevent_wildcard_vcont)
5387 (remote_target::discard_pending_stop_replies)
5388 (remote_target::discard_pending_stop_replies_in_queue)
5389 (remote_target::remote_notif_remove_queued_reply)
5390 (remote_target::queued_stop_reply)
5391 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5392 (remote_target::wait, remote_target::kill_new_fork_children)
5393 (remote_target::async): Update.
5394
1ddbba9d
TT
53952018-06-10 Tom Tromey <tom@tromey.com>
5396
5397 * record-full.c (record_full_arch_list_cleanups): Remove.
5398 (record_full_message): Use try/catch.
5399 (record_full_wait_cleanups): Remove.
5400 (record_full_wait_1): Use try/catch.
5401 (record_full_restore): Likewise.
5402
219605fd
TT
54032018-06-10 Tom Tromey <tom@tromey.com>
5404
5405 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5406 declare VEC. Add constructor.
5407 <in_target_beneath>: Now bool.
5408 (record_full_breakpoints): Now a std::vector, static.
5409 (record_full_sync_record_breakpoints)
5410 (record_full_init_record_breakpoints)
5411 (record_full_target::insert_breakpoint)
5412 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5413
71b73764
SM
54142018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5415
5416 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5417 * serial.c (serial_interface_lookup): Remove struct keyword.
5418
4360561f
TT
54192018-06-10 Tom Tromey <tom@tromey.com>
5420
5421 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5422 method.
5423 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5424 a method.
5425 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5426 method.
5427 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5428 "beneath" as a method.
5429 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5430 Use "beneath" as a method.
5431
d14b92bf
TT
54322018-06-10 Tom Tromey <tom@tromey.com>
5433
5434 * tracefile.c (struct trace_file_writer_deleter): New.
5435 <operator()>: Rename from trace_file_writer_xfree.
5436 (trace_file_writer_up): New typedef.
5437 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5438
835dcf92
SM
54392018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5440
5441 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5442 <m_registers, m_register_status>: Change type to
5443 std::unique_ptr.
5444 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5445 XCNEWVEC.
5446
aac0d564
SM
54472018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5448
5449 * common/common-regcache.h (enum register_status): Add
5450 underlying type "signed char".
5451 * regcache.h (reg_buffer) <m_register_status>: Change type to
5452 register_status *.
5453 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5454 register_status instead of signed char.
5455 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5456 (reg_buffer::get_register_status): Remove cast.
5457 (readable_regcache::raw_read): Remove cast.
5458 (readable_regcache::cooked_read): Remove cast.
5459
77ad7394
TT
54602018-06-09 Tom Tromey <tom@tromey.com>
5461
5462 * source.c (reverse_search_command, forward_search_command): Use
5463 scoped_fd.
5464
191cca63
TT
54652018-06-09 Tom Tromey <tom@tromey.com>
5466
5467 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5468 (serial_ops_list): Now static, std::vector.
5469 (serial_interface_lookup, serial_add_interface): Update.
5470
c5d0225d
TT
54712018-06-09 Tom Tromey <tom@tromey.com>
5472
5473 * dwarf2read.c (process_cu_includes): Update.
5474 (process_full_comp_unit): Update.
5475 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5476 std::vector.
5477
aeab5128
PK
54782018-06-08 Paul Koning <paul_koning@dell.com>
5479
5480 PR gdb/23252
5481
5482 * python/python.c (do_start_initialization):
5483 Avoid call to internal Python API.
5484 (init__gdb_module): New function.
5485
5045b3d7
GB
54862018-06-08 Gary Benson <gbenson@redhat.com>
5487
5488 * linux-thread-db.c (valprint.h): New include.
5489 (struct check_thread_db_info): New structure.
5490 (check_thread_db_on_load, tdb_testinfo): New static globals.
5491 (check_thread_db, check_thread_db_callback): New functions.
5492 (try_thread_db_load_1): Run integrity checks if requested.
5493 (maintenance_check_libthread_db): New function.
5494 (_initialize_thread_db): Register "maint check libthread-db"
5495 and "maint set/show check-libthread-db".
5496 * NEWS: Mention the above new commands.
5497
2f4f025f
TT
54982018-06-08 Tom Tromey <tom@tromey.com>
5499
5500 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5501 now a method.
5502
343b0027
TT
55032018-06-08 Tom Tromey <tom@tromey.com>
5504
5505 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5506
8dcc53b3
TT
55072018-06-08 Tom Tromey <tom@tromey.com>
5508
5509 * common/btrace-common.h (struct btrace_data): Add constructor,
5510 destructor, move assignment operator.
5511 <empty, clear, fini>: New methods.
5512 <format>: Initialize.
5513 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5514 (btrace_data_empty): Don't declare.
5515 * common/btrace-common.c (btrace_data_init): Remove.
5516 (btrace_data::fini): Rename from btrace_data_fini.
5517 (btrace_data::empty): Rename from btrace_data_empty.
5518 (btrace_data::clear): Rename from btrace_data_clear. Return
5519 bool.
5520 * btrace.h (make_cleanup_btrace_data): Don't declare.
5521 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5522 (parse_xml_btrace): Update.
5523 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5524 (maint_btrace_clear_packet_history_cmd): Update.
5525
a1740ee1
PA
55262018-06-07 Pedro Alves <palves@redhat.com>
5527
5528 * target.h (target_ops) <beneath>: Now a method. All references
5529 updated.
5530 (class target_stack): New.
5531 * target.c (g_target_stack): New.
5532 (g_current_top_target): Delete.
5533 (current_top_target): Get the top target out of g_target_stack.
5534 (target_stack::push, target_stack::unpush): New.
5535 (push_target, unpush_target): Reimplement.
5536 (target_is_pushed): Reimplement in terms of g_target_stack.
5537 (target_ops::beneath, target_stack::find_beneath): New.
5538
d6ca69cd
PA
55392018-06-07 Pedro Alves <palves@redhat.com>
5540
5541 * target.h (find_target_beneath): Delete declaration.
5542 * target.c (find_target_beneath): Delete definition.
5543 * aix-thread.c: All callers of find_target_beneath adjusted to
5544 call target_ops::beneath instead.
5545 * bsd-uthread.c: Likewise.
5546 * linux-thread-db.c: Likewise.
5547 * ravenscar-thread.c: Likewise.
5548 * sol-thread.c: Likewise.
5549 * spu-multiarch.c: Likewise.
5550
b6a8c27b
PA
55512018-06-07 Pedro Alves <palves@redhat.com>
5552
5553 * target.h (target_ops) <beneath>: Now a method. All references
5554 updated.
5555 (target_ops) <m_beneath>: New.
5556 * target.c (target_ops::beneath): New.
5557 * corelow.c: Adjust all references to target_ops::beneath.
5558 * linux-thread-db.c: Likewise.
5559 * make-target-delegates: Likewise.
5560 * record-btrace.c: Likewise.
5561 * record-full.c: Likewise.
5562 * remote.c: Likewise.
5563 * target.c: Likewise.
5564 * target-delegates.c: Regenerate.
5565
8b88a78e
PA
55662018-06-07 Pedro Alves <palves@redhat.com>
5567
5568 * target.h (target_stack): Delete.
5569 (current_top_target): Declare function.
5570 * target.c (target_stack): Delete.
5571 (g_current_top_target): New.
5572 (current_top_target): New function.
5573 * auxv.c: Use current_top_target instead of target_stack
5574 throughout.
5575 * avr-tdep.c: Likewise.
5576 * breakpoint.c: Likewise.
5577 * corefile.c: Likewise.
5578 * elfread.c: Likewise.
5579 * eval.c: Likewise.
5580 * exceptions.c: Likewise.
5581 * frame.c: Likewise.
5582 * gdbarch-selftests.c: Likewise.
5583 * gnu-v3-abi.c: Likewise.
5584 * ia64-tdep.c: Likewise.
5585 * ia64-vms-tdep.c: Likewise.
5586 * infcall.c: Likewise.
5587 * infcmd.c: Likewise.
5588 * infrun.c: Likewise.
5589 * linespec.c: Likewise.
5590 * linux-tdep.c: Likewise.
5591 * minsyms.c: Likewise.
5592 * ppc-linux-nat.c: Likewise.
5593 * ppc-linux-tdep.c: Likewise.
5594 * procfs.c: Likewise.
5595 * regcache.c: Likewise.
5596 * remote.c: Likewise.
5597 * rs6000-tdep.c: Likewise.
5598 * s390-linux-nat.c: Likewise.
5599 * s390-tdep.c: Likewise.
5600 * solib-aix.c: Likewise.
5601 * solib-darwin.c: Likewise.
5602 * solib-dsbt.c: Likewise.
5603 * solib-spu.c: Likewise.
5604 * solib-svr4.c: Likewise.
5605 * solib-target.c: Likewise.
5606 * sparc-tdep.c: Likewise.
5607 * sparc64-tdep.c: Likewise.
5608 * spu-tdep.c: Likewise.
5609 * symfile.c: Likewise.
5610 * symtab.c: Likewise.
5611 * target-descriptions.c: Likewise.
5612 * target-memory.c: Likewise.
5613 * target.c: Likewise.
5614 * target.h: Likewise.
5615 * tracefile-tfile.c: Likewise.
5616 * tracepoint.c: Likewise.
5617 * valops.c: Likewise.
5618 * valprint.c: Likewise.
5619 * value.c: Likewise.
5620 * windows-tdep.c: Likewise.
5621 * mi/mi-main.c: Likewise.
5622
c7110220
TT
56232018-06-07 Tom Tromey <tom@tromey.com>
5624
5625 * valprint.h (build_address_symbolic): Declare.
5626 * printcmd.c (print_address_symbolic): Update.
5627 (build_address_symbolic): Change "name" and "filename" to
5628 std::string.
5629 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5630 Update.
5631 * defs.h (build_address_symbolic): Remove declaration.
5632
63bad7b6
AH
56332018-06-07 Alan Hayward <alan.hayward@arm.com>
5634
5635 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5636 (aarch64_vnv_type): Add function.
5637 (aarch64_pseudo_register_name): Add V regs for SVE.
5638 (aarch64_pseudo_register_type): Likewise.
5639 (aarch64_pseudo_register_reggroup_p): Likewise.
5640 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5641 (aarch64_pseudo_read_value): Add V regs for SVE.
5642 (aarch64_pseudo_write_2): Use V0 offset for SVE
5643 (aarch64_pseudo_write): Add V regs for SVE.
5644 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5645
13e3c608
SDJ
56462018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5647
5648 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5649 (sve_vl_from_vq): Likewise.
5650
c61b06a1
TT
56512018-06-05 Tom Tromey <tom@tromey.com>
5652
5653 * cli/cli-cmds.c (show_version): Update.
5654 * top.c (print_gdb_version): Add "interactive" parameter.
5655 Update.
5656 * main.c (captured_main_1): Update.
5657 * top.h (print_gdb_version): Add "interactive" parameter and a
5658 comment.
5659
115f7325
DM
56602018-06-05 David Malcolm <dmalcolm@redhat.com>
5661
5662 * common/enum-flags.h: Add trailing semicolon to example in
5663 comment.
5664
eb6af809
TT
56652018-06-05 Tom Tromey <tom@tromey.com>
5666
5667 PR cli/12326:
5668 * NEWS: Add entry about pager.
5669 * utils.c (pagination_disabled_for_command): New global.
5670 (prompt_for_continue): Allow "c" response to prompt.
5671 (reinitialize_more_filter): Clear
5672 pagination_disabled_for_command.
5673 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5674
54d343a2
TT
56752018-06-04 Tom Tromey <tom@tromey.com>
5676
5677 * ada-lang.h (ada_lookup_symbol_list): Update.
5678 * ada-lang.c (resolve_subexp): Update.
5679 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5680 parameter.
5681 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5682 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5683 results parameter to std::vector.
5684 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5685 Update.
5686 * ada-exp.y (block_lookup): Update.
5687 (select_possible_type_sym): Change type of syms. Remove nsyms
5688 parameter.
5689 (write_var_or_type, write_name_assoc): Update.
5690
178d6a63
JB
56912018-06-04 Joel Brobecker <brobecker@adacore.com>
5692
5693 * windows-nat.c (windows_nat_target::xfer_partial): Return
5694 TARGET_XFER_E_IO if we need to delegate to the target beneath
5695 but BENEATH is NULL.
5696
baf00c2d
SM
56972018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5698
5699 * Makefile.in (config.status): Add configure.nat as a
5700 dependency.
5701
214b073c
TT
57022018-06-04 Tom Tromey <tom@tromey.com>
5703
5704 * cp-name-parser.y (cpname_state): Add method declarations.
5705 (HANDLE_QUAL): Update.
5706 (cpname_state::d_grab, cpname_state::fill_comp)
5707 (cpname_state::make_operator, cpname_state::make_dtor)
5708 (cpname_state::make_builtin_type, cpname_state::make_name)
5709 (cpname_state::d_qualify, cpname_state::d_int_type)
5710 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5711 (%union): Move earlier.
5712
62b74cb8
AH
57132018-06-04 Alan Hayward <alan.hayward@arm.com>
5714
5715 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5716
3c5cd5c3
AH
57172018-06-04 Alan Hayward <alan.hayward@arm.com>
5718
5719 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5720 (aarch64_pseudo_write_1): Likewise.
5721 (aarch64_pseudo_read_value): Use helper.
5722 (aarch64_pseudo_write): Likewise.
5723
59f413d5
PA
57242018-06-04 Pedro Alves <palves@redhat.com>
5725
5726 * darwin-nat.c (darwin_ops): Delete.
5727 (darwin_attach_pid): Use get_native_target.
5728
1332a140
AH
57292018-06-04 Alan Hayward <alan.hayward@arm.com>
5730
5731 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5732 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5733
ba2d2bb2
AH
57342018-06-04 Alan Hayward <alan.hayward@arm.com>
5735
5736 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5737 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5738 (aarch64_gdbarch_init): Check for SVE.
5739 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5740
57412018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
5742
5743 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5744 * aarch64-tdep.h (aarch64_read_description): Likewise.
5745 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5746 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5747 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5748 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5749 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5750
41c60b4b
SM
57512018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5752
5753 * value.c (value_fetch_lazy_bitfield): New.
5754 (value_fetch_lazy_memory): New.
5755 (value_fetch_lazy_register): New.
5756 (value_fetch_lazy): Factor out to smaller functions.
5757
7b640f72
TT
57582018-06-01 Tom Tromey <tom@tromey.com>
5759
5760 * cp-name-parser.y (backslashable, represented): Now const.
5761
98e69eb3
TT
57622018-06-01 Tom Tromey <tom@tromey.com>
5763
5764 * cp-name-parser.y: Include parser-defs.h.
5765 (parser_fprintf): Remove declaration.
5766
49265499
TT
57672018-06-01 Tom Tromey <tom@tromey.com>
5768
5769 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5770 %parse-param.
5771 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5772 (global_result): Remove globals.
5773 (struct cpname_state): New.
5774 (yyparse): Don't declare.
5775 (yylex, yyerror): Move declarations after %union.
5776 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5777 (make_name): Add state parameter.
5778 Update all callers.
5779 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5780 parameter.
5781 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5782 Update.
5783 (yylex): Add lvalp, state parameters.
5784 (yyerror): Add state parameter.
5785 (cp_demangled_name_to_comp): Update.
5786
55b6c984
TT
57872018-06-01 Tom Tromey <tom@tromey.com>
5788
5789 * cp-name-parser.y (parser_fprintf): Declare.
5790 (GDB_YY_REMAP_PREFIX): Define.
5791 Include yy-remap.h. Don't redefine yy* identifiers.
5792
3513a6bb
TT
57932018-06-01 Tom Tromey <tom@tromey.com>
5794
5795 * python/py-type.c (typy_legacy_template_argument): Update.
5796 * cp-support.h (cp_demangled_name_to_comp): Update.
5797 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5798 parameter to be a "std::string *".
5799 (main): Update.
5800
e9cb46ab
L
58012018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5802
5803 * ada-lex.l: Include "diagnostics.h" instead of
5804 "common/diagnostics.h".
5805 * unittests/environ-selftests.c: Likewise.
5806 * common/diagnostics.h: Moved to ../include.
5807
8e817061
JB
58082018-06-01 Joel Brobecker <brobecker@adacore.com>
5809
5810 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5811 to language_mode_manual while calling breakpoint_re_set_one.
5812
a737d952
TT
58132018-06-01 Tom Tromey <tom@tromey.com>
5814
5815 * valops.c (value_cast_structs, destructor_name_p): Update.
5816 * symtab.c (gdb_mangle_name): Update.
5817 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5818 Update.
5819 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5820 (pascal_object_print_value_fields, pascal_object_print_value):
5821 Update.
5822 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5823 * linespec.c (find_methods): Update.
5824 * gdbtypes.h (type_name_no_tag): Remove.
5825 (type_name_or_error): Rename from type_name_no_tag_or_error.
5826 * gdbtypes.c (type_name_no_tag): Remove.
5827 (type_name_or_error): Rename from type_name_no_tag_or_error.
5828 (lookup_struct_elt_type, check_typedef): Update.
5829 * expprint.c (print_subexp_standard): Update.
5830 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5831 * d-namespace.c (d_lookup_nested_symbol): Update.
5832 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5833 (cp_print_class_member): Update.
5834 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5835 * completer.c (add_struct_fields): Update.
5836 * c-typeprint.c (cp_type_print_derivation_info)
5837 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5838 Update.
5839 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5840 (ada_prefer_type, ada_is_exception_sym): Update.
5841
e86ca25f
TT
58422018-06-01 Tom Tromey <tom@tromey.com>
5843
5844 * valops.c (enum_constant_from_type, value_namespace_elt)
5845 (value_maybe_namespace_elt): Update.
5846 * valarith.c (find_size_for_pointer_math): Update.
5847 * target-descriptions.c (make_gdb_type): Update.
5848 * symmisc.c (print_symbol): Update.
5849 * stabsread.c (define_symbol, read_type)
5850 (complain_about_struct_wipeout, add_undefined_type)
5851 (cleanup_undefined_types_1): Update.
5852 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5853 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5854 (rust_internal_print_type, rust_composite_type)
5855 (rust_evaluate_funcall, rust_evaluate_subexp)
5856 (rust_inclusive_range_type_p): Update.
5857 * python/py-type.c (typy_get_tag): Update.
5858 * p-typeprint.c (pascal_type_print_base): Update.
5859 * mdebugread.c (parse_symbol, parse_type): Update.
5860 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5861 Update.
5862 * guile/scm-type.c (gdbscm_type_tag): Update.
5863 * go-lang.c (sixg_string_p): Update.
5864 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5865 Update.
5866 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5867 (TYPE_TAG_NAME): Remove.
5868 * gdbtypes.c (type_name_no_tag): Simplify.
5869 (check_typedef, check_types_equal, recursive_dump_type)
5870 (copy_type_recursive, arch_composite_type): Update.
5871 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5872 in summary mode when needed.
5873 * eval.c (evaluate_funcall): Update.
5874 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5875 (process_structure_scope, read_enumeration_type)
5876 (read_namespace_type, read_module_type, determine_prefix): Update.
5877 * cp-support.c (inspect_type): Update.
5878 * coffread.c (process_coff_symbol, decode_base_type): Update.
5879 * c-varobj.c (c_is_path_expr_parent): Update.
5880 * c-typeprint.c (c_type_print_base_struct_union): Update.
5881 (c_type_print_base_1): Update. Print struct/class/union/enum in
5882 summary when using C language.
5883 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5884 (gen_maybe_namespace_elt): Update.
5885 * ada-lang.c (ada_type_name): Simplify.
5886 (empty_record, ada_template_to_fixed_record_type_1)
5887 (template_to_static_fixed_type)
5888 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5889
c1ec8cea
TT
58902018-06-01 Tom Tromey <tom@tromey.com>
5891
5892 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5893 c_print_type.
5894 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5895 (c_print_type): Update.
5896 (c_print_type): New overload.
5897 (c_type_print_varspec_prefix, c_type_print_args)
5898 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5899 (c_type_print_base_struct_union, c_type_print_base_1)
5900 (cp_type_print_method_args): Add "language" parameter.
5901 (c_type_print_base): Update.
5902 * c-lang.h (c_print_type): Add new overload.
5903
bc8453a7
TT
59042018-06-01 Tom Tromey <tom@tromey.com>
5905
5906 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5907 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5908
739e8682
AH
59092018-06-01 Alan Hayward <alan.hayward@arm.com>
5910
5911 * aarch64-tdep.c (aarch64_sve_register_names): New const
5912 var.
5913 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5914 (AARCH64_SVE_Z_REGS_NUM): New define.
5915 (AARCH64_SVE_P_REGS_NUM): Likewise.
5916 (AARCH64_SVE_NUM_REGS): Likewise.
5917
8a60efe7
UB
59182018-05-31 Uros Bizjak <ubizjak@gmail.com>
5919
5920 * nat/linux-ptrace.h [__alpha__]
5921 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5922 definitions.
5923
4b2dfa9d
MR
59242018-05-31 Maciej W. Rozycki <macro@mips.com>
5925
5926 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5927 the endianness selected.
5928 * NEWS: Document `set endian auto' mode operation update.
5929
122394f1
AH
59302018-05-31 Alan Hayward <alan.hayward@arm.com>
5931
5932 * Makefile.in: Add new header.
5933 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5934 (sve_vl_from_vg): Likewise.
5935 (sve_vq_from_vl): Likewise.
5936 (sve_vl_from_vq): Likewise.
5937 (sve_vq_from_vg): Likewise.
5938 (sve_vg_from_vq): Likewise.
5939 * configure.nat: Add new c file.
5940 * nat/aarch64-sve-linux-ptrace.c: New file.
5941 * nat/aarch64-sve-linux-ptrace.h: New file.
5942
95228a0d
AH
59432018-05-31 Alan Hayward <alan.hayward@arm.com>
5944
5945 * aarch64-linux-nat.c (aarch64_linux_read_description):
5946 Add parmeter zero.
5947 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5948 Likewise.
5949 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5950 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5951 (aarch64_gdbarch_init): Add parmeter zero.
5952 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5953 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5954 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5955 parmeter.
5956 * doc/gdb.texinfo: Describe SVE feature
5957 * features/aarch64-sve.c: New file.
5958
5969f0db
OJ
59592018-05-31 Omair Javaid <omair.javaid@linaro.org>
5960
5961 PR gdb/23210
5962 * gdbarch.sh (significant_addr_bit): Default to zero when
5963 not set by target architecture.
5964 * gdbarch.c: Re-generated.
5965 * utils.c (address_significant): Update.
5966
61367c61
JB
59672018-05-30 Joel Brobecker <brobecker@adacore.com>
5968
5969 * stack.c (func_command): Remove trailing newline in call to error.
5970
34a79281
SM
59712018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5972
5973 * regcache.h (regcache_raw_collect): Remove, update callers to
5974 use regcache::raw_collect.
5975 * regcache.c (regcache_raw_collect): Remove.
5976
73e1c03f
SM
59772018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5978
5979 * regcache.h (regcache_raw_supply): Remove, update callers to
5980 use detached_regcache::raw_supply.
5981 * regcache.c (regcache_raw_supply): Remove.
5982
e4c4a59b
SM
59832018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5984
5985 * regcache.h (regcache_cooked_write_part): Remove, update
5986 callers to use regcache::cooked_write_part.
5987 * regcache.c (regcache_cooked_write_part): Remove.
5988
73bb0000
SM
59892018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5990
5991 * regcache.h (regcache_cooked_read_part): Remove, update callers
5992 to use readable_regcache::cooked_read_part.
5993 * regcache.c (regcache_cooked_read_part): Remove.
5994
46a45e9d
SM
59952018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5996
5997 * regcache.h (regcache_cooked_read_value): Remove, update
5998 callers to use readable_regcache::cooked_read_value.
5999 * regcache.c (regcache_cooked_read_value): Remove.
6000
b66f5587
SM
60012018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6002
6003 * regcache.h (regcache_cooked_write): Remove, update callers to
6004 use regcache::cooked_write.
6005 * regcache.c (regcache_cooked_write): Remove.
6006
6aa7d724
SM
60072018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6008
6009 * regcache.h (regcache_invalidate): Remove, update callers to
6010 use detached_regcache::invalidate instead.
6011 * regcache.c (regcache_invalidate): Remove.
6012
4f0420fd
SM
60132018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6014
6015 * regcache.h (regcache_raw_write_part): Remove, update callers
6016 to use regcache::raw_write_part instead.
6017 * regcache.c (regcache_raw_write_part): Remove.
6018
502fe83e
SM
60192018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6020
6021 * regcache.h (regcache_raw_read_part): Remove, update callers to
6022 use readable_regcache::raw_read_part instead.
6023 * regcache.c (regcache_raw_read_part): Remove.
6024
dca08e1f
SM
60252018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6026
6027 * regcache.h (regcache_cooked_read): Remove, update callers to
6028 use readable_regcache::cooked_read instead.
6029 * regcache.c (regcache_cooked_read): Remove.
6030
10eaee5f
SM
60312018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6032
6033 * regcache.h (regcache_raw_write): Remove, update callers to use
6034 regcache::raw_write instead.
6035 * regcache.c (regcache_raw_write): Remove.
6036
0b883586
SM
60372018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6038
6039 * regcache.h (regcache_raw_read): Remove, update callers to use
6040 readable_regcache::raw_read instead.
6041 * regcache.c (regcache_raw_read): Remove.
6042
0b47d985
SM
60432018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6044
6045 * regcache.h (regcache_raw_update): Remove, update callers to
6046 use readable_regcache::raw_update instead.
6047 * regcache.c (regcache_raw_update): Remove.
6048
0ec9f114
SM
60492018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6050
6051 * regcache.h (regcache_register_status): Remove, update callers
6052 to use reg_buffer::get_register_status directly instead.
6053 * regcache.c (regcache_register_status): Remove.
6054
222312d3
SM
60552018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6056
6057 * regcache.h (regcache_get_ptid): Remove, update all callers to
6058 call regcache::ptid instead.
6059 * regcache.c (regcache_get_ptid): Remove.
6060
fdbe37e3
SM
60612018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6062
6063 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6064
f7c6f423
PA
60652018-05-30 Pedro Alves <palves@redhat.com>
6066
6067 * common/common-exceptions.h (exception_rethrow): Use
6068 ATTRIBUTE_NORETURN.
6069
52941706
SM
60702018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6071
6072 * breakpoint.c (print_solib_event, check_status_catch_solib):
6073 Remove struct keyword in range-based for loops.
6074 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6075 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6076 Likewise.
6077 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6078 Likewise.
6079 * symfile.c (addr_info_make_relative): Likewise.
6080 * thread.c (value_in_thread_stack_temporaries): Likewise.
6081
bf2977b5
WP
60822018-06-12 Weimin Pan <weimin.pan@oracle.com>
6083
6084 PR gdb/16841
6085 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6086 aggregate type to get its real type before accessing it.
6087
64cc34d8
WP
60882018-05-29 Weimin Pan <weimin.pan@oracle.com>
6089
6090 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6091 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6092 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6093 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6094 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6095 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6096 * printcmd.c (info_address_command): Likewise.
6097
e7ec8713
TT
60982018-05-29 Tom Tromey <tom@tromey.com>
6099
6100 * windows-nat.c (handle_exception): Update fall-through comment.
6101
bcb430e4
TT
61022018-05-29 Tom Tromey <tom@tromey.com>
6103
6104 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6105 (struct program_space) <added_solibs>: Now a std::vector.
6106 * breakpoint.c (print_solib_event): Update.
6107 (check_status_catch_solib): Update.
6108 * progspace.c (clear_program_space_solib_cache): Update.
6109 * solib.c (update_solib_list): Update.
6110
894882e3
TT
61112018-05-29 Tom Tromey <tom@tromey.com>
6112
6113 * python/py-type.c (typy_richcompare): Update.
6114 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6115 * gdbtypes.h (types_deeply_equal): Return bool.
6116 (types_equal): Likewise.
6117 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6118 declare VEC.
6119 (check_types_equal): Change worklist to std::vector. Return
6120 bool.
6121 (struct type_equality_entry): Add constructor.
6122 (compare_maybe_null_strings): Return bool.
6123 (check_types_worklist): Return bool. Change worklist to
6124 std::vector.
6125 (types_deeply_equal): Use std::vector.
6126 (types_equal): Return bool.
6127 (compare_maybe_null_strings): Simplify.
6128
10b2ded4
TT
61292018-05-29 Tom Tromey <tom@tromey.com>
6130
6131 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6132
4f7deebe
TT
61332018-05-29 Tom Tromey <tom@tromey.com>
6134
6135 * objc-lang.h: Don't include cp-support.h.
6136 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6137 declare VEC.
6138
b8283aea
TT
61392018-05-27 Tom Tromey <tom@tromey.com>
6140
6141 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6142
41a883c8
TT
61432018-05-25 Tom Tromey <tom@tromey.com>
6144
6145 * value.c (value::location): Initialize.
6146
bf259e25
TT
61472018-05-25 Tom Tromey <tom@tromey.com>
6148
6149 * dbxread.c (init_bincl_list): Remove.
6150 (bincl_list): Now a std::vector.
6151 (bincls_allocated, next_bincl): Remove.
6152 (free_bincl_list, do_free_bincl_list_cleanup)
6153 (make_cleanup_free_bincl_list): Remove.
6154 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6155 unique_xmalloc_ptr.
6156 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6157 (struct header_file_location): Add constructor.
6158 (add_bincl_to_list): Remove.
6159
d525a99b
TT
61602018-05-25 Tom Tromey <tom@tromey.com>
6161
6162 * tui/tui.c (tui_enable): Update.
6163 * mi/mi-interp.c (mi_interp::init): Update.
6164 * interps.h (class interp) <name>: New method.
6165 <m_name>: Rename from name.
6166 (~scoped_restore_interp): Update.
6167 * interps.c (interp::interp): Update.
6168 (interp_add, interp_set, interp_lookup_existing)
6169 (current_interp_named_p): Update.
6170
da505cff
TT
61712018-05-25 Tom Tromey <tom@tromey.com>
6172
6173 * interps.c (interp_name): Remove.
6174 * mi/mi-interp.c (mi_interp::init): Update.
6175 * interps.h (interp_name): Remove.
6176 (~scoped_restore_interp): Update.
6177 * tui/tui.c (tui_enable): Update.
6178
29f94340
TT
61792018-05-25 Tom Tromey <tom@tromey.com>
6180
6181 * utils.c (fputs_maybe_filtered): Update.
6182 * linespec.c (decode_line_full): Update.
6183 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6184 (mi_print_breakpoint_for_event, mi_solib_loaded)
6185 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6186 (mi_user_selected_context_changed): Update.
6187 * mi/mi-main.c (mi_execute_command): Update.
6188 * cli/cli-script.c (execute_control_command): Update.
6189 * python/python.c (execute_gdb_command): Update.
6190 * solib.c (info_sharedlibrary_command): Update.
6191 * interps.c (interp_ui_out): Remove.
6192 * interps.h (interp_ui_out): Remove.
6193
716b8bc5
TT
61942018-05-25 Tom Tromey <tom@tromey.com>
6195
6196 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6197 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6198 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6199
753ff9bd
TT
62002018-05-25 Tom Tromey <tom@tromey.com>
6201
6202 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6203 * interps.c (interp_exec): Use scoped_restore.
6204
5ca3b260
TT
62052018-05-25 Tom Tromey <tom@tromey.com>
6206
6207 * remote.c (remote_target::remote_file_get): Use
6208 gdb::byte_vector.
6209 (remote_target::remote_file_put): Likewise.
6210
3173aa2f
TT
62112018-05-25 Tom Tromey <tom@tromey.com>
6212
6213 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6214 a std::string.
6215 (get_pe_section_index, add_pe_exported_sym): Update.
6216 (read_pe_exported_syms): Use gdb::def_vector.
6217
09a5e1b5
TT
62182018-05-25 Tom Tromey <tom@tromey.com>
6219
6220 * frame.c (remove_prev_frame): Remove.
6221 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6222
d8dab6c3
MR
62232018-05-25 Maciej W. Rozycki <macro@mips.com>
6224
6225 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6226 Remove prototypes.
6227 * mips-linux-nat.c (supply_fpregset): Always call
6228 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6229 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6230 `mips_fill_fpregset'.
6231 * mips-linux-tdep.c (mips_supply_fpregset)
6232 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6233 (mips_fill_fpregset_wrapper): Remove functions.
6234 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6235 (mips_linux_fpregset): Remove variable.
6236 (mips_linux_iterate_over_regset_sections): Use
6237 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6238 (mips_linux_o32_sigframe_init): Remove comment.
6239
3c69da40
PA
62402018-05-25 Pedro Alves <palves@redhat.com>
6241
6242 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6243 (struct readahead_cache, struct packet_reg, struct
6244 remote_arch_state, class remote_state): Move higher up in the
6245 file.
6246 (remote_target::m_remote_state): Now an object instead of a pointer.
6247 (remote_target::get_remote_state): Adjust.
6248
39f0c204
AB
62492018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6250
6251 * stack.c (select_and_print_frame): Delete.
6252 (struct function_bounds): Move struct within function.
6253 (func_command): Most content moved into new function
6254 find_frame_for_function, use new function, print result, add
6255 function comment.
6256 (find_frame_for_function): New function, now returns a result.
6257
d392224a
PW
62582018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6259
6260 * stack.c (iterate_over_block_arg_vars): Fix comment.
6261 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6262
45f25d6c
AB
62632018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6264
6265 PR gdb/23203
6266 * frame.c
6267 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6268 Define.
6269 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6270 Define.
6271 * frame.h (class scoped_restore_selected_frame): New class.
6272 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6273 of any exception, use scoped_restore_selected_frame to restore the
6274 frame instead.
6275
da05d921
PA
62762018-05-24 Pedro Alves <palves@redhat.com>
6277
6278 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6279 override.
6280
a8be540e
TT
62812018-05-23 Tom Tromey <tom@tromey.com>
6282
6283 * complaints.c (struct complaints): Remove.
6284 (symfile_complaint_book): Remove.
6285 (series): New global.
6286 (complaint_internal): Update.
6287 (clear_complaints): Update.
6288
ff1cf532
TT
62892018-05-23 Tom Tromey <tom@tromey.com>
6290
6291 * complaints.c (counters): New global.
6292 (struct complain): Remove.
6293 (struct complaints) <root>: Remove.
6294 (complaint_sentinel): Remove.
6295 (symfile_complaint_book): Update.
6296 (find_complaint) Remove.
6297 (complaint_internal, clear_complaints): Update.
6298
7ff88174
TT
62992018-05-23 Tom Tromey <tom@tromey.com>
6300
6301 * complaints.c (struct complain) <file, line>: Remove.
6302 (find_complaint): Remove file, line parameters.
6303 (complaint_internal): Update.
6304
de54e1a5
TT
63052018-05-23 Tom Tromey <tom@tromey.com>
6306
6307 * complaints.c (vcomplaint): Remove.
6308 (complaint_internal) Merge in contents of vcomplaint.
6309
2ac237e5
TT
63102018-05-23 Tom Tromey <tom@tromey.com>
6311
6312 * complaints.c (struct complaints) <explanation>: Remove.
6313 (symfile_explanations): Remove.
6314 (symfile_complaint_book): Update.
6315 (vcomplaint): Update.
6316 (struct explanation): Remove.
6317
b98664d3
TT
63182018-05-23 Tom Tromey <tom@tromey.com>
6319
6320 * complaints.c (symfile_complaints): Remove.
6321 (complaint_internal): Remove "complaints" parameter.
6322 (clear_complaints, vcomplaint): Remove "c" parameter.
6323 (get_complaints): Remove.
6324 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6325 (dwarf2_debug_line_missing_file_complaint)
6326 (dwarf2_debug_line_missing_end_sequence_complaint)
6327 (dwarf2_complex_location_expr_complaint)
6328 (dwarf2_const_value_length_mismatch_complaint)
6329 (dwarf2_section_buffer_overflow_complaint)
6330 (dwarf2_macro_malformed_definition_complaint)
6331 (dwarf2_invalid_attrib_class_complaint)
6332 (create_addrmap_from_index, dw2_symtab_iter_next)
6333 (dw2_expand_marked_cus)
6334 (dw2_debug_names_iterator::find_vec_in_debug_names)
6335 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6336 (create_debug_type_hash_table, init_cutu_and_read_dies)
6337 (partial_die_parent_scope, add_partial_enumeration)
6338 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6339 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6340 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6341 (create_cus_hash_table, create_dwp_hash_table)
6342 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6343 (dwarf2_rnglists_process, dwarf2_ranges_process)
6344 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6345 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6346 (handle_struct_member_die, process_structure_scope)
6347 (read_array_type, read_common_block, read_module_type)
6348 (read_tag_pointer_type, read_typedef, read_base_type)
6349 (read_subrange_type, load_partial_dies, partial_die_info::read)
6350 (partial_die_info::read, partial_die_info::read)
6351 (partial_die_info::read, read_checked_initial_length_and_offset)
6352 (dwarf2_string_attr, read_formatted_entries)
6353 (dwarf_decode_line_header)
6354 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6355 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6356 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6357 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6358 (get_signatured_type, get_DW_AT_signature_type)
6359 (decode_locdesc, file_file_name, consume_improper_spaces)
6360 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6361 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6362 (dwarf2_symbol_mark_computed, set_die_type)
6363 (read_attribute_value): Update.
6364 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6365 Update.
6366 * dbxread.c (unknown_symtype_complaint)
6367 (lbrac_mismatch_complaint, repeated_header_complaint)
6368 (set_namestring, function_outside_compilation_unit_complaint)
6369 (read_dbx_symtab, process_one_symbol): Update.
6370 * gdbtypes.c (stub_noname_complaint): Update.
6371 * windows-nat.c (handle_unload_dll): Update.
6372 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6373 (decode_base_type): Update.
6374 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6375 (eb_complaint, record_include_begin, record_include_end)
6376 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6377 (process_xcoff_symbol, read_symbol)
6378 (function_outside_compilation_unit_complaint)
6379 (scan_xcoff_symtab): Update.
6380 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6381 * buildsym.c (finish_block_internal, make_blockvector)
6382 (end_symtab_get_static_block, augment_type_symtab): Update.
6383 * dtrace-probe.c (dtrace_process_dof)
6384 (dtrace_static_probe_ops::get_probes): Update.
6385 * complaints.h (struct complaint): Don't declare.
6386 (symfile_complaints): Remove.
6387 (complaint_internal): Remove "complaints" parameter.
6388 (complaint): Likewise.
6389 (clear_complaints): Likewise.
6390 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6391 (reread_symbols): Update.
6392 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6393 (dwarf2_frame_cache, decode_frame_entry): Update.
6394 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6395 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6396 (info_selectors_command): Update.
6397 * macrotab.c (macro_include, check_for_redefinition)
6398 (macro_undef): Update.
6399 * objfiles.c (filter_overlapping_sections): Update.
6400 * stabsread.c (invalid_cpp_abbrev_complaint)
6401 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6402 (define_symbol, error_type, read_type, rs6000_builtin_type)
6403 (stabs_method_name_from_physname, read_member_functions)
6404 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6405 (attach_fields_to_type, complain_about_struct_wipeout)
6406 (read_range_type, read_args, common_block_start)
6407 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6408 Update.
6409 * mdebugread.c (index_complaint, unknown_ext_complaint)
6410 (basic_type_complaint, bad_tag_guess_complaint)
6411 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6412 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6413 (parse_procedure, parse_lines)
6414 (function_outside_compilation_unit_complaint)
6415 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6416 (bad_tag_guess_complaint, reg_value_complaint): Update.
6417 * cp-support.c (demangled_name_complaint): Update.
6418 * macroscope.c (sal_macro_scope): Update.
6419 * dwarf-index-write.c (class debug_names): Update.
6420
4e9668d0
TT
64212018-05-23 Tom Tromey <tom@tromey.com>
6422
6423 * complaints.c (clear_complaints): Remove "noisy" parameter.
6424 * complaints.h (clear_complaints): Update.
6425 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6426 (reread_symbols): Update.
6427
43ba33c7
TT
64282018-05-23 Tom Tromey <tom@tromey.com>
6429
6430 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6431 SUBSEQUENT_MESSAGE.
6432 (vcomplaint, clear_complaints): Update.
6433 (symfile_explanations): Remove some messages.
6434
2b9496b2
TT
64352018-05-23 Tom Tromey <tom@tromey.com>
6436
6437 * complaints.c (internal_complaint): Remove.
6438 * complaints.h (internal_complaint): Remove.
6439
35f1fea3
MR
64402018-05-22 Maciej W. Rozycki <macro@mips.com>
6441
6442 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6443
6b8edb51
PA
64442018-05-22 Pedro Alves <palves@redhat.com>
6445
6446 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6447 (remote_fileio_badfd, remote_fileio_return_errno)
6448 (remote_fileio_return_success, remote_fileio_func_open)
6449 (remote_fileio_func_open, remote_fileio_func_close)
6450 (remote_fileio_func_read, remote_fileio_func_write)
6451 (remote_fileio_func_lseek, remote_fileio_func_rename)
6452 (remote_fileio_func_unlink, remote_fileio_func_stat)
6453 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6454 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6455 remote_target parameter.
6456 (remote_fio_func_map) <func>: Add remote_target parameter.
6457 (do_remote_fileio_request, remote_fileio_request):
6458 * remote-fileio.h (remote_fileio_request):
6459 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6460 remote_target parameter.
6461 (remote_notif_process, handle_notification): Adjust to pass down
6462 the remote.
6463 (remote_notif_state_allocate): Add remote_target parameter. Save
6464 it.
6465 * remote-notif.h (struct remote_target): Forward declare.
6466 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6467 remote_target parameter.
6468 (struct remote_notif_state) <remote>: New field.
6469 (remote_notif_ack, remote_notif_parse): Add remote_target
6470 parameter.
6471 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6472 remote_target parameter.
6473 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6474 (threads_listing_context, rmt_thread_action, protocol_feature)
6475 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6476 (packet_result, struct threads_listing_context, remote_state):
6477 Move definitions and declarations higher up.
6478 (remote_target) <~remote_target>: Declare.
6479 (remote_download_command_source, remote_file_put, remote_file_get)
6480 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6481 (remote_hostio_pread_vFile, remote_hostio_send_command)
6482 (remote_hostio_set_filesystem, remote_hostio_open)
6483 (remote_hostio_close, remote_hostio_unlink, remote_state)
6484 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6485 (get_memory_write_packet_size, get_memory_read_packet_size)
6486 (append_pending_thread_resumptions, remote_detach_1)
6487 (append_resumption, remote_resume_with_vcont)
6488 (add_current_inferior_and_thread, wait_ns, wait_as)
6489 (process_stop_reply, remote_notice_new_inferior)
6490 (process_initial_stop_replies, remote_add_thread)
6491 (btrace_sync_conf, remote_btrace_maybe_reopen)
6492 (remove_new_fork_children, kill_new_fork_children)
6493 (discard_pending_stop_replies, stop_reply_queue_length)
6494 (check_pending_events_prevent_wildcard_vcont)
6495 (discard_pending_stop_replies_in_queue, stop_reply)
6496 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6497 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6498 (remote_interrupt_as, remote_interrupt_ns)
6499 (remote_get_noisy_reply, remote_query_attached)
6500 (remote_add_inferior, remote_current_thread, get_current_thread)
6501 (set_thread, set_general_thread, set_continue_thread)
6502 (set_general_process, write_ptid)
6503 (remote_unpack_thread_info_response, remote_get_threadinfo)
6504 (parse_threadlist_response, remote_get_threadlist)
6505 (remote_threadlist_iterator, remote_get_threads_with_ql)
6506 (remote_get_threads_with_qxfer)
6507 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6508 (get_offsets, remote_check_symbols, remote_supported_packet)
6509 (remote_query_supported, remote_packet_size)
6510 (remote_serial_quit_handler, remote_detach_pid)
6511 (remote_vcont_probe, remote_resume_with_hc)
6512 (send_interrupt_sequence, interrupt_query)
6513 (remote_notif_get_pending_events, fetch_register_using_p)
6514 (send_g_packet, process_g_packet, fetch_registers_using_g)
6515 (store_register_using_P, store_registers_using_G)
6516 (set_remote_traceframe, check_binary_download)
6517 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6518 (remote_xfer_live_readonly_partial, remote_read_bytes)
6519 (remote_send_printf, remote_flash_write, readchar)
6520 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6521 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6522 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6523 (extended_remote_disable_randomization, extended_remote_run)
6524 (send_environment_packet, extended_remote_environment_support)
6525 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6526 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6527 (packet_command): Now methods of ...
6528 (remote_target): ... this class.
6529 (m_remote_state) <remote_target>: New field.
6530 (struct remote_state) <stop_reply_queue,
6531 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6532 fields.
6533 (remote_state::remote_state): Allocate stop_reply_queue.
6534 (remote_state): Delete global.
6535 (get_remote_state_raw): Delete.
6536 (remote_target::get_remote_state): Allocate m_remote_state on
6537 demand.
6538 (get_current_remote_target): New.
6539 (remote_ops, extended_remote_ops): Delete.
6540 (wait_forever_enabled_p, remote_async_inferior_event_token):
6541 Delete, moved to struct remote_state.
6542 (remote_target::close): Delete self. Destruction bits split to
6543 ...
6544 (remote_target::~remote_target): ... this.
6545 (show_memory_packet_size): Adjust to use
6546 get_current_remote_target.
6547 (struct protocol_feature) <func>: Add remote_target parameter.
6548 All callers adjusted.
6549 (curr_quit_handler_target): New.
6550 (remote_serial_quit_handler): Reimplement.
6551 (remote_target::open_1): Adjust to use get_current_remote_target.
6552 Heap-allocate remote_target/extended_remote_target instances.
6553 (vcont_builder::vcont_builder): Add remote_target parameter, and
6554 save it in m_remote. All callers adjusted.
6555 (vcont_builder::m_remote): New field.
6556 (vcont_builder::restart, vcont_builder::flush)
6557 (vcont_builder::push_action): Use it.
6558 (remote_target::commit_resume): Use it.
6559 (struct queue_iter_param) <remote>: New field.
6560 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6561 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6562 (check_pending_event_prevents_wildcard_vcont_callback)
6563 (remote_target::check_pending_events_prevent_wildcard_vcont)
6564 (remote_target::discard_pending_stop_replies)
6565 (remote_target::discard_pending_stop_replies_in_queue)
6566 (remote_target::remote_notif_remove_queued_reply): Fill in
6567 'remote' field.
6568 (remote_notif_get_pending_events): New.
6569 (remote_target::readchar, remote_target::remote_serial_write):
6570 Save/restore curr_quit_handler_target.
6571 (putpkt): New.
6572 (kill_new_fork_children): Fill in 'remote' field.
6573 (packet_command): Use get_current_remote_target, defer to
6574 remote_target method of same name.
6575 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6576 parameter, and save it in m_remote. All callers adjusted.
6577 (scoped_remote_fd::release): Use m_remote.
6578 (scoped_remote_fd::m_remote): New field.
6579 (remote_file_put, remote_file_get, remote_file_delete): Use
6580 get_current_remote_target, defer to remote_target method of same
6581 name.
6582 (remote_btrace_reset): Add remote_state paremeter. Update all
6583 callers.
6584 (remote_async_inferior_event_handler). Pass down 'data'.
6585 (remote_new_objfile): Use get_current_remote_target.
6586 (remote_target::vcont_r_supported): New.
6587 (set_range_stepping): Use get_current_remote_target and
6588 remote_target::vcont_r_supported.
6589 (_initialize_remote): Don't allocate 'remote_state' and
6590 'stop_reply_queue' globals.
6591 * remote.h (struct remote_target): Forward declare.
6592 (getpkt, putpkt, remote_notif_get_pending_events): Add
6593 'remote_target' parameter.
6594
f5db4863
PA
65952018-05-22 Pedro Alves <palves@redhat.com>
6596
6597 * remote.c (vcont_builder): Now a class. Make all data members
6598 private.
6599 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6600 Declare methods.
6601 (vcont_builder_restart): Rename to ...
6602 (vcont_builder::restart): ... this.
6603 (vcont_builder_flush): Rename to ...
6604 (vcont_builder::flush): ... this.
6605 (vcont_builder_push_action): Rename to ...
6606 (vcont_builder::push_action): ... this.
6607 (remote_target::commit_resume): Adjust.
6608
cc0be08f
PA
66092018-05-22 Pedro Alves <palves@redhat.com>
6610
6611 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6612 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6613 (get_fixed_memory_packet_size): New.
6614 (get_memory_packet_size): Use it.
6615 (set_memory_packet_size): Don't override the config size with
6616 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6617 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6618 Don't refer to get_memory_packet_size if not connected to a remote
6619 target. Show "(default)" if configured size is 0.
6620
9607784a
PA
66212018-05-22 Pedro Alves <palves@redhat.com>
6622
6623 * remote.c (remote_target::mourn_inferior): Move
6624 discard_pending_stop_replies call here from ...
6625 (_initialize_remote): ... here.
6626
0e9a6b2f
PA
66272018-05-22 Pedro Alves <palves@redhat.com>
6628
6629 * remote.c (compare_section_command): Remove set_general_process
6630 call.
6631
43c3a0e4
PA
66322018-05-22 Pedro Alves <palves@redhat.com>
6633
6634 * remote.c (struct packet_reg, struct remote_arch_state):
6635 Move higher up in the file.
6636 (remote_state) <m_arch_states>: Store remote_arch_state values
6637 instead of remote_arch_state pointers.
6638 (remote_state::get_remote_arch_state): Adjust.
6639
9d6eea31
PA
66402018-05-22 Pedro Alves <palves@redhat.com>
6641
6642 * remote.c: Include <unordered_map>.
6643 (remote_state): Now a class.
6644 (remote_state) <get_remote_arch_state>: Declare method.
6645 <get_remote_arch_state>: New field.
6646 (remote_arch_state) <remote_arch_state>: Declare ctor.
6647 <regs>: Now a unique_ptr.
6648 (remote_gdbarch_data_handle): Delete.
6649 (get_remote_arch_state): Delete.
6650 (remote_state::get_remote_arch_state): New.
6651 (get_remote_state): Adjust to call remote_state's
6652 get_remote_arch_state method.
6653 (init_remote_state): Delete, bits factored out to ...
6654 (remote_arch_state::remote_arch_state): ... this new method.
6655 (get_remote_packet_size, get_memory_packet_size)
6656 (process_g_packet, remote_target::fetch_registers)
6657 (remote_target::prepare_to_store, store_registers_using_G)
6658 (remote_target::store_registers, remote_target::get_trace_status):
6659 Adjust to call remote_state's method.
6660 (_initialize_remote): Remove reference to
6661 remote_gdbarch_data_handle.
6662
dd194f6b
PA
66632018-05-22 Pedro Alves <palves@redhat.com>
6664
6665 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6666 pread>: New method declarations.
6667 (remote_target::open_1): Adjust.
6668 (readahead_cache_invalidate): Rename to ...
6669 (readahead_cache::invalidate): ... this, and adjust to be a class
6670 method.
6671 (readahead_cache_invalidate_fd): Rename to ...
6672 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6673 class method.
6674 (remote_hostio_pwrite): Adjust.
6675 (remote_hostio_pread_from_cache): Rename to ...
6676 (readahead_cache::pread): ... this, and adjust to be a class
6677 method.
6678 (remote_hostio_close): Adjust.
6679
440b7aec
PA
66802018-05-22 Pedro Alves <palves@redhat.com>
6681
6682 * remote.c (remote_hostio_close_cleanup): Delete.
6683 (class scoped_remote_fd): New.
6684 (remote_file_put, remote_file_get): Use it.
6685
de44f5a7
PA
66862018-05-22 Pedro Alves <palves@redhat.com>
6687
6688 (struct vCont_action_support): Use bool and initialize all fields.
6689 (struct readahead_cache): Initialize all fields.
6690 (remote_state): Use bool and initialize all fields.
6691 (remote_state::remote_state, remote_state::~remote_state): New.
6692 (new_remote_state): Delete.
6693 (_initialize_remote): Use new to allocate remote_state.
6694
b1b60145
PA
66952018-05-22 Pedro Alves <palves@redhat.com>
6696 張俊芝 <zjz@zjz.name>
6697
6698 PR gdb/22973
6699 * c-exp.y: Include "c-support.h".
6700 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6701 of tolower. Use c_ident_is_alpha to scan names.
6702 * c-lang.c: Include "c-support.h".
6703 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6704 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6705 * c-support.h: New file, with bits factored out from ...
6706 * cp-name-parser.y: ... this file.
6707 Include "c-support.h".
6708 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6709 c-support.h and renamed.
6710 (symbol_end, yylex): Adjust.
6711
0ec848ad
PFC
67122018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6713
6714 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6715 parameter type to CORE_ADDR.
6716 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6717 parameter type in declaration to CORE_ADDR.
6718 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6719 target_auxv_search to get AT_HWCAP and use the result to get the
6720 target description.
6721 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6722 to CORE_ADDR. Remove the cast of the return value to unsigned
6723 long. Fix error predicate of target_auxv_search.
6724 (ppc_linux_nat_target::read_description): Change the type of the
6725 hwcap variable to CORE_ADDR.
6726
0fb2aaa1
PFC
67272018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6728
6729 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6730 if the size of fpscr is larger than 32 bits.
6731
2c3305f6
PFC
67322018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6733
6734 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6735 (ppc32_linux_vsxregmap): New global.
6736 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6737 regcache_supply_regset, and regcache_collect_regset.
6738 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6739 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6740 (fetch_vsx_register, store_vsx_register): Remove.
6741 (fetch_vsx_registers): Add regno parameter. Get regset using
6742 ppc_linux_vsxregset. Use regset to supply registers.
6743 (store_vsx_registers): Add regno parameter. Get regset using
6744 ppc_linux_vsxregset. Use regset to collect registers.
6745 (fetch_register): Call fetch_vsx_registers instead of
6746 fetch_vsx_register.
6747 (store_register): Call store_vsx_registers instead of
6748 store_vsx_register.
6749 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6750 new regno parameter.
6751 (store_ppc_registers): Call store_vsx_registers with -1 for the
6752 new regno parameter.
6753 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6754 (ppc_collect_vsxregset): Remove.
6755
1d75a658
PFC
67562018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6757
6758 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6759 offset fields.
6760 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6761 for vector register offset fields.
6762 (ppc64_fbsd_reg_offsets): Likewise.
6763 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6764 to vector register offset fields.
6765 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6766 to vector register offset fields.
6767 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6768 vector register offset fields.
6769 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6770 initializers for vector register offset fields.
6771 (rs6000_aix64_reg_offsets): Likewise.
6772 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6773 (ppc_supply_vrregset): Remove.
6774 (ppc_collect_vrregset): Remove.
6775 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6776 (ppc_linux_vrregset) : New function.
6777 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6778 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6779 (ppc32_linux_vrregset): Remove.
6780 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6781 and use result instead of ppc32_linux_vrregset.
6782 (ppc32_linux_reg_offsets): Remove initializers for vector register
6783 offset fields.
6784 (ppc64_linux_reg_offsets): Likewise.
6785 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6786 * ppc-linux-nat.c: Include regset.h.
6787 (gdb_vrregset_t): Adjust comment to account for little-endian
6788 mode.
6789 (supply_vrregset, fill_vrregset): Remove.
6790 (fetch_altivec_register, store_altivec_register): Remove.
6791 (fetch_altivec_registers): Add regno parameter. Get regset using
6792 ppc_linux_vrregset. Use regset to supply registers.
6793 (store_altivec_registers): Add regno parameter. Get regset using
6794 ppc_linux_vrregset. Use regset to collect registers.
6795 (fetch_register): Call fetch_altivec_registers instead of
6796 fetch_altivec_register.
6797 (store_register): Call store_altivec_registers instead of
6798 store_altivec_register.
6799 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6800 the new regno parameter.
6801 (store_ppc_registers): Call store_altivec_registers with -1 for
6802 the new regno parameter.
6803
d078308a
PFC
68042018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6805
6806 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6807 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6808 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6809 (gdb_vrregset_t): Change array type size to
6810 PPC_LINUX_SIZEOF_VRREGSET.
6811 (gdb_vsxregset_t): Change array type size to
6812 PPC_LINUX_SIZEOF_VSXREGSET.
6813 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6814 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6815 PPC_LINUX_SIZEOF_VSXREGSET.
6816
2e077f5e
PFC
68172018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6818
6819 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6820 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6821 nat/ppc-linux.c.
6822 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6823 ppc_linux_target_wordsize with tid.
6824 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6825 wordsize with tid.
6826 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6827 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6828 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6829 tid parameter. Remove static specifier.
6830 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6831 (ppc_linux_target_wordsize): New declaration.
6832
bd64614e
PFC
68332018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6834
6835 * arch/ppc-linux-common.c: New file.
6836 * arch/ppc-linux-common.h: New file.
6837 * arch/ppc-linux-tdesc.h: New file.
6838 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6839 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6840 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6841 arch/ppc-linux-tdesc.h.
6842 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6843 arch/ppc-linux-tdesc.h.
6844 (ppc_linux_nat_target::read_description): Remove target
6845 description matching code. Fill a ppc_linux_features struct and
6846 call ppc_linux_match_description with it. Move comment about ISA
6847 2.05 to ppc-linux-common.c.
6848 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6849 arch/ppc-linux-tdesc.h.
6850 (ppc_linux_core_read_description): Remove target description
6851 matching code. Fill a ppc_linux_features struct and call
6852 ppc_linux_match_description with it.
6853 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6854 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6855 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6856 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6857 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6858 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6859 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6860 (tdesc_powerpc_e500l): Remove.
6861
241db429
JB
68622018-05-22 Joel Brobecker <brobecker@adacore.com>
6863
6864 * ada-lang.c (catch_assert_command): Pass empty string instead
6865 of NULL for excep_string argument.
6866
75d74cca
MR
68672018-05-22 Maciej W. Rozycki <macro@mips.com>
6868
6869 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6870 the width of the requested register exceeds the width of the
6871 `ptrace' data type.
6872
122b53ea
TT
68732018-05-21 Tom Tromey <tom@tromey.com>
6874
6875 * printcmd.c (output_command): Remove.
6876 (output_command_const): Rename to output_command.
6877 * valprint.h (output_command): Rename from output_command_const.
6878 * tracepoint.c (trace_dump_actions): Call output_command.
6879
bc18fbb5
TT
68802018-05-21 Tom Tromey <tom@tromey.com>
6881
6882 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6883 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6884 * ada-lang.h (create_ada_exception_catchpoint): Update.
6885 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6886 std::string.
6887 (create_excep_cond_exprs, ~ada_catchpoint)
6888 (should_stop_exception, print_one_exception)
6889 (print_mention_exception, print_recreate_exception): Update.
6890 (ada_get_next_arg): Remove.
6891 (catch_ada_exception_command_split): Use std::string. Change type
6892 of "excep_string", "cond_string".
6893 (catch_ada_exception_command): Update.
6894 (create_ada_exception_catchpoint): Change type of excep_string.
6895 (ada_exception_sal): Remove excep_string parameter.
6896 (~ada_catchpoint): Remove.
6897
790217f6
TT
68982018-05-21 Tom Tromey <tom@tromey.com>
6899
6900 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6901 cleanup.
6902
6f46ac85
TT
69032018-05-21 Tom Tromey <tom@tromey.com>
6904
6905 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6906 Return unique_xmalloc_ptr.
6907 (print_it_exception): Update.
6908
15b6611c
TT
69092018-05-21 Tom Tromey <tom@tromey.com>
6910
6911 * tracepoint.c (trace_dump_actions): Use std::string.
6912
c0c9f665
TT
69132018-05-21 Tom Tromey <tom@tromey.com>
6914
6915 * symfile.c (reread_symbols): Use std::string for original_name.
6916
22ca247e
TT
69172018-05-21 Tom Tromey <tom@tromey.com>
6918
6919 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6920 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6921 constructor.
6922
184cde75
SM
69232018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6924
6925 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6926 instance to...
6927 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6928 * objfiles.c (get_objfile_bfd_data): Allocate
6929 objfile_per_bfd_storage with obstack_new when allocating on
6930 obstack.
6931
e39db4db
SM
69322018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6933
6934 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6935 OBSTACK_ZALLOC.
6936 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6937 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6938 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6939 (add_pending): Likewise.
6940 (parse_symbol): Likewise.
6941 (parse_partial_symbols): Likewise.
6942 (psymtab_to_symtab_1): Likewise.
6943 (new_psymtab): Likewise.
6944 (elfmdebug_build_psymtabs): Likewise.
6945 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6946 * objfiles.c (get_objfile_bfd_data): Likewise.
6947 (objfile_register_static_link): Likewise.
6948 * psymtab.c (allocate_psymtab): Likewise.
6949 * stabsread.c (read_member_functions): Likewise.
6950 * xcoffread.c (xcoff_end_psymtab): Likewise.
6951
284a0e3c
SM
69522018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6953
6954 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6955 compiler supports std::is_trivially_constructible.
6956 * common/poison.h: Include obstack.h.
6957 (IsMallocable): Define to is_trivially_constructible if the
6958 compiler supports it, define to true_type otherwise.
6959 (xobnew): New.
6960 (XOBNEW): Redefine.
6961 (xobnewvec): New.
6962 (XOBNEWVEC): Redefine.
6963 * gdb_obstack.h (obstack_zalloc): New.
6964 (OBSTACK_ZALLOC): Redefine.
6965 (obstack_calloc): New.
6966 (OBSTACK_CALLOC): Redefine.
6967 (obstack_new): New.
6968 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6969 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6970 gdbarch.c.
6971 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6972 obstack_calloc/obstack_zalloc.
6973 (gdbarch_obstack_zalloc): Remove.
6974 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6975
59f66be3
PW
69762018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6977
6978 * stack.c (backtrace_command_1): Remove useless variable int i.
6979
50c65c2d
PW
69802018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6981
6982 * stack.c (print_frame_info): Fix comment.
6983
7ff8cb8c
TT
69842018-05-18 Tom Tromey <tom@tromey.com>
6985
6986 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6987 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6988 (~dwarf2_per_objfile): Update
6989 (dwarf2_get_dwz_file): Use new.
6990 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6991 unique_ptr.
6992
400174b1
TT
69932018-05-18 Tom Tromey <tom@tromey.com>
6994
6995 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6996 unique_ptr.
6997 * dwarf2read.c (struct dwp_file): Add constructor and
6998 initializers.
6999 (open_and_init_dwp_file): Return a unique_ptr.
7000 (dwarf2_per_objfile, create_dwp_hash_table)
7001 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7002 (lookup_dwo_unit_in_dwp): Update.
7003 (open_and_init_dwp_file, get_dwp_file): Update.
7004
3063847f
TT
70052018-05-18 Tom Tromey <tom@tromey.com>
7006
7007 * dwarf2read.c (dwarf2_per_objfile): Update.
7008 (struct mapped_index): Add initializers.
7009 (dwarf2_read_index): Use new.
7010 (dw2_symtab_iter_init): Update.
7011 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7012 unique_ptr.
7013
d3d02dee
SM
70142018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7015
7016 * dwarf2read.c (mapped_index) <total_size>: Remove.
7017
1d143c36
SM
70182018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7019
7020 * unittests/format_pieces-selftests.c (test_format_specifier):
7021 Add ARI comments.
7022
ce1e8424
TT
70232018-05-18 Tom Tromey <tom@tromey.com>
7024
7025 * c-typeprint.c (maybe_print_hole): New function.
7026 (c_print_type_struct_field_offset): Update.
7027 (c_type_print_base_struct_union): Call maybe_print_hole.
7028
ddfe970e
KS
70292018-05-17 Keith Seitz <keiths@redhat.com>
7030
7031 * breakpoint.c (build_bpstat_chain): New function, moved from
7032 bpstat_stop_status.
7033 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7034 If no stop chain is passed, call build_bpstat_chain to build it.
7035 * breakpoint.h (build_bpstat_chain): Declare.
7036 (bpstat_stop_status): Move documentation here from breakpoint.c.
7037 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7038 build the stop chain and pass it to skip_inline_frames.
7039 Pass this stop chain to bpstat_stop_status.
7040 * inline-frame.c: Include breakpoint.h.
7041 (stopped_by_user_bp_inline_frame): New function.
7042 (skip_inline_frames): Add parameter `stop_chain'.
7043 Move documention to inline-frame.h.
7044 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7045 whether the frame should be elided.
7046 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7047 Add moved documentation and update for new parameter.
7048
b17992c1
SM
70492018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7050
7051 PR cli/14975
7052 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7053 unittests/format_pieces-selftests.c.
7054 * common/format.h (format_piece) <operator==>: New.
7055 (format_pieces) <operator[]>: Remove.
7056 * common/format.c (format_pieces::format_pieces): Handle \e.
7057 * unittests/format_pieces-selftests.c: New.
7058
58f0c718
TT
70592018-05-17 Tom Tromey <tom@tromey.com>
7060
7061 PR symtab/23010:
7062 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7063 (dw2_instantiate_symtab): Add skip_partial parameter.
7064 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7065 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7066 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7067 (dw2_expand_symtabs_matching_one)
7068 (dw2_find_pc_sect_compunit_symtab)
7069 (dw2_debug_names_lookup_symbol)
7070 (dw2_debug_names_expand_symtabs_for_function): Update.
7071 (init_cutu_and_read_dies): Add skip_partial parameter.
7072 (process_psymtab_comp_unit, build_type_psymtabs_1)
7073 (process_skeletonless_type_unit, load_partial_comp_unit)
7074 (psymtab_to_symtab_1): Update.
7075 (load_full_comp_unit): Add skip_partial parameter.
7076 (process_imported_unit_die, dwarf2_read_addr_index)
7077 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7078 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7079 (read_signatured_type): Update.
7080
3e618834
SM
70812018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7082
7083 * value.c (release_value): Remove unused variable.
7084 (record_latest_value): Likewise.
7085 (access_value_history): Likewise.
7086 (preserve_values): Likewise.
7087
fe10fe31
TT
70882018-05-17 Tom Tromey <tom@tromey.com>
7089
7090 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7091 Initialize.
7092
1d761124
MR
70932018-05-16 Maciej W. Rozycki <macro@mips.com>
7094
7095 PR gdb/22286
7096 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7097 Also handle registers whose width is not a multiple of
7098 PTRACE_TYPE_RET.
7099 (linux_nat_trad_target::store_register): Likewise.
7100
06333fea
TT
71012018-05-16 Tom Tromey <tom@tromey.com>
7102
7103 * gdbcore.h (core_bfd): Redefine.
7104 * corelow.c (core_target::close): Update.
7105 (core_target_open): Update.
7106 * progspace.h (struct program_space) <cbfd>: Now a
7107 gdb_bfd_ref_ptr.
7108
921222e2
TT
71092018-05-16 Tom Tromey <tom@tromey.com>
7110
7111 PR cli/19551:
7112 * symfile-add-flags.h (enum symfile_add_flags)
7113 <SYMFILE_NOT_FILENAME>: New constant.
7114 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7115 objfile name from BFD.
7116 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7117 * minidebug.c (find_separate_debug_file_in_section): Put
7118 ".gnu_debugdata" into BFD's file name.
7119
3acb7083
SM
71202018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7121
7122 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7123 Remove.
7124
561a72d4
TC
71252018-05-15 Tamar Christina <tamar.christina@arm.com>
7126
7127 PR binutils/21446
7128 * aarch64-tdep.c (aarch64_analyze_prologue,
7129 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7130 Indicate not interested in errors.
7131
4e6ff0e1
MR
71322018-05-15 Maciej W. Rozycki <macro@mips.com>
7133
7134 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7135 Supply the MIPS_ZERO_REGNUM register.
7136
ea33cd92
MR
71372018-05-15 Maciej W. Rozycki <macro@mips.com>
7138
7139 * mips-tdep.c (mask_address_var): Make variable static.
7140
2d79090e
TT
71412018-05-14 Tom Tromey <tom@tromey.com>
7142
7143 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7144
cf4912ae
AB
71452018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7146
7147 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7148 FXSAVE_ADDR for the mxcsr register.
7149
67e6f569
MF
71502018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7151
7152 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7153
15244507
PA
71542018-05-11 Pedro Alves <palves@redhat.com>
7155
7156 * corelow.c (core_target) <core_target>: No longer inline.
7157 Initialize m_core_gdbarch, m_core_vec and build the section table
7158 here.
7159 <~core_target>: New.
7160 <core_gdbarch, get_core_register_section>: New methods.
7161 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7162 factored out from ...
7163 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7164 (core_ops): Delete.
7165 (sniff_core_bfd): Add gdbarch parameter.
7166 (core_close): Delete, merged into ...
7167 (core_target::close): ... here. Delete self.
7168 (core_close_cleanup): Delete.
7169 (core_target_open): Allocate a core_target on the heap. Use a
7170 unique_ptr instead of a cleanup. Bits moved into the core_target
7171 ctor. Adjust to use core_target methods instead of globals.
7172 (get_core_register_section): Rename to ...
7173 (core_target::get_core_register_section): ... this and adjust.
7174 (struct get_core_registers_cb_data): New.
7175 (get_core_registers_cb): Use it. Use bool.
7176 (core_target::fetch_registers, core_target::files_info)
7177 (core_target::xfer_partial, core_target::read_description)
7178 (core_target::pid_to, core_target::thread_name): Adjust to
7179 reference class fields instead of globals.
7180 * target.h (struct target_ops_deleter, target_ops_up): New.
7181
451953fa
PA
71822018-05-11 Pedro Alves <palves@redhat.com>
7183
7184 * corefile.c (core_file_command): Move to corelow.c.
7185 * corelow.c (the_core_target): Delete.
7186 (core_file_command): Moved from corefile.c. Check exec_bfd
7187 instead of the_core_target. Use target_detach instead of calling
7188 into the_core_target directly.
7189 (maybe_say_no_core_file_now): New.
7190 (core_target::detach): Use it.
7191 (_initialize_corelow): Remove references to the_core_target.
7192 * gdbcore.h (the_core_target): Delete.
7193
e540a5a2 71942018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 7195 Pedro Alves <palves@redhat.com>
e540a5a2
TT
7196
7197 * corefile.c (core_bfd): Remove.
7198 * gdbcore.h (core_bfd): Now a macro.
7199 * progspace.h (struct program_space) <cbfd>: New field.
7200
633cf254
TT
72012018-05-11 Tom Tromey <tom@tromey.com>
7202
7203 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7204 gdb::def_vector.
7205
1a34f210
TT
72062018-05-10 Tom Tromey <tom@tromey.com>
7207
7208 * configure: Rebuild.
7209 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7210
190852c8
JB
72112018-05-10 Joel Brobecker <brobecker@adacore.com>
7212
7213 PR server/23158:
7214 * regformats/regdat.sh: Adjust script, following the addition
7215 of the new expedite_regs parameter to init_target_desc.
7216
8727de56
OJ
72172018-05-10 Omair Javaid <omair.javaid@linaro.org>
7218
7219 PR gdb/23127
7220 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7221 set_gdbarch_significant_addr_bit.
7222 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7223 set_gdbarch_significant_addr_bit.
7224 * utils.c (address_significant): Update to sign extend addr.
7225
37d9e062
MF
72262018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7227
7228 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7229 (xtensa_linux_init_abi): Limit tdep->num_regs by
7230 tdep->num_nopriv_regs.
7231 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7232 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7233 not initialized.
7234
7402fbca
SM
72352018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7236
7237 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7238
8ee22052
AB
72392018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7240
7241 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7242 (I387_MXCSR_INIT_VAL): New constant.
7243 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7244 buffer if it was supplied by the inferior.
7245 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7246 (i387_xsave_get_clear_bv): New function.
7247 (i387_supply_xsave): Only read x87 control registers from the
7248 xsave buffer if the feature is enabled, and the state will have
7249 been written, otherwise, provide a suitable default.
7250 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7251 including x87 control registers. Update control registers if they
7252 have changed from the default value, and mark features as enabled
7253 as required.
7254 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7255
968ae51b
UW
72562018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7257
7258 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7259
aff689d3
TT
72602018-05-07 Tom Tromey <tom@tromey.com>
7261
7262 * configure: Rebuild.
7263 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7264
ce887586
TT
72652018-05-07 Tom Tromey <tom@tromey.com>
7266
7267 PR tdep/20362:
7268 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7269 bit. Use correct value for VDIV.
7270
85e26832
TT
72712018-05-04 Tom Tromey <tom@tromey.com>
7272
7273 * configure: Rebuild.
7274 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7275
449b1ac7
TT
72762018-05-04 Tom Tromey <tom@tromey.com>
7277
7278 * linux-record.c (record_linux_system_call) <case
7279 RECORD_SYS_RECVFROM>: Add "break".
7280
15c9ffd6
TT
72812018-05-04 Tom Tromey <tom@tromey.com>
7282
7283 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7284 Add missing "break".
7285 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7286 Add missing "break".
7287
e3829d13
TT
72882018-05-04 Tom Tromey <tom@tromey.com>
7289
7290 * rs6000-tdep.c (ppc_process_record_op4)
7291 (ppc_process_record_op63): Add fall-through comment.
7292
da0e1563
TT
72932018-05-04 Tom Tromey <tom@tromey.com>
7294
7295 * i386-tdep.c (i386_process_record): Add fall-through comment.
7296
0019cd49
TT
72972018-05-04 Tom Tromey <tom@tromey.com>
7298
7299 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7300 comment.
7301
565e0eda
TT
73022018-05-04 Tom Tromey <tom@tromey.com>
7303
7304 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7305 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7306 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7307 comment.
7308 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7309 comment.
7310 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7311 comment.
7312
621846f4
TT
73132018-05-04 Tom Tromey <tom@tromey.com>
7314
7315 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7316
86a73007
TT
73172018-05-04 Tom Tromey <tom@tromey.com>
7318
7319 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7320 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7321 * symfile.c (section_is_mapped): Fix fall-through comment.
7322 * stabsread.c (define_symbol, read_member_functions): Fix
7323 fall-through comment.
7324 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7325 comment.
7326 * remote.c (remote_wait_as): Fix fall-through comment.
7327 * p-exp.y (yylex): Fix fall-through comment.
7328 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7329 comment.
7330 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7331 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7332 * jv-exp.y (yylex): Fix fall-through comment.
7333 * go-exp.y (lex_one_token): Fix fall-through comment.
7334 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7335 fall-through comment.
7336 * f-exp.y (yylex): Fix fall-through comment.
7337 * dwarf2read.c (process_die): Fix fall-through comments.
7338 * dbxread.c (process_one_symbol): Fix fall-through comment.
7339 * d-exp.y (lex_one_token): Fix fall-through comment.
7340 * cp-name-parser.y (yylex): Fix fall-through comment.
7341 * coffread.c (coff_symtab_read): Fix fall-through comment.
7342 * c-exp.y (lex_one_token): Fix fall-through comment.
7343 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7344 comment.
7345 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7346 comment.
7347
56bcdbea
TT
73482018-05-04 Tom Tromey <tom@tromey.com>
7349
7350 PR python/22730:
7351 * NEWS: Mention gdb.execute change.
7352 * gdbcmd.h (execute_control_command): Don't declare.
7353 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7354 execute_control_commands, execute_control_commands_to_string.
7355 * cli/cli-script.h (execute_control_commands)
7356 (execute_control_commands_to_string): Declare.
7357 (execute_control_command): Add from_tty parameter.
7358 * cli/cli-script.c (execute_control_commands)
7359 (execute_control_commands_to_string): New functions.
7360 (execute_user_command): Use execute_control_commands.
7361 (execute_control_command_1): Add "from_tty" parameter. Update.
7362 (execute_control_command): Likewise.
7363
a913fffb
TT
73642018-05-04 Tom Tromey <tom@tromey.com>
7365
7366 PR python/22731:
7367 * NEWS: Mention that breakpoint commands are writable.
7368 * python/py-breakpoint.c (bppy_set_commands): New function.
7369 (breakpoint_object_getset) <"commands">: Use it.
7370
60b3cef2
TT
73712018-05-04 Tom Tromey <tom@tromey.com>
7372
7373 * tracepoint.c (actions_command): Update.
7374 * mi/mi-cmd-break.c (mi_command_line_array)
7375 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7376 (mi_read_next_line): Remove.
7377 (mi_cmd_break_commands): Update.
7378 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7379 function_view.
7380 * cli/cli-script.c (get_command_line): Update.
7381 (process_next_line): Use function_view. Constify.
7382 (recurse_read_control_structure, read_command_lines)
7383 (read_command_lines_1): Change argument types to function_view.
7384 (do_define_command, document_command): Update.
7385 * breakpoint.h (check_tracepoint_command): Don't declare.
7386 * breakpoint.c (check_tracepoint_command): Remove.
7387 (commands_command_1, create_tracepoint_from_upload): Update.
7388
7a2c85f2
TT
73892018-05-04 Tom Tromey <tom@tromey.com>
7390
7391 PR gdb/11750:
7392 * cli/cli-script.h (enum command_control_type) <define_control>:
7393 New constant.
7394 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7395 (build_command_line, execute_control_command_1)
7396 (process_next_line): Likewise.
7397 (do_define_command): New function, extracted from define_command.
7398 (define_command): Use it.
7399
295dc222
TT
74002018-05-04 Tom Tromey <tom@tromey.com>
7401
7402 * tracepoint.c (actions_command): Update.
7403 * cli/cli-script.h (read_command_lines): Update.
7404 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7405 (MAX_TMPBUF): Remove define.
7406 (define_command): Use string_printf.
7407 (document_command): Likewise.
7408 * breakpoint.c (commands_command_1): Update.
7409
1263a9d5
TT
74102018-05-04 Tom Tromey <tom@tromey.com>
7411
7412 * top.c (execute_command): Update.
7413 * cli/cli-script.h (print_command_lines): Now varargs.
7414 * cli/cli-script.c (print_command_lines): Now varargs.
7415 (execute_control_command_1) <case while_control, case if_control>:
7416 Update.
7417
12973681
TT
74182018-05-04 Tom Tromey <tom@tromey.com>
7419
7420 * tracepoint.c (all_tracepoint_actions): Rename from
7421 all_tracepoint_actions_and_cleanup. Change return type.
7422 (actions_command, encode_actions_1, encode_actions)
7423 (trace_dump_actions, tdump_command): Update.
7424 * remote.c (remote_download_command_source): Update.
7425 * python/python.c (gdbpy_eval_from_control_command)
7426 (python_command, python_interactive_command): Update.
7427 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7428 * guile/guile.c (guile_command)
7429 (gdbscm_eval_from_control_command, guile_command): Update.
7430 * compile/compile.c (compile_code_command)
7431 (compile_print_command, compile_to_object): Update.
7432 * cli/cli-script.h (struct command_lines_deleter): New.
7433 (counted_command_line): New typedef.
7434 (struct command_line): Add constructor, destructor.
7435 <body_list>: Remove.
7436 <body_list_0, body_list_1>: New members.
7437 (command_line_up): Remove typedef.
7438 (read_command_lines, read_command_lines_1, get_command_line):
7439 Update.
7440 (copy_command_lines): Don't declare.
7441 * cli/cli-script.c (build_command_line): Use "new".
7442 (get_command_line): Return counted_command_line.
7443 (print_command_lines, execute_user_command)
7444 (execute_control_command_1, while_command, if_command): Update.
7445 (realloc_body_list): Remove.
7446 (process_next_line, recurse_read_control_structure): Update.
7447 (read_command_lines, read_command_lines_1): Return counted_command_line.
7448 (free_command_lines): Use "delete".
7449 (copy_command_lines): Remove.
7450 (define_command, document_command, show_user_1): Update.
7451 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7452 a counted_command_line.
7453 * breakpoint.h (counted_command_line): Remove typedef.
7454 (breakpoint_set_commands): Update.
7455 * breakpoint.c (check_no_tracepoint_commands)
7456 (validate_commands_for_breakpoint): Update.
7457 (breakpoint_set_commands): Change commands to be a
7458 counted_command_line.
7459 (commands_command_1, update_dprintf_command_list)
7460 (create_tracepoint_from_upload): Update.
7461
e2fc72e2
TT
74622018-05-04 Tom Tromey <tom@tromey.com>
7463
7464 * cli/cli-decode.h (cmd_list_element): New constructor.
7465 (~cmd_list_element): New destructor.
7466 (struct cmd_list_element): Add initializers.
7467 * cli/cli-decode.c (do_add_cmd): Use "new".
7468 (delete_cmd): Use "delete".
7469
a3b60e45
JK
74702018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7471 Pedro Alves <palves@redhat.com>
7472
7473 PR breakpoints/19806 and support for PR external/20207.
7474 * NEWS: Mention Aarch64 watchpoint improvements.
7475 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7476 watchpoints and PR external/20207 watchpoints.
7477 * nat/aarch64-linux-hw-point.c
7478 (kernel_supports_any_contiguous_range): New.
7479 (aarch64_watchpoint_offset): New.
7480 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7481 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7482 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7483 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7484 next_addr_orig_p. Support PR external/20207 watchpoints.
7485 (aarch64_downgrade_regs): New.
7486 (aarch64_dr_state_insert_one_point): New parameters offset and
7487 addr_orig.
7488 (aarch64_dr_state_remove_one_point): Likewise.
7489 (aarch64_handle_breakpoint): Update caller.
7490 (aarch64_handle_aligned_watchpoint): Likewise.
7491 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7492 aligned_offset.
7493 (aarch64_linux_set_debug_regs): Remove const from state. Call
7494 aarch64_downgrade_regs.
7495 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7496 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7497 (DR_CONTROL_MASK): ... this.
7498 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7499 (unsigned int aarch64_watchpoint_offset): New prototype.
7500 (aarch64_linux_set_debug_regs): Remove const from state.
7501 * utils.c (align_up, align_down): Move to ...
7502 * common/common-utils.c (align_up, align_down): ... here.
7503 * utils.h (align_up, align_down): Move to ...
7504 * common/common-utils.h (align_up, align_down): ... here.
7505
05bc7456
JB
75062018-05-04 Joel Brobecker <brobecker@adacore.com>
7507
7508 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7509 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7510 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7511 Re-implement to match the ABI as summarized in GCC's
7512 gcc/config/sparc/sparc.c. All callers updated.
7513 (sparc32_store_arguments): Remove assertion.
7514
2f433492
TT
75152018-05-04 Tom Tromey <tom@tromey.com>
7516
7517 * printcmd.c: Don't include tui.h.
7518 (decode_format): Use skip_spaces.
7519
9be2ae8f
TT
75202018-05-04 Tom Tromey <tom@tromey.com>
7521
7522 PR gdb/22619:
7523 * printcmd.c (last_count): New global.
7524 (x_command): Use saved count when repeating.
7525
f0b3976b
TT
75262018-05-04 Tom Tromey <tom@tromey.com>
7527
7528 * nto-procfs.c (do_closedir_cleanup): Remove.
7529 (procfs_pidlist): Use gdb_dir_up.
7530 * procfs.c (do_closedir_cleanup): Remove.
7531 (proc_update_threads): Use gdb_dir_up.
7532 * common/filestuff.h (struct gdb_dir_deleter): New.
7533 (gdb_dir_up): New typedef.
7534
862d101a
TT
75352018-05-04 Tom Tromey <tom@tromey.com>
7536
7537 * ada-lang.c (print_mention_exception): Use std::string.
7538
cb7de75e
TT
75392018-05-04 Tom Tromey <tom@tromey.com>
7540
7541 * ada-lang.c (create_excep_cond_exprs): Update.
7542 (ada_exception_catchpoint_cond_string): Use std::string.
7543
49d83361
TT
75442018-05-04 Tom Tromey <tom@tromey.com>
7545
7546 * ada-lang.c (xget_renaming_scope): Return std::string.
7547 (old_renaming_is_invisible): Update.
7548
ade72a34
TT
75492018-05-04 Tom Tromey <tom@tromey.com>
7550
7551 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7552 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7553
2be4d7f0
UW
75542018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7555
7556 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7557
69b6ecb0
TT
75582018-05-04 Tom Tromey <tom@tromey.com>
7559
7560 * remote.c (remote_query_supported_append): Change type.
7561 (remote_check_symbols): Update.
7562
bf27f0e2
PP
75632018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7564
7565 PR gdb/11420
7566 * configure.ac: Prepend libpython.
7567 * python/python-config.py: Likewise.
7568 * configure: Regenerate.
7569
4ea17de8
SM
75702018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7571
7572 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7573
bd732259
PA
75742018-05-03 Pedro Alves <palves@redhat.com>
7575
7576 * s390-linux-nat.c
7577 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7578 override. Write 'true' instead of '1'.
7579 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7580 declaration.
7581
d9f719f1
PA
75822018-05-02 Pedro Alves <palves@redhat.com>
7583
7584 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7585 add_inf_child_target.
7586 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7587 add_inf_child_target.
7588 * aix-thread.c (aix_thread_target_info): New.
7589 (aix_thread_target) <shortname, longname, doc>: Delete.
7590 <info>: New.
7591 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7592 add_inf_child_target.
7593 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7594 add_inf_child_target.
7595 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7596 add_inf_child_target.
7597 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7598 add_inf_child_target.
7599 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7600 add_inf_child_target.
7601 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7602 add_inf_child_target.
7603 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7604 add_inf_child_target.
7605 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7606 add_inf_child_target.
7607 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7608 add_inf_child_target.
7609 * bfd-target.c (target_bfd_target_info): New.
7610 (target_bfd) <shortname, longname, doc>: Delete.
7611 <info>: New.
7612 * bsd-kvm.c (bsd_kvm_target_info): New.
7613 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7614 <info>: New.
7615 (bsd_kvm_target::open): Rename to ...
7616 (bsd_kvm_target_open): ... this. Adjust.
7617 * bsd-uthread.c (bsd_uthread_target_info): New.
7618 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7619 <info>: New.
7620 * corefile.c (core_file_command): Adjust.
7621 * corelow.c (core_target_info): New.
7622 (core_target) <shortname, longname, doc>: Delete.
7623 <info>: New.
7624 (core_target::open): Rename to ...
7625 (core_target_open): ... this. Adjust.
7626 * ctf.c (ctf_target_info): New.
7627 (ctf_target) <shortname, longname, doc>: Delete.
7628 <info>: New.
7629 (ctf_target::open): Rename to ...
7630 (ctf_target_open): ... this.
7631 (_initialize_ctf): Adjust.
7632 * exec.c (exec_target_info): New.
7633 (exec_target) <shortname, longname, doc>: Delete.
7634 <info>: New.
7635 (exec_target::open): Rename to ...
7636 (exec_target_open): ... this.
7637 * gdbcore.h (core_target_open): Declare.
7638 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7639 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7640 add_inf_child_target.
7641 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7642 add_inf_child_target.
7643 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7644 add_inf_child_target.
7645 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7646 add_inf_child_target.
7647 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7648 add_inf_child_target.
7649 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7650 add_inf_child_target.
7651 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7652 add_inf_child_target.
7653 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7654 add_inf_child_target.
7655 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7656 add_inf_child_target.
7657 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7658 add_inf_child_target.
7659 * inf-child.c (inf_child_target_info): New.
7660 (inf_child_target::info): New.
7661 (inf_child_open_target): Remove 'target' parameter. Use
7662 get_native_target instead.
7663 (inf_child_target::open): Delete.
7664 (add_inf_child_target): New.
7665 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7666 Delete.
7667 <info>: New.
7668 (add_inf_child_target): Declare.
7669 (inf_child_open_target): Declare.
7670 * linux-thread-db.c (thread_db_target_info): New.
7671 (thread_db_target) <shortname, longname, doc>: Delete.
7672 <info>: New.
7673 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7674 add_inf_child_target.
7675 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7676 add_inf_child_target.
7677 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7678 add_inf_child_target.
7679 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7680 add_inf_child_target.
7681 * make-target-delegates (print_class): Adjust.
7682 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7683 add_inf_child_target.
7684 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7685 add_inf_child_target.
7686 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7687 add_inf_child_target.
7688 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7689 add_inf_child_target.
7690 * nto-procfs.c (nto_native_target_info): New.
7691 (nto_procfs_target_native) <shortname, longname, doc>:
7692 Delete.
7693 <info>: New.
7694 (nto_procfs_target_info): New.
7695 (nto_procfs_target_procfs) <shortname, longname, doc>:
7696 Delete.
7697 <info>: New.
7698 (init_procfs_targets): Adjust.
7699 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7700 add_inf_child_target.
7701 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7702 add_inf_child_target.
7703 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7704 add_inf_child_target.
7705 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7706 add_inf_child_target.
7707 * ravenscar-thread.c (ravenscar_target_info): New.
7708 (ravenscar_thread_target) <shortname, longname, doc>:
7709 Delete.
7710 <info>: New.
7711 * record-btrace.c (record_btrace_target_info):
7712 (record_btrace_target) <shortname, longname, doc>: Delete.
7713 <info>: New.
7714 (record_btrace_target::open): Rename to ...
7715 (record_btrace_target_open): ... this. Adjust.
7716 * record-full.c (record_longname, record_doc): New.
7717 (record_full_base_target) <shortname, longname, doc>: Delete.
7718 <info>: New.
7719 (record_full_target_info): New.
7720 (record_full_target): <shortname>: Delete.
7721 <info>: New.
7722 (record_full_core_open_1, record_full_open_1): Update comments.
7723 (record_full_base_target::open): Rename to ...
7724 (record_full_open): ... this.
7725 (cmd_record_full_restore): Update.
7726 (_initialize_record_full): Update.
7727 * remote-sim.c (remote_sim_target_info): New.
7728 (gdbsim_target) <shortname, longname, doc>: Delete.
7729 <info>: New.
7730 (gdbsim_target::open): Rename to ...
7731 (gdbsim_target_open): ... this.
7732 (_initialize_remote_sim): Adjust.
7733 * remote.c (remote_doc): New.
7734 (remote_target_info): New.
7735 (remote_target) <shortname, longname, doc>: Delete.
7736 <info>: New.
7737 (extended_remote_target_info): New.
7738 (extended_remote_target) <shortname, longname, doc>: Delete.
7739 <info>: New.
7740 (remote_target::open_1): Make static. Adjust.
7741 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7742 * s390-linux-nat.c (_initialize_s390_nat): Use
7743 add_inf_child_target.
7744 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7745 add_inf_child_target.
7746 * sol-thread.c (thread_db_target_info): New.
7747 (sol_thread_target) <shortname, longname, doc>: Delete.
7748 <info>: New.
7749 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7750 add_inf_child_target.
7751 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7752 add_inf_child_target.
7753 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7754 add_inf_child_target.
7755 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7756 add_inf_child_target.
7757 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7758 add_inf_child_target.
7759 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7760 add_inf_child_target.
7761 * spu-linux-nat.c (_initialize_spu_nat): Use
7762 add_inf_child_target.
7763 * spu-multiarch.c (spu_multiarch_target_info): New.
7764 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7765 <info>: New.
7766 * target-delegates.c: Regenerate.
7767 * target.c: Include <unordered_map>.
7768 (target_ops_p): Delete.
7769 (DEF_VEC_P(target_ops_p)): Delete.
7770 (target_factories): New.
7771 (test_target_info): New.
7772 (test_target_ops::info): New.
7773 (open_target): Adjust to use target_factories.
7774 (add_target_with_completer): Rename to ...
7775 (add_target): ... this. Change prototype. Register target_info
7776 and open callback in target_factories. Register target_info in
7777 command context instead of target_ops.
7778 (add_target): Delete old implementation.
7779 (add_deprecated_target_alias): Change prototype. Adjust.
7780 (the_native_target): New.
7781 (set_native_target, get_native_target): New.
7782 (find_default_run_target): Use the_native_target.
7783 (find_attach_target, find_run_target): Simplify.
7784 (target_ops::open): Delete.
7785 (dummy_target_info): New.
7786 (dummy_target::shortname, dummy_target::longname)
7787 (dummy_target::doc): Delete.
7788 (dummy_target::info): New.
7789 (debug_target::shortname, debug_target::longname)
7790 (debug_target::doc): Delete.
7791 (debug_target::info): New.
7792 * target.h (struct target_info): New.
7793 (target_ops::~target_ops): Add comment.
7794 (target_ops::info): New.
7795 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7796 longer virtual. Implement in terms of target_info.
7797 (set_native_target, get_native_target): Declare.
7798 (target_open_ftype): New.
7799 (add_target, add_target_with_completer)
7800 (add_deprecated_target_alias): Change prototype.
7801 (test_target) <shortname, longname, doc>: Delete.
7802 <info>: New.
7803 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7804 add_inf_child_target.
7805 * tracefile-tfile.c (tfile_target_info): New.
7806 (tfile_target) <shortname, longname, doc>: Delete.
7807 <info>: New.
7808 (tfile_target::open): Rename to ...
7809 (tfile_target_open): ... this.
7810 (_initialize_tracefile_tfile): Adjust.
7811 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7812 add_inf_child_target.
7813 * windows-nat.c (_initialize_windows_nat): Use
7814 add_inf_child_target.
7815 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7816 add_inf_child_target.
7817
135340af
PA
78182018-05-02 Pedro Alves <palves@redhat.com>
7819
7820 * linux-nat.h (linux_nat_target) <low_new_thread,
7821 low_delete_thread, low_new_fork, low_forget_process,
7822 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7823 New virtual methods.
7824 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7825 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7826 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7827 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7828 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7829 Delete.
7830 * linux-fork.c (delete_fork): Adjust to call low method.
7831 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7832 (linux_nat_new_fork, linux_nat_forget_process_hook)
7833 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7834 (linux_nat_status_is_event):
7835 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7836 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7837 to call low method.
7838 (sigtrap_is_event): Rename to ...
7839 (linux_nat_target::low_status_is_event): ... this.
7840 (linux_nat_set_status_is_event): Delete.
7841 (save_stop_reason, linux_nat_wait_1)
7842 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7843 low methods.
7844 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7845 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7846 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7847 (linux_nat_set_prepare_to_resume): Delete.
7848 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7849 low virtual methods.
7850 * amd64-linux-nat.c: Likewise.
7851 * arm-linux-nat.c: Likewise.
7852 * i386-linux-nat.c: Likewise.
7853 * ia64-linux-nat.c: Likewise.
7854 * mips-linux-nat.c: Likewise.
7855 * ppc-linux-nat.c: Likewise.
7856 * s390-linux-nat.c: Likewise.
7857 * sparc64-linux-nat.c: Likewise.
7858 * x86-linux-nat.c: Likewise.
7859 * x86-linux-nat.h: Include "nat/x86-linux.h".
7860 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7861 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7862 Override methods.
7863
57810aa7
PA
78642018-05-02 Pedro Alves <palves@redhat.com>
7865
7866 * target.h (target_ops)
7867 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7868 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7869 stopped_by_watchpoint, have_continuable_watchpoint,
7870 stopped_data_address, watchpoint_addr_within_range,
7871 can_accel_watchpoint_condition, can_run, thread_alive,
7872 has_all_memory, has_memory, has_stack, has_registers,
7873 has_execution, can_async_p, is_async_p, supports_non_stop,
7874 always_non_stop_p, can_execute_reverse, supports_multi_process,
7875 supports_enable_disable_tracepoint,
7876 supports_disable_randomization, supports_string_tracing,
7877 supports_evaluation_of_breakpoint_conditions,
7878 can_run_breakpoint_commands, filesystem_is_local,
7879 can_download_tracepoint, get_trace_state_variable_value,
7880 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7881 record_is_replaying, record_will_replay,
7882 augmented_libraries_svr4_read>: Adjust to return bool.
7883 * aarch64-linux-nat.c: All implementations adjusted.
7884 * aix-thread.c: All implementations adjusted.
7885 * arm-linux-nat.c: All implementations adjusted.
7886 * breakpoint.c: All implementations adjusted.
7887 * bsd-kvm.c: All implementations adjusted.
7888 * bsd-uthread.c: All implementations adjusted.
7889 * corelow.c: All implementations adjusted.
7890 * ctf.c: All implementations adjusted.
7891 * darwin-nat.c: All implementations adjusted.
7892 * darwin-nat.h: All implementations adjusted.
7893 * exec.c: All implementations adjusted.
7894 * fbsd-nat.c: All implementations adjusted.
7895 * fbsd-nat.h: All implementations adjusted.
7896 * gnu-nat.c: All implementations adjusted.
7897 * gnu-nat.h: All implementations adjusted.
7898 * go32-nat.c: All implementations adjusted.
7899 * ia64-linux-nat.c: All implementations adjusted.
7900 * inf-child.c: All implementations adjusted.
7901 * inf-child.h: All implementations adjusted.
7902 * inf-ptrace.c: All implementations adjusted.
7903 * inf-ptrace.h: All implementations adjusted.
7904 * linux-nat.c: All implementations adjusted.
7905 * linux-nat.h: All implementations adjusted.
7906 * mips-linux-nat.c: All implementations adjusted.
7907 * nto-procfs.c: All implementations adjusted.
7908 * ppc-linux-nat.c: All implementations adjusted.
7909 * procfs.c: All implementations adjusted.
7910 * ravenscar-thread.c: All implementations adjusted.
7911 * record-btrace.c: All implementations adjusted.
7912 * record-full.c: All implementations adjusted.
7913 * remote-sim.c: All implementations adjusted.
7914 * remote.c: All implementations adjusted.
7915 * s390-linux-nat.c: All implementations adjusted.
7916 * sol-thread.c: All implementations adjusted.
7917 * spu-multiarch.c: All implementations adjusted.
7918 * target-delegates.c: All implementations adjusted.
7919 * target.c: All implementations adjusted.
7920 * target.h: All implementations adjusted.
7921 * tracefile-tfile.c: All implementations adjusted.
7922 * tracefile.c: All implementations adjusted.
7923 * tracefile.h: All implementations adjusted.
7924 * windows-nat.c: All implementations adjusted.
7925 * x86-linux-nat.h: All implementations adjusted.
7926 * x86-nat.h: All implementations adjusted.
7927
ad6a4e2d
PA
79282018-05-02 Pedro Alves <palves@redhat.com>
7929
7930 * make-target-delegates (scan_target_h): Don't trim lines here.
7931 Replace sequences of tabs and/or whitespace with a single
7932 whitespace.
7933 (top level, parsing methods): Trim each line before processing it
7934 here.
7935
f6ac5f3d
PA
79362018-05-02 Pedro Alves <palves@redhat.com>
7937 John Baldwin <jhb@freebsd.org>
7938
7939 * target.h (enum strata) <debug_stratum>: New.
7940 (struct target_ops) <all delegation methods>: Replace by C++
7941 virtual methods, and drop "to_" prefix. All references updated
7942 throughout.
7943 <to_shortname, to_longname, to_doc, to_data,
7944 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7945 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7946 virtual methods. All references updated throughout.
7947 <can_attach, supports_terminal_ours, can_create_inferior,
7948 get_thread_control_capabilities, attach_no_wait>: New
7949 virtual methods.
7950 <insert_breakpoint, remove_breakpoint>: Now
7951 TARGET_DEFAULT_NORETURN methods.
7952 <info_proc>: Now returns bool.
7953 <to_magic>: Delete.
7954 (OPS_MAGIC): Delete.
7955 (current_target): Delete. All references replaced by references
7956 to ...
7957 (target_stack): ... this. New.
7958 (target_shortname, target_longname): Adjust.
7959 (target_can_run): Now a function declaration.
7960 (default_child_has_all_memory, default_child_has_memory)
7961 (default_child_has_stack, default_child_has_registers)
7962 (default_child_has_execution): Remove target_ops parameter.
7963 (complete_target_initialization): Delete.
7964 (memory_breakpoint_target): New template class.
7965 (test_target_ops): Refactor as a C++ class with virtual methods.
7966 * make-target-delegates (NAME_PART): Tighten.
7967 (POINTER_PART, CP_SYMBOL): New.
7968 (SIMPLE_RETURN_PART): Reimplement.
7969 (VEC_RETURN_PART): Expect less.
7970 (RETURN_PART, VIRTUAL_PART): New.
7971 (METHOD): Adjust to C++ virtual methods.
7972 (scan_target_h): Remove reference to C99.
7973 (dname): Output "target_ops::" prefix.
7974 (write_function_header): Adjust to output a C++ class method.
7975 (write_declaration): New.
7976 (write_delegator): Adjust to output a C++ class method.
7977 (tdname): Output "dummy_target::" prefix.
7978 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7979 method.
7980 (tdefault_names, debug_names): Delete.
7981 (return_types, tdefaults, styles, argtypes_array): New.
7982 (top level): All methods are delegators.
7983 (print_class): New.
7984 (top level): Print dummy_target and debug_target classes.
7985 * target-delegates.c: Regenerate.
7986 * target-debug.h (target_debug_print_enum_info_proc_what)
7987 (target_debug_print_thread_control_capabilities)
7988 (target_debug_print_thread_info_p): New.
7989 * target.c (dummy_target): Delete.
7990 (the_dummy_target, the_debug_target): New.
7991 (target_stack): Now extern.
7992 (set_targetdebug): Push/unpush debug target.
7993 (default_child_has_all_memory, default_child_has_memory)
7994 (default_child_has_stack, default_child_has_registers)
7995 (default_child_has_execution): Remove target_ops parameter.
7996 (complete_target_initialization): Delete.
7997 (add_target_with_completer): No longer call
7998 complete_target_initialization.
7999 (target_supports_terminal_ours): Use regular delegation.
8000 (update_current_target): Delete.
8001 (push_target): No longer check magic number. Don't call
8002 update_current_target.
8003 (unpush_target): Don't call update_current_target.
8004 (target_is_pushed): No longer check magic number.
8005 (target_require_runnable): Skip for all stratums over
8006 process_stratum.
8007 (target_ops::info_proc): New.
8008 (target_info_proc): Use find_target_at and
8009 find_default_run_target.
8010 (target_supports_disable_randomization): Use regular delegation.
8011 (target_get_osdata): Use find_target_at.
8012 (target_ops::open, target_ops::close, target_ops::can_attach)
8013 (target_ops::attach, target_ops::can_create_inferior)
8014 (target_ops::create_inferior, target_ops::can_run)
8015 (target_can_run): New.
8016 (default_fileio_target): Use regular delegation.
8017 (target_ops::fileio_open, target_ops::fileio_pwrite)
8018 (target_ops::fileio_pread, target_ops::fileio_fstat)
8019 (target_ops::fileio_close, target_ops::fileio_unlink)
8020 (target_ops::fileio_readlink): New.
8021 (target_fileio_open_1, target_fileio_unlink)
8022 (target_fileio_readlink): Always call the target method. Handle
8023 FILEIO_ENOSYS.
8024 (return_zero, return_zero_has_execution): Delete.
8025 (init_dummy_target): Delete.
8026 (dummy_target::dummy_target, dummy_target::shortname)
8027 (dummy_target::longname, dummy_target::doc)
8028 (debug_target::debug_target, debug_target::shortname)
8029 (debug_target::longname, debug_target::doc): New.
8030 (target_supports_delete_record): Use regular delegation.
8031 (setup_target_debug): Delete.
8032 (maintenance_print_target_stack): Skip debug_stratum.
8033 (initialize_targets): Instantiate the_dummy_target and
8034 the_debug_target.
8035 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8036 use target_stack.
8037 (target_auxv_search, fprint_target_auxv): Adjust.
8038 (info_auxv_command): Adjust to use target_stack.
8039 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8040 * exceptions.c (print_flush): Handle a NULL target_stack.
8041 * regcache.c (target_ops_no_register): Refactor as class with
8042 virtual methods.
8043
8044 * exec.c (exec_target): New class.
8045 (exec_ops): Now an exec_target.
8046 (exec_open, exec_close_1, exec_get_section_table)
8047 (exec_xfer_partial, exec_files_info, exec_has_memory)
8048 (exec_make_note_section): Refactor as exec_target methods.
8049 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8050 Delete.
8051 (exec_target::find_memory_regions): New.
8052 (_initialize_exec): Don't call init_exec_ops.
8053 * gdbcore.h (exec_file_clear): Delete.
8054
8055 * corefile.c (core_target): Delete.
8056 (core_file_command): Adjust.
8057 * corelow.c (core_target): New class.
8058 (the_core_target): New.
8059 (core_close): Remove target_ops parameter.
8060 (core_close_cleanup): Adjust.
8061 (core_target::close): New.
8062 (core_open, core_detach, get_core_registers, core_files_info)
8063 (core_xfer_partial, core_thread_alive, core_read_description)
8064 (core_pid_to_str, core_thread_name, core_has_memory)
8065 (core_has_stack, core_has_registers, core_info_proc): Rework as
8066 core_target methods.
8067 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8068 (_initialize_corelow): Initialize the_core_target.
8069 * gdbcore.h (core_target): Delete.
8070 (the_core_target): New.
8071
8072 * ctf.c: (ctf_target): New class.
8073 (ctf_ops): Now a ctf_target.
8074 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8075 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8076 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8077 methods.
8078 (init_ctf_ops): Delete.
8079 (_initialize_ctf): Don't call it.
8080 * tracefile-tfile.c (tfile_target): New class.
8081 (tfile_ops): Now a tfile_target.
8082 (tfile_open, tfile_close, tfile_files_info)
8083 (tfile_get_tracepoint_status, tfile_trace_find)
8084 (tfile_fetch_registers, tfile_xfer_partial)
8085 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8086 Refactor as tfile_target methods.
8087 (tfile_xfer_partial_features): Remove target_ops parameter.
8088 (init_tfile_ops): Delete.
8089 (_initialize_tracefile_tfile): Don't call it.
8090 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8091 (tracefile_has_stack, tracefile_has_registers)
8092 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8093 tracefile_target methods.
8094 (init_tracefile_ops): Delete.
8095 (tracefile_target::tracefile_target): New.
8096 * tracefile.h: Include "target.h".
8097 (tracefile_target): New class.
8098 (init_tracefile_ops): Delete.
8099
8100 * spu-multiarch.c (spu_multiarch_target): New class.
8101 (spu_ops): Now a spu_multiarch_target.
8102 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8103 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8104 (spu_search_memory, spu_mourn_inferior): Refactor as
8105 spu_multiarch_target methods.
8106 (init_spu_ops): Delete.
8107 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8108 complete_target_initialization.
8109
8110 * ravenscar-thread.c (ravenscar_thread_target): New class.
8111 (ravenscar_ops): Now a ravenscar_thread_target.
8112 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8113 (ravenscar_thread_alive, ravenscar_pid_to_str)
8114 (ravenscar_fetch_registers, ravenscar_store_registers)
8115 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8116 (ravenscar_stopped_by_hw_breakpoint)
8117 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8118 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8119 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8120 methods.
8121 (init_ravenscar_thread_ops): Delete.
8122 (_initialize_ravenscar): Remove references to
8123 init_ravenscar_thread_ops and complete_target_initialization.
8124
8125 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8126 (bsd_uthread_target): New class.
8127 (bsd_uthread_ops): Now a bsd_uthread_target.
8128 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8129 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8130 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8131 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8132 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8133 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8134 (bsd_uthread_target): Delete function.
8135 (_initialize_bsd_uthread): Remove reference to
8136 complete_target_initialization.
8137
8138 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8139 (target_bfd): ... this new class.
8140 (target_bfd_xfer_partial, target_bfd_get_section_table)
8141 (target_bfd_close): Refactor as target_bfd methods.
8142 (target_bfd::~target_bfd): New.
8143 (target_bfd_reopen): Adjust.
8144 (target_bfd::close): New.
8145
8146 * record-btrace.c (record_btrace_target): New class.
8147 (record_btrace_ops): Now a record_btrace_target.
8148 (record_btrace_open, record_btrace_stop_recording)
8149 (record_btrace_disconnect, record_btrace_close)
8150 (record_btrace_async, record_btrace_info)
8151 (record_btrace_insn_history, record_btrace_insn_history_range)
8152 (record_btrace_insn_history_from, record_btrace_call_history)
8153 (record_btrace_call_history_range)
8154 (record_btrace_call_history_from, record_btrace_record_method)
8155 (record_btrace_is_replaying, record_btrace_will_replay)
8156 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8157 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8158 (record_btrace_store_registers, record_btrace_prepare_to_store)
8159 (record_btrace_to_get_unwinder)
8160 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8161 (record_btrace_commit_resume, record_btrace_wait)
8162 (record_btrace_stop, record_btrace_can_execute_reverse)
8163 (record_btrace_stopped_by_sw_breakpoint)
8164 (record_btrace_supports_stopped_by_sw_breakpoint)
8165 (record_btrace_stopped_by_hw_breakpoint)
8166 (record_btrace_supports_stopped_by_hw_breakpoint)
8167 (record_btrace_update_thread_list, record_btrace_thread_alive)
8168 (record_btrace_goto_begin, record_btrace_goto_end)
8169 (record_btrace_goto, record_btrace_stop_replaying_all)
8170 (record_btrace_execution_direction)
8171 (record_btrace_prepare_to_generate_core)
8172 (record_btrace_done_generating_core): Refactor as
8173 record_btrace_target methods.
8174 (init_record_btrace_ops): Delete.
8175 (_initialize_record_btrace): Remove reference to
8176 init_record_btrace_ops.
8177 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8178 the execution_direction global.
8179 (record_full_base_target, record_full_target)
8180 (record_full_core_target): New classes.
8181 (record_full_ops): Now a record_full_target.
8182 (record_full_core_ops): Now a record_full_core_target.
8183 (record_full_target::detach, record_full_target::disconnect)
8184 (record_full_core_target::disconnect)
8185 (record_full_target::mourn_inferior, record_full_target::kill):
8186 New.
8187 (record_full_open, record_full_close, record_full_async): Refactor
8188 as methods of the record_full_base_target class.
8189 (record_full_resume, record_full_commit_resume): Refactor
8190 as methods of the record_full_target class.
8191 (record_full_wait, record_full_stopped_by_watchpoint)
8192 (record_full_stopped_data_address)
8193 (record_full_stopped_by_sw_breakpoint)
8194 (record_full_supports_stopped_by_sw_breakpoint)
8195 (record_full_stopped_by_hw_breakpoint)
8196 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8197 methods of the record_full_base_target class.
8198 (record_full_store_registers, record_full_xfer_partial)
8199 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8200 Refactor as methods of the record_full_target class.
8201 (record_full_can_execute_reverse, record_full_get_bookmark)
8202 (record_full_goto_bookmark, record_full_execution_direction)
8203 (record_full_record_method, record_full_info, record_full_delete)
8204 (record_full_is_replaying, record_full_will_replay)
8205 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8206 (record_full_stop_replaying): Refactor as methods of the
8207 record_full_base_target class.
8208 (record_full_core_resume, record_full_core_kill)
8209 (record_full_core_fetch_registers)
8210 (record_full_core_prepare_to_store)
8211 (record_full_core_store_registers, record_full_core_xfer_partial)
8212 (record_full_core_insert_breakpoint)
8213 (record_full_core_remove_breakpoint)
8214 (record_full_core_has_execution): Refactor
8215 as methods of the record_full_core_target class.
8216 (record_full_base_target::supports_delete_record): New.
8217 (init_record_full_ops): Delete.
8218 (init_record_full_core_ops): Delete.
8219 (record_full_save): Refactor as method of the
8220 record_full_base_target class.
8221 (_initialize_record_full): Remove references to
8222 init_record_full_ops and init_record_full_core_ops.
8223
8224 * remote.c (remote_target, extended_remote_target): New classes.
8225 (remote_ops): Now a remote_target.
8226 (extended_remote_ops): Now an extended_remote_target.
8227 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8228 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8229 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8230 (remote_pass_signals, remote_set_syscall_catchpoint)
8231 (remote_program_signals, )
8232 (remote_thread_always_alive): Remove target_ops parameter.
8233 (remote_thread_alive, remote_thread_name)
8234 (remote_update_thread_list, remote_threads_extra_info)
8235 (remote_static_tracepoint_marker_at)
8236 (remote_static_tracepoint_markers_by_strid)
8237 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8238 (remote_open): Refactor as methods of remote_target.
8239 (extended_remote_open, extended_remote_detach)
8240 (extended_remote_attach, extended_remote_post_attach):
8241 (extended_remote_supports_disable_randomization)
8242 (extended_remote_create_inferior): : Refactor as method of
8243 extended_remote_target.
8244 (remote_set_permissions, remote_open_1, remote_detach)
8245 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8246 (remote_resume, remote_commit_resume, remote_stop)
8247 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8248 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8249 (remote_prepare_to_store, remote_store_registers)
8250 (remote_flash_erase, remote_flash_done, remote_files_info)
8251 (remote_kill, remote_mourn, remote_insert_breakpoint)
8252 (remote_remove_breakpoint, remote_insert_watchpoint)
8253 (remote_watchpoint_addr_within_range)
8254 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8255 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8256 (remote_supports_stopped_by_sw_breakpoint)
8257 (remote_stopped_by_hw_breakpoint)
8258 (remote_supports_stopped_by_hw_breakpoint)
8259 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8260 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8261 (remote_verify_memory): Refactor as methods of remote_target.
8262 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8263 parameter.
8264 (remote_xfer_partial, remote_get_memory_xfer_limit)
8265 (remote_search_memory, remote_rcmd, remote_memory_map)
8266 (remote_pid_to_str, remote_get_thread_local_address)
8267 (remote_get_tib_address, remote_read_description): Refactor as
8268 methods of remote_target.
8269 (remote_target::fileio_open, remote_target::fileio_pwrite)
8270 (remote_target::fileio_pread, remote_target::fileio_close): New.
8271 (remote_hostio_readlink, remote_hostio_fstat)
8272 (remote_filesystem_is_local, remote_can_execute_reverse)
8273 (remote_supports_non_stop, remote_supports_disable_randomization)
8274 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8275 (remote_supports_enable_disable_tracepoint)
8276 (remote_supports_string_tracing)
8277 (remote_can_run_breakpoint_commands, remote_trace_init)
8278 (remote_download_tracepoint, remote_can_download_tracepoint)
8279 (remote_download_trace_state_variable, remote_enable_tracepoint)
8280 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8281 (remote_trace_start, remote_get_trace_status)
8282 (remote_get_tracepoint_status, remote_trace_stop)
8283 (remote_trace_find, remote_get_trace_state_variable_value)
8284 (remote_save_trace_data, remote_get_raw_trace_data)
8285 (remote_set_disconnected_tracing, remote_core_of_thread)
8286 (remote_set_circular_trace_buffer, remote_traceframe_info)
8287 (remote_get_min_fast_tracepoint_insn_len)
8288 (remote_set_trace_buffer_size, remote_set_trace_notes)
8289 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8290 (remote_disable_btrace, remote_teardown_btrace)
8291 (remote_read_btrace, remote_btrace_conf)
8292 (remote_augmented_libraries_svr4_read, remote_load)
8293 (remote_pid_to_exec_file, remote_can_do_single_step)
8294 (remote_execution_direction, remote_thread_handle_to_thread_info):
8295 Refactor as methods of remote_target.
8296 (init_remote_ops, init_extended_remote_ops): Delete.
8297 (remote_can_async_p, remote_is_async_p, remote_async)
8298 (remote_thread_events, remote_upload_tracepoints)
8299 (remote_upload_trace_state_variables): Refactor as methods of
8300 remote_target.
8301 (_initialize_remote): Remove references to init_remote_ops and
8302 init_extended_remote_ops.
8303
8304 * remote-sim.c (gdbsim_target): New class.
8305 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8306 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8307 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8308 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8309 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8310 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8311 Refactor as methods of gdbsim_target.
8312 (gdbsim_ops): Now a gdbsim_target.
8313 (init_gdbsim_ops): Delete.
8314 (gdbsim_cntrl_c): Adjust.
8315 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8316
8317 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8318 (the_amd64_linux_nat_target): New.
8319 (amd64_linux_fetch_inferior_registers)
8320 (amd64_linux_store_inferior_registers): Refactor as methods of
8321 amd64_linux_nat_target.
8322 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8323 * i386-linux-nat.c: Don't include "linux-nat.h".
8324 (i386_linux_nat_target): New class.
8325 (the_i386_linux_nat_target): New.
8326 (i386_linux_fetch_inferior_registers)
8327 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8328 as methods of i386_linux_nat_target.
8329 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8330 * inf-child.c (inf_child_ops): Delete.
8331 (inf_child_fetch_inferior_registers)
8332 (inf_child_store_inferior_registers): Delete.
8333 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8334 methods of inf_child_target.
8335 (inf_child_target::supports_terminal_ours)
8336 (inf_child_target::terminal_init)
8337 (inf_child_target::terminal_inferior)
8338 (inf_child_target::terminal_ours_for_output)
8339 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8340 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8341 New.
8342 (inf_child_open, inf_child_disconnect, inf_child_close)
8343 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8344 (inf_child_post_startup_inferior, inf_child_can_run)
8345 (inf_child_pid_to_exec_file): Refactor as methods of
8346 inf_child_target.
8347 (inf_child_follow_fork): Delete.
8348 (inf_child_target::can_create_inferior)
8349 (inf_child_target::can_attach): New.
8350 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8351 (inf_child_target::has_stack, inf_child_target::has_registers)
8352 (inf_child_target::has_execution): New.
8353 (inf_child_fileio_open, inf_child_fileio_pwrite)
8354 (inf_child_fileio_pread, inf_child_fileio_fstat)
8355 (inf_child_fileio_close, inf_child_fileio_unlink)
8356 (inf_child_fileio_readlink, inf_child_use_agent)
8357 (inf_child_can_use_agent): Refactor as methods of
8358 inf_child_target.
8359 (return_zero, inf_child_target): Delete.
8360 (inf_child_target::inf_child_target): New.
8361 * inf-child.h: Include "target.h".
8362 (inf_child_target): Delete function prototype.
8363 (inf_child_target): New class.
8364 (inf_child_open_target, inf_child_mourn_inferior)
8365 (inf_child_maybe_unpush_target): Delete.
8366 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8367 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8368 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8369 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8370 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8371 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8372 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8373 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8374 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8375 methods of inf_ptrace_target.
8376 (inf_ptrace_target): Delete function.
8377 * inf-ptrace.h: Include "inf-child.h".
8378 (inf_ptrace_target): Delete function declaration.
8379 (inf_ptrace_target): New class.
8380 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8381 * linux-nat.c (linux_target): New.
8382 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8383 (linux_nat_target::~linux_nat_target): New.
8384 (linux_child_post_attach, linux_child_post_startup_inferior)
8385 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8386 (linux_child_remove_fork_catchpoint)
8387 (linux_child_insert_vfork_catchpoint)
8388 (linux_child_remove_vfork_catchpoint)
8389 (linux_child_insert_exec_catchpoint)
8390 (linux_child_remove_exec_catchpoint)
8391 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8392 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8393 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8394 (linux_nat_stopped_data_address)
8395 (linux_nat_stopped_by_sw_breakpoint)
8396 (linux_nat_supports_stopped_by_sw_breakpoint)
8397 (linux_nat_stopped_by_hw_breakpoint)
8398 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8399 (linux_nat_kill, linux_nat_mourn_inferior)
8400 (linux_nat_xfer_partial, linux_nat_thread_alive)
8401 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8402 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8403 (linux_child_static_tracepoint_markers_by_strid)
8404 (linux_nat_is_async_p, linux_nat_can_async_p)
8405 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8406 (linux_nat_supports_multi_process)
8407 (linux_nat_supports_disable_randomization, linux_nat_async)
8408 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8409 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8410 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8411 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8412 methods of linux_nat_target.
8413 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8414 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8415 parameter.
8416 (check_stopped_by_watchpoint): Adjust.
8417 (linux_xfer_partial): Delete.
8418 (linux_target_install_ops, linux_target, linux_nat_add_target):
8419 Delete.
8420 (linux_nat_target::linux_nat_target): New.
8421 * linux-nat.h: Include "inf-ptrace.h".
8422 (linux_nat_target): New.
8423 (linux_target, linux_target_install_ops, linux_nat_add_target):
8424 Delete function declarations.
8425 (linux_target): Declare global.
8426 * linux-thread-db.c (thread_db_target): New.
8427 (thread_db_target::thread_db_target): New.
8428 (thread_db_ops): Delete.
8429 (the_thread_db_target): New.
8430 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8431 (thread_db_update_thread_list, thread_db_pid_to_str)
8432 (thread_db_extra_thread_info)
8433 (thread_db_thread_handle_to_thread_info)
8434 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8435 (thread_db_resume): Refactor as methods of thread_db_target.
8436 (init_thread_db_ops): Delete.
8437 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8438 * x86-linux-nat.c: Don't include "linux-nat.h".
8439 (super_post_startup_inferior): Delete.
8440 (x86_linux_nat_target::~x86_linux_nat_target): New.
8441 (x86_linux_child_post_startup_inferior)
8442 (x86_linux_read_description, x86_linux_enable_btrace)
8443 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8444 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8445 methods of x86_linux_nat_target.
8446 (x86_linux_create_target): Delete. Bits folded ...
8447 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8448 pointer.
8449 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8450 (x86_linux_nat_target): New class.
8451 (x86_linux_create_target): Delete.
8452 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8453 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8454 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8455 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8456 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8457 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8458 make extern.
8459 (x86_use_watchpoints): Delete.
8460 * x86-nat.h: Include "breakpoint.h" and "target.h".
8461 (x86_use_watchpoints): Delete.
8462 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8463 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8464 (x86_insert_watchpoint, x86_remove_watchpoint)
8465 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8466 (x86_stopped_by_hw_breakpoint): New declarations.
8467 (x86_nat_target): New template class.
8468
8469 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8470 (the_ppc_linux_nat_target): New.
8471 (ppc_linux_fetch_inferior_registers)
8472 (ppc_linux_can_use_hw_breakpoint)
8473 (ppc_linux_region_ok_for_hw_watchpoint)
8474 (ppc_linux_ranged_break_num_registers)
8475 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8476 (ppc_linux_insert_mask_watchpoint)
8477 (ppc_linux_remove_mask_watchpoint)
8478 (ppc_linux_can_accel_watchpoint_condition)
8479 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8480 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8481 (ppc_linux_watchpoint_addr_within_range)
8482 (ppc_linux_masked_watch_num_registers)
8483 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8484 (ppc_linux_read_description): Refactor as methods of
8485 ppc_linux_nat_target.
8486 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8487
8488 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8489 (procfs_target): New class.
8490 (the_procfs_target): New.
8491 (procfs_target): Delete function.
8492 (procfs_auxv_parse, procfs_attach, procfs_detach)
8493 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8494 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8495 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8496 (procfs_create_inferior, procfs_update_thread_list)
8497 (procfs_thread_alive, procfs_pid_to_str)
8498 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8499 (procfs_stopped_data_address, procfs_insert_watchpoint)
8500 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8501 (proc_find_memory_regions, procfs_info_proc)
8502 (procfs_make_note_section): Refactor as methods of procfs_target.
8503 (_initialize_procfs): Adjust.
8504 * sol-thread.c (sol_thread_target): New class.
8505 (sol_thread_ops): Now a sol_thread_target.
8506 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8507 (sol_thread_fetch_registers, sol_thread_store_registers)
8508 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8509 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8510 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8511 (init_sol_thread_ops): Delete.
8512 (_initialize_sol_thread): Adjust. Remove references to
8513 init_sol_thread_ops and complete_target_initialization.
8514
8515 * windows-nat.c (windows_nat_target): New class.
8516 (windows_fetch_inferior_registers)
8517 (windows_store_inferior_registers, windows_resume, windows_wait)
8518 (windows_attach, windows_detach, windows_pid_to_exec_file)
8519 (windows_files_info, windows_create_inferior)
8520 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8521 (windows_close, windows_pid_to_str, windows_xfer_partial)
8522 (windows_get_tib_address, windows_get_ada_task_ptid)
8523 (windows_thread_name, windows_thread_alive): Refactor as
8524 windows_nat_target methods.
8525 (do_initial_windows_stuff): Adjust.
8526 (windows_target): Delete function.
8527 (_initialize_windows_nat): Adjust.
8528
8529 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8530 (darwin_mourn_inferior, darwin_kill_inferior)
8531 (darwin_create_inferior, darwin_attach, darwin_detach)
8532 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8533 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8534 (darwin_supports_multi_process): Refactor as darwin_nat_target
8535 methods.
8536 (darwin_resume_to, darwin_files_info): Delete.
8537 (_initialize_darwin_inferior): Rename to ...
8538 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8539 * darwin-nat.h: Include "inf-child.h".
8540 (darwin_nat_target): New class.
8541 (darwin_complete_target): Delete.
8542 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8543 (darwin_target): New.
8544 (i386_darwin_fetch_inferior_registers)
8545 (i386_darwin_store_inferior_registers): Refactor as methods of
8546 darwin_nat_target.
8547 (darwin_complete_target): Delete, with ...
8548 (_initialize_i386_darwin_nat): ... bits factored out here.
8549
8550 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8551 (the_alpha_linux_nat_target): New.
8552 (alpha_linux_register_u_offset): Refactor as
8553 alpha_linux_nat_target method.
8554 (_initialize_alpha_linux_nat): Adjust.
8555 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8556 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8557 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8558 methods of linux_nat_trad_target.
8559 (linux_trad_target): Delete.
8560 * linux-nat-trad.h (linux_trad_target): Delete function.
8561 (linux_nat_trad_target): New class.
8562 * mips-linux-nat.c (mips_linux_nat_target): New class.
8563 (super_fetch_registers, super_store_registers, super_close):
8564 Delete.
8565 (the_mips_linux_nat_target): New.
8566 (mips64_linux_regsets_fetch_registers)
8567 (mips64_linux_regsets_store_registers)
8568 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8569 (mips_linux_register_u_offset, mips_linux_read_description)
8570 (mips_linux_can_use_hw_breakpoint)
8571 (mips_linux_stopped_by_watchpoint)
8572 (mips_linux_stopped_data_address)
8573 (mips_linux_region_ok_for_hw_watchpoint)
8574 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8575 (mips_linux_close): Refactor as methods of mips_linux_nat.
8576 (_initialize_mips_linux_nat): Adjust to C++ification.
8577
8578 * aix-thread.c (aix_thread_target): New class.
8579 (aix_thread_ops): Now an aix_thread_target.
8580 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8581 (aix_thread_fetch_registers, aix_thread_store_registers)
8582 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8583 (aix_thread_thread_alive, aix_thread_pid_to_str)
8584 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8585 Refactor as methods of aix_thread_target.
8586 (init_aix_thread_ops): Delete.
8587 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8588 and complete_target_initialization.
8589 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8590 (rs6000_nat_target): New class.
8591 (the_rs6000_nat_target): New.
8592 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8593 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8594 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8595 (super_create_inferior): Delete.
8596 (_initialize_rs6000_nat): Adjust to C++ification.
8597
8598 * arm-linux-nat.c (arm_linux_nat_target): New class.
8599 (the_arm_linux_nat_target): New.
8600 (arm_linux_fetch_inferior_registers)
8601 (arm_linux_store_inferior_registers, arm_linux_read_description)
8602 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8603 (arm_linux_remove_hw_breakpoint)
8604 (arm_linux_region_ok_for_hw_watchpoint)
8605 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8606 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8607 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8608 arm_linux_nat_target.
8609 (_initialize_arm_linux_nat): Adjust to C++ification.
8610
8611 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8612 (the_aarch64_linux_nat_target): New.
8613 (aarch64_linux_fetch_inferior_registers)
8614 (aarch64_linux_store_inferior_registers)
8615 (aarch64_linux_child_post_startup_inferior)
8616 (aarch64_linux_read_description)
8617 (aarch64_linux_can_use_hw_breakpoint)
8618 (aarch64_linux_insert_hw_breakpoint)
8619 (aarch64_linux_remove_hw_breakpoint)
8620 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8621 (aarch64_linux_region_ok_for_hw_watchpoint)
8622 (aarch64_linux_stopped_data_address)
8623 (aarch64_linux_stopped_by_watchpoint)
8624 (aarch64_linux_watchpoint_addr_within_range)
8625 (aarch64_linux_can_do_single_step): Refactor as methods of
8626 aarch64_linux_nat_target.
8627 (super_post_startup_inferior): Delete.
8628 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8629
8630 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8631 (the_hppa_linux_nat_target): New.
8632 (hppa_linux_fetch_inferior_registers)
8633 (hppa_linux_store_inferior_registers): Refactor as methods of
8634 hppa_linux_nat_target.
8635 (_initialize_hppa_linux_nat): Adjust to C++ification.
8636
8637 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8638 (the_ia64_linux_nat_target): New.
8639 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8640 (ia64_linux_stopped_data_address)
8641 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8642 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8643 ia64_linux_nat_target methods.
8644 (super_xfer_partial): Delete.
8645 (_initialize_ia64_linux_nat): Adjust to C++ification.
8646
8647 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8648 (the_m32r_linux_nat_target): New.
8649 (m32r_linux_fetch_inferior_registers)
8650 (m32r_linux_store_inferior_registers): Refactor as
8651 m32r_linux_nat_target methods.
8652 (_initialize_m32r_linux_nat): Adjust to C++ification.
8653
8654 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8655 (the_m68k_linux_nat_target): New.
8656 (m68k_linux_fetch_inferior_registers)
8657 (m68k_linux_store_inferior_registers): Refactor as
8658 m68k_linux_nat_target methods.
8659 (_initialize_m68k_linux_nat): Adjust to C++ification.
8660
8661 * s390-linux-nat.c (s390_linux_nat_target): New class.
8662 (the_s390_linux_nat_target): New.
8663 (s390_linux_fetch_inferior_registers)
8664 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8665 (s390_insert_watchpoint, s390_remove_watchpoint)
8666 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8667 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8668 (s390_auxv_parse, s390_read_description): Refactor as methods of
8669 s390_linux_nat_target.
8670 (_initialize_s390_nat): Adjust to C++ification.
8671
8672 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8673 (the_sparc_linux_nat_target): New.
8674 (_initialize_sparc_linux_nat): Adjust to C++ification.
8675 * sparc-nat.c (sparc_fetch_inferior_registers)
8676 (sparc_store_inferior_registers): Remove target_ops parameter.
8677 * sparc-nat.h (sparc_fetch_inferior_registers)
8678 (sparc_store_inferior_registers): Remove target_ops parameter.
8679 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8680 (the_sparc64_linux_nat_target): New.
8681 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8682
8683 * spu-linux-nat.c (spu_linux_nat_target): New class.
8684 (the_spu_linux_nat_target): New.
8685 (spu_child_post_startup_inferior, spu_child_post_attach)
8686 (spu_child_wait, spu_fetch_inferior_registers)
8687 (spu_store_inferior_registers, spu_xfer_partial)
8688 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8689 methods.
8690 (_initialize_spu_nat): Adjust to C++ification.
8691
8692 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8693 (the_tilegx_linux_nat_target): New.
8694 (fetch_inferior_registers, store_inferior_registers):
8695 Refactor as methods.
8696 (_initialize_tile_linux_nat): Adjust to C++ification.
8697
8698 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8699 (the_xtensa_linux_nat_target): New.
8700 (xtensa_linux_fetch_inferior_registers)
8701 (xtensa_linux_store_inferior_registers): Refactor as
8702 xtensa_linux_nat_target methods.
8703 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8704
8705 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8706 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8707 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8708 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8709 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8710 (fbsd_stopped_by_sw_breakpoint)
8711 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8712 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8713 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8714 (fbsd_post_startup_inferior, fbsd_post_attach)
8715 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8716 (fbsd_set_syscall_catchpoint)
8717 (super_xfer_partial, super_resume, super_wait)
8718 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8719 (fbsd_handle_debug_trap): Remove target_ops parameter.
8720 (fbsd_nat_add_target): Delete.
8721 * fbsd-nat.h: Include "inf-ptrace.h".
8722 (fbsd_nat_add_target): Delete.
8723 (USE_SIGTRAP_SIGINFO): Define.
8724 (fbsd_nat_target): New class.
8725
8726 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8727 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8728 (amd64bsd_target): Delete.
8729 * amd64-bsd-nat.h: New file.
8730 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8731 "x86-bsd-nat.h".
8732 (amd64_fbsd_nat_target): New class.
8733 (the_amd64_fbsd_nat_target): New.
8734 (amd64fbsd_read_description): Refactor as method of
8735 amd64_fbsd_nat_target.
8736 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8737 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8738 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8739 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8740 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8741 (i386bsd_target): Delete.
8742 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8743 (i386bsd_fetch_inferior_registers)
8744 (i386bsd_store_inferior_registers): Declare.
8745 (i386_bsd_nat_target): New class.
8746 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8747 (the_i386_fbsd_nat_target): New.
8748 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8749 i386_fbsd_nat_target methods.
8750 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8751 (_initialize_i386fbsd_nat): Adjust to C++ification.
8752 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8753 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8754 (_initialize_x86_bsd_nat): Adjust to C++ification.
8755 * x86-bsd-nat.h: Include "x86-nat.h".
8756 (x86bsd_target): Delete declaration.
8757 (x86bsd_nat_target): New class.
8758
8759 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8760 (the_aarch64_fbsd_nat_target): New.
8761 (aarch64_fbsd_fetch_inferior_registers)
8762 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8763 aarch64_fbsd_nat_target.
8764 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8765 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8766 (the_alpha_bsd_nat_target): New.
8767 (alphabsd_fetch_inferior_registers)
8768 (alphabsd_store_inferior_registers): Refactor as
8769 alpha_bsd_nat_target methods.
8770 (_initialize_alphabsd_nat): Refactor as methods of
8771 alpha_bsd_nat_target.
8772 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8773 (the_amd64_nbsd_nat_target): New.
8774 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8775 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8776 (the_amd64_obsd_nat_target): New.
8777 (_initialize_amd64obsd_nat): Adjust to C++ification.
8778 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8779 (the_arm_fbsd_nat_target): New.
8780 (arm_fbsd_fetch_inferior_registers)
8781 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8782 (_initialize_arm_fbsd_nat): Refactor as methods of
8783 arm_fbsd_nat_target.
8784 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8785 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8786 (the_arm_netbsd_nat_target): New.
8787 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8788 arm_netbsd_nat_target.
8789 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8790 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8791 (the_hppa_nbsd_nat_target): New.
8792 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8793 hppa_nbsd_nat_target methods.
8794 (_initialize_hppanbsd_nat): Adjust to C++ification.
8795 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8796 (the_hppa_obsd_nat_target): New.
8797 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8798 methods of hppa_obsd_nat_target.
8799 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8800 add_target.
8801 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8802 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8803 add_target.
8804 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8805 (_initialize_i386obsd_nat): Use add_target.
8806 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8807 (the_m68k_bsd_nat_target): New.
8808 (m68kbsd_fetch_inferior_registers)
8809 (m68kbsd_store_inferior_registers): Refactor as methods of
8810 m68k_bsd_nat_target.
8811 (_initialize_m68kbsd_nat): Adjust to C++ification.
8812 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8813 (the_mips_fbsd_nat_target): New.
8814 (mips_fbsd_fetch_inferior_registers)
8815 (mips_fbsd_store_inferior_registers): Refactor as methods of
8816 mips_fbsd_nat_target.
8817 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8818 add_target.
8819 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8820 (the_mips_nbsd_nat_target): New.
8821 (mipsnbsd_fetch_inferior_registers)
8822 (mipsnbsd_store_inferior_registers): Refactor as methods of
8823 mips_nbsd_nat_target.
8824 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8825 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8826 (the_mips64_obsd_nat_target): New.
8827 (mips64obsd_fetch_inferior_registers)
8828 (mips64obsd_store_inferior_registers): Refactor as methods of
8829 mips64_obsd_nat_target.
8830 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8831 add_target.
8832 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8833 nbsd_nat_target.
8834 * nbsd-nat.h: Include "inf-ptrace.h".
8835 (nbsd_nat_target): New class.
8836 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8837 (obsd_wait): Refactor as methods of obsd_nat_target.
8838 (obsd_add_target): Delete.
8839 * obsd-nat.h: Include "inf-ptrace.h".
8840 (obsd_nat_target): New class.
8841 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8842 (the_ppc_fbsd_nat_target): New.
8843 (ppcfbsd_fetch_inferior_registers)
8844 (ppcfbsd_store_inferior_registers): Refactor as methods of
8845 ppc_fbsd_nat_target.
8846 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8847 add_target.
8848 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8849 (the_ppc_nbsd_nat_target): New.
8850 (ppcnbsd_fetch_inferior_registers)
8851 (ppcnbsd_store_inferior_registers): Refactor as methods of
8852 ppc_nbsd_nat_target.
8853 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8854 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8855 (the_ppc_obsd_nat_target): New.
8856 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8857 methods of ppc_obsd_nat_target.
8858 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8859 add_target.
8860 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8861 (the_sh_nbsd_nat_target): New.
8862 (shnbsd_fetch_inferior_registers)
8863 (shnbsd_store_inferior_registers): Refactor as methods of
8864 sh_nbsd_nat_target.
8865 (_initialize_shnbsd_nat): Adjust to C++ification.
8866 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8867 (inf_ptrace_xfer_partial): Delete.
8868 (sparc_xfer_partial, sparc_target): Delete.
8869 * sparc-nat.h (sparc_fetch_inferior_registers)
8870 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8871 (sparc_target): Delete function declaration.
8872 (sparc_target): New template class.
8873 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8874 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8875 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8876 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8877 add_target.
8878 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8879 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8880 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8881 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8882 add_target.
8883 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8884 (the_vax_bsd_nat_target): New.
8885 (vaxbsd_fetch_inferior_registers)
8886 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8887 methods.
8888 (_initialize_vaxbsd_nat): Adjust to C++ification.
8889
8890 * bsd-kvm.c (bsd_kvm_target): New class.
8891 (bsd_kvm_ops): Now a bsd_kvm_target.
8892 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8893 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8894 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8895 bsd_kvm_target.
8896 (bsd_kvm_return_one): Delete.
8897 (bsd_kvm_add_target): Adjust to C++ification.
8898
8899 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8900 (nto_procfs_target_procfs): New classes.
8901 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8902 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8903 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8904 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8905 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8906 (procfs_remove_hw_breakpoint, procfs_resume)
8907 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8908 (procfs_kill_inferior, procfs_store_registers)
8909 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8910 as methods of nto_procfs_target.
8911 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8912 (nto_native_ops): Delete.
8913 (procfs_open, procfs_native_open): Delete.
8914 (nto_native_ops): Now an nto_procfs_target_native.
8915 (init_procfs_targets): Adjust to C++ification.
8916 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8917 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8918 Refactor as methods of nto_procfs_target.
8919
8920 * go32-nat.c (go32_nat_target): New class.
8921 (the_go32_nat_target): New.
8922 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8923 (go32_store_registers, go32_xfer_partial, go32_files_info)
8924 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8925 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8926 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8927 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8928 (go32_target): Delete.
8929 (_initialize_go32_nat): Adjust to C++ification.
8930
8931 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8932 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8933 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8934 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8935 gnu_nat_target.
8936 (gnu_target): Delete.
8937 * gnu-nat.h (gnu_target): Delete.
8938 (gnu_nat_target): New class.
8939 * i386-gnu-nat.c (gnu_base_target): New.
8940 (i386_gnu_nat_target): New class.
8941 (the_i386_gnu_nat_target): New.
8942 (_initialize_i386gnu_nat): Adjust to C++ification.
8943
3fffc070
PA
89442018-05-02 Pedro Alves <palves@redhat.com>
8945
8946 * bfd-target.c (target_bfd_xclose): Rename to ...
8947 (target_bfd_close): ... this.
8948 (target_bfd_reopen): Adjust.
8949 * target.c (target_close): Remove references to to_xclose.
8950 * target.h (target_ops::to_xclose): Delete.
8951 (target_ops::to_close): Update comments.
8952
6798487f
PA
89532018-05-02 Pedro Alves <palves@redhat.com>
8954
8955 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8956 "linux-nat.h".
8957 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8958 * inf-ptrace.c (inf_ptrace_register_u_offset)
8959 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8960 (inf_ptrace_store_register, inf_ptrace_store_registers)
8961 (inf_ptrace_trad_target): Move to ...
8962 * linux-nat-trad.c: ... this new file.
8963 * linux-nat-trad.h: New file.
8964 * linux-nat.c (linux_target_install_ops): Make extern.
8965 (linux_trad_target): Delete.
8966 * linux-nat.h (linux_trad_target): Delete declaration.
8967 (linux_target_install_ops): Declare.
8968 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8969 "linux-nat.h".
8970
c1955e17
PA
89712018-05-02 Pedro Alves <palves@redhat.com>
8972
8973 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8974 procfs_target/add_target here.
8975 * procfs.c (procfs_target): Make static.
8976 (_initialize_procfs): Call add_target here.
8977 * procfs.h (struct target_ops): Remove forward declaration.
8978 (procfs_target): Remove declaration.
8979 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8980
b5c8fcb1
PA
89812018-05-02 Pedro Alves <palves@redhat.com>
8982
8983 * procfs.c (procfs_stopped_by_watchpoint)
8984 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8985 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8986 Forward declare.
8987 (procfs_use_watchpoints): Delete, move contents...
8988 (procfs_target): ... here.
8989 * procfs.h (procfs_use_watchpoints): Delete declaration.
8990 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8991 procfs_use_watchpoints.
8992 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8993 procfs_use_watchpoints.
8994
0489430a
TT
89952018-05-02 Tom Tromey <tom@tromey.com>
8996
8997 PR python/20084:
8998 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8999 and var_zuinteger_unlimited.
9000 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9001 and PARAM_ZUINTEGER_UNLIMITED.
9002 (set_parameter_value): Handle var_zuinteger and
9003 var_zuinteger_unlimited.
9004 (add_setshow_generic): Likewise.
9005 (parmpy_init): Likewise.
9006
1632f8ba
DR
90072018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9008
9009 PR rust/23124
9010 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9011 pointer is not null before dereferencing it.
9012
76761936
TT
90132018-04-30 Tom Tromey <tom@tromey.com>
9014
9015 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9016 is_mi_like_p.
9017
2d33446d
TT
90182018-04-30 Tom Tromey <tom@tromey.com>
9019
9020 * breakpoint.c (mention): Remove use of is_mi_like_p.
9021 (print_mention_ranged_breakpoint): Likewise.
9022 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9023 of is_mi_like_p.
9024
f3c6abab
TT
90252018-04-30 Tom Tromey <tom@tromey.com>
9026
9027 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9028
40c03530
TT
90292018-04-30 Tom Tromey <tom@tromey.com>
9030
9031 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9032 (info_spu_event_command): Remove some uses of is_mi_like_p.
9033
2038b7fd
TT
90342018-04-30 Tom Tromey <tom@tromey.com>
9035
9036 * python/py-framefilter.c (py_print_single_arg)
9037 (enumerate_locals, py_print_args, py_print_frame): Remove some
9038 uses of is_mi_like_p.
9039
4904c3c6
TT
90402018-04-30 Tom Tromey <tom@tromey.com>
9041
9042 * ui-out.c: Update.
9043 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9044 * ui-out.h (ui_out::is_mi_like_p): Now const.
9045 (ui_out::do_is_mi_like_p): Now const.
9046 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9047
7c66fffc
TT
90482018-04-30 Tom Tromey <tom@tromey.com>
9049
9050 * varobj.c (varobj_set_visualizer): Use new_reference.
9051 * python/python.c (gdbpy_decode_line): Use new_reference.
9052 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9053 new_reference.
9054
bbfa6f00
TT
90552018-04-30 Tom Tromey <tom@tromey.com>
9056
9057 * varobj.c (install_new_value): Use new_reference.
9058 * value.h (value_incref): Return void. Swap intro comment with
9059 value_decref.
9060 * value.c (set_value_parent): Use new_reference.
9061 (value_incref): Return void. Update intro comment.
9062 (release_value): Use new_reference.
9063 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9064
1831a9f9
TT
90652018-04-30 Tom Tromey <tom@tromey.com>
9066
9067 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9068 * gdb_bfd.h (new_bfd_ref): Remove.
9069 (gdb_bfd_open): Update comment.
9070 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9071 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9072 (gdb_bfd_fdopenr): Use new_reference.
9073 * exec.c (exec_file_attach): Use new_reference.
9074
7c1b5f3d
TT
90752018-04-30 Tom Tromey <tom@tromey.com>
9076
9077 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9078 method.
9079
e11fb955
TT
90802018-04-30 Tom Tromey <tom@tromey.com>
9081
9082 * jit.c (jit_read_code_entry): Use type_align.
9083 * i386-tdep.c (i386_gdbarch_init): Don't call
9084 set_gdbarch_long_long_align_bit.
9085 * gdbarch.sh: Remove long_long_align_bit.
9086 * gdbarch.c, gdbarch.h: Rebuild.
9087 * arc-tdep.c (arc_type_align): New function.
9088 (arc_gdbarch_init): Use arc_type_align. Don't call
9089 set_gdbarch_long_long_align_bit.
9090
2fff16dd
TT
90912018-04-30 Tom Tromey <tom@tromey.com>
9092
9093 * rust-lang.c (rust_type_alignment): Remove.
9094 (rust_composite_type): Use type_align.
9095
6d7bb824
TT
90962018-04-30 Tom Tromey <tom@tromey.com>
9097
9098 * NEWS: Mention Type.align.
9099 * python/py-type.c (typy_get_alignof): New function.
9100 (type_object_getset): Add "alignof".
9101
007e1530
TT
91022018-04-30 Tom Tromey <tom@tromey.com>
9103
9104 PR exp/17095:
9105 * NEWS: Update.
9106 * std-operator.def (UNOP_ALIGNOF): New operator.
9107 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9108 New.
9109 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9110 * c-lang.c (c_op_print_tab): Add alignof.
9111 * c-exp.y (ALIGNOF): New token.
9112 (exp): Add "ALIGNOF" production.
9113 (ident_tokens): Add _Alignof and alignof.
9114
2b4424c3
TT
91152018-04-30 Tom Tromey <tom@tromey.com>
9116
9117 * i386-tdep.c (i386_type_align): New function.
9118 (i386_gdbarch_init): Update.
9119 * gdbarch.sh (type_align): New method.
9120 * gdbarch.c, gdbarch.h: Rebuild.
9121 * arch-utils.h (default_type_align): Declare.
9122 * arch-utils.c (default_type_align): New function.
9123 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9124 (struct type) <align_log2>: New field.
9125 <instance_flags>: Now a bitfield.
9126 (TYPE_RAW_ALIGN): New macro.
9127 (type_align, type_raw_align, set_type_align): Declare.
9128 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9129 functions.
9130 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9131 (get_alignment, maybe_set_alignment): New functions.
9132 (read_structure_type, read_enumeration_type, read_array_type)
9133 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9134 (read_subrange_type, read_base_type): Set type alignment.
9135
d33bc52e
SM
91362018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9137
9138 * dwarf2read.c (read_index_from_section): Use bool.
9139
e28b63a9
FG
91402018-04-29 Fabian Groffen <grobian@gentoo.org>
9141
9142 PR gdb/22950
9143 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9144 with #ifdef.
9145
cd8c76e4
JR
91462018-04-29 John Reiser <jreiser@BitWagon.com>
9147
9148 PR build/22873
9149 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9150 last step, and do it atomically.
9151
476d250e
AO
91522018-04-27 Alexandre Oliva <aoliva@redhat.com>
9153
9154 * compile/compile-c-types.c (convert_int, convert_float):
9155 Update for C FE v1.
9156
6873858b
TT
91572018-04-27 Tom Tromey <tom@tromey.com>
9158
9159 PR rust/22545:
9160 * rust-lang.c (rust_inclusive_range_type_p): New function.
9161 (rust_range): Handle inclusive ranges.
9162 (rust_compute_range): Likewise.
9163 * rust-exp.y (struct rust_op) <inclusive>: New field.
9164 (DOTDOTEQ): New constant.
9165 (range_expr): Add "..=" productions.
9166 (operator_tokens): Add "..=" token.
9167 (ast_range): Add "inclusive" parameter.
9168 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9169 ranges.
9170 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9171 bounds values.
9172 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9173 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9174 Update comments.
9175 * expprint.c (print_subexp_standard): Handle new bounds values.
9176 (dump_subexp_body_standard): Likewise.
9177
632e107b
TT
91782018-04-27 Tom Tromey <tom@tromey.com>
9179
9180 * configure: Rebuild.
9181 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9182 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9183 "OVERRIDE".
9184 (class symbol_needs_eval_context): Likewise.
9185 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9186 (mock_mapped_index::symbol_name_at): Use "override". Remove
9187 "virtual".
9188 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9189 "override".
9190 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9191 * aarch64-tdep.c (instruction_reader::read): Use "override".
9192 (instruction_reader_test::read): Likewise.
9193 * arm-tdep.c (instruction_reader::read): Use "override".
9194 (instruction_reader_thumb::read): Likewise.
9195
b75abf5b
AK
91962018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9197
9198 PR remote/9665
9199 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9200 instead of remote_send.
9201 (remote_send): Remove.
9202
79188d8d
PA
92032018-04-26 Pedro Alves <palves@redhat.com>
9204
9205 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9206 find_function_start_sal instead of find_pc_line.
9207
f50776aa
PA
92082018-04-26 Pedro Alves <palves@redhat.com>
9209
9210 * breakpoint.c (set_breakpoint_location_function): Handle
9211 mst_data_gnu_ifunc.
9212 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9213 * elfread.c (elf_symtab_read): Give data symbols with
9214 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9215 (elf_rel_plt_read): Update comment.
9216 * linespec.c (convert_linespec_to_sals): Handle
9217 mst_data_gnu_ifunc.
9218 (minsym_found): Handle mst_data_gnu_ifunc.
9219 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9220 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9221 * parse.c (find_minsym_type_and_address): Handle
9222 mst_data_gnu_ifunc.
9223 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9224 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9225 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9226 comment.
9227 <mst_data_gnu_ifunc>: New enumerator.
9228
20944a6e
PA
92292018-04-26 Pedro Alves <palves@redhat.com>
9230
9231 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9232 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9233 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9234 Handle it.
9235 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9236 (lookup_minimal_symbol_by_pc): Adjust.
9237 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9238 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9239 * minsyms.h (lookup_msym_prefer): New enum.
9240 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9241 parameter by a lookup_msym_prefer parameter.
9242
1adeb822
PA
92432018-04-26 Pedro Alves <palves@redhat.com>
9244
9245 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9246 ends in "@plt" instead of looking at the symbol's section.
9247
a0aca7b0
PA
92482018-04-26 Pedro Alves <palves@redhat.com>
9249
9250 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9251 all references.
9252 (find_pc_partial_function_gnu_ifunc): Rename to ...
9253 (find_pc_partial_function): ... this, and remove references to
9254 'is_gnu_ifunc_p'.
9255 (find_pc_partial_function): Delete old implementation.
9256 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9257
76af0f26
PA
92582018-04-26 Pedro Alves <palves@redhat.com>
9259
9260 * linespec.c (struct bound_minimal_symbol_search_key): New.
9261 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9262 skip first line if we found a GNU ifunc minimal symbol by name.
9263 (compare_msymbols): Change parameters to work with a destructured
9264 lhs minsym.
9265 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9266 functions.
9267
3467ec66
PA
92682018-04-26 Pedro Alves <palves@redhat.com>
9269
9270 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9271 ifunc targets here. Instead, if we have an ifunc minsym, use its
9272 address/name.
9273 (add_location_to_breakpoint): Store the minsym and the objfile in
9274 the breakpoint location.
9275 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9276 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9277 Record the minsym in the sal.
9278 * symtab.h (symtab_and_line) <msymbol>: New field.
9279
28f4fa4d
PA
92802018-04-26 Pedro Alves <palves@redhat.com>
9281
9282 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9283 unless we actually resolved the ifunc.
9284
ca31ab1d
PA
92852018-04-26 Pedro Alves <palves@redhat.com>
9286
9287 * c-exp.y (variable production): Prefer ifunc minsyms over
9288 regular function symbols.
9289 * symtab.c (find_gnu_ifunc): New function.
9290 * minsyms.h (lookup_msym_prefer): New enum.
9291 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9292 parameter by a lookup_msym_prefer parameter.
9293 * symtab.h (find_gnu_ifunc): New declaration.
9294
8388016d
PA
92952018-04-26 Pedro Alves <palves@redhat.com>
9296
9297 * blockframe.c (find_gnu_ifunc_target_type): New function.
9298 (find_function_type): New.
9299 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9300 return a value with a memory address.
9301 (eval_call): For calls to GNU ifunc functions, try to find the
9302 type of the target function from the type that the resolver
9303 returns.
9304 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9305 symbols.
9306 * infcall.c (find_function_return_type): Delete.
9307 (find_function_addr): Add 'function_type' parameter. For calls to
9308 GNU ifunc functions, try to find the type of the target function
9309 from the type that the resolver returns, and return it via
9310 FUNCTION_TYPE.
9311 (call_function_by_hand_dummy): Adjust to use the function type
9312 returned by find_function_addr.
9313 (find_function_addr): Add 'function_type' parameter and move
9314 description here.
9315 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9316 declarations.
9317
a376e11d
PA
93182018-04-26 Pedro Alves <palves@redhat.com>
9319
9320 * c-exp.y (variable production): Skip finding an alias for ifunc
9321 symbols.
9322
02e169e2
PA
93232018-04-26 Pedro Alves <palves@redhat.com>
9324
9325 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9326
249b5733
PA
93272018-04-25 Pedro Alves <palves@redhat.com>
9328
9329 * infcmd.c (kill_command): Print the pid as string, not the whole
9330 thread's ptid. Add comment. s/has been killed/killed/ in output
9331 message.
9332 * remote.c (remote_detach_1): Print the pid as string, not the
9333 whole thread's ptid.
9334
f67c0c91
SDJ
93352018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9336 Sergio Durigan Junior <sergiodj@redhat.com>
9337 Pedro Alves <palves@redhat.com>
9338
9339 * infcmd.c (kill_command): Print message when inferior has
9340 been killed.
9341 * inferior.c (print_inferior_events): Remove 'static'. Set as
9342 '1'.
9343 (add_inferior): Improve message printed when
9344 'print_inferior_events' is on.
9345 (exit_inferior): Remove message printed when
9346 'print_inferior_events' is on.
9347 (detach_inferior): Improve message printed when
9348 'print_inferior_events' is on.
9349 (initialize_inferiors): Use 'add_inferior_silent' to set
9350 'current_inferior_'.
9351 * inferior.h (print_inferior_events): Declare here as
9352 'extern'.
9353 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9354 '[Detaching...]' messages when 'print_inferior_events' is on.
9355 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9356 as prefix/suffix for messages. Remove periods. Fix erroneous
9357 'Detaching after fork from child...', replace it by '... from
9358 parent...'.
9359 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9360 prefix/suffix when printing 'Detaching...' messages. Print
9361 them when 'print_inferior_events' is on.
9362 * remote.c (remote_detach_1): Print message when detaching
9363 from inferior and '!is_fork_parent'.
9364
e427af18
TT
93652018-04-24 Tom Tromey <tom@tromey.com>
9366
9367 * cli-out.h: Reindent.
9368
05b1d8d6
TT
93692018-04-24 Tom Tromey <tom@tromey.com>
9370
9371 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9372 (cli_ui_out::do_field_string): Use fputs_filtered.
9373 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9374
a95c7dab
TT
93752018-04-23 Tom Tromey <tom@tromey.com>
9376
9377 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9378 gdb::unique_xmalloc_ptr.
9379
458412c3
TT
93802018-04-23 Tom Tromey <tom@tromey.com>
9381
9382 * configure: Rebuild.
9383
db86b02b
RS
93842018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9385
9386 PR gdb/23095
9387 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9388 prepare_for_testing. Set normal_bp to r_debug_state if target
9389 is bsd.
9390
00aecdcf
PA
93912018-04-21 Pedro Alves <palves@redhat.com>
9392 Rajendra SY <rajendra.sy@gmail.com>
9393
9394 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9395 * remote.c (extended_remote_attach): In all-stop mode, mark the
9396 thread as executing.
9397
224608c3
PW
93982018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9399
9400 * thread.c (thread_apply_all_command): Fix comment.
9401 (thread_command): Fix comment.
9402
3b74854b
AH
94032018-04-10 Alan Hayward <alan.hayward@arm.com>
9404
9405 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9406 parameter.
9407 * features/aarch64-core.c (create_feature_aarch64_core):
9408 Regenerate.
9409 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9410 Likewise.
9411 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9412 Likewise.
9413 * features/i386/32bit-avx512.c
9414 (create_feature_i386_32bit_avx512): Likewise.
9415 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9416 Likewise.
9417 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9418 Likewise.
9419 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9420 Likewise.
9421 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9422 Likewise.
9423 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9424 Likewise.
9425 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9426 Likewise.
9427 * features/i386/64bit-avx512.c
9428 (create_feature_i386_64bit_avx512): Likewise.
9429 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9430 Likewise.
9431 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9432 Likewise.
9433 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9434 Likewise.
9435 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9436 Likewise.
9437 * features/i386/64bit-segments.c
9438 (create_feature_i386_64bit_segments): Likewise.
9439 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9440 Likewise.
9441 * features/i386/x32-core.c
9442 (create_feature_i386_x32_core): Likewise.
9443 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9444 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9445 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9446 * target-descriptions.c: In generated code, don't pass xml
9447 filename.
9448
e98577a9
AH
94492018-04-18 Alan Hayward <alan.hayward@arm.com>
9450
9451 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9452 (print_xml_feature::visit_post): Likewise.
9453 (print_xml_feature::visit): Likewise.
9454 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9455 (print_xml_feature): Add new class.
9456 * regformats/regdat.sh: Null xmltarget on feature targets.
9457 * target-descriptions.c (struct target_desc): Add xmltarget.
9458 (maintenance_check_tdesc_xml_convert): Add unittest function.
9459 (tdesc_get_features_xml): Add function to get xml.
9460 (maintenance_check_xml_descriptions): Test xml generation.
9461 * xml-tdesc.c (string_read_description_xml): Add function.
9462 * xml-tdesc.h (string_read_description_xml): Add declaration.
9463
ad7fc756
AH
94642018-04-18 Alan Hayward <alan.hayward@arm.com>
9465
9466 * features/Makefile: Add feature marker to targets with new style
9467 target descriptions.
9468 * regformats/aarch64.dat: Regenerate.
9469 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9470 * regformats/i386/amd64-avx-linux.dat: Likewise.
9471 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9472 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9473 * regformats/i386/amd64-linux.dat: Likewise.
9474 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9475 * regformats/i386/amd64.dat: Likewise.
9476 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9477 * regformats/i386/i386-avx-linux.dat: Likewise.
9478 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9479 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9480 * regformats/i386/i386-linux.dat: Likewise.
9481 * regformats/i386/i386-mmx-linux.dat: Likewise.
9482 * regformats/i386/i386-mpx-linux.dat: Likewise.
9483 * regformats/i386/i386.dat: Likewise.
9484 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9485 * regformats/i386/x32-avx-linux.dat: Likewise.
9486 * regformats/i386/x32-linux.dat: Likewise.
9487 * regformats/tic6x-c62x-linux.dat: Likewise.
9488 * regformats/tic6x-c64x-linux.dat: Likewise.
9489 * regformats/tic6x-c64xp-linux.dat: Likewise.
9490 * regformats/regdat.sh: Parse feature marker.
9491
d278f585
AH
94922018-04-18 Alan Hayward <alan.hayward@arm.com>
9493
9494 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9495 (tdesc_osabi_name): Likewise.
9496 * target-descriptions.c (tdesc_architecture_name): Add new
9497 function.
9498 (tdesc_osabi_name): Likewise.
9499
eee8a18d
AH
95002018-04-18 Alan Hayward <alan.hayward@arm.com>
9501
9502 * common/tdesc.c (tdesc_predefined_type): Move to here.
9503 (tdesc_named_type): Likewise.
9504 (tdesc_create_vector): Likewise.
9505 (tdesc_create_struct): Likewise.
9506 (tdesc_set_struct_size): Likewise.
9507 (tdesc_create_union): Likewise.
9508 (tdesc_create_flags): Likewise.
9509 (tdesc_create_enum): Likewise.
9510 (tdesc_add_field): Likewise.
9511 (tdesc_add_typed_bitfield): Likewise.
9512 (tdesc_add_bitfield): Likewise.
9513 (tdesc_add_flag): Likewise.
9514 (tdesc_add_enum_value): Likewise.
9515 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9516 (struct tdesc_type_vector): Likewise.
9517 (struct tdesc_type_field): Likewise.
9518 (struct tdesc_type_with_fields): Likewise.
9519 (tdesc_create_enum): Add declaration.
9520 (tdesc_add_typed_bitfield): Likewise.
9521 (tdesc_add_enum_value): Likewise.
9522 * target-descriptions.c (tdesc_type_field): Move from here.
9523 (tdesc_type_builtin): Likewise.
9524 (tdesc_type_vector): Likewise.
9525 (tdesc_type_with_fields): Likewise.
9526 (tdesc_predefined_types): Likewise.
9527 (tdesc_named_type): Likewise.
9528 (tdesc_create_vector): Likewise.
9529 (tdesc_create_struct): Likewise.
9530 (tdesc_set_struct_size): Likewise.
9531 (tdesc_create_union): Likewise.
9532 (tdesc_create_flags): Likewise.
9533 (tdesc_create_enum): Likewise.
9534 (tdesc_add_field): Likewise.
9535 (tdesc_add_typed_bitfield): Likewise.
9536 (tdesc_add_bitfield): Likewise.
9537 (tdesc_add_flag): Likewise.
9538 (tdesc_add_enum_value): Likewise.
9539 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9540 (tdesc_add_typed_bitfield): Likewise.
9541 (tdesc_add_enum_value): Likewise.
9542
82ec9bc7
AH
95432018-04-18 Alan Hayward <alan.hayward@arm.com>
9544
9545 * common/tdesc.c (tdesc_feature::accept): Move to here.
9546 (tdesc_feature::operator==): Likewise.
9547 (tdesc_create_reg): Likewise.
9548 * common/tdesc.h (tdesc_type_kind): Likewise.
9549 (struct tdesc_type): Likewise.
9550 (struct tdesc_feature): Likewise.
9551 * regformats/regdat.sh: Create a feature.
9552 * target-descriptions.c (tdesc_type_kind): Move from here.
9553 (tdesc_type): Likewise.
9554 (tdesc_type_up): Likewise.
9555 (tdesc_feature): Likewise.
9556 (tdesc_create_reg): Likewise.
9557
ea3e7d71
AH
95582018-04-18 Alan Hayward <alan.hayward@arm.com>
9559
9560 * Makefile.in: Add arch/tdesc.c
9561 * common/tdesc.c: New file.
9562 * common/tdesc.h (tdesc_element_visitor): Move to here.
9563 (tdesc_element): Likewise.
9564 (tdesc_reg): Likewise.
9565 (tdesc_reg_up): Likewise.
9566 * regformats/regdef.h (reg): Add offset to constructors.
9567 * target-descriptions.c (tdesc_element_visitor): Move from here.
9568 (tdesc_element): Likewise.
9569 (tdesc_reg): Likewise.
9570 (tdesc_reg_up): Likewise.
9571
bedda9ac
TT
95722018-04-17 Tom Tromey <tom@tromey.com>
9573
9574 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9575 discriminant field.
9576
a037790e
TT
95772018-04-17 Tom Tromey <tom@tromey.com>
9578
9579 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9580
c7dcbf88
AA
95812018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9582
9583 * symtab.c (print_symbol_info): Skip printing filename and line
9584 number when `last' is NULL.
9585 (symtab_symbol_info): Use empty string instead of NULL for first
9586 invocation of print_symbol_info.
9587 (rbreak_command): Pass NULL to `last' parameter of
9588 print_symbol_info.
9589
07d28c77
SM
95902018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9591
9592 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9593 instead of nullptr.
9594
8a3de5e1
PA
95952018-04-16 Pedro Alves <palves@redhat.com>
9596
9597 * MAINTAINERS (sh): Remove.
9598 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9599 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9600 (ALLDEPFILES): Remove sh64-tdep.c.
9601 * NEWS: Mentions that support for SH-5/SH64 is removed.
9602 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9603 (sh*-*-openbsd*): Ditto.
9604 (sh64-*-elf*): Remove.
9605 (sh*): Remove.
9606 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9607 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9608 * sh-tdep.c: No longer include "sh64-tdep.h".
9609 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9610 * sh64-tdep.c, sh64-tdep.h: Remove files.
9611
a2a79012
PA
96122018-04-16 Pedro Alves <palves@redhat.com>
9613
9614 * MAINTAINERS: Remove m88k.
9615 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9616 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9617 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9618 * NEWS: Mention that support for m88k was removed.
9619 * configure.host (m88*-*-*): Remove support.
9620 * configure.nat (m88k-*-*): Remove support.
9621 * configure.tgt (m88*-*-openbsd*): Remove.
9622 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9623
eda4efb1
SM
96242018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9625
9626 * configure.tgt (x86_tobjs): New variable.
9627 (amd64_tobjs, i386_tobjs): Use it.
9628
b744723f
AA
96292018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9630
9631 * symtab.c (print_symbol_info): Precede the symbol definition by
9632 the line number when available.
9633 * NEWS: Advertise this enhancement.
9634
4a4495d6
MM
96352018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9636
9637 * NEWS (New options): announce set/show record btrace cpu.
9638 * btrace.c: Include record-btrace.h.
9639 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9640 the vendor is unknown.
9641 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9642 Maybe overwrite the btrace configuration's cpu.
9643 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9644 (btrace_fetch): Add cpu parameter. Update callers.
9645 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9646 Maybe overwrite the btrace configuration's cpu. Skip enabling
9647 errata workarounds if the vendor is unknown.
9648 * python/py-record-btrace.c: Include record-btrace.h.
9649 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9650 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9651 * record-btrace.c (record_btrace_cpu_state_kind): New.
9652 (record_btrace_cpu): New.
9653 (set_record_btrace_cpu_cmdlist): New.
9654 (record_btrace_get_cpu): New.
9655 (require_btrace_thread, record_btrace_info)
9656 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9657 (cmd_set_record_btrace_cpu_none): New.
9658 (cmd_set_record_btrace_cpu_auto): New.
9659 (cmd_set_record_btrace_cpu): New.
9660 (cmd_show_record_btrace_cpu): New.
9661 (_initialize_record_btrace): Initialize set/show record btrace cpu
9662 commands.
9663 * record-btrace.h (record_btrace_get_cpu): New.
9664
69f90c75
MM
96652018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9666
9667 * record.c (set_record_command): Fix typo in message.
9668
b85310e1
MM
96692018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9670
9671 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9672
1d509aa6
MM
96732018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9674
9675 * infrun.c (process_event_stop_test): Call
9676 gdbarch_in_indirect_branch_thunk.
9677 * gdbarch.sh (in_indirect_branch_thunk): New.
9678 * gdbarch.c: Regenerated.
9679 * gdbarch.h: Regenerated.
9680 * x86-tdep.h: New.
9681 * x86-tdep.c: New.
9682 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9683 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9684 (ALLDEPFILES): Add x86-tdep.c.
9685 * arch-utils.h (default_in_indirect_branch_thunk): New.
9686 * arch-utils.c (default_in_indirect_branch_thunk): New.
9687 * i386-tdep: Include x86-tdep.h.
9688 (i386_in_indirect_branch_thunk): New.
9689 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9690 function.
9691 * amd64-tdep: Include x86-tdep.h.
9692 (amd64_in_indirect_branch_thunk): New.
9693 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9694
b4be9bfd
JK
96952018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9696
9697 PR gdb/23053
9698 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9699 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9700 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9701 regression.
9702
53d7df28
TT
97032018-04-12 Tom Tromey <tom@tromey.com>
9704
9705 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9706 (rust_evaluate_subexp): Likewise.
9707
70b33f19
PA
97082018-04-12 Pedro Alves <palves@redhat.com>
9709
9710 * procfs.c (procfs_detach): Make forward declaration's prototype
9711 match definition's protototype.
9712 (proc_get_LDT_entry): Remove stale do_cleanups call.
9713
436411b1
PA
97142018-04-12 Pedro Alves <palves@redhat.com>
9715
9716 * target.h (target_ops::to_has_exited): Delete.
9717 (target_has_exited): Delete.
9718 * target-delegates.c: Regenerate.
9719
20db9c52
PA
97202018-04-11 Pedro Alves <palves@redhat.com>
9721
9722 * target.c (fileio_fh_t::t): Add comment.
9723 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9724 (target_fileio_close): Handle a NULL target.
9725 (invalidate_fileio_fh): New.
9726 (target_close): Call it.
9727 * remote.c (remote_hostio_send_command): No longer check whether
9728 remote_desc is open.
9729
5ff79300
PA
97302018-04-11 Pedro Alves <palves@redhat.com>
9731
9732 * target.c (fileio_fh_t): Make it a named struct instead of a
9733 typedef.
9734 (fileio_fh_t::is_closed): New method.
9735 (DEF_VEC_O (fileio_fh_t)): Remove.
9736 (fileio_fhandles): Now a std::vector.
9737 (is_closed_fileio_fh): Delete.
9738 (acquire_fileio_fd): Adjust. Rename parameters.
9739 (release_fileio_fd): Adjust.
9740 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9741 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9742 (target_fileio_close): Adjust.
9743
6e22e10d
SM
97442018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9745
9746 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9747 index.
9748
731f534f
PA
97492018-04-10 Pedro Alves <palves@redhat.com>
9750
9751 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9752 (scoped_finish_thread_state): New class.
9753 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9754 cleanup.
9755 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9756 (fetch_inferior_event, normal_stop): Likewise.
9757 * thread.c (finish_thread_state_cleanup): Delete.
9758
d5f4488f
SM
97592018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9760 Pedro Alves <palves@redhat.com>
9761
9762 * value.c: Include "selftest.h" and "common/array-view.h".
9763 (struct range) <operator ==>: New.
9764 (test_ranges_contain): New.
9765 (check_ranges_vector): New.
9766 (test_insert_into_bit_range_vector): New.
9767 (_initialize_values): Register selftests.
9768 * common/array-view.h (operator==, operator!=): New.
9769
b24531ed
SM
97702018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9771
9772 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9773 an iterator.
9774 * inline-frame.c: Include <algorithm>.
9775 (struct inline_state): Add constructor.
9776 (inline_state_s): Remove.
9777 (DEF_VEC_O(inline_state_s)): Remove.
9778 (inline_states): Change type to std::vector.
9779 (find_inline_frame_state): Adjust to std::vector.
9780 (allocate_inline_frame_state): Remove.
9781 (clear_inline_frame_state): Adjust to std::vector.
9782 (skip_inline_frames): Adjust to std::vector.
9783
c252925c
SM
97842018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9785
9786 * tracepoint.h (struct trace_state_variable): Add constructor.
9787 <name>: Change type to std::string.
9788 * tracepoint.c (tsv_s): Remove.
9789 (DEF_VEC_O(tsv_s)): Remove.
9790 (tvariables): Change to std::vector.
9791 (create_trace_state_variable): Adjust to std::vector.
9792 (find_trace_state_variable): Likewise.
9793 (find_trace_state_variable_by_number): Likewise.
9794 (delete_trace_state_variable): Likewise.
9795 (trace_variable_command): Adjust to std::string.
9796 (delete_trace_variable_command): Likewise.
9797 (tvariables_info_1): Adjust to std::vector.
9798 (save_trace_state_variables): Likewise.
9799 (start_tracing): Likewise.
9800 (merge_uploaded_trace_state_variables): Adjust to std::vector
9801 and std::string.
9802 * target.h (struct target_ops)
9803 <to_download_trace_state_variable>: Pass reference to
9804 trace_state_variable.
9805 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9806 * target-delegates.c: Re-generate.
9807 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9808 (mi_tsv_deleted): Likewise.
9809 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9810 * remote.c (remote_download_trace_state_variable): Change
9811 pointer to reference and adjust.
9812 * make-target-delegates (parse_argtypes): Handle references.
9813 (write_function_header): Likewise.
9814 (munge_type): Likewise.
9815
c9638d26
SM
98162018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9817
9818 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9819 string_view-selftests.c.
9820 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9821 testsuite.
9822 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9823 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9824 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9825 * unittests/basic_string_view/element_access/char/1.cc:
9826 Likewise.
9827 * unittests/basic_string_view/element_access/char/empty.cc:
9828 Likewise.
9829 * unittests/basic_string_view/element_access/char/front_back.cc:
9830 Likewise.
9831 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9832 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9833 Likewise.
9834 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9835 Likewise.
9836 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9837 Likewise.
9838 * unittests/basic_string_view/operations/compare/char/1.cc:
9839 Likewise.
9840 * unittests/basic_string_view/operations/compare/char/13650.cc:
9841 Likewise.
9842 * unittests/basic_string_view/operations/copy/char/1.cc:
9843 Likewise.
9844 * unittests/basic_string_view/operations/data/char/1.cc:
9845 Likewise.
9846 * unittests/basic_string_view/operations/find/char/1.cc:
9847 Likewise.
9848 * unittests/basic_string_view/operations/find/char/2.cc:
9849 Likewise.
9850 * unittests/basic_string_view/operations/find/char/3.cc:
9851 Likewise.
9852 * unittests/basic_string_view/operations/find/char/4.cc:
9853 Likewise.
9854 * unittests/basic_string_view/operations/rfind/char/1.cc:
9855 Likewise.
9856 * unittests/basic_string_view/operations/rfind/char/2.cc:
9857 Likewise.
9858 * unittests/basic_string_view/operations/rfind/char/3.cc:
9859 Likewise.
9860 * unittests/basic_string_view/operations/substr/char/1.cc:
9861 Likewise.
9862 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9863 * unittests/string_view-selftests.c: New file.
9864
fdc11678
SM
98652018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9866
9867 * unittests/basic_string_view/capacity/1.cc: New file.
9868 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9869 * unittests/basic_string_view/cons/char/1.cc: New file.
9870 * unittests/basic_string_view/cons/char/2.cc: New file.
9871 * unittests/basic_string_view/cons/char/3.cc: New file.
9872 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9873 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9874 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9875 * unittests/basic_string_view/element_access/char/1.cc: New file.
9876 * unittests/basic_string_view/element_access/char/2.cc: New file.
9877 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9878 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9879 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9880 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9881 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9882 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9883 * unittests/basic_string_view/include.cc: New file.
9884 * unittests/basic_string_view/inserters/char/1.cc: New file.
9885 * unittests/basic_string_view/inserters/char/2.cc: New file.
9886 * unittests/basic_string_view/inserters/char/3.cc: New file.
9887 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9888 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9889 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9890 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9891 * unittests/basic_string_view/literals/types.cc: New file.
9892 * unittests/basic_string_view/literals/values.cc: New file.
9893 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9894 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9895 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9896 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9897 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9898 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9899 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9900 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9901 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9902 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9903 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9904 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9905 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9906 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9907 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9908 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9909 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9910 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9911 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9912 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9913 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9914 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9915 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9916 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9917 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9918 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9919 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9920 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9921 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9922 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9923 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9924 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9925 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9926 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9927 * unittests/basic_string_view/operators/char/2.cc: New file.
9928 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9929 * unittests/basic_string_view/range_access/char/1.cc: New file.
9930 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9931 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9932 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9933 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9934 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9935 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9936 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9937 * unittests/basic_string_view/typedefs.cc: New file.
9938 * unittests/basic_string_view/types/1.cc: New file.
9939
8345c4a2
SM
99402018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9941
9942 * common/gdb_string_view.h: Remove libstdc++ implementation
9943 details, adjust to gdb reality.
9944 * common/gdb_string_view.tcc: Likewise.
9945 * cli/cli-script.c (struct string_view): Remove.
9946 (user_args) <m_args>: Change element type to gdb::string_view.
9947 (user_args::insert_args): Adjust.
9948
7adcdf08
SM
99492018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9950
9951 * common/gdb_string_view.h: New file.
9952 * common/gdb_string_view.tcc: New file.
9953
41260ac2
SM
99542018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9955
9956 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9957 * configure: Re-generate.
9958
0bee6dd4
PA
99592018-04-09 Pedro Alves <palves@redhat.com>
9960
9961 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9962 (set_target_gdbarch): Call
9963 gdb::observers::architecture_changed.notify instead of
9964 observer_notify_architecture_changed.
9965
6f14adc5
SM
99662018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9967
9968 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9969 (do_restore_current_traceframe_cleanup): Remove.
9970 (restore_current_traceframe_cleanup_dtor): Remove.
9971 (make_cleanup_restore_current_traceframe): Remove.
9972 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9973 New.
9974 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9975 * infrun.c (fetch_inferior_event): Use
9976 scoped_restore_current_traceframe.
9977
b2bdb8cf
SM
99782018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9979
9980 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9981 Remove.
9982 <n_allocated_type_units>: Remove.
9983 <all_type_units>: Change to std::vector.
9984 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9985 to std::vector change.
9986 (dwarf2_per_objfile::get_cutu): Likewise.
9987 (dwarf2_per_objfile::get_tu): Likewise.
9988 (create_signatured_type_table_from_index): Likewise.
9989 (create_signatured_type_table_from_debug_names): Likewise.
9990 (dw2_symtab_iter_next): Likewise.
9991 (dw2_print_stats): Likewise.
9992 (dw2_expand_all_symtabs): Likewise.
9993 (dw2_expand_marked_cus): Likewise.
9994 (dw2_debug_names_iterator::next): Likewise.
9995 (dwarf2_initialize_objfile): Likewise.
9996 (add_signatured_type_cu_to_table): Likewise.
9997 (create_all_type_units): Likewise.
9998 (add_type_unit): Likewise.
9999 (struct tu_abbrev_offset): Add constructor.
10000 (build_type_psymtabs_1): Adjust to std::vector change.
10001 (print_tu_stats): Likewise.
10002 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10003 (write_debug_names): Likewise.
10004
b76e467d
SM
100052018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10006
10007 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10008 Make an std::vector.
10009 <n_comp_units>: Remove.
10010 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10011 to std::vector change.
10012 (dwarf2_per_objfile::get_cutu): Likewise.
10013 (dwarf2_per_objfile::get_cu): Likewise.
10014 (create_cus_from_index): Likewise.
10015 (create_addrmap_from_index): Likewise.
10016 (create_addrmap_from_aranges): Likewise.
10017 (dwarf2_read_index): Likewise.
10018 (dw2_find_last_source_symtab): Likewise.
10019 (dw2_map_symtabs_matching_filename): Likewise.
10020 (dw2_symtab_iter_next): Likewise.
10021 (dw2_print_stats): Likewise.
10022 (dw2_expand_all_symtabs): Likewise.
10023 (dw2_expand_symtabs_with_fullname): Likewise.
10024 (dw2_expand_marked_cus): Likewise.
10025 (dw2_map_symbol_filenames): Likewise.
10026 (create_cus_from_debug_names): Likewise.
10027 (dwarf2_read_debug_names): Likewise.
10028 (dw2_debug_names_iterator::next): Likewise.
10029 (dwarf2_initialize_objfile): Likewise.
10030 (set_partial_user): Likewise.
10031 (dwarf2_build_psymtabs_hard): Likewise.
10032 (read_comp_units_from_section): Remove arguments, adjust to
10033 std::vector change.
10034 (create_all_comp_units): Adjust to std::vector and
10035 read_comp_units_from_section changes.
10036 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10037 change.
10038 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10039 (psyms_seen_size): Likewise.
10040 (write_gdbindex): Likewise.
10041 (write_debug_names): Likewise.
10042
12359b5e
SM
100432018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10044
10045 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10046 with dwarf2_per_objfile.
10047 (create_cus_from_index): Likewise.
10048 (create_signatured_type_table_from_index): Likewise.
10049 (dwarf2_read_index): Likewise.
10050 (dwarf2_initialize_objfile): Likewise.
10051 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10052 per_cu rather than get_dwarf2_per_objfile.
10053
ff4c9fec
SM
100542018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10055
10056 * dwarf2read.h (struct signatured_type): Forward declare.
10057 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10058 New methods.
10059 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10060 (dw2_get_cutu): ...this.
10061 (dwarf2_per_objfile::get_cu): Rename from...
10062 (dw2_get_cu): ...this.
10063 (dwarf2_per_objfile::get_tu): New.
10064 (create_addrmap_from_index): Adjust.
10065 (create_addrmap_from_aranges): Adjust.
10066 (dw2_find_last_source_symtab): Adjust.
10067 (dw2_map_symtabs_matching_filename): Adjust.
10068 (dw2_symtab_iter_next): Adjust.
10069 (dw2_print_stats): Adjust.
10070 (dw2_expand_all_symtabs): Adjust.
10071 (dw2_expand_symtabs_with_fullname): Adjust.
10072 (dw2_expand_marked_cus): Adjust.
10073 (dw_expand_symtabs_matching_file_matcher): Adjust.
10074 (dw2_map_symbol_filenames): Adjust.
10075 (dw2_debug_names_iterator::next): Adjust.
10076 (dwarf2_initialize_objfile): Adjust.
10077 (set_partial_user): Adjust.
10078 (dwarf2_build_psymtabs_hard): Adjust.
10079
5ca3fcb6
SM
100802018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10081
10082 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10083 Remove unused variables.
10084 (dw2_map_symtabs_matching_filename): Likewise.
10085 (dwarf2_record_block_ranges): Likewise.
10086 (dwarf2_read_addr_index): Likewise.
10087 (follow_die_offset): Likewise.
10088
b2e586e8
SM
100892018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10090
10091 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10092 to symbol_file_add_main.
10093
7c4e78cf
SM
100942018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10095
10096 PR mi/22299
10097 * mi/mi-console.c (do_fputc_async_safe): New.
10098 (mi_console_file::write_async_safe): New.
10099 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10100 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10101 New.
10102 * ui-file.c (ui_file::putstrn): Adjust call to
10103 fputstrn_unfiltered.
10104 * utils.c (printchar): Replace do_fputs and do_fprintf
10105 parameters by do_fputc.
10106 (fputstr_filtered): Adjust call to printchar.
10107 (fputstr_unfiltered): Likewise.
10108 (fputstrn_filtered): Likewise.
10109 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10110 printchar.
10111 * utils.h (do_fputc_ftype): New typedef.
10112 (fputstrn_unfiltered): Add do_fputc parameter.
10113
5dc026d3
SM
101142018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10115
10116 * regformats/i386/i386-avx.dat: Remove.
10117
c912f608
SM
101182018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10119
10120 PR gdb/22979
10121 * amd64-tdep.c (amd64_none_init_abi): New function.
10122 (amd64_x32_none_init_abi): New function.
10123 (_initialize_amd64_tdep): Register handlers for x86-64 and
10124 x64_32 with GDB_OSABI_NONE.
10125 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10126 GDB_OSABI_NONE osabi.
10127
26540402
SM
101282018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10129
10130 PR gdb/22980
10131 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10132 GDB_OSABI_NONE.
10133 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10134 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10135
9018be22
SM
101362018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10137
10138 * common/byte-vector.h (char_vector): New type.
10139 * target.h (target_read_alloc): Return
10140 gdb::optional<byte_vector>.
10141 (target_read_stralloc): Return gdb::optional<char_vector>.
10142 (target_get_osdata): Return gdb::optional<char_vector>.
10143 * target.c (target_read_alloc_1): Templatize. Replacement
10144 manual memory management with vector.
10145 (target_read_alloc): Change return type, adjust.
10146 (target_read_stralloc): Change return type, adjust.
10147 (target_get_osdata): Change return type, adjust.
10148 * auxv.c (struct auxv_info) <length>: Remove.
10149 <data>: Change type to gdb::optional<byte_vector>.
10150 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10151 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10152 (target_auxv_search): Adjust.
10153 (fprint_target_auxv): Adjust.
10154 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10155 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10156 (linux_make_corefile_notes): Adjust.
10157 * osdata.c (get_osdata): Adjust.
10158 * remote.c (remote_get_threads_with_qxfer): Adjust.
10159 (remote_memory_map): Adjust.
10160 (remote_traceframe_info): Adjust.
10161 (btrace_read_config): Adjust.
10162 (remote_read_btrace): Adjust.
10163 (remote_pid_to_exec_file): Adjust.
10164 * solib-aix.c (solib_aix_get_library_list): Adjust.
10165 * solib-dsbt.c (decode_loadmap): Don't free buf.
10166 (dsbt_get_initial_loadmaps): Adjust.
10167 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10168 * solib-target.c (solib_target_current_sos): Adjust.
10169 * tracepoint.c (sdata_make_value): Adjust.
10170 * xml-support.c (xinclude_start_include): Adjust.
10171 (xml_fetch_content_from_file): Adjust.
10172 * xml-support.h (xml_fetch_another): Change return type.
10173 (xml_fetch_content_from_file): Change return type.
10174 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10175 * xml-tdesc.c (file_read_description_xml): Adjust.
10176 (fetch_available_features_from_target): Change return type.
10177 (target_fetch_description_xml): Adjust.
10178 (target_read_description_xml): Adjust.
10179
14c88955
TT
101802018-04-06 Tom Tromey <tom@tromey.com>
10181
10182 * value.c (~value): Update.
10183 (struct value) <contents>: Now unique_xmalloc_ptr.
10184 (value_contents_bits_eq, allocate_value_contents)
10185 (value_contents_raw, value_contents_all_raw)
10186 (value_contents_for_printing, value_contents_for_printing_const)
10187 (set_value_enclosing_type): Update.
10188
0c7e6dd8
TT
101892018-04-06 Tom Tromey <tom@tromey.com>
10190
10191 * value.c (range_s): Remove typedef, VEC.
10192 (struct range): Add operator<.
10193 (range_lessthan): Remove.
10194 (ranges_contain): Change type.
10195 (~value): Update.
10196 (struct value) <unavailable, optimized_out>: Now std::vector.
10197 (value_entirely_available)
10198 (value_entirely_covered_by_range_vector)
10199 (value_entirely_unavailable, value_entirely_optimized_out):
10200 Update.
10201 (insert_into_bit_range_vector): Change argument type.
10202 (find_first_range_overlap): Likewise.
10203 (struct ranges_and_idx, value_contents_bits_eq)
10204 (require_not_optimized_out, require_available): Update.
10205 (ranges_copy_adjusted): Change argument types.
10206 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10207
2c8331b9
TT
102082018-04-06 Tom Tromey <tom@tromey.com>
10209
10210 * value.c (~value): Update.
10211 (struct value) <parent>: Now a value_ref_ptr.
10212 (value_parent, set_value_parent, value_address, value_copy):
10213 Update.
10214
466ce3ae
TT
102152018-04-06 Tom Tromey <tom@tromey.com>
10216
10217 * value.c (struct value): Add constructor, destructor, and member
10218 initializers.
10219 (allocate_value_lazy, value_decref): Update.
10220
062d818d
TT
102212018-04-06 Tom Tromey <tom@tromey.com>
10222
10223 * value.c (struct value) <released, next>: Remove.
10224 (all_values): Now a std::vector.
10225 (allocate_value_lazy): Update.
10226 (value_next): Remove.
10227 (value_mark, value_free_to_mark, release_value)
10228 (value_release_to_mark): Update.
10229
a6535de1
TT
102302018-04-06 Tom Tromey <tom@tromey.com>
10231
10232 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10233 (free_value_chain): Remove.
10234 * value.c (free_value_chain): Remove.
10235 (value_release_to_mark): Return a std::vector.
10236 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10237 std::vector.
10238 (check_condition): Update.
10239 * eval.c (fetch_subexp_value): Change "val_chain" to a
10240 std::vector.
10241 * breakpoint.c (update_watchpoint): Update.
10242 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10243
b5621201
TT
102442018-04-06 Tom Tromey <tom@tromey.com>
10245
10246 * value.h (free_all_values): Remove.
10247 * value.c (free_all_values): Remove.
10248
4d0266a0
TT
102492018-04-06 Tom Tromey <tom@tromey.com>
10250
10251 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10252 (value_history_chain, value_history_count): Remove.
10253 (value_history): New global.
10254 (record_latest_value, access_value_history, show_values)
10255 (preserve_values): Update.
10256
b4d61099
TT
102572018-04-06 Tom Tromey <tom@tromey.com>
10258
10259 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10260 * varobj.c (varobj_set_display_format, varobj_set_value)
10261 (install_default_visualizer, construct_visualizer)
10262 (install_new_value, ~varobj, varobj_get_value_type)
10263 (my_value_of_variable, varobj_editable_p): Update.
10264 * c-varobj.c (c_describe_child, c_value_of_variable)
10265 (cplus_number_of_children, cplus_describe_child): Update.
10266 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10267 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10268 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10269
9b558729
TT
102702018-04-06 Tom Tromey <tom@tromey.com>
10271
10272 * printcmd.c (last_examine_address): Change type to
10273 value_ref_ptr.
10274 (do_examine, x_command): Update.
10275
850645cf
TT
102762018-04-06 Tom Tromey <tom@tromey.com>
10277
10278 * value.c (release_value): Update.
10279 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10280 (struct bpstats) <val>: Now a value_ref_ptr.
10281 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10282 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10283 (~watchpoint, print_it_watchpoint, watch_command_1)
10284 (invalidate_bp_value_on_memory_change): Update.
10285
22bc8444
TT
102862018-04-06 Tom Tromey <tom@tromey.com>
10287
10288 * varobj.c (varobj_clear_saved_item)
10289 (update_dynamic_varobj_children, install_new_value, ~varobj):
10290 Update.
10291 * value.h (value_incref): Move declaration earlier.
10292 (value_decref): Rename from value_free.
10293 (struct value_ref_policy): New.
10294 (value_ref_ptr): New typedef.
10295 (struct value_deleter): Remove.
10296 (gdb_value_up): Remove typedef.
10297 (release_value): Change return type.
10298 (release_value_or_incref): Remove.
10299 * value.c (set_value_parent): Update.
10300 (value_incref): Change return type.
10301 (value_decref): Rename from value_free.
10302 (value_free_to_mark, free_all_values, free_value_chain): Update.
10303 (release_value): Return value_ref_ptr.
10304 (release_value_or_incref): Remove.
10305 (record_latest_value, set_internalvar, clear_internalvar):
10306 Update.
10307 * stack.c (info_frame_command): Don't call value_free.
10308 * python/py-value.c (valpy_dealloc, valpy_new)
10309 (value_to_value_object): Update.
10310 * printcmd.c (do_examine): Update.
10311 * opencl-lang.c (lval_func_free_closure): Update.
10312 * mi/mi-main.c (register_changed_p): Don't call value_free.
10313 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10314 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10315 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10316 value_free.
10317 * guile/scm-value.c (vlscm_free_value_smob)
10318 (vlscm_scm_from_value): Update.
10319 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10320 (frame_unwind_register_unsigned, get_frame_register_bytes)
10321 (put_frame_register_bytes): Don't call value_free.
10322 * findvar.c (address_from_register): Don't call value_free.
10323 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10324 * dwarf2loc.c (entry_data_value_free_closure)
10325 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10326 (dwarf2_evaluate_loc_desc_full): Update.
10327 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10328 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10329 (~watchpoint, watch_command_1)
10330 (invalidate_bp_value_on_memory_change): Update.
10331 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10332
7f8a5d38
SM
103332018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10334
10335 PR gdb/23022
10336 * warning.m4: Add -Wno-error=deprecated-register.
10337 * configure: Re-generate.
10338
8a76bd3b
TT
103392018-04-05 Tom Tromey <tom@tromey.com>
10340
10341 * linespec.h: Remove include of "vec.h".
10342
8e8d776e
TT
103432018-04-05 Tom Tromey <tom@tromey.com>
10344
10345 * linespec.c (typep): Remove typedef.
10346 (find_methods, find_superclass_methods): Take a std::vector.
10347 (find_method): Use std::vector.
10348
9b2f8581
TT
103492018-04-05 Tom Tromey <tom@tromey.com>
10350
10351 * utils.c (compare_strings): Remove.
10352 * utils.h (compare_strings): Remove.
10353 * objc-lang.h (find_imps): Update.
10354 * objc-lang.c (find_methods): Take a std::vector.
10355 (uniquify_strings, find_imps): Likewise.
10356 * linespec.c (find_methods): Take a std::vector.
10357 (decode_objc): Use std::vector.
10358 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10359 a std::vector.
10360 (find_method, find_function_symbols): Use std::vector.
10361
459a2e4c
TT
103622018-04-05 Tom Tromey <tom@tromey.com>
10363
10364 * completer.c (completion_tracker::completion_tracker): Remove
10365 cast.
10366 (completion_tracker::discard_completions): Likewise.
10367 * breakpoint.c (ambiguous_names_p): Remove cast.
10368 * ada-lang.c (_initialize_ada_language): Remove cast.
10369 * utils.h (streq): Update.
10370 (streq_hash): Add new declaration.
10371 * utils.c (streq): Return bool.
10372 (streq_hash): New function.
10373
9be2c17a
TT
103742018-04-05 Tom Tromey <tom@tromey.com>
10375
10376 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10377 Remove a string copy.
10378
f73c6ece
TT
103792018-04-05 Tom Tromey <tom@tromey.com>
10380
10381 * linespec.c (filter_results): Use std::vector.
10382 (decode_line_2, decode_line_full): Update.
10383
53a0f8a2
TT
103842018-04-05 Tom Tromey <tom@tromey.com>
10385
10386 * linespec.c (canonical_to_fullform): Return std::string.
10387 (filter_results): Update.
10388 (struct decode_line_2_item): Add constructor.
10389 <fullform, displayform>: Now std::string.
10390 (decode_line_2_compare_items): Now a std::sort comparator.
10391 (decode_line_2): Update.
10392
a5b5adf5
TT
103932018-04-05 Tom Tromey <tom@tromey.com>
10394
10395 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10396 (unexpected_linespec_error): Update.
10397 (linespec_parse_basic, parse_linespec): Update.
10398
6a307fc5
TT
103992018-04-05 Tom Tromey <tom@tromey.com>
10400
10401 * linespec.c (linespec_parse_basic): Reindent.
10402
41c1efc6
TT
104032018-04-05 Tom Tromey <tom@tromey.com>
10404
10405 * minsyms.h (iterate_over_minimal_symbols): Update.
10406 * minsyms.c (iterate_over_minimal_symbols): Take a
10407 gdb::function_view.
10408 * linespec.c (struct collect_minsyms): Remove.
10409 (compare_msyms): Now a std::sort comparator.
10410 (add_minsym): Add parameters.
10411 (search_minsyms_for_name): Update. Use std::vector.
10412
c5edbf3d
TT
104132018-04-03 Tom Tromey <tom@tromey.com>
10414
10415 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10416 gdb::byte_vector.
10417
b39efc48
WP
104182018-04-02 Weimin Pan <weimin.pan@oracle.com>
10419
10420 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10421
121ad66c 104222018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
10423
10424 PR gdb/16959
10425 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10426 printing static type.
10427
09473be8
TT
104282018-04-01 Tom Tromey <tom@tromey.com>
10429
10430 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10431 (rs6000_xfer_shared_libraries): Update.
10432
ec1f2d91
SM
104332018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10434
10435 * common/gdb_vecs.h (char_ptr): Remove.
10436 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10437
d8611974
SM
104382018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10439
10440 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10441 with std::vector.
10442 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10443
a18ba4e4
SM
104442018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10445
10446 * tracepoint.h (struct uploaded_tp): Initialize fields.
10447 <actions, step_actions, cmd_strings>: Change type to
10448 std::vector<char *>.
10449 * tracepoint.c (get_uploaded_tp): Allocate with new.
10450 (free_uploaded_tps): Free with delete.
10451 (parse_tracepoint_definition): Adjust to std::vector change.
10452 * breakpoint.c (read_uploaded_action): Likewise.
10453 (create_tracepoint_from_upload): Likewise.
10454 * ctf.c (ctf_write_uploaded_tp): Likewise.
10455 (SET_ARRAY_FIELD): Likewise.
10456 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10457
a7961323
TT
104582018-03-30 Tom Tromey <tom@tromey.com>
10459
10460 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10461 std::unique_ptr.
10462 (svr4_keep_data_in_core): Update.
10463 (svr4_read_so_list): Update.
10464
e83e4e24
TT
104652018-03-30 Tom Tromey <tom@tromey.com>
10466
10467 * windows-nat.c (handle_output_debug_string, handle_exception):
10468 Update.
10469 * target.h (target_read_string): Update.
10470 * target.c (target_read_string): Change "string" to
10471 unique_xmalloc_ptr.
10472 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10473 Update.
10474 * solib-frv.c (frv_current_sos): Update.
10475 * solib-dsbt.c (dsbt_current_sos): Update.
10476 * solib-darwin.c (darwin_current_sos): Update.
10477 * linux-thread-db.c (inferior_has_bug): Update.
10478 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10479 Update. Remove alloca.
10480 * ada-lang.c (ada_main_name): Update.
10481
263db9a1
TT
104822018-03-30 Tom Tromey <tom@tromey.com>
10483
10484 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10485 (struct dwo_file_deleter): New.
10486 (dwo_file_up): New typedef.
10487 (open_and_init_dwo_file): Use dwo_file_up.
10488 (free_dwo_file_cleanup): Remove.
10489
5dafb3d1
TT
104902018-03-30 Tom Tromey <tom@tromey.com>
10491
10492 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10493 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10494
11ed8cad
TT
104952018-03-30 Tom Tromey <tom@tromey.com>
10496
10497 * dwarf2read.c (class free_cached_comp_units): New class.
10498 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10499 (free_cached_comp_units): Remove function.
10500
9ae79dac
TT
105012018-03-30 Tom Tromey <tom@tromey.com>
10502
10503 * utils.h (make_cleanup_unpush_target): Remove.
10504 * inf-ptrace.c (struct target_unpusher): New.
10505 (target_unpush_up) New typedef.
10506 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10507 target_unpush_up.
10508 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10509
5aa89276
TT
105102018-03-27 Tom Tromey <tom@tromey.com>
10511
10512 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10513
1dbeed45
TT
105142018-03-27 Pedro Alves <palves@redhat.com>
10515 Tom Tromey <tom@tromey.com>
10516
10517 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10518 destructor. Now a class.
10519 (gdb_readline_wrapper_cleanup): Remove function.
10520 (gdb_readline_wrapper): Remove cleanups.
10521
c819b2c0
TT
105222018-03-27 Tom Tromey <tom@tromey.com>
10523
10524 * typeprint.h (struct type_print_options) <local_typedefs,
10525 global_typedefs>: Remove "struct" keyword.
10526 (class typedef_hash_table): New class.
10527 (recursively_update_typedef_hash, add_template_parameters)
10528 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10529 (find_typedef_in_hash): Don't declare.
10530 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10531 (typedef_hash_table::recursively_update): Rename from
10532 recursively_update_typedef_hash. Now a member.
10533 (typedef_hash_table::add_template_parameters): Rename from
10534 add_template_parameters. Now a member.
10535 (typedef_hash_table::typedef_hash_table): Now a constructor;
10536 rename from create_typedef_hash.
10537 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10538 rename from free_typedef_hash.
10539 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10540 (do_free_global_table): Remove.
10541 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10542 from copy_type_recursive.
10543 (create_global_typedef_table): Remove.
10544 (typedef_hash_table::find_global_typedef): Now a member of
10545 typedef_hash_table.
10546 (typedef_hash_table::find_typedef): Rename from
10547 find_typedef_in_hash; now a member.
10548 (whatis_exp): Update.
10549 * extension.h (struct ext_lang_type_printers): Add constructor and
10550 destructor.
10551 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10552 declare.
10553 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10554 Now a constructor; rename from start_ext_lang_type_printers.
10555 (ext_lang_type_printers): Now a destructor; rename from
10556 free_ext_lang_type_printers.
10557 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10558 Update.
10559 (c_type_print_base_struct_union): Update. Remove cleanups.
10560
608219fb
TT
105612018-03-27 Tom Tromey <tom@tromey.com>
10562
10563 * dwarf-index-write.c: Include <cmath>.
10564
3fcded8f
JB
105652018-03-27 Joel Brobecker <brobecker@adacore.com>
10566
10567 * NEWS: Add entry describing new "set|show varsize-limit" command.
10568 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10569 command.
10570 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10571 "set variable".
10572
cd4fb1b2
SM
105732018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10574
10575 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10576 dwarf-index-write.c
10577 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10578 * dwarf-index-common.c: New file.
10579 * dwarf-index-common.h: New file.
10580 * dwarf-index-write.c: New file.
10581 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10582 (struct dwarf2_section_info): Move from here.
10583 (dwarf2_section_info_def): Likewise.
10584 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10585 (offset_type): Likewise.
10586 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10587 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10588 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10589 (byte_swap): Likewise.
10590 (MAYBE_SWAP): Likewise.
10591 (dwarf2_per_cu_ptr): Likewise.
10592 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10593 (struct tu_stats): Likewise.
10594 (struct dwarf2_per_objfile): Likewise.
10595 (struct dwarf2_per_cu_data): Likewise.
10596 (struct signatured_type): Likewise.
10597 (sig_type_ptr): Likewise.
10598 (DEF_VEC_P (sig_type_ptr)): Likewise.
10599 (INDEX4_SUFFIX): Likewise.
10600 (INDEX5_SUFFIX): Likewise.
10601 (DEBUG_STR_SUFFIX): Likewise.
10602 (dwarf2_read_section): Make non-static.
10603 (mapped_index_string_hash): Move from here.
10604 (dwarf5_djb_hash): Likewise.
10605 (file_write): Likewise.
10606 (class data_buf): Likewise.
10607 (struct symtab_index_entry): Likewise.
10608 (struct mapped_symtab): Likewise.
10609 (find_slot): Likewise.
10610 (hash_expand): Likewise.
10611 (add_index_entry): Likewise.
10612 (uniquify_cu_indices): Likewise.
10613 (class c_str_view): Likewise.
10614 (class c_str_view_hasher): Likewise.
10615 (class vector_hasher): Likewise.
10616 (write_hash_table): Likewise.
10617 (psym_index_map): Likewise.
10618 (struct addrmap_index_data): Likewise.
10619 (add_address_entry): Likewise.
10620 (add_address_entry_worker): Likewise.
10621 (write_address_map): Likewise.
10622 (symbol_kind): Likewise.
10623 (write_psymbols): Likewise.
10624 (struct signatured_type_index_data): Likewise.
10625 (write_one_signatured_type): Likewise.
10626 (recursively_count_psymbols): Likewise.
10627 (recursively_write_psymbols): Likewise.
10628 (class debug_names): Likewise.
10629 (check_dwarf64_offsets): Likewise.
10630 (psyms_seen_size): Likewise.
10631 (write_gdbindex): Likewise.
10632 (write_debug_names): Likewise.
10633 (assert_file_size): Likewise.
10634 (write_psymtabs_to_index): Likewise.
10635 (save_gdb_index_command): Likewise.
10636 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10637 command.
10638 * dwarf2read.h: New file.
10639
59cc4834
JB
106402018-03-27 Joel Brobecker <brobecker@adacore.com>
10641
10642 PR gdb/22670
10643 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10644 symbol name if the CU's language stores symbol names in linkage
10645 format.
10646 * language.h (struct language_defn)
10647 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10648 all instances of this struct.
10649
67501539
TT
106502018-03-26 Tom Tromey <tom@tromey.com>
10651
10652 * stack.c (backtrace_command_1): Remove verbose code.
10653
76c939ac
TT
106542018-03-26 Tom Tromey <tom@tromey.com>
10655
10656 * python/py-framefilter.c (py_print_type): Don't catch
10657 exceptions. Return void.
10658 (py_print_value): Likewise.
10659 (py_print_single_arg): Likewise.
10660 (enumerate_args): Don't catch exceptions.
10661 (py_print_args): Likewise.
10662 (py_print_frame): Likewise.
10663 (gdbpy_apply_frame_filter): Catch exceptions here.
10664
9507b29c
TT
106652018-03-26 Tom Tromey <tom@tromey.com>
10666
10667 * stack.c (_initialize_stack): Remove trailing newlines from help
10668 text. Add "Usage" line to "backtrace" help.
10669
eb68e487
TT
106702018-03-26 Tom Tromey <tom@tromey.com>
10671
10672 PR python/16486:
10673 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10674
1f111921
TT
106752018-03-26 Tom Tromey <tom@tromey.com>
10676
10677 * python/py-framefilter.c (py_print_single_arg): Return
10678 EXT_LANG_BT_ERROR from catch.
10679
fb7eb8b5
TT
106802018-03-26 Tom Tromey <tom@tromey.com>
10681
10682 PR backtrace/15584:
10683 * stack.c (backtrace_command_1): Move some code into no-filters
10684 "if".
10685
4ca59a9f
TT
106862018-03-26 Tom Tromey <tom@tromey.com>
10687
10688 * python/py-framefilter.c (throw_quit_or_print_exception): New
10689 function.
10690 (gdbpy_apply_frame_filter): Use it.
10691
92256134
TT
106922018-03-26 Tom Tromey <tom@tromey.com>
10693
10694 PR cli/17716:
10695 * python/py-framefilter.c (py_print_type, py_print_value)
10696 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10697 RETURN_MASK_ERROR.
10698
7a630bc2
TT
106992018-03-26 Tom Tromey <tom@tromey.com>
10700
10701 * python/py-framefilter.c (enumerate_args): Use
10702 gdb::unique_xmalloc_ptr.
10703
63283d4a
TT
107042018-03-26 Tom Tromey <tom@tromey.com>
10705
10706 * python/py-framefilter.c (py_print_frame): Return
10707 EXT_LANG_BT_OK.
10708 (gdbpy_apply_frame_filter): Update comment.
10709 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10710 Remove.
10711 <EXT_LANG_BT_NO_FILTERS>: Change value.
10712
978d6c75
TT
107132018-03-26 Tom Tromey <tom@tromey.com>
10714
10715 PR backtrace/15582:
10716 * stack.c (backtrace_command): Parse "hide" argument.
10717 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10718 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10719 constant.
10720
1cf7e640
TT
107212018-03-26 Tom Tromey <tom@tromey.com>
10722
10723 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10724 add "flags".
10725 (backtrace_command): Remove "fulltrace", add "flags".
10726
ea3b0687
TT
107272018-03-26 Tom Tromey <tom@tromey.com>
10728
10729 * stack.c (backtrace_command): Rewrite command line parsing.
10730
9f034d75
SM
107312018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10732
10733 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10734
ce1459e5
SM
107352018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10736
10737 * filename-seen-cache.h: Add include guard.
10738
4f7ae6f5
KS
107392018-03-26 Keith Seitz <keiths@redhat.com>
10740
10741 * symfile.c (place_section): Remove "struct" from section_addr_info
10742 in comment.
10743 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10744 "struct" keyword from section_addr_info.
10745
5cd3e386
AH
107462018-03-26 Alan Hayward <alan.hayward@arm.com>
10747
10748 * regformats/regdef.h (reg): Add constructors.
10749
3e5ef9a4
PA
107502018-03-25 Pedro Alves <palves@redhat.com>
10751
10752 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10753 if then/else bodies in var_func_name extraction.
10754
c88d2fcc 107552018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
10756
10757 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10758 lookup_minimal_symbol() to find symbol entry.
10759 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10760
b7fee5a3
KS
107612018-03-23 Keith Seitz <keiths@redhat.com>
10762
10763 PR c++/22968
10764 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10765 nested type definitions for C++, too.
10766
2cc9b304
TT
107672018-03-23 Tom Tromey <tom@tromey.com>
10768
10769 * machoread.c (struct oso_el): Add a constructor. Don't define as
10770 a typedef.
10771 (macho_register_oso): Remove.
10772 (macho_symtab_read): Take a std::vector.
10773 (oso_el_compare_name): Now a std::sort comparator.
10774 (macho_symfile_read_all_oso): Take a std::vector.
10775 (macho_symfile_read): Use std::vector. Remove cleanups.
10776
a2b2bc12
TT
107772018-03-22 Tom Tromey <tom@tromey.com>
10778
10779 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10780 (record_full_goto_bookmark): Use std::string.
10781
7a8f494c
PFC
107822018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10783
10784 PR tdep/18295
10785 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10786 a single mask.
10787
dd6d677f
PFC
107882018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10789
10790 * rs6000-tdep.c (store_insn_p): New function.
10791 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10792 and cr_reg to their unshifted values. Use store_insn_p to
10793 match LR saves using either R1 or fdata->alloca_reg. Use
10794 store_insn_p to match CR saves. Set alloca_reg_offset
10795 when alloca_reg and framep are set. Remove lr_reg shift
10796 when assigning to fdata->lr_register.
10797
26d6cec4
AA
107982018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10799
10800 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10801 command line args instead of emitting a warning.
10802
5d9310c4
SM
108032018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10804
10805 * tracepoint.h (struct static_tracepoint_marker): Initialize
10806 fields, define default constructor, move constructor and move
10807 assignment, disable the rest.
10808 <str_id, extra>: Make std::string.
10809 (release_static_tracepoint_marker): Remove.
10810 (free_current_marker): Remove.
10811 * tracepoint.c (free_current_marker): Remove.
10812 (parse_static_tracepoint_marker_definition): Adjust to
10813 std::string, use new hex2str overload.
10814 (release_static_tracepoint_marker): Remove.
10815 (print_one_static_tracepoint_marker): Get marker by reference
10816 and adjust to std::string.
10817 (info_static_tracepoint_markers_command): Adjust to std::vector
10818 changes
10819 * target.h (static_tracepoint_marker_p): Remove typedef.
10820 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10821 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10822 bool.
10823 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10824 * target-debug.h
10825 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10826 (target_debug_print_std_vector_static_tracepoint_marker): New.
10827 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10828 to...
10829 (target_debug_print_static_tracepoint_marker_p): ... this.
10830 * target-delegates.c: Re-generate.
10831 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10832 Make std::string.
10833 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10834 (decode_static_tracepoint_spec): Adjust to std::vector.
10835 (tracepoint_print_one_detail): Adjust to std::string.
10836 (strace_marker_decode_location): Adjust to std::string.
10837 (update_static_tracepoint): Adjust to std::string, remove call
10838 to release_static_tracepoint_marker.
10839 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10840 Adjust to std::vector.
10841 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10842 (remote_static_tracepoint_markers_by_strid): Adjust to
10843 std::vector.
10844 * common/rsp-low.h (hex2str): New overload with explicit count
10845 of bytes.
10846 * common/rsp-low.c (hex2str): New overload with explicit count
10847 of bytes.
10848 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10849 (_initialize_rsp_low_selftests): Add test_hex2str test.
10850 * unittests/tracepoint-selftests.c
10851 (test_parse_static_tracepoint_marker_definition): Adjust to
10852 std::string.
10853
62c222b6
SM
108542018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10855
10856 * tracepoint.c (parse_static_tracepoint_marker_definition):
10857 Consider case where the definition is followed by more
10858 definitions.
10859 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10860 tracepoint-selftests.c.
10861 * unittests/tracepoint-selftests.c: New.
10862
7eb2418f
PFC
108632018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10864
10865 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10866 Carvalho.
10867
7cbe16e9
SR
108682018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10869
3d6b3b82 10870 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 10871
4ee89e90
SR
108722018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10873
3d6b3b82 10874 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 10875
92630041
TT
108762018-03-19 Tom Tromey <tom@tromey.com>
10877
10878 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10879 "IDENT" production.
10880
76727919
TT
108812018-03-19 Pedro Alves <palves@redhat.com>
10882 Tom Tromey <tom@tromey.com>
10883
10884 * unittests/observable-selftests.c: New file.
10885 * common/observable.h: New file.
10886 * observable.h: New file.
10887 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10888 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10889 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10890 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10891 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10892 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10893 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10894 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10895 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10896 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10897 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10898 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10899 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10900 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10901 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10902 tui/tui-interp.c, valops.c: Update all users.
10903 * tui/tui-hooks.c (tui_bp_created_observer)
10904 (tui_bp_deleted_observer, tui_bp_modified_observer)
10905 (tui_inferior_exit_observer, tui_before_prompt_observer)
10906 (tui_normal_stop_observer, tui_register_changed_observer):
10907 Remove.
10908 (tui_observers_token): New global.
10909 (attach_or_detach, tui_attach_detach_observers): New functions.
10910 (tui_install_hooks, tui_remove_hooks): Use
10911 tui_attach_detach_observers.
10912 * record-btrace.c (record_btrace_thread_observer): Remove.
10913 (record_btrace_thread_observer_token): New global.
10914 * observer.sh: Remove.
10915 * observer.c: Rename to observable.c.
10916 * observable.c (namespace gdb_observers): Define new objects.
10917 (observer_debug): Move into gdb_observers namespace.
10918 (struct observer, struct observer_list, xalloc_observer_list_node)
10919 (xfree_observer_list_node, generic_observer_attach)
10920 (generic_observer_detach, generic_observer_notify): Remove.
10921 (_initialize_observer): Update.
10922 Don't include observer.inc.
10923 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10924 (clean mostlyclean): Likewise.
10925 (observer.h, observer.inc): Remove targets.
10926 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10927 (COMMON_SFILES): Use observable.c, not observer.c.
10928 * .gitignore: Remove observer.h.
10929
1cb1f3da
TT
109302018-03-18 Tom Tromey <tom@tromey.com>
10931
10932 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10933 gdb::def_vector.
10934 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10935
a06ab151
TT
109362018-03-17 Tom Tromey <tom@tromey.com>
10937
10938 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10939
770623f7
TT
109402018-03-17 Tom Tromey <tom@tromey.com>
10941
10942 * target.c (class scoped_target_fd): New.
10943 (target_fileio_close_cleanup): Remove.
10944 (target_fileio_read_alloc_1): Use scoped_target_fd.
10945
39be3c7e
SM
109462018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10947
10948 * silent-rules.mk: New.
10949 * Makefile.in: Include silent-rules.mk
10950 (srcdir, VPATH, top_srcdir): Move up.
10951 (COMPILE): Add ECHO_CXX.
10952 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10953 (init.c): Add ECHO_INIT_C.
10954 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10955 (version.c): Add ECHO_GEN.
10956 (printcmd.o): Add ECHO_CXX.
10957 (target-float.o): Add ECHO_CXX.
10958 (ada-exp.o): Add ECHO_CXX.
10959 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10960 (insight$(EXEEXT)): Add ECHO_CXXLD.
10961 * gnulib/configure.ac: Add AM_SILENT_RULES.
10962 * gnulib/aclocal.m4: Re-generate.
10963 * gnulib/configure: Re-generate.
10964 * gnulib/import/Makefile.in: Re-generate.
10965
37e136b1
TT
109662018-03-16 Tom Tromey <tom@tromey.com>
10967
10968 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10969 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10970 * utils.c (do_free_section_addr_info)
10971 (make_cleanup_free_section_addr_info): Remove.
10972 * symfile.h (struct other_sections): Add constructor.
10973 (struct section_addr_info): Remove.
10974 (section_addr_info): New typedef.
10975 (struct sym_fns) <sym_offsets>: Change type of parameter.
10976 (build_section_addr_info_from_objfile)
10977 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10978 (default_symfile_offsets, symbol_file_add)
10979 (symbol_file_add_from_bfd)
10980 (build_section_addr_info_from_section_table): Update.
10981 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10982 * symfile.c (alloc_section_addr_info): Remove.
10983 (build_section_addr_info_from_section_table): Change return type.
10984 Update.
10985 (build_section_addr_info_from_bfd)
10986 (build_section_addr_info_from_objfile): Likewise.
10987 (free_section_addr_info): Remove.
10988 (relative_addr_info_to_section_offsets): Change type of "addrs".
10989 (addrs_section_compar): Now a std::sort comparator.
10990 (addrs_section_sort): Change return type.
10991 (addr_info_make_relative): Change type of "addrs". Update.
10992 (default_symfile_offsets, syms_from_objfile_1)
10993 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10994 (symbol_file_add_separate): Update.
10995 (symbol_file_add): Change type of "addrs". Update.
10996 (add_symbol_file_command): Update. Remove cleanups.
10997 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10998 cleanups.
10999 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11000 * solib.c (solib_read_symbols): Update.
11001 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11002 * machoread.c (macho_symfile_offsets): Update.
11003 * jit.c (jit_bfd_try_read_symtab): Update.
11004
03afa6ef
SM
110052018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11006
11007 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11008 unittests/utils-selftests.c.
11009 * unittests/utils-selftests.c: New file.
11010
3ae9ce5d
TT
110112018-03-14 Tom Tromey <tom@tromey.com>
11012
11013 PR cli/14977:
11014 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11015 for NULL.
11016
b8c2339b
TT
110172018-03-14 Tom Tromey <tom@tromey.com>
11018
11019 PR cli/19918:
11020 * printcmd.c (printf_pointer): Allow "-" in format.
11021
80ae639d
TT
110222018-03-14 Tom Tromey <tom@tromey.com>
11023
11024 * printcmd.c (_initialize_printcmd): Add usage to printf.
11025
0d671d99
YQ
110262018-03-14 Yao Qi <qiyao@sourceware.org>
11027
11028 * MAINTAINERS: Update my email address.
11029
b577b6af
TT
110302018-03-13 Tom Tromey <tom@tromey.com>
11031
11032 * machoread.c (macho_check_dsym): Change filenamep to a
11033 std::string*.
11034 (macho_symfile_read): Update.
11035 * symfile.c (load_command): Use std::string.
11036
89a3b63e
AB
110372018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11038
11039 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11040 to error message string.
11041 (riscv_register_name): Use xsnprintf instead of sprintf.
11042 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11043 internal_error.
11044 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11045 error.
11046 (riscv_push_dummy_call): Likewise.
11047
984c7238
TT
110482018-03-12 Tom Tromey <tom@tromey.com>
11049
11050 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11051 Use gdb::byte_vector.
11052 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11053
933522d1
YQ
110542018-03-12 Yao Qi <yao.qi@linaro.org>
11055
11056 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11057 parameter type to readable_regcache.
11058 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11059 the declaration.
11060
be2daae6
TT
110612018-03-11 Tom Tromey <tom@tromey.com>
11062
11063 * dwarf2read.c (struct nextfield): Add initializers.
11064 (struct nextfnfield): Remove.
11065 (struct fnfieldlist): Add initializers. Remove "length" and
11066 "head", use std::vector.
11067 (struct decl_field_list): Remove.
11068 (struct field_info): Add initializers.
11069 <fields, baseclasses>: Now std::vector.
11070 <nbaseclasses, nfnfields, typedef_field_list_count,
11071 nested_types_list_count>: Remove.
11072 (dwarf2_add_field, dwarf2_add_type_defn)
11073 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11074 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11075 (process_structure_scope): Update.
11076
484cf504
TT
110772018-03-11 Tom Tromey <tom@tromey.com>
11078
11079 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11080 for use by std::sort.
11081 (build_type_psymtabs_1): Use std::vector.
11082
9bd8e0b0
EZ
110832018-03-09 Eli Zaretskii <eliz@gnu.org>
11084
11085 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11086 and LIBMPFR in the printed configuration.
11087
5dc1a704
TT
110882018-03-08 Tom Tromey <tom@tromey.com>
11089
11090 * source.c (get_filename_and_charpos): Use scoped_fd.
11091 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11092 (procfs_pidlist): Likewise.
11093 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11094 (iterate_over_mappings): Likewise.
11095
fdf07f3a
TT
110962018-03-08 Tom Tromey <tom@tromey.com>
11097
11098 * infcall.c (struct call_return_meta_info)
11099 <stack_temporaries_enabled>: Remove.
11100 (get_call_return_value, call_function_by_hand_dummy): Update.
11101 * thread.c (disable_thread_stack_temporaries): Remove.
11102 (enable_thread_stack_temporaries): Remove.
11103 (thread_stack_temporaries_enabled_p): Return bool.
11104 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11105 (get_last_thread_stack_temporary): Update.
11106 * eval.c (evaluate_subexp): Update.
11107 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11108 class, not a function.
11109 (value_ptr, value_vec): Remove typedefs.
11110 (class thread_info) <stack_temporaries_enabled>: Now bool.
11111 <stack_temporaries>: Now a std::vector.
11112 (thread_stack_temporaries_enabled_p)
11113 (value_in_thread_stack_temporaries): Return bool.
11114
567a3e54
SM
111152018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11116
11117 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11118 (getpkt_or_notif_sane_1): Likewise.
11119
00b40057
SM
111202018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11121
11122 * build-id.c (build_id_to_debug_bfd): Use std::string.
11123
a8dbfd58
SM
111242018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11125
11126 * build-id.c (find_separate_debug_file_by_buildid): Return
11127 std::string.
11128 * build-id.h (find_separate_debug_file_by_buildid): Return
11129 std::string.
11130 * coffread.c (coff_symfile_read): Adjust to std::string.
11131 * elfread.c (elf_symfile_read): Adjust to std::string.
11132 * symfile.c (separate_debug_file_exists): Change parameter to
11133 std::string.
11134 (find_separate_debug_file): Return std::string.
11135 (find_separate_debug_file_by_debuglink): Return std::string.
11136 * symfile.h (find_separate_debug_file_by_debuglink): Return
11137 std::string.
11138
e6a58aa8
SM
111392018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11140
11141 * common/xml-utils.c (xml_escape_text): Move code to...
11142 (xml_escape_text_append): ... this new function.
11143 * common/xml-utils.h (xml_escape_text_append): New declaration.
11144 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11145 New function.
11146 (_initialize_xml_utils): register test_xml_escape_text_append as
11147 a selftest.
11148
4ef0bef6
AH
111492018-03-07 Alan Hayward <alan.hayward@arm.com>
11150
11151 * defs.h: Remove MAX_REGISTER_SIZE.
11152 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11153 asserts.
11154 * python/py-unwind.c (pyuw_sniffer): Likewise.
11155
e0d3522b
TT
111562018-03-07 Tom Tromey <tom@tromey.com>
11157
11158 * linux-tdep.c (linux_info_proc): Update.
11159 * target.h (struct target_ops) <to_fileio_readlink>: Return
11160 optional<string>.
11161 (target_fileio_readlink): Return optional<string>.
11162 * remote.c (remote_hostio_readlink): Return optional<string>.
11163 * inf-child.c (inf_child_fileio_readlink): Return
11164 optional<string>.
11165 * target.c (target_fileio_readlink): Return optional<string>.
11166
ea005f31
AB
111672018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11168
11169 * regcache.c (cooked_read_test): Add riscv to the list of
11170 architectures that have a save_reggroup.
11171
e95a97d4
AA
111722018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11173
11174 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11175 value is not a dynamic class object.
11176
d8344f3d
TT
111772018-03-06 Tom Tromey <tom@tromey.com>
11178
11179 * rust-exp.y: Formatting fixes.
11180
9add17f2
AB
111812018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11182
11183 * riscv-tdep.c (riscv_register_name): Remove target description
11184 support.
11185 (riscv_gdbarch_init): Remove target description check.
11186
c9486dfe
AB
111872018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11188
11189 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11190 comment.
11191 * riscv-tdep.h: Likewise.
11192
d74aff3d
AB
111932018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11194
11195 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11196 (riscv_pseudo_register_write): Delete.
11197 (riscv_gdbarch_init): Remove all use of pseudo registers.
11198
7ea78b59
SM
111992018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11200
11201 * record-btrace.c (btrace_print_lines): Replace cleanup
11202 parameter with RAII equivalents.
11203 (btrace_insn_history): Replace cleanup with RAII equivalents.
11204 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11205 make_cleanup_ui_out_tuple_begin_end): Remove.
11206 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11207 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11208 make_cleanup_ui_out_list_begin_end): Remove.
11209
53127008
SM
112102018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11211
11212 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11213 parameter types to std::vector. Use bool.
11214 (record_btrace_wait): Replace VEC(tp_t) with
11215 std::vector<thread_info *>.
11216 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11217
228f1508
SM
112182018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11219
11220 * record-btrace.c (record_btrace_disable_callback): Remove.
11221 (struct scoped_btrace_disable): New.
11222 (record_btrace_open): Use scoped_btrace_disable.
11223
b2970c23
AB
112242018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11225
11226 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11227 reading values from registers.
11228
fb294655
AB
112292018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11230
11231 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11232 where appropriate.
11233
cab5bb9d
AB
112342018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11235
11236 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11237 change parameter type. Use GDB's print functions, and use
11238 core_addr_to_string where appropriate.
11239 (riscv_push_dummy_call): Use core_addr_to_string where
11240 appropriate, update call to riscv_print_arg_location, and reindent
11241 a few lines.
11242 (riscv_return_value): Update call to riscv_print_arg_location.
11243
dbbb1059
AB
112442018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11245 Tim Newsome <tim@sifive.com>
11246 Albert Ou <a0u@eecs.berkeley.edu>
11247 Darius Rad <darius@bluespec.com>
11248
11249 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11250 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11251 (ALLDEPFILES): Add riscv-tdep.c
11252 * configure.tgt: Add riscv support.
11253 * riscv-tdep.c: New file.
11254 * riscv-tdep.h: New file.
11255 * NEWS: Mention new target.
11256 * MAINTAINERS: Add entry for riscv.
11257
5dc43913
AB
112582018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11259
11260 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11261 fields within aggregates.
11262
3dea1ef7
SM
112632018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11264
11265 * record-btrace.c (btrace_print_lines): Change type of flags to
11266 gdb_disassembly_flags.
11267
7efba073
JB
112682018-03-04 John Baldwin <jhb@FreeBSD.org>
11269
11270 * fbsd-nat.c: Include "inf-ptrace.h".
11271 (USE_SIGTRAP_SIGINFO): Conditionally define.
11272 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11273 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11274 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11275 function.
11276 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11277 Likewise.
11278 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11279 Likewise.
11280 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11281 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11282 "supports_stopped_by_hw_breakpoint" target methods.
11283
386a8676
JB
112842018-03-04 John Baldwin <jhb@FreeBSD.org>
11285
11286 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11287 * fbsd-nat.c (debug_fbsd_nat): New variable.
11288 (show_fbsd_nat_debug): New function.
11289 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11290 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11291
12279366
JB
112922018-03-04 John Baldwin <jhb@FreeBSD.org>
11293
11294 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11295 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11296 prototype.
11297 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11298 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11299 method.
11300
54693cf5
SM
113012018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11302
11303 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11304 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11305
ccb2231c
SM
113062018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11307
11308 * charset.c (struct charset_vector): New.
11309 (charsets): Change type to charset_vector.
11310 (find_charset_names): Adjust.
11311 (add_one): Adjust.
11312 (_initialize_charset): Adjust.
11313
6fb16ce6
SM
113142018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11315
11316 * progspace.h (struct program_space) <deleted_solibs>: Change
11317 type to std::vector<std::string>.
11318 * progspace.c (clear_program_space_solib_cache): Adjust.
11319 * breakpoint.c (print_solib_event): Adjust.
11320 (check_status_catch_solib): Adjust.
11321 * solib.c (update_solib_list): Adjust.
11322 * ui-out.h (class ui_out) <field_string>: New overload.
11323 * ui-out.c (ui_out::field_string): New overload.
11324
564b1e3f
SM
113252018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11326
11327 * progspace.h (struct program_space): Add constructor and
11328 destructor, initialize fields.
11329 (add_program_space): Remove.
11330 * progspace.c (add_program_space): Rename to...
11331 (program_space::program_space): ... this.
11332 (release_program_space): Rename to...
11333 (program_space::~program_space): ... this.
11334 (delete_program_space): Use delete to delete program_space.
11335 (initialize_progspace): Use new to allocate program_space.
11336 * inferior.c (add_inferior_with_spaces): Likewise.
11337 (clone_inferior_command): Likewise.
11338 * infrun.c (follow_fork_inferior): Likewise.
11339 (handle_vfork_child_exec_or_exit): Likewise.
11340
e80aaf61
SM
113412018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11342
11343 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11344 (delim_string_to_char_ptr_vec): Return std::vector of
11345 gdb::unique_xmalloc_ptr.
11346 (dirnames_to_char_ptr_vec_append): Take std::vector of
11347 gdb::unique_xmalloc_ptr.
11348 (dirnames_to_char_ptr_vec): Return std::vector of
11349 gdb::unique_xmalloc_ptr.
11350 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11351 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11352 (delim_string_to_char_ptr_vec): Return an std::vector of
11353 gdb::unique_xmalloc_ptr, adjust the code.
11354 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11355 gdb::unique_xmalloc_ptr, adjust the code.
11356 (dirnames_to_char_ptr_vec): Return an std::vector of
11357 gdb::unique_xmalloc_ptr, adjust the code.
11358 * auto-load.c (auto_load_safe_path_vec): Change type to
11359 std::vector of gdb::unique_xmalloc_ptr.
11360 (auto_load_expand_dir_vars): Return an std::vector of
11361 gdb::unique_xmalloc_ptr, adjust the code.
11362 (auto_load_safe_path_vec_update): Adjust.
11363 (filename_is_in_auto_load_safe_path_vec): Adjust.
11364 (auto_load_objfile_script_1): Adjust.
11365 * build-id.c (build_id_to_debug_bfd): Adjust.
11366 * linux-thread-db.c (thread_db_load_search): Adjust.
11367 * source.c (add_path): Adjust.
11368 (openp): Adjust.
11369 * symfile.c (find_separate_debug_file): Adjust.
11370 * utils.c (do_free_char_ptr_vec): Remove.
11371 (make_cleanup_free_char_ptr_vec): Remove.
11372
ab818ade
SDJ
113732018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11374
11375 PR gdb/22907
11376 * common/pathstuff.c: Conditionally include "<windows.h>".
11377
e1e6f073
GS
113782018-03-01 Georg Sauthoff <mail@georg.so>
11379
11380 PR gdb/22888
11381 * gcore.in: Quote variables and switch interpreter to bash.
11382
c7b15a66
TT
113832018-03-01 Tom Tromey <tom@tromey.com>
11384
11385 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11386 assertion. Add assertion for discriminant_index.
11387 (quirk_rust_enum): Use correct base type name in univariant case.
11388
0cb7c7b0
SM
113892018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11390
11391 * record.c (get_call_history_modifiers): Return a
11392 record_print_flags.
11393 (cmd_record_call_history): Adjust.
11394 * record-btrace.c (record_btrace_call_history): Adjust.
11395 (record_btrace_call_history_range): Adjust.
11396 (record_btrace_call_history_from): Adjust.
11397 * target-debug.h (target_debug_print_record_print_flags): New.
11398 * target-delegates.c: Re-generate.
11399 * target.c (target_call_history): Change flags type.
11400 (target_call_history_from): Likewise.
11401 (target_call_history_range): Likewise.
11402 * target.h (struct target_ops) <target_call_history>: Likewise.
11403 (target_call_history_from): Likewise.
11404 (target_call_history_range): Likewise.
11405
25e3c82c
SDJ
114062018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11407 Simon Marchi <simon.marchi@polymtl.ca>
11408
11409 * common/common-utils.c: Include "sys/stat.h".
11410 (is_regular_file): Move here from "source.c"; change return
11411 type to "bool".
11412 * common/common-utils.h (is_regular_file): New prototype.
11413 * common/pathstuff.c (contains_dir_separator): New function.
11414 * common/pathstuff.h (contains_dir_separator): New prototype.
11415 * source.c: Don't include "sys/stat.h".
11416 (is_regular_file): Move to "common/common-utils.c".
11417
b4987c95
SDJ
114182018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11419
11420 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11421 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11422 * auto-load.c: Include "common/pathstuff.h".
11423 * common/common-def.h (current_directory): Move here.
11424 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11425 function.
11426 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11427 prototype.
11428 * common/pathstuff.c: New file.
11429 * common/pathstuff.h: New file.
11430 * compile/compile.c: Include "common/pathstuff.h".
11431 * defs.h (current_directory): Move to "common/common-defs.h".
11432 * dwarf2read.c: Include "common/pathstuff.h".
11433 * exec.c: Likewise.
11434 * guile/scm-safe-call.c: Likewise.
11435 * linux-thread-db.c: Likewise.
11436 * main.c: Likewise.
11437 * nto-tdep.c: Likewise.
11438 * objfiles.c: Likewise.
11439 * source.c: Likewise.
11440 * symtab.c: Likewise.
11441 * utils.c: Include "common/pathstuff.h".
11442 (gdb_realpath): Move to "common/pathstuff.c".
11443 (gdb_realpath_keepfile): Likewise.
11444 (gdb_abspath): Likewise.
11445 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11446 (gdb_realpath_keepfile): Likewise.
11447 (gdb_abspath): Likewise.
11448
f169cfdc
JB
114492018-02-28 John Baldwin <jhb@FreeBSD.org>
11450
11451 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11452 wildcard process pid for super_resume for kernels with a
11453 specific bug.
11454
e05cac70
PM
114552018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11456
11457 * compile/compile.c (get_args): Add additional comments
11458 explaining function.
11459
55089490
TT
114602018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11461 Tom Tromey <tom@tromey.com>
11462
11463 * target.h (memory_write_request_s): Remove typedef. Don't define
11464 VEC.
11465 (target_write_memory_blocks): Change argument to std::vector.
11466 (struct memory_write_request): Add constructor.
11467 * target-memory.c (compare_block_starting_address): Return bool.
11468 Change argument types.
11469 (claim_memory): Change arguments to use std::vector.
11470 (split_regular_and_flash_blocks, blocks_to_erase)
11471 (compute_garbled_blocks): Likewise.
11472 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11473 (target_write_memory_blocks): Change argument to std::vector.
11474 * symfile.c (struct load_section_data): Add constructor and
11475 destructor. Use std::vector for "requests".
11476 (struct load_progress_data): Add initializers.
11477 (load_section_callback): Update. Use "new".
11478 (clear_memory_write_data): Remove.
11479 (generic_load): Update.
11480
0c305b61
AH
114812018-02-27 Alan Hayward <alan.hayward@arm.com>
11482
11483 * arch/aarch64.h: Use common/tdesc.h.
11484
c5196c92
MR
114852018-02-26 Maciej W. Rozycki <macro@mips.com>
11486
11487 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11488 architecture with a 64-bit ABI.
11489
37c33887
MR
114902018-02-26 Maciej W. Rozycki <macro@mips.com>
11491
11492 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11493 ahead of target description loading.
11494
d4dd3282
TT
114952018-02-26 Tom Tromey <tom@tromey.com>
11496
11497 * stack.c (backtrace_command_1): Update.
11498 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11499 of "flags".
11500 * python/py-framefilter.c (py_print_frame)
11501 (gdbpy_apply_frame_filter): Change type of "flags".
11502 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11503 of "flags".
11504 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11505 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11506 * extension.h (enum frame_filter_flag): Rename from
11507 frame_filter_flags.
11508 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11509 (apply_ext_lang_frame_filter): Change type of "flags".
11510 * extension.c (apply_ext_lang_frame_filter): Change type of
11511 "flags".
11512 * extension-priv.h (struct extension_language_ops)
11513 <apply_frame_filter>: Change type of "flags".
11514
6893c19a
TT
115152018-02-26 Tom Tromey <tom@tromey.com>
11516
11517 PR python/16497:
11518 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11519 off-by-one in py_end computation.
11520 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11521 PRINT_MORE_FRAMES.
11522 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11523 constant.
11524
2ddeaf8a
TT
115252018-02-26 Tom Tromey <tom@tromey.com>
11526
11527 * dwarf2read.c (struct variant_field): New.
11528 (struct nextfield) <variant>: New field.
11529 (dwarf2_add_field): Handle DW_TAG_variant_part.
11530 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11531 discriminated union.
11532 (read_structure_type): Handle DW_TAG_variant_part.
11533 (handle_struct_member_die): New function, extracted from
11534 process_structure_scope. Handle DW_TAG_variant.
11535 (process_structure_scope): Handle discriminated unions. Call
11536 handle_struct_member_die.
11537
c9317f21
TT
115382018-02-26 Tom Tromey <tom@tromey.com>
11539
11540 * rust-lang.h (rust_last_path_segment): Declare.
11541 * rust-lang.c (rust_last_path_segment): Now public. Change
11542 contract.
11543 (struct disr_info): Remove.
11544 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11545 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11546 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11547 (rust_enum_p, rust_enum_variant): New function.
11548 (rust_underscore_fields): Remove "offset" parameter.
11549 (rust_print_enum): New function.
11550 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11551 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11552 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11553 enums.
11554 (rust_internal_print_type): New function, from rust_print_type.
11555 Remove enum code.
11556 (rust_print_type): Call rust_internal_print_type.
11557 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11558 Update enum handling.
11559 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11560 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11561 (rust_union_quirks): New functions.
11562 (process_full_comp_unit, process_full_type_unit): Call
11563 rust_union_quirks.
11564 (process_structure_scope): Update rust_unions if necessary.
11565
7c22600a
TT
115662018-02-26 Tom Tromey <tom@tromey.com>
11567
11568 * value.h (value_union_variant): Declare.
11569 * valops.c (value_union_variant): New function.
11570 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11571 (struct discriminant_info): New.
11572 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11573 enumerator.
11574 (struct main_type) <flag_discriminated_union>: New field.
11575
15ce8941
TT
115762018-02-26 Tom Tromey <tom@tromey.com>
11577
11578 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11579 unittests/unpack-selftests.c.
11580 * unittests/unpack-selftests.c: New file.
11581 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11582
48fbe735
YQ
115832018-02-26 Yao Qi <yao.qi@linaro.org>
11584
11585 * dwarf2read.c (struct partial_die_info) <read>: New method.
11586 (read_partial_die): Remove the declaration.
11587 (load_partial_dies): Update.
11588 (partial_die_info::partial_die_info):
11589 (read_partial_die): Change it to partial_die_info::read.
11590
52356b79
YQ
115912018-02-26 Yao Qi <yao.qi@linaro.org>
11592
11593 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11594 (fixup_partial_die): Remove declaration.
11595 (scan_partial_symbols): Update.
11596 (partial_die_parent_scope): Likewise.
11597 (partial_die_full_name): Likewise.
11598 (fixup_partial_die): Change it to partial_die_info::fixup.
11599
35cc7ed7
YQ
116002018-02-26 Yao Qi <yao.qi@linaro.org>
11601
11602 * dwarf2read.c (read_partial_die): Update the declaration.
11603 (load_partial_dies): Caller update.
11604 (read_partial_die): Remove one argument abbrev_len.
11605
6f06d47b
YQ
116062018-02-26 Yao Qi <yao.qi@linaro.org>
11607
11608 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11609 assignment operator.
11610 (load_partial_dies): Use ctor and copy ctor.
11611 (read_partial_die): Update.
11612 (dwarf2_cu::find_partial_die): Use ctor.
11613
d590ff25
YQ
116142018-02-26 Yao Qi <yao.qi@linaro.org>
11615
11616 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11617 (find_partial_die_in_comp_unit): Change it to
11618 dwarf2_cu::find_partial_die.
11619 (find_partial_die): Update.
11620
fd0a254f
YQ
116212018-02-26 Yao Qi <yao.qi@linaro.org>
11622
11623 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11624 is NULL.
11625
cd9983dd
YQ
116262018-02-26 Yao Qi <yao.qi@linaro.org>
11627
11628 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11629
f46cd62a
AH
116302018-02-26 Alan Hayward <alan.hayward@arm.com>
11631
11632 * arch/amd64.h: Use common/tdesc.h.
11633 * arch/i386.c: Likewise.
11634 * arch/i386.h: Likewise.
11635 * arch/tic6x.c: Likewise.
11636 * arch/tdesc.h: Move file from here...
11637 * common/tdesc.h: ...to here.
11638 * features/aarch64-core.c: Regenerate.
11639 * features/aarch64-fpu.c: Regenerate.
11640 * features/i386/32bit-avx.c: Regenerate.
11641 * features/i386/32bit-avx512.c: Regenerate.
11642 * features/i386/32bit-core.c: Regenerate.
11643 * features/i386/32bit-linux.c: Regenerate.
11644 * features/i386/32bit-mpx.c: Regenerate.
11645 * features/i386/32bit-pkeys.c: Regenerate.
11646 * features/i386/32bit-sse.c: Regenerate.
11647 * features/i386/64bit-avx.c: Regenerate.
11648 * features/i386/64bit-avx512.c: Regenerate.
11649 * features/i386/64bit-core.c: Regenerate.
11650 * features/i386/64bit-linux.c: Regenerate.
11651 * features/i386/64bit-mpx.c: Regenerate.
11652 * features/i386/64bit-pkeys.c: Regenerate.
11653 * features/i386/64bit-segments.c: Regenerate.
11654 * features/i386/64bit-sse.c: Regenerate.
11655 * features/i386/x32-core.c: Regenerate.
11656 * features/tic6x-c6xp.c: Regenerate.
11657 * features/tic6x-core.c: Regenerate.
11658 * features/tic6x-gp.c: Regenerate.
11659 * target-descriptions.c: Use common/tdesc.h.
11660 * target-descriptions.h: Likewise.
11661
9b292f68
TT
116622018-02-24 Tom Tromey <tom@tromey.com>
11663
11664 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11665 (try_thread_db_load_from_dir, thread_db_load_search): Use
11666 std::string.
11667 (info_auto_load_libthread_db_compare): Return bool. Change
11668 argument types.
11669 (info_auto_load_libthread_db): Use std::vector, std::string.
11670 Remove cleanups.
11671
281d762b
TT
116722018-02-24 Tom Tromey <tom@tromey.com>
11673
11674 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11675 std::string.
11676 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11677 std::string*.
11678 * gdbarch.c: Rebuild.
11679 * gdbarch.h: Rebuild.
11680 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11681 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11682 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11683 std::string*.
11684
9d8780f0
SM
116852018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11686
11687 * gdbtypes.h (sect_offset): Change type to uint64_t.
11688 (sect_offset_str): New function.
11689 * dwarf2read.c (create_addrmap_from_aranges): Use
11690 sect_offset_str.
11691 (error_check_comp_unit_head): Likewise.
11692 (create_debug_type_hash_table): Likewise.
11693 (read_cutu_die_from_dwo): Likewise.
11694 (init_cutu_and_read_dies): Likewise.
11695 (init_cutu_and_read_dies_no_follow): Likewise.
11696 (process_psymtab_comp_unit_reader): Likewise.
11697 (partial_die_parent_scope): Likewise.
11698 (peek_die_abbrev): Likewise.
11699 (process_queue): Likewise.
11700 (dwarf2_physname): Likewise.
11701 (read_namespace_alias): Likewise.
11702 (read_import_statement): Likewise.
11703 (create_dwo_cu_reader): Likewise.
11704 (create_cus_hash_table): Likewise.
11705 (lookup_dwo_cutu): Likewise.
11706 (inherit_abstract_dies): Likewise.
11707 (read_func_scope): Likewise.
11708 (read_call_site_scope): Likewise.
11709 (dwarf2_add_member_fn): Likewise.
11710 (read_common_block): Likewise.
11711 (read_module_type): Likewise.
11712 (read_typedef): Likewise.
11713 (read_subrange_type): Likewise.
11714 (load_partial_dies): Likewise.
11715 (read_partial_die): Likewise.
11716 (find_partial_die): Likewise.
11717 (read_str_index): Likewise.
11718 (dwarf2_string_attr): Likewise.
11719 (build_error_marker_type): Likewise.
11720 (lookup_die_type): Likewise.
11721 (dump_die_shallow): Likewise.
11722 (follow_die_ref): Likewise.
11723 (dwarf2_fetch_die_loc_sect_off): Likewise.
11724 (dwarf2_fetch_constant_bytes): Likewise.
11725 (follow_die_sig): Likewise.
11726 (get_signatured_type): Likewise.
11727 (get_DW_AT_signature_type): Likewise.
11728 (dwarf2_find_containing_comp_unit): Likewise.
11729 (set_die_type): Likewise.
11730
8ec57239
JB
117312018-02-21 John Baldwin <jhb@FreeBSD.org>
11732
11733 * arch/aarch64.c: Include "common-defs.h".
11734 * arch/amd64.c: Likewise.
11735 * arch/i386.c: Likewise.
11736
3eac2b65
TT
117372018-02-21 Tom Tromey <tom@tromey.com>
11738
11739 * value.h: (extract_field_op): Update.
11740 * eval.c (extract_field_op): Return a const char *.
11741 * expression.h (parse_expression_for_completion): Update.
11742 * completer.c (complete_expression): Update.
11743 (add_struct_fields): Make fieldname const.
11744 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11745 (mark_completion_tag, parse_exp_in_context_1): Update.
11746 (parse_expression_for_completion): Change "name" to
11747 unique_xmalloc_ptr*.
11748
6ccb583f
TT
117492018-02-21 Tom Tromey <tom@tromey.com>
11750
11751 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11752
c113ed0c
YQ
117532018-02-21 Yao Qi <yao.qi@linaro.org>
11754
11755 * avr-tdep.c (avr_read_pc): Change parameter type to
11756 readable_regcache.
11757 * gdbarch.sh (read_pc): Likewise.
11758 * gdbarch.c: Re-generated.
11759 * gdbarch.h: Re-generated.
11760 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11761 readable_regcache.
11762 * ia64-tdep.c (ia64_read_pc): Likewise.
11763 * mips-tdep.c (mips_read_pc): Likewise.
11764 * spu-tdep.c (spu_read_pc): Likewise.
11765
4c74fe6b
YQ
117662018-02-21 Yao Qi <yao.qi@linaro.org>
11767
11768 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11769 * regcache-dump.c: New file.
11770 * regcache.c: Move register_dump to regcache-dump.c.
11771 (maintenance_print_registers): Likewise.
11772 (maintenance_print_raw_registers): Likewise.
11773 (maintenance_print_cooked_registers): Likewise.
11774 (maintenance_print_register_groups): Likewise.
11775 (maintenance_print_remote_registers): Likewise.
11776 (_initialize_regcache): Likewise.
11777 * regcache.h (register_dump): Moved from regcache.c.
11778
796bb026
YQ
117792018-02-21 Yao Qi <yao.qi@linaro.org>
11780
11781 * regcache.c (regcache::regcache): Update.
11782 (regcache::invalidate): Move it to detached_regcache::invalidate.
11783 (get_thread_arch_aspace_regcache): Update.
11784 (regcache::raw_update): Update.
11785 (regcache::cooked_read): Remove some code.
11786 (regcache::cooked_read_value): Likewise.
11787 (regcache::raw_write): Remove assert on m_readonly_p.
11788 (regcache::raw_supply_integer): Move it to
11789 detached_regcache::raw_supply_integer.
11790 (regcache::raw_supply_zeroed): Likewise.
11791 * regcache.h (detached_regcache) <raw_supply_integer>: New
11792 declaration.
11793 <raw_supply_zeroed, invalidate>: Likewise.
11794 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11795 <invalidate>: Likewise.
11796 <m_readonly_p>: Removed.
11797
215c69dc
YQ
117982018-02-21 Yao Qi <yao.qi@linaro.org>
11799
11800 * infcmd.c (get_return_value): Let stop_regs point to
11801 get_current_regcache.
11802 * regcache.c (regcache::regcache): Remove.
11803 (register_dump_reg_buffer): New class.
11804 (regcache_print): Adjust.
11805 * regcache.h (regcache): Remove constructors.
11806
f3384e66
YQ
118072018-02-21 Yao Qi <yao.qi@linaro.org>
11808
11809 * regcache.c (class register_dump): New class.
11810 (register_dump_regcache, register_dump_none): New class.
11811 (register_dump_remote, register_dump_groups): New class.
11812 (regcache_print): Update.
11813 * regcache.h (regcache_dump_what): Move it to regcache.c.
11814 (regcache) <dump>: Remove.
11815
c8ec2f33
YQ
118162018-02-21 Yao Qi <yao.qi@linaro.org>
11817
11818 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11819 reg_buffer_rw *.
11820 (jit_unwind_reg_set_impl): Call raw_supply.
11821 (jit_frame_sniffer): Use reg_buffer_rw.
11822 * record-full.c (record_full_core_regbuf): Change its type.
11823 (record_full_core_open_1): Use reg_buffer_rw.
11824 (record_full_close): Likewise.
11825 (record_full_core_fetch_registers): Use regcache->raw_supply.
11826 (record_full_core_store_registers): Likewise.
11827 * regcache.c (regcache::get_register_status): Move it to
11828 reg_buffer.
11829 (regcache_raw_set_cached_value): Remove.
11830 (regcache::raw_set_cached_value): Remove.
11831 (regcache::raw_write): Call raw_supply.
11832 (regcache::raw_supply): Move it to reg_buffer_rw.
11833 * regcache.h (regcache_raw_set_cached_value): Remove.
11834 (reg_buffer_rw): New class.
11835
daf6667d
YQ
118362018-02-21 Yao Qi <yao.qi@linaro.org>
11837
11838 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11839 readonly_detached_regcache.
11840 (dummy_frame_prev_register): Use regcache->cooked_read.
11841 * frame.c (frame_save_as_regcache): Change return type.
11842 (frame_pop): Update.
11843 * frame.h (frame_save_as_regcache): Update declaration.
11844 * inferior.h (get_infcall_suspend_state_regcache): Update
11845 declaration.
11846 * infrun.c (infcall_suspend_state) <registers>: use
11847 readonly_detached_regcache.
11848 (save_infcall_suspend_state): Don't use regcache_dup.
11849 (get_infcall_suspend_state_regcache): Change return type.
11850 * linux-fork.c (struct fork_info) <savedregs>: Change to
11851 readonly_detached_regcache.
11852 <pc>: New field.
11853 (fork_save_infrun_state): Don't use regcache_dup.
11854 (info_checkpoints_command): Adjust.
11855 * mi/mi-main.c (register_changed_p): Update declaration.
11856 (mi_cmd_data_list_changed_registers): Use
11857 readonly_detached_regcache.
11858 (register_changed_p): Change parameter type to
11859 readonly_detached_regcache.
11860 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11861 readonly_detached_regcache.
11862 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11863 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11864 New.
11865 (regcache::save): Move it to reg_buffer.
11866 (regcache::restore): Change parameter type.
11867 (regcache_dup): Remove.
11868 * regcache.h (reg_buffer) <save>: New method.
11869 (readonly_detached_regcache): New class.
11870 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11871 readonly_detached_regcache.
11872 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11873
fc5b8736
YQ
118742018-02-21 Yao Qi <yao.qi@linaro.org>
11875
11876 * frame.c (frame_save_as_regcache): Use regcache method save.
11877 (frame_pop): Use regcache method restore.
11878 * infrun.c (restore_infcall_suspend_state): Likewise.
11879 * linux-fork.c (fork_load_infrun_state): Likewise.
11880 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11881 save.
11882 * regcache.c (regcache_save): Remove.
11883 (regcache::restore): More asserts.
11884 (regcache_cpy): Remove.
11885 * regcache.h (regcache_save): Remove the declaration.
11886 (regcache::restore): Move from private to public.
11887 Remove the friend declaration of regcache_cpy.
11888 (regcache_cpy): Remove declaration.
11889
849d0ba8
YQ
118902018-02-21 Yao Qi <yao.qi@linaro.org>
11891
11892 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11893 parameter type to 'readable_regcache *'.
11894 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11895 * arm-tdep.c (arm_neon_quad_read): Likewise.
11896 (arm_pseudo_read): Likewise.
11897 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11898 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11899 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11900 * gdbarch.c: Re-generated.
11901 * gdbarch.h: Re-generated.
11902 * gdbarch.sh (pseudo_register_read): Change parameter type to
11903 'readable_regcache *'.
11904 (pseudo_register_read_value): Likewise.
11905 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11906 (h8300_pseudo_register_read): Likewise.
11907 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11908 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11909 (i386_pseudo_register_read_into_value): Likewise.
11910 (i386_pseudo_register_read_value): Likewise.
11911 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11912 declaration.
11913 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11914 * m32c-tdep.c (m32c_raw_read): Likewise.
11915 (m32c_read_flg): Likewise.
11916 (m32c_banked_register): Likewise.
11917 (m32c_banked_read): Likewise.
11918 (m32c_sb_read): Likewise.
11919 (m32c_part_read): Likewise.
11920 (m32c_cat_read): Likewise.
11921 (m32c_r3r2r1r0_read): Likewise.
11922 (m32c_pseudo_register_read): Likewise.
11923 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11924 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11925 (mep_pseudo_cr64_read): Likewise.
11926 (mep_pseudo_register_read): Likewise.
11927 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11928 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11929 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11930 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11931 (regcache::cooked_read): Likewise.
11932 (regcache::cooked_read_value): Likewise.
11933 (regcache_cooked_read_signed):
11934 (regcache::cooked_read): Likewise.
11935 * regcache.h (readable_regcache): New class.
11936 (regcache): Inherit readable_regcache. Move some methods to
11937 readable_regcache.
11938 * rl78-tdep.c (rl78_pseudo_register_read): Change
11939 parameter type to 'readable_regcache *'.
11940 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11941 (e500_pseudo_register_read): Change parameter type to
11942 'readable_regcache *'.
11943 (dfp_pseudo_register_read): Likewise.
11944 (vsx_pseudo_register_read): Likewise.
11945 (efpr_pseudo_register_read): Likewise.
11946 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11947 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11948 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11949 (sh64_pseudo_register_read): Likewise.
11950 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11951 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11952 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11953 (spu_pseudo_register_read): Likewise.
11954 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11955 (xtensa_pseudo_register_read): Likewise.
11956
31716595
YQ
119572018-02-21 Yao Qi <yao.qi@linaro.org>
11958
11959 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11960 (regcache::arch): Move it to reg_buffer::arch.
11961 (regcache::register_buffer): Likewise.
11962 (regcache::assert_regnum): Likewise.
11963 (regcache::num_raw_registers): Likewise.
11964 * regcache.h (reg_buffer): New class.
11965 (regcache): Inherit reg_buffer.
11966
7104e59b
SM
119672018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11968
11969 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11970 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11971
2d8adcbd
MM
119722018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11973
11974 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11975
b5884fa7
AH
119762018-02-19 Alan Hayward <alan.hayward@arm.com>
11977
11978 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11979 (SFILES): Remove common/*.c files.
11980 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11981 * common/common.host: Add common reference.
11982 * configure.ac: Likewise.
11983 * configure: Regenerate.
11984
fd90ace4
YQ
119852018-02-16 Yao Qi <yao.qi@linaro.org>
11986
11987 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11988 (block_initialize_namespace): Use new.
11989 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11990 (dwarf2_free_objfile): Use delete.
11991 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11992 (copy_type_recursive): Use new.
11993 * gdb_obstack.h (allocate_on_obstack): New.
11994
85046ae2
YQ
119952018-02-15 Yao Qi <yao.qi@linaro.org>
11996
11997 PR gdb/22849
11998 * inferior.c (exit_inferior_1): Reset inf->control.
11999
355c559b
JB
120002018-02-15 Joel Brobecker <brobecker@adacore.com>
12001
12002 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12003 declaration.
12004
980548fd
PA
120052018-02-14 Pedro Alves <palves@redhat.com>
12006
12007 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12008 frame_cleanup_after_sniffer on exception.
12009
692d6f97
TT
120102018-02-14 Tom Tromey <tom@tromey.com>
12011
12012 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12013 const.
12014 (solib_bfd_open): Make pathname const.
12015 * solib.c (solib_bfd_open): Make pathname const.
12016 * solib-spu.c (spu_bfd_fopen): Make name const.
12017 (spu_bfd_open): Make pathname const.
12018 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12019 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12020
e0cc99a6
TT
120212018-02-14 Tom Tromey <tom@tromey.com>
12022
12023 * symfile.c (symfile_bfd_open): Update.
12024 * source.h (openp, source_full_path_of, find_and_open_source):
12025 Change argument type to unique_xmalloc_ptr.
12026 * source.c (openp): Take a unique_xmalloc_ptr.
12027 (source_full_path_of, find_and_open_source): Likewise.
12028 (open_source_file, symtab_to_fullname): Update.
12029 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12030 unique_xmalloc_ptr.
12031 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12032 (exec_file_find): Update.
12033 * psymtab.c (psymtab_to_fullname): Update.
12034 * nto-tdep.h (nto_find_and_open_solib): Update.
12035 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12036 unique_xmalloc_ptr.
12037 * exec.c (exec_file_attach): Update.
12038 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12039 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12040
b46a8d7c
TT
120412018-02-14 Tom Tromey <tom@tromey.com>
12042
12043 * solib.c: Include source.h.
12044 * nto-tdep.c: Include source.h.
12045 * mi/mi-cmd-env.c: Include source.h.
12046 * infcmd.c: Include source.h.
12047 * exec.c: Include source.h.
12048 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12049 (add_path, directory_switch, source_path, init_source_path): Move
12050 declarations...
12051 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12052 (add_path, directory_switch, source_path, init_source_path):
12053 ...here.
12054
797bc1cb
TT
120552018-02-14 Tom Tromey <tom@tromey.com>
12056
12057 * solist.h (exec_file_find, solib_find): Return
12058 unique_xmalloc_ptr.
12059 (solib_bfd_fopen): Take a const char *.
12060 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12061 (exec_file_find, solib_find): Likewise.
12062 (solib_bfd_fopen): Do not take ownership of "pathname".
12063 (solib_bfd_open): Use unique_xmalloc_ptr.
12064 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12065 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12066 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12067 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12068
f98b2e33
JB
120692018-02-14 Joel Brobecker <brobecker@adacore.com>
12070
12071 * ada-lang.c (name_match_type_from_name): Remove reference to
12072 ada_name_for_lookup in function's documentation.
12073 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12074
24b9144d
SM
120752018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12076
12077 * defs.h (enum openp_flags): New enum.
12078 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12079 Move to enum openp_flags.
12080 (openp_flags): New enum flags.
12081 (openp): Change parameter type to openp_flags.
12082 * source.c (openp): Change parameter type to openp_flags.
12083 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12084 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12085
387cd15b
SM
120862018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12087
12088 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12089 per-command.
12090
b303c6f6
AB
120912018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12092
12093 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12094 into...
12095 (class dwarf2_queue_guard): ...the destructor of this new class.
12096 (dw2_do_instantiate_symtab): Create instance of the new class
12097 dwarf2_queue_guard, remove cleanup.
12098
9c3630e9
TT
120992018-02-09 Tom Tromey <tom@tromey.com>
12100
12101 * source.c (find_source_lines): Don't reference past the end of
12102 the vector.
12103
c4e12631
MM
121042018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12105
12106 * remote.c (remote_btrace_maybe_reopen): Change error message.
12107 * btrace.c (btrace_enable): Likewise.
12108 (parse_xml_btrace): Likewise.
12109 (parse_xml_btrace_conf): Likewise.
12110
88711fbf
MM
121112018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12112
12113 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12114 (linux_enable_pt, linux_enable_bts): Call
12115 diagnose_perf_event_open_fail.
12116
17ad2a4f
MM
121172018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12118
12119 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12120 Remove parameter and change return type. Update callers. Move it.
12121 (linux_enable_bts, linux_enable_pt): Improve error message.
12122 (linux_enable_pt): Remove zero buffer size check.
12123 (linux_enable_btrace): Improve error messages. Remove NULL return
12124 check.
12125
de6242d3
MM
121262018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12127
12128 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12129 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12130 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12131 (linux_supports_pt, linux_supports_btrace): Remove.
12132 (linux_enable_bts): Call cpu_supports_bts.
12133 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12134 * remote.c (remote_supports_btrace): Remove.
12135 (init_remote_ops): Remove remote_supports_btrace.
12136 * target-delegates.c: Regenerated.
12137 * target.c (target_supports_btrace): Remove.
12138 * target.h (target_ops) <to_supports_btrace>: Remove
12139 (target_supports_btrace): Remove.
12140 * x86-linux-nat.c (x86_linux_create_target): Remove
12141 linux_supports_btrace.
12142
9ee23a85
MM
121432018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12144
12145 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12146 btrace failed.
12147 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12148 exception and use message in own exception.
12149
5c3284c1
MM
121502018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12151
12152 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12153 (perf_event_pt_event_type): Use gdb_file_up.
12154 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12155 scoped_fd, and scoped_mmap.
12156
84696f37
MM
121572018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12158
12159 * common/scoped_mmap.h: New.
12160 * unittests/scoped_mmap-selftest.c: New.
12161 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12162 unittests/scoped_mmap-selftest.c.
12163
ea4a0888
MM
121642018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12165
12166 * common/scoped_fd.h: New.
12167 * unittests/scoped_fd-selftest.c: New.
12168 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12169 unittests/scoped_fd-selftest.c.
12170
869e8290
TT
121712018-02-09 Tom Tromey <tom@tromey.com>
12172
12173 * auto-load.c (auto_load_section_scripts): Use
12174 gdb::unique_xmalloc_ptr.
12175
a37a2ae7
TT
121762018-02-09 Tom Tromey <tom@tromey.com>
12177
12178 * auto-load.c (execute_script_contents): Use std::string.
12179
4e725347
JB
121802018-02-09 Joel Brobecker <brobecker@adacore.com>
12181
12182 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12183 Python function, rather than a new command.
12184
9a897d43
TT
121852018-02-08 Tom Tromey <tom@tromey.com>
12186
12187 * solib.c (solib_find_1): Use std::string.
12188 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12189
58ef3771
TT
121902018-02-08 Tom Tromey <tom@tromey.com>
12191
12192 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12193
a9abc434
TT
121942018-02-08 Tom Tromey <tom@tromey.com>
12195
12196 * source.c (find_source_lines): Use gdb::def_vector.
12197
84f27c6f
TT
121982018-02-08 Tom Tromey <tom@tromey.com>
12199
12200 * macrocmd.c (struct temporary_macro_definition): New.
12201 (macro_define_command): Use temporary_macro_definition. Remove
12202 cleanups.
12203 (free_macro_definition_ptr): Remove.
12204
0354904b
TT
122052018-02-08 Tom Tromey <tom@tromey.com>
12206
12207 * macroexp.c (maybe_expand): Use std::string.
12208
1739cf24
TT
122092018-02-08 Tom Tromey <tom@tromey.com>
12210
12211 * macroexp.c (struct macro_buffer): Add initializers for some
12212 members.
12213 (init_buffer, init_shared_buffer, free_buffer)
12214 (free_buffer_return_text): Remove.
12215 (macro_buffer): New constructors.
12216 (~macro_buffer): New destructor.
12217 (macro_buffer::set_shared): New method.
12218 (macro_buffer::resize_buffer, macro_buffer::appendc)
12219 (macro_buffer::appendmem): Now methods, not free functions.
12220 (set_token, append_tokens_without_splicing, stringify)
12221 (macro_stringify): Update.
12222 (gather_arguments): Change return type. Remove argc_p argument,
12223 add args_ptr argument. Use std::vector.
12224 (substitute_args): Remove argc argument. Accept std::vector.
12225 (expand): Update. Use std::vector.
12226 (scan, macro_expand, macro_expand_next): Update.
12227
f6c2623e
TT
122282018-02-08 Tom Tromey <tom@tromey.com>
12229
12230 * symtab.c (default_collect_symbol_completion_matches_break_on):
12231 Use unique_xmalloc_ptr.
12232 * macroscope.h: (sal_macro_scope, user_macro_scope)
12233 (default_macro_scope): Return unique_xmalloc_ptr.
12234 * macroscope.c (sal_macro_scope, user_macro_scope)
12235 (default_macro_scope): Return unique_xmalloc_ptr.
12236 * macroexp.h (macro_expand, macro_expand_once): Return
12237 unique_xmalloc_ptr.
12238 * macroexp.c (macro_expand, macro_expand_once): Return
12239 unique_xmalloc_ptr.
12240 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12241 (info_macro_command, info_macros_command): Use
12242 unique_xmalloc_ptr.
12243 * compile/compile-c-support.c (write_macro_definitions): Use
12244 unique_xmalloc_ptr.
12245 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12246
c2e0e465
SM
122472018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12248
12249 * value.c (value_static_field): Assign field type instead of
12250 containing type when returning an optimized out value.
12251
3f8c94b4
YQ
122522018-02-06 Yao Qi <yao.qi@linaro.org>
12253
12254 * ft32-tdep.c (ft32_read_pc): Remove.
12255 (ft32_write_pc): Remove.
12256 (ft32_gdbarch_init): Update.
12257 * m32r-tdep.c (m32r_read_pc): Remove.
12258 (m32r_gdbarch_init): Update.
12259 * mep-tdep.c (mep_read_pc): Remove.
12260 (mep_gdbarch_init): Update.
12261 * microblaze-tdep.c (microblaze_write_pc): Remove.
12262 (microblaze_gdbarch_init): Update.
12263 * mn10300-tdep.c (mn10300_read_pc): Remove.
12264 (mn10300_write_pc): Remove.
12265 (mn10300_gdbarch_init): Update.
12266 * moxie-tdep.c (moxie_read_pc): Remove.
12267 (moxie_write_pc): Remove.
12268 (moxie_gdbarch_init): Update.
12269
bca65a23
YQ
122702018-02-06 Yao Qi <yao.qi@linaro.org>
12271
12272 * expprint.c (print_subexp_standard): Handle
12273 OP_F77_UNDETERMINED_ARGLIST.
12274 (dump_subexp_body_standard): Likewise.
12275
583e3f90 122762018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 12277
583e3f90
YQ
12278 * target-descriptions.c (tdesc_element_visitor) Add empty
12279 implementations.
b8df6ca7
AH
12280 (tdesc_type): Move make_gdb_type from here.
12281 (tdesc_type_builtin): Likewise.
12282 (tdesc_type_vector): Likewise.
12283 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12284 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12285 (make_gdb_type_union): Likewise.
12286 (make_gdb_type_flags): Likewise.
12287 (make_gdb_type_enum): Likewise.
12288 (make_gdb_type): New function.
12289 (tdesc_register_type): Use static make_gdb_type.
12290
e813d34a
RK
122912018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12292
12293 * infcmd.c (default_print_one_register_info): Align natural-format
12294 column values consistently one under another.
12295 (pad_to_column): New function.
12296
0eb876f5
JB
122972018-02-05 Joel Brobecker <brobecker@adacore.com>
12298
12299 * dwarf2read.c (dwarf2_physname): Move commment.
12300
0625771b
LS
123012018-02-01 Leszek Swirski <leszeks@google.com>
12302
12303 * varobj.c (varobj_formatted_print_options): Allow recursive
12304 pretty printing if pretty printing is enabled.
12305
59498c30
LS
123062018-02-01 Leszek Swirski <leszeks@google.com>
12307
12308 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12309 names after a structop as a filename.
12310
2d9e6acb
YQ
123112018-02-01 Yao Qi <yao.qi@linaro.org>
12312
12313 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12314 (arm_record_coproc_data_proc): Likewise.
12315
df95a9cf
YQ
123162018-02-01 Yao Qi <yao.qi@linaro.org>
12317
12318 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12319
07e5f5cf
NP
123202018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12321
12322 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12323 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12324
3045b475
PA
123252018-01-31 Pedro Alves <palves@redhat.com>
12326
12327 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12328 * inflow.c (child_terminal_save_inferior): Wrap reference to
12329 tcgetpgrp in HAVE_TERMIOS_H.
12330 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12331 _WIN32.
12332 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12333 always iterate over all inferiors.
12334 (gdbsim_cntrl_c): Adjust.
12335 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12336
929b5ad4
JB
123372018-01-31 Joel Brobecker <brobecker@adacore.com>
12338
12339 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12340 index type is objfile-owned if the element type is as well.
12341
29236ca2
JB
123422018-01-31 Joel Brobecker <brobecker@adacore.com>
12343
12344 GDB 8.1 released.
12345
c81e8879
PR
123462018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12347
12348 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12349 "features/s390x-linux64.c".
12350 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12351 s390_linux32 and s390x_linux64.
12352 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12353 default tdesc.
12354 * s390-tdep.c: Include "features/s390-linux32.c" and
12355 "features/s390x-linux64.c".
12356 (s390_tdesc_valid): Add check for tdesc_has_registers.
12357 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12358 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12359 tdesc_s390x_linux64.
12360 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12361 tdesc_s390x_linux64 to...
12362 * s390-tdep.h: ...here.
12363
e671cd59
PA
123642018-01-30 Pedro Alves <palves@redhat.com>
12365
12366 PR gdb/13211
12367 * config.in, configure: Regenerate.
12368 * configure.ac: Check for getpgid.
12369 * go32-nat.c (go32_pass_ctrlc): New.
12370 (go32_target): Install it.
12371 * inf-child.c (inf_child_target): Install
12372 child_terminal_save_inferior, child_pass_ctrlc and
12373 child_interrupt.
12374 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12375 (inf_ptrace_target): No longer install it.
12376 * infcmd.c (interrupt_target_1): Adjust.
12377 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12378 (child_interrupt): Declare.
12379 (inferior::terminal_state): New.
12380 * inflow.c (struct terminal_info): Update comments.
12381 (inferior_process_group): Delete.
12382 (terminal_is_ours): Delete.
12383 (gdb_tty_state): New.
12384 (child_terminal_init): Adjust.
12385 (is_gdb_terminal, sharing_input_terminal_1)
12386 (sharing_input_terminal): New functions.
12387 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12388 Set the process's actual process group in the foreground if
12389 possible. Handle is_ours_for_output/is_ours distinction. Don't
12390 mark terminal as the inferior's if not sharing GDB's terminal.
12391 Don't check attach_flag.
12392 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12393 pass down a target_terminal_state.
12394 (child_terminal_save_inferior): New, factored out from ...
12395 (child_terminal_ours_1): ... this. Handle
12396 target_terminal_state::is_ours_for_output.
12397 (child_interrupt, child_pass_ctrlc): New.
12398 (inflow_inferior_exit): Clear the inferior's terminal_state.
12399 (copy_terminal_info): Copy the inferior's terminal state.
12400 (_initialize_inflow): Remove reference to terminal_is_ours.
12401 * inflow.h (inferior_process_group): Delete.
12402 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12403 * procfs.c (procfs_target): Don't install procfs_interrupt.
12404 (procfs_interrupt): Delete.
12405 * remote.c (remote_serial_quit_handler): Adjust.
12406 (remote_interrupt): Remove ptid parameter. Adjust.
12407 * target-delegates.c: Regenerate.
12408 * target.c: Include "terminal.h".
12409 (target_terminal::terminal_state): Rename to ...
12410 (target_terminal::m_terminal_state): ... this.
12411 (target_terminal::init): Adjust.
12412 (target_terminal::inferior): Adjust to per-inferior
12413 terminal_state.
12414 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12415 (target_terminal::ours, target_terminal::ours_for_output): Use
12416 target_terminal_is_ours_kind.
12417 (target_interrupt): Remove ptid parameter. Adjust.
12418 (default_target_pass_ctrlc): Adjust.
12419 * target.h (target_ops::to_terminal_save_inferior): New field.
12420 (target_ops::to_interrupt): Remove ptid_t parameter.
12421 (target_interrupt): Remove ptid_t parameter. Update comment.
12422 (target_pass_ctrlc): Update comment.
12423 * target/target.h (target_terminal_state): New scoped enum,
12424 factored out of ...
12425 (target_terminal::terminal_state): ... here.
12426 (target_terminal::inferior): Update comments.
12427 (target_terminal::restore_inferior): New.
12428 (target_terminal::is_inferior, target_terminal::is_ours)
12429 (target_terminal::is_ours_for_output): Adjust.
12430 (target_terminal::scoped_restore_terminal_state): Adjust to
12431 rename, and call restore_inferior() instead of inferior().
12432 (target_terminal::scoped_restore_terminal_state::m_state): Change
12433 type.
12434 (target_terminal::terminal_state): Rename to ...
12435 (target_terminal::m_terminal_state): ... this and change type.
12436
9c3a5d93
PA
124372018-01-30 Pedro Alves <palves@redhat.com>
12438
12439 * linux-nat.c (wait_for_signal): New function.
12440 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12441 directly.
12442 (async_terminal_is_ours)
12443 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12444 (linux_nat_add_target): Don't override
12445 to_terminal_inferior/to_terminal_ours.
12446
69ab5edb
SDJ
124472018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12448
12449 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12450
fc8e7e75
SM
124512018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12452
12453 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12454 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12455 dwarf2_per_objfile_free here.
12456 (dwarf2_per_objfile_free): Remove.
12457 (_initialize_dwarf2_read): Don't register
12458 dwarf2_per_objfile_free as a registry cleanup.
12459
b2a426e2
EZ
124602018-01-27 Eli Zaretskii <eliz@gnu.org>
12461
12462 Avoid compilation errors in MinGW native builds
12463
12464 The error is triggered by including python-internal.h, and the
12465 error message is:
12466
12467 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12468 from build-gnulib/import/math.h:27,
12469 from d:/usr/Python26/include/pyport.h:235,
12470 from d:/usr/Python26/include/Python.h:58,
12471 from python/python-internal.h:94,
12472 from python/py-arch.c:24:
12473 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12474 using ::hypot;
12475 ^~~~~
12476
12477 This happens because Python headers define 'hypot' to expand t
12478 '_hypot' in the Windows builds.
12479 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12480 'hypoth'. This avoids a compilation error.
12481
0bdd8eac
AH
124822018-01-26 Alan Hayward <alan.hayward@arm.com>
12483
12484 * MAINTAINERS (Write After Approval): Fix ordering.
12485
56ae9dc3
AH
124862018-01-26 Alan Hayward <alan.hayward@arm.com>
12487
12488 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12489
7433498b
AM
124902018-01-26 Alan Modra <amodra@gmail.com>
12491
12492 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12493 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12494 Remove nop. Make const. Comment.
12495 (powerpc32_plt_stub_so_2): New.
12496 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12497 Correct count. Update uses.
12498 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12499 Move common code reading PLT entry word. Correct
12500 powerpc32_plt_stub PLT address calculation.
12501 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12502 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12503 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12504 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12505 (ppc64_standard_linkage8): Likewise.
12506 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12507 Correct insns description.
12508 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12509
0f59d5fc
PA
125102018-01-24 Pedro Alves <palves@redhat.com>
12511
12512 GCC PR libstdc++/83906
12513 * gdbtypes.c (operator==(const dynamic_prop &,
12514 const dynamic_prop &)): New.
12515 (operator==(const range_bounds &, const range_bounds &)): New.
12516 (check_types_equal): Use them instead of memcmp.
12517 * gdbtypes.h (operator==(const dynamic_prop &,
12518 const dynamic_prop &)): Declare.
12519 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12520 (operator==(const range_bounds &, const range_bounds &)): Declare.
12521 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12522
ef8914a4
PR
125232018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12524
12525 * s390-linux-tdep.c (s390_record_address_mask)
12526 (s390_record_calc_disp_common, s390_record_calc_disp)
12527 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12528 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12529 (s390_process_record): Move to s390-tdep.c.
12530 (s390_linux_init_abi_any): Adjust.
12531 * s390-tdep.c (s390_record_address_mask)
12532 (s390_record_calc_disp_common, s390_record_calc_disp)
12533 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12534 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12535 (s390_process_record): Moved from s390-linux-tdep.c
12536 (s390_gdbarch_init): Adjust.
12537
d6e58945
PR
125382018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12539
12540 * s390-linux-nat.c (s390-tdep.h): New include.
12541 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12542 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12543 (ALLDEPFILES): Add s390-tdep.c.
12544 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12545 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12546 * s390-tdep.h: ...this. New file.
12547 * s390-linux-tdep.c (s390-tdep.h): New include.
12548 (_initialize_s390_tdep): Rename to...
12549 (_initialize_s390_linux_tdep): ...this and adjust.
12550 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12551 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12552 s390-tdep.h.
12553 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12554 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12555 (s390_is_partial_instruction, s390_software_single_step)
12556 (is_non_branch_ril, s390_displaced_step_copy_insn)
12557 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12558 (s390_prologue_data, s390_addr, s390_store, s390_load)
12559 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12560 (s390_register_call_saved, s390_guess_tracepoint_registers)
12561 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12562 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12563 (s390_pseudo_register_name, s390_pseudo_register_type)
12564 (s390_pseudo_register_read, s390_pseudo_register_write)
12565 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12566 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12567 (s390_addr_bits_remove, s390_address_class_type_flags)
12568 (s390_address_class_type_flags_to_name)
12569 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12570 (s390_function_arg_float, s390_function_arg_vector)
12571 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12572 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12573 (s390_frame_align, s390_register_return_value, s390_return_value)
12574 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12575 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12576 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12577 (s390_trad_frame_prev_register, s390_unwind_cache)
12578 (s390_prologue_frame_unwind_cache)
12579 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12580 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12581 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12582 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12583 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12584 (s390_frame_base_address, s390_local_base_address)
12585 (s390_frame_base, s390_gcc_target_options)
12586 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12587 (s390_validate_reg_range, s390_tdesc_valid)
12588 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12589 * s390-tdep.c: ...this. New file.
12590
9c0b896e
PR
125912018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12592
12593 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12594 (s390_process_record, s390_gdbarch_tdep_alloc)
12595 (s390_linux_init_abi_any): Use/set new hook.
12596
7042632b
PR
125972018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12598
12599 * s390-linux-tdep.c (osabi.h): New include.
12600 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12601 (s390_linux_init_abi_any): New functions.
12602 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12603
650f5e13
PR
126042018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12605
12606 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12607 tdesc_has_registers check
12608
47c9317e
PR
126092018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12610
12611 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12612 (s390_validate_reg_range): New macro.
12613 (s390_gdbarch_init): Adjust.
12614
095085d8
PR
126152018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12616
12617 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12618 (s390_gdbarch_tdep_alloc): Adjust.
12619 (s390_gdbarch_init): Adjust.
12620
ab9bcc67
PR
126212018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12622
12623 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12624 <have_tdb>: Change type to bool.
12625 (s390_gdbarch_tdep_alloc): Adjust.
12626 (s390_gdbarch_init): Adjust.
12627
21f6f5ff
PR
126282018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12629
12630 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12631 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12632 (s390_gdbarch_tdep_alloc): New function.
12633 (s390_gdbarch_init): Allocate tdep at start and use its fields
12634 instead of separate variables.
12635
0eb97953
PR
126362018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12637
12638 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12639 when looking for cached gdbarch and add comment for remaining.
12640
5c319bb2
PA
126412018-01-22 Pedro Alves <palves@redhat.com>
12642 Sergio Durigan Junior <sergiodj@redhat.com>
12643
12644 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12645 case.
12646
d65ce302
MR
126472018-01-22 Maciej W. Rozycki <macro@mips.com>
12648
12649 * MAINTAINERS: Update my company e-mail address.
12650
ec7a5fcb
YQ
126512018-01-22 Yao Qi <yao.qi@linaro.org>
12652
12653 * regcache.c (cooked_write_test): New function.
12654 (_initialize_regcache): Register the test.
12655
11f57cb6
YQ
126562018-01-22 Yao Qi <yao.qi@linaro.org>
12657
12658 * ia64-tdep.c (ia64_pseudo_register_read): Call
12659 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12660 * m32c-tdep.c (m32c_cat_read): Likewise.
12661 (m32c_r3r2r1r0_read): Likewise.
12662 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12663 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12664
03f50fc8
YQ
126652018-01-22 Yao Qi <yao.qi@linaro.org>
12666
12667 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12668 method raw_read instead of regcache_raw_read.
12669 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12670 * arm-tdep.c (arm_neon_quad_read): Likewise.
12671 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12672 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12673 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12674 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12675 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12676 (i386_pseudo_register_read_into_value): Likewise.
12677 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12678 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12679 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12680 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12681 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12682 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12683 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12684 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12685 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12686
dc711524
YQ
126872018-01-22 Yao Qi <yao.qi@linaro.org>
12688
12689 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12690 * configure.tgt: Remove target mt.
12691 * mt-tdep.c: Remove.
12692 * regcache.c (cooked_read_test): Remove the check for mt.
12693
3f5a868b
YQ
126942018-01-22 Yao Qi <yao.qi@linaro.org>
12695
12696 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12697 instead of gdbarch_pseudo_register_read_value.
12698
de4cb04a
JB
126992018-01-22 Joel Brobecker <brobecker@adacore.com>
12700
12701 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12702 language is Ada.
12703
a9e40818
JB
127042018-01-22 Joel Brobecker <brobecker@adacore.com>
12705
12706 * linespec.c (create_sals_line_offset): Remove code that preserved
12707 the symtab_and_line's line number.
12708
e707fc44
AB
127092018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12710
12711 * varobj.c (varobj_create): Don't set valid_block when creating a
12712 floating varobj.
12713
03d0bf7b
AB
127142018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12715
12716 * varobj.c (varobj_create): Remove out of date comment.
12717
ae451627
AB
127182018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12719
12720 PR mi/20395
12721 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12722 updating innermost block.
12723 * parse.c (innermost_block_tracker::update): Take extra type
12724 parameter, and check types match before updating innermost block.
12725 (write_dollar_variable): Update innermost block for registers.
12726 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12727 (innermost_block_tracker::innermost_block_tracker): Initialise
12728 m_types member.
12729 (innermost_block_tracker::reset): Take type parameter.
12730 (innermost_block_tracker::update): Take type parameter, and pass
12731 type through as needed.
12732 (innermost_block_tracker::m_types): New member.
12733 * varobj.c (varobj_create): Pass type when reseting innermost
12734 block.
12735
aee1fcdf
AB
127362018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12737
12738 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12739 * ada-lang.c (resolve_subexp): Likewise.
12740 * breakpoint.c (set_breakpoint_condition) Likewise.
12741 (watch_command_1) Likewise.
12742 * c-exp.y (variable): Likewise.
12743 * d-exp.y (PrimaryExpression): Likewise.
12744 * f-exp.y (variable): Likewise.
12745 * go-exp.y (variable): Likewise.
12746 * m2-exp.y (variable): Likewise.
12747 * objfiles.c (objfile::~objfile): Likewise.
12748 * p-exp.y (variable): Likewise.
12749 * parse.c (innermost_block): Change type.
12750 * parser-defs.h (class innermost_block_tracker): New.
12751 (innermost_block): Change to innermost_block_tracker.
12752 * printcmd.c (display_command): Switch to innermost_block API.
12753 (do_one_display): Likewise.
12754 * rust-exp.y (do_one_display): Likewise.
12755 * symfile.c (clear_symtab_users): Likewise.
12756 * varobj.c (varobj_create): Switch to innermost_block API, replace
12757 use of innermost_block with block stored on varobj object.
12758
396af9a1
AB
127592018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12760
12761 * expression.h (innermost_block): Remove declaration.
12762 * varobj.c: Add 'parser-defs.h' include.
12763
fcfcc376
TT
127642018-01-19 Tom Tromey <tom@tromey.com>
12765
12766 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12767 symbols in the static and global blocks.
12768
5a6c3296
JC
127692018-01-19 James Clarke <jrtc27@jrtc27.com>
12770
12771 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12772 gdb_ptrace.h, and move including gdb_wait.h ...
12773 * nat/linux-ptrace.h: ... to here.
12774
bc09b0c1
SM
127752018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12776
12777 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12778 inf_ptrace_detach_success.
12779 (inf_ptrace_detach_success): Add inferior parameter, use it
12780 instead of inferior_ptid, pass it to detach_inferior.
12781 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12782 parameter.
12783 * inferior.c (detach_inferior): Add overload that takes an
12784 inferior object.
12785 * inferior.h (detach_inferior): Likewise.
12786 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12787 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12788 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12789
6e1e1966
SM
127902018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12791
12792 * target.h (struct target_ops) <to_detach>: Add inferior
12793 parameter.
12794 (target_detach): Likewise.
12795 * target.c (dispose_inferior): Pass inferior down.
12796 (target_detach): Pass inferior down. Assert that it is equal to
12797 the current inferior.
12798 * aix-thread.c (aix_thread_detach): Pass inferior down.
12799 * corefile.c (core_file_command): Pass current_inferior() down.
12800 * corelow.c (core_detach): Add inferior parameter.
12801 * darwin-nat.c (darwin_detach): Likewise.
12802 * gnu-nat.c (gnu_detach): Likewise.
12803 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12804 * infcmd.c (detach_command): Pass current_inferior() down to
12805 target_detach.
12806 * infrun.c (follow_fork_inferior): Pass parent_inf to
12807 target_detach.
12808 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12809 target_detach.
12810 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12811 * linux-thread-db.c (thread_db_detach): Likewise.
12812 * nto-procfs.c (procfs_detach): Likewise.
12813 * procfs.c (procfs_detach): Likewise.
12814 * record.c (record_detach): Likewise.
12815 * record.h (struct inferior): Forward-declare.
12816 (record_detach): Add inferior parameter.
12817 * remote-sim.c (gdbsim_detach): Likewise.
12818 * remote.c (remote_detach_1): Likewise.
12819 (remote_detach): Likewise.
12820 (extended_remote_detach): Likewise.
12821 * sol-thread.c (sol_thread_detach): Likewise.
12822 * target-debug.h (target_debug_print_inferior_p): New macro.
12823 * target-delegates.c: Re-generate.
12824 * top.c (kill_or_detach): Pass inferior down to target_detach.
12825 * windows-nat.c (windows_detach): Add inferior parameter.
12826
6bd6f3b6
SM
128272018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12828
12829 * target.h (struct target_ops) <to_detach>: Remove args
12830 parameter.
12831 (target_detach): Likewise.
12832 * target.c (dispose_inferior): Adjust.
12833 (target_detach): Remove args parameter, adjust.
12834 * aix-thread.c (aix_thread_detach): Adjust.
12835 * corefile.c (core_file_command): Adjust.
12836 * corelow.c (core_detach): Adjust.
12837 * darwin-nat.c (darwin_detach): Adjust.
12838 * gnu-nat.c (gnu_detach): Adjust.
12839 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12840 * infcmd.c (detach_command): Adjust
12841 * infrun.c (follow_fork_inferior): Adjust.
12842 (handle_vfork_child_exec_or_exit): Adjust.
12843 * linux-fork.c (linux_fork_detach): Remove args parameter.
12844 * linux-fork.h (linux_fork_detach): Likewise.
12845 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12846 * linux-thread-db.c (thread_db_detach): Likewise.
12847 * nto-procfs.c (procfs_detach): Likewise.
12848 * procfs.c (procfs_detach): Likewise.
12849 (do_detach): Remove signo parameter.
12850 * record.c (record_detach): Remove args parameter.
12851 * record.h (record_detach): Likewise.
12852 * remote-sim.c (gdbsim_detach): Likewise.
12853 * remote.c (remote_detach_1): Likewise.
12854 (remote_detach): Likewise.
12855 (extended_remote_detach): Likewise.
12856 * sol-thread.c (sol_thread_detach): Likewise.
12857 * target-delegates.c: Re-generate.
12858 * top.c (struct qt_args) <args>: Remove field.
12859 (kill_or_detach): Don't pass args.
12860 (quit_force): Don't set args.
12861 * windows-nat.c (windows_detach): Remove args parameter.
12862
88af8ea8
YQ
128632018-01-19 Yao Qi <yao.qi@linaro.org>
12864
12865 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12866 (arm_linux_init_abi): Install it.
12867
dea445b9
YQ
128682018-01-19 Yao Qi <yao.qi@linaro.org>
12869
12870 * osabi.c (gdb_osabi_names): Extend the regexp for
12871 arm-linux-gnueabihf.
12872
4a17f768
YQ
128732018-01-18 Yao Qi <yao.qi@linaro.org>
12874
12875 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12876 m_abbrevs.
12877 (abbrev_table::add_abbrev): Update.
12878 (abbrev_table::lookup_abbrev): Update.
12879
d679c21a
YQ
128802018-01-18 Yao Qi <yao.qi@linaro.org>
12881
12882 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12883
7d937cad
SDJ
128842018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12885
12886 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12887 to "std::string".
12888
9e14690d
TT
128892018-01-17 Tom Tromey <tom@tromey.com>
12890
12891 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12892
50a82047
TT
128932018-01-17 Tom Tromey <tom@tromey.com>
12894
12895 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12896 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12897 (create_array_type_with_stride): Update.
12898 * dwarf2read.c (set_die_type): Update.
12899
c89b44cd
TT
129002018-01-17 Tom Tromey <tom@tromey.com>
12901
12902 * dwarf2read.c (delayed_method_info): Remove typedef.
12903 (dwarf2_cu::method_info): Now a std::vector.
12904 (add_to_method_list): Update.
12905 (free_delayed_list): Remove.
12906 (compute_delayed_physnames): Update.
12907 (process_full_comp_unit, process_full_type_unit): Clear the method
12908 list. Remove cleanups.
12909 (psymtab_include_file_name): Add name_holder parameter. Use
12910 unique_xmalloc_ptr.
12911 (dwarf_decode_lines): Update.
12912
fcd3b13d
SM
129132018-01-17 Tom Tromey <tom@tromey.com>
12914 Simon Marchi <simon.marchi@ericsson.com>
12915
12916 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12917 (dwarf2_per_objfile::free_cached_comp_units)
12918 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12919 (init_cutu_and_read_dies_no_follow): Update.
12920 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12921 (dwarf2_cu::~dwarf2_cu): New.
12922 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12923 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12924
685af9cd
TT
129252018-01-17 Tom Tromey <tom@tromey.com>
12926 Simon Marchi <simon.marchi@ericsson.com>
12927
12928 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12929 (struct die_reader_specs) <abbrev_table>: New member.
12930 (struct abbrev_table): Add constructor.
12931 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12932 <abbrev_obstack>: Now an auto_obstack.
12933 (abbrev_table_up): New typedef.
12934 (init_cu_die_reader): Add abbrev_table parameter.
12935 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12936 Add result_dwo_abbrev_table.
12937 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12938 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12939 Update.
12940 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12941 parameter.
12942 (skip_children): Update.
12943 (abbrev_table::alloc_abbrev): Rename from
12944 abbrev_table_alloc_abbrev.
12945 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12946 (abbrev_table::lookup_abbrev): Rename from
12947 abbrev_table_lookup_abbrev.
12948 (abbrev_table_read_table): Return abbrev_table_up.
12949 (abbrev_table_free, abbrev_table_free_cleanup)
12950 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12951 (load_partial_dies): Update.
12952
5e2db402
TT
129532018-01-17 Tom Tromey <tom@tromey.com>
12954
12955 * dwarf2read.c (dwarf2_compute_name): Update comment.
12956 (read_func_scope, read_variable): Update.
12957 (new_symbol): Remove.
12958 (new_symbol_full): Rename to new_symbol.
12959
ee7f689e 129602018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
12961
12962 PR gdb/16577
12963 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12964 a warning instead of throwing an error, set section size to 0 and return
12965 NULL.
12966 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12967
4d9b86e1
SM
129682018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12969
12970 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12971 std::string.
12972 (linux_ptrace_attach_fail_reason_string): Likewise.
12973 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12974 Likewise.
12975 (linux_ptrace_attach_fail_reason_string): Likewise.
12976 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12977
a7b2d0fb
SM
129782018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12979
12980 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12981
f517c180
EA
129822018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12983
12984 PR gdb/21559
12985 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12986 checking for fs_base/gs_base fields in struct user_regs_struct.
12987 * configure: Regenerate.
12988
7045b1ca
YQ
129892018-01-17 Yao Qi <yao.qi@linaro.org>
12990
12991 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12992 function.
12993 (aarch64_linux_init_abi): Install it to gdbarch hook
12994 gcc_target_options.
12995
db422fb2
PA
129962018-01-15 Pedro Alves <palves@redhat.com>
12997
12998 * common/signals-state-save-restore.c
12999 (save_original_signals_state): Fix typos.
13000
ba643918
SDJ
130012017-01-12 Tom Tromey <tom@tromey.com>
13002 Sergio Durigan Junior <sergiodj@redhat.com>
13003
13004 * Makefile.in (install-only): Install gdb-add-index.
13005
906b4aac
JB
130062018-01-12 John Baldwin <jhb@FreeBSD.org>
13007
13008 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13009
bdf2a94a
AA
130102018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13011
13012 * infrun.c (keep_going_pass_signal): Clear step-over info when
13013 insert_breakpoints fails.
13014
71d378ae
PA
130152018-01-11 Pedro Alves <palves@redhat.com>
13016
13017 PR gdb/22583
13018 * infrun.c (resume): Rename to ...
13019 (resume_1): ... this.
13020 (resume): Reimplement as wrapper around resume_1.
13021
3cada740
PA
130222018-01-11 Pedro Alves <palves@redhat.com>
13023
13024 PR remote/22597
13025 * remote.c (remote_parse_stop_reply): Default to the last-set
13026 general thread instead of to 'magic_null_ptid'.
13027
618daa93
PA
130282018-01-10 Pedro Alves <palves@redhat.com>
13029
13030 * language.h (language_get_symbol_name_matcher): Rename ...
13031 (get_symbol_name_matcher): ... this.
13032 * language.c (language_get_symbol_name_matcher): Ditto.
13033 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13034 callers adjusted.
13035
c63d3e8d
PA
130362018-01-10 Pedro Alves <palves@redhat.com>
13037
13038 PR gdb/22670
13039 * dwarf2read.c
13040 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13041 Adjust to use language_get_symbol_name_matcher instead of
13042 language_defn::la_get_symbol_name_matcher.
13043 * language.c (language_get_symbol_name_matcher): If in Ada mode
13044 and the lookup name is a verbatim match, return Ada's matcher.
13045 * language.h (language_get_symbol_name_matcher): Adjust comment.
13046 (ada_lookup_name_info::verbatim_p):: New method.
13047
d4c2a405
PA
130482018-01-10 Pedro Alves <palves@redhat.com>
13049
13050 PR gdb/22670
13051 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13052 minsym's language is language_auto or language_cplus, pass down
13053 language_ada instead.
13054 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13055
8825213e
PA
130562018-01-10 Pedro Alves <palves@redhat.com>
13057
13058 PR gdb/22670
13059 * minsyms.c (linkage_name_str): New function.
13060 (iterate_over_minimal_symbols): Use it.
13061
2d97a5d9
JB
130622018-01-09 John Baldwin <jhb@FreeBSD.org>
13063
13064 * NEWS: Document that 'info proc' now works on FreeBSD.
13065
92fce24d
JB
130662018-01-09 John Baldwin <jhb@FreeBSD.org>
13067
13068 * configure.ac: Check for kinfo_getfile in libutil.
13069 * configure: Regenerate.
13070 * config.in: Regenerate.
13071 * fbsd-nat.c: Include "fbsd-tdep.h".
13072 (fbsd_fetch_cmdline): New.
13073 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13074 rather than calling error.
13075 (fbsd_info_proc): New.
13076 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13077 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13078 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13079
262f62f5
JB
130802018-01-09 John Baldwin <jhb@FreeBSD.org>
13081
13082 * fbsd-nat.c (struct free_deleter): Remove.
13083 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13084
b999e203
JB
130852018-01-09 John Baldwin <jhb@FreeBSD.org>
13086
13087 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13088 NULL for an empty pathname.
13089
d2176225
JB
130902018-01-09 John Baldwin <jhb@FreeBSD.org>
13091
13092 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13093 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13094 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13095 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13096 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13097 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13098 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13099 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13100 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13101 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13102 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13103 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13104 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13105 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13106 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13107
9c4ac400
ST
131082018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13109
13110 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13111 (gnu_xfer_auxv): New function.
13112 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13113 TARGET_OBJECT_AUXV.
13114
1e5ded6c
YQ
131152018-01-08 Yao Qi <yao.qi@linaro.org>
13116 Simon Marchi <simon.marchi@ericsson.com>
13117
13118 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13119 common/selftest.c.
13120 (COMMON_OBS): Remove selftest.o.
13121 * configure.ac: Append selftest-arch.c and common/selftest.c to
13122 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13123 * configure: Re-generated.
13124 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13125 GDB_SELF_TEST.
13126 (maintenance_info_selftests): Likewise.
13127
04bafb1e
XR
131282018-01-08 Xavier Roirand <roirand@adacore.com>
13129
13130 * ada-valprint.c (val_print_packed_array_elements): Use
13131 proper number of elements when printing an array indexed
13132 by an enumeration type.
13133
518817b3
SM
131342018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13135
13136 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13137 (dw2_get_file_names_reader): Adjust.
13138 (lookup_dwo_signatured_type): Adjust.
13139 (lookup_dwp_signatured_type): Adjust.
13140 (lookup_signatured_type): Adjust.
13141 (create_type_unit_group): Adjust.
13142 (get_type_unit_group): Adjust.
13143 (process_psymtab_comp_unit_reader): Adjust.
13144 (build_type_psymtabs_reader): Adjust.
13145 (scan_partial_symbols): Adjust.
13146 (add_partial_symbol): Adjust.
13147 (add_partial_subprogram): Adjust.
13148 (peek_die_abbrev): Adjust.
13149 (fixup_go_packaging): Adjust.
13150 (process_imported_unit_die): Adjust.
13151 (dwarf2_compute_name): Adjust.
13152 (dwarf2_physname): Adjust.
13153 (read_import_statement): Adjust.
13154 (handle_DW_AT_stmt_list): Adjust.
13155 (read_file_scope): Adjust.
13156 (read_func_scope): Adjust.
13157 (read_lexical_block_scope): Adjust.
13158 (read_call_site_scope): Adjust.
13159 (read_variable): Adjust.
13160 (dwarf2_rnglists_process): Adjust.
13161 (dwarf2_ranges_process): Adjust.
13162 (dwarf2_ranges_read): Adjust.
13163 (dwarf2_get_pc_bounds): Adjust.
13164 (dwarf2_record_block_ranges): Adjust.
13165 (dwarf2_add_field): Adjust.
13166 (dwarf2_add_member_fn): Adjust.
13167 (read_structure_type): Adjust.
13168 (process_structure_scope): Adjust.
13169 (read_enumeration_type): Adjust.
13170 (read_array_type): Adjust.
13171 (mark_common_block_symbol_computed): Adjust.
13172 (read_common_block): Adjust.
13173 (read_namespace_type): Adjust.
13174 (read_namespace): Adjust.
13175 (read_module_type): Adjust.
13176 (read_tag_pointer_type): Adjust.
13177 (read_tag_ptr_to_member_type): Adjust.
13178 (read_tag_string_type): Adjust.
13179 (read_subroutine_type): Adjust.
13180 (read_typedef): Adjust.
13181 (read_base_type): Adjust.
13182 (attr_to_dynamic_prop): Adjust.
13183 (read_subrange_type): Adjust.
13184 (read_unspecified_type): Adjust.
13185 (dwarf2_read_abbrevs): Adjust.
13186 (load_partial_dies): Adjust.
13187 (read_partial_die): Adjust.
13188 (find_partial_die): Adjust.
13189 (guess_partial_die_structure_name): Adjust.
13190 (fixup_partial_die): Adjust.
13191 (read_attribute_value): Adjust.
13192 (read_addr_index): Adjust.
13193 (read_addr_index_from_leb128): Adjust.
13194 (read_str_index): Adjust.
13195 (dwarf2_string_attr): Adjust.
13196 (get_debug_line_section): Adjust.
13197 (dwarf_decode_line_header): Adjust.
13198 (lnp_state_machine::check_line_address): Adjust.
13199 (dwarf_decode_lines_1): Adjust.
13200 (dwarf_decode_lines): Adjust.
13201 (dwarf2_start_symtab): Adjust.
13202 (var_decode_location): Adjust.
13203 (new_symbol_full): Adjust.
13204 (dwarf2_const_value_data): Adjust.
13205 (dwarf2_const_value_attr): Adjust.
13206 (dwarf2_const_value): Adjust.
13207 (die_type): Adjust.
13208 (die_containing_type): Adjust.
13209 (build_error_marker_type): Adjust.
13210 (lookup_die_type): Adjust.
13211 (guess_full_die_structure_name): Adjust.
13212 (anonymous_struct_prefix): Adjust.
13213 (determine_prefix): Adjust.
13214 (dwarf2_name): Adjust.
13215 (follow_die_ref_or_sig): Adjust.
13216 (follow_die_offset): Adjust.
13217 (follow_die_ref): Adjust.
13218 (follow_die_sig_1): Adjust.
13219 (follow_die_sig): Adjust.
13220 (get_signatured_type): Adjust.
13221 (get_DW_AT_signature_type): Adjust.
13222 (decode_locdesc): Adjust.
13223 (dwarf_decode_macros): Adjust.
13224 (cu_debug_loc_section): Adjust.
13225 (fill_in_loclist_baton): Adjust.
13226 (dwarf2_symbol_mark_computed): Adjust.
13227 (init_one_comp_unit): Don't assign
13228 dwarf2_cu::dwarf2_per_objfile.
13229 (set_die_type): Adjust.
13230
ed2dc618
SM
132312018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13232
13233 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13234 <dwarf2_per_objfile>: New field.
13235 (dwarf2_per_objfile): Remove global.
13236 (get_dwarf2_per_objfile): New function.
13237 (set_dwarf2_per_objfile): New function.
13238 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13239 dwarf2_per_objfile.
13240 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13241 (read_abbrev_offset): Likewise.
13242 (read_indirect_string): Likewise.
13243 (read_indirect_line_string): Likewise.
13244 (read_indirect_string_at_offset): Likewise.
13245 (read_indirect_string_from_dwz): Likewise.
13246 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13247 dwarf2_per_objfile.
13248 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13249 (create_all_comp_units): Change objfile parameter to
13250 dwarf2_per_objfile.
13251 (create_all_type_units): Likewise.
13252 (process_queue): Add dwarf2_per_objfile parameter.
13253 (read_and_check_comp_unit_head): Likewise.
13254 (lookup_dwo_unit_in_dwp): Likewise.
13255 (get_dwp_file): Likewise.
13256 (process_cu_includes): Likewise.
13257 (struct free_dwo_file_cleanup_data): New struct.
13258 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13259 set_dwarf2_per_objfile.
13260 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13261 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13262 context, adjust calls.
13263 (dw2_instantiate_symtab): Likewise.
13264 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13265 (dw2_get_cu): Likewise.
13266 (create_cu_from_index_list): Change objfile parameter to
13267 dwarf2_per_objfile.
13268 (create_cus_from_index_list): Get dwarf2_per_objfile from
13269 context, adjust calls.
13270 (create_cus_from_index): Likewise.
13271 (create_signatured_type_table_from_index): Change objfile
13272 parameter to dwarf2_per_objfile.
13273 (create_signatured_type_table_from_debug_names): Change objfile
13274 parameter to dwarf2_per_objfile.
13275 (create_addrmap_from_index): Likewise.
13276 (create_addrmap_from_aranges): Likewise.
13277 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13278 (dw2_setup): Remove.
13279 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13280 context.
13281 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13282 get_dwarf2_per_objfile.
13283 (dw2_forget_cached_source_info): Likewise.
13284 (dw2_map_symtabs_matching_filename): Likewise.
13285 (struct dw2_symtab_iterator) <index>: Remove.
13286 <dwarf2_per_objfile>: New field.
13287 (dw2_symtab_iter_init): Replace index parameter with
13288 dwarf2_per_objfile.
13289 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13290 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13291 (dw2_print_stats): Likewise.
13292 (dw2_dump): Likewise.
13293 (dw2_expand_symtabs_for_function): Likewise.
13294 (dw2_expand_all_symtabs): Likewise.
13295 (dw2_expand_symtabs_with_fullname): Likewise.
13296 (dw2_expand_marked_cus): Replace index and objfile parameters
13297 with dwarf2_per_objfile.
13298 (dw_expand_symtabs_matching_file_matcher): Add
13299 dwarf2_per_objfile parameter and adjust calls.
13300 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13301 adjust calls.
13302 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13303 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13304 adjust calls.
13305 (create_cus_from_debug_names_list): Replace objfile parameter
13306 with dwarf2_per_objfile and adjust calls.
13307 (create_cus_from_debug_names): Likewise.
13308 (dwarf2_read_debug_names): Likewise.
13309 (mapped_debug_names::namei_to_name): Adjust call.
13310 (dw2_debug_names_iterator::next): Likewise.
13311 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13312 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13313 (dw2_debug_names_dump): Likewise.
13314 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13315 (dw2_debug_names_expand_symtabs_matching): Likewise.
13316 (dwarf2_initialize_objfile): Likewise.
13317 (dwarf2_build_psymtabs): Likewise.
13318 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13319 this_cu.
13320 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13321 (read_and_check_comp_unit_head): Likewise.
13322 (read_abbrev_offset): Likewise.
13323 (create_debug_type_hash_table): Likewise.
13324 (create_debug_types_hash_table): Likewise.
13325 (create_all_type_units): Replace objfile parameter with
13326 dwarf2_per_objfile.
13327 (add_type_unit): Add dwarf2_per_objfile parameter.
13328 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13329 with dwarf2_per_objfile.
13330 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13331 (lookup_dwp_signatured_type): Likewise.
13332 (lookup_signatured_type): Likewise.
13333 (read_cutu_die_from_dwo): Likewise.
13334 (init_tu_and_read_dwo_dies): Likewise.
13335 (init_cutu_and_read_dies): Likewise.
13336 (init_cutu_and_read_dies_no_follow): Likewise.
13337 (allocate_type_unit_groups_table): Add objfile parameter.
13338 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13339 (get_type_unit_group): Likewise.
13340 (process_psymtab_comp_unit): Update call.
13341 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13342 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13343 (print_tu_stats): Likewise.
13344 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13345 in void* parameter.
13346 (build_type_psymtabs): Change objfile parameter to
13347 dwarf2_per_objfile.
13348 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13349 passed in void* parameter.
13350 (process_skeletonless_type_units): Change objfile parameter to
13351 dwarf2_per_objfile.
13352 (set_partial_user): Likewise.
13353 (dwarf2_build_psymtabs_hard): Likewise.
13354 (read_comp_units_from_section): Likewise.
13355 (create_all_comp_units): Likewise.
13356 (scan_partial_symbols): Update calls.
13357 (add_partial_symbol): Likewise.
13358 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13359 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13360 (process_queue): Add dwarf2_per_objfile parameter.
13361 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13362 (compute_compunit_symtab_includes): Likewise.
13363 (process_cu_includes): Add dwarf2_per_objfile parameter.
13364 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13365 (process_full_type_unit): Likewise.
13366 (process_imported_unit_die): Update call.
13367 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13368 (read_file_scope): Likewise.
13369 (allocate_dwo_file_hash_table): Add objfile parameter.
13370 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13371 (create_cus_hash_table): Likewise.
13372 (create_dwp_hash_table): Likewise.
13373 (create_dwo_unit_in_dwp_v1): Likewise.
13374 (create_dwp_v2_section): Likewise.
13375 (create_dwo_unit_in_dwp_v2): Likewise.
13376 (lookup_dwo_unit_in_dwp): Likewise.
13377 (try_open_dwop_file): Likewise.
13378 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13379 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13380 cleanup to include a reference to dwarf2_per_objfile.
13381 (open_dwp_file): Add dwarf2_per_objfile parameter.
13382 (open_and_init_dwp_file): Likewise.
13383 (get_dwp_file): Likewise.
13384 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13385 (queue_and_load_all_dwo_tus): Update call.
13386 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13387 data.
13388 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13389 (dwarf2_ranges_process): Likewise.
13390 (dwarf2_get_pc_bounds): Likewise.
13391 (mark_common_block_symbol_computed): Likewise.
13392 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13393 (dwarf2_read_abbrevs): Update call.
13394 (read_partial_die): Use dwarf2_per_objfile from cu.
13395 (find_partial_die): Likewise.
13396 (fixup_partial_die): Likewise.
13397 (read_attribute_value): Likewise.
13398 (read_indirect_string_at_offset_from): Add objfile parameter.
13399 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13400 parameter.
13401 (read_indirect_string_from_dwz): Add objfile parameter.
13402 (read_indirect_string): Add objfile parameter.
13403 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13404 (read_addr_index): Use dwarf2_per_objfile from cu.
13405 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13406 call dw2_setup.
13407 (read_str_index): Use dwarf2_per_objfile from cu.
13408 (get_debug_line_section): Likewise.
13409 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13410 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13411 (new_symbol_full): Use dwarf2_per_objfile from cu.
13412 (build_error_marker_type): Likewise.
13413 (lookup_die_type): Likewise.
13414 (determine_prefix): Likewise.
13415 (follow_die_offset): Likewise.
13416 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13417 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13418 (dwarf2_fetch_die_type_sect_off): Likewise.
13419 (dwarf2_get_die_type): Likewise.
13420 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13421 (get_signatured_type): Likewise.
13422 (get_DW_AT_signature_type): Likewise.
13423 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13424 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13425 (cu_debug_loc_section): Likewise.
13426 (fill_in_loclist_baton): Likewise.
13427 (dwarf2_symbol_mark_computed): Likewise.
13428 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13429 dwarf2_per_objfile.
13430 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13431 parameter.
13432 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13433 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13434 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13435 (set_die_type): Use dwarf2_free_objfile from cu.
13436 (get_die_type_at_offset): Likewise.
13437 (dwarf2_per_objfile_free): Don't assign global variable.
13438 (debug_names) <constructor>: Add dwarf2_per_objfile
13439 parameter, update m_debugstrlookup construction.
13440 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13441 parameter.
13442 <m_dwarf2_per_objfile>: New field.
13443 <lookup>: Use m_dwarf2_per_objfile.
13444 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13445 (psyms_seen_size): Likewise.
13446 (write_gdbindex): Replace objfile parameter with
13447 dwarf2_per_objfile.
13448 (write_debug_names): Likewise.
13449 (write_psymtabs_to_index): Likewise.
13450 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13451 calls.
13452
e3b94546
SM
134532018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13454
13455 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13456 <dwarf2_per_objfile>: New field.
13457 (struct dwarf2_per_cu_data) <objfile>: Remove.
13458 <dwarf2_per_objfile>: New field.
13459 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13460 of objfile.
13461 (create_signatured_type_table_from_index): Likewise.
13462 (create_debug_type_hash_table): Likewise.
13463 (fill_in_sig_entry_from_dwo_entry): Likewise.
13464 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13465 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13466 objfile.
13467 (create_partial_symtab): Access objfile through
13468 dwarf2_per_objfile.
13469 (process_psymtab_comp_unit_reader): Likewise.
13470 (read_comp_units_from_section): Likewise.
13471 (scan_partial_symbols): Likewise.
13472 (add_partial_symbol): Likewise.
13473 (add_partial_subprogram): Likewise.
13474 (peek_die_abbrev): Likewise.
13475 (fixup_go_packaging): Likewise.
13476 (process_full_comp_unit): Likewise.
13477 (process_full_type_unit): Likewise.
13478 (process_imported_unit_die): Likewise.
13479 (dwarf2_compute_name): Likewise.
13480 (dwarf2_physname): Likewise.
13481 (read_import_statement): Likewise.
13482 (create_cus_hash_table): Assign dwarf2_physname instead of
13483 objfile.
13484 (read_func_scope): Access objfile through dwarf2_per_objfile.
13485 (read_lexical_block_scope): Likewise.
13486 (read_call_site_scope): Likewise.
13487 (read_variable): Likewise.
13488 (dwarf2_rnglists_process): Likewise.
13489 (dwarf2_ranges_process): Likewise.
13490 (dwarf2_ranges_read): Likewise.
13491 (dwarf2_record_block_ranges): Likewise.
13492 (dwarf2_add_field): Likewise.
13493 (dwarf2_add_member_fn): Likewise.
13494 (read_structure_type): Likewise.
13495 (process_structure_scope): Likewise.
13496 (read_enumeration_type): Likewise.
13497 (read_array_type): Likewise.
13498 (read_common_block): Likewise.
13499 (read_namespace_type): Likewise.
13500 (read_namespace): Likewise.
13501 (read_module_type): Likewise.
13502 (read_tag_pointer_type): Likewise.
13503 (read_tag_ptr_to_member_type): Likewise.
13504 (read_tag_string_type): Likewise.
13505 (read_subroutine_type): Likewise.
13506 (read_typedef): Likewise.
13507 (read_base_type): Likewise.
13508 (attr_to_dynamic_prop): Likewise.
13509 (read_subrange_type): Likewise.
13510 (read_unspecified_type): Likewise.
13511 (load_partial_dies): Likewise.
13512 (read_partial_die): Likewise.
13513 (find_partial_die): Likewise.
13514 (guess_partial_die_structure_name): Likewise.
13515 (fixup_partial_die): Likewise.
13516 (read_attribute_value): Likewise.
13517 (read_addr_index_from_leb128): Likewise.
13518 (dwarf2_read_addr_index): Likewise.
13519 (dwarf2_string_attr): Likewise.
13520 (lnp_state_machine::check_line_address): Likewise.
13521 (dwarf_decode_lines_1): Likewise.
13522 (dwarf_decode_lines): Likewise.
13523 (dwarf2_start_symtab): Likewise.
13524 (var_decode_location): Likewise.
13525 (new_symbol_full): Likewise.
13526 (dwarf2_const_value_data): Likewise.
13527 (dwarf2_const_value_attr): Likewise.
13528 (dwarf2_const_value): Likewise.
13529 (die_type): Likewise.
13530 (die_containing_type): Likewise.
13531 (lookup_die_type): Likewise.
13532 (guess_full_die_structure_name): Likewise.
13533 (anonymous_struct_prefix): Likewise.
13534 (dwarf2_name): Likewise.
13535 (follow_die_ref_or_sig): Likewise.
13536 (follow_die_offset): Likewise.
13537 (follow_die_ref): Likewise.
13538 (dwarf2_fetch_die_loc_sect_off): Likewise.
13539 (dwarf2_fetch_constant_bytes): Likewise.
13540 (dwarf2_fetch_die_type_sect_off): Likewise.
13541 (dwarf2_get_die_type): Likewise.
13542 (follow_die_sig): Likewise.
13543 (decode_locdesc): Likewise.
13544 (dwarf2_per_cu_objfile): Likewise.
13545 (dwarf2_per_cu_text_offset): Likewise.
13546 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13547 objfile.
13548 (set_die_type): Access objfile through
13549 dwarf2_per_objfile.
13550
b01ba14d
SM
135512018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13552
13553 * valprint.c (converted_character_d): Remove typedef.
13554 (DEF_VEC_O (converted_character_d)): Remove.
13555 (count_next_character): Use std::vector.
13556 (print_converted_chars_to_obstack): Likewise.
13557 (generic_printstr): Likewise.
13558
4d0fdd9b
SM
135592018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13560
13561 * xml-support.h (struct gdb_xml_value): Add constructor.
13562 <value>: Change type to unique_xmalloc_ptr.
13563 (gdb_xml_value_s): Remove typedef.
13564 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13565 (gdb_xml_element_start_handler): Change parameter type to
13566 std::vector.
13567 (xml_find_attribute): Likewise.
13568 * xml-support.c (xml_find_attribute): Change parameter type to
13569 std::vector and adjust.
13570 (gdb_xml_values_cleanup): Remove.
13571 (gdb_xml_parser::start_element): Adjust to std::vector.
13572 (xinclude_start_include): Change paraeter type to std::vector
13573 and adjust.
13574 * btrace.c (check_xml_btrace_version): Likewise.
13575 (parse_xml_btrace_block): Likewise.
13576 (parse_xml_btrace_pt_config_cpu): Likewise.
13577 (parse_xml_btrace_pt): Likewise.
13578 (parse_xml_btrace_conf_bts): Likewise.
13579 (parse_xml_btrace_conf_pt): Likewise.
13580 * memory-map.c (memory_map_start_memory): Likewise.
13581 (memory_map_start_property): Likewise.
13582 * osdata.c (osdata_start_osdata): Likewise.
13583 (osdata_start_item): Likewise.
13584 (osdata_start_column): Likewise.
13585 * remote.c (start_thread): Likewise.
13586 * solib-aix.c (library_list_start_library): Likewise.
13587 (library_list_start_list): Likewise.
13588 * solib-svr4.c (library_list_start_library): Likewise.
13589 (svr4_library_list_start_list): Likewise.
13590 * solib-target.c (library_list_start_segment): Likewise.
13591 (library_list_start_section): Likewise.
13592 (library_list_start_library): Likewise.
13593 (library_list_start_list): Likewise.
13594 * tracepoint.c (traceframe_info_start_memory): Likewise.
13595 (traceframe_info_start_tvar): Likewise.
13596 * xml-syscall.c (syscall_start_syscall): Likewise.
13597 * xml-tdesc.c (tdesc_start_target): Likewise.
13598 (tdesc_start_feature): Likewise.
13599 (tdesc_start_reg): Likewise.
13600 (tdesc_start_union): Likewise.
13601 (tdesc_start_struct): Likewise.
13602 (tdesc_start_flags): Likewise.
13603 (tdesc_start_enum): Likewise.
13604 (tdesc_start_field): Likewise.
13605 (tdesc_start_enum_value): Likewise.
13606 (tdesc_start_vector): Likewise.
13607
f979c73f
SM
136082018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13609
13610 * extension.h (struct xmethod_worker) <clone>: Remove.
13611 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13612 Remove.
13613 (python_xmethod_worker::clone): Remove.
13614 * valops.c (find_overload_match): Use std::move instead of
13615 clone.
13616
ba18742c
SM
136172018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13618
13619 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13620 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13621 <free_xmethod_worker_data>: Remove.
13622 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13623 <get_xmethod_arg_types>: Remove.
13624 <get_xmethod_result_type>: Remove.
13625 <invoke_xmethod>: Remove.
13626 * extension.c (new_xmethod_worker): Remove.
13627 (clone_xmethod_worker): Remove.
13628 (get_matching_xmethod_workers): Return void, pass std::vector by
13629 pointer.
13630 (get_xmethod_arg_types): Rename to...
13631 (xmethod_worker::get_arg_types): ... this, and adjust.
13632 (get_xmethod_result_type): Rename to...
13633 (xmethod_worker::get_result_type): ... this, and adjust.
13634 (invoke_xmethod): Remove.
13635 (free_xmethod_worker): Remove.
13636 (free_xmethod_worker_vec): Remove.
13637 * extension.h (enum ext_lang_rc): Move here from
13638 extension-priv.h.
13639 (struct xmethod_worker): Add constructor and destructor.
13640 <data>: Remove.
13641 <value>: Remove.
13642 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13643 virtual pure methods.
13644 <get_arg_types, get_result_type>: New methods.
13645 (xmethod_worker_ptr): Remove typedef.
13646 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13647 (xmethod_worker_vec): Remove typedef.
13648 (xmethod_worker_up): New typedef.
13649 (invoke_xmethod): Remove.
13650 (clone_xmethod_worker): Remove.
13651 (free_xmethod_worker): Remove.
13652 (free_xmethod_worker_vec): Remove.
13653 (get_xmethod_arg_types): Remove.
13654 (get_xmethod_result_type): Remove.
13655 * valops.c (find_method_list): Use std::vector, don't use
13656 intermediate vector.
13657 (value_find_oload_method_list): Use std::vector.
13658 (find_overload_match): Use std::vector.
13659 (find_oload_champ): Use std::vector.
13660 * value.c (value_free): Use operator delete.
13661 (value_of_xmethod): Rename to...
13662 (value_from_xmethod): ... this. Don't assign
13663 xmethod_worker::value, take rvalue-reference.
13664 (result_type_of_xmethod): Adjust.
13665 (call_xmethod): Adjust.
13666 * value.h: Include extension.h.
13667 (struct xmethod_worker): Don't forward-declare.
13668 (value_of_xmethod): Rename to...
13669 (value_from_xmethod): ... this, take rvalue-reference.
13670 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13671 (struct python_xmethod_worker): ... this, add constructor and
13672 destructor.
13673 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13674 (gdbpy_free_xmethod_worker_data): Rename to...
13675 (python_xmethod_worker::~python_xmethod_worker): ... this and
13676 adjust.
13677 (gdbpy_clone_xmethod_worker_data): Rename to...
13678 (python_xmethod_worker::clone): ... this and adjust.
13679 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13680 temporary vector.
13681 (gdbpy_get_xmethod_arg_types): Rename to...
13682 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13683 (gdbpy_get_xmethod_result_type): Rename to...
13684 (python_xmethod_worker::do_get_result_type): ... this and
13685 adjust.
13686 (gdbpy_invoke_xmethod): Rename to...
13687 (python_xmethod_worker::invoke): ... this and adjust.
13688 (new_python_xmethod_worker): Rename to...
13689 (python_xmethod_worker::python_xmethod_worker): ... this and
13690 adjust.
13691 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13692 Remove.
13693 (gdbpy_free_xmethod_worker_data): Remove.
13694 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13695 (gdbpy_get_xmethod_arg_types): Remove.
13696 (gdbpy_get_xmethod_result_type): Remove.
13697 (gdbpy_invoke_xmethod): Remove.
13698 * python/python.c (python_extension_ops): Remove obsolete
13699 callbacks.
13700
e379cee6
PA
137012018-01-05 Pedro Alves <palves@redhat.com>
13702
13703 PR gdb/18653
13704 * common/signals-state-save-restore.c
13705 (save_original_signals_state): New parameter 'quiet'. Warn if we
13706 find a custom handler preinstalled, instead of internal erroring.
13707 But only warn if !quiet.
13708 * common/signals-state-save-restore.h
13709 (save_original_signals_state): New parameter 'quiet'.
13710 * main.c (captured_main_1): Move save_original_signals_state call
13711 after option handling, and pass QUIET.
13712
a655456c
PA
137132018-01-05 Pedro Alves <palves@redhat.com>
13714
13715 * spu-tdep.c (spu_catch_start): Pass
13716 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13717
de63c46b
PA
137182018-01-05 Pedro Alves <palves@redhat.com>
13719
13720 PR gdb/22670
13721 * ada-lang.c (literal_symbol_name_matcher): New function.
13722 (ada_get_symbol_name_matcher): Use it for
13723 symbol_name_match_type::SEARCH_NAME.
13724 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13725 it down instead of assuming symbol_name_match_type::FULL.
13726 * block.h (block_lookup_symbol): New parameter 'match_type'.
13727 * c-valprint.c (print_unpacked_pointer): Use
13728 lookup_symbol_search_name instead of lookup_symbol.
13729 * compile/compile-object-load.c (get_out_value_type): Pass down
13730 symbol_name_match_type::SEARCH_NAME.
13731 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13732 symbol_name_match_type::FULL.
13733 * cp-support.c (cp_get_symbol_name_matcher): Handle
13734 symbol_name_match_type::SEARCH_NAME.
13735 * infrun.c (insert_exception_resume_breakpoint): Use
13736 lookup_symbol_search_name.
13737 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13738 * psymtab.c (maintenance_check_psymtabs): Use
13739 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13740 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13741 SYMBOL_SEARCH_NAME.
13742 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13743 if symbol_name_match_type::SEARCH_NAME.
13744 (lookup_symbol_in_language): Pass down
13745 symbol_name_match_type::FULL.
13746 (lookup_symbol_search_name): New.
13747 (lookup_language_this): Pass down
13748 symbol_name_match_type::SEARCH_NAME.
13749 (lookup_symbol_aux, lookup_local_symbol): New parameter
13750 'match_type'. Pass it down.
13751 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13752 (lookup_symbol_search_name): New declaration.
13753 (lookup_symbol_in_block): New 'match_type' parameter.
13754
f98fc17b
PA
137552018-01-05 Pedro Alves <palves@redhat.com>
13756
13757 PR gdb/22670
13758 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13759 ada_lookup_symbol.
13760 (ada_lookup_symbol): Reimplement in terms of
13761 ada_lookup_symbol_list, bits factored out from
13762 ada_lookup_encoded_symbol.
13763
342f8240
JB
137642018-01-05 Joel Brobecker <brobecker@adacore.com>
13765
13766 * ada-exp.y (write_object_renaming): When subscripting an array
13767 using a symbol as the index, pass the block in call to
13768 ada_lookup_encoded_symbol when looking that symbol up.
13769
7150d33c
JG
137702018-01-05 Jerome Guitton <guitton@adacore.com>
13771
13772 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13773 TYPE_INDEX_TYPE.
13774
cc0e770c
JB
137752018-01-05 Joel Brobecker <brobecker@adacore.com>
13776
13777 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13778 the case where VALUE_LVAL (val0) is not lval_memory.
13779
f79da888 137802018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
13781
13782 * ada-valprint.c (print_optional_low_bound): Handle
13783 character-indexed array printing like boolean-indexed array
13784 printing.
13785
cd385f94
JB
137862018-01-05 Joel Brobecker <brobecker@adacore.com>
13787
13788 * NEWS: Create a new section for the next release branch.
13789 Rename the section of the current branch, now that it has
13790 been cut.
13791
09aca949
JB
137922018-01-05 Joel Brobecker <brobecker@adacore.com>
13793
13794 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13795 * version.in: Bump version to 8.1.50.DATE-git.
13796
9f757bf7
XR
137972018-01-03 Xavier Roirand <roirand@adacore.com>
13798
13799 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13800 Add field.
13801 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13802 Add field.
13803 (default_exception_support_info) <catch_handlers_sym>: Add field.
13804 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13805 (ada_exception_name_addr_1): Add "catch handlers" handling.
13806 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13807 Update all callers.
13808 (create_excep_cond_exprs) <ex>: Add parameter.
13809 (re_set_exception): Update create_excep_cond_exprs call.
13810 (print_it_exception, print_one_exception, print_mention_exception)
13811 (print_recreate_exception): Add "catch handler" handling.
13812 (allocate_location_catch_handlers, re_set_catch_handlers)
13813 (check_status_catch_handlers, print_it_catch_handlers)
13814 (print_one_catch_handlers, print_mention_catch_handlers)
13815 (print_recreate_catch_handlers): New function.
13816 (catch_handlers_breakpoint_ops): New variable.
13817 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13818 Add parameter. Add "catch handler" handling.
13819 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13820 Add "catch handler" handling.
13821 (ada_exception_catchpoint_cond_string): Add "catch handler"
13822 handling.
13823 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13824 call.
13825 (catch_ada_handlers_command): New function.
13826 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13827 operations structure.
13828 (_initialize_ada_language): Add "catch handlers" command entry.
13829 * NEWS: Document "catch handlers" feature.
13830
9fe561ab
JB
138312018-01-02 Joel Brobecker <brobecker@adacore.com>
13832
13833 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13834 account when creating the array type of the slice.
13835 (ada_value_slice): Likewise.
13836
a405673c
JB
138372018-01-02 Joel Brobecker <brobecker@adacore.com>
13838
13839 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13840 New enum value.
13841 (create_array_type_with_stride): Add byte_stride_prop parameter.
13842 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13843 New parameter. Update all callers in this file.
13844 (array_type_has_dynamic_stride): New function.
13845 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13846 of arrays with dynamic byte strides.
13847 * dwarf2read.c (read_array_type): Add support for dynamic
13848 DW_AT_byte_stride attributes.
13849
74a2f8ff
JB
138502018-01-02 Joel Brobecker <brobecker@adacore.com>
13851
13852 * dwarf2read.c (read_unspecified_type): Treat
13853 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13854
e2882c85
JB
138552018-01-01 Joel Brobecker <brobecker@adacore.com>
13856
13857 Update copyright year range in all GDB files.
13858
1690bb24
JB
138592018-01-01 Joel Brobecker <brobecker@adacore.com>
13860
13861 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13862 and gdb/testsuite/gdb.base/step-line.c.
13863
0f0c98a8
JB
138642018-01-01 Joel Brobecker <brobecker@adacore.com>
13865
13866 * copyright.py (main): Dump the contents of
13867 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13868 even if BY_HAND is empty.
13869
82e1e79a
JB
138702018-01-01 Joel Brobecker <brobecker@adacore.com>
13871
13872 * top.c (print_gdb_version): Update Copyright year in version
13873 message.
13874
053f54e5 138752018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 13876
053f54e5 13877 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 13878
053f54e5 13879For older changes see ChangeLog-2017.
c906108c
SS
13880\f
13881Local Variables:
13882mode: change-log
13883left-margin: 8
13884fill-column: 74
13885version-control: never
57da7796 13886coding: utf-8
c906108c 13887End:
This page took 2.646577 seconds and 4 git commands to generate.