RISC-V: Pc-rel to gp-rel relaxation function cleanup.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d354055e
AB
12018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
4 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
5 and NOP.
6
85392414
SM
72018-09-26 Simon Marchi <simon.marchi@ericsson.com>
8
9 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
10
896ee098
TT
112018-09-26 Tom Tromey <tom@tromey.com>
12
13 * valops.c (auto_abandon): Remove dead code.
14
57dbb3af
TT
152018-09-26 Tom Tromey <tom@tromey.com>
16
17 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
18
b5a9bfbe
TT
192018-09-24 Tom Tromey <tom@tromey.com>
20
21 * common/pathstuff.c (get_standard_cache_dir): Make
22 "xdg_cache_home" and "home" const.
23 * top.c (init_history): Make "tmpenv" const.
24 * main.c (get_init_files): Make "homedir" const.
25
ae778caf
TT
262018-09-23 Tom Tromey <tom@tromey.com>
27
28 PR python/18852:
29 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
30
2b4ad2fe
TT
312018-09-23 Tom Tromey <tom@tromey.com>
32
33 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
34 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
35 * python/python-internal.h (gdbpy_handle_exception): Declare.
36 * python/py-utils.c (gdbpy_handle_exception): New function.
37
fd3ba736
TT
382018-09-23 Tom Tromey <tom@tromey.com>
39
40 PR python/17284:
41 * python/py-type.c (typy_template_argument): Check for negative
42 argument number.
43
39a24317
TT
442018-09-23 Tom Tromey <tom@tromey.com>
45
46 PR python/14062:
47 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
48
f5769a2c
TT
492018-09-23 Tom Tromey <tom@tromey.com>
50
51 PR python/18170:
52 * python/py-value.c (valpy_int): Allow conversion from pointer
53 type.
54
1c1e54f6
TT
552018-09-23 Tom Tromey <tom@tromey.com>
56
57 PR python/20126:
58 * python/py-value.c (valpy_int): Respect type sign.
59
fb4fa946
TT
602018-09-23 Tom Tromey <tom@tromey.com>
61
62 PR python/18352;
63 * python/py-value.c (valpy_float): Allow conversions from int or
64 char.
65 (valpy_int, valpy_long): Allow conversions from float.
66
65773341
TT
672018-09-23 Tom Tromey <tom@tromey.com>
68
69 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
70 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
71
1db88d22
RO
722018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
73
74 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
75 __sighndlr.
76 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
77
a44294f5
JT
782018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
79
80 * windows-nat.c (windows_nat_target::wait): Remove a spurious
81 target_terminal::ours().
82
0c0a40e0
SM
832018-09-23 Simon Marchi <simon.marchi@ericsson.com>
84
85 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
86 of vl to ULONGEST.
87
4daf1902
YS
882018-09-21 Yacov Simhony <ysimhony@gmail.com>
89
90 * breakpoint.c (update_inserted_breakpoint_locations): Remove
91 redundant condition.
92
c475f569
RO
932018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
94
95 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
96
97 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
98 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
99 * sol-thread.c (ps_pdmodel): Don't guard definition.
100
101 * procfs.c: Fix formatting.
102
103 * procfs.c (sysset_t_alloc): Remove.
104 (create_procinfo): Use XNEW instead of sysset_t_alloc.
105 (procfs_debug_inferior): Likewise.
106 (procfs_set_exec_trap): Likewise.
107 (proc_set_traced_sysentry): Don't allocate argp dynamically.
108 (proc_set_traced_sysexit): Likewise.
109
110 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
111 (dead_procinfo): Likewise.
112 (proc_warn): Likewise.
113 (proc_error): Likewise.
114 (proc_get_LDT_entry): Likewise.
115 (do_attach): Likewise.
116 (procfs_target::pid_to_str): Likewise.
117 (iterate_over_mappings): Likewise.
118
119 * procfs.c (create_procinfo): Fix ARI warning.
120 (proc_get_status): Likewise.
121 (proc_stop_process): Likewise.
122 (proc_run_process): Likewise.
123 (proc_kill): Likewise.
124 (proc_get_LDT_entry): Likewise.
125 (procfs_find_LDT_entry): Likewise.
126 (proc_update_threads): Likewise.
127 (proc_iterate_over_threads): Likewise.
128 (do_attach): Likewise.
129 (procfs_xfer_memory): Likewise.
130 (invalidate_cache): Likewise.
131 (procfs_target::resume): Likewise.
132 (procfs_init_inferior): Likewise.
133 (procfs_set_exec_trap): Likewise.
134 (procfs_target::thread_alive): Likewise.
135 (procfs_target::pid_to_exec_file): Likewise.
136 (iterate_over_mappings): Likewise.
137 (procfs_target::make_corefile_notes): Likewise.
138 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
139
140 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
141 (procfs_find_LDT_entry): Likewise.
142 * sol-thread.c (ps_lgetLDT): Likewise.
143
4206c05e
RO
1442018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
145
146 PR tdep/17903
147 * procfs.c (procfs_target): Declare pid_to_exec_file.
148 (procfs_target::pid_to_exec_file): New.
149
3d282ac3
RO
1502018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
151
152 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
153 renaming.
154 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
155 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
156
8c93fae6
RO
1572018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
158
159 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
160 (supply_fpregset, fill_fpregset): Move ...
161 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
162 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
163 Remove references to ioctl-based procfs.
164 Include <sys/reg.h>.
165 Remove PR_MODEL_NATIVE guards.
166 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
167 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
168
79b32f4a
XR
1692018-09-19 Xavier Roirand <roirand@adacore.com>
170
171 PR gdb/20981:
172 * solib-darwin.c (darwin_get_dyld_bfd): New function.
173 (darwin_solib_get_all_image_info_addr_at_init): Update call.
174 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
175
07147793
JB
1762018-09-19 John Baldwin <jhb@FreeBSD.org>
177
178 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
179 (fbsd_print_sockaddr_in6): Likewise.
180
23be8da7
RB
1812018-09-19 Richard Bunt <richard.bunt@arm.com>
182 Chris January <chris.january@arm.com>
183
184 * eval.c (skip_undetermined_arglist): Skip argument list helper.
185 (evaluate_subexp_standard): Return a dummy type when
186 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
187 OP_F77_UNDETERMINED_ARGLIST case.
188 * expression.h (enum noside): Update comment.
189
7307a73a
RO
1902018-09-19 George Vasick <george.vasick@oracle.com>
191
192 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
193
13db92d3
RO
1942018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
195 April Chin <april.chin@oracle.com>
196 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
197
198 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
199 uint_t lwpid_t.
200 (create_procinfo): Print pids in /proc without leading zeros.
201
3d50f170
SL
2022018-09-18 Sandra Loosemore <sandra@codesourcery.com>
203
204 * nios2-tdep.c (nios2_gcc_target_options): New.
205 (nios2_gdb_arch_init): Install new hook.
206
b567ca63
SM
2072018-09-18 Simon Marchi <simon.marchi@ericsson.com>
208
209 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
210 New file.
211 * update-gnulib.sh: Apply patch.
212 * configure: Re-generate.
213
73f1bd76
JB
2142018-09-18 John Baldwin <jhb@FreeBSD.org>
215
216 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
217 description. Make "info proc" command descriptions more
218 consistent.
219
8b113111
JB
2202018-09-18 John Baldwin <jhb@FreeBSD.org>
221
222 * NEWS: Mention 'info proc files' command.
223
7e69672e
JB
2242018-09-18 John Baldwin <jhb@FreeBSD.org>
225
226 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
227 descriptors for IP_FILES and IP_ALL.
228
57c2a98a
JB
2292018-09-18 John Baldwin <jhb@FreeBSD.org>
230
231 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
232 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
233 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
234 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
235 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
236 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
237 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
238 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
239 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
240 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
241 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
242 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
243 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
244 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
245 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
246 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
247 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
248 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
249 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
250 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
251 (struct fbsd_sockaddr_un): New types.
252 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
253 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
254 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
255 (fbsd_core_info_proc_files): New functions.
256 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
257 IP_ALL.
258 * fbsd-tdep.h (fbsd_info_proc_files_header)
259 (fbsd_info_proc_files_entry): New.
260
e98ee8c4
JB
2612018-09-18 John Baldwin <jhb@FreeBSD.org>
262
263 * defs.h (enum info_proc_what) [IP_FILES]: New value.
264 * infcmd.c (info_proc_cmd_files): New function.
265 (_initialize_infcmd): Register 'info proc files' command.
266
725e2999
JB
2672018-09-18 John Baldwin <jhb@FreeBSD.org>
268
269 * gnulib/aclocal-m4-deps.mk: Re-generate.
270 * gnulib/aclocal.m4: Re-generate.
271 * gnulib/config.in: Re-generate.
272 * gnulib/configure: Re-generate.
273 * gnulib/import/Makefile.am: Re-generate.
274 * gnulib/import/Makefile.in: Re-generate.
275 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
276 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
277 * gnulib/import/arpa_inet.in.h: New file.
278 * gnulib/import/inet_ntop.c: New file.
279 * gnulib/import/m4/arpa_inet_h.m4: New file.
280 * gnulib/import/m4/inet_ntop.m4: New file.
281 * gnulib/import/m4/netinet_in_h.m4: New file.
282 * gnulib/import/m4/socklen.m4: New file.
283 * gnulib/import/m4/sockpfaf.m4: New file.
284 * gnulib/import/m4/stdalign.m4: New file.
285 * gnulib/import/m4/sys_uio_h.m4: New file.
286 * gnulib/import/netinet_in.in.h: New file.
287 * gnulib/import/stdalign.in.h: New file.
288 * gnulib/import/sys_socket.c: New file.
289 * gnulib/import/sys_socket.in.h: New file.
290 * gnulib/import/sys_uio.in.h: New file.
291 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
292 module.
293
2afffa7f
JB
2942018-09-18 John Baldwin <jhb@FreeBSD.org>
295
296 * gnulib/aclocal-m4-deps.mk: New file.
297 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
298 deterministically.
299
9f235e09
JB
3002018-09-18 John Baldwin <jhb@FreeBSD.org>
301
302 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
303 KVE_PATH.
304
40f03055
TT
3052018-09-18 Tom Tromey <tom@tromey.com>
306
307 * compile/compile-object-load.c (struct
308 link_hash_table_cleanup_data): Add constructor and destructor.
309 Use DISABLE_COPY_AND_ASSIGN.
310 (~link_hash_table_cleanup_data): Rename from
311 link_hash_table_free. Now a destructor.
312 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
313
c9e0a7e3
TT
3142018-09-18 Tom Tromey <tom@tromey.com>
315
316 * compile/compile-object-run.c (do_module_cleanup): Use delete.
317 * compile/compile-object-load.c (struct munmap_list): Move to
318 header file.
319 (munmap_list::add): Rename from munmap_list_add; rewrite.
320 (munmap_list::~munmap_list): Rename from munmap_list_free.
321 (munmap_listp_free_cleanup): Remove.
322 (compile_object_load): Update.
323 * compile/compile-object-load.h (struct munmap_list): Move from
324 compile-object-load.c. Rewrite.
325
3ff2c72e
AH
3262018-09-18 Alan Hayward <alan.hayward@arm.com>
327
328 * aarch64-tdep.c (pass_in_v): Use register size.
329 (aarch64_extract_return_value): Likewise.
330 (aarch64_store_return_value): Likewise.
331
206c1947
RO
3322018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
333
334 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
335 rlim_t.
336
6eb5dbce
PW
3372018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
338
339 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
340 Fix short help line.
341
ae292b3a
TT
3422018-09-17 Tom Tromey <tom@tromey.com>
343
344 PR python/20445:
345 * configure: Rebuild.
346 * configure.ac: Conditionally use -DNDEBUG for Python.
347
da658607
TT
3482018-09-17 Tom Tromey <tom@tromey.com>
349
350 * configure: Rebuild.
351 * configure.ac: Use gmp as a library dependency when checking for
352 mpfr.
353
d35da542
PA
3542018-09-17 Pedro Alves <palves@redhat.com>
355
356 * python/py-inferior.c (find_inferior_object): Delete.
357
461464f2
SM
3582018-09-17 Simon Marchi <simon.marchi@ericsson.com>
359
360 * compile/compile-cplus-types.c
361 (compile_cplus_instance::enter_scope): Don't use new_scope after
362 std::move.
363
e6cd1dc1
TT
3642018-09-17 Tom Tromey <tom@tromey.com>
365
366 * common/pathstuff.c (get_standard_cache_dir): Use
367 ~/Library/Caches on macOS.
368 * common/pathstuff.h (get_standard_cache_dir): Update comment.
369
8588b356
SM
3702018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
371
372 PR python/23669
373 * breakpoint.c (commands_cmd_element): New.
374 (_initialize_breakpoint): Assign commands_cmd_element.
375 * breakpoint.h (commands_cmd_element): New.
376 * cli/cli-script.c (while_cmd_element, if_command,
377 define_cmd_element): New.
378 (command_name_equals): Remove.
379 (process_next_line): Compare commands by pointer, not by name.
380 (_initialize_cli_script): Assign the various cmd_list_element
381 variables.
382 * compile/compile.c (compile_cmd_element): New.
383 (_initialize_compile): Assign compile_cmd_element.
384 * compile/compile.h (compile_cmd_element): New.
385 * guile/guile.c (guile_cmd_element): New.
386 (install_gdb_commands): Assign guile_cmd_element.
387 * guile/guile.h (guile_cmd_element): New.
388 * python/python.c (python_cmd_element): New.
389 (_initialize_python): Assign python_cmd_element.
390 * python/python.h (python_cmd_element): New.
391 * tracepoint.c (while_stepping_cmd_element): New.
392 (_initialize_tracepoint): Assign while_stepping_cmd_element.
393 * tracepoint.h (while_stepping_cmd_element): New.
394
cb524840
TT
3952018-09-17 Tom Tromey <tom@tromey.com>
396
397 * infrun.c (save_infcall_suspend_state): Return
398 infcall_suspend_state_up.
399 (save_infcall_control_state): Return infcall_control_state_up.
400 * inferior.h (save_infcall_suspend_state)
401 (save_infcall_control_state): Declare later. Return unique
402 pointers.
403
2d844eaf
TT
4042018-09-17 Tom Tromey <tom@tromey.com>
405
406 * infrun.c (struct stop_context): Declare constructor,
407 destructor, "changed" method.
408 (stop_context::stop_context): Rename from save_stop_context.
409 (stop_context::~stop_context): Rename from
410 release_stop_context_cleanup.
411 (normal_stop): Update.
412 (stop_context::changed): Rename from stop_context_changed. Return
413 bool.
414
c7c4d3fa
TT
4152018-09-17 Tom Tromey <tom@tromey.com>
416
417 * inferior.h (struct infcall_suspend_state_deleter): New.
418 (infcall_suspend_state_up): New typedef.
419 (struct infcall_control_state_deleter): New.
420 (infcall_control_state_up): New typedef.
421 (make_cleanup_restore_infcall_suspend_state)
422 (make_cleanup_restore_infcall_control_state): Don't declare.
423 * infcall.c (call_function_by_hand_dummy): Update.
424 * infrun.c (do_restore_infcall_suspend_state_cleanup)
425 (make_cleanup_restore_infcall_suspend_state): Remove.
426 (do_restore_infcall_control_state_cleanup)
427 (make_cleanup_restore_infcall_control_state): Remove.
428
ee841dd8
TT
4292018-09-17 Tom Tromey <tom@tromey.com>
430
431 * gdbthread.h (struct thread_control_state): Add initializer.
432 (class thread_info) <control>: Remove initializer.
433 * inferior.h (struct inferior_control_state): Add initializer.
434 (class inferior) <control>: Remove initializer.
435 (exit_inferior_1): Update.
436 * infrun.c (struct infcall_control_state): Add constructors.
437 (save_infcall_control_state): Use new.
438 (restore_infcall_control_state, discard_infcall_control_state):
439 Use delete.
440
117f580a
TT
4412018-09-17 Tom Tromey <tom@tromey.com>
442
443 * infrun.c (struct infcall_suspend_state) <registers>: Now a
444 unique_ptr.
445 <siginfo_data>: Now a unique_xmalloc_ptr.
446 (save_infcall_suspend_state, restore_infcall_suspend_state)
447 (discard_infcall_suspend_state)
448 (get_infcall_suspend_state_regcache): Update.
449
dd848631
TT
4502018-09-17 Tom Tromey <tom@tromey.com>
451
452 * gdbthread.h (struct thread_suspend_state): Add initializers.
453 (class thread_info) <suspend>: Remove initializer.
454 * infrun.c (struct infcall_suspend_state): Add initializers.
455 (save_infcall_suspend_state): Use new.
456 (discard_infcall_suspend_state): Use delete.
457
1a338907
TT
4582018-09-16 Tom Tromey <tom@tromey.com>
459
460 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
461 Remove.
462 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
463 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
464 (py_varobj_iter_new): Likewise.
465 (py_varobj_get_iterator): Use gdbpy_ref.
466
4a137fec
TT
4672018-09-16 Tom Tromey <tom@tromey.com>
468
469 * python/py-threadevent.c (py_get_event_thread): Simplify.
470 * python/py-inferior.c (infpy_thread_from_thread_handle):
471 Return immediately after calling thread_to_thread_object. Use
472 Py_RETURN_NONE.
473 (thread_to_thread_object): Set the exception on a NULL return.
474
8ff03f0b
SM
4752018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
476
477 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
478
94c8b725
TT
4792018-09-16 Tom Tromey <tom@tromey.com>
480
481 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
482 Remove.
483
db1337cc
TT
4842018-09-16 Tom Tromey <tom@tromey.com>
485
486 * python/python-internal.h (thread_to_thread_object): Change
487 return type.
488 * python/py-inferior.c (thread_to_thread_object): Return a new
489 reference.
490 (infpy_thread_from_thread_handle): Update.
491 * python/py-infthread.c (gdbpy_selected_thread): Update.
492 * python/py-stopevent.c (create_stop_event_object): Update.
493 * python/py-threadevent.c (py_get_event_thread): Return a new
494 reference.
495 (py_get_event_thread): Update.
496 * python/py-event.h (py_get_event_thread): Change return type.
497 * python/py-continueevent.c (create_continue_event_object):
498 Update.
499
0a9db5ad
TT
5002018-09-16 Tom Tromey <tom@tromey.com>
501
502 * python/py-progspace.c (pspy_get_objfiles): Update.
503 * python/python-internal.h (objfile_to_objfile_object): Change
504 return type.
505 * python/py-newobjfileevent.c (create_new_objfile_event_object):
506 Update.
507 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
508 Update.
509 * python/python.c (gdbpy_get_current_objfile): Update.
510 (gdbpy_objfiles): Update.
511 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
512 Update.
513 (objfile_to_objfile_object): Return a new reference.
514 * python/py-symtab.c (stpy_get_objfile): Update.
515 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
516 Update.
517
3c7aa307
TT
5182018-09-16 Tom Tromey <tom@tromey.com>
519
520 * python/py-inferior.c (infpy_get_progspace): Update.
521 * python/python-internal.h (pspace_to_pspace_object): Change
522 return type.
523 * python/py-newobjfileevent.c
524 (create_clear_objfiles_event_object): Update.
525 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
526 Update.
527 * python/python.c (gdbpy_get_current_progspace): Update.
528 (gdbpy_progspaces): Update.
529 * python/py-progspace.c (pspace_to_pspace_object): Return a new
530 reference.
531 * python/py-objfile.c (objfpy_get_progspace): Update.
532 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
533 Update.
534
8743a9cd
TT
5352018-09-16 Tom Tromey <tom@tromey.com>
536
537 * python/lib/gdb/__init__.py (current_progspace, objfiles)
538 (solib_name, block_for_pc, find_pc_line): New functions.
539 (execute_unwinders): Update.
540 * python/py-block.c (gdbpy_block_for_pc): Remove.
541 * python/py-inferior.c (infpy_get_progspace): New function.
542 (inferior_object_getset) <progspace>: Add.
543 * python/py-progspace.c (pspy_objfiles): Rewrite.
544 (pspy_solib_name, pspy_block_for_pc)
545 (pspy_find_pc_line, pspy_is_valid): New functions.
546 (progspace_object_methods): Add entries for solib_name,
547 block_for_pc, find_pc_line, is_valid.
548 * python/python-internal.h (gdbpy_block_for_pc)
549 (build_objfiles_list): Don't declare.
550 * python/python.c: Don't include solib.h.
551 (gdbpy_solib_name, gdbpy_find_pc_line)
552 (gdbpy_get_current_progspace, build_objfiles_list)
553 (gdbpy_objfiles): Remove.
554 (GdbMethods) <current_progspace, objfiles, block_for_pc,
555 solib_name, find_pc_line>: Remove entries.
556
65e65158
TT
5572018-09-16 Tom Tromey <tom@tromey.com>
558
559 * top.c (new_ui_command): Use GNU style for metasyntactic
560 variables.
561 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
562 variables.
563 * maint.c (maintenance_translate_address): Remove "<>" around
564 text.
565 * interps.c (interpreter_exec_cmd): Use GNU style for
566 metasyntactic variables.
567 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
568 metasyntactic variables.
569 * tracepoint.c (tfind_range_command): Use GNU style for
570 metasyntactic variables.
571 (tfind_outside_command): Likewise.
572 (_initialize_tracepoint): Likewise.
573 * remote.c (extended_remote_target::create_inferior): Use GNU
574 style for metasyntactic variables.
575 * sparc64-tdep.c (adi_examine_command): Use GNU style for
576 metasyntactic variables.
577 (adi_assign_command): Likewise.
578
f4bab6ff
TT
5792018-09-16 Tom Tromey <tom@tromey.com>
580
581 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
582 metasyntactic variables. Print message if no disassembler options
583 are available.
584
cbaaa0ca
TT
5852018-09-15 Tom Tromey <tom@tromey.com>
586
587 * infcmd.c (get_inferior_args): Return const char *.
588 * inferior.h (get_inferior_args): Return type now const.
589 * linux-tdep.c (linux_fill_prpsinfo): Update.
590 * procfs.c (procfs_target::make_corefile_notes): Update.
591
a3a6aef4
TT
5922018-09-07 Tom Tromey <tom@tromey.com>
593
594 * python/python.c (execute_gdb_command): Call bpstat_do_actions
595 inside the TRY.
596
f70e088f
SL
5972018-09-14 Sandra Loosemore <sandra@codesourcery.com>
598
599 * nios2-tdep.c (nios2_type_align): New.
600 (nios2_gdb_arch_init): Install type_align hook.
601
2fabdf33
AB
6022018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
603
604 * eval.c (fake_method::fake_method): Call xzalloc directly for a
605 type that is neither object file owned, nor gdbarch owned.
606 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
607 gdbarch is non-NULL.
608 (alloc_type_instance): Allocate non-objfile owned types on the
609 gdbarch obstack.
610 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
611 using TYPE_ALLOC to ensure memory is allocated on the correct
612 obstack.
613 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
614 obstack, or the gdbarch obstack.
615 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
616
b4b08fa2
TT
6172018-09-14 Tom Tromey <tom@tromey.com>
618
619 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
620 block.
621
87b240d4
TT
6222018-09-14 Tom Tromey <tom@tromey.com>
623
624 * nat/fork-inferior.c (get_startup_shell): Remove "static".
625
7d221512
TT
6262018-09-13 Tom Tromey <tom@tromey.com>
627
628 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
629 static.
630
97e67fc6
TT
6312018-09-13 Tom Tromey <tom@tromey.com>
632
633 * exec.c (try_open_exec_file): Use std::string.
634
803c08d0
TT
6352018-09-13 Tom Tromey <tom@tromey.com>
636
637 * utils.h (gdb_bfd_errmsg): Return std::string.
638 * exec.c (exec_file_attach): Update.
639 * compile/compile-object-load.c (compile_object_load): Update.
640 * utils.c (gdb_bfd_errmsg): Return std::string.
641
5b4cbbe3
TT
6422018-09-13 Tom Tromey <tom@tromey.com>
643
644 * procfs.c (struct procinfo_deleter): New.
645 (procinfo_up): New typedef.
646 (do_destroy_procinfo_cleanup): Remove.
647 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
648
db68fbe2
TT
6492018-09-13 Tom Tromey <tom@tromey.com>
650
651 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
652
0ae1a321
SM
6532018-09-13 Simon Marchi <simon.marchi@ericsson.com>
6542018-09-13 Tom Tromey <tom@tromey.com>
655
656 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
657 (pspy_get_objfiles): New function.
658 (progspace_object_methods): New.
659 (pspace_object_type): Add tp_methods callback.
660 * python/python-internal.h (build_objfiles_list): New
661 declaration.
662 * python/python.c (build_objfiles_list): New function.
663 (gdbpy_objfiles): Implement using build_objfiles_list.
664 * NEWS: Mention the Progspace.objfiles method.
665
a40bf0c2
SM
6662018-09-13 Simon Marchi <simon.marchi@ericsson.com>
667
668 * python/py-inferior.c (infpy_get_progspace): New function.
669 (inferior_object_getset): Add progspace property.
670 * NEWS: Mention the new property.
671
4a3fe98f
TT
6722018-09-13 Tom Tromey <tom@tromey.com>
673
674 PR rust/23650:
675 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
676
098b2108
TT
6772018-09-13 Tom Tromey <tom@tromey.com>
678
679 PR rust/23626:
680 * rust-lang.c (rust_enum_variant): Now static.
681 (rust_empty_enum_p): New function.
682 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
683 Handle empty enum.
684
1256af7d
SM
6852018-09-13 Simon Marchi <simon.marchi@ericsson.com>
686
687 * python/py-inferior.c (infpy_repr): New.
688 (inferior_object_type): Register infpy_repr.
689 * python/py-objfile.c (objfpy_repr): New.
690 (objfile_object_type): Register objfpy_repr.
691
f117a62c
JB
6922018-09-12 John Baldwin <jhb@FreeBSD.org>
693
694 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
695
88f22c34
JB
6962018-09-12 John Baldwin <jhb@FreeBSD.org>
697
698 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
699 typo.
700
3c025cfe
SDJ
7012018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
702
703 * common/common-utils.c: Don't include '<sys/stat.h>'.
704 (is_regular_file): Move to...
705 * common/filestuff.c (is_regular_file): ... here.
706 * common/common-utils.h (is_regular_file): Move to...
707 * common/filestuff.h (is_regular_file): ... here.
708
3e68067f
SM
7092018-09-12 Simon Marchi <simon.marchi@ericsson.com>
710
711 * skip.c (debug_skip): New variable.
712 (skiplist_entry::do_skip_file_p): Add debug output.
713 (skiplist_entry::do_skip_gfile_p): Likewise.
714 (skiplist_entry::skip_function_p): Likewise.
715 (_initialize_step_skip): Create debug command.
716 * NEWS: Mention set/show debug skip.
717
d6be54ef
XR
7182018-09-11 Xavier Roirand <roirand@adacore.com>
719
720 * darwin-nat.c (should_disable_startup_with_shell):
721 New function.
722 (darwin_nat_target::create_inferior): Add call.
723
de1ec836
XR
7242018-09-11 Xavier Roirand <roirand@adacore.com>
725
726 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
727 inf_port, msg_state>: Initialize.
728 (struct darwin_thread_info) <signaled, single_step>: Change
729 type and initialize.
730 (struct darwin_thread_info) <event>: Initialize.
731
e2fc52e7
SDJ
7322018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
733
734 PR gdb/23555
735 PR gdb/23558
736 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
737 guesses.
738
5e8754f9
SDJ
7392018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
740
741 Revert:
742 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
743
744 PR gdb/23555
745 PR gdb/23558
746 * gnulib/aclocal.m4: Regenerate.
747 * gnulib/config.in: Regenerate.
748 * gnulib/configure: Regenerate.
749 * gnulib/import/Makefile.am: Update.
750 * gnulib/import/Makefile.in: Update.
751 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
752 * gnulib/import/_Noreturn.h: ... this.
753 * gnulib/import/alloca.in.h: Update.
754 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
755 * gnulib/import/arg-nonnull.h: ... this.
756 * gnulib/import/assure.h: Update.
757 * gnulib/import/at-func.c: Update.
758 * gnulib/import/basename-lgpl.c: Update.
759 * gnulib/import/extra/snippet/c++defs.h: Rename to...
760 * gnulib/import/c++defs.h: ... this.
761 * gnulib/import/canonicalize-lgpl.c: Update.
762 * gnulib/import/cdefs.h: Update.
763 * gnulib/import/chdir-long.c: Update.
764 * gnulib/import/chdir-long.h: Update.
765 * gnulib/import/cloexec.c: Update.
766 * gnulib/import/cloexec.h: Update.
767 * gnulib/import/close.c: Update.
768 * gnulib/import/closedir.c: Update.
769 * gnulib/import/config.charset: Update.
770 * gnulib/import/dirent-private.h: Update.
771 * gnulib/import/dirent.in.h: Update.
772 * gnulib/import/dirfd.c: Update.
773 * gnulib/import/dirname-lgpl.c: Update.
774 * gnulib/import/dirname.h: Update.
775 * gnulib/import/dosname.h: Update.
776 * gnulib/import/dup-safer-flag.c: Update.
777 * gnulib/import/dup-safer.c: Update.
778 * gnulib/import/dup.c: Update.
779 * gnulib/import/dup2.c: Update.
780 * gnulib/import/errno.in.h: Update.
781 * gnulib/import/error.c: Update.
782 * gnulib/import/error.h: Update.
783 * gnulib/import/exitfail.c: Update.
784 * gnulib/import/exitfail.h: Update.
785 * gnulib/import/extra/update-copyright: Update.
786 * gnulib/import/fchdir.c: Update.
787 * gnulib/import/fcntl.c: Update.
788 * gnulib/import/fcntl.in.h: Update.
789 * gnulib/import/fd-hook.c: Update.
790 * gnulib/import/fd-hook.h: Update.
791 * gnulib/import/fd-safer-flag.c: Update.
792 * gnulib/import/fd-safer.c: Update.
793 * gnulib/import/fdopendir.c: Update.
794 * gnulib/import/filename.h: Update.
795 * gnulib/import/filenamecat-lgpl.c: Update.
796 * gnulib/import/filenamecat.h: Update.
797 * gnulib/import/flexmember.h: Update.
798 * gnulib/import/float+.h: Update.
799 * gnulib/import/float.c: Update.
800 * gnulib/import/float.in.h: Update.
801 * gnulib/import/fnmatch.c: Update.
802 * gnulib/import/fnmatch.in.h: Update.
803 * gnulib/import/fnmatch_loop.c: Update.
804 * gnulib/import/fpucw.h: Update.
805 * gnulib/import/frexp.c: Update.
806 * gnulib/import/frexpl.c: Update.
807 * gnulib/import/fstat.c: Update.
808 * gnulib/import/fstatat.c: Update.
809 * gnulib/import/getcwd-lgpl.c: Update.
810 * gnulib/import/getcwd.c: Update.
811 * gnulib/import/getdtablesize.c: Update.
812 * gnulib/import/getlogin_r.c: Update.
813 * gnulib/import/getprogname.c: Update.
814 * gnulib/import/getprogname.h: Update.
815 * gnulib/import/gettext.h: Update.
816 * gnulib/import/gettimeofday.c: Update.
817 * gnulib/import/glob-libc.h: Update.
818 * gnulib/import/glob.c: Update.
819 * gnulib/import/glob.in.h: Update.
820 * gnulib/import/glob_internal.h: Update.
821 * gnulib/import/glob_pattern_p.c: Update.
822 * gnulib/import/globfree.c: Update.
823 * gnulib/import/hard-locale.c: Update.
824 * gnulib/import/hard-locale.h: Update.
825 * gnulib/import/intprops.h: Update.
826 * gnulib/import/inttypes.in.h: Update.
827 * gnulib/import/isnan.c: Update.
828 * gnulib/import/isnand-nolibm.h: Update.
829 * gnulib/import/isnand.c: Update.
830 * gnulib/import/isnanl-nolibm.h: Update.
831 * gnulib/import/isnanl.c: Update.
832 * gnulib/import/itold.c: Update.
833 * gnulib/import/libc-config.h: Update.
834 * gnulib/import/limits.in.h: Update.
835 * gnulib/import/localcharset.c: Update.
836 * gnulib/import/localcharset.h: Update.
837 * gnulib/import/localtime-buffer.c: Update.
838 * gnulib/import/localtime-buffer.h: Update.
839 * gnulib/import/lstat.c: Update.
840 * gnulib/import/m4/00gnulib.m4: Update.
841 * gnulib/import/m4/__inline.m4: Update.
842 * gnulib/import/m4/absolute-header.m4: Update.
843 * gnulib/import/m4/alloca.m4: Update.
844 * gnulib/import/m4/builtin-expect.m4: Update.
845 * gnulib/import/m4/canonicalize.m4: Update.
846 * gnulib/import/m4/chdir-long.m4: Update.
847 * gnulib/import/m4/close.m4: Update.
848 * gnulib/import/m4/closedir.m4: Update.
849 * gnulib/import/m4/configmake.m4: Update.
850 * gnulib/import/m4/d-ino.m4: Update.
851 * gnulib/import/m4/d-type.m4: Update.
852 * gnulib/import/m4/dirent_h.m4: Update.
853 * gnulib/import/m4/dirfd.m4: Update.
854 * gnulib/import/m4/dirname.m4: Update.
855 * gnulib/import/m4/double-slash-root.m4: Update.
856 * gnulib/import/m4/dup.m4: Update.
857 * gnulib/import/m4/dup2.m4: Update.
858 * gnulib/import/m4/eealloc.m4: Update.
859 * gnulib/import/m4/environ.m4: Update.
860 * gnulib/import/m4/errno_h.m4: Update.
861 * gnulib/import/m4/error.m4: Update.
862 * gnulib/import/m4/exponentd.m4: Update.
863 * gnulib/import/m4/exponentl.m4: Update.
864 * gnulib/import/m4/extensions.m4: Update.
865 * gnulib/import/m4/extern-inline.m4: Update.
866 * gnulib/import/m4/fchdir.m4: Update.
867 * gnulib/import/m4/fcntl-o.m4: Update.
868 * gnulib/import/m4/fcntl.m4: Update.
869 * gnulib/import/m4/fcntl_h.m4: Update.
870 * gnulib/import/m4/fdopendir.m4: Update.
871 * gnulib/import/m4/filenamecat.m4: Update.
872 * gnulib/import/m4/flexmember.m4: Update.
873 * gnulib/import/m4/float_h.m4: Update.
874 * gnulib/import/m4/fnmatch.m4: Update.
875 * gnulib/import/m4/fnmatch_h.m4: Update.
876 * gnulib/import/m4/fpieee.m4: Update.
877 * gnulib/import/m4/frexp.m4: Update.
878 * gnulib/import/m4/frexpl.m4: Update.
879 * gnulib/import/m4/fstat.m4: Update.
880 * gnulib/import/m4/fstatat.m4: Update.
881 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
882 * gnulib/import/m4/getcwd-path-max.m4: Update.
883 * gnulib/import/m4/getcwd.m4: Update.
884 * gnulib/import/m4/getdtablesize.m4: Update.
885 * gnulib/import/m4/getlogin.m4: Update.
886 * gnulib/import/m4/getlogin_r.m4: Update.
887 * gnulib/import/m4/getpagesize.m4: Update.
888 * gnulib/import/m4/getprogname.m4: Update.
889 * gnulib/import/m4/gettimeofday.m4: Update.
890 * gnulib/import/m4/glibc21.m4: Update.
891 * gnulib/import/m4/glob.m4: Update.
892 * gnulib/import/m4/glob_h.m4: Update.
893 * gnulib/import/m4/gnulib-cache.m4: Update.
894 * gnulib/import/m4/gnulib-common.m4: Update.
895 * gnulib/import/m4/gnulib-comp.m4: Update.
896 * gnulib/import/m4/gnulib-tool.m4: Update.
897 * gnulib/import/m4/hard-locale.m4: Update.
898 * gnulib/import/m4/include_next.m4: Update.
899 * gnulib/import/m4/inttypes-pri.m4: Update.
900 * gnulib/import/m4/inttypes.m4: Update.
901 * gnulib/import/m4/isnand.m4: Update.
902 * gnulib/import/m4/isnanl.m4: Update.
903 * gnulib/import/m4/largefile.m4: Update.
904 * gnulib/import/m4/limits-h.m4: Update.
905 * gnulib/import/m4/localcharset.m4: Update.
906 * gnulib/import/m4/locale-fr.m4: Update.
907 * gnulib/import/m4/locale-ja.m4: Update.
908 * gnulib/import/m4/locale-zh.m4: Update.
909 * gnulib/import/m4/localtime-buffer.m4: Update.
910 * gnulib/import/m4/longlong.m4: Update.
911 * gnulib/import/m4/lstat.m4: Update.
912 * gnulib/import/m4/malloc.m4: Update.
913 * gnulib/import/m4/malloca.m4: Update.
914 * gnulib/import/m4/math_h.m4: Update.
915 * gnulib/import/m4/mbrtowc.m4: Update.
916 * gnulib/import/m4/mbsinit.m4: Update.
917 * gnulib/import/m4/mbsrtowcs.m4: Update.
918 * gnulib/import/m4/mbstate_t.m4: Update.
919 * gnulib/import/m4/memchr.m4: Update.
920 * gnulib/import/m4/memmem.m4: Update.
921 * gnulib/import/m4/mempcpy.m4: Update.
922 * gnulib/import/m4/memrchr.m4: Update.
923 * gnulib/import/m4/mkdir.m4: Update.
924 * gnulib/import/m4/mkstemp.m4: Update.
925 * gnulib/import/m4/mmap-anon.m4: Update.
926 * gnulib/import/m4/mode_t.m4: Update.
927 * gnulib/import/m4/msvc-inval.m4: Update.
928 * gnulib/import/m4/msvc-nothrow.m4: Update.
929 * gnulib/import/m4/multiarch.m4: Update.
930 * gnulib/import/m4/nocrash.m4: Update.
931 * gnulib/import/m4/off_t.m4: Update.
932 * gnulib/import/m4/onceonly.m4: Update.
933 * gnulib/import/m4/open-cloexec.m4: Update.
934 * gnulib/import/m4/open.m4: Update.
935 * gnulib/import/m4/openat.m4: Update.
936 * gnulib/import/m4/opendir.m4: Update.
937 * gnulib/import/m4/pathmax.m4: Update.
938 * gnulib/import/m4/rawmemchr.m4: Update.
939 * gnulib/import/m4/readdir.m4: Update.
940 * gnulib/import/m4/readlink.m4: Update.
941 * gnulib/import/m4/realloc.m4: Update.
942 * gnulib/import/m4/rename.m4: Update.
943 * gnulib/import/m4/rewinddir.m4: Update.
944 * gnulib/import/m4/rmdir.m4: Update.
945 * gnulib/import/m4/save-cwd.m4: Update.
946 * gnulib/import/m4/secure_getenv.m4: Update.
947 * gnulib/import/m4/setenv.m4: Update.
948 * gnulib/import/m4/signal_h.m4: Update.
949 * gnulib/import/m4/ssize_t.m4: Update.
950 * gnulib/import/m4/stat-time.m4: Update.
951 * gnulib/import/m4/stat.m4: Update.
952 * gnulib/import/m4/std-gnu11.m4: Update.
953 * gnulib/import/m4/stdbool.m4: Update.
954 * gnulib/import/m4/stddef_h.m4: Update.
955 * gnulib/import/m4/stdint.m4: Update.
956 * gnulib/import/m4/stdio_h.m4: Update.
957 * gnulib/import/m4/stdlib_h.m4: Update.
958 * gnulib/import/m4/strchrnul.m4: Update.
959 * gnulib/import/m4/strdup.m4: Update.
960 * gnulib/import/m4/strerror.m4: Update.
961 * gnulib/import/m4/string_h.m4: Update.
962 * gnulib/import/m4/strstr.m4: Update.
963 * gnulib/import/m4/strtok_r.m4: Update.
964 * gnulib/import/m4/sys_socket_h.m4: Update.
965 * gnulib/import/m4/sys_stat_h.m4: Update.
966 * gnulib/import/m4/sys_time_h.m4: Update.
967 * gnulib/import/m4/sys_types_h.m4: Update.
968 * gnulib/import/m4/tempname.m4: Update.
969 * gnulib/import/m4/time_h.m4: Update.
970 * gnulib/import/m4/unistd-safer.m4: Update.
971 * gnulib/import/m4/unistd_h.m4: Update.
972 * gnulib/import/m4/warn-on-use.m4: Update.
973 * gnulib/import/m4/wchar_h.m4: Update.
974 * gnulib/import/m4/wchar_t.m4: Update.
975 * gnulib/import/m4/wctype_h.m4: Update.
976 * gnulib/import/m4/wint_t.m4: Update.
977 * gnulib/import/malloc.c: Update.
978 * gnulib/import/malloc/scratch_buffer.h: Update.
979 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
980 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
981 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
982 * gnulib/import/malloca.c: Update.
983 * gnulib/import/malloca.h: Update.
984 * gnulib/import/malloca.valgrind: Update.
985 * gnulib/import/math.in.h: Update.
986 * gnulib/import/mbrtowc.c: Update.
987 * gnulib/import/mbsinit.c: Update.
988 * gnulib/import/mbsrtowcs-impl.h: Update.
989 * gnulib/import/mbsrtowcs-state.c: Update.
990 * gnulib/import/mbsrtowcs.c: Update.
991 * gnulib/import/memchr.c: Update.
992 * gnulib/import/memmem.c: Update.
993 * gnulib/import/mempcpy.c: Update.
994 * gnulib/import/memrchr.c: Update.
995 * gnulib/import/mkdir.c: Update.
996 * gnulib/import/mkstemp.c: Update.
997 * gnulib/import/msvc-inval.c: Update.
998 * gnulib/import/msvc-inval.h: Update.
999 * gnulib/import/msvc-nothrow.c: Update.
1000 * gnulib/import/msvc-nothrow.h: Update.
1001 * gnulib/import/open.c: Update.
1002 * gnulib/import/openat-die.c: Update.
1003 * gnulib/import/openat-priv.h: Update.
1004 * gnulib/import/openat-proc.c: Update.
1005 * gnulib/import/openat.c: Update.
1006 * gnulib/import/openat.h: Update.
1007 * gnulib/import/opendir.c: Update.
1008 * gnulib/import/pathmax.h: Update.
1009 * gnulib/import/pipe-safer.c: Update.
1010 * gnulib/import/rawmemchr.c: Update.
1011 * gnulib/import/readdir.c: Update.
1012 * gnulib/import/readlink.c: Update.
1013 * gnulib/import/realloc.c: Update.
1014 * gnulib/import/ref-add.sin: Update.
1015 * gnulib/import/ref-del.sin: Update.
1016 * gnulib/import/rename.c: Update.
1017 * gnulib/import/rewinddir.c: Update.
1018 * gnulib/import/rmdir.c: Update.
1019 * gnulib/import/same-inode.h: Update.
1020 * gnulib/import/save-cwd.c: Update.
1021 * gnulib/import/save-cwd.h: Update.
1022 * gnulib/import/scratch_buffer.h: Update.
1023 * gnulib/import/secure_getenv.c: Update.
1024 * gnulib/import/setenv.c: Update.
1025 * gnulib/import/signal.in.h: Update.
1026 * gnulib/import/stat-time.c: Update.
1027 * gnulib/import/stat-time.h: Update.
1028 * gnulib/import/stat-w32.c: Update.
1029 * gnulib/import/stat-w32.h: Update.
1030 * gnulib/import/stat.c: Update.
1031 * gnulib/import/stdbool.in.h: Update.
1032 * gnulib/import/stddef.in.h: Update.
1033 * gnulib/import/stdint.in.h: Update.
1034 * gnulib/import/stdio.in.h: Update.
1035 * gnulib/import/stdlib.in.h: Update.
1036 * gnulib/import/str-two-way.h: Update.
1037 * gnulib/import/strchrnul.c: Update.
1038 * gnulib/import/strdup.c: Update.
1039 * gnulib/import/streq.h: Update.
1040 * gnulib/import/strerror-override.c: Update.
1041 * gnulib/import/strerror-override.h: Update.
1042 * gnulib/import/strerror.c: Update.
1043 * gnulib/import/string.in.h: Update.
1044 * gnulib/import/stripslash.c: Update.
1045 * gnulib/import/strnlen1.c: Update.
1046 * gnulib/import/strnlen1.h: Update.
1047 * gnulib/import/strstr.c: Update.
1048 * gnulib/import/strtok_r.c: Update.
1049 * gnulib/import/sys_stat.in.h: Update.
1050 * gnulib/import/sys_time.in.h: Update.
1051 * gnulib/import/sys_types.in.h: Update.
1052 * gnulib/import/tempname.c: Update.
1053 * gnulib/import/tempname.h: Update.
1054 * gnulib/import/time.in.h: Update.
1055 * gnulib/import/unistd--.h: Update.
1056 * gnulib/import/unistd-safer.h: Update.
1057 * gnulib/import/unistd.in.h: Update.
1058 * gnulib/import/unsetenv.c: Update.
1059 * gnulib/import/verify.h: Update.
1060 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1061 * gnulib/import/wchar.in.h: Update.
1062 * gnulib/import/wctype.in.h: Update.
1063 * gnulib/import/xalloc-oversized.h: Update.
1064 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1065 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1066
8ec23583
SM
10672018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1068
1069 * record-btrace.c (get_thread_current_frame): Remove
1070 old_inferior_ptid.
1071
1f5d1570
JG
10722018-09-10 Jerome Guitton <guitton@adacore.com>
1073
1074 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1075 with check_tag to 1 if and only if the type is tagged and the
1076 component being searched cannot been found in the current
1077 view. Otherwise, always call ada_to_fixed_type with
1078 check_tag to 0.
1079
d91e9ea8
XR
10802018-09-10 Xavier Roirand <roirand@adacore.com>
1081
1082 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1083 declaration.
1084 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1085 * ada-varobj.c (ada_varobj_get_number_of_children,
1086 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1087
cc330e39
XR
10882018-09-10 Xavier Roirand <roirand@adacore.com>
1089
1090 * ada-valprint.c (ada_value_print): Use type instead of
1091 enclosing type.
1092
b9c50e9a
XR
10932018-09-10 Xavier Roirand <roirand@adacore.com>
1094
1095 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1096 an array of access to unconstrained array.
1097
736ade86
XR
10982018-09-10 Xavier Roirand <roirand@adacore.com>
1099
1100 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1101 (ada_check_typedef): Use it.
1102
2963898f
XR
11032018-09-10 Xavier Roirand <roirand@adacore.com>
1104
1105 * ada-varobj.c (ada_varobj_describe_struct_child)
1106 (ada_varobj_describe_child): Handle union case like struct one.
1107
a154931e
TT
11082018-09-10 Tom Tromey <tom@tromey.com>
1109
1110 PR python/18380:
1111 * python/python.c (_initialize_python): Make example in "python"
1112 help work in Python 3.
1113
23c4651c
EZ
11142018-09-10 Eli Zaretskii <eliz@gnu.org>
1115
1116 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1117 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1118 $(EXEEXT) to the script, as it is not a program.
1119
a5c5eda7
SM
11202018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1121
1122 * python/py-prettyprint.c (pretty_print_one_value): Return
1123 gdbpy_ref<>.
1124 (print_string_repr): Adjust.
1125 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1126 * python/python-internal.h (apply_varobj_pretty_printer): Return
1127 gdbpy_ref<>.
1128 * varobj.c (varobj_value_get_print_value): Adjust.
1129
332cf4c9
TT
11302018-09-08 Tom Tromey <tom@tromey.com>
1131
1132 PR python/16047:
1133 * python/py-prettyprint.c (pretty_print_one_value): Check for
1134 to_string method.
1135
424da6cf
JB
11362018-09-08 Joel Brobecker <brobecker@adacore.com>
1137
1138 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1139 replace_operator_with_call.
1140
95f39a5b
JB
11412018-09-08 Joel Brobecker <brobecker@adacore.com>
1142
1143 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1144
16b9eb7b
JB
11452018-09-08 Joel Brobecker <brobecker@adacore.com>
1146
1147 * ada-typeprint.c (print_range): Print the bounds using TYPE
1148 rather than its TYPE_TARGET_TYPE.
1149
d8ce9127
JB
11502018-09-08 Joel Brobecker <brobecker@adacore.com>
1151
1152 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1153 call to ada_to_fixed_value_create.
1154
0d81f350
JG
11552018-09-08 Jerome Guitton <guitton@adacore.com>
1156
1157 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1158
57aff202
JB
11592018-09-08 Joel Brobecker <brobecker@adacore.com>
1160
1161 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1162 by calls to error.
1163
fb44b1a7
JB
11642018-09-08 Joel Brobecker <brobecker@adacore.com>
1165
1166 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1167 Move update of loop variable "fi".
1168
2a62dfa9
JB
11692018-09-08 Joel Brobecker <brobecker@adacore.com>
1170
1171 * ada-lang.c (value_assign_to_component): In the case of
1172 big-endian targets, extract the bits of the given VAL
1173 using an src_offset of zero if container is not a scalar.
1174
739ab2e9
SS
11752018-09-06 Simon Ser <contact@emersion.fr>
1176
1177 PR gdb/23105
1178 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1179 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1180 * fbsd-tdep.c (fbsd_make_note_desc): New.
1181 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1182 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1183 * target.h (enum target_object) Add FreeBSD-specific
1184 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1185
d82b3862
SM
11862018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1187
1188 * compile/compile-c.h (generate_c_for_variable_locations):
1189 Change reference to pointer.
1190 * compile/compile-c-support.c (compile_program) <compute>:
1191 Likewise.
1192 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1193 (generate_c_for_for_one_variable): Likewise
1194 (generate_c_for_variable_locations): Likewise
1195 * compile/compile-c-types.c (compile_c_instance::convert_type):
1196 Likewise
1197 * compile/compile-cplus-symbols.c (convert_one_symbol):
1198 std::move the scope passed to enter_scope.
1199 * compile/compile-cplus-types.c
1200 (compile_cplus_instance::enter_scope): Make parameter
1201 rvalue-reference.
1202 (compile_cplus_instance::new_scope): Change reference to
1203 pointer.
1204 (compile_cplus_instance::convert_type): Likewise
1205 (compile_cplus_convert_typedef): std::move the scope passed to
1206 enter_scope.
1207 (compile_cplus_convert_struct_or_union): Likewise.
1208 (compile_cplus_convert_enum): Likewise.
1209 (compile_cplus_convert_namespace): Likewise.
1210 * compile/compile-cplus.h (compile_cplus_instance)
1211 <enter_scope>: Make parameter rvalue-reference.
1212 * compile/compile-internal.h (compile_instance)
1213 <get_cached_type>: Likewise
1214 * compile/compile-loc2c.c (push): Likewise
1215 (pushf): Likewise
1216 (unary): Likewise
1217 (binary): Likewise
1218 (print_label): Likewise
1219 (pushf_register_address): Likewise
1220 (pushf_register): Likewise
1221 (do_compile_dwarf_expr_to_c): Likewise
1222 (compile_dwarf_expr_to_c): Likewise
1223 (compile_dwarf_bounds_to_c): Likewise
1224 * compile/compile.c (compile_instance::get_cached_type):
1225 Likewise
1226 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1227 (compile_dwarf_bounds_to_c): Likewise
1228 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1229 (dwarf2_compile_property_to_c): Likewise
1230 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1231 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1232 Likewise
1233
cc5a5ae5
SM
12342018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1235
1236 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1237 * tui/tui-data.c (init_content_element): Don't initialize it.
1238
137be540
SM
12392018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1240
1241 * tui/tui-data.h (struct tui_win_info)
1242 <detail::opaque>: Remove.
1243 * tui/tui-data.c (init_win_info): Remove assignment.
1244
f1628857
TT
12452018-09-05 Tom Tromey <tom@tromey.com>
1246
1247 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1248 -Wformat-nonliteral.
1249 * target-float.c (host_float_ops<T>::to_string)
1250 (host_float_ops<T>::from_string): Use
1251 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1252 * configure: Rebuild.
1253
af39b1c2
SM
12542018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1255
1256 * printcmd.c (printf_c_string): Use
1257 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1258 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1259
081bca4d
TT
12602018-09-05 Tom Tromey <tom@tromey.com>
1261
1262 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1263
e4a62c65
TV
12642018-09-05 Tom de Vries <tdevries@suse.de>
1265
1266 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1267 with resolve_abstract_p == true.
1268 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1269 defaulting to false. Propagate resolve_abstract_p to
1270 dwarf2_fetch_die_loc_sect_off.
1271 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1272 parameter, defaulting to false.
1273 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1274 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1275 parameter.
1276 * dwarf2read.h (struct die_info): Forward-declare.
1277 (die_info_ptr): New typedef.
1278 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1279
2b69821e
JB
12802018-09-05 Joel Brobecker <brobecker@adacore.com>
1281
1282 GDB 8.2 released.
1283
fcc9b044
SDJ
12842018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1285 Pedro Alves <palves@redhat.com>
1286
1287 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1288 "aclocal-m4-deps.mk". Include file here.
1289 $(srcdir)/aclocal.m4: Add "configure.ac".
1290 * gnulib/aclocal-m4-deps.mk: New file.
1291 * gnulib/update-gnulib.sh: Automatically update
1292 "aclocal-m4-deps.mk".
1293
d53d5436
TT
12942018-09-04 Tom Tromey <tom@tromey.com>
1295
1296 * configure: Rebuild.
1297 * configure.ac: Remove multi-ice code.
1298
8dc9fd87
TT
12992018-09-04 Tom Tromey <tom@tromey.com>
1300
1301 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1302 (ada-exp.o): Update.
1303
3322c5d9
TT
13042018-09-04 Tom Tromey <tom@tromey.com>
1305
1306 * Makefile.in (printcmd.o, target-float.o): Remove.
1307 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1308
ba2bf2aa
TT
13092018-09-04 Tom Tromey <tom@tromey.com>
1310
1311 * gnulib/Makefile.in: Remove obsolete comment.
1312 * Makefile.in: Remove obsolete comment.
1313
6c9d681b
AB
13142018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1315
1316 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1317 line with '+'.
1318
78a3b0fa
AB
13192018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1320
1321 * riscv-tdep.c: Add 'prologue-value.h' include.
1322 (struct riscv_unwind_cache): New struct.
1323 (riscv_debug_unwinder): New global.
1324 (riscv_scan_prologue): Update arguments, capture register details
1325 from prologue scan.
1326 (riscv_skip_prologue): Reformat arguments line, move end of
1327 prologue calculation into riscv_scan_prologue.
1328 (riscv_frame_cache): Update return type, create
1329 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1330 details.
1331 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1332 (riscv_frame_prev_register): Use the trad_frame within the
1333 riscv_unwind_cache.
1334 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1335 flag.
1336
23e60e7a
AB
13372018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1338
1339 * trad-frame.h (trad_frame_set_realreg): Declare.
1340 (trad_frame_set_addr): Declare.
1341 * trad-frame.c (trad_frame_set_realreg): Define new function.
1342 (trad_frame_set_addr): Define new function.
1343 (trad_frame_set_reg_realreg): Use new function.
1344 (trad_frame_set_reg_addr): Use new function.
1345
5c889512
KS
13462018-09-01 Keith Seitz <keiths@redhat.com>
1347
1348 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1349 pulongest instead of "%lld".
1350 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1351 ATTRIBUTE_UNUSED.
1352
c8c81635
TT
13532018-08-31 Tom Tromey <tom@tromey.com>
1354
1355 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1356 variant part type.
1357
0c888588
PA
13582018-08-31 Pedro Alves <palves@redhat.com>
1359
1360 * gdbarch.h: Regenerate.
1361
7ea65f08
PA
13622018-08-31 Pedro Alves <palves@redhat.com>
1363
1364 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1365 * target.h (Hardware watchpoint interfaces): Describe
1366 continuable/steppable/non-steppable watchpoints.
1367 * gdbarch.h, gdbarch.c: Regenerate.
1368
7eb65faf
PA
13692018-08-31 Pedro Alves <palves@redhat.com>
1370
1371 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1372 Delete.
1373 * s390-linux-nat.c
1374 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1375 * target.h (target_ops::have_continuable_watchpoint): Delete.
1376 (target_have_continuable_watchpoint): Delete.
1377 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1378 * target-delegates.c: Regenerate.
1379
dab999b1
SDJ
13802018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1381
1382 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1383 the files present in "gnulib/import/m4/".
1384
ff3a05b3
AB
13852018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1386
1387 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1388 c.sw, c.swsp, and c.sdsp.
1389
0b3f9efc
AB
13902018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1391
1392 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1393 (riscv_read_misa_reg): Don't cache value read into inferior data.
1394 (riscv_new_inferior_data): Delete.
1395 (riscv_inferior_data_cleanup): Delete.
1396 (riscv_inferior_data): Delete.
1397 (riscv_invalidate_inferior_data): Delete.
1398 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1399
a0dc02a6
SM
14002018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1401
1402 * compile/compile-cplus-types.c
1403 (compile_cplus_instance::leave_scope): Take the address of scope
1404 object.
1405 (compile_cplus_instance::convert_qualified_base): Compare quals
1406 to 0.
1407
fdad7678
KS
14082018-08-30 Keith Seitz <keiths@redhat.com>
1409
1410 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1411 Use "%s" and host_address_to_string instead of "%p" in printf.
1412
078a0207
KS
14132018-08-29 Keith Seitz <keiths@redhat.com>
1414
1415 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1416 and compile-cplus-types.c.
1417 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1418 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1419 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1420 Declare.
1421 * compile/compile-c-support.c: Include compile-cplus.h.
1422 (load_libcompile): Templatize.
1423 (get_compile_context): "New" function.
1424 (c_get_compile_context): Use get_compile_context.
1425 (cplus_get_compile_context): New function.
1426 (cplus_push_user_expression, cplus_pop_user_expression)
1427 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1428 (cplus_compute_program): Define new structs/functions.
1429 * compile/compile-cplus-symmbols.c: New file.
1430 * compile/compile-cplus-types.c: New file.
1431 * compile/compile-cplus.h: New file.
1432 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1433 Declare.
1434 * compile/compile-object-load.c (get_out_value_type): Use
1435 strncmp_iw when comparing symbol names.
1436 (compile_object_load): Add mst_bss and mst_data.
1437 * compile/compile.c (_initialize_compile): Remove
1438 -Wno-implicit-function-declaration from `compile_args'.
1439 * compile/gcc-cp-plugin.h: New file.
1440 * NEWS: Mention C++ compile support and new debug options.
1441
fcaad03c
KS
14422018-08-29 Keith Seitz <keiths@redhat.com>
1443
1444 * linespec.c (collect_info::add_symbol): Make virtual.
1445 (struct symbol_searcher_collect_info): New struct.
1446 (symbol_searcher::find_all_symbols): New method.
1447 * symtab.h (class symbol_searcher): New class.
1448
7e41c8db
KS
14492018-08-29 Keith Seitz <keiths@redhat.com>
1450
1451 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1452 Change to vector of block_symbol. Update all users.
1453 (struct collect_info) <symbols>: Likewise.
1454 (collect_info::add_symbol): Take block_symbol as argument.
1455 Update all callers.
1456 (decode_compound_collector) <m_symbols>: Change type to vector
1457 of block_symbol. Update all users.
1458 (decode_compound_collector::operator ()): Change parameter type
1459 to block_symbol.
1460 (find_method, find_function_symbols, find_linespec_symbols)
1461 (find_label_symbols_in_block, find_label_symbols): Change symbol
1462 vectors to block_symbol vectors.
1463 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1464 block_symbol.
1465
63e8c3da
KS
14662018-08-29 Keith Seitz <keiths@redhat.com>
1467
1468 * linespec.c (symbolp): Remove typedef and VEC definitions.
1469 (bound_minimal_symbol_d): Likewise.
1470
4dedf84d
KS
14712018-08-29 Keith Seitz <keiths@redhat.com>
1472
1473 * linespec.c (decode_compound_collector::decode_compound_collector):
1474 Remove initialization for `m_symtabs'.
1475 (decode_compound_collector::release_symbols): Change return type
1476 to std::vector. Update all callers.
1477 (class decode_compound_collector) <m_symbols>: Change type to
1478 std::vector.
1479 (lookup_prefix_sym): Change return type to std::vector. Update all
1480 callers.
1481 (compare_symbols): Remove.
1482 (std_compare_symbols): Rename to `compare_symbols'.
1483 (find_method): Change `sym_classes' parameter to std::vector.
1484 Update all callers. Use std::sort to sort sym_classes.
1485 (find_linespec_symbols): Remove cleanup.
1486
c2a031c5
KS
14872018-08-29 Keith Seitz <keiths@redhat.com>
1488
1489 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1490 std::vector. Update all users.
1491 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1492 (struct collect_info) <minimal_symbols>: Likewise.
1493 (compare_msymbols): Return bool. Change parameters to const
1494 bound_minimal_symbol references.
1495 (find_method, find_function_symbols, find_linespec_symbols): Change
1496 `minsyms' parameter to std::vector. Update all callers.
1497
3553eadc
KS
14982018-08-29 Keith Seitz <keiths@redhat.com>
1499
1500 * linespec.c (struct linespec) <label_symbols>: Change type to
1501 std::vector. Update all users.
1502 (find_label_symbols_in_block): Change `result' parameter to
1503 std::vector. Update all callers.
1504 (find_label_symbols): Return std::vector. Update all callers.
1505
7243d011
KS
15062018-08-29 Keith Seitz <keiths@redhat.com>
1507
1508 * linespec.c (struct linespec) <function_symbols>: Change type to
1509 std::vector. Update all users.
1510 (struct collect_info) <function_symbols>: Likewise.
1511 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1512 (std_compare_symbols): New function.
1513 (find_method, find_function_symbols, find_linespec_symbols)
1514 (find_label_symbols_in_block): Change `symbols' parameter to
1515 std::vector. Update all callers.
1516 (find_label_symbols): Likewise for `function_symbols' and
1517 `label_funcs_ret'.
1518
2a908241
KS
15192018-08-29 Keith Seitz <keiths@redhat.com>
1520
1521 * linespec.c (symtab_vector_up): Define.
1522 (struct linespec) <file_symtabs>: Change type to std::vector *.
1523 Update all uses.
1524 (struct collect_info) <file_symtabs>: Likewise.
1525 (collect_symtabs_from_filename): Return symtab_vector_up.
1526 Update all callers.
1527 (decode_objc): Remove cleanup.
1528 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1529 (symtab_collector::release_symtabs): Return symtab_vector_up.
1530 Update all callers.
1531 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1532 Update all users.
1533 (collect_symtabs_from_filename, symtabs_from_filename): Return
1534 symtab_vector_up. Update all callers.
1535
f6c4e3e8
TT
15362018-08-29 Tom Tromey <tom@tromey.com>
1537
1538 * csky-tdep.c (csky_analyze_prologue): Use
1539 core_addr_to_string_nz.
1540
73c13fe6
TT
15412018-08-29 Tom Tromey <tom@tromey.com>
1542
1543 * windows-nat.c (struct xlate_exception) <them>: Change type to
1544 DWORD.
1545 (xlate): Fix formatting. Remove last entry.
1546 (struct xlate_exception, xlate): Comment out.
1547 (windows_nat_target::resume): Use ranged for.
1548
4d3928d7
JW
15492018-08-29 Jim Wilson <jimw@sifive.com>
1550
1551 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1552 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1553 of NT_PRFPREG.
1554 (riscv_linux_nat_target::store_registers): Likewise.
1555
7a6dbc2f
SDJ
15562018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1557
1558 PR gdb/23555
1559 PR gdb/23558
1560 * gnulib/aclocal.m4: Regenerate.
1561 * gnulib/config.in: Regenerate.
1562 * gnulib/configure: Regenerate.
1563 * gnulib/import/Makefile.am: Update.
1564 * gnulib/import/Makefile.in: Update.
1565 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1566 * gnulib/import/_Noreturn.h: ... this.
1567 * gnulib/import/alloca.in.h: Update.
1568 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1569 * gnulib/import/arg-nonnull.h: ... this.
1570 * gnulib/import/assure.h: Update.
1571 * gnulib/import/at-func.c: Update.
1572 * gnulib/import/basename-lgpl.c: Update.
1573 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1574 * gnulib/import/c++defs.h: ... this.
1575 * gnulib/import/canonicalize-lgpl.c: Update.
1576 * gnulib/import/cdefs.h: Update.
1577 * gnulib/import/chdir-long.c: Update.
1578 * gnulib/import/chdir-long.h: Update.
1579 * gnulib/import/cloexec.c: Update.
1580 * gnulib/import/cloexec.h: Update.
1581 * gnulib/import/close.c: Update.
1582 * gnulib/import/closedir.c: Update.
1583 * gnulib/import/config.charset: Update.
1584 * gnulib/import/dirent-private.h: Update.
1585 * gnulib/import/dirent.in.h: Update.
1586 * gnulib/import/dirfd.c: Update.
1587 * gnulib/import/dirname-lgpl.c: Update.
1588 * gnulib/import/dirname.h: Update.
1589 * gnulib/import/dosname.h: Update.
1590 * gnulib/import/dup-safer-flag.c: Update.
1591 * gnulib/import/dup-safer.c: Update.
1592 * gnulib/import/dup.c: Update.
1593 * gnulib/import/dup2.c: Update.
1594 * gnulib/import/errno.in.h: Update.
1595 * gnulib/import/error.c: Update.
1596 * gnulib/import/error.h: Update.
1597 * gnulib/import/exitfail.c: Update.
1598 * gnulib/import/exitfail.h: Update.
1599 * gnulib/import/extra/update-copyright: Update.
1600 * gnulib/import/fchdir.c: Update.
1601 * gnulib/import/fcntl.c: Update.
1602 * gnulib/import/fcntl.in.h: Update.
1603 * gnulib/import/fd-hook.c: Update.
1604 * gnulib/import/fd-hook.h: Update.
1605 * gnulib/import/fd-safer-flag.c: Update.
1606 * gnulib/import/fd-safer.c: Update.
1607 * gnulib/import/fdopendir.c: Update.
1608 * gnulib/import/filename.h: Update.
1609 * gnulib/import/filenamecat-lgpl.c: Update.
1610 * gnulib/import/filenamecat.h: Update.
1611 * gnulib/import/flexmember.h: Update.
1612 * gnulib/import/float+.h: Update.
1613 * gnulib/import/float.c: Update.
1614 * gnulib/import/float.in.h: Update.
1615 * gnulib/import/fnmatch.c: Update.
1616 * gnulib/import/fnmatch.in.h: Update.
1617 * gnulib/import/fnmatch_loop.c: Update.
1618 * gnulib/import/fpucw.h: Update.
1619 * gnulib/import/frexp.c: Update.
1620 * gnulib/import/frexpl.c: Update.
1621 * gnulib/import/fstat.c: Update.
1622 * gnulib/import/fstatat.c: Update.
1623 * gnulib/import/getcwd-lgpl.c: Update.
1624 * gnulib/import/getcwd.c: Update.
1625 * gnulib/import/getdtablesize.c: Update.
1626 * gnulib/import/getlogin_r.c: Update.
1627 * gnulib/import/getprogname.c: Update.
1628 * gnulib/import/getprogname.h: Update.
1629 * gnulib/import/gettext.h: Update.
1630 * gnulib/import/gettimeofday.c: Update.
1631 * gnulib/import/glob-libc.h: Update.
1632 * gnulib/import/glob.c: Update.
1633 * gnulib/import/glob.in.h: Update.
1634 * gnulib/import/glob_internal.h: Update.
1635 * gnulib/import/glob_pattern_p.c: Update.
1636 * gnulib/import/globfree.c: Update.
1637 * gnulib/import/hard-locale.c: Update.
1638 * gnulib/import/hard-locale.h: Update.
1639 * gnulib/import/intprops.h: Update.
1640 * gnulib/import/inttypes.in.h: Update.
1641 * gnulib/import/isnan.c: Update.
1642 * gnulib/import/isnand-nolibm.h: Update.
1643 * gnulib/import/isnand.c: Update.
1644 * gnulib/import/isnanl-nolibm.h: Update.
1645 * gnulib/import/isnanl.c: Update.
1646 * gnulib/import/itold.c: Update.
1647 * gnulib/import/libc-config.h: Update.
1648 * gnulib/import/limits.in.h: Update.
1649 * gnulib/import/localcharset.c: Update.
1650 * gnulib/import/localcharset.h: Update.
1651 * gnulib/import/localtime-buffer.c: Update.
1652 * gnulib/import/localtime-buffer.h: Update.
1653 * gnulib/import/lstat.c: Update.
1654 * gnulib/import/m4/00gnulib.m4: Update.
1655 * gnulib/import/m4/__inline.m4: Update.
1656 * gnulib/import/m4/absolute-header.m4: Update.
1657 * gnulib/import/m4/alloca.m4: Update.
1658 * gnulib/import/m4/builtin-expect.m4: Update.
1659 * gnulib/import/m4/canonicalize.m4: Update.
1660 * gnulib/import/m4/chdir-long.m4: Update.
1661 * gnulib/import/m4/close.m4: Update.
1662 * gnulib/import/m4/closedir.m4: Update.
1663 * gnulib/import/m4/configmake.m4: Update.
1664 * gnulib/import/m4/d-ino.m4: Update.
1665 * gnulib/import/m4/d-type.m4: Update.
1666 * gnulib/import/m4/dirent_h.m4: Update.
1667 * gnulib/import/m4/dirfd.m4: Update.
1668 * gnulib/import/m4/dirname.m4: Update.
1669 * gnulib/import/m4/double-slash-root.m4: Update.
1670 * gnulib/import/m4/dup.m4: Update.
1671 * gnulib/import/m4/dup2.m4: Update.
1672 * gnulib/import/m4/eealloc.m4: Update.
1673 * gnulib/import/m4/environ.m4: Update.
1674 * gnulib/import/m4/errno_h.m4: Update.
1675 * gnulib/import/m4/error.m4: Update.
1676 * gnulib/import/m4/exponentd.m4: Update.
1677 * gnulib/import/m4/exponentl.m4: Update.
1678 * gnulib/import/m4/extensions.m4: Update.
1679 * gnulib/import/m4/extern-inline.m4: Update.
1680 * gnulib/import/m4/fchdir.m4: Update.
1681 * gnulib/import/m4/fcntl-o.m4: Update.
1682 * gnulib/import/m4/fcntl.m4: Update.
1683 * gnulib/import/m4/fcntl_h.m4: Update.
1684 * gnulib/import/m4/fdopendir.m4: Update.
1685 * gnulib/import/m4/filenamecat.m4: Update.
1686 * gnulib/import/m4/flexmember.m4: Update.
1687 * gnulib/import/m4/float_h.m4: Update.
1688 * gnulib/import/m4/fnmatch.m4: Update.
1689 * gnulib/import/m4/fnmatch_h.m4: Update.
1690 * gnulib/import/m4/fpieee.m4: Update.
1691 * gnulib/import/m4/frexp.m4: Update.
1692 * gnulib/import/m4/frexpl.m4: Update.
1693 * gnulib/import/m4/fstat.m4: Update.
1694 * gnulib/import/m4/fstatat.m4: Update.
1695 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1696 * gnulib/import/m4/getcwd-path-max.m4: Update.
1697 * gnulib/import/m4/getcwd.m4: Update.
1698 * gnulib/import/m4/getdtablesize.m4: Update.
1699 * gnulib/import/m4/getlogin.m4: Update.
1700 * gnulib/import/m4/getlogin_r.m4: Update.
1701 * gnulib/import/m4/getpagesize.m4: Update.
1702 * gnulib/import/m4/getprogname.m4: Update.
1703 * gnulib/import/m4/gettimeofday.m4: Update.
1704 * gnulib/import/m4/glibc21.m4: Update.
1705 * gnulib/import/m4/glob.m4: Update.
1706 * gnulib/import/m4/glob_h.m4: Update.
1707 * gnulib/import/m4/gnulib-cache.m4: Update.
1708 * gnulib/import/m4/gnulib-common.m4: Update.
1709 * gnulib/import/m4/gnulib-comp.m4: Update.
1710 * gnulib/import/m4/gnulib-tool.m4: Update.
1711 * gnulib/import/m4/hard-locale.m4: Update.
1712 * gnulib/import/m4/include_next.m4: Update.
1713 * gnulib/import/m4/inttypes-pri.m4: Update.
1714 * gnulib/import/m4/inttypes.m4: Update.
1715 * gnulib/import/m4/isnand.m4: Update.
1716 * gnulib/import/m4/isnanl.m4: Update.
1717 * gnulib/import/m4/largefile.m4: Update.
1718 * gnulib/import/m4/limits-h.m4: Update.
1719 * gnulib/import/m4/localcharset.m4: Update.
1720 * gnulib/import/m4/locale-fr.m4: Update.
1721 * gnulib/import/m4/locale-ja.m4: Update.
1722 * gnulib/import/m4/locale-zh.m4: Update.
1723 * gnulib/import/m4/localtime-buffer.m4: Update.
1724 * gnulib/import/m4/longlong.m4: Update.
1725 * gnulib/import/m4/lstat.m4: Update.
1726 * gnulib/import/m4/malloc.m4: Update.
1727 * gnulib/import/m4/malloca.m4: Update.
1728 * gnulib/import/m4/math_h.m4: Update.
1729 * gnulib/import/m4/mbrtowc.m4: Update.
1730 * gnulib/import/m4/mbsinit.m4: Update.
1731 * gnulib/import/m4/mbsrtowcs.m4: Update.
1732 * gnulib/import/m4/mbstate_t.m4: Update.
1733 * gnulib/import/m4/memchr.m4: Update.
1734 * gnulib/import/m4/memmem.m4: Update.
1735 * gnulib/import/m4/mempcpy.m4: Update.
1736 * gnulib/import/m4/memrchr.m4: Update.
1737 * gnulib/import/m4/mkdir.m4: Update.
1738 * gnulib/import/m4/mkstemp.m4: Update.
1739 * gnulib/import/m4/mmap-anon.m4: Update.
1740 * gnulib/import/m4/mode_t.m4: Update.
1741 * gnulib/import/m4/msvc-inval.m4: Update.
1742 * gnulib/import/m4/msvc-nothrow.m4: Update.
1743 * gnulib/import/m4/multiarch.m4: Update.
1744 * gnulib/import/m4/nocrash.m4: Update.
1745 * gnulib/import/m4/off_t.m4: Update.
1746 * gnulib/import/m4/onceonly.m4: Update.
1747 * gnulib/import/m4/open-cloexec.m4: Update.
1748 * gnulib/import/m4/open.m4: Update.
1749 * gnulib/import/m4/openat.m4: Update.
1750 * gnulib/import/m4/opendir.m4: Update.
1751 * gnulib/import/m4/pathmax.m4: Update.
1752 * gnulib/import/m4/rawmemchr.m4: Update.
1753 * gnulib/import/m4/readdir.m4: Update.
1754 * gnulib/import/m4/readlink.m4: Update.
1755 * gnulib/import/m4/realloc.m4: Update.
1756 * gnulib/import/m4/rename.m4: Update.
1757 * gnulib/import/m4/rewinddir.m4: Update.
1758 * gnulib/import/m4/rmdir.m4: Update.
1759 * gnulib/import/m4/save-cwd.m4: Update.
1760 * gnulib/import/m4/secure_getenv.m4: Update.
1761 * gnulib/import/m4/setenv.m4: Update.
1762 * gnulib/import/m4/signal_h.m4: Update.
1763 * gnulib/import/m4/ssize_t.m4: Update.
1764 * gnulib/import/m4/stat-time.m4: Update.
1765 * gnulib/import/m4/stat.m4: Update.
1766 * gnulib/import/m4/std-gnu11.m4: Update.
1767 * gnulib/import/m4/stdbool.m4: Update.
1768 * gnulib/import/m4/stddef_h.m4: Update.
1769 * gnulib/import/m4/stdint.m4: Update.
1770 * gnulib/import/m4/stdio_h.m4: Update.
1771 * gnulib/import/m4/stdlib_h.m4: Update.
1772 * gnulib/import/m4/strchrnul.m4: Update.
1773 * gnulib/import/m4/strdup.m4: Update.
1774 * gnulib/import/m4/strerror.m4: Update.
1775 * gnulib/import/m4/string_h.m4: Update.
1776 * gnulib/import/m4/strstr.m4: Update.
1777 * gnulib/import/m4/strtok_r.m4: Update.
1778 * gnulib/import/m4/sys_socket_h.m4: Update.
1779 * gnulib/import/m4/sys_stat_h.m4: Update.
1780 * gnulib/import/m4/sys_time_h.m4: Update.
1781 * gnulib/import/m4/sys_types_h.m4: Update.
1782 * gnulib/import/m4/tempname.m4: Update.
1783 * gnulib/import/m4/time_h.m4: Update.
1784 * gnulib/import/m4/unistd-safer.m4: Update.
1785 * gnulib/import/m4/unistd_h.m4: Update.
1786 * gnulib/import/m4/warn-on-use.m4: Update.
1787 * gnulib/import/m4/wchar_h.m4: Update.
1788 * gnulib/import/m4/wchar_t.m4: Update.
1789 * gnulib/import/m4/wctype_h.m4: Update.
1790 * gnulib/import/m4/wint_t.m4: Update.
1791 * gnulib/import/malloc.c: Update.
1792 * gnulib/import/malloc/scratch_buffer.h: Update.
1793 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1794 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1795 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1796 * gnulib/import/malloca.c: Update.
1797 * gnulib/import/malloca.h: Update.
1798 * gnulib/import/malloca.valgrind: Update.
1799 * gnulib/import/math.in.h: Update.
1800 * gnulib/import/mbrtowc.c: Update.
1801 * gnulib/import/mbsinit.c: Update.
1802 * gnulib/import/mbsrtowcs-impl.h: Update.
1803 * gnulib/import/mbsrtowcs-state.c: Update.
1804 * gnulib/import/mbsrtowcs.c: Update.
1805 * gnulib/import/memchr.c: Update.
1806 * gnulib/import/memmem.c: Update.
1807 * gnulib/import/mempcpy.c: Update.
1808 * gnulib/import/memrchr.c: Update.
1809 * gnulib/import/mkdir.c: Update.
1810 * gnulib/import/mkstemp.c: Update.
1811 * gnulib/import/msvc-inval.c: Update.
1812 * gnulib/import/msvc-inval.h: Update.
1813 * gnulib/import/msvc-nothrow.c: Update.
1814 * gnulib/import/msvc-nothrow.h: Update.
1815 * gnulib/import/open.c: Update.
1816 * gnulib/import/openat-die.c: Update.
1817 * gnulib/import/openat-priv.h: Update.
1818 * gnulib/import/openat-proc.c: Update.
1819 * gnulib/import/openat.c: Update.
1820 * gnulib/import/openat.h: Update.
1821 * gnulib/import/opendir.c: Update.
1822 * gnulib/import/pathmax.h: Update.
1823 * gnulib/import/pipe-safer.c: Update.
1824 * gnulib/import/rawmemchr.c: Update.
1825 * gnulib/import/readdir.c: Update.
1826 * gnulib/import/readlink.c: Update.
1827 * gnulib/import/realloc.c: Update.
1828 * gnulib/import/ref-add.sin: Update.
1829 * gnulib/import/ref-del.sin: Update.
1830 * gnulib/import/rename.c: Update.
1831 * gnulib/import/rewinddir.c: Update.
1832 * gnulib/import/rmdir.c: Update.
1833 * gnulib/import/same-inode.h: Update.
1834 * gnulib/import/save-cwd.c: Update.
1835 * gnulib/import/save-cwd.h: Update.
1836 * gnulib/import/scratch_buffer.h: Update.
1837 * gnulib/import/secure_getenv.c: Update.
1838 * gnulib/import/setenv.c: Update.
1839 * gnulib/import/signal.in.h: Update.
1840 * gnulib/import/stat-time.c: Update.
1841 * gnulib/import/stat-time.h: Update.
1842 * gnulib/import/stat-w32.c: Update.
1843 * gnulib/import/stat-w32.h: Update.
1844 * gnulib/import/stat.c: Update.
1845 * gnulib/import/stdbool.in.h: Update.
1846 * gnulib/import/stddef.in.h: Update.
1847 * gnulib/import/stdint.in.h: Update.
1848 * gnulib/import/stdio.in.h: Update.
1849 * gnulib/import/stdlib.in.h: Update.
1850 * gnulib/import/str-two-way.h: Update.
1851 * gnulib/import/strchrnul.c: Update.
1852 * gnulib/import/strdup.c: Update.
1853 * gnulib/import/streq.h: Update.
1854 * gnulib/import/strerror-override.c: Update.
1855 * gnulib/import/strerror-override.h: Update.
1856 * gnulib/import/strerror.c: Update.
1857 * gnulib/import/string.in.h: Update.
1858 * gnulib/import/stripslash.c: Update.
1859 * gnulib/import/strnlen1.c: Update.
1860 * gnulib/import/strnlen1.h: Update.
1861 * gnulib/import/strstr.c: Update.
1862 * gnulib/import/strtok_r.c: Update.
1863 * gnulib/import/sys_stat.in.h: Update.
1864 * gnulib/import/sys_time.in.h: Update.
1865 * gnulib/import/sys_types.in.h: Update.
1866 * gnulib/import/tempname.c: Update.
1867 * gnulib/import/tempname.h: Update.
1868 * gnulib/import/time.in.h: Update.
1869 * gnulib/import/unistd--.h: Update.
1870 * gnulib/import/unistd-safer.h: Update.
1871 * gnulib/import/unistd.in.h: Update.
1872 * gnulib/import/unsetenv.c: Update.
1873 * gnulib/import/verify.h: Update.
1874 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1875 * gnulib/import/wchar.in.h: Update.
1876 * gnulib/import/wctype.in.h: Update.
1877 * gnulib/import/xalloc-oversized.h: Update.
1878 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1879 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1880
b0f492b9
GB
18812018-08-16 Gary Benson <gbenson@redhat.com>
1882
1883 PR gdb/13000:
1884 * gdb/main.c (captured_main_1): Exit with nonzero status
1885 in batch mode if the last command to be executed failed.
1886 * NEWS: Mention the above.
1887
2362e7f7
SM
18882018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1889
1890 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1891 end of warning message.
1892
4f4aedeb
AH
18932018-08-29 Alan Hayward <alan.hayward@arm.com>
1894
1895 PR gdb/22943:
1896 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1897 (aarch64_extract_return_value): Use
1898 aapcs_is_vfp_call_or_return_candidate.
1899 (aarch64_return_in_memory): Likewise.
1900 (aarch64_store_return_value): Likewise.
1901
0e745c60
AH
19022018-08-29 Alan Hayward <alan.hayward@arm.com>
1903
1904 * aarch64-tdep.c
1905 (aapcs_is_vfp_call_or_return_candidate): Make static
1906 (pass_in_v_or_stack): Remove function.
1907 (pass_in_v_vfp_candidate): New function.
1908 (aarch64_push_dummy_call): Check for float register candidates.
1909
ea92689a
AH
19102018-08-29 Alan Hayward <alan.hayward@arm.com>
1911
1912 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1913 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1914 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1915
ad202fcc
SM
19162018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1917
1918 PR build/23399
1919 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1920 (struct ipa_sym_addresses): Rename to...
1921 (struct ipa_sym_addresses_common): ... this.
1922 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1923
5fe3f3e4
TT
19242018-08-28 Tom Tromey <tom@tromey.com>
1925
1926 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1927 (token_fifo): Now a std::vector.
1928 (yylex, c_parse): Update.
1929 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1930 (token_fifo): Now a std::vector.
1931 (yylex, d_parse): Update.
1932 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1933 (token_fifo): Now a std::vector.
1934 (yylex, go_parse): Update.
1935
858d8004
SM
19362018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1937
1938 * parser-defs.h (struct type_stack) <elements>: Change type to
1939 std::vector<union type_stack_elt>.
1940 <depth, size>: Remove.
1941 * parse.c (parse_exp_in_context_1): Adjust.
1942 (type_stack_reserve): Remove.
1943 (check_type_stack_depth): Remove.
1944 (insert_into_type_stack): Adjust to std::vector.
1945 (insert_type): Likewise.
1946 (push_type): Likewise.
1947 (push_type_int): Likewise.
1948 (insert_type_address_space): Likewise.
1949 (pop_type): Likewise.
1950 (pop_type_int): Likewise.
1951 (pop_typelist): Likewise.
1952 (pop_type_stack): Likewise.
1953 (append_type_stack): Likewise.
1954 (push_type_stack): Likewise.
1955 (get_type_stack): Likewise.
1956 (type_stack_cleanup): Likewise.
1957 (push_typelist): Likewise.
1958 (follow_types): Likewise.
1959 (_initialize_parse): Likewise.
1960
416a69af
HAQ
19612018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1962
1963 * NEWS: Mention csky target.
1964
9d24df82
HAQ
19652018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1966 Hafiz Abid Qadeer <abidh@codesourcery.com>
1967 Don Breazeal <donb@codesourcery.com>
1968
1969 * csky-linux-tdep.c: New file.
1970 * csky-tdep.c: Likewise.
1971 * csky-tdep.h: Likewise.
1972 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1973 csky-tdep.o.
1974 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1975 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1976 * configure.tgt: Add csky support.
1977
3bf9c013
JV
19782018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1979
1980 * python/py-framefilter.c (py_print_frame): Print frame architecture
1981 when printing on an MI output.
1982
d3d8724a
TT
19832018-08-27 Tom Tromey <tom@tromey.com>
1984
1985 PR build/23087:
1986 * configure: Rebuild.
1987 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1988
1885053b
TT
19892018-08-27 Tom Tromey <tom@tromey.com>
1990
1991 * aarch64-linux-tdep.c
1992 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1993 casts to int.
1994
8406672e
TT
19952018-08-27 Tom Tromey <tom@tromey.com>
1996
1997 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1998 unsigned.
1999 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2000 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2001 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2002 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2003 unsigned.
2004
ec40cf90
TT
20052018-08-27 Tom Tromey <tom@tromey.com>
2006
2007 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2008 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2009
7bc02706
TT
20102018-08-27 Tom Tromey <tom@tromey.com>
2011
2012 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2013 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2014 ULONGEST_MAX.
2015 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2016 ULONGEST_MAX.
2017 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2018 ULONGEST_MAX.
2019 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2020 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2021 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2022 ULONGEST_MAX.
2023 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2024 (ppc64_linux_sigaction_tramp_frame)
2025 (ppc32_linux_sighandler_tramp_frame)
2026 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2027 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2028 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2029 * mn10300-linux-tdep.c (am33_linux_sigframe)
2030 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2031 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2032 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2033 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2034 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2035 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2036 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2037 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2038 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2039 * microblaze-linux-tdep.c
2040 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2041 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2042 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2043 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2044 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2045 * common/common-types.h (ULONGEST_MAX): New define.
2046 (CORE_ADDR_MAX): Fix formatting.
2047 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2048 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2049 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2050 (arm_linux_rt_sigreturn_tramp_frame)
2051 (arm_eabi_linux_sigreturn_tramp_frame)
2052 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2053 (thumb2_eabi_linux_sigreturn_tramp_frame)
2054 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2055 (arm_linux_restart_syscall_tramp_frame)
2056 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2057 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2058 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2059 ULONGEST_MAX.
2060 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2061
70ab8ccd
TT
20622018-08-27 Tom Tromey <tom@tromey.com>
2063
2064 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2065 CORE_ADDR_MAX.
2066 * mips-tdep.c (mips_deal_with_atomic_sequence)
2067 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2068 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2069 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2070 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2071 CORE_ADDR_MAX.
2072 * aarch64-tdep.c (aarch64_software_single_step): Use
2073 CORE_ADDR_MAX.
2074
896a7aa6
TT
20752018-08-27 Tom Tromey <tom@tromey.com>
2076
2077 * linespec.c (complete_linespec_component): Add cast to "char".
2078 * completer.c (completion_tracker::build_completion_result): Add
2079 cast to "char".
2080
dd33d41d
SM
20812018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2082
2083 * solist.h (struct solist, struct target_so_ops): Fix
2084 indentation.
2085
c645cda4
SM
20862018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2087
2088 * ada-tasks.c (ada_task_info_s): Remove typedef.
2089 (DEF_VEC_O(ada_task_info_s)): Remove.
2090 (struct ada_tasks_inferior_data): Initialize fields.
2091 <task_list>: Make an std::vector.
2092 (get_ada_tasks_inferior_data): Allocate with new.
2093 (ada_get_task_number): Adjust.
2094 (get_task_number_from_id): Likewise.
2095 (valid_task_id): Likewise.
2096 (ada_get_task_info_from_ptid): Likewise.
2097 (iterate_over_live_ada_tasks): Likewise.
2098 (add_ada_task): Likewise.
2099 (read_known_tasks): Likewise.
2100 (ada_build_task_list): Likewise.
2101 (print_ada_task_info): Likewise.
2102 (info_task): Likewise.
2103 (task_command_1): Likewise.
2104
39e7af3e
SM
21052018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2106
2107 * ada-lang.c (add_angle_brackets): Return std::string.
2108
bbbbbcee
SM
21092018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2110
2111 * python/py-threadevent.c (py_get_event_thread): Initialize
2112 pythread.
2113
d98fc15b
PA
21142018-08-24 Pedro Alves <palves@redhat.com>
2115
2116 * python/py-bpevent.c (create_breakpoint_event_object): Use
2117 copy-initialization.
2118 * python/py-continueevent.c (emit_continue_event): Use
2119 copy-initialization.
2120 * python/py-exitedevent.c (create_exited_event_object): Return a
2121 gdbpy_ref<>.
2122 (emit_exited_event): Use copy-initialization.
2123 * python/py-inferior.c (python_new_inferior)
2124 (python_inferior_deleted, add_thread_object): Use
2125 copy-initialization.
2126 * python/py-infevents.c (create_inferior_call_event_object)
2127 (create_register_changed_event_object)
2128 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2129 (emit_inferior_call_event, emit_memory_changed_event)
2130 (emit_register_changed_event): Use copy-initialization.
2131 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2132 Return a gdbpy_ref<>.
2133 (emit_new_objfile_event): Use copy-initialization.
2134 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2135 (emit_clear_objfiles_event): Use copy-initialization.
2136 * python/py-signalevent.c (create_signal_event_object): Use
2137 copy-initialization.
2138 * python/py-threadevent.c (create_thread_event_object): Use
2139 copy-initialization.
2140
da3c8738
PA
21412018-08-24 Pedro Alves <palves@redhat.com>
2142 Simon Marchi <simon.marchi@ericsson.com>
2143
2144 PR gdb/23379
2145 * python/py-continueevent.c: Include "gdbthread.h".
2146 (create_continue_event_object): Add intro comment. Add 'ptid'
2147 parameter. Use it to find thread to pass to
2148 create_thread_event_object.
2149 (emit_continue_event): Pass PTID down to
2150 create_continue_event_object.
2151 * python/py-event.h (py_get_event_thread): Declare.
2152 (create_thread_event_object): Remove default from 'thread'
2153 parameter.
2154 * python/py-stopevent.c (create_stop_event_object): Use
2155 py_get_event_thread.
2156 * python/py-threadevent.c (get_event_thread): Rename to ...
2157 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2158 and use it to find the thread.
2159 (create_thread_event_object): Assert that THREAD isn't null.
2160 Don't find the event thread here.
2161
26457a9c
KB
21622018-08-23 Kevin Buettner <kevinb@redhat.com>
2163
2164 * block.h (blockrange, blockranges): New struct declarations.
2165 (struct block): Add new field named `ranges'.
2166 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2167 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2168 macros for accessing ranges in struct block.
2169 (make_blockranges): New declaration.
2170 block.c (make_blockranges): New function.
2d5f09ec
KB
2171 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2172 for block.
fc811edd
KB
2173 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2174 * blockframe.c (cache_pc_function_block): New static global.
2175 (clear_pc_function_cache): Clear cache_pc_function_block.
2176 (find_pc_partial_function): Move comment to symtab.h. Add
2177 support for non-contiguous blocks.
e9480230
KB
2178 * cli/cli-cmds.c (block.h): Include.
2179 (print_disassembly): Handle printing of non-contiguous blocks.
2180 (disassemble_current_function): Likewise.
2181 (disassemble_command): Likewise.
26457a9c 2182
2b1ffcfd
KB
2183 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2184 BLOCK_START.
2185 * blockframe.c (get_pc_function_start): Likewise.
2186 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2187 (gcc_symbol_address): Likewise.
2188 * compile/compile-object-run.c (compile_object_run): Likewise.
2189 * compile/compile.c (get_expr_block_and_pc): Likewise.
2190 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2191 (func_addr_to_tail_call_list): Likewise.
2192 * findvar.c (default_read_var_value): Likewise.
2193 * inline-frame.c (inline_frame_this_id): Likewise.
2194 (skip-inline_frames): Likewise.
2195 * infcmd.c (until_next_command): Likewise.
2196 * linespec.c (convert_linespec_to_sals): Likewise.
2197 * parse.c (parse_exp_in_context_1): Likewise.
2198 * printcmd.c (build_address_symbolic): likewise.
2199 (info_address_command): Likewise.
2200 symtab.c (find_function_start_sal): Likewise.
2201 (skip_prologue_sal): Likewise.
2202 (find_function_alias_target): Likewise.
2203 (find_gnu_ifunc): Likewise.
2204 * stack.c (find_frame_funname): Likewise.
2205 * symtab.c (fixup_symbol_section): Likewise.
2206 (find_function_start_sal): Likewise.
2207 (skip_prologue_sal): Likewsie.
2208 (find_function_alias_target): Likewise.
2209 (find_gnu_ifunc): Likewise.
2210 * tracepoint.c (info_scope_command): Likewise.
2211 * value.c (value_fn_field): Likewise.
2212
9644dc3a
KB
2213 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2214 in place of find_pc_partial_function.
2215 * blockframe.c (find_function_entry_range_from_pc): New function.
2216 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2217 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2218 for each range in a block.
2219
2220
12a0d0f6
XR
22212018-08-23 Xavier Roirand <roirand@adacore.com>
2222
2223 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2224 incrementation.
2225
d1012b8e
SM
22262018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2227
2228 * solib-svr4.c (read_program_headers_from_bfd): Return
2229 gdb::optional<gdb::byte_vector>.
2230 (svr4_exec_displacement): Adjust.
2231
17658d46
SM
22322018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2233
2234 * solib-svr4.c (read_program_header): Return
2235 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2236 (find_program_interpreter): Return
2237 gdb::optional<gdb::byte_vector>.
2238 (scan_dyntag_auxv): Adjust.
2239 (enable_break): Adjust.
2240 (svr4_exec_displacement): Adjust.
2241
ae739fe7
SM
22422018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2243
2244 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2245 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2246
467dc1e2
SM
22472018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2248
2249 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2250 string_vprintf.
2251 * guile/scm-utils.c (gdbscm_printf): Likewise.
2252 * serial.c (serial_printf): Likewise.
2253 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2254
6d52907e
JV
22552018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2256
2257 * stack.c (print_frame): Print frame architecture when printing on
2258 an MI output.
2259 * NEWS: Mention new "arch" attribute in frame output.
2260
9758a8f8
AH
22612018-08-21 Alan Hayward <alan.hayward@arm.com>
2262
2263 * arch/aarch64.h (aarch64_regnum): Update comment.
2264
1461bdac
AH
22652018-08-21 Alan Hayward <alan.hayward@arm.com>
2266
2267 * NEWS: Add SVE to 8.2 section.
2268
4895f384
PA
22692018-08-21 Pedro Alves <palves@redhat.com>
2270
2271 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2272 out from gdbscm_parse_function_args.
2273 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2274 gdbscm_parse_function_args_1.
2275
a4497d2f
SM
22762018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2277
2278 PR gdb/17816
2279 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2280 operator.
2281
c44deb73
SM
22822018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2283
2284 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2285
be2d111a
MS
22862018-08-19 Michael Spang <spang@google.com>
2287
2288 PR gdb/11786
2289 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2290 for PT_TLS segments.
2291
a6b786da
KB
22922018-08-18 Kevin Buettner <kevinb@redhat.com>
2293
2294 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2295 dwarf_variable_value.
2296 * dwarf2-frame.c (class dwarf_expr_executor):
2297 Add override for dwarf_variable_value.
2298 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2299 (class symbol_needs_eval_context): Likewise.
2300 (indirect_synthetic_pointer): Add forward declaration.
2301 (sect_variable_value): New function.
2302 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2303 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2304 for DW_OP_GNU_variable_value.
2305
89fbedf3
TT
23062018-08-16 Tom Tromey <tom@tromey.com>
2307
2308 * top.c (read_command_file): Update.
2309 (command_line_input): Remove "repeat" argument.
2310 * ada-lang.c (get_selections): Update.
2311 * linespec.c (decode_line_2): Update.
2312 * defs.h (command_line_input): Remove argument.
2313 * cli/cli-script.c (read_next_line): Update.
2314 * python/py-gdb-readline.c: Update.
2315
12582533
TT
23162018-08-17 Tom Tromey <tom@tromey.com>
2317
2318 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2319 command_line_input.
2320
49514353
TT
23212018-08-15 Tom Tromey <tom@tromey.com>
2322
2323 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2324
26fb3983
JV
23252018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2326
2327 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2328 If used, use find_pc_partial_function to find address range
2329 to disassemble.
2330 * mi/mi-main.c (mi_cmd_list_features): Report
2331 "data-disassemble-a-option" feature.
2332 * NEWS: Mention new -data-disassemble option -a.
2333
a97b53dd
TT
23342018-08-13 Tom Tromey <tom@tromey.com>
2335
2336 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2337
0c76e06d
AH
23382018-08-13 Alan Hayward <alan.hayward@arm.com>
2339
2340 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2341 (aarch64_linux_collect_sve_regset): Likewise.
2342 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2343 * regcache.h (regcache_map_entry_size): New function.
2344
b7fd65b9
AH
23452018-08-13 Alan Hayward <alan.hayward@arm.com>
2346
2347 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2348 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2349 (SVE_HEADER_VL_LENGTH): Likewise.
2350 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2351 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2352 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2353 (SVE_HEADER_SIZE_OFFSET): Likewise.
2354 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2355 (SVE_HEADER_VL_OFFSET): Likewise.
2356 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2357 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2358 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2359 (SVE_HEADER_SIZE): Likewise.
2360 (aarch64_linux_core_read_vq): Add function.
2361 (aarch64_linux_core_read_description): Check for SVE section.
2362
a616bb94
AH
23632018-08-13 Alan Hayward <alan.hayward@arm.com>
2364
2365 * aarch64-fbsd-tdep.c
2366 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2367 collect_size.
2368 * aarch64-linux-tdep.c
2369 (aarch64_linux_iterate_over_regset_sections): Likewise.
2370 * alpha-linux-tdep.c
2371 (alpha_linux_iterate_over_regset_sections):
2372 * alpha-nbsd-tdep.c
2373 (alphanbsd_iterate_over_regset_sections): Likewise.
2374 * amd64-fbsd-tdep.c
2375 (amd64fbsd_iterate_over_regset_sections): Likewise.
2376 * amd64-linux-tdep.c
2377 (amd64_linux_iterate_over_regset_sections): Likewise.
2378 * arm-bsd-tdep.c
2379 (armbsd_iterate_over_regset_sections): Likewise.
2380 * arm-fbsd-tdep.c
2381 (arm_fbsd_iterate_over_regset_sections): Likewise.
2382 * arm-linux-tdep.c
2383 (arm_linux_iterate_over_regset_sections): Likewise.
2384 * corelow.c (get_core_registers_cb): Likewise.
2385 (core_target::fetch_registers): Likewise.
2386 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2387 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2388 * gdbarch.h (void): Regenerate.
2389 * gdbarch.sh: Add supply_size and collect_size.
2390 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2391 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2392 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2393 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2394 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2395 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2396 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2397 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2398 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2399 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2400 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2401 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2402 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2403 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2404 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2405 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2406 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2407 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2408 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2409 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2410 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2411 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2412 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2413 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2414 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2415 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2416 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2417 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2418 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2419 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2420
a9925d4f
SM
24212018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2422
2423 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2424 with string_printf.
2425
ad3a68e9
KS
24262018-08-10 Keith Seitz <keiths@redhat.com>
2427
2428 * compile/compile-c-support.c (add_code_header, add_code_footer):
2429 Move into policy class.
2430 (c_push_user_expression, pop_user_expression_nop)
2431 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2432 (compile_program): New host class.
2433 (c_compile_program): New typedef.
2434 (c_compute_porgram): Use c_compile_program.
2435
0cfbf430
KS
24362018-08-10 Keith Seitz <keiths@redhat.com>
2437
2438 * compile/compile-internal.h (compile_instance::~compile_instance):
2439 Remove calls to htab_delete.
2440 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2441 * compile.c (compile_instance::compile_instance): Initialize
2442 htab unique pointers.
2443 (compile_instance::get_cached_type, compile_instance::insert_type)
2444 (compile_instance::error_symbol_once): Update for unique_ptr.
2445
946d3d10
KS
24462018-08-10 Keith Seitz <keiths@redhat.com>
2447
2448 * compile/compile-c-symbols.c (struct symbol_error)
2449 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2450 (compile_instance::insert_symbol_error)
2451 (compile_instance::error_symbol_once): Move to ...
2452 * compile/compile.c: ... here.
2453
9cdfd9a2
KS
24542018-08-10 Keith Seitz <keiths@redhat.com>
2455
2456 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2457 instead of `new_compile_instance'.
2458 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2459 Update description.
2460 If the symbol error map is not initialized, create it.
2461 (generate_c_for_for_one_symbol): Do not check/initialize
2462 the symbol error map.
2463 * compile/compile-c-types.c (compile_c_instance): Make a class.
2464 Update all callers.
2465 (compile_instance::compile_instance): Initialize the type cache.
2466 (get_cached_type): New function.
2467 (insert_type): Update description.
2468 (compile_c_instance::m_default_cflags): Define.
2469 (convert_type): Update description. Use get_cached_type.
2470 (delete_instance): Moved to destructor.
2471 (new_compile_instance): Moved to constructor.
2472 * compile/compile-c.h (compile_c_instance): Make class inheriting
2473 from compile_instance.
2474 <base>: Remove field.
2475 <type_map, symbol_err_map>: Move to base class.
2476 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2477 * compile/compile-internal.h (compile_instance): Make class.
2478 <type_map_t, symbol_err_map_t>: Define.
2479 <fe>: Rename to `m_gcc_fe'.
2480 <scope, block, gcc_target_options>: Add `m_' prefix.
2481 <m_type_map, m_symbol_err_map>: New fields, moved from
2482 compile_c_instance.
2483 <destroy>: Remove.
2484 (convert_type, new_compile_instance): Remove.
2485 * compile/compile.c (cleanup_compile_instance): Remove.
2486 (compile_to_object): Use unique_ptr to eliminate cleanups.
2487 (compile_instance::set_print_callback, compile_instance::version)
2488 (compile_instance::set_verbose)
2489 (compile_instance::set_driver_filename)
2490 (compile_instance::set_triplet_regexp)
2491 (compile_instance::set_arguments)
2492 (compile_instance::set_source_file)
2493 (compile_instance::compile): Define.
2494
18cdc6d8
KS
24952018-08-10 Keith Seitz <keiths@redhat.com>
2496
2497 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2498 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2499 gcc-c-fe.def to define C plugin.
2500 (delete_instance): Delete `c_plugin'.
2501 (new_compile_instance): Initialize `c_plugin'.
2502 * compile/compile-c.h: Include gcc_c_plugin.h.
2503 (struct compile_c_instance) <c_plugin>: New member.
2504 * gcc-c-plugin.h: New file.
2505 Update all callers with API change.
2506
b7dc48b4
KS
25072018-08-10 Keith Seitz <keiths@redhat.com>
2508
2509 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2510 (HFILES_NO_SRCDIR): ... to here.
2511 Add compile-internal.h and compile-c.h.
2512 * compile/compile-c-support.c: Include compile-c.h.
2513 * compile/compile-c-symbols.c: Include compile-c.h.
2514 (generate_c_for_variable_locations): Update comment.
2515 * compile/compile-c-types.c: Include compile-c.h.
2516 * compile/compile-c.h: New file -- moved C language declarations
2517 from other files here.
2518 * compile/compile-internal.h: Do not include hashtab.h or
2519 common/enum-flags.h.
2520 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2521 (gcc_convert_symbol, gcc_symbol_address)
2522 (generate_c_for_variable_locations, c_get_mode_for_size)
2523 (c_get_range_decl_name): Definitions moved to compile-c.h.
2524 * compile/compile-loc2c.c: Include compile-c.h.
2525
6f36b6d2
KS
25262018-08-10 Keith Seitz <keiths@redhat.com>
2527
2528 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2529 (c_symbol_substitution_name): ... this.
2530 Update all callers.
2531
bd923e51
KS
25322018-08-10 Keith Seitz <keiths@redhat.com>
2533
2534 * compile/compile-c-support.c (c_compute_program): Use
2535 unique_xmalloc_ptr to eliminate cleanup.
2536 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2537 Return a unique_xmalloc_ptr and eliminate cleanup.
2538 * compile/compile-internal.h (generate_c_for_variable_locations):
2539 Return unique_xmalloc_ptr and update description.
2540
dbd534fe
AH
25412018-08-10 Alan Hayward <alan.hayward@arm.com>
2542
2543 * corelow.c (core_target::get_core_register_section): Rename
2544 min_size to section_min_size.
2545
90ad3654
JW
25462018-08-09 Jim Wilson <jimw@sifive.com>
2547
52a187f8
JW
2548 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2549 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2550 * NEWS: Mention new GNU/Linux RISC-V target.
2551 * configure.host: Add riscv*-*-linux*.
2552 * configure.nat: Add riscv*.
2553 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 2554 * riscv-linux-nat.c: New file.
90ad3654
JW
2555 * riscv-linux-tdep.c: New file.
2556
aff4e175
AB
25572018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2558
2559 * infrun.c (resume): Make static, add forward declaration.
2560 (proceed): Update header comment.
2561 * infrun.h (resume): Delete declaration.
2562
06ab9219
TT
25632018-08-09 Tom Tromey <tom@tromey.com>
2564
2565 * riscv-tdep.h: Minor formatting fixes.
2566
83c8d318
SM
25672018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2568
2569 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2570 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2571 (test_mkdir_recursive): Likewise.
2572 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2573
5ff2bbae
AB
25742018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2575
2576 * valarith.c (value_subscripted_rvalue): If an array is not in
2577 memory, and we don't know the upper bound, then we can't know that
2578 the requested element exists or not.
2579
fdbac7d8
SM
25802018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2581
2582 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2583 (target_options_to_string): Add comment.
2584
83202f7a
TT
25852018-08-08 Tom Tromey <tom@tromey.com>
2586
2587 * unittests/scoped_mmap-selftests.c: Check result of "write".
2588
411baa47
JW
25892018-08-08 Jim Wilson <jimw@sifive.com>
2590
5c720ed8
JW
2591 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2592 (decode_register_index_short): New.
2593 (decode_j_type_insn, decode_cj_type_insn): New.
2594 (decode_b_type_insn, decode_cb_type_insn): New.
2595 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2596 local xlen. Check xlen when decoding ambiguous compressed insns. In
2597 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2598 is_c_sw_insn instead of is_sw_insn.
2599 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2600 (riscv_software_single_step): New.
2601 * riscv-tdep.h (riscv_software_single_step): Declare.
2602
411baa47
JW
2603 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2604 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2605
9d4a934c
AB
26062018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2607
2608 PR gdb/18050:
2609 * target.c (dispose_inferior): Don't dispose of inferiors that are
2610 already killed.
2611
ff36536c
SN
26122018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2613
2614 * remote.c (remote_target::download_tracepoint): Change char* to
2615 const char*.
2616
09ce46f2
SM
26172018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2618
2619 * target.h (target_options_to_string): Return an std::string.
2620 * target.c (str_comma_list_concat_elem): Return void, use
2621 std::string.
2622 (do_option): Likewise.
2623 (target_options_to_string): Return an std::string.
2624 * linux-nat.c (linux_nat_target::wait): Adjust.
2625 * target-debug.h (target_debug_print_options): Adjust.
2626
9c612964
TT
26272018-08-07 Tom Tromey <tom@tromey.com>
2628
2629 * Makefile.in (CPPFLAGS): New variable.
2630 (INTERNAL_CPPFLAGS): Use it.
2631
7d11235d
SM
26322018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2633
2634 * NEWS: Mention the index cache.
2635
87d6a7aa
SM
26362018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2637
2638 * common/pathstuff.h (get_standard_cache_dir): New.
2639 * common/pathstuff.c (get_standard_cache_dir): New.
2640 * build-id.h (build_id_to_string): New.
2641 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2642 DEBUG_STR_SUFFIX): Move to here.
2643 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2644 DEBUG_STR_SUFFIX): Move from there.
2645 (write_psymtabs_to_index): Make non-static, add basename
2646 parameter. Write to temporary files, rename when done.
2647 (save_gdb_index_command): Adjust call to
2648 write_psymtabs_to_index.
2649 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2650 field.
2651 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2652 (get_gdb_index_contents_from_cache): New.
2653 (get_gdb_index_contents_from_cache_dwz): New.
2654 (dwarf2_initialize_objfile): Read index from cache.
2655 (dwarf2_build_psymtabs): Save to index.
2656 * dwarf-index-cache.h: New file.
2657 * dwarf-index-cache.c: New file.
2658 * dwarf-index-write.h: New file.
2659
8a99096f
SM
26602018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2661
2662 * gnulib/aclocal.m4: Re-generate.
2663 * gnulib/config.in: Re-generate.
2664 * gnulib/configure: Re-generate.
2665 * gnulib/import/Makefile.am: Re-generate.
2666 * gnulib/import/Makefile.in: Re-generate.
2667 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2668 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2669 * gnulib/import/m4/mkdir.m4: New file.
2670 * gnulib/import/mkdir.c: New file.
2671 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2672 module.
2673
5c831bb1
SM
26742018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2675
2676 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2677 * common/scoped_mmap.c: New file.
2678 * common/scoped_mmap.h (destroy): New method.
2679 (~scoped_mmap, reset): Use destroy.
2680 (scoped_mmap): New move constructor.
2681 (mmap_file): New declaration.
2682 * unittests/scoped_mmap-selftests.c (test_normal,
2683 test_invalid_filename, run_tests): New functions.
2684 (_initialize_scoped_mmap_selftests): Register selftest.
2685
4485a1c1
SM
26862018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2687
2688 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2689 (read_gdb_index_from_buffer): ... this. Remove section
2690 parameter, add buffer parameter.
2691 (get_gdb_index_contents_ftype,
2692 get_gdb_index_contents_dwz_ftype): New typedefs.
2693 (dwarf2_read_gdb_index): Add callback parameters to get the
2694 index contents.
2695 (get_gdb_index_contents_from_section): New.
2696 (dwarf2_initialize_objfile): Update call to
2697 dwarf2_read_gdb_index.
2698
528e1572
SM
26992018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2700
2701 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2702 (gdb_open_cloexec): Likewise.
2703 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2704 (commandline_from_pid): Likewise.
2705 (linux_xfer_osdata_threads): Likewise.
2706 (linux_xfer_osdata_fds): Likewise.
2707 * ada-lang.c (is_package_name): Likewise.
2708 * auxv.c (procfs_xfer_auxv): Likewise.
2709 * breakpoint.c (print_one_breakpoint_location): Use
2710 uiout::field_fmt.
2711 (print_one_catch_solib): Use string_printf.
2712 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2713 (add_pe_forwarded_sym): Likewise.
2714 * dwarf2read.c (create_type_unit_group): Likewise.
2715 (build_error_marker_type): Likewise.
2716 * infcall.c (get_function_name): Likewise.
2717 * valprint.c (print_converted_chars_to_obstack): Likewise.
2718 * xtensa-tdep.c (xtensa_register_type): Likewise.
2719
a7f25a84
SM
27202018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2721
2722 * remote.c (remote_target::download_tracepoint): Fix format
2723 string errors.
2724
296956be
PFC
27252018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2726
2727 * tracefile.c: Include common/byte-vector.h.
2728 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2729 with trace_regblock_size if needed. Update uses of buf.
2730
a04b9d62
PFC
27312018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2732
2733 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2734 std::vector<unsigned char>.
2735 * tracepoint.c (collection_list::collection_list): Remove
2736 m_regs_mask initializer from initializer list. Resize
2737 m_regs_mask using the largest remote register number.
2738 (collection_list::add_remote_register): Remove size check on
2739 m_regs_mask. Use at to access element.
2740 (collection_list::stringify): Change type of temp_buf to
2741 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2742 stringify the register mask. Use pack_hex_byte for the register
2743 mask.
2744
4277c4b8
PFC
27452018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2746
2747 * tracepoint.h (class collection_list) <add_register>: Remove.
2748 <add_remote_register, add_ax_registers, add_local_register>:
2749 Declare.
2750 <add_memrange>: Add scope parameter.
2751 * tracepoint.c (encode_actions_1): Likewise.
2752 (collection_list::add_register): Rename to ...
2753 (collection_list::add_remote_register): ... this. Update
2754 comment.
2755 (collection_list::add_ax_registers, add_local_register): New
2756 methods.
2757 (collection_list::add_memrange): Add scope parameter. Call
2758 add_local_register instead of add_register.
2759 (finalize_tracepoint_aexpr): New function.
2760 (collection_list::collect_symbol): Update calls to add_memrange.
2761 Call add_local_register instead of add_register. Call
2762 add_ax_registers. Call finalize_tracepoint_aexpr.
2763 (encode_actions_1): Get remote regnos for $reg action. Call
2764 add_remote_register, add_ax_registers, and add_local_register.
2765 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2766 (validate_actionline): Call finalize_tracepoint_aexpr.
2767
3df3a985
PFC
27682018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2769
2770 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2771 Replace array buf with gdb::char_vector buf, of size
2772 get_remote_packet_size (). Replace references to buf and
2773 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2774 and xsnprintf with snprintf. Raise errors if the buffer is too
2775 small.
2776
aa6f3694
PFC
27772018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2778
2779 * remote.c (remote_target::download_tracepoint): Fix the has_more
2780 predicate in the QTDP action list iteration.
2781
05abfc39
PFC
27822018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2783
2784 * remote.c (remote_target::download_tracepoint): Fix indentation
2785 in for block.
2786
821a2682
RO
27872018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2788
2789 * proc-api.c (_initialize_proc_api): Remove c, unused.
2790 * procfs.c (procfs_init_inferior): Remove signals, unused.
2791 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2792 unused.
2793
95347337
AB
27942018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2795 Andrew Burgess <andrew.burgess@embecosm.com>
2796
2797 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2798 'W_STOPCODE (0)' as this could be ambiguous.
2799
425699f5
SDJ
28002018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2801
2802 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2803 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2804 "ai_socktype").
2805
3e1d3d8c
TT
28062018-08-02 Tom Tromey <tom@tromey.com>
2807
2808 PR symtab/16842.
2809 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2810 symbols.
2811 (process_structure_scope): Likewise.
2812
15843549
XR
28132018-08-02 Xavier Roirand <roirand@adacore.com>
2814
2815 PR gdb/22629:
2816 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2817 kill inferior.
2818
b5bddbbb
TT
28192018-08-02 Tom Tromey <tom@tromey.com>
2820
2821 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2822 (darwin_suspend_inferior, darwin_resume_inferior)
2823 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2824 (darwin_check_new_threads): Check result of get_darwin_inferior.
2825
f61cfa07
JB
28262018-07-31 Joel Brobecker <brobecker@adacore.com>
2827
2828 GDB 8.1.1 released.
2829
5abe0f0c
JV
28302018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2831
2832 * varobj.c (varobj_get_path_expr_parent): Report an error if
2833 parent is a dynamic varobj.
2834
472fa5ee
SM
28352018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2836
2837 * gnulib/aclocal.m4: Re-generate.
2838 * gnulib/config.in: Re-generate.
2839 * gnulib/configure: Re-generate.
2840 * gnulib/import/Makefile.in: Re-generate.
2841 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2842 * gnulib/import/m4/onceonly.m4: Re-generate.
2843
1c28969e
SM
28442018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2845
2846 * target-descriptions.c (struct xml_test_tdesc): New.
2847 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2848 (record_xml_tdesc): Update.
2849 (maintenance_check_xml_descriptions): Update.
2850 * target-descriptions.h (record_xml_tdesc): Update comment.
2851
c8f2dc0d
AB
28522018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2853
2854 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2855 checking array bounds are defined.
2856
463c08d1
TT
28572018-07-30 Tom Tromey <tom@tromey.com>
2858
2859 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2860 irreflexivity violation.
2861
dba7455e
TT
28622018-07-30 Tom Tromey <tom@tromey.com>
2863
2864 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2865 * value.c (unpack_long): Remove lint code.
2866 * valops.c (value_ind): Remove lint code.
2867 * valarith.c (value_x_binop, value_x_unop, value_equal)
2868 (value_pos): Remove lint code.
2869
37cc0cae
TV
28702018-07-28 Tom de Vries <tdevries@suse.de>
2871
2872 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2873 with undefined upper bound as <optimized out>.
2874
129eb0f1
SDJ
28752018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2876
2877 * gcore.in: Rename variable "name" to "prefix". Expand
2878 "usage" text.
2879
6af79d7b
JT
28802018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2881
2882 * windows-nat.c (windows_nat_target::create_inferior): Update to
2883 call close() in global namespace.
2884
79748972
TT
28852018-07-26 Tom Tromey <tom@tromey.com>
2886
2887 * dwarf-index-write.c (add_address_entry): Don't add objfile
2888 offsets.
2889 * dbxread.c (find_stab_function): Rename from
2890 find_stab_function_addr. Return a bound_minimal_symbol.
2891 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2892 Don't add objfile offsets.
2893 (end_psymtab): Use raw_text_low, raw_text_high,
2894 MSYMBOL_VALUE_RAW_ADDRESS.
2895 (read_ofile_symtab): Update.
2896 (process_one_symbol): Update.
2897 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2898 offsets.
2899 (dw2_relocate): Remove.
2900 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2901 searching addrmap.
2902 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2903 Update.
2904 (process_psymtab_comp_unit_reader, add_partial_symbol)
2905 (add_partial_subprogram, dwarf2_ranges_read): Update.
2906 (load_partial_dies): Update.
2907 (add_address_entry): Don't add objfile offsets.
2908 (dwarf2_build_include_psymtabs): Update.
2909 (create_addrmap_from_aranges): Don't add objfile offsets.
2910 (dw2_find_pc_sect_compunit_symtab): Update.
2911 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2912 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2913 Update.
2914 (parse_partial_symbols): Don't add objfile offsets. Use
2915 raw_text_low, raw_text_high. Update.
2916 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2917 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2918 or call 'relocate' quick function. Clear psymbol_map.
2919 * psympriv.h (struct partial_symbol) <address>: Add section
2920 offset.
2921 <set_unrelocated_address>: Rename from set_address.
2922 <raw_text_low, raw_text_high>: New methods.
2923 <text_low, text_high>: Add objfile parameter.
2924 (add_psymbol_to_bcache): Add 'section' parameter. Call
2925 set_unrelocated_address.
2926 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2927 (find_pc_psymbol): Update.
2928 (fixup_psymbol_section, relocate_psymtabs): Remove.
2929 (dump_psymtab, psym_functions): Update.
2930 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2931 parameter.
2932 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2933 (start_psymtab_common): Update.
2934 * symfile-debug.c (debug_qf_relocate): Remove.
2935 (debug_sym_quick_functions): Update.
2936 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2937 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2938 Update.
2939
52948f01
TT
29402018-07-26 Tom Tromey <tromey@redhat.com>
2941
2942 * dbxread.c (end_psymtab): Use text_high_valid and
2943 text_low_valid.
2944 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2945 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2946 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2947 Update comment.
2948 <text_low_valid, text_high_valid>: New fields.
2949 <set_text_low, set_text_high>: Update.
2950 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2951
4ae976d1
TT
29522018-07-26 Tom Tromey <tom@tromey.com>
2953
2954 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2955 Update.
2956 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2957 textlow and texthigh fields.
2958 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2959 Update.
2960 * mdebugread.c (parse_lines, parse_partial_symbols)
2961 (psymtab_to_symtab_1): Update.
2962 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2963 Rename fields. Update comment. Now private.
2964 <text_low, text_high, set_text_low, set_text_high>: New methods.
2965 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2966 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2967 (start_psymtab_common, maintenance_info_psymtabs)
2968 (maintenance_check_psymtabs): Update.
2969 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2970 texthigh fields.
2971 (scan_xcoff_symtab): Update.
2972
02e9e7f7
TT
29732018-07-26 Tom Tromey <tromey@redhat.com>
2974
2975 * psympriv.h (struct partial_symbol) <unrelocated_address,
2976 address, set_address>: New methods.
2977 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2978 (fixup_psymbol_section, relocate_psymtabs): Update.
2979 (print_partial_symbols): Add 'objfile' parameter. Update.
2980 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2981 Update.
2982
8a6d4234
TT
29832018-07-26 Tom Tromey <tom@tromey.com>
2984
2985 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2986 (debug_names::write_psymbols): Update.
2987 * psympriv.h (struct partial_symbol): Derive from
2988 general_symbol_info.
2989 <obj_section>: New method.
2990 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2991 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2992 (find_pc_sect_psymbol, fixup_psymbol_section)
2993 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2994 (print_partial_symbols, recursively_search_psymtabs)
2995 (compare_psymbols, psymbol_hash, psymbol_compare)
2996 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2997 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2998
08994e1d
TT
29992018-07-26 Tom Tromey <tromey@redhat.com>
3000
3001 * dbxread.c (end_psymtab): Remove dead code.
3002
3c3bb058
AB
30032018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3004
3005 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3006 DWARF unwinders are disabled.
3007 * dwarf2-frame.c: Add dwarf2read.h include.
3008 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3009 disabled.
3010 (dwarf2_frame_unwinders_enabled_p): Define.
3011 (show_dwarf_unwinders_enabled_p): New function.
3012 (_initialize_dwarf2_frame): Register switch to control DWARF
3013 unwinder use.
3014 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3015 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3016 (show_dwarf_cmdlist): Remove static keyword.
3017 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3018 (show_dwarf_cmdlist): Declare.
3019 * NEWS: Document new feature.
3020
9e7f3bbb
TV
30212018-07-26 Tom de Vries <tdevries@suse.de>
3022
3023 PR breakpoints/23366
3024 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3025
506f5c41
TV
30262018-07-26 Tom de Vries <tdevries@suse.de>
3027
3028 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3029 DW_AT_count can't be translated to a dynamic prop.
3030
16f808ec
TV
30312018-07-25 Tom de Vries <tdevries@suse.de>
3032
3033 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3034 try/catch.
3035
d7154a8d
JV
30362018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3037
3038 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3039
a45389f6
JB
30402018-07-25 Joel Brobecker <brobecker@adacore.com>
3041
3042 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3043
380618d6
KS
30442018-07-24 Keith Seitz <keiths@redhat.comt
3045
3046 PR symtab/23010
3047 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3048 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3049 instead of add_symbol_to_list.
3050 (read_file_scope): Call prepare_one_comp_unit before reading
3051 any other DIEs.
3052
4b17aefe
SM
30532018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3054
3055 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3056
29d17e47
TT
30572018-07-24 Tom Tromey <tom@tromey.com>
3058
3059 * utils.c (malloc, realloc, free): Don't declare.
3060 * configure, config.in: Rebuild.
3061 * configure.ac: Don't check for declarations of free, malloc, or
3062 realloc.
3063
cf4088a9
SM
30642018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3065
3066 * aarch64-linux-nat.c
3067 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3068 variable.
3069 * arm-linux-nat.c (fetch_regs): Likewise.
3070 (store_regs): Likewise.
3071 (fetch_vfp_regs): Likewise.
3072 (store_vfp_regs): Likewise.
3073 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3074 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3075 (arm_linux_nat_target::insert_watchpoint): Likewise.
3076 (arm_linux_nat_target::remove_watchpoint): Likewise.
3077 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3078 Likewise.
3079 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3080 Likewise.
3081 * ppc-linux-nat.c (fetch_register): Likewise.
3082 (fetch_all_gp_regs): Likewise.
3083 (fetch_ppc_registers): Likewise.
3084 (store_all_gp_regs): Likewise.
3085 (store_ppc_registers): Likewise.
3086 (hwdebug_insert_point): Likewise.
3087 (can_use_watchpoint_cond_accel): Likewise.
3088 * remote-sim.c (gdb_os_write_stdout): Likewise.
3089
a0de763e
TT
30902018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3091 Tom Tromey <tom@tromey.com>
3092
3093 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3094 test for it.
3095 * configure: Rebuild.
3096
3b20124b
TT
30972018-07-22 Tom Tromey <tom@tromey.com>
3098
3099 * regformats/regdat.sh: Define xmltarget_${name} inside
3100 #ifndef IN_PROCESS_AGENT.
3101
8c8807f4
TT
31022018-07-22 Tom Tromey <tom@tromey.com>
3103
3104 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3105
c486b610
TT
31062018-07-22 Tom Tromey <tom@tromey.com>
3107
3108 * symfile.c (reread_symbols): Notify iter, not objfile.
3109
494f80a9
TT
31102018-07-22 Tom Tromey <tom@tromey.com>
3111
3112 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3113 Use arch_ops.
3114 (ravenscar_thread_target::prepare_to_store): Likewise.
3115
c51f6a54
TT
31162018-07-22 Tom Tromey <tom@tromey.com>
3117
3118 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3119 unused variable. Call value_fetch_lazy when needed.
3120 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3121 Remove unused variable. Call value_fetch_lazy when needed.
3122
374fd1fd
TT
31232018-07-22 Tom Tromey <tom@tromey.com>
3124
3125 * m32c-tdep.c (mark_dma): Return void.
3126 (make_regs): Remove unused declarations.
3127
d5e9a511
TT
31282018-07-22 Tom Tromey <tom@tromey.com>
3129
3130 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3131 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3132 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3133 bkscm_get_valid_block_smob_arg_unsafe for effect.
3134
996d693a
TT
31352018-07-22 Tom Tromey <tom@tromey.com>
3136
3137 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3138 value_type.
3139
15766370
TT
31402018-07-22 Tom Tromey <tom@tromey.com>
3141
3142 * windows-nat.c (saved_context): Conditionally define.
3143 * remote.c (remote_target::remote_btrace_maybe_reopen):
3144 Conditionally declare "warned".
3145 * inflow.c (sigquit_ours): Conditionally define.
3146 (new_tty): Move "tty" declaration inside #if.
3147 * guile/guile.c (guile_datadir): Conditionally define.
3148 * charset.c (set_be_le_names): Move some declarations inside #if.
3149 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3150 #if.
3151 (parse_xml_btrace_conf): Likewise.
3152
f4e80e13
TT
31532018-07-22 Tom Tromey <tom@tromey.com>
3154
3155 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3156
8d49165d
TT
31572018-07-22 Tom Tromey <tom@tromey.com>
3158
3159 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3160 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3161 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3162 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3163 * stack.c (frame_apply_level_command): Remove unused variable.
3164 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3165 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3166 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3167 unused variable.
3168 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3169 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3170 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3171 variable.
3172 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3173 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3174 variable.
3175 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3176 Remove unused variable.
3177 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3178 variable.
3179 * common/tdesc.c (print_xml_feature::visit): Remove unused
3180 variable.
3181 * compile/compile-object-load.c (store_regs): Remove unused
3182 variables.
3183 * complaints.c (clear_complaints): Remove unused variable.
3184 * corelow.c (core_target_open): Remove unused variable.
3185 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3186 variable.
3187 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3188 variable.
3189 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3190 variable.
3191 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3192 variable.
3193 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3194 variable.
3195 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3196 variable.
3197 * ia64-tdep.c (examine_prologue): Remove unused variable.
3198 * infcall.c (run_inferior_call): Remove unused variable.
3199 * inferior.c (exit_inferior): Remove unused variable.
3200 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3201 * linespec.c (decode_line_2): Remove unused variable.
3202 * linux-nat.c (super_close): Remove.
3203 * linux-tdep.c (linux_info_proc): Remove unused variable.
3204 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3205 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3206 Remove unused variable.
3207 * parse.c (find_minsym_type_and_address): Remove unused variable.
3208 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3209 variable.
3210 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3211 variable.
3212 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3213 variables.
3214 * record-btrace.c (record_btrace_target::store_registers): Remove
3215 unused variable.
3216 (cmd_show_record_btrace_cpu): Remove unused variable.
3217 * riscv-tdep.c (riscv_register_reggroup_p)
3218 (riscv_push_dummy_call, riscv_return_value): Remove unused
3219 variable.
3220 * rust-exp.y (literal): Remove unused variable.
3221 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3222 unused variable.
3223 <STRUCTOP_ANONYMOUS>: Likewise.
3224 * s390-linux-tdep.c (s390_linux_init_abi_31)
3225 (s390_linux_init_abi_64): Remove unused variable.
3226 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3227 (file_select_thread, net_windows_open, _initialize_ser_windows):
3228 Remove unused variables.
3229 * symtab.c (find_pc_sect_line): Remove unused variable.
3230 * target-memory.c (compute_garbled_blocks): Remove unused
3231 variable.
3232 (target_write_memory_blocks): Remove unused variable.
3233 * target.c (target_stack::unpush): Remove unused variables.
3234 * tracepoint.c (start_tracing, all_tracepoint_actions)
3235 (merge_uploaded_trace_state_variables)
3236 (print_one_static_tracepoint_marker): Remove unused variable.
3237 * unittests/basic_string_view/element_access/char/1.cc (test01):
3238 Remove unused variable.
3239 * windows-nat.c (windows_continue, windows_add_all_dlls)
3240 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3241 Remove unused variables.
3242
17cbafdb
SM
32432018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3244
3245 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3246 attr_profile in HAVE_ELF.
3247 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3248 HAVE_ELF.
3249
0ee6c332
SM
32502018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3251
3252 * frame.c (frame_register_unwind): Change parameter name.
3253 (frame_unwind_register): Likewise.
3254 (frame_unwind_register_value): Likewise.
3255 (frame_unwind_register_signed): Likewise.
3256 (frame_unwind_register_unsigned): Likewise.
3257 * frame.h (frame_register_unwind): Likewise.
3258 (frame_unwind_register): Likewise.
3259 (frame_unwind_register_value): Likewise.
3260 (frame_unwind_register_signed): Likewise.
3261 (frame_unwind_register_unsigned): Likewise.
3262 (frame_unwind_arch): Likewise.
3263
e2e31f10
MR
32642018-07-20 Maciej W. Rozycki <macro@mips.com>
3265
3266 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3267 ISA maintenance.
3268
2d389915
MR
32692018-07-20 Maciej W. Rozycki <macro@mips.com>
3270
3271 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3272 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3273 hand.
3274
cbb09508
KS
32752018-07-20 Keith Seitz <keiths@redhat.com>
3276
3277 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3278 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3279 m_compunit_symtab, m_language>: Add "m_" prefix.
3280 Update all uses.
3281 * buildsym.c: Update all uses.
3282
bfe2e011
TT
32832018-07-20 Tom Tromey <tom@tromey.com>
3284
3285 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3286 * buildsym.h (record_line_ftype): Remove typedef.
3287
0e6f3061
TT
32882018-07-20 Tom Tromey <tom@tromey.com>
3289
3290 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3291 (end_expandable_symtab): Likewise.
3292 (end_symtab_get_static_block): Likewise.
3293 (end_symtab_from_static_block): Likewise.
3294 * buildsym-legacy.c (augment_type_symtab): Remove.
3295 (end_expandable_symtab): Remove.
3296 (end_symtab_get_static_block): Remove.
3297 (end_symtab_from_static_block): Remove.
3298
804d2729
TT
32992018-07-20 Tom Tromey <tom@tromey.com>
3300
3301 * dwarf2read.c: Include buildsym.h.
3302 (struct dwarf2_cu) <builder>: New method.
3303 (fixup_go_packaging): Update.
3304 (process_full_comp_unit, process_full_type_unit): Update. Don't
3305 use scoped_free_pendings.
3306 (using_directives): Add "cu" parameter, remove "language".
3307 (read_import_statement, setup_type_unit_groups, )
3308 (read_func_scope, read_lexical_block_scope)
3309 (dwarf2_record_block_ranges, read_namespace): Update.
3310 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3311 (lnp_state_machine::handle_end_sequence): Update.
3312 (class lnp_state_machine) <m_cu>: New member.
3313 <m_record_line_callback>: Remove.
3314 <m_currently_recording_lines>: New member.
3315 (lnp_state_machine::handle_set_file): Update.
3316 (noop_record_line): Remove.
3317 (dwarf_record_line_p): Add cu parameter.
3318 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3319 (lnp_state_machine::record_line)
3320 (lnp_state_machine::lnp_state_machine)
3321 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3322 (dwarf_decode_lines): Update.
3323 (dwarf2_start_subfile): Add cu parameter.
3324 (dwarf2_start_symtab, new_symbol): Update.
3325 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3326 Remove dwarf2_per_objfile parameter.
3327 (dwarf_decode_macros): Update.
3328
80e649fc
TT
33292018-07-20 Tom Tromey <tom@tromey.com>
3330
3331 * stabsread.c (define_symbol): Update.
3332 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3333 * dwarf2read.c (new_symbol): Update.
3334 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3335 * cp-namespace.c: Include buildsym.h.
3336 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3337 * buildsym-legacy.c (get_buildsym_compunit): New function.
3338
0baae8db
TT
33392018-07-20 Tom Tromey <tom@tromey.com>
3340
3341 * xcoffread.c: Include buildsym-legacy.h.
3342 * windows-nat.c: Include buildsym-legacy.h.
3343 * stabsread.c: Include buildsym-legacy.h.
3344 * mdebugread.c: Include buildsym-legacy.h.
3345 * buildsym-legacy.h: New file.
3346 * buildsym-legacy.c: New file, from buildsym.c.
3347 * go32-nat.c: Include buildsym-legacy.h.
3348 * dwarf2read.c: Include buildsym-legacy.h.
3349 * dbxread.c: Include buildsym-legacy.h.
3350 * cp-namespace.c: Include buildsym-legacy.h.
3351 * coffread.c: Include buildsym-legacy.h.
3352 * buildsym.h: Move some contents to buildsym-legacy.h.
3353 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3354 buildsym-legacy.c.
3355 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3356
ab209f6f
TT
33572018-07-20 Tom Tromey <tom@tromey.com>
3358
3359 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3360 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3361 (buildsym_compunit::buildsym_compunit)
3362 (buildsym_compunit::~buildsym_compunit)
3363 (buildsym_compunit::get_macro_table): Define.
3364
74c72eac
TT
33652018-07-20 Tom Tromey <tom@tromey.com>
3366
3367 * buildsym.c (reset_symtab_globals): Remove.
3368 (buildsym_compunit::end_symtab_from_static_block): Update.
3369 (buildsym_compunit::augment_type_symtab): Update.
3370 (end_symtab_from_static_block): Call free_buildsym_compunit.
3371 (augment_type_symtab, end_symtab, end_expandable_symtab):
3372 Likewise.
3373
da6580e5
TT
33742018-07-20 Tom Tromey <tom@tromey.com>
3375
3376 * arch-utils.c: Do not include buildsym.h.
3377 * mipsread.c: Do not include buildsym.h.
3378 * machoread.c: Do not include buildsym.h.
3379 * elfread.c: Do not include buildsym.h.
3380
4a2125f5
TT
33812018-07-20 Tom Tromey <tom@tromey.com>
3382
3383 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3384 initialization.
3385 (buildsym_compunit): Add new constructor.
3386 (struct buildsym_compunit) <get_last_source_file, finish_block,
3387 record_block_range, start_subfile, patch_subfile_names,
3388 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3389 set_last_source_start_addr, get_last_source_start_addr,
3390 get_local_using_directives, set_local_using_directives,
3391 get_global_using_directives, outermost_context_p,
3392 get_current_context_stack, get_context_stack_depth,
3393 get_current_subfile, get_local_symbols, get_file_symbols,
3394 get_global_symbols, record_debugformat, record_producer,
3395 push_context, pop_context, end_symtab_get_static_block,
3396 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3397 New public methods.
3398 <record_pending_block, finish_block_internal, make_blockvector,
3399 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3400 private methods.
3401 Update all users.
3402
34032018-05-22 Tom Tromey <tom@tromey.com>
3404
3405 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3406 parameter.
3407 (finish_block_internal): Update.
3408
6b213a47
TT
34092018-07-20 Tom Tromey <tom@tromey.com>
3410
3411 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3412 parameter.
3413 (finish_block_internal): Update.
3414
b80a981d
TT
34152018-07-20 Tom Tromey <tom@tromey.com>
3416
3417 * buildsym.h (EXTERN): Don't define or undef.
3418 * buildsym.c (EXTERN): Don't define.
3419
ddb70602
TT
34202018-07-20 Tom Tromey <tom@tromey.com>
3421
3422 * buildsym.c: Remove TODO comment.
3423
b37dd3bc
TT
34242018-07-20 Tom Tromey <tom@tromey.com>
3425
3426 * coffread.c (coff_symtab_read): Update.
3427 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3428 (xcoff_new_init): Update.
3429 * mipsread.c (mipscoff_new_init): Update.
3430 * mdebugread.c (mdebug_build_psymtabs): Update.
3431 * elfread.c (elf_new_init): Update.
3432 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3433 Update.
3434 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3435 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3436 (stabsect_build_psymtabs): Update.
3437 * buildsym.h (buildsym_init): Don't declare.
3438 * buildsym.c: Update comment.
3439 (prepare_for_building): Remove.
3440 (start_symtab, restart_symtab): Update.
3441 (reset_symtab_globals): Update comment.
3442 (buildsym_init): Remove.
3443
e148f09d
TT
34442018-07-20 Tom Tromey <tom@tromey.com>
3445
3446 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3447 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3448 (read_enum_type, common_block_start, common_block_end)
3449 (cleanup_undefined_types_1, finish_global_stabs): Update.
3450 * mdebugread.c (psymtab_to_symtab_1): Update.
3451 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3452 (read_lexical_block_scope, new_symbol): Update.
3453 * dbxread.c (process_one_symbol): Update.
3454 * coffread.c (coff_symtab_read, process_coff_symbol)
3455 (coff_read_enum_type): Update.
3456 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3457 declare.
3458 (get_local_symbols, get_file_symbols, get_global_symbols): New
3459 functions.
3460 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3461 m_global_symbols.
3462 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3463 (~scoped_free_pendings): Update.
3464 (finish_block, prepare_for_building, reset_symtab_globals)
3465 (end_symtab_get_static_block, end_symtab_with_blockvector)
3466 (augment_type_symtab, push_context): Update.
3467 (get_local_symbols, get_file_symbols, get_global_symbols): New
3468 functions.
3469 (buildsym_init): Update.
3470
93b8bea4
TT
34712018-07-20 Tom Tromey <tom@tromey.com>
3472
3473 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3474 (process_full_type_unit): Likewise.
3475 (dwarf2_start_symtab): Set list_in_scope.
3476
f62f6af5
TT
34772018-07-20 Tom Tromey <tom@tromey.com>
3478
3479 * dwarf2read.c (process_psymtab_comp_unit_reader)
3480 (build_type_psymtabs_reader): Do not set list_in_scope.
3481
1d376700
TT
34822018-07-20 Tom Tromey <tom@tromey.com>
3483
3484 * buildsym.c (free_pendings): Remove.
3485 (add_symbol_to_list, scoped_free_pendings)
3486 (finish_block_internal, buildsym_init): Update.
3487
c233e9c6
TT
34882018-07-20 Tom Tromey <tom@tromey.com>
3489
3490 * xcoffread.c (read_xcoff_symtab): Update.
3491 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3492 Update.
3493 * dbxread.c (process_one_symbol): Update.
3494 * coffread.c (coff_symtab_read): Update.
3495 * buildsym.h (finish_block): Update.
3496 * buildsym.c (finish_block): Remove "listhead" argument.
3497 (end_symtab_get_static_block): Update.
3498
5ac04550
TT
34992018-07-20 Tom Tromey <tom@tromey.com>
3500
3501 * buildsym.h (class scoped_free_pendings): Remove constructor.
3502 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3503 method.
3504 <m_pending_block_obstack, m_pending_blocks>: New members.
3505 (pending_block_obstack, pending_blocks): Remove.
3506 (scoped_free_pendings::scoped_free_pendings): Default.
3507 (~scoped_free_pendings): Update.
3508 (free_pending_blocks): Remove.
3509 (finish_block_internal, record_pending_block, make_blockvector)
3510 (end_symtab_get_static_block, augment_type_symtab, push_context)
3511 (buildsym_init): Update.
3512
7ea05a7b
TT
35132018-07-20 Tom Tromey <tom@tromey.com>
3514
3515 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3516 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3517 members.
3518 (pending_addrmap, pending_addrmap_obstack)
3519 (pending_addrmap_interesting): Remove.
3520 (scoped_free_pendings, record_block_range, make_blockvector)
3521 (prepare_for_building, reset_symtab_globals, buildsym_init):
3522 Update.
3523
3c65e5b3
TT
35242018-07-20 Tom Tromey <tom@tromey.com>
3525
3526 * xcoffread.c (process_linenos): Update.
3527 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3528 * mdebugread.c (psymtab_to_symtab_1): Update.
3529 * dwarf2read.c (setup_type_unit_groups)
3530 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3531 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3532 * dbxread.c (process_one_symbol): Update.
3533 * coffread.c (coff_symtab_read, enter_linenos)
3534 (process_coff_symbol): Update.
3535 * buildsym.h (current_subfile): Don't declare.
3536 (get_current_subfile): Declare.
3537 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3538 member.
3539 (start_subfile, free_buildsym_compunit, push_subfile)
3540 (prepare_for_building, start_symtab): Update.
3541 (get_current_subfile): New function.
3542
a60f3166
TT
35432018-07-20 Tom Tromey <tom@tromey.com>
3544
3545 * coffread.c (coff_symtab_read): Update.
3546 * xcoffread.c (read_xcoff_symtab): Update.
3547 * dwarf2read.c (new_symbol): Update.
3548 (read_func_scope, read_lexical_block_scope): Update.
3549 * dbxread.c (process_one_symbol): Update.
3550 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3551 (outermost_context_p): Remove macro.
3552 (outermost_context_p, get_current_context_stack)
3553 (get_context_stack_depth): Declare.
3554 (pop_context): Return struct context_stack.
3555 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3556 member.
3557 (context_stack_size): Remove.
3558 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3559 (prepare_for_building, end_symtab_get_static_block)
3560 (augment_type_symtab, push_context): Update.
3561 (pop_context): Return struct context_stack.
3562 (outermost_context_p, get_current_context_stack)
3563 (get_context_stack_depth): New functions.
3564 (buildsym_init): Update.
3565
56ba65a0
TT
35662018-07-20 Tom Tromey <tom@tromey.com>
3567
3568 * rust-exp.y: Now a pure parser. Update all rules.
3569 (%union): Move earlier.
3570 (current_parser, work_obstack): Remove globals.
3571 (rust_parser, ~rust_parser): Update.
3572 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3573 lex_character, lex_number, lex_string, lex_identifier,
3574 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3575 convert_name, convert_params_to_expression,
3576 convert_ast_to_expression, ast_basic_type, ast_operation,
3577 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3578 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3579 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3580 ast_array_type, ast_slice_type, ast_reference_type,
3581 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3582 (rust_parse): Update.
3583 (rustyyerror, rustyylex): Add parser parameter.
3584 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3585 (rust_lex_stringish_test, rust_lex_test_sequence)
3586 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3587 (rust_lex_test_push_back, rust_lex_tests): Update.
3588
4c693332
PA
35892018-07-19 Pedro Alves <palves@redhat.com>
3590
3591 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3592 gdb::unique_xmalloc_ptr.
3593 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3594 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3595 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3596 copy-initialization.
3597 * guile/scm-pretty-print.c (ppscm_print_children): Use
3598 gdb::unique_xmalloc_ptr instead of cleanups.
3599 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3600 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3601 gdb::unique_xmalloc_ptr.
3602 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3603 Adjust to use gdb::unique_xmalloc_ptr.
3604 * guile/scm-utils.c (extract_arg): Adjust.
3605 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3606 gdb::unique_xmalloc_ptr instead of a cleanup.
3607
4581dc82
TT
36082018-07-19 Tom Tromey <tom@tromey.com>
3609
3610 * utils.c (do_value_free_to_mark)
3611 (make_cleanup_value_free_to_mark): Remove.
3612 * utils.h (make_cleanup_value_free_to_mark): Remove.
3613
43cc6c3a
PA
36142018-07-19 Pedro Alves <palves@redhat.com>
3615
3616 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3617 forwarding reference.
3618
3a5f2a48
PA
36192018-07-18 Pedro Alves <palves@redhat.com>
3620
3621 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3622 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3623 cleanup.
3624
557e56be
PA
36252018-07-18 Pedro Alves <palves@redhat.com>
3626
3627 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3628 exceptions.
3629 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3630 (gdbscm_wrap): New.
3631 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3632 directly instead of a cleanup.
3633 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3634 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3635 (vlscm_binop_gdbthrow): New, factored out from ...
3636 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3637 (vlscm_rich_compare): Use gdbscm_wrap.
3638 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3639 instead of a cleanup.
3640 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3641 cleanup.
3642 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3643 Use xfree directly instead of a cleanup.
3644 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3645 Adjust to use gdbscm_wrap and scoped_value_mark.
3646 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3647 (gdbscm_value_address, gdbscm_value_dereference)
3648 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3649 scoped_value_mark.
3650 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3651 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3652 scoped_value_mark.
3653 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3654 gdbscm_wrap and scoped_value_mark.
3655 (gdbscm_value_to_string): Use xfree directly instead of a
3656 cleanup. Move 'buffer' unique_ptr to TRY scope.
3657 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3658 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3659 scoped_value_mark.
3660 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3661 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3662 scoped_value_mark.
3663 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3664 gdbscm_wrap.
3665
42dc7699
TV
36662018-07-18 Tom de Vries <tdevries@suse.de>
3667
3668 * findvar.c (default_read_var_value): Also resolve dynamic type for
3669 LOC_OPTIMIZED_OUT vars.
3670
6592ceed
MR
36712018-07-18 Maciej W. Rozycki <macro@mips.com>
3672
3673 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3674 decoding.
3675
c6c6149a
TT
36762018-07-17 Tom Tromey <tom@tromey.com>
3677
3678 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3679 (compute_enum_list, pascm_set_param_value_x)
3680 (gdbscm_parameter_value): Update.
3681 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3682 (gdbscm_scm_to_host_string): Update.
3683 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3684 Update.
3685 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3686 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3687 * guile/scm-string.c (gdbscm_scm_to_string): Return
3688 unique_xmalloc_ptr.
3689 (gdbscm_scm_to_host_string): Likewise.
3690
a1a31cb8
TT
36912018-07-17 Tom Tromey <tom@tromey.com>
3692
3693 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3694 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3695 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3696 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3697 unique_xmalloc_ptr.
3698
15bf3002
TT
36992018-07-17 Tom Tromey <tom@tromey.com>
3700
3701 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3702 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3703 Update.
3704 * guile/scm-cmd.c (cmdscm_function): Update.
3705 * guile/scm-pretty-print.c
3706 (ppscm_print_exception_unless_memory_error): Update.
3707 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3708 Return unique_xmalloc_ptr.
3709
7eb1a66c
TT
37102018-07-17 Tom Tromey <tom@tromey.com>
3711
3712 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3713 Use string_printf.
3714
ce73f310
JW
37152018-07-17 Jim Wilson <jimw@sifive.com>
3716
27724bad
JW
3717 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3718 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3719 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3720 unecessary braces after EF_RISCV_RVC test. Delete call to
3721 set_gdbarch_decr_pc_after_break.
3722
ce73f310
JW
3723 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3724 RISCV_LAST_FP_REGNUM + 1.
3725 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3726
056dec39
TT
37272018-07-17 Tom Tromey <tom@tromey.com>
3728
3729 * configure.ac: Remove --disable-gdbcli.
3730 * configure: Rebuild.
3731 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3732 (SUBDIR_CLI_CFLAGS): Remove.
3733 (SFILES): Use SUBDIR_CLI_SRCS.
3734 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3735
4735f0ed
TT
37362018-07-17 Tom Tromey <tom@tromey.com>
3737
3738 PR gdb/18624:
3739 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3740
117a0e99
JW
37412018-07-16 Jim Wilson <jimw@sifive.com>
3742
3743 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3744
8a67aaa8
SM
37452018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3746
3747 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3748 variable.
3749 (libunwind_frame_sniffer): Likewise.
3750 (libunwind_frame_prev_register): Likewise.
3751 (libunwind_sigtramp_frame_sniffer): Likewise.
3752 * ia64-tdep.c (ia64_access_reg): Likewise.
3753 (ia64_access_rse_reg): Likewise.
3754 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3755 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3756
ec74dcd8
SM
37572018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3758
3759 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3760
a700e753
SM
37612018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3762
3763 * remote-sim.c (gdbsim_target::close,
3764 gdbsim_target::mourn_inferior): Remove unused variables.
3765
8b411ff8
SM
37662018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3767
3768 * ia64-tdep.c (ktab_buf): New global.
3769 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3770 (get_kernel_table): Adjust.
3771
edb0470b
TT
37722018-07-16 Tom Tromey <tom@tromey.com>
3773
3774 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3775 * dwarf2read.c (using_directives, new_symbol): Use
3776 outermost_context_p.
3777 * dbxread.c (process_one_symbol): Use outermost_context_p.
3778 * coffread.c (coff_symtab_read): Use outermost_context_p.
3779
6cccc9a8
TT
37802018-07-16 Tom Tromey <tom@tromey.com>
3781
3782 * dwarf2read.c (using_directives, read_func_scope)
3783 (read_lexical_block_scope): Update.
3784 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3785 * buildsym.h (local_using_directives, global_using_directives):
3786 Don't declare.
3787 (get_local_using_directives, set_local_using_directives)
3788 (get_global_using_directives): Declare.
3789 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3790 m_global_using_directives>: New members.
3791 (finish_block_internal, prepare_for_building)
3792 (reset_symtab_globals, end_symtab_get_static_block)
3793 (push_context): Update.
3794 (get_local_using_directives, set_local_using_directives)
3795 (get_global_using_directives): New functions.
3796 (buildsym_init): Update.
3797
652788a7
TT
37982018-07-16 Tom Tromey <tom@tromey.com>
3799
3800 * xcoffread.c (xcoff_initial_scan): Don't call
3801 free_pending_blocks.
3802 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3803 * buildsym.h (class scoped_free_pendings): Add constructor.
3804 (free_pending_blocks): Don't declare.
3805 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3806 (free_pending_blocks): Now static.
3807
8419ee53
TT
38082018-07-16 Tom Tromey <tom@tromey.com>
3809
3810 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3811 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3812 member.
3813 (struct subfile_stack): Remove.
3814 (subfile_stack): Remove.
3815 (push_subfile, pop_subfile, buildsym_init): Update.
3816
ccdac490
TT
38172018-07-16 Tom Tromey <tom@tromey.com>
3818
3819 * buildsym.c (push_subfile): Use gdb_assert.
3820 (pop_subfile): Use gdb_assert.
3821
43130d6f
TT
38222018-07-16 Tom Tromey <tom@tromey.com>
3823
3824 * buildsym.h (merge_symbol_lists): Remove.
3825 * buildsym.c (merge_symbol_lists): Remove.
3826
77d6f1aa
TT
38272018-07-16 Tom Tromey <tom@tromey.com>
3828
3829 * stabsread.c (scan_file_globals): Update comment.
3830 * stabsread.h (scan_file_globals): Move from buildsym.h.
3831 * buildsym.h (scan_file_globals): Move to stabsread.h.
3832
2c722d18
TT
38332018-07-16 Tom Tromey <tom@tromey.com>
3834
3835 * xcoffread.c (xcoff_new_init): Update.
3836 * mipsread.c (mipscoff_new_init): Update.
3837 * mdebugread.c (mdebug_build_psymtabs): Update.
3838 * elfread.c (elf_new_init): Update.
3839 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3840 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3841 * buildsym.h (buildsym_new_init): Don't declare.
3842 * buildsym.c (buildsym_new_init): Remove.
3843
5985ac61
TT
38442018-07-16 Tom Tromey <tom@tromey.com>
3845
3846 * stabsread.h (within_function): Move from buildsym.h.
3847 * stabsread.c (start_stabs): Clear within_function.
3848 * coffread.c (coff_start_symtab): Clear within_function.
3849 * buildsym.h (within_function): Move to stabsread.h.
3850 * buildsym.c (prepare_for_building): Update.
3851
6b84eeb2
TT
38522018-07-16 Tom Tromey <tom@tromey.com>
3853
3854 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3855 * dwarf2read.c (dwarf2_start_symtab): Don't set
3856 processing_gcc_compilation.
3857 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3858
2150c3ef
TT
38592018-07-16 Tom Tromey <tom@tromey.com>
3860
3861 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3862 (next_symbol_text_func): Move from buildsym.h.
3863 * stabsread.c (hashname): Move from buildsym.c.
3864 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3865 (next_symbol_text_func, hashname): Move to stabsread.h.
3866 * buildsym.c: Don't include bcache.h
3867 (hashname): Move to stasbread.c.
3868
0ec44fc0
TT
38692018-07-16 Tom Tromey <tom@tromey.com>
3870
3871 * buildsym.h (context_stack_size): Don't declare.
3872 * buildsym.c (context_stack_size): New global.
3873
81cc346d
TT
38742018-07-16 Tom Tromey <tom@tromey.com>
3875
3876 * dbxread.c (processing_acc_compilation): New global.
3877 * buildsym.h (processing_acc_compilation): Don't declare.
3878
2c99ee5c
TT
38792018-07-16 Tom Tromey <tom@tromey.com>
3880
3881 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3882 * dbxread.c (read_ofile_symtab): Update.
3883 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3884 * buildsym.h (last_source_start_addr): Remove.
3885 (set_last_source_start_addr, get_last_source_start_addr):
3886 Declare.
3887 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3888 parameter.
3889 (struct buildsym_compunit) <m_last_source_start_addr>: New
3890 member.
3891 (prepare_for_building): Remove start_addr parameter.
3892 (start_symtab, restart_symtab, end_symtab_get_static_block)
3893 (end_symtab_with_blockvector): Update.
3894 (set_last_source_start_addr, get_last_source_start_addr): New
3895 functions.
3896
530fedbc
TT
38972018-07-16 Tom Tromey <tom@tromey.com>
3898
3899 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3900 member.
3901 (have_line_numbers): Remove.
3902 (record_line, prepare_for_building, end_symtab_get_static_block)
3903 (augment_type_symtab): Update.
3904
6a976300
TT
39052018-07-16 Tom Tromey <tom@tromey.com>
3906
3907 * buildsym.c (~buildsym_compunit): Free the macro table.
3908 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3909 methods.
3910 <m_pending_macros>: New member.
3911 (pending_macros): Remove.
3912 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3913 (reset_symtab_globals, end_symtab_get_static_block)
3914 (end_symtab_with_blockvector, augment_type_symtab)
3915 (buildsym_init): Update.
3916
c0015d44
TT
39172018-07-16 Tom Tromey <tom@tromey.com>
3918
3919 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3920 parameter.
3921 (buildsym_compunit::set_last_source_file): New method.
3922 <m_last_source_file>: New member.
3923 (prepare_for_building): Remove "name" parameter.
3924 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3925 (last_source_file): Remove.
3926 (set_last_source_file, get_last_source_file): Update.
3927
e62cca7c
TT
39282018-07-16 Tom Tromey <tom@tromey.com>
3929
3930 * buildsym.c (prepare_for_building): Add assert.
3931
905eb0e2
TT
39322018-07-16 Tom Tromey <tom@tromey.com>
3933
3934 * buildsym.c (~buildsym_compunit): Update.
3935 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3936 (start_subfile, patch_subfile_names)
3937 (end_symtab_with_blockvector): Update.
3938
b248663f
TT
39392018-07-16 Tom Tromey <tom@tromey.com>
3940
3941 * buildsym.c (struct buildsym_compunit): Add constructor,
3942 destructor, initializers.
3943 (start_buildsym_compunit): Remove.
3944 (free_buildsym_compunit): Use "delete".
3945 (start_symtab, restart_symtab): Use "new".
3946
ff27d073
SM
39472018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3948
3949 * symfile.c (set_objfile_default_section_offset): Remove struct
3950 keyword.
3951
6a15ecf5
SH
39522018-07-14 Stafford Horne <shorne@gmail.com>
3953
3954 * (Responsible Maintainers): Add myself as or1k maintainer.
3955
027a4c30
TT
39562018-07-13 Tom Tromey <tom@tromey.com>
3957
3958 * symfile.c (set_objfile_default_section_offset): Use extra braces
3959 around initializer.
3960
5c1eda30
AA
39612018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3962
3963 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3964 non-branching basr.
3965
bc7b042b
PW
39662018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3967
3968 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3969 unittests/cli-utils-selftests.c
3970 * unittests/cli-utils-selftests.c: New file.
3971
a14c4daa
PW
39722018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3973
3974 * NEWS: Mention new commands. Mention change to 'thread apply'.
3975
1fe75df7
PW
39762018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3977
3978 * thread.c (thr_try_catch_cmd): New function.
3979 (thread_apply_all_command): Handle qcs flags.
3980 (thread_apply_command): Handle qcs flags.
3981 (taas_command): New function.
3982 (tfaas_command): New function.
3983 (_initialize_thread): Update to setup the new commands 'taas
3984 and 'tfaas'. Change doc string for 'thread apply'.
3985
6a70eb7d
PW
39862018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3987
3988 * stack.c: (trailing_outermost_frame): New function, mostly
3989 extracted from backtrace_command_1.
3990 (leading_innermost_frame): New function.
3991 (backtrace_command_1): Update to call trailing_outermost_frame.
3992 (frame_apply_command_count): New function.
3993 (frame_apply_level_command): New function.
3994 (frame_apply_all_command): New function.
3995 (frame_apply_command): New function.
3996 (faas_command): New function.
3997 (frame_cmd_list): New variable.
3998 (_initialize_stack): Update to setup the new commands 'frame apply'
3999 and 'faas'.
4000
529c08b2
PW
40012018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4002
4003 * cli-utils.c (number_or_range_parser::get_number): Only handle
4004 numbers or convenience var as numbers.
4005 (parse_flags): New function.
4006 (parse_flags_qcs): New function.
4007 (number_or_range_parser::finished): Ensure parsing end is detected
4008 before end of string.
4009 * cli-utils.h (parse_flags): New function.
4010 (parse_flags_qcs): New function.
4011 (number_or_range_parser): Remove m_finished bool.
4012 (number_or_range_parser::skip_range): Set m_in_range to false.
4013
64b58472
SDJ
40142018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4015
4016 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4017 on Windows.
4018
c7ab0aef
SDJ
40192018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4020 Jan Kratochvil <jan.kratochvil@redhat.com>
4021 Paul Fertser <fercerpav@gmail.com>
4022 Tsutomu Seki <sekiriki@gmail.com>
4023 Pedro Alves <palves@redhat.com>
4024
4025 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4026 'unittests/parse-connection-spec-selftests.c'.
4027 (COMMON_SFILES): Add 'common/netstuff.c'.
4028 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4029 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4030 * common/netstuff.c: New file.
4031 * common/netstuff.h: New file.
4032 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4033 (wait_for_connect): Update comment. New parameter
4034 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4035 Use 'sock' directly instead of 'scb->fd'.
4036 (try_connect): New function, with code from 'net_open'.
4037 (net_open): Rewrite main loop to deal with multiple
4038 sockets/addresses. Handle IPv6-style hostnames; implement
4039 support for IPv6 connections.
4040 * unittests/parse-connection-spec-selftests.c: New file.
4041
4c7333b3
PA
40422018-07-11 Pedro Alves <palves@redhat.com>
4043
4044 PR gdb/23377
4045 * remote.c (remote_target::remote_detach_pid): Call
4046 set_current_process.
4047
a6f88f6e
PA
40482018-07-11 Pedro Alves <palves@redhat.com>
4049
4050 * h8300-tdep.c (h8300_gdbarch_init): Remove
4051 set_gdbarch_ecoff_reg_to_regnum calls.
4052
16ff70dd
SDJ
40532018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4054
4055 PR c++/23373
4056 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4057 offsets/sizes for static members of a class/struct.
4058
12863263
AH
40592018-07-11 Alan Hayward <alan.hayward@arm.com>
4060
4061 * target-descriptions.c (tdesc_register_bitsize): Rename.
4062 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4063 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4064 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4065
1123588c
TT
40662018-07-10 Tom Tromey <tom@tromey.com>
4067
4068 * breakpoint.c (moribund_locations): Now static and a
4069 std::vector.
4070 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4071 (build_bpstat_chain, update_global_location_list)
4072 (breakpoint_retire_moribund): Update.
4073 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4074 VEC.
4075
8c49aa89
AB
40762018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4077
4078 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4079 (riscv_register_reggroup_p): Use new function, remove unneeded
4080 parenthesis.
4081 (riscv_push_dummy_call): Extend assert to compare against xlen or
4082 flen based on register type.
4083
42ecac17
AB
40842018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4085
4086 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4087
055303e2
AB
40882018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4089
4090 * remote.c (show_hardware_watchpoint_limit): New function.
4091 (show_hardware_watchpoint_length_limit): New function.
4092 (show_hardware_breakpoint_limit): New function.
4093 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4094 where appropriate, update help text.
4095
8fd32c1c
TT
40962018-07-09 Tom Tromey <tom@tromey.com>
4097
4098 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4099 (CLIBS): Don't mention NAT_CLIBS.
4100
31278b51
TT
41012018-07-09 Tom Tromey <tom@tromey.com>
4102
4103 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4104 (LIBGDB_OBS, clean mostlyclean): Update.
4105 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4106
e5fd1493
TT
41072018-07-09 Tom Tromey <tom@tromey.com>
4108
4109 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4110 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4111 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4112
981e0c0c
TT
41132018-07-09 Tom Tromey <tom@tromey.com>
4114
4115 * Makefile.in (ALLDEPFILES): Remove exec.c.
4116 (COMMON_OBS): Remove exec.o.
4117 (COMMON_SFILES): Add exec.c.
4118
14ccceb2
TT
41192018-07-09 Tom Tromey <tom@tromey.com>
4120
4121 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4122
5d3c3a68
TT
41232018-07-09 Tom Tromey <tom@tromey.com>
4124
4125 * Makefile.in (clean mostlyclean): Remove stamp-version.
4126 (version.c): Depend on stamp-version.
4127 (stamp-version): New rule, from version.c rule.
4128
1998086d
TT
41292018-07-09 Tom Tromey <tom@tromey.com>
4130
4131 * Makefile.in (init.c): Depend on stamp-init.
4132 (stamp-init): New rule, from init.c rule.
4133 (clean mostlyclean): Remove stamp-init.
4134
4c754949
TT
41352018-07-09 Tom Tromey <tom@tromey.com>
4136
4137 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4138 SUBDIR_GCC_COMPILE_SRCS.
4139
6497f1dd
TT
41402018-07-09 Tom Tromey <tom@tromey.com>
4141
4142 * Makefile.in (init.c): Remove some unused sed rules.
4143
97a34db9
TT
41442018-07-09 Tom Tromey <tom@tromey.com>
4145
4146 * Makefile.in (TSOBS): Remove.
4147 (INIT_FILES): Update.
4148 (LIBGDB_OBS): Update.
4149 (COMMON_SFILES): Add inflow.c.
4150 (SFILES): Remove inflow.c.
4151
25289ac1
JK
41522018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4153
4154 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4155
e83f4d97
SM
41562018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4157
4869c585
SM
4158 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4159 get_saveloc_name, is_signal_frame_name, step_name,
4160 init_remote_name, create_addr_space_name,
4161 destroy_addr_space_name, search_unwind_table_name,
4162 find_dyn_list_name): Constify.
e83f4d97 4163
6821842f
SM
41642018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4165
4166 * darwin-nat.c (darwin_pthread_kill): New function.
4167 (darwin_resume_thread): Use darwin_pthread_kill.
4168
c530603c
TV
41692018-07-05 Tom de Vries <tdevries@suse.de>
4170
4171 * macroexp.c (macro_buffer) <operator=>: New member function.
4172
a7d0f0f0
TT
41732018-07-04 Tom Tromey <tom@tromey.com>
4174
4175 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4176
6242c6a6
SM
41772018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4178
4179 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4180 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4181 * maint.c: Likewise.
4182 * top.c: Likewise.
4183
4e5b2f89
JB
41842018-07-04 Joel Brobecker <brobecker@adacore.com>
4185
4186 * NEWS: Create a new section for the next release branch.
4187 Rename the section of the current branch, now that it has
4188 been cut.
4189
538ccc4a
JB
41902018-07-04 Joel Brobecker <brobecker@adacore.com>
4191
4192 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4193 * version.in: Bump version to 8.2.50.DATE-git.
4194
1b919490
VB
41952018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4196 Pedro Alves <palves@redhat.com>
4197
4198 * linux-nat.c (linux_init_ptrace): Rename to ...
4199 (linux_init_ptrace_procfs): ... this. Call
4200 linux_proc_init_warnings.
4201 (linux_nat_target::post_attach)
4202 (linux_nat_target::post_startup_inferior): Adjust.
4203 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4204 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4205
1ea5da02
TV
42062018-07-04 Tom de Vries <tdevries@suse.de>
4207
4208 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4209 check ...
4210 (read_comp_unit_head): ... here.
4211
f51e0e20
TT
42122018-07-03 Tom Tromey <tom@tromey.com>
4213
4214 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4215 (stop_tracing, tstatus_command)
4216 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4217 (print_one_static_tracepoint_marker): Update.
4218 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4219 std::vector.
4220 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4221 VEC.
4222 (all_tracepoints, static_tracepoints_here): Return std::vector.
4223
d7e15655
TT
42242018-07-03 Tom Tromey <tom@tromey.com>
4225
4226 * common/ptid.c (ptid_equal): Remove.
4227 * common/ptid.h (ptid_equal): Don't declare.
4228 * ada-tasks.c: Update.
4229 * breakpoint.c: Update.
4230 * common/agent.c: Update.
4231 * corelow.c: Update.
4232 * darwin-nat-info.c: Update.
4233 * darwin-nat.c: Update.
4234 * dcache.c: Update.
4235 * dtrace-probe.c: Update.
4236 * dummy-frame.c: Update.
4237 * fbsd-nat.c: Update.
4238 * frame.c: Update.
4239 * gdbthread.h: Update.
4240 * gnu-nat.c: Update.
4241 * go32-nat.c: Update.
4242 * inf-loop.c: Update.
4243 * inf-ptrace.c: Update.
4244 * infcall.c: Update.
4245 * infcmd.c: Update.
4246 * inflow.c: Update.
4247 * infrun.c: Update.
4248 * linux-fork.c: Update.
4249 * linux-nat.c: Update.
4250 * linux-thread-db.c: Update.
4251 * mi/mi-cmd-var.c: Update.
4252 * mi/mi-interp.c: Update.
4253 * mi/mi-main.c: Update.
4254 * nto-procfs.c: Update.
4255 * ppc-linux-tdep.c: Update.
4256 * procfs.c: Update.
4257 * python/py-inferior.c: Update.
4258 * python/py-record-btrace.c: Update.
4259 * python/py-record.c: Update.
4260 * ravenscar-thread.c: Update.
4261 * regcache.c: Update.
4262 * remote-sim.c: Update.
4263 * remote.c: Update.
4264 * sol-thread.c: Update.
4265 * solib.c: Update.
4266 * target.c: Update.
4267 * tui/tui-stack.c: Update.
4268 * varobj.c: Update.
4269 * windows-nat.c: Update.
4270 * windows-tdep.c: Update.
4271
26a57c92
TT
42722018-07-03 Tom Tromey <tom@tromey.com>
4273
4274 * common/ptid.c (ptid_match): Remove.
4275 * common/ptid.h (ptid_match): Don't declare.
4276 * fbsd-nat.c: Update.
4277 * infcmd.c: Update.
4278 * infrun.c: Update.
4279 * linux-nat.c: Update.
4280 * record-btrace.c: Update.
4281 * regcache.c: Update.
4282 * remote.c: Update.
4283
d2a107e3
TT
42842018-07-03 Tom Tromey <tom@tromey.com>
4285
4286 * common/ptid.c (ptid_tid_p): Remove.
4287 * common/ptid.h (ptid_tid_p): Don't declare.
4288 * sol-thread.c: Update.
4289
15a9e13e
TT
42902018-07-03 Tom Tromey <tom@tromey.com>
4291
4292 * common/ptid.c (ptid_lwp_p): Remove.
4293 * common/ptid.h (ptid_lwp_p): Don't declare.
4294 * fbsd-nat.c: Update.
4295 * linux-nat.c: Update.
4296 * nat/linux-procfs.c: Update.
4297 * nat/x86-linux-dregs.c: Update.
4298 * sol-thread.c: Update.
4299
0e998d96
TT
43002018-07-03 Tom Tromey <tom@tromey.com>
4301
4302 * common/ptid.c (ptid_is_pid): Remove.
4303 * common/ptid.h (ptid_is_pid): Don't declare.
4304 * infrun.c: Update.
4305 * linux-nat.c: Update.
4306 * mi/mi-interp.c: Update.
4307 * remote.c: Update.
4308 * thread.c: Update.
4309
cc6bcb54
TT
43102018-07-03 Tom Tromey <tom@tromey.com>
4311
4312 * common/ptid.c (ptid_get_tid): Remove.
4313 * common/ptid.h (ptid_get_tid): Don't declare.
4314 * ada-tasks.c: Update.
4315 * aix-thread.c: Update.
4316 * bsd-uthread.c: Update.
4317 * darwin-nat.c: Update.
4318 * fbsd-nat.c: Update.
4319 * i386-darwin-nat.c: Update.
4320 * infrun.c: Update.
4321 * linux-tdep.c: Update.
4322 * nto-procfs.c: Update.
4323 * ppc-ravenscar-thread.c: Update.
4324 * python/py-infthread.c: Update.
4325 * ravenscar-thread.c: Update.
4326 * sol-thread.c: Update.
4327 * sparc-ravenscar-thread.c: Update.
4328 * windows-nat.c: Update.
4329
e38504b3
TT
43302018-07-03 Tom Tromey <tom@tromey.com>
4331
4332 * common/ptid.c (ptid_get_lwp): Remove.
4333 * common/ptid.h (ptid_get_lwp): Don't declare.
4334 * aarch64-linux-nat.c: Update.
4335 * ada-tasks.c: Update.
4336 * aix-thread.c: Update.
4337 * amd64-linux-nat.c: Update.
4338 * arm-linux-nat.c: Update.
4339 * corelow.c: Update.
4340 * fbsd-nat.c: Update.
4341 * fbsd-tdep.c: Update.
4342 * gnu-nat.c: Update.
4343 * i386-cygwin-tdep.c: Update.
4344 * i386-gnu-nat.c: Update.
4345 * i386-linux-nat.c: Update.
4346 * ia64-linux-nat.c: Update.
4347 * inf-ptrace.c: Update.
4348 * infrun.c: Update.
4349 * linux-fork.c: Update.
4350 * linux-nat.c: Update.
4351 * linux-tdep.c: Update.
4352 * linux-thread-db.c: Update.
4353 * mips-linux-nat.c: Update.
4354 * nat/aarch64-linux-hw-point.c: Update.
4355 * nat/aarch64-linux.c: Update.
4356 * nat/linux-btrace.c: Update.
4357 * nat/linux-osdata.c: Update.
4358 * nat/linux-procfs.c: Update.
4359 * nat/x86-linux-dregs.c: Update.
4360 * obsd-nat.c: Update.
4361 * ppc-fbsd-nat.c: Update.
4362 * ppc-linux-nat.c: Update.
4363 * procfs.c: Update.
4364 * python/py-infthread.c: Update.
4365 * ravenscar-thread.c: Update.
4366 * remote.c: Update.
4367 * s390-linux-nat.c: Update.
4368 * sol-thread.c: Update.
4369 * sol2-tdep.c: Update.
4370 * spu-linux-nat.c: Update.
4371 * x86-linux-nat.c: Update.
4372 * xtensa-linux-nat.c: Update.
4373
e99b03dc
TT
43742018-07-03 Tom Tromey <tom@tromey.com>
4375
4376 * common/ptid.c (ptid_get_pid): Remove.
4377 * common/ptid.h (ptid_get_pid): Don't declare.
4378 * aarch64-linux-nat.c: Update.
4379 * ada-lang.c: Update.
4380 * aix-thread.c: Update.
4381 * alpha-bsd-nat.c: Update.
4382 * amd64-fbsd-nat.c: Update.
4383 * amd64-linux-nat.c: Update.
4384 * arm-linux-nat.c: Update.
4385 * arm-nbsd-nat.c: Update.
4386 * auxv.c: Update.
4387 * break-catch-syscall.c: Update.
4388 * breakpoint.c: Update.
4389 * bsd-uthread.c: Update.
4390 * corelow.c: Update.
4391 * ctf.c: Update.
4392 * darwin-nat.c: Update.
4393 * fbsd-nat.c: Update.
4394 * fbsd-tdep.c: Update.
4395 * gcore.c: Update.
4396 * gnu-nat.c: Update.
4397 * hppa-nbsd-nat.c: Update.
4398 * hppa-obsd-nat.c: Update.
4399 * i386-fbsd-nat.c: Update.
4400 * ia64-linux-nat.c: Update.
4401 * inf-ptrace.c: Update.
4402 * infcmd.c: Update.
4403 * inferior.c: Update.
4404 * inferior.h: Update.
4405 * inflow.c: Update.
4406 * infrun.c: Update.
4407 * linux-fork.c: Update.
4408 * linux-nat.c: Update.
4409 * linux-tdep.c: Update.
4410 * linux-thread-db.c: Update.
4411 * m68k-bsd-nat.c: Update.
4412 * mi/mi-interp.c: Update.
4413 * mi/mi-main.c: Update.
4414 * mips-linux-nat.c: Update.
4415 * mips-nbsd-nat.c: Update.
4416 * mips64-obsd-nat.c: Update.
4417 * nat/aarch64-linux-hw-point.c: Update.
4418 * nat/aarch64-linux.c: Update.
4419 * nat/linux-btrace.c: Update.
4420 * nat/linux-osdata.c: Update.
4421 * nat/linux-procfs.c: Update.
4422 * nat/x86-linux-dregs.c: Update.
4423 * nto-procfs.c: Update.
4424 * obsd-nat.c: Update.
4425 * ppc-linux-nat.c: Update.
4426 * ppc-nbsd-nat.c: Update.
4427 * ppc-obsd-nat.c: Update.
4428 * proc-service.c: Update.
4429 * procfs.c: Update.
4430 * python/py-inferior.c: Update.
4431 * python/py-infthread.c: Update.
4432 * ravenscar-thread.c: Update.
4433 * record.c: Update.
4434 * remote-sim.c: Update.
4435 * remote.c: Update.
4436 * rs6000-nat.c: Update.
4437 * s390-linux-nat.c: Update.
4438 * sh-nbsd-nat.c: Update.
4439 * sol-thread.c: Update.
4440 * sparc-nat.c: Update.
4441 * sparc64-tdep.c: Update.
4442 * spu-linux-nat.c: Update.
4443 * spu-tdep.c: Update.
4444 * target-debug.h: Update.
4445 * target.c: Update.
4446 * thread.c: Update.
4447 * tid-parse.c: Update.
4448 * tracefile-tfile.c: Update.
4449 * vax-bsd-nat.c: Update.
4450 * windows-nat.c: Update.
4451 * x86-linux-nat.c: Update.
4452 * x86-nat.c: Update.
4453
f2907e49
TT
44542018-07-03 Tom Tromey <tom@tromey.com>
4455
4456 * common/ptid.c (pid_to_ptid): Remove.
4457 * common/ptid.h (pid_to_ptid): Don't declare.
4458 * aix-thread.c: Update.
4459 * arm-linux-nat.c: Update.
4460 * common/ptid.c: Update.
4461 * common/ptid.h: Update.
4462 * corelow.c: Update.
4463 * ctf.c: Update.
4464 * darwin-nat.c: Update.
4465 * fbsd-nat.c: Update.
4466 * fork-child.c: Update.
4467 * gnu-nat.c: Update.
4468 * go32-nat.c: Update.
4469 * inf-ptrace.c: Update.
4470 * infcmd.c: Update.
4471 * inferior.c: Update.
4472 * infrun.c: Update.
4473 * linux-fork.c: Update.
4474 * linux-nat.c: Update.
4475 * nat/aarch64-linux-hw-point.c: Update.
4476 * nat/fork-inferior.c: Update.
4477 * nat/x86-linux-dregs.c: Update.
4478 * nto-procfs.c: Update.
4479 * obsd-nat.c: Update.
4480 * procfs.c: Update.
4481 * progspace.c: Update.
4482 * remote.c: Update.
4483 * rs6000-nat.c: Update.
4484 * s390-linux-nat.c: Update.
4485 * sol-thread.c: Update.
4486 * spu-linux-nat.c: Update.
4487 * target.c: Update.
4488 * top.c: Update.
4489 * tracefile-tfile.c: Update.
4490 * windows-nat.c: Update.
4491
fd79271b
TT
44922018-07-03 Tom Tromey <tom@tromey.com>
4493
4494 * common/ptid.h (ptid_build): Don't declare.
4495 * common/ptid.c (ptid_build): Remove.
4496 * aix-thread.c: Update.
4497 * bsd-kvm.c: Update.
4498 * bsd-uthread.c: Update.
4499 * common/agent.c: Update.
4500 * common/ptid.c: Update.
4501 * common/ptid.h: Update.
4502 * corelow.c: Update.
4503 * darwin-nat.c: Update.
4504 * fbsd-nat.c: Update.
4505 * gnu-nat.c: Update.
4506 * linux-fork.c: Update.
4507 * linux-nat.c: Update.
4508 * linux-thread-db.c: Update.
4509 * nat/linux-osdata.c: Update.
4510 * nat/linux-procfs.c: Update.
4511 * nto-procfs.c: Update.
4512 * obsd-nat.c: Update.
4513 * proc-service.c: Update.
4514 * procfs.c: Update.
4515 * ravenscar-thread.c: Update.
4516 * remote-sim.c: Update.
4517 * remote.c: Update.
4518 * sol-thread.c: Update.
4519 * target.c: Update.
4520 * windows-nat.c: Update.
4521
057302ce
TT
45222018-07-03 Tom Tromey <tom@tromey.com>
4523
4524 * infrun.c (follow_exec): Use exit_inferior_silent.
4525 * inferior.c (exit_inferior_num_silent): Remove.
4526 * inferior.h (exit_inferior_num_silent): Don't declare.
4527
a50c11c6
TT
45282018-07-03 Tom Tromey <tom@tromey.com>
4529
4530 PR cli/23340:
4531 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4532 inferior_ptid on error.
4533
471b9d15
MR
45342018-07-02 Maciej W. Rozycki <macro@mips.com>
4535 Simon Marchi <simon.marchi@polymtl.ca>
4536
4537 PR tdep/8282
4538 * disasm.h (gdb_disassembler): Add
4539 `m_disassembler_options_holder'. member
4540 * disasm.c (get_all_disassembler_options): New function.
4541 (gdb_disassembler::gdb_disassembler): Use it.
4542 (gdb_buffered_insn_length_init_dis): Likewise.
4543 (gdb_buffered_insn_length): Adjust accordingly.
4544 (set_disassembler_options): Handle options with arguments.
4545 (show_disassembler_options_sfunc): Likewise. Add a leading new
4546 line if showing options with descriptions.
4547 (disassembler_options_completer): Adapt to using the
4548 `disasm_options_and_args_t' structure.
4549 * mips-tdep.c (mips_disassembler_options): New variable.
4550 (mips_disassembler_options_o32): Likewise.
4551 (mips_disassembler_options_n32): Likewise.
4552 (mips_disassembler_options_n64): Likewise.
4553 (gdb_print_insn_mips): Don't set `disassembler_options'.
4554 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4555 functions.
4556 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4557 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4558 `gdbarch_disassembler_options_implicit' and
4559 `gdbarch_valid_disassembler_options'.
4560 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4561 `disasm_options_and_args_t' structure.
4562 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4563 method.
4564 (valid_disassembler_options): Switch from `disasm_options_t' to
4565 the `disasm_options_and_args_t' structure.
4566 * NEWS: Document `set disassembler-options' support for the MIPS
4567 target.
4568 * gdbarch.h: Regenerate.
4569 * gdbarch.c: Regenerate.
4570
41823f29
SH
45712018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4572
4573 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4574
41206e32
JB
45752018-06-29 Joel Brobecker <brobecker@adacore.com>
4576
4577 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4578 parameter in call to amd64_target_description.
4579 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4580 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4581 (amd64fbsd_init_abi): Likewise.
4582 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4583 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4584 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4585 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4586
de52b960
PA
45872018-06-29 Pedro Alves <palves@redhat.com>
4588
4589 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4590 "segments" parameter.
4591 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4592 (_initialize_amd64_tdep): Update call to
4593 amd64_create_target_description.
4594 (amd64_target_description): Add "segments" parameter. Adjust
4595 the implementation to use it.
4596 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4597 call to amd64_create_target_description.
4598 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4599 * gdb/arch/amd64.h (amd64_create_target_description): Add
4600 "segments" register.
4601 * gdb/arch/amd64.c (amd64_create_target_description): Add
4602 "segments" parameter. Call create_feature_i386_64bit_segments
4603 only if SEGMENTS is true.
4604 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4605 call to amd64_create_target_description.
4606
75acb486
PA
46072018-06-29 Pedro Alves <palves@redhat.com>
4608
4609 * thread.c (thread_target_id_str): New, factored out from ...
4610 (print_thread_info_1): ... here. Use it to compute the max
4611 "Target Id" column width.
4612
c76a8ea3
PA
46132018-06-29 Pedro Alves <palves@redhat.com>
4614
4615 * remote.c (remote_target::extra_thread_info): Delete
4616 'display_buf' and 'n' locals. from the cache, regardless of
4617 packet mechanims is in use. Use cache for qThreadExtra and qP
4618 methods too.
4619
cd2bb709
PA
46202018-06-29 Pedro Alves <palves@redhat.com>
4621
4622 * blockframe.c (find_pc_sect_containing_function): New function.
4623 * breakpoint.c (print_breakpoint_location): Don't call
4624 find_pc_sect_function.
4625 * linespec.c (create_sals_line_offset): Record the location's
4626 symbol in the sal.
4627 * linespec.c (convert_address_location_to_sals): Fill in sal's
4628 symbol with find_pc_sect_containing_function.
4629 * symtab.c (find_function_start_sal): Rename to ...
4630 (find_function_start_sal_1): ... this.
4631 (find_function_start_sal): Reimplement as wrapper around
4632 find_function_start_sal_1, and use
4633 find_pc_sect_containing_function to fill in the sal's symbol.
4634 (find_function_start_sal(symbol*, bool)): Adjust.
4635 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4636 comments.
4637 (find_pc_sect_containing_function): Declare.
4638
991ff292
PA
46392018-06-29 Pedro Alves <palves@redhat.com>
4640
4641 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4642 true if the the location has no symbol.
4643
44cee4fd
TT
46442018-06-28 Tom Tromey <tom@tromey.com>
4645
4646 * NEWS: Mention --enable-codesign.
4647 * silent-rules.mk (ECHO_SIGN): New variable.
4648 * configure.ac: Add --enable-codesign.
4649 * configure: Rebuild.
4650 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4651 (gdb$(EXEEXT)): Optionally invoke codesign.
4652
f2ffa92b
PA
46532018-06-28 Pedro Alves <palves@redhat.com>
4654
4655 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4656 comments.
4657 (switch_to_thread_no_regs): Adjust comment.
4658 * infcmd.c (stop_pc): Delete.
4659 (post_create_inferior, info_program_command): Replace references
4660 to stop_pc with references to thread_info->suspend.stop_pc.
4661 * inferior.h (stop_pc): Delete declaration.
4662 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4663 (handle_inferior_event_1, handle_signal_stop)
4664 (process_event_stop_test, keep_going_stepped_thread)
4665 (handle_step_into_function, handle_step_into_function_backward)
4666 (print_stop_location): Replace references to stop_pc with
4667 references to thread_info->suspend.stop_pc.
4668 (struct infcall_suspend_state) <stop_pc>: Delete field.
4669 (save_infcall_suspend_state, restore_infcall_suspend_state):
4670 Remove references to inf_stat->stop_pc.
4671 * linux-fork.c (fork_load_infrun_state): Likewise.
4672 * record-btrace.c (record_btrace_set_replay): Likewise.
4673 * record-full.c (record_full_goto_entry): Likewise.
4674 * remote.c (print_one_stopped_thread): Likewise.
4675 * target.c (target_resume): Extend comment.
4676 * thread.c (set_executing_thread): New.
4677 (set_executing): Use it.
4678 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4679 Remove references to stop_pc.
4680
ecdc3a72
PA
46812018-06-28 Pedro Alves <palves@redhat.com>
4682
4683 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4684 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4685
d95d3aef
TT
46862018-06-28 Tom Tromey <tom@tromey.com>
4687
4688 * coffread.c (coff_symfile_finish): Update.
4689 * xcoffread.c (xcoff_symfile_finish): Update.
4690 * elfread.c (elf_symfile_finish): Update.
4691 * symfile.h (dwarf2_free_objfile): Don't declare.
4692 * dwarf2read.c (_initialize_dwarf2_read): Use
4693 register_objfile_data_with_cleanup.
4694 (dwarf2_free_objfile): Now static. Change signature.
4695
291f9a96
PT
46962018-06-28 Petr Tesarik <ptesarik@suse.cz>
4697
4698 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4699 option "-o" to add-symbol-file-load to add an offset to each
4700 section's load address.
4701 * symfile.c (set_objfile_default_section_offset): New function.
4702
d81a3eaf
PT
47032018-06-28 Petr Tesarik <ptesarik@suse.cz>
4704
4705 * symfile.c (add_symbol_file_command): Make sure that sections
4706 with the same name are sorted in the same order.
4707
ed6dfe51
PT
47082018-06-28 Petr Tesarik <ptesarik@suse.cz>
4709
4710 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4711 require the second argument. If omitted, load sections at the
4712 addresses specified in the file.
4713
d4d429d5
PT
47142018-06-28 Petr Tesarik <ptesarik@suse.cz>
4715
4716 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4717 (_initialize_symfile): Add option "-o" to symbol-file to add an
4718 offset to each section of the symbol file.
4719
39b27ab6
PT
47202018-06-28 Petr Tesarik <ptesarik@suse.cz>
4721
4722 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4723
41827fc3
TT
47242018-06-27 Tom Tromey <tom@tromey.com>
4725
4726 * stack.c (_initialize_stack): Update "func" help text.
4727
0c6aef22
TT
47282018-06-27 Tom Tromey <tom@tromey.com>
4729
4730 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4731 std::vector.
4732 (unwind_infopy_str, pyuw_create_unwind_info)
4733 (unwind_infopy_add_saved_register, pyuw_sniffer)
4734 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4735 Update.
4736 (struct saved_reg): Add constructor.
4737 <value>: Now a gdbpy_ref<>.
4738
63177289
TT
47392018-06-27 Tom Tromey <tom@tromey.com>
4740
4741 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4742
e76f78a0
SM
47432018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4744
4745 * gdb-gdb.py.in: Format using autopep8.
4746
9a14af7b
SM
47472018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4748
4749 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4750 (type_lookup_function): Recognize CORE_ADDR values.
4751
189366cd
SM
47522018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4753
4754 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4755 print tag_name.
4756
68ad5fb9
SM
47572018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4758
4759 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4760 <__lt__>: Add.
4761
141ec9f6
SM
47622018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4763
4764 * gdb-gdb.py: Move to...
4765 * gdb-gdb.py.in: ... here.
4766 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4767 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4768 dependencies.
4769 (distclean): Remove gdb-gdb.py when cleaning.
4770 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4771 * configure: Re-generate.
4772
4c4e7ad4
PA
47732018-06-27 Pedro Alves <palves@redhat.com>
4774
4775 * proc-service.c (get_ps_regcache): New.
4776 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4777 (ps_lsetfpregs): Use it.
4778
7ab6656f
OJ
47792018-06-27 Omair Javaid <omair.javaid@linaro.org>
4780
4781 PR gdb/21695
4782 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4783 (dwarf_decode_lines_1): Adjust.
4784
bd583225
SM
47852018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4786
4787 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4788 override.
4789 <info_proc>: Likewise.
4790
9a325b7b
JB
47912018-06-26 Joel Brobecker <brobecker@adacore.com>
4792
4793 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4794 to windows_fetch_one_register, and only handle the case of
4795 fetching one register. Move the code that reloads the context
4796 and iterates over all registers if R is negative to...
4797 (windows_nat_target::fetch_registers): ... here.
4798 (do_windows_store_inferior_registers): Rename to
4799 windows_store_one_register, and only handle the case of storing
4800 one register. Move the code that handles the case where r is
4801 negative to...
4802 (windows_nat_target::store_registers) ... here.
4803
a33ccfc7
TT
48042018-06-26 Tom Tromey <tom@tromey.com>
4805
4806 PR rust/22574:
4807 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4808 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4809 Update.
4810 (rust_internal_print_type): Add podata parameter.
4811 (rust_print_type): Update.
4812
e0c547d1
TT
48132018-06-26 Tom Tromey <tom@tromey.com>
4814
4815 * typeprint.h (struct print_offset_data) <update, finish,
4816 maybe_print_hole>: New methods.
4817 <indentation>: New constant.
4818 * typeprint.c (print_offset_data::indentation): Define.
4819 (print_offset_data::maybe_print_hole, print_offset_data::update)
4820 (print_offset_data::finish): Move from c-typeprint.c and rename.
4821 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4822 (print_spaces_filtered_with_print_options): Update.
4823 (c_print_type_union_field_offset, maybe_print_hole)
4824 (c_print_type_struct_field_offset): Move to typeprint.c and
4825 rename.
4826 (c_type_print_base_struct_union): Update.
4827
75cbc781
PA
48282018-06-25 Pedro Alves <palves@redhat.com>
4829
4830 * gdbthread.h (thread_info_ref, delete_thread)
4831 (delete_thread_silent, first_thread_of_inferior)
4832 (any_thread_of_inferior, switch_to_thread)
4833 (enable_thread_stack_temporaries)
4834 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4835 (get_last_thread_stack_temporary)
4836 (value_in_thread_stack_temporaries, can_access_registers_thread):
4837 Spell out "struct thread_info" instead of just "thread_info".
4838 * inferior.h (notice_new_inferior): Likewise.
4839
b7a08269
PA
48402018-06-25 Pedro Alves <palves@redhat.com>
4841
4842 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4843 pass thread_info pointer to delete_thread.
4844 (windows_nat_target::detach): Pass inferior pointer to
4845 detach_inferior.
4846 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4847 delete_thread.
4848 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4849 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4850 and pass a thread_info pointer to delete_thread.
4851 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4852 pass thread_info pointer to delete_thread.
4853 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4854 delete_thread_silent call.
4855 * procfs.c (procfs_target::detach): Pass inferior pointer to
4856 detach_inferior.
4857 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4858 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4859 delete_thread_silent call.
4860 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4861 pass thread_info pointer to delete_thread.
4862 (windows_nat_target::detach): Pass inferior pointer to
4863 delete_inferior.
4864
8e7767e3
AH
48652018-06-22 Alan Hayward <alan.hayward@arm.com>
4866
4867 * regcache.c (readable_regcache::read_part): Fix asserts.
4868 (reg_buffer::raw_collect_part): New function.
4869 (regcache::write_part): Fix asserts.
4870 (reg_buffer::raw_supply_part): New function.
4871 (regcache::transfer_regset_register): New helper function.
4872 (regcache::transfer_regset): Call new functions.
4873 (regcache_supply_regset): Use gdb_byte*.
4874 (regcache::supply_regset): Likewise.
4875 (regcache_collect_regset): Likewise.
4876 (regcache::collect_regset): Likewise.
4877 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4878 (reg_buffer::raw_supply_part): Likewise.
4879 (regcache::transfer_regset_register): Likewise.
4880 (regcache::transfer_regset): Use gdb_byte*.
4881
bfd60e34
AH
48822018-06-22 Alan Hayward <alan.hayward@arm.com>
4883
4884 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4885
00431a78
PA
48862018-06-21 Pedro Alves <palves@redhat.com>
4887
4888 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4889 instead of a ptid_t. All callers adjusted.
4890 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4891 adjusted.
4892 (print_ada_task_info, display_current_task_id, task_command_1):
4893 Adjust.
4894 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4895 inferior_thread.
4896 (breakpoint_kind): Adjust.
4897 (remove_breakpoints_pid): Rename to ...
4898 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4899 pointer. All callers adjusted.
4900 (bpstat_clear_actions): Use inferior_thread.
4901 (get_bpstat_thread): New.
4902 (bpstat_do_actions): Use it.
4903 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4904 to take a thread_info pointer. All callers adjusted.
4905 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4906 (breakpoint_re_set_thread): Use inferior_thread.
4907 * breakpoint.h (struct inferior): Forward declare.
4908 (bpstat_stop_status): Update.
4909 (remove_breakpoints_pid): Delete.
4910 (remove_breakpoints_inf): New.
4911 * bsd-uthread.c (bsd_uthread_target::wait)
4912 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4913 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4914 (maint_btrace_packet_history_cmd)
4915 (maint_btrace_clear_packet_history_cmd): Adjust.
4916 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4917 inferior_thread.
4918 * cli/cli-interp.c: Include "inferior.h".
4919 * common/refcounted-object.h (struct
4920 refcounted_object_ref_policy): New.
4921 * compile/compile-object-load.c: Include gdbthread.h.
4922 (store_regs): Use inferior_thread.
4923 * corelow.c (core_target::close): Use current_inferior.
4924 (core_target_open): Adjust to use first_thread_of_inferior and use
4925 the current inferior.
4926 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4927 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4928 <thread>: ... this new field. All references adjusted.
4929 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4930 Take a thread_info pointer instead of a ptid_t.
4931 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4932 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4933 thread_info pointer instead of a ptid_t.
4934 * elfread.c: Include "inferior.h".
4935 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4936 Use inferior_thread.
4937 * eval.c (evaluate_subexp): Likewise.
4938 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4939 inferior_thread.
4940 * gdb_proc_service.h (struct thread_info): Forward declare.
4941 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4942 <thread>: ... this new field. All references adjusted.
4943 * gdbarch.h, gdbarch.c: Regenerate.
4944 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4945 'thread' parameter. All implementations and callers adjusted.
4946 * gdbthread.h (thread_info) <set_running>: New method.
4947 (delete_thread, delete_thread_silent): Take a thread_info pointer
4948 instead of a ptid.
4949 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4950 (first_thread_of_process): Delete, replaced by ...
4951 (first_thread_of_inferior): ... this new function. All callers
4952 adjusted.
4953 (any_live_thread_of_process): Delete, replaced by ...
4954 (any_live_thread_of_inferior): ... this new function. All callers
4955 adjusted.
4956 (switch_to_thread, switch_to_no_thread): Declare.
4957 (is_executing): Delete.
4958 (enable_thread_stack_temporaries): Update comment.
4959 <enable_thread_stack_temporaries>: Take a thread_info pointer
4960 instead of a ptid_t. Incref the thread.
4961 <~enable_thread_stack_temporaries>: Decref the thread.
4962 <m_ptid>: Delete
4963 <m_thr>: New.
4964 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4965 (get_last_thread_stack_temporary)
4966 (value_in_thread_stack_temporaries, can_access_registers_thread):
4967 Take a thread_info pointer instead of a ptid_t. All callers
4968 adjusted.
4969 * infcall.c (get_call_return_value): Use inferior_thread.
4970 (run_inferior_call): Work with thread pointers instead of ptid_t.
4971 (call_function_by_hand_dummy): Work with thread pointers instead
4972 of ptid_t. Use thread_info_ref.
4973 * infcmd.c (proceed_thread_callback): Access thread's state
4974 directly.
4975 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4976 access thread's state directly.
4977 (continue_command): Use inferior_thread.
4978 (info_program_command): Use find_thread_ptid and access thread
4979 state directly.
4980 (proceed_after_attach_callback): Use thread state directly.
4981 (notice_new_inferior): Take a thread_info pointer instead of a
4982 ptid_t. All callers adjusted.
4983 (exit_inferior): Take an inferior pointer instead of a pid. All
4984 callers adjusted.
4985 (exit_inferior_silent): New.
4986 (detach_inferior): Delete.
4987 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4988 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4989 (detach_inferior_command, kill_inferior_command): Use
4990 find_inferior_id instead of valid_gdb_inferior_id and
4991 gdb_inferior_id_to_pid.
4992 (inferior_command): Use inferior and thread pointers.
4993 * inferior.h (struct thread_info): Forward declare.
4994 (notice_new_inferior): Take a thread_info pointer instead of a
4995 ptid_t. All callers adjusted.
4996 (detach_inferior): Delete declaration.
4997 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4998 instead of a pid. All callers adjusted.
4999 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5000 (valid_gdb_inferior_id): Delete.
5001 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5002 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5003 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5004 ...
5005 <inf>: ... this new field.
5006 <step_ptid>: Delete, replaced by ...
5007 <step_thread>: ... this new field.
5008 (get_displaced_stepping_state): Take an inferior pointer instead
5009 of a pid. All callers adjusted.
5010 (displaced_step_in_progress_any_inferior): Adjust.
5011 (displaced_step_in_progress_thread): Take a thread pointer instead
5012 of a ptid_t. All callers adjusted.
5013 (displaced_step_in_progress, add_displaced_stepping_state): Take
5014 an inferior pointer instead of a pid. All callers adjusted.
5015 (get_displaced_step_closure_by_addr): Adjust.
5016 (remove_displaced_stepping_state): Take an inferior pointer
5017 instead of a pid. All callers adjusted.
5018 (displaced_step_prepare_throw, displaced_step_prepare)
5019 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5020 All callers adjusted.
5021 (start_step_over): Adjust.
5022 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5023 displaced step queue.
5024 (do_target_resume): Adjust.
5025 (fetch_inferior_event): Use inferior_thread.
5026 (context_switch, get_inferior_stop_soon): Take an
5027 execution_control_state pointer instead of a ptid_t. All callers
5028 adjusted.
5029 (switch_to_thread_cleanup): Delete.
5030 (stop_all_threads): Use scoped_restore_current_thread.
5031 * inline-frame.c: Include "gdbthread.h".
5032 (inline_state) <inline_state>: Take a thread pointer instead of a
5033 ptid_t. All callers adjusted.
5034 <ptid>: Delete, replaced by ...
5035 <thread>: ... this new field.
5036 (find_inline_frame_state): Take a thread pointer instead of a
5037 ptid_t. All callers adjusted.
5038 (skip_inline_frames, step_into_inline_frame)
5039 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5040 pointer instead of a ptid_t. All callers adjusted.
5041 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5042 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5043 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5044 pointers directly.
5045 * linux-nat.c (get_detach_signal): Likewise.
5046 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5047 (thread_db_notice_clone): Adjust.
5048 (thread_db_find_new_threads_silently)
5049 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5050 a thread pointer instead of a ptid_t. All callers adjusted.
5051 * mi/mi-cmd-var.c: Include "inferior.h".
5052 (mi_cmd_var_update_iter): Update to use thread pointers.
5053 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5054 inferior directly.
5055 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5056 out to ...
5057 (mi_output_running): ... this new function.
5058 (mi_on_resume_1): Adjust to use it.
5059 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5060 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5061 directly.
5062 (interrupt_thread_callback): : Adjust to use thread and inferior
5063 pointers.
5064 * proc-service.c: Include "gdbthread.h".
5065 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5066 * progspace-and-thread.c: Include "inferior.h".
5067 * progspace.c: Include "inferior.h".
5068 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5069 hold a reference to an inferior_object.
5070 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5071 inferior_thread.
5072 * python/py-inferior.c (struct inferior_object): Give the type a
5073 tag name instead of a typedef.
5074 (python_on_normal_stop): No need to check if the current thread is
5075 listed.
5076 (inferior_to_inferior_object): Change return type to
5077 inferior_object. All callers adjusted.
5078 (find_thread_object): Delete, bits factored out to ...
5079 (thread_to_thread_object): ... this new function.
5080 * python/py-infthread.c (create_thread_object): Use
5081 inferior_to_inferior_object.
5082 (thpy_is_stopped): Use thread pointer directly.
5083 (gdbpy_selected_thread): Use inferior_thread.
5084 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5085 field, replaced with ...
5086 <thread>: ... this new field. All users adjusted.
5087 (btpy_insn_or_gap_new): Drop const.
5088 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5089 callers adjusted.
5090 * python/py-record.c: Include "gdbthread.h".
5091 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5092 a ptid_t. All callers adjusted.
5093 (gdbpy_current_recording): Use inferior_thread.
5094 * python/py-record.h (recpy_record_object) <ptid>: Delete
5095 field, replaced with ...
5096 <thread>: ... this new field. All users adjusted.
5097 (recpy_element_object) <ptid>: Delete
5098 field, replaced with ...
5099 <thread>: ... this new field. All users adjusted.
5100 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5101 a ptid_t. All callers adjusted.
5102 * python/py-threadevent.c: Include "gdbthread.h".
5103 (get_event_thread): Use thread_to_thread_object.
5104 * python/python-internal.h (struct inferior_object): Forward
5105 declare.
5106 (find_thread_object, find_inferior_object): Delete declarations.
5107 (thread_to_thread_object, inferior_to_inferior_object): New
5108 declarations.
5109 * record-btrace.c: Include "inferior.h".
5110 (require_btrace_thread): Use inferior_thread.
5111 (record_btrace_frame_sniffer)
5112 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5113 (get_thread_current_frame): Use scoped_restore_current_thread and
5114 switch_to_thread.
5115 (get_thread_current_frame): Use thread pointer directly.
5116 (record_btrace_replay_at_breakpoint): Use thread's inferior
5117 pointer directly.
5118 * record-full.c: Include "inferior.h".
5119 * regcache.c: Include "gdbthread.h".
5120 (get_thread_arch_regcache): Use the inferior's address space
5121 directly.
5122 (get_thread_regcache, registers_changed_thread): New.
5123 * regcache.h (get_thread_regcache(thread_info *thread)): New
5124 overload.
5125 (registers_changed_thread): New.
5126 (remote_target) <remote_detach_1>: Swap order of parameters.
5127 (remote_add_thread): <remote_add_thread>: Return the new thread.
5128 (get_remote_thread_info(ptid_t)): New overload.
5129 (remote_target::remote_notice_new_inferior): Use thread pointers
5130 directly.
5131 (remote_target::process_initial_stop_replies): Use
5132 thread_info::set_running.
5133 (remote_target::remote_detach_1, remote_target::detach)
5134 (extended_remote_target::detach): Adjust.
5135 * stack.c (frame_show_address): Use inferior_thread.
5136 * target-debug.h (target_debug_print_thread_info_pp): New.
5137 * target-delegates.c: Regenerate.
5138 * target.c (default_thread_address_space): Delete.
5139 (memory_xfer_partial_1): Use current_inferior.
5140 (target_detach): Use current_inferior.
5141 (target_thread_address_space): Delete.
5142 (generic_mourn_inferior): Use current_inferior.
5143 * target.h (struct target_ops) <thread_address_space>: Delete.
5144 (target_thread_address_space): Delete.
5145 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5146 pointers directly.
5147 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5148 thread pointer instead of a ptid_t. Adjust all callers.
5149 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5150 (first_thread_of_process): Delete, replaced by ...
5151 (first_thread_of_inferior): ... this new function. All callers
5152 adjusted.
5153 (any_thread_of_process): Rename to ...
5154 (any_thread_of_inferior): ... this, and take an inferior pointer.
5155 (any_live_thread_of_process): Rename to ...
5156 (any_live_thread_of_inferior): ... this, and take an inferior
5157 pointer.
5158 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5159 (value_in_thread_stack_temporaries)
5160 (get_last_thread_stack_temporary): Take a thread pointer instead
5161 of a ptid_t. Adjust all callers.
5162 (thread_info::set_running): New.
5163 (validate_registers_access): Use inferior_thread.
5164 (can_access_registers_ptid): Rename to ...
5165 (can_access_registers_thread): ... this, and take a thread
5166 pointer.
5167 (print_thread_info_1): Adjust to compare thread pointers instead
5168 of ptids.
5169 (switch_to_no_thread, switch_to_thread): Make extern.
5170 (scoped_restore_current_thread::~scoped_restore_current_thread):
5171 Use m_thread pointer directly.
5172 (scoped_restore_current_thread::scoped_restore_current_thread):
5173 Use inferior_thread.
5174 (thread_command): Use thread pointer directly.
5175 (thread_num_make_value_helper): Use inferior_thread.
5176 * top.c (execute_command): Use inferior_thread.
5177 * tui/tui-interp.c: Include "inferior.h".
5178 * varobj.c (varobj_create): Use inferior_thread.
5179 (value_of_root_1): Use find_thread_global_id instead of
5180 global_thread_id_to_ptid.
5181
33bab475
AH
51822018-06-21 Alan Hayward <alan.hayward@arm.com>
5183
5184 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5185 possible.
5186 (regcache::write_part): Likewise.
5187 (readable_regcache::cooked_read_part): Update comment.
5188 (readable_regcache::cooked_write_part): Likewise.
5189 * regcache.h: (readable_regcache::read_part): Likewise.
5190 (regcache::write_part): Likewise.
5191
8363f9d5
RB
51922018-06-21 Richard Bunt <richard.bunt@arm.com>
5193 Dirk Schubert <dirk.schubert@arm.com>
5194
5195 * aarch64-linux-nat.c (post_attach): New.
5196 (aarch64_linux_nat_target::post_attach): Override post_attach to
5197 record the number of hardware debug registers.
5198
0d0b0ea2
TT
51992018-06-20 Tom Tromey <tom@tromey.com>
5200
5201 * python/py-param.c (add_setshow_generic): Make parameters const.
5202 (parmpy_init): Update.
5203
302abd6e
SM
52042018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5205
5206 * regcache.h (regcache_cooked_read_ftype): Rename to...
5207 (register_read_ftype): ...this, change type to function_view.
5208 (class reg_buffer) <save>: Remove src parameter.
5209 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5210 parameter non-const in first overload. Remove src parameter in
5211 second overload.
5212 * regcache.c (do_cooked_read): Remove.
5213 (readonly_detached_regcache::readonly_detached_regcache): Make
5214 parameter non-const, adjust call to other constructor.
5215 (reg_buffer::save): Remove src parameter.
5216 * frame.c (do_frame_register_read): Remove.
5217 (frame_save_as_regcache): Use lambda function.
5218 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5219 parameter to ppu2spu_data *.
5220 (ppu2spu_sniffer): Use lambda function.
5221
19f3f25f
SM
52222018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5223
5224 * record-full.c (record_full_target::insert_breakpoint): Remove
5225 "struct" keyword, add const.
5226
d0ac1c44
SM
52272018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5228
5229 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5230 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5231 * configure.ac: Remove AC_PREREQ, add missing quoting.
5232 * gnulib/configure.ac: Modernize usage of
5233 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5234 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5235 (AUTOMAKE_VERSION): Bump to 1.15.1.
5236 * configure: Re-generate.
5237 * config.in: Re-generate.
5238 * aclocal.m4: Re-generate.
5239 * gnulib/aclocal.m4: Re-generate.
5240 * gnulib/config.in: Re-generate.
5241 * gnulib/configure: Re-generate.
5242 * gnulib/import/Makefile.in: Re-generate.
5243
6ae50267
PA
52442018-06-19 Pedro Alves <palves@redhat.com>
5245
5246 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5247 (lookup_minimal_symbol_by_pc_section): ... here with
5248 gdb_assert_not_reached added.
5249
61b04dd0
PA
52502018-06-19 Pedro Alves <palves@redhat.com>
5251
5252 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5253 parameter with a block parameter. Compare location's block symbol
5254 with the frame's block instead of addresses.
5255 (skip_inline_frames): Pass the current block instead of the
5256 frame's address. Break out as soon as we determine the frame
5257 should not be skipped.
5258
f709fabb
TT
52592018-06-18 Tom Tromey <tom@tromey.com>
5260
5261 * solib-aix.c (solib_aix_get_section_offsets): Return
5262 unique_xmalloc_ptr.
5263 (solib_aix_solib_create_inferior_hook): Update.
5264
668eb2f0
TT
52652018-06-18 Tom Tromey <tom@tromey.com>
5266
5267 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5268
309822ca
TT
52692018-06-18 Tom Tromey <tom@tromey.com>
5270
5271 * solib-frv.c (frv_relocate_main_executable): Use
5272 unique_xmalloc_ptr.
5273 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5274 unique_xmalloc_ptr.
5275
06424eac
TT
52762018-06-18 Tom Tromey <tom@tromey.com>
5277
5278 * objfiles.h (inhibit_section_map_updates): Update.
5279 (resume_section_map_updates, resume_section_map_updates_cleanup):
5280 Remove.
5281 * solib-svr4.c (svr4_handle_solib_event): Update.
5282 * objfiles.c (inhibit_section_map_updates): Return
5283 scoped_restore_tmpl<int>.
5284 (resume_section_map_updates, resume_section_map_updates_cleanup):
5285 Remove.
5286
b4be9fad
TT
52872018-06-18 Tom Tromey <tom@tromey.com>
5288
5289 * valprint.h (read_string): Update.
5290 * valprint.c (read_string): Change type of "buffer".
5291 (val_print_string): Update.
5292 * python/py-value.c (valpy_string): Update.
5293 * language.h (struct language_defn) <la_get_string>: Change
5294 type of "buffer".
5295 (default_get_string, c_get_string): Update.
5296 * language.c (default_get_string): Change type of "buffer".
5297 * guile/scm-value.c (gdbscm_value_to_string): Update.
5298 * c-lang.c (c_get_string): Change type of "buffer".
5299
3f0dbd67
TT
53002018-06-18 Tom Tromey <tom@tromey.com>
5301
5302 * ser-mingw.c (struct pipe_state_destroyer): New.
5303 (pipe_state_up): New typedef.
5304 (cleanup_pipe_state): Remove.
5305 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5306
69d340c6
TT
53072018-06-18 Tom Tromey <tom@tromey.com>
5308
5309 * rust-lang.h (rust_yyerror): Don't declare.
5310 * rust-lang.c (rust_language_defn): Update.
5311 * rust-exp.y (yyerror): Now static.
5312 * parse.c (parse_exp_in_context_1): Update.
5313 * p-lang.h (p_yyerror): Don't declare.
5314 * p-lang.c (p_language_defn): Update.
5315 * p-exp.y (yyerror): Now static.
5316 * opencl-lang.c (opencl_language_defn): Update.
5317 * objc-lang.c (objc_language_defn): Update.
5318 * m2-lang.h (m2_yyerror): Don't declare.
5319 * m2-lang.c (m2_language_defn): Update.
5320 * m2-exp.y (yyerror): Now static.
5321 * language.h (struct language_defn) <la_error>: Remove.
5322 * language.c (unk_lang_error): Remove.
5323 (unknown_language_defn, auto_language_defn): Remove.
5324 * go-lang.h (go_yyerror): Don't declare.
5325 * go-lang.c (go_language_defn): Update.
5326 * go-exp.y (yyerror): Now static.
5327 * f-lang.h (f_yyerror): Don't declare.
5328 * f-lang.c (f_language_defn): Update.
5329 * f-exp.y (yyerror): Now static.
5330 * d-lang.h (d_yyerror): Don't declare.
5331 * d-lang.c (d_language_defn): Update.
5332 * d-exp.y (yyerror): Now static.
5333 * c-lang.h (c_yyerror): Don't declare.
5334 * c-lang.c (c_language_defn, cplus_language_defn)
5335 (asm_language_defn, minimal_language_defn): Update.
5336 * c-exp.y (yyerror): Now static.
5337 * ada-lang.h (ada_yyerror): Don't declare.
5338 * ada-lang.c (ada_language_defn): Update.
5339 * ada-exp.y (yyerror): Now static.
5340
e9902bfc
AH
53412018-06-18 Alan Hayward <alan.hayward@arm.com>
5342
5343 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5344 (store_sveregs_to_thread): Likewise.
5345 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5346 (aarch64_linux_store_inferior_registers): Likewise.
5347 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5348 function.
5349 (aarch64_sve_regs_copy_to_regcache): Likewise.
5350 (aarch64_sve_regs_copy_from_regcache): Likewise.
5351 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5352 declaration.
5353 (aarch64_sve_regs_copy_to_regcache): Likewise.
5354 (aarch64_sve_regs_copy_from_regcache): Likewise.
5355 (sve_context): Structure from Linux headers.
5356 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5357 (SVE_SIG_ZREG_SIZE): Likewise.
5358 (SVE_SIG_PREG_SIZE): Likewise.
5359 (SVE_SIG_FFR_SIZE): Likewise.
5360 (SVE_SIG_REGS_OFFSET): Likewise.
5361 (SVE_SIG_ZREGS_OFFSET): Likewise.
5362 (SVE_SIG_ZREG_OFFSET): Likewise.
5363 (SVE_SIG_ZREGS_SIZE): Likewise.
5364 (SVE_SIG_PREGS_OFFSET): Likewise.
5365 (SVE_SIG_PREG_OFFSET): Likewise.
5366 (SVE_SIG_PREGS_SIZE): Likewise.
5367 (SVE_SIG_FFR_OFFSET): Likewise.
5368 (SVE_SIG_REGS_SIZE): Likewise.
5369 (SVE_SIG_CONTEXT_SIZE): Likewise.
5370 (SVE_PT_REGS_MASK): Likewise.
5371 (SVE_PT_REGS_FPSIMD): Likewise.
5372 (SVE_PT_REGS_SVE): Likewise.
5373 (SVE_PT_VL_INHERIT): Likewise.
5374 (SVE_PT_VL_ONEXEC): Likewise.
5375 (SVE_PT_REGS_OFFSET): Likewise.
5376 (SVE_PT_FPSIMD_OFFSET): Likewise.
5377 (SVE_PT_FPSIMD_SIZE): Likewise.
5378 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5379 (SVE_PT_SVE_PREG_SIZE): Likewise.
5380 (SVE_PT_SVE_FFR_SIZE): Likewise.
5381 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5382 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5383 (__SVE_SIG_TO_PT): Likewise.
5384 (SVE_PT_SVE_OFFSET): Likewise.
5385 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5386 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5387 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5388 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5389 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5390 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5391 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5392 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5393 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5394 (SVE_PT_SVE_SIZE): Likewise.
5395 (SVE_PT_SIZE): Likewise.
5396 (HAS_SVE_STATE): New define.
5397
17a1cc89
AH
53982018-06-18 Alan Hayward <alan.hayward@arm.com>
5399
5400 * nat/aarch64-sve-linux-sigcontext.h: New file.
5401 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5402 new files.
5403 (SVE_VQ_MIN): Likewise.
5404 (SVE_VQ_MAX): Likewise.
5405 (SVE_VL_MIN): Likewise.
5406 (SVE_VL_MAX): Likewise.
5407 (SVE_NUM_ZREGS): Likewise.
5408 (SVE_NUM_PREGS): Likewise.
5409 (sve_vl_valid): Likewise.
5410 (struct user_sve_header): Likewise.
5411
7010835a
AB
54122018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5413 Richard Bunt <Richard.Bunt@arm.com>
5414
5415 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5416 was requested by GDB.
5417
479b3ef4
TV
54182018-06-15 Tom de Vries <tdevries@suse.de>
5419
5420 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5421
8199b8f4
SM
54222018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5423
5424 * gnulib/update-gnulib.sh: Print expected versions of
5425 autoconf/aclocal.
5426
55c748a1
SM
54272018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5428
5429 * arch-utils.c (default_type_align): Use type_length_units.
5430 * gdbtypes.c (type_align): Use type_length_units.
5431
87a8eca7
PW
54322018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5433
5434 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5435 of 'define' command.
5436
5d9a0608
TV
54372018-06-14 Tom de Vries <tdevries@suse.de>
5438
5439 PR cli/22573
5440 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5441 get_no_prettyformat_print_options.
5442
ab89b5a5
SM
54432018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5444
5445 * sparc-nat.h: Include target.h.
5446 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5447 <fetch_registers>: Remove this argument in function call.
5448 <store_registers>: Remove this argument in function call, remove
5449 extra semicolon.
5450 <low_forget_process>: Call sparc64_forget_process instead of
5451 sparc_forget_process.
5452
62c808ae
RO
54532018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5454
5455 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5456 (procfs_target::make_corefile_notes): Adjust to new
5457 target_read_alloc return type.
5458
1840d81a
AB
54592018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5460 Stephen Roberts <stephen.roberts@arm.com>
5461
5462 PR gdb/22882
5463 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5464 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5465 Move should_notify_stop local into more inner scope.
5466
9516f85a
AB
54672018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5468 Stephen Roberts <stephen.roberts@arm.com>
5469
5470 PR gdb/22882
5471 * infrun.c (resume_1): Add call to mark_async_event_handler.
5472
defd2172
AB
54732018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5474
5475 * infrun.c (do_target_wait): Change old version of $pc printed.
5476
7b23e087
SM
54772018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5478
5479 * dwarf2read.c (read_index_from_section): Rename to...
5480 (read_gdb_index_from_section): ... this, update all callers.
5481 (dwarf2_read_index): Rename to...
5482 (dwarf2_read_gdb_index): ... this, update all callers.
5483
69c67a0b
JDA
54842018-06-11 John David Anglin <danglin@gcc.gnu.org>
5485
5486 * gdb/hppa-linux-nat.c
5487 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5488 hppa_linux_nat_target::fetch_registers.
5489
65d4cada
AH
54902018-06-11 Alan Hayward <alan.hayward@arm.com>
5491
5492 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5493 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5494 (AARCH64_DWARF_SVE_FFR): Likewise.
5495 (AARCH64_DWARF_SVE_P0): Likewise.
5496 (AARCH64_DWARF_SVE_Z0): Likewise.
5497
f868386e
AH
54982018-06-11 Alan Hayward <alan.hayward@arm.com>
5499
5500 * common/common-regcache.h (raw_compare): New function.
5501 * regcache.c (regcache::raw_compare): Likewise.
5502 * regcache.h (regcache::raw_compare): New declaration.
5503
9c861883
AH
55042018-06-11 Alan Hayward <alan.hayward@arm.com>
5505
5506 * common/common-regcache.h (reg_buffer_common): New structure.
5507 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5508 (reg_buffer::raw_supply): Likewise.
5509 (reg_buffer::raw_supply_integer): Likewise.
5510 (reg_buffer::raw_supply_zeroed): Likewise.
5511 (reg_buffer::raw_collect): Likewise.
5512 (reg_buffer::raw_collect_integer): Likewise.
5513 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5514 (reg_buffer::raw_supply): Likewise.
5515 (reg_buffer::raw_supply_integer): Likewise.
5516 (reg_buffer::raw_supply_zeroed): Likewise.
5517 (reg_buffer::raw_collect): Likewise.
5518 (reg_buffer::raw_collect_integer): Likewise.
5519
953edf2b
TT
55202018-06-10 Tom Tromey <tom@tromey.com>
5521
5522 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5523 (class remote_state) <stop_reply_queue>: Now std::vector.
5524 (remote_state::~remote_state)
5525 (remote_target::stop_reply_queue_length): Update.
5526 (struct queue_iter_param, remove_child_of_pending_fork)
5527 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5528 (check_pending_event_prevents_wildcard_vcont_callback)
5529 (remove_stop_reply_for_inferior)
5530 (remove_stop_reply_of_remote_state)
5531 (remote_notif_remove_once_on_match)
5532 (stop_reply_match_ptid_and_ws)
5533 (remote_kill_child_of_pending_fork): Remove.
5534 (remote_target::remove_new_fork_children)
5535 (remote_target::check_pending_events_prevent_wildcard_vcont)
5536 (remote_target::discard_pending_stop_replies)
5537 (remote_target::discard_pending_stop_replies_in_queue)
5538 (remote_target::remote_notif_remove_queued_reply)
5539 (remote_target::queued_stop_reply)
5540 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5541 (remote_target::wait, remote_target::kill_new_fork_children)
5542 (remote_target::async): Update.
5543
1ddbba9d
TT
55442018-06-10 Tom Tromey <tom@tromey.com>
5545
5546 * record-full.c (record_full_arch_list_cleanups): Remove.
5547 (record_full_message): Use try/catch.
5548 (record_full_wait_cleanups): Remove.
5549 (record_full_wait_1): Use try/catch.
5550 (record_full_restore): Likewise.
5551
219605fd
TT
55522018-06-10 Tom Tromey <tom@tromey.com>
5553
5554 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5555 declare VEC. Add constructor.
5556 <in_target_beneath>: Now bool.
5557 (record_full_breakpoints): Now a std::vector, static.
5558 (record_full_sync_record_breakpoints)
5559 (record_full_init_record_breakpoints)
5560 (record_full_target::insert_breakpoint)
5561 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5562
71b73764
SM
55632018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5564
5565 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5566 * serial.c (serial_interface_lookup): Remove struct keyword.
5567
4360561f
TT
55682018-06-10 Tom Tromey <tom@tromey.com>
5569
5570 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5571 method.
5572 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5573 a method.
5574 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5575 method.
5576 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5577 "beneath" as a method.
5578 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5579 Use "beneath" as a method.
5580
d14b92bf
TT
55812018-06-10 Tom Tromey <tom@tromey.com>
5582
5583 * tracefile.c (struct trace_file_writer_deleter): New.
5584 <operator()>: Rename from trace_file_writer_xfree.
5585 (trace_file_writer_up): New typedef.
5586 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5587
835dcf92
SM
55882018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5589
5590 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5591 <m_registers, m_register_status>: Change type to
5592 std::unique_ptr.
5593 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5594 XCNEWVEC.
5595
aac0d564
SM
55962018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5597
5598 * common/common-regcache.h (enum register_status): Add
5599 underlying type "signed char".
5600 * regcache.h (reg_buffer) <m_register_status>: Change type to
5601 register_status *.
5602 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5603 register_status instead of signed char.
5604 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5605 (reg_buffer::get_register_status): Remove cast.
5606 (readable_regcache::raw_read): Remove cast.
5607 (readable_regcache::cooked_read): Remove cast.
5608
77ad7394
TT
56092018-06-09 Tom Tromey <tom@tromey.com>
5610
5611 * source.c (reverse_search_command, forward_search_command): Use
5612 scoped_fd.
5613
191cca63
TT
56142018-06-09 Tom Tromey <tom@tromey.com>
5615
5616 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5617 (serial_ops_list): Now static, std::vector.
5618 (serial_interface_lookup, serial_add_interface): Update.
5619
c5d0225d
TT
56202018-06-09 Tom Tromey <tom@tromey.com>
5621
5622 * dwarf2read.c (process_cu_includes): Update.
5623 (process_full_comp_unit): Update.
5624 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5625 std::vector.
5626
aeab5128
PK
56272018-06-08 Paul Koning <paul_koning@dell.com>
5628
5629 PR gdb/23252
5630
5631 * python/python.c (do_start_initialization):
5632 Avoid call to internal Python API.
5633 (init__gdb_module): New function.
5634
5045b3d7
GB
56352018-06-08 Gary Benson <gbenson@redhat.com>
5636
5637 * linux-thread-db.c (valprint.h): New include.
5638 (struct check_thread_db_info): New structure.
5639 (check_thread_db_on_load, tdb_testinfo): New static globals.
5640 (check_thread_db, check_thread_db_callback): New functions.
5641 (try_thread_db_load_1): Run integrity checks if requested.
5642 (maintenance_check_libthread_db): New function.
5643 (_initialize_thread_db): Register "maint check libthread-db"
5644 and "maint set/show check-libthread-db".
5645 * NEWS: Mention the above new commands.
5646
2f4f025f
TT
56472018-06-08 Tom Tromey <tom@tromey.com>
5648
5649 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5650 now a method.
5651
343b0027
TT
56522018-06-08 Tom Tromey <tom@tromey.com>
5653
5654 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5655
8dcc53b3
TT
56562018-06-08 Tom Tromey <tom@tromey.com>
5657
5658 * common/btrace-common.h (struct btrace_data): Add constructor,
5659 destructor, move assignment operator.
5660 <empty, clear, fini>: New methods.
5661 <format>: Initialize.
5662 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5663 (btrace_data_empty): Don't declare.
5664 * common/btrace-common.c (btrace_data_init): Remove.
5665 (btrace_data::fini): Rename from btrace_data_fini.
5666 (btrace_data::empty): Rename from btrace_data_empty.
5667 (btrace_data::clear): Rename from btrace_data_clear. Return
5668 bool.
5669 * btrace.h (make_cleanup_btrace_data): Don't declare.
5670 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5671 (parse_xml_btrace): Update.
5672 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5673 (maint_btrace_clear_packet_history_cmd): Update.
5674
a1740ee1
PA
56752018-06-07 Pedro Alves <palves@redhat.com>
5676
5677 * target.h (target_ops) <beneath>: Now a method. All references
5678 updated.
5679 (class target_stack): New.
5680 * target.c (g_target_stack): New.
5681 (g_current_top_target): Delete.
5682 (current_top_target): Get the top target out of g_target_stack.
5683 (target_stack::push, target_stack::unpush): New.
5684 (push_target, unpush_target): Reimplement.
5685 (target_is_pushed): Reimplement in terms of g_target_stack.
5686 (target_ops::beneath, target_stack::find_beneath): New.
5687
d6ca69cd
PA
56882018-06-07 Pedro Alves <palves@redhat.com>
5689
5690 * target.h (find_target_beneath): Delete declaration.
5691 * target.c (find_target_beneath): Delete definition.
5692 * aix-thread.c: All callers of find_target_beneath adjusted to
5693 call target_ops::beneath instead.
5694 * bsd-uthread.c: Likewise.
5695 * linux-thread-db.c: Likewise.
5696 * ravenscar-thread.c: Likewise.
5697 * sol-thread.c: Likewise.
5698 * spu-multiarch.c: Likewise.
5699
b6a8c27b
PA
57002018-06-07 Pedro Alves <palves@redhat.com>
5701
5702 * target.h (target_ops) <beneath>: Now a method. All references
5703 updated.
5704 (target_ops) <m_beneath>: New.
5705 * target.c (target_ops::beneath): New.
5706 * corelow.c: Adjust all references to target_ops::beneath.
5707 * linux-thread-db.c: Likewise.
5708 * make-target-delegates: Likewise.
5709 * record-btrace.c: Likewise.
5710 * record-full.c: Likewise.
5711 * remote.c: Likewise.
5712 * target.c: Likewise.
5713 * target-delegates.c: Regenerate.
5714
8b88a78e
PA
57152018-06-07 Pedro Alves <palves@redhat.com>
5716
5717 * target.h (target_stack): Delete.
5718 (current_top_target): Declare function.
5719 * target.c (target_stack): Delete.
5720 (g_current_top_target): New.
5721 (current_top_target): New function.
5722 * auxv.c: Use current_top_target instead of target_stack
5723 throughout.
5724 * avr-tdep.c: Likewise.
5725 * breakpoint.c: Likewise.
5726 * corefile.c: Likewise.
5727 * elfread.c: Likewise.
5728 * eval.c: Likewise.
5729 * exceptions.c: Likewise.
5730 * frame.c: Likewise.
5731 * gdbarch-selftests.c: Likewise.
5732 * gnu-v3-abi.c: Likewise.
5733 * ia64-tdep.c: Likewise.
5734 * ia64-vms-tdep.c: Likewise.
5735 * infcall.c: Likewise.
5736 * infcmd.c: Likewise.
5737 * infrun.c: Likewise.
5738 * linespec.c: Likewise.
5739 * linux-tdep.c: Likewise.
5740 * minsyms.c: Likewise.
5741 * ppc-linux-nat.c: Likewise.
5742 * ppc-linux-tdep.c: Likewise.
5743 * procfs.c: Likewise.
5744 * regcache.c: Likewise.
5745 * remote.c: Likewise.
5746 * rs6000-tdep.c: Likewise.
5747 * s390-linux-nat.c: Likewise.
5748 * s390-tdep.c: Likewise.
5749 * solib-aix.c: Likewise.
5750 * solib-darwin.c: Likewise.
5751 * solib-dsbt.c: Likewise.
5752 * solib-spu.c: Likewise.
5753 * solib-svr4.c: Likewise.
5754 * solib-target.c: Likewise.
5755 * sparc-tdep.c: Likewise.
5756 * sparc64-tdep.c: Likewise.
5757 * spu-tdep.c: Likewise.
5758 * symfile.c: Likewise.
5759 * symtab.c: Likewise.
5760 * target-descriptions.c: Likewise.
5761 * target-memory.c: Likewise.
5762 * target.c: Likewise.
5763 * target.h: Likewise.
5764 * tracefile-tfile.c: Likewise.
5765 * tracepoint.c: Likewise.
5766 * valops.c: Likewise.
5767 * valprint.c: Likewise.
5768 * value.c: Likewise.
5769 * windows-tdep.c: Likewise.
5770 * mi/mi-main.c: Likewise.
5771
c7110220
TT
57722018-06-07 Tom Tromey <tom@tromey.com>
5773
5774 * valprint.h (build_address_symbolic): Declare.
5775 * printcmd.c (print_address_symbolic): Update.
5776 (build_address_symbolic): Change "name" and "filename" to
5777 std::string.
5778 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5779 Update.
5780 * defs.h (build_address_symbolic): Remove declaration.
5781
63bad7b6
AH
57822018-06-07 Alan Hayward <alan.hayward@arm.com>
5783
5784 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5785 (aarch64_vnv_type): Add function.
5786 (aarch64_pseudo_register_name): Add V regs for SVE.
5787 (aarch64_pseudo_register_type): Likewise.
5788 (aarch64_pseudo_register_reggroup_p): Likewise.
5789 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5790 (aarch64_pseudo_read_value): Add V regs for SVE.
5791 (aarch64_pseudo_write_2): Use V0 offset for SVE
5792 (aarch64_pseudo_write): Add V regs for SVE.
5793 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5794
13e3c608
SDJ
57952018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5796
5797 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5798 (sve_vl_from_vq): Likewise.
5799
c61b06a1
TT
58002018-06-05 Tom Tromey <tom@tromey.com>
5801
5802 * cli/cli-cmds.c (show_version): Update.
5803 * top.c (print_gdb_version): Add "interactive" parameter.
5804 Update.
5805 * main.c (captured_main_1): Update.
5806 * top.h (print_gdb_version): Add "interactive" parameter and a
5807 comment.
5808
115f7325
DM
58092018-06-05 David Malcolm <dmalcolm@redhat.com>
5810
5811 * common/enum-flags.h: Add trailing semicolon to example in
5812 comment.
5813
eb6af809
TT
58142018-06-05 Tom Tromey <tom@tromey.com>
5815
5816 PR cli/12326:
5817 * NEWS: Add entry about pager.
5818 * utils.c (pagination_disabled_for_command): New global.
5819 (prompt_for_continue): Allow "c" response to prompt.
5820 (reinitialize_more_filter): Clear
5821 pagination_disabled_for_command.
5822 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5823
54d343a2
TT
58242018-06-04 Tom Tromey <tom@tromey.com>
5825
5826 * ada-lang.h (ada_lookup_symbol_list): Update.
5827 * ada-lang.c (resolve_subexp): Update.
5828 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5829 parameter.
5830 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5831 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5832 results parameter to std::vector.
5833 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5834 Update.
5835 * ada-exp.y (block_lookup): Update.
5836 (select_possible_type_sym): Change type of syms. Remove nsyms
5837 parameter.
5838 (write_var_or_type, write_name_assoc): Update.
5839
178d6a63
JB
58402018-06-04 Joel Brobecker <brobecker@adacore.com>
5841
5842 * windows-nat.c (windows_nat_target::xfer_partial): Return
5843 TARGET_XFER_E_IO if we need to delegate to the target beneath
5844 but BENEATH is NULL.
5845
baf00c2d
SM
58462018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5847
5848 * Makefile.in (config.status): Add configure.nat as a
5849 dependency.
5850
214b073c
TT
58512018-06-04 Tom Tromey <tom@tromey.com>
5852
5853 * cp-name-parser.y (cpname_state): Add method declarations.
5854 (HANDLE_QUAL): Update.
5855 (cpname_state::d_grab, cpname_state::fill_comp)
5856 (cpname_state::make_operator, cpname_state::make_dtor)
5857 (cpname_state::make_builtin_type, cpname_state::make_name)
5858 (cpname_state::d_qualify, cpname_state::d_int_type)
5859 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5860 (%union): Move earlier.
5861
62b74cb8
AH
58622018-06-04 Alan Hayward <alan.hayward@arm.com>
5863
5864 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5865
3c5cd5c3
AH
58662018-06-04 Alan Hayward <alan.hayward@arm.com>
5867
5868 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5869 (aarch64_pseudo_write_1): Likewise.
5870 (aarch64_pseudo_read_value): Use helper.
5871 (aarch64_pseudo_write): Likewise.
5872
59f413d5
PA
58732018-06-04 Pedro Alves <palves@redhat.com>
5874
5875 * darwin-nat.c (darwin_ops): Delete.
5876 (darwin_attach_pid): Use get_native_target.
5877
1332a140
AH
58782018-06-04 Alan Hayward <alan.hayward@arm.com>
5879
5880 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5881 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5882
ba2d2bb2
AH
58832018-06-04 Alan Hayward <alan.hayward@arm.com>
5884
5885 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5886 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5887 (aarch64_gdbarch_init): Check for SVE.
5888 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5889
58902018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
5891
5892 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5893 * aarch64-tdep.h (aarch64_read_description): Likewise.
5894 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5895 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5896 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5897 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5898 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5899
41c60b4b
SM
59002018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5901
5902 * value.c (value_fetch_lazy_bitfield): New.
5903 (value_fetch_lazy_memory): New.
5904 (value_fetch_lazy_register): New.
5905 (value_fetch_lazy): Factor out to smaller functions.
5906
7b640f72
TT
59072018-06-01 Tom Tromey <tom@tromey.com>
5908
5909 * cp-name-parser.y (backslashable, represented): Now const.
5910
98e69eb3
TT
59112018-06-01 Tom Tromey <tom@tromey.com>
5912
5913 * cp-name-parser.y: Include parser-defs.h.
5914 (parser_fprintf): Remove declaration.
5915
49265499
TT
59162018-06-01 Tom Tromey <tom@tromey.com>
5917
5918 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5919 %parse-param.
5920 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5921 (global_result): Remove globals.
5922 (struct cpname_state): New.
5923 (yyparse): Don't declare.
5924 (yylex, yyerror): Move declarations after %union.
5925 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5926 (make_name): Add state parameter.
5927 Update all callers.
5928 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5929 parameter.
5930 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5931 Update.
5932 (yylex): Add lvalp, state parameters.
5933 (yyerror): Add state parameter.
5934 (cp_demangled_name_to_comp): Update.
5935
55b6c984
TT
59362018-06-01 Tom Tromey <tom@tromey.com>
5937
5938 * cp-name-parser.y (parser_fprintf): Declare.
5939 (GDB_YY_REMAP_PREFIX): Define.
5940 Include yy-remap.h. Don't redefine yy* identifiers.
5941
3513a6bb
TT
59422018-06-01 Tom Tromey <tom@tromey.com>
5943
5944 * python/py-type.c (typy_legacy_template_argument): Update.
5945 * cp-support.h (cp_demangled_name_to_comp): Update.
5946 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5947 parameter to be a "std::string *".
5948 (main): Update.
5949
e9cb46ab
L
59502018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5951
5952 * ada-lex.l: Include "diagnostics.h" instead of
5953 "common/diagnostics.h".
5954 * unittests/environ-selftests.c: Likewise.
5955 * common/diagnostics.h: Moved to ../include.
5956
8e817061
JB
59572018-06-01 Joel Brobecker <brobecker@adacore.com>
5958
5959 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5960 to language_mode_manual while calling breakpoint_re_set_one.
5961
a737d952
TT
59622018-06-01 Tom Tromey <tom@tromey.com>
5963
5964 * valops.c (value_cast_structs, destructor_name_p): Update.
5965 * symtab.c (gdb_mangle_name): Update.
5966 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5967 Update.
5968 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5969 (pascal_object_print_value_fields, pascal_object_print_value):
5970 Update.
5971 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5972 * linespec.c (find_methods): Update.
5973 * gdbtypes.h (type_name_no_tag): Remove.
5974 (type_name_or_error): Rename from type_name_no_tag_or_error.
5975 * gdbtypes.c (type_name_no_tag): Remove.
5976 (type_name_or_error): Rename from type_name_no_tag_or_error.
5977 (lookup_struct_elt_type, check_typedef): Update.
5978 * expprint.c (print_subexp_standard): Update.
5979 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5980 * d-namespace.c (d_lookup_nested_symbol): Update.
5981 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5982 (cp_print_class_member): Update.
5983 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5984 * completer.c (add_struct_fields): Update.
5985 * c-typeprint.c (cp_type_print_derivation_info)
5986 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5987 Update.
5988 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5989 (ada_prefer_type, ada_is_exception_sym): Update.
5990
e86ca25f
TT
59912018-06-01 Tom Tromey <tom@tromey.com>
5992
5993 * valops.c (enum_constant_from_type, value_namespace_elt)
5994 (value_maybe_namespace_elt): Update.
5995 * valarith.c (find_size_for_pointer_math): Update.
5996 * target-descriptions.c (make_gdb_type): Update.
5997 * symmisc.c (print_symbol): Update.
5998 * stabsread.c (define_symbol, read_type)
5999 (complain_about_struct_wipeout, add_undefined_type)
6000 (cleanup_undefined_types_1): Update.
6001 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6002 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6003 (rust_internal_print_type, rust_composite_type)
6004 (rust_evaluate_funcall, rust_evaluate_subexp)
6005 (rust_inclusive_range_type_p): Update.
6006 * python/py-type.c (typy_get_tag): Update.
6007 * p-typeprint.c (pascal_type_print_base): Update.
6008 * mdebugread.c (parse_symbol, parse_type): Update.
6009 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6010 Update.
6011 * guile/scm-type.c (gdbscm_type_tag): Update.
6012 * go-lang.c (sixg_string_p): Update.
6013 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6014 Update.
6015 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6016 (TYPE_TAG_NAME): Remove.
6017 * gdbtypes.c (type_name_no_tag): Simplify.
6018 (check_typedef, check_types_equal, recursive_dump_type)
6019 (copy_type_recursive, arch_composite_type): Update.
6020 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6021 in summary mode when needed.
6022 * eval.c (evaluate_funcall): Update.
6023 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6024 (process_structure_scope, read_enumeration_type)
6025 (read_namespace_type, read_module_type, determine_prefix): Update.
6026 * cp-support.c (inspect_type): Update.
6027 * coffread.c (process_coff_symbol, decode_base_type): Update.
6028 * c-varobj.c (c_is_path_expr_parent): Update.
6029 * c-typeprint.c (c_type_print_base_struct_union): Update.
6030 (c_type_print_base_1): Update. Print struct/class/union/enum in
6031 summary when using C language.
6032 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6033 (gen_maybe_namespace_elt): Update.
6034 * ada-lang.c (ada_type_name): Simplify.
6035 (empty_record, ada_template_to_fixed_record_type_1)
6036 (template_to_static_fixed_type)
6037 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6038
c1ec8cea
TT
60392018-06-01 Tom Tromey <tom@tromey.com>
6040
6041 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6042 c_print_type.
6043 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6044 (c_print_type): Update.
6045 (c_print_type): New overload.
6046 (c_type_print_varspec_prefix, c_type_print_args)
6047 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6048 (c_type_print_base_struct_union, c_type_print_base_1)
6049 (cp_type_print_method_args): Add "language" parameter.
6050 (c_type_print_base): Update.
6051 * c-lang.h (c_print_type): Add new overload.
6052
bc8453a7
TT
60532018-06-01 Tom Tromey <tom@tromey.com>
6054
6055 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6056 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6057
739e8682
AH
60582018-06-01 Alan Hayward <alan.hayward@arm.com>
6059
6060 * aarch64-tdep.c (aarch64_sve_register_names): New const
6061 var.
6062 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6063 (AARCH64_SVE_Z_REGS_NUM): New define.
6064 (AARCH64_SVE_P_REGS_NUM): Likewise.
6065 (AARCH64_SVE_NUM_REGS): Likewise.
6066
8a60efe7
UB
60672018-05-31 Uros Bizjak <ubizjak@gmail.com>
6068
6069 * nat/linux-ptrace.h [__alpha__]
6070 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6071 definitions.
6072
4b2dfa9d
MR
60732018-05-31 Maciej W. Rozycki <macro@mips.com>
6074
6075 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6076 the endianness selected.
6077 * NEWS: Document `set endian auto' mode operation update.
6078
122394f1
AH
60792018-05-31 Alan Hayward <alan.hayward@arm.com>
6080
6081 * Makefile.in: Add new header.
6082 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6083 (sve_vl_from_vg): Likewise.
6084 (sve_vq_from_vl): Likewise.
6085 (sve_vl_from_vq): Likewise.
6086 (sve_vq_from_vg): Likewise.
6087 (sve_vg_from_vq): Likewise.
6088 * configure.nat: Add new c file.
6089 * nat/aarch64-sve-linux-ptrace.c: New file.
6090 * nat/aarch64-sve-linux-ptrace.h: New file.
6091
95228a0d
AH
60922018-05-31 Alan Hayward <alan.hayward@arm.com>
6093
6094 * aarch64-linux-nat.c (aarch64_linux_read_description):
6095 Add parmeter zero.
6096 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6097 Likewise.
6098 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6099 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6100 (aarch64_gdbarch_init): Add parmeter zero.
6101 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6102 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6103 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6104 parmeter.
6105 * doc/gdb.texinfo: Describe SVE feature
6106 * features/aarch64-sve.c: New file.
6107
5969f0db
OJ
61082018-05-31 Omair Javaid <omair.javaid@linaro.org>
6109
6110 PR gdb/23210
6111 * gdbarch.sh (significant_addr_bit): Default to zero when
6112 not set by target architecture.
6113 * gdbarch.c: Re-generated.
6114 * utils.c (address_significant): Update.
6115
61367c61
JB
61162018-05-30 Joel Brobecker <brobecker@adacore.com>
6117
6118 * stack.c (func_command): Remove trailing newline in call to error.
6119
34a79281
SM
61202018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6121
6122 * regcache.h (regcache_raw_collect): Remove, update callers to
6123 use regcache::raw_collect.
6124 * regcache.c (regcache_raw_collect): Remove.
6125
73e1c03f
SM
61262018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6127
6128 * regcache.h (regcache_raw_supply): Remove, update callers to
6129 use detached_regcache::raw_supply.
6130 * regcache.c (regcache_raw_supply): Remove.
6131
e4c4a59b
SM
61322018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6133
6134 * regcache.h (regcache_cooked_write_part): Remove, update
6135 callers to use regcache::cooked_write_part.
6136 * regcache.c (regcache_cooked_write_part): Remove.
6137
73bb0000
SM
61382018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6139
6140 * regcache.h (regcache_cooked_read_part): Remove, update callers
6141 to use readable_regcache::cooked_read_part.
6142 * regcache.c (regcache_cooked_read_part): Remove.
6143
46a45e9d
SM
61442018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6145
6146 * regcache.h (regcache_cooked_read_value): Remove, update
6147 callers to use readable_regcache::cooked_read_value.
6148 * regcache.c (regcache_cooked_read_value): Remove.
6149
b66f5587
SM
61502018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6151
6152 * regcache.h (regcache_cooked_write): Remove, update callers to
6153 use regcache::cooked_write.
6154 * regcache.c (regcache_cooked_write): Remove.
6155
6aa7d724
SM
61562018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6157
6158 * regcache.h (regcache_invalidate): Remove, update callers to
6159 use detached_regcache::invalidate instead.
6160 * regcache.c (regcache_invalidate): Remove.
6161
4f0420fd
SM
61622018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6163
6164 * regcache.h (regcache_raw_write_part): Remove, update callers
6165 to use regcache::raw_write_part instead.
6166 * regcache.c (regcache_raw_write_part): Remove.
6167
502fe83e
SM
61682018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6169
6170 * regcache.h (regcache_raw_read_part): Remove, update callers to
6171 use readable_regcache::raw_read_part instead.
6172 * regcache.c (regcache_raw_read_part): Remove.
6173
dca08e1f
SM
61742018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6175
6176 * regcache.h (regcache_cooked_read): Remove, update callers to
6177 use readable_regcache::cooked_read instead.
6178 * regcache.c (regcache_cooked_read): Remove.
6179
10eaee5f
SM
61802018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6181
6182 * regcache.h (regcache_raw_write): Remove, update callers to use
6183 regcache::raw_write instead.
6184 * regcache.c (regcache_raw_write): Remove.
6185
0b883586
SM
61862018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6187
6188 * regcache.h (regcache_raw_read): Remove, update callers to use
6189 readable_regcache::raw_read instead.
6190 * regcache.c (regcache_raw_read): Remove.
6191
0b47d985
SM
61922018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6193
6194 * regcache.h (regcache_raw_update): Remove, update callers to
6195 use readable_regcache::raw_update instead.
6196 * regcache.c (regcache_raw_update): Remove.
6197
0ec9f114
SM
61982018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6199
6200 * regcache.h (regcache_register_status): Remove, update callers
6201 to use reg_buffer::get_register_status directly instead.
6202 * regcache.c (regcache_register_status): Remove.
6203
222312d3
SM
62042018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6205
6206 * regcache.h (regcache_get_ptid): Remove, update all callers to
6207 call regcache::ptid instead.
6208 * regcache.c (regcache_get_ptid): Remove.
6209
fdbe37e3
SM
62102018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6211
6212 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6213
f7c6f423
PA
62142018-05-30 Pedro Alves <palves@redhat.com>
6215
6216 * common/common-exceptions.h (exception_rethrow): Use
6217 ATTRIBUTE_NORETURN.
6218
52941706
SM
62192018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6220
6221 * breakpoint.c (print_solib_event, check_status_catch_solib):
6222 Remove struct keyword in range-based for loops.
6223 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6224 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6225 Likewise.
6226 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6227 Likewise.
6228 * symfile.c (addr_info_make_relative): Likewise.
6229 * thread.c (value_in_thread_stack_temporaries): Likewise.
6230
bf2977b5
WP
62312018-06-12 Weimin Pan <weimin.pan@oracle.com>
6232
6233 PR gdb/16841
6234 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6235 aggregate type to get its real type before accessing it.
6236
64cc34d8
WP
62372018-05-29 Weimin Pan <weimin.pan@oracle.com>
6238
6239 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6240 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6241 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6242 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6243 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6244 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6245 * printcmd.c (info_address_command): Likewise.
6246
e7ec8713
TT
62472018-05-29 Tom Tromey <tom@tromey.com>
6248
6249 * windows-nat.c (handle_exception): Update fall-through comment.
6250
bcb430e4
TT
62512018-05-29 Tom Tromey <tom@tromey.com>
6252
6253 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6254 (struct program_space) <added_solibs>: Now a std::vector.
6255 * breakpoint.c (print_solib_event): Update.
6256 (check_status_catch_solib): Update.
6257 * progspace.c (clear_program_space_solib_cache): Update.
6258 * solib.c (update_solib_list): Update.
6259
894882e3
TT
62602018-05-29 Tom Tromey <tom@tromey.com>
6261
6262 * python/py-type.c (typy_richcompare): Update.
6263 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6264 * gdbtypes.h (types_deeply_equal): Return bool.
6265 (types_equal): Likewise.
6266 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6267 declare VEC.
6268 (check_types_equal): Change worklist to std::vector. Return
6269 bool.
6270 (struct type_equality_entry): Add constructor.
6271 (compare_maybe_null_strings): Return bool.
6272 (check_types_worklist): Return bool. Change worklist to
6273 std::vector.
6274 (types_deeply_equal): Use std::vector.
6275 (types_equal): Return bool.
6276 (compare_maybe_null_strings): Simplify.
6277
10b2ded4
TT
62782018-05-29 Tom Tromey <tom@tromey.com>
6279
6280 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6281
4f7deebe
TT
62822018-05-29 Tom Tromey <tom@tromey.com>
6283
6284 * objc-lang.h: Don't include cp-support.h.
6285 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6286 declare VEC.
6287
b8283aea
TT
62882018-05-27 Tom Tromey <tom@tromey.com>
6289
6290 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6291
41a883c8
TT
62922018-05-25 Tom Tromey <tom@tromey.com>
6293
6294 * value.c (value::location): Initialize.
6295
bf259e25
TT
62962018-05-25 Tom Tromey <tom@tromey.com>
6297
6298 * dbxread.c (init_bincl_list): Remove.
6299 (bincl_list): Now a std::vector.
6300 (bincls_allocated, next_bincl): Remove.
6301 (free_bincl_list, do_free_bincl_list_cleanup)
6302 (make_cleanup_free_bincl_list): Remove.
6303 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6304 unique_xmalloc_ptr.
6305 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6306 (struct header_file_location): Add constructor.
6307 (add_bincl_to_list): Remove.
6308
d525a99b
TT
63092018-05-25 Tom Tromey <tom@tromey.com>
6310
6311 * tui/tui.c (tui_enable): Update.
6312 * mi/mi-interp.c (mi_interp::init): Update.
6313 * interps.h (class interp) <name>: New method.
6314 <m_name>: Rename from name.
6315 (~scoped_restore_interp): Update.
6316 * interps.c (interp::interp): Update.
6317 (interp_add, interp_set, interp_lookup_existing)
6318 (current_interp_named_p): Update.
6319
da505cff
TT
63202018-05-25 Tom Tromey <tom@tromey.com>
6321
6322 * interps.c (interp_name): Remove.
6323 * mi/mi-interp.c (mi_interp::init): Update.
6324 * interps.h (interp_name): Remove.
6325 (~scoped_restore_interp): Update.
6326 * tui/tui.c (tui_enable): Update.
6327
29f94340
TT
63282018-05-25 Tom Tromey <tom@tromey.com>
6329
6330 * utils.c (fputs_maybe_filtered): Update.
6331 * linespec.c (decode_line_full): Update.
6332 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6333 (mi_print_breakpoint_for_event, mi_solib_loaded)
6334 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6335 (mi_user_selected_context_changed): Update.
6336 * mi/mi-main.c (mi_execute_command): Update.
6337 * cli/cli-script.c (execute_control_command): Update.
6338 * python/python.c (execute_gdb_command): Update.
6339 * solib.c (info_sharedlibrary_command): Update.
6340 * interps.c (interp_ui_out): Remove.
6341 * interps.h (interp_ui_out): Remove.
6342
716b8bc5
TT
63432018-05-25 Tom Tromey <tom@tromey.com>
6344
6345 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6346 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6347 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6348
753ff9bd
TT
63492018-05-25 Tom Tromey <tom@tromey.com>
6350
6351 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6352 * interps.c (interp_exec): Use scoped_restore.
6353
5ca3b260
TT
63542018-05-25 Tom Tromey <tom@tromey.com>
6355
6356 * remote.c (remote_target::remote_file_get): Use
6357 gdb::byte_vector.
6358 (remote_target::remote_file_put): Likewise.
6359
3173aa2f
TT
63602018-05-25 Tom Tromey <tom@tromey.com>
6361
6362 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6363 a std::string.
6364 (get_pe_section_index, add_pe_exported_sym): Update.
6365 (read_pe_exported_syms): Use gdb::def_vector.
6366
09a5e1b5
TT
63672018-05-25 Tom Tromey <tom@tromey.com>
6368
6369 * frame.c (remove_prev_frame): Remove.
6370 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6371
d8dab6c3
MR
63722018-05-25 Maciej W. Rozycki <macro@mips.com>
6373
6374 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6375 Remove prototypes.
6376 * mips-linux-nat.c (supply_fpregset): Always call
6377 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6378 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6379 `mips_fill_fpregset'.
6380 * mips-linux-tdep.c (mips_supply_fpregset)
6381 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6382 (mips_fill_fpregset_wrapper): Remove functions.
6383 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6384 (mips_linux_fpregset): Remove variable.
6385 (mips_linux_iterate_over_regset_sections): Use
6386 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6387 (mips_linux_o32_sigframe_init): Remove comment.
6388
3c69da40
PA
63892018-05-25 Pedro Alves <palves@redhat.com>
6390
6391 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6392 (struct readahead_cache, struct packet_reg, struct
6393 remote_arch_state, class remote_state): Move higher up in the
6394 file.
6395 (remote_target::m_remote_state): Now an object instead of a pointer.
6396 (remote_target::get_remote_state): Adjust.
6397
39f0c204
AB
63982018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6399
6400 * stack.c (select_and_print_frame): Delete.
6401 (struct function_bounds): Move struct within function.
6402 (func_command): Most content moved into new function
6403 find_frame_for_function, use new function, print result, add
6404 function comment.
6405 (find_frame_for_function): New function, now returns a result.
6406
d392224a
PW
64072018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6408
6409 * stack.c (iterate_over_block_arg_vars): Fix comment.
6410 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6411
45f25d6c
AB
64122018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6413
6414 PR gdb/23203
6415 * frame.c
6416 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6417 Define.
6418 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6419 Define.
6420 * frame.h (class scoped_restore_selected_frame): New class.
6421 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6422 of any exception, use scoped_restore_selected_frame to restore the
6423 frame instead.
6424
da05d921
PA
64252018-05-24 Pedro Alves <palves@redhat.com>
6426
6427 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6428 override.
6429
a8be540e
TT
64302018-05-23 Tom Tromey <tom@tromey.com>
6431
6432 * complaints.c (struct complaints): Remove.
6433 (symfile_complaint_book): Remove.
6434 (series): New global.
6435 (complaint_internal): Update.
6436 (clear_complaints): Update.
6437
ff1cf532
TT
64382018-05-23 Tom Tromey <tom@tromey.com>
6439
6440 * complaints.c (counters): New global.
6441 (struct complain): Remove.
6442 (struct complaints) <root>: Remove.
6443 (complaint_sentinel): Remove.
6444 (symfile_complaint_book): Update.
6445 (find_complaint) Remove.
6446 (complaint_internal, clear_complaints): Update.
6447
7ff88174
TT
64482018-05-23 Tom Tromey <tom@tromey.com>
6449
6450 * complaints.c (struct complain) <file, line>: Remove.
6451 (find_complaint): Remove file, line parameters.
6452 (complaint_internal): Update.
6453
de54e1a5
TT
64542018-05-23 Tom Tromey <tom@tromey.com>
6455
6456 * complaints.c (vcomplaint): Remove.
6457 (complaint_internal) Merge in contents of vcomplaint.
6458
2ac237e5
TT
64592018-05-23 Tom Tromey <tom@tromey.com>
6460
6461 * complaints.c (struct complaints) <explanation>: Remove.
6462 (symfile_explanations): Remove.
6463 (symfile_complaint_book): Update.
6464 (vcomplaint): Update.
6465 (struct explanation): Remove.
6466
b98664d3
TT
64672018-05-23 Tom Tromey <tom@tromey.com>
6468
6469 * complaints.c (symfile_complaints): Remove.
6470 (complaint_internal): Remove "complaints" parameter.
6471 (clear_complaints, vcomplaint): Remove "c" parameter.
6472 (get_complaints): Remove.
6473 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6474 (dwarf2_debug_line_missing_file_complaint)
6475 (dwarf2_debug_line_missing_end_sequence_complaint)
6476 (dwarf2_complex_location_expr_complaint)
6477 (dwarf2_const_value_length_mismatch_complaint)
6478 (dwarf2_section_buffer_overflow_complaint)
6479 (dwarf2_macro_malformed_definition_complaint)
6480 (dwarf2_invalid_attrib_class_complaint)
6481 (create_addrmap_from_index, dw2_symtab_iter_next)
6482 (dw2_expand_marked_cus)
6483 (dw2_debug_names_iterator::find_vec_in_debug_names)
6484 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6485 (create_debug_type_hash_table, init_cutu_and_read_dies)
6486 (partial_die_parent_scope, add_partial_enumeration)
6487 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6488 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6489 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6490 (create_cus_hash_table, create_dwp_hash_table)
6491 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6492 (dwarf2_rnglists_process, dwarf2_ranges_process)
6493 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6494 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6495 (handle_struct_member_die, process_structure_scope)
6496 (read_array_type, read_common_block, read_module_type)
6497 (read_tag_pointer_type, read_typedef, read_base_type)
6498 (read_subrange_type, load_partial_dies, partial_die_info::read)
6499 (partial_die_info::read, partial_die_info::read)
6500 (partial_die_info::read, read_checked_initial_length_and_offset)
6501 (dwarf2_string_attr, read_formatted_entries)
6502 (dwarf_decode_line_header)
6503 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6504 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6505 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6506 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6507 (get_signatured_type, get_DW_AT_signature_type)
6508 (decode_locdesc, file_file_name, consume_improper_spaces)
6509 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6510 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6511 (dwarf2_symbol_mark_computed, set_die_type)
6512 (read_attribute_value): Update.
6513 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6514 Update.
6515 * dbxread.c (unknown_symtype_complaint)
6516 (lbrac_mismatch_complaint, repeated_header_complaint)
6517 (set_namestring, function_outside_compilation_unit_complaint)
6518 (read_dbx_symtab, process_one_symbol): Update.
6519 * gdbtypes.c (stub_noname_complaint): Update.
6520 * windows-nat.c (handle_unload_dll): Update.
6521 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6522 (decode_base_type): Update.
6523 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6524 (eb_complaint, record_include_begin, record_include_end)
6525 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6526 (process_xcoff_symbol, read_symbol)
6527 (function_outside_compilation_unit_complaint)
6528 (scan_xcoff_symtab): Update.
6529 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6530 * buildsym.c (finish_block_internal, make_blockvector)
6531 (end_symtab_get_static_block, augment_type_symtab): Update.
6532 * dtrace-probe.c (dtrace_process_dof)
6533 (dtrace_static_probe_ops::get_probes): Update.
6534 * complaints.h (struct complaint): Don't declare.
6535 (symfile_complaints): Remove.
6536 (complaint_internal): Remove "complaints" parameter.
6537 (complaint): Likewise.
6538 (clear_complaints): Likewise.
6539 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6540 (reread_symbols): Update.
6541 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6542 (dwarf2_frame_cache, decode_frame_entry): Update.
6543 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6544 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6545 (info_selectors_command): Update.
6546 * macrotab.c (macro_include, check_for_redefinition)
6547 (macro_undef): Update.
6548 * objfiles.c (filter_overlapping_sections): Update.
6549 * stabsread.c (invalid_cpp_abbrev_complaint)
6550 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6551 (define_symbol, error_type, read_type, rs6000_builtin_type)
6552 (stabs_method_name_from_physname, read_member_functions)
6553 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6554 (attach_fields_to_type, complain_about_struct_wipeout)
6555 (read_range_type, read_args, common_block_start)
6556 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6557 Update.
6558 * mdebugread.c (index_complaint, unknown_ext_complaint)
6559 (basic_type_complaint, bad_tag_guess_complaint)
6560 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6561 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6562 (parse_procedure, parse_lines)
6563 (function_outside_compilation_unit_complaint)
6564 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6565 (bad_tag_guess_complaint, reg_value_complaint): Update.
6566 * cp-support.c (demangled_name_complaint): Update.
6567 * macroscope.c (sal_macro_scope): Update.
6568 * dwarf-index-write.c (class debug_names): Update.
6569
4e9668d0
TT
65702018-05-23 Tom Tromey <tom@tromey.com>
6571
6572 * complaints.c (clear_complaints): Remove "noisy" parameter.
6573 * complaints.h (clear_complaints): Update.
6574 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6575 (reread_symbols): Update.
6576
43ba33c7
TT
65772018-05-23 Tom Tromey <tom@tromey.com>
6578
6579 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6580 SUBSEQUENT_MESSAGE.
6581 (vcomplaint, clear_complaints): Update.
6582 (symfile_explanations): Remove some messages.
6583
2b9496b2
TT
65842018-05-23 Tom Tromey <tom@tromey.com>
6585
6586 * complaints.c (internal_complaint): Remove.
6587 * complaints.h (internal_complaint): Remove.
6588
35f1fea3
MR
65892018-05-22 Maciej W. Rozycki <macro@mips.com>
6590
6591 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6592
6b8edb51
PA
65932018-05-22 Pedro Alves <palves@redhat.com>
6594
6595 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6596 (remote_fileio_badfd, remote_fileio_return_errno)
6597 (remote_fileio_return_success, remote_fileio_func_open)
6598 (remote_fileio_func_open, remote_fileio_func_close)
6599 (remote_fileio_func_read, remote_fileio_func_write)
6600 (remote_fileio_func_lseek, remote_fileio_func_rename)
6601 (remote_fileio_func_unlink, remote_fileio_func_stat)
6602 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6603 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6604 remote_target parameter.
6605 (remote_fio_func_map) <func>: Add remote_target parameter.
6606 (do_remote_fileio_request, remote_fileio_request):
6607 * remote-fileio.h (remote_fileio_request):
6608 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6609 remote_target parameter.
6610 (remote_notif_process, handle_notification): Adjust to pass down
6611 the remote.
6612 (remote_notif_state_allocate): Add remote_target parameter. Save
6613 it.
6614 * remote-notif.h (struct remote_target): Forward declare.
6615 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6616 remote_target parameter.
6617 (struct remote_notif_state) <remote>: New field.
6618 (remote_notif_ack, remote_notif_parse): Add remote_target
6619 parameter.
6620 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6621 remote_target parameter.
6622 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6623 (threads_listing_context, rmt_thread_action, protocol_feature)
6624 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6625 (packet_result, struct threads_listing_context, remote_state):
6626 Move definitions and declarations higher up.
6627 (remote_target) <~remote_target>: Declare.
6628 (remote_download_command_source, remote_file_put, remote_file_get)
6629 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6630 (remote_hostio_pread_vFile, remote_hostio_send_command)
6631 (remote_hostio_set_filesystem, remote_hostio_open)
6632 (remote_hostio_close, remote_hostio_unlink, remote_state)
6633 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6634 (get_memory_write_packet_size, get_memory_read_packet_size)
6635 (append_pending_thread_resumptions, remote_detach_1)
6636 (append_resumption, remote_resume_with_vcont)
6637 (add_current_inferior_and_thread, wait_ns, wait_as)
6638 (process_stop_reply, remote_notice_new_inferior)
6639 (process_initial_stop_replies, remote_add_thread)
6640 (btrace_sync_conf, remote_btrace_maybe_reopen)
6641 (remove_new_fork_children, kill_new_fork_children)
6642 (discard_pending_stop_replies, stop_reply_queue_length)
6643 (check_pending_events_prevent_wildcard_vcont)
6644 (discard_pending_stop_replies_in_queue, stop_reply)
6645 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6646 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6647 (remote_interrupt_as, remote_interrupt_ns)
6648 (remote_get_noisy_reply, remote_query_attached)
6649 (remote_add_inferior, remote_current_thread, get_current_thread)
6650 (set_thread, set_general_thread, set_continue_thread)
6651 (set_general_process, write_ptid)
6652 (remote_unpack_thread_info_response, remote_get_threadinfo)
6653 (parse_threadlist_response, remote_get_threadlist)
6654 (remote_threadlist_iterator, remote_get_threads_with_ql)
6655 (remote_get_threads_with_qxfer)
6656 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6657 (get_offsets, remote_check_symbols, remote_supported_packet)
6658 (remote_query_supported, remote_packet_size)
6659 (remote_serial_quit_handler, remote_detach_pid)
6660 (remote_vcont_probe, remote_resume_with_hc)
6661 (send_interrupt_sequence, interrupt_query)
6662 (remote_notif_get_pending_events, fetch_register_using_p)
6663 (send_g_packet, process_g_packet, fetch_registers_using_g)
6664 (store_register_using_P, store_registers_using_G)
6665 (set_remote_traceframe, check_binary_download)
6666 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6667 (remote_xfer_live_readonly_partial, remote_read_bytes)
6668 (remote_send_printf, remote_flash_write, readchar)
6669 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6670 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6671 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6672 (extended_remote_disable_randomization, extended_remote_run)
6673 (send_environment_packet, extended_remote_environment_support)
6674 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6675 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6676 (packet_command): Now methods of ...
6677 (remote_target): ... this class.
6678 (m_remote_state) <remote_target>: New field.
6679 (struct remote_state) <stop_reply_queue,
6680 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6681 fields.
6682 (remote_state::remote_state): Allocate stop_reply_queue.
6683 (remote_state): Delete global.
6684 (get_remote_state_raw): Delete.
6685 (remote_target::get_remote_state): Allocate m_remote_state on
6686 demand.
6687 (get_current_remote_target): New.
6688 (remote_ops, extended_remote_ops): Delete.
6689 (wait_forever_enabled_p, remote_async_inferior_event_token):
6690 Delete, moved to struct remote_state.
6691 (remote_target::close): Delete self. Destruction bits split to
6692 ...
6693 (remote_target::~remote_target): ... this.
6694 (show_memory_packet_size): Adjust to use
6695 get_current_remote_target.
6696 (struct protocol_feature) <func>: Add remote_target parameter.
6697 All callers adjusted.
6698 (curr_quit_handler_target): New.
6699 (remote_serial_quit_handler): Reimplement.
6700 (remote_target::open_1): Adjust to use get_current_remote_target.
6701 Heap-allocate remote_target/extended_remote_target instances.
6702 (vcont_builder::vcont_builder): Add remote_target parameter, and
6703 save it in m_remote. All callers adjusted.
6704 (vcont_builder::m_remote): New field.
6705 (vcont_builder::restart, vcont_builder::flush)
6706 (vcont_builder::push_action): Use it.
6707 (remote_target::commit_resume): Use it.
6708 (struct queue_iter_param) <remote>: New field.
6709 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6710 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6711 (check_pending_event_prevents_wildcard_vcont_callback)
6712 (remote_target::check_pending_events_prevent_wildcard_vcont)
6713 (remote_target::discard_pending_stop_replies)
6714 (remote_target::discard_pending_stop_replies_in_queue)
6715 (remote_target::remote_notif_remove_queued_reply): Fill in
6716 'remote' field.
6717 (remote_notif_get_pending_events): New.
6718 (remote_target::readchar, remote_target::remote_serial_write):
6719 Save/restore curr_quit_handler_target.
6720 (putpkt): New.
6721 (kill_new_fork_children): Fill in 'remote' field.
6722 (packet_command): Use get_current_remote_target, defer to
6723 remote_target method of same name.
6724 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6725 parameter, and save it in m_remote. All callers adjusted.
6726 (scoped_remote_fd::release): Use m_remote.
6727 (scoped_remote_fd::m_remote): New field.
6728 (remote_file_put, remote_file_get, remote_file_delete): Use
6729 get_current_remote_target, defer to remote_target method of same
6730 name.
6731 (remote_btrace_reset): Add remote_state paremeter. Update all
6732 callers.
6733 (remote_async_inferior_event_handler). Pass down 'data'.
6734 (remote_new_objfile): Use get_current_remote_target.
6735 (remote_target::vcont_r_supported): New.
6736 (set_range_stepping): Use get_current_remote_target and
6737 remote_target::vcont_r_supported.
6738 (_initialize_remote): Don't allocate 'remote_state' and
6739 'stop_reply_queue' globals.
6740 * remote.h (struct remote_target): Forward declare.
6741 (getpkt, putpkt, remote_notif_get_pending_events): Add
6742 'remote_target' parameter.
6743
f5db4863
PA
67442018-05-22 Pedro Alves <palves@redhat.com>
6745
6746 * remote.c (vcont_builder): Now a class. Make all data members
6747 private.
6748 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6749 Declare methods.
6750 (vcont_builder_restart): Rename to ...
6751 (vcont_builder::restart): ... this.
6752 (vcont_builder_flush): Rename to ...
6753 (vcont_builder::flush): ... this.
6754 (vcont_builder_push_action): Rename to ...
6755 (vcont_builder::push_action): ... this.
6756 (remote_target::commit_resume): Adjust.
6757
cc0be08f
PA
67582018-05-22 Pedro Alves <palves@redhat.com>
6759
6760 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6761 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6762 (get_fixed_memory_packet_size): New.
6763 (get_memory_packet_size): Use it.
6764 (set_memory_packet_size): Don't override the config size with
6765 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6766 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6767 Don't refer to get_memory_packet_size if not connected to a remote
6768 target. Show "(default)" if configured size is 0.
6769
9607784a
PA
67702018-05-22 Pedro Alves <palves@redhat.com>
6771
6772 * remote.c (remote_target::mourn_inferior): Move
6773 discard_pending_stop_replies call here from ...
6774 (_initialize_remote): ... here.
6775
0e9a6b2f
PA
67762018-05-22 Pedro Alves <palves@redhat.com>
6777
6778 * remote.c (compare_section_command): Remove set_general_process
6779 call.
6780
43c3a0e4
PA
67812018-05-22 Pedro Alves <palves@redhat.com>
6782
6783 * remote.c (struct packet_reg, struct remote_arch_state):
6784 Move higher up in the file.
6785 (remote_state) <m_arch_states>: Store remote_arch_state values
6786 instead of remote_arch_state pointers.
6787 (remote_state::get_remote_arch_state): Adjust.
6788
9d6eea31
PA
67892018-05-22 Pedro Alves <palves@redhat.com>
6790
6791 * remote.c: Include <unordered_map>.
6792 (remote_state): Now a class.
6793 (remote_state) <get_remote_arch_state>: Declare method.
6794 <get_remote_arch_state>: New field.
6795 (remote_arch_state) <remote_arch_state>: Declare ctor.
6796 <regs>: Now a unique_ptr.
6797 (remote_gdbarch_data_handle): Delete.
6798 (get_remote_arch_state): Delete.
6799 (remote_state::get_remote_arch_state): New.
6800 (get_remote_state): Adjust to call remote_state's
6801 get_remote_arch_state method.
6802 (init_remote_state): Delete, bits factored out to ...
6803 (remote_arch_state::remote_arch_state): ... this new method.
6804 (get_remote_packet_size, get_memory_packet_size)
6805 (process_g_packet, remote_target::fetch_registers)
6806 (remote_target::prepare_to_store, store_registers_using_G)
6807 (remote_target::store_registers, remote_target::get_trace_status):
6808 Adjust to call remote_state's method.
6809 (_initialize_remote): Remove reference to
6810 remote_gdbarch_data_handle.
6811
dd194f6b
PA
68122018-05-22 Pedro Alves <palves@redhat.com>
6813
6814 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6815 pread>: New method declarations.
6816 (remote_target::open_1): Adjust.
6817 (readahead_cache_invalidate): Rename to ...
6818 (readahead_cache::invalidate): ... this, and adjust to be a class
6819 method.
6820 (readahead_cache_invalidate_fd): Rename to ...
6821 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6822 class method.
6823 (remote_hostio_pwrite): Adjust.
6824 (remote_hostio_pread_from_cache): Rename to ...
6825 (readahead_cache::pread): ... this, and adjust to be a class
6826 method.
6827 (remote_hostio_close): Adjust.
6828
440b7aec
PA
68292018-05-22 Pedro Alves <palves@redhat.com>
6830
6831 * remote.c (remote_hostio_close_cleanup): Delete.
6832 (class scoped_remote_fd): New.
6833 (remote_file_put, remote_file_get): Use it.
6834
de44f5a7
PA
68352018-05-22 Pedro Alves <palves@redhat.com>
6836
6837 (struct vCont_action_support): Use bool and initialize all fields.
6838 (struct readahead_cache): Initialize all fields.
6839 (remote_state): Use bool and initialize all fields.
6840 (remote_state::remote_state, remote_state::~remote_state): New.
6841 (new_remote_state): Delete.
6842 (_initialize_remote): Use new to allocate remote_state.
6843
b1b60145
PA
68442018-05-22 Pedro Alves <palves@redhat.com>
6845 張俊芝 <zjz@zjz.name>
6846
6847 PR gdb/22973
6848 * c-exp.y: Include "c-support.h".
6849 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6850 of tolower. Use c_ident_is_alpha to scan names.
6851 * c-lang.c: Include "c-support.h".
6852 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6853 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6854 * c-support.h: New file, with bits factored out from ...
6855 * cp-name-parser.y: ... this file.
6856 Include "c-support.h".
6857 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6858 c-support.h and renamed.
6859 (symbol_end, yylex): Adjust.
6860
0ec848ad
PFC
68612018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6862
6863 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6864 parameter type to CORE_ADDR.
6865 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6866 parameter type in declaration to CORE_ADDR.
6867 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6868 target_auxv_search to get AT_HWCAP and use the result to get the
6869 target description.
6870 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6871 to CORE_ADDR. Remove the cast of the return value to unsigned
6872 long. Fix error predicate of target_auxv_search.
6873 (ppc_linux_nat_target::read_description): Change the type of the
6874 hwcap variable to CORE_ADDR.
6875
0fb2aaa1
PFC
68762018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6877
6878 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6879 if the size of fpscr is larger than 32 bits.
6880
2c3305f6
PFC
68812018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6882
6883 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6884 (ppc32_linux_vsxregmap): New global.
6885 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6886 regcache_supply_regset, and regcache_collect_regset.
6887 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6888 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6889 (fetch_vsx_register, store_vsx_register): Remove.
6890 (fetch_vsx_registers): Add regno parameter. Get regset using
6891 ppc_linux_vsxregset. Use regset to supply registers.
6892 (store_vsx_registers): Add regno parameter. Get regset using
6893 ppc_linux_vsxregset. Use regset to collect registers.
6894 (fetch_register): Call fetch_vsx_registers instead of
6895 fetch_vsx_register.
6896 (store_register): Call store_vsx_registers instead of
6897 store_vsx_register.
6898 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6899 new regno parameter.
6900 (store_ppc_registers): Call store_vsx_registers with -1 for the
6901 new regno parameter.
6902 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6903 (ppc_collect_vsxregset): Remove.
6904
1d75a658
PFC
69052018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6906
6907 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6908 offset fields.
6909 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6910 for vector register offset fields.
6911 (ppc64_fbsd_reg_offsets): Likewise.
6912 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6913 to vector register offset fields.
6914 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6915 to vector register offset fields.
6916 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6917 vector register offset fields.
6918 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6919 initializers for vector register offset fields.
6920 (rs6000_aix64_reg_offsets): Likewise.
6921 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6922 (ppc_supply_vrregset): Remove.
6923 (ppc_collect_vrregset): Remove.
6924 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6925 (ppc_linux_vrregset) : New function.
6926 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6927 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6928 (ppc32_linux_vrregset): Remove.
6929 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6930 and use result instead of ppc32_linux_vrregset.
6931 (ppc32_linux_reg_offsets): Remove initializers for vector register
6932 offset fields.
6933 (ppc64_linux_reg_offsets): Likewise.
6934 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6935 * ppc-linux-nat.c: Include regset.h.
6936 (gdb_vrregset_t): Adjust comment to account for little-endian
6937 mode.
6938 (supply_vrregset, fill_vrregset): Remove.
6939 (fetch_altivec_register, store_altivec_register): Remove.
6940 (fetch_altivec_registers): Add regno parameter. Get regset using
6941 ppc_linux_vrregset. Use regset to supply registers.
6942 (store_altivec_registers): Add regno parameter. Get regset using
6943 ppc_linux_vrregset. Use regset to collect registers.
6944 (fetch_register): Call fetch_altivec_registers instead of
6945 fetch_altivec_register.
6946 (store_register): Call store_altivec_registers instead of
6947 store_altivec_register.
6948 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6949 the new regno parameter.
6950 (store_ppc_registers): Call store_altivec_registers with -1 for
6951 the new regno parameter.
6952
d078308a
PFC
69532018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6954
6955 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6956 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6957 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6958 (gdb_vrregset_t): Change array type size to
6959 PPC_LINUX_SIZEOF_VRREGSET.
6960 (gdb_vsxregset_t): Change array type size to
6961 PPC_LINUX_SIZEOF_VSXREGSET.
6962 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6963 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6964 PPC_LINUX_SIZEOF_VSXREGSET.
6965
2e077f5e
PFC
69662018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6967
6968 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6969 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6970 nat/ppc-linux.c.
6971 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6972 ppc_linux_target_wordsize with tid.
6973 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6974 wordsize with tid.
6975 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6976 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6977 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6978 tid parameter. Remove static specifier.
6979 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6980 (ppc_linux_target_wordsize): New declaration.
6981
bd64614e
PFC
69822018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6983
6984 * arch/ppc-linux-common.c: New file.
6985 * arch/ppc-linux-common.h: New file.
6986 * arch/ppc-linux-tdesc.h: New file.
6987 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6988 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6989 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6990 arch/ppc-linux-tdesc.h.
6991 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6992 arch/ppc-linux-tdesc.h.
6993 (ppc_linux_nat_target::read_description): Remove target
6994 description matching code. Fill a ppc_linux_features struct and
6995 call ppc_linux_match_description with it. Move comment about ISA
6996 2.05 to ppc-linux-common.c.
6997 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6998 arch/ppc-linux-tdesc.h.
6999 (ppc_linux_core_read_description): Remove target description
7000 matching code. Fill a ppc_linux_features struct and call
7001 ppc_linux_match_description with it.
7002 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7003 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7004 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7005 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7006 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7007 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7008 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7009 (tdesc_powerpc_e500l): Remove.
7010
241db429
JB
70112018-05-22 Joel Brobecker <brobecker@adacore.com>
7012
7013 * ada-lang.c (catch_assert_command): Pass empty string instead
7014 of NULL for excep_string argument.
7015
75d74cca
MR
70162018-05-22 Maciej W. Rozycki <macro@mips.com>
7017
7018 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7019 the width of the requested register exceeds the width of the
7020 `ptrace' data type.
7021
122b53ea
TT
70222018-05-21 Tom Tromey <tom@tromey.com>
7023
7024 * printcmd.c (output_command): Remove.
7025 (output_command_const): Rename to output_command.
7026 * valprint.h (output_command): Rename from output_command_const.
7027 * tracepoint.c (trace_dump_actions): Call output_command.
7028
bc18fbb5
TT
70292018-05-21 Tom Tromey <tom@tromey.com>
7030
7031 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7032 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7033 * ada-lang.h (create_ada_exception_catchpoint): Update.
7034 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7035 std::string.
7036 (create_excep_cond_exprs, ~ada_catchpoint)
7037 (should_stop_exception, print_one_exception)
7038 (print_mention_exception, print_recreate_exception): Update.
7039 (ada_get_next_arg): Remove.
7040 (catch_ada_exception_command_split): Use std::string. Change type
7041 of "excep_string", "cond_string".
7042 (catch_ada_exception_command): Update.
7043 (create_ada_exception_catchpoint): Change type of excep_string.
7044 (ada_exception_sal): Remove excep_string parameter.
7045 (~ada_catchpoint): Remove.
7046
790217f6
TT
70472018-05-21 Tom Tromey <tom@tromey.com>
7048
7049 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7050 cleanup.
7051
6f46ac85
TT
70522018-05-21 Tom Tromey <tom@tromey.com>
7053
7054 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7055 Return unique_xmalloc_ptr.
7056 (print_it_exception): Update.
7057
15b6611c
TT
70582018-05-21 Tom Tromey <tom@tromey.com>
7059
7060 * tracepoint.c (trace_dump_actions): Use std::string.
7061
c0c9f665
TT
70622018-05-21 Tom Tromey <tom@tromey.com>
7063
7064 * symfile.c (reread_symbols): Use std::string for original_name.
7065
22ca247e
TT
70662018-05-21 Tom Tromey <tom@tromey.com>
7067
7068 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7069 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7070 constructor.
7071
184cde75
SM
70722018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7073
7074 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7075 instance to...
7076 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7077 * objfiles.c (get_objfile_bfd_data): Allocate
7078 objfile_per_bfd_storage with obstack_new when allocating on
7079 obstack.
7080
e39db4db
SM
70812018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7082
7083 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7084 OBSTACK_ZALLOC.
7085 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7086 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7087 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7088 (add_pending): Likewise.
7089 (parse_symbol): Likewise.
7090 (parse_partial_symbols): Likewise.
7091 (psymtab_to_symtab_1): Likewise.
7092 (new_psymtab): Likewise.
7093 (elfmdebug_build_psymtabs): Likewise.
7094 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7095 * objfiles.c (get_objfile_bfd_data): Likewise.
7096 (objfile_register_static_link): Likewise.
7097 * psymtab.c (allocate_psymtab): Likewise.
7098 * stabsread.c (read_member_functions): Likewise.
7099 * xcoffread.c (xcoff_end_psymtab): Likewise.
7100
284a0e3c
SM
71012018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7102
7103 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7104 compiler supports std::is_trivially_constructible.
7105 * common/poison.h: Include obstack.h.
7106 (IsMallocable): Define to is_trivially_constructible if the
7107 compiler supports it, define to true_type otherwise.
7108 (xobnew): New.
7109 (XOBNEW): Redefine.
7110 (xobnewvec): New.
7111 (XOBNEWVEC): Redefine.
7112 * gdb_obstack.h (obstack_zalloc): New.
7113 (OBSTACK_ZALLOC): Redefine.
7114 (obstack_calloc): New.
7115 (OBSTACK_CALLOC): Redefine.
7116 (obstack_new): New.
7117 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7118 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7119 gdbarch.c.
7120 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7121 obstack_calloc/obstack_zalloc.
7122 (gdbarch_obstack_zalloc): Remove.
7123 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7124
59f66be3
PW
71252018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7126
7127 * stack.c (backtrace_command_1): Remove useless variable int i.
7128
50c65c2d
PW
71292018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7130
7131 * stack.c (print_frame_info): Fix comment.
7132
7ff8cb8c
TT
71332018-05-18 Tom Tromey <tom@tromey.com>
7134
7135 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7136 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7137 (~dwarf2_per_objfile): Update
7138 (dwarf2_get_dwz_file): Use new.
7139 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7140 unique_ptr.
7141
400174b1
TT
71422018-05-18 Tom Tromey <tom@tromey.com>
7143
7144 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7145 unique_ptr.
7146 * dwarf2read.c (struct dwp_file): Add constructor and
7147 initializers.
7148 (open_and_init_dwp_file): Return a unique_ptr.
7149 (dwarf2_per_objfile, create_dwp_hash_table)
7150 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7151 (lookup_dwo_unit_in_dwp): Update.
7152 (open_and_init_dwp_file, get_dwp_file): Update.
7153
3063847f
TT
71542018-05-18 Tom Tromey <tom@tromey.com>
7155
7156 * dwarf2read.c (dwarf2_per_objfile): Update.
7157 (struct mapped_index): Add initializers.
7158 (dwarf2_read_index): Use new.
7159 (dw2_symtab_iter_init): Update.
7160 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7161 unique_ptr.
7162
d3d02dee
SM
71632018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7164
7165 * dwarf2read.c (mapped_index) <total_size>: Remove.
7166
1d143c36
SM
71672018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7168
7169 * unittests/format_pieces-selftests.c (test_format_specifier):
7170 Add ARI comments.
7171
ce1e8424
TT
71722018-05-18 Tom Tromey <tom@tromey.com>
7173
7174 * c-typeprint.c (maybe_print_hole): New function.
7175 (c_print_type_struct_field_offset): Update.
7176 (c_type_print_base_struct_union): Call maybe_print_hole.
7177
ddfe970e
KS
71782018-05-17 Keith Seitz <keiths@redhat.com>
7179
7180 * breakpoint.c (build_bpstat_chain): New function, moved from
7181 bpstat_stop_status.
7182 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7183 If no stop chain is passed, call build_bpstat_chain to build it.
7184 * breakpoint.h (build_bpstat_chain): Declare.
7185 (bpstat_stop_status): Move documentation here from breakpoint.c.
7186 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7187 build the stop chain and pass it to skip_inline_frames.
7188 Pass this stop chain to bpstat_stop_status.
7189 * inline-frame.c: Include breakpoint.h.
7190 (stopped_by_user_bp_inline_frame): New function.
7191 (skip_inline_frames): Add parameter `stop_chain'.
7192 Move documention to inline-frame.h.
7193 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7194 whether the frame should be elided.
7195 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7196 Add moved documentation and update for new parameter.
7197
b17992c1
SM
71982018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7199
7200 PR cli/14975
7201 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7202 unittests/format_pieces-selftests.c.
7203 * common/format.h (format_piece) <operator==>: New.
7204 (format_pieces) <operator[]>: Remove.
7205 * common/format.c (format_pieces::format_pieces): Handle \e.
7206 * unittests/format_pieces-selftests.c: New.
7207
58f0c718
TT
72082018-05-17 Tom Tromey <tom@tromey.com>
7209
7210 PR symtab/23010:
7211 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7212 (dw2_instantiate_symtab): Add skip_partial parameter.
7213 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7214 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7215 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7216 (dw2_expand_symtabs_matching_one)
7217 (dw2_find_pc_sect_compunit_symtab)
7218 (dw2_debug_names_lookup_symbol)
7219 (dw2_debug_names_expand_symtabs_for_function): Update.
7220 (init_cutu_and_read_dies): Add skip_partial parameter.
7221 (process_psymtab_comp_unit, build_type_psymtabs_1)
7222 (process_skeletonless_type_unit, load_partial_comp_unit)
7223 (psymtab_to_symtab_1): Update.
7224 (load_full_comp_unit): Add skip_partial parameter.
7225 (process_imported_unit_die, dwarf2_read_addr_index)
7226 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7227 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7228 (read_signatured_type): Update.
7229
3e618834
SM
72302018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7231
7232 * value.c (release_value): Remove unused variable.
7233 (record_latest_value): Likewise.
7234 (access_value_history): Likewise.
7235 (preserve_values): Likewise.
7236
fe10fe31
TT
72372018-05-17 Tom Tromey <tom@tromey.com>
7238
7239 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7240 Initialize.
7241
1d761124
MR
72422018-05-16 Maciej W. Rozycki <macro@mips.com>
7243
7244 PR gdb/22286
7245 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7246 Also handle registers whose width is not a multiple of
7247 PTRACE_TYPE_RET.
7248 (linux_nat_trad_target::store_register): Likewise.
7249
06333fea
TT
72502018-05-16 Tom Tromey <tom@tromey.com>
7251
7252 * gdbcore.h (core_bfd): Redefine.
7253 * corelow.c (core_target::close): Update.
7254 (core_target_open): Update.
7255 * progspace.h (struct program_space) <cbfd>: Now a
7256 gdb_bfd_ref_ptr.
7257
921222e2
TT
72582018-05-16 Tom Tromey <tom@tromey.com>
7259
7260 PR cli/19551:
7261 * symfile-add-flags.h (enum symfile_add_flags)
7262 <SYMFILE_NOT_FILENAME>: New constant.
7263 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7264 objfile name from BFD.
7265 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7266 * minidebug.c (find_separate_debug_file_in_section): Put
7267 ".gnu_debugdata" into BFD's file name.
7268
3acb7083
SM
72692018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7270
7271 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7272 Remove.
7273
561a72d4
TC
72742018-05-15 Tamar Christina <tamar.christina@arm.com>
7275
7276 PR binutils/21446
7277 * aarch64-tdep.c (aarch64_analyze_prologue,
7278 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7279 Indicate not interested in errors.
7280
4e6ff0e1
MR
72812018-05-15 Maciej W. Rozycki <macro@mips.com>
7282
7283 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7284 Supply the MIPS_ZERO_REGNUM register.
7285
ea33cd92
MR
72862018-05-15 Maciej W. Rozycki <macro@mips.com>
7287
7288 * mips-tdep.c (mask_address_var): Make variable static.
7289
2d79090e
TT
72902018-05-14 Tom Tromey <tom@tromey.com>
7291
7292 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7293
cf4912ae
AB
72942018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7295
7296 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7297 FXSAVE_ADDR for the mxcsr register.
7298
67e6f569
MF
72992018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7300
7301 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7302
15244507
PA
73032018-05-11 Pedro Alves <palves@redhat.com>
7304
7305 * corelow.c (core_target) <core_target>: No longer inline.
7306 Initialize m_core_gdbarch, m_core_vec and build the section table
7307 here.
7308 <~core_target>: New.
7309 <core_gdbarch, get_core_register_section>: New methods.
7310 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7311 factored out from ...
7312 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7313 (core_ops): Delete.
7314 (sniff_core_bfd): Add gdbarch parameter.
7315 (core_close): Delete, merged into ...
7316 (core_target::close): ... here. Delete self.
7317 (core_close_cleanup): Delete.
7318 (core_target_open): Allocate a core_target on the heap. Use a
7319 unique_ptr instead of a cleanup. Bits moved into the core_target
7320 ctor. Adjust to use core_target methods instead of globals.
7321 (get_core_register_section): Rename to ...
7322 (core_target::get_core_register_section): ... this and adjust.
7323 (struct get_core_registers_cb_data): New.
7324 (get_core_registers_cb): Use it. Use bool.
7325 (core_target::fetch_registers, core_target::files_info)
7326 (core_target::xfer_partial, core_target::read_description)
7327 (core_target::pid_to, core_target::thread_name): Adjust to
7328 reference class fields instead of globals.
7329 * target.h (struct target_ops_deleter, target_ops_up): New.
7330
451953fa
PA
73312018-05-11 Pedro Alves <palves@redhat.com>
7332
7333 * corefile.c (core_file_command): Move to corelow.c.
7334 * corelow.c (the_core_target): Delete.
7335 (core_file_command): Moved from corefile.c. Check exec_bfd
7336 instead of the_core_target. Use target_detach instead of calling
7337 into the_core_target directly.
7338 (maybe_say_no_core_file_now): New.
7339 (core_target::detach): Use it.
7340 (_initialize_corelow): Remove references to the_core_target.
7341 * gdbcore.h (the_core_target): Delete.
7342
e540a5a2 73432018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 7344 Pedro Alves <palves@redhat.com>
e540a5a2
TT
7345
7346 * corefile.c (core_bfd): Remove.
7347 * gdbcore.h (core_bfd): Now a macro.
7348 * progspace.h (struct program_space) <cbfd>: New field.
7349
633cf254
TT
73502018-05-11 Tom Tromey <tom@tromey.com>
7351
7352 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7353 gdb::def_vector.
7354
1a34f210
TT
73552018-05-10 Tom Tromey <tom@tromey.com>
7356
7357 * configure: Rebuild.
7358 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7359
190852c8
JB
73602018-05-10 Joel Brobecker <brobecker@adacore.com>
7361
7362 PR server/23158:
7363 * regformats/regdat.sh: Adjust script, following the addition
7364 of the new expedite_regs parameter to init_target_desc.
7365
8727de56
OJ
73662018-05-10 Omair Javaid <omair.javaid@linaro.org>
7367
7368 PR gdb/23127
7369 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7370 set_gdbarch_significant_addr_bit.
7371 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7372 set_gdbarch_significant_addr_bit.
7373 * utils.c (address_significant): Update to sign extend addr.
7374
37d9e062
MF
73752018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7376
7377 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7378 (xtensa_linux_init_abi): Limit tdep->num_regs by
7379 tdep->num_nopriv_regs.
7380 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7381 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7382 not initialized.
7383
7402fbca
SM
73842018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7385
7386 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7387
8ee22052
AB
73882018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7389
7390 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7391 (I387_MXCSR_INIT_VAL): New constant.
7392 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7393 buffer if it was supplied by the inferior.
7394 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7395 (i387_xsave_get_clear_bv): New function.
7396 (i387_supply_xsave): Only read x87 control registers from the
7397 xsave buffer if the feature is enabled, and the state will have
7398 been written, otherwise, provide a suitable default.
7399 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7400 including x87 control registers. Update control registers if they
7401 have changed from the default value, and mark features as enabled
7402 as required.
7403 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7404
968ae51b
UW
74052018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7406
7407 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7408
aff689d3
TT
74092018-05-07 Tom Tromey <tom@tromey.com>
7410
7411 * configure: Rebuild.
7412 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7413
ce887586
TT
74142018-05-07 Tom Tromey <tom@tromey.com>
7415
7416 PR tdep/20362:
7417 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7418 bit. Use correct value for VDIV.
7419
85e26832
TT
74202018-05-04 Tom Tromey <tom@tromey.com>
7421
7422 * configure: Rebuild.
7423 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7424
449b1ac7
TT
74252018-05-04 Tom Tromey <tom@tromey.com>
7426
7427 * linux-record.c (record_linux_system_call) <case
7428 RECORD_SYS_RECVFROM>: Add "break".
7429
15c9ffd6
TT
74302018-05-04 Tom Tromey <tom@tromey.com>
7431
7432 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7433 Add missing "break".
7434 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7435 Add missing "break".
7436
e3829d13
TT
74372018-05-04 Tom Tromey <tom@tromey.com>
7438
7439 * rs6000-tdep.c (ppc_process_record_op4)
7440 (ppc_process_record_op63): Add fall-through comment.
7441
da0e1563
TT
74422018-05-04 Tom Tromey <tom@tromey.com>
7443
7444 * i386-tdep.c (i386_process_record): Add fall-through comment.
7445
0019cd49
TT
74462018-05-04 Tom Tromey <tom@tromey.com>
7447
7448 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7449 comment.
7450
565e0eda
TT
74512018-05-04 Tom Tromey <tom@tromey.com>
7452
7453 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7454 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7455 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7456 comment.
7457 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7458 comment.
7459 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7460 comment.
7461
621846f4
TT
74622018-05-04 Tom Tromey <tom@tromey.com>
7463
7464 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7465
86a73007
TT
74662018-05-04 Tom Tromey <tom@tromey.com>
7467
7468 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7469 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7470 * symfile.c (section_is_mapped): Fix fall-through comment.
7471 * stabsread.c (define_symbol, read_member_functions): Fix
7472 fall-through comment.
7473 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7474 comment.
7475 * remote.c (remote_wait_as): Fix fall-through comment.
7476 * p-exp.y (yylex): Fix fall-through comment.
7477 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7478 comment.
7479 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7480 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7481 * jv-exp.y (yylex): Fix fall-through comment.
7482 * go-exp.y (lex_one_token): Fix fall-through comment.
7483 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7484 fall-through comment.
7485 * f-exp.y (yylex): Fix fall-through comment.
7486 * dwarf2read.c (process_die): Fix fall-through comments.
7487 * dbxread.c (process_one_symbol): Fix fall-through comment.
7488 * d-exp.y (lex_one_token): Fix fall-through comment.
7489 * cp-name-parser.y (yylex): Fix fall-through comment.
7490 * coffread.c (coff_symtab_read): Fix fall-through comment.
7491 * c-exp.y (lex_one_token): Fix fall-through comment.
7492 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7493 comment.
7494 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7495 comment.
7496
56bcdbea
TT
74972018-05-04 Tom Tromey <tom@tromey.com>
7498
7499 PR python/22730:
7500 * NEWS: Mention gdb.execute change.
7501 * gdbcmd.h (execute_control_command): Don't declare.
7502 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7503 execute_control_commands, execute_control_commands_to_string.
7504 * cli/cli-script.h (execute_control_commands)
7505 (execute_control_commands_to_string): Declare.
7506 (execute_control_command): Add from_tty parameter.
7507 * cli/cli-script.c (execute_control_commands)
7508 (execute_control_commands_to_string): New functions.
7509 (execute_user_command): Use execute_control_commands.
7510 (execute_control_command_1): Add "from_tty" parameter. Update.
7511 (execute_control_command): Likewise.
7512
a913fffb
TT
75132018-05-04 Tom Tromey <tom@tromey.com>
7514
7515 PR python/22731:
7516 * NEWS: Mention that breakpoint commands are writable.
7517 * python/py-breakpoint.c (bppy_set_commands): New function.
7518 (breakpoint_object_getset) <"commands">: Use it.
7519
60b3cef2
TT
75202018-05-04 Tom Tromey <tom@tromey.com>
7521
7522 * tracepoint.c (actions_command): Update.
7523 * mi/mi-cmd-break.c (mi_command_line_array)
7524 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7525 (mi_read_next_line): Remove.
7526 (mi_cmd_break_commands): Update.
7527 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7528 function_view.
7529 * cli/cli-script.c (get_command_line): Update.
7530 (process_next_line): Use function_view. Constify.
7531 (recurse_read_control_structure, read_command_lines)
7532 (read_command_lines_1): Change argument types to function_view.
7533 (do_define_command, document_command): Update.
7534 * breakpoint.h (check_tracepoint_command): Don't declare.
7535 * breakpoint.c (check_tracepoint_command): Remove.
7536 (commands_command_1, create_tracepoint_from_upload): Update.
7537
7a2c85f2
TT
75382018-05-04 Tom Tromey <tom@tromey.com>
7539
7540 PR gdb/11750:
7541 * cli/cli-script.h (enum command_control_type) <define_control>:
7542 New constant.
7543 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7544 (build_command_line, execute_control_command_1)
7545 (process_next_line): Likewise.
7546 (do_define_command): New function, extracted from define_command.
7547 (define_command): Use it.
7548
295dc222
TT
75492018-05-04 Tom Tromey <tom@tromey.com>
7550
7551 * tracepoint.c (actions_command): Update.
7552 * cli/cli-script.h (read_command_lines): Update.
7553 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7554 (MAX_TMPBUF): Remove define.
7555 (define_command): Use string_printf.
7556 (document_command): Likewise.
7557 * breakpoint.c (commands_command_1): Update.
7558
1263a9d5
TT
75592018-05-04 Tom Tromey <tom@tromey.com>
7560
7561 * top.c (execute_command): Update.
7562 * cli/cli-script.h (print_command_lines): Now varargs.
7563 * cli/cli-script.c (print_command_lines): Now varargs.
7564 (execute_control_command_1) <case while_control, case if_control>:
7565 Update.
7566
12973681
TT
75672018-05-04 Tom Tromey <tom@tromey.com>
7568
7569 * tracepoint.c (all_tracepoint_actions): Rename from
7570 all_tracepoint_actions_and_cleanup. Change return type.
7571 (actions_command, encode_actions_1, encode_actions)
7572 (trace_dump_actions, tdump_command): Update.
7573 * remote.c (remote_download_command_source): Update.
7574 * python/python.c (gdbpy_eval_from_control_command)
7575 (python_command, python_interactive_command): Update.
7576 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7577 * guile/guile.c (guile_command)
7578 (gdbscm_eval_from_control_command, guile_command): Update.
7579 * compile/compile.c (compile_code_command)
7580 (compile_print_command, compile_to_object): Update.
7581 * cli/cli-script.h (struct command_lines_deleter): New.
7582 (counted_command_line): New typedef.
7583 (struct command_line): Add constructor, destructor.
7584 <body_list>: Remove.
7585 <body_list_0, body_list_1>: New members.
7586 (command_line_up): Remove typedef.
7587 (read_command_lines, read_command_lines_1, get_command_line):
7588 Update.
7589 (copy_command_lines): Don't declare.
7590 * cli/cli-script.c (build_command_line): Use "new".
7591 (get_command_line): Return counted_command_line.
7592 (print_command_lines, execute_user_command)
7593 (execute_control_command_1, while_command, if_command): Update.
7594 (realloc_body_list): Remove.
7595 (process_next_line, recurse_read_control_structure): Update.
7596 (read_command_lines, read_command_lines_1): Return counted_command_line.
7597 (free_command_lines): Use "delete".
7598 (copy_command_lines): Remove.
7599 (define_command, document_command, show_user_1): Update.
7600 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7601 a counted_command_line.
7602 * breakpoint.h (counted_command_line): Remove typedef.
7603 (breakpoint_set_commands): Update.
7604 * breakpoint.c (check_no_tracepoint_commands)
7605 (validate_commands_for_breakpoint): Update.
7606 (breakpoint_set_commands): Change commands to be a
7607 counted_command_line.
7608 (commands_command_1, update_dprintf_command_list)
7609 (create_tracepoint_from_upload): Update.
7610
e2fc72e2
TT
76112018-05-04 Tom Tromey <tom@tromey.com>
7612
7613 * cli/cli-decode.h (cmd_list_element): New constructor.
7614 (~cmd_list_element): New destructor.
7615 (struct cmd_list_element): Add initializers.
7616 * cli/cli-decode.c (do_add_cmd): Use "new".
7617 (delete_cmd): Use "delete".
7618
a3b60e45
JK
76192018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7620 Pedro Alves <palves@redhat.com>
7621
7622 PR breakpoints/19806 and support for PR external/20207.
7623 * NEWS: Mention Aarch64 watchpoint improvements.
7624 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7625 watchpoints and PR external/20207 watchpoints.
7626 * nat/aarch64-linux-hw-point.c
7627 (kernel_supports_any_contiguous_range): New.
7628 (aarch64_watchpoint_offset): New.
7629 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7630 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7631 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7632 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7633 next_addr_orig_p. Support PR external/20207 watchpoints.
7634 (aarch64_downgrade_regs): New.
7635 (aarch64_dr_state_insert_one_point): New parameters offset and
7636 addr_orig.
7637 (aarch64_dr_state_remove_one_point): Likewise.
7638 (aarch64_handle_breakpoint): Update caller.
7639 (aarch64_handle_aligned_watchpoint): Likewise.
7640 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7641 aligned_offset.
7642 (aarch64_linux_set_debug_regs): Remove const from state. Call
7643 aarch64_downgrade_regs.
7644 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7645 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7646 (DR_CONTROL_MASK): ... this.
7647 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7648 (unsigned int aarch64_watchpoint_offset): New prototype.
7649 (aarch64_linux_set_debug_regs): Remove const from state.
7650 * utils.c (align_up, align_down): Move to ...
7651 * common/common-utils.c (align_up, align_down): ... here.
7652 * utils.h (align_up, align_down): Move to ...
7653 * common/common-utils.h (align_up, align_down): ... here.
7654
05bc7456
JB
76552018-05-04 Joel Brobecker <brobecker@adacore.com>
7656
7657 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7658 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7659 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7660 Re-implement to match the ABI as summarized in GCC's
7661 gcc/config/sparc/sparc.c. All callers updated.
7662 (sparc32_store_arguments): Remove assertion.
7663
2f433492
TT
76642018-05-04 Tom Tromey <tom@tromey.com>
7665
7666 * printcmd.c: Don't include tui.h.
7667 (decode_format): Use skip_spaces.
7668
9be2ae8f
TT
76692018-05-04 Tom Tromey <tom@tromey.com>
7670
7671 PR gdb/22619:
7672 * printcmd.c (last_count): New global.
7673 (x_command): Use saved count when repeating.
7674
f0b3976b
TT
76752018-05-04 Tom Tromey <tom@tromey.com>
7676
7677 * nto-procfs.c (do_closedir_cleanup): Remove.
7678 (procfs_pidlist): Use gdb_dir_up.
7679 * procfs.c (do_closedir_cleanup): Remove.
7680 (proc_update_threads): Use gdb_dir_up.
7681 * common/filestuff.h (struct gdb_dir_deleter): New.
7682 (gdb_dir_up): New typedef.
7683
862d101a
TT
76842018-05-04 Tom Tromey <tom@tromey.com>
7685
7686 * ada-lang.c (print_mention_exception): Use std::string.
7687
cb7de75e
TT
76882018-05-04 Tom Tromey <tom@tromey.com>
7689
7690 * ada-lang.c (create_excep_cond_exprs): Update.
7691 (ada_exception_catchpoint_cond_string): Use std::string.
7692
49d83361
TT
76932018-05-04 Tom Tromey <tom@tromey.com>
7694
7695 * ada-lang.c (xget_renaming_scope): Return std::string.
7696 (old_renaming_is_invisible): Update.
7697
ade72a34
TT
76982018-05-04 Tom Tromey <tom@tromey.com>
7699
7700 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7701 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7702
2be4d7f0
UW
77032018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7704
7705 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7706
69b6ecb0
TT
77072018-05-04 Tom Tromey <tom@tromey.com>
7708
7709 * remote.c (remote_query_supported_append): Change type.
7710 (remote_check_symbols): Update.
7711
bf27f0e2
PP
77122018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7713
7714 PR gdb/11420
7715 * configure.ac: Prepend libpython.
7716 * python/python-config.py: Likewise.
7717 * configure: Regenerate.
7718
4ea17de8
SM
77192018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7720
7721 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7722
bd732259
PA
77232018-05-03 Pedro Alves <palves@redhat.com>
7724
7725 * s390-linux-nat.c
7726 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7727 override. Write 'true' instead of '1'.
7728 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7729 declaration.
7730
d9f719f1
PA
77312018-05-02 Pedro Alves <palves@redhat.com>
7732
7733 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7734 add_inf_child_target.
7735 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7736 add_inf_child_target.
7737 * aix-thread.c (aix_thread_target_info): New.
7738 (aix_thread_target) <shortname, longname, doc>: Delete.
7739 <info>: New.
7740 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7741 add_inf_child_target.
7742 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7743 add_inf_child_target.
7744 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7745 add_inf_child_target.
7746 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7747 add_inf_child_target.
7748 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7749 add_inf_child_target.
7750 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7751 add_inf_child_target.
7752 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7753 add_inf_child_target.
7754 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7755 add_inf_child_target.
7756 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7757 add_inf_child_target.
7758 * bfd-target.c (target_bfd_target_info): New.
7759 (target_bfd) <shortname, longname, doc>: Delete.
7760 <info>: New.
7761 * bsd-kvm.c (bsd_kvm_target_info): New.
7762 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7763 <info>: New.
7764 (bsd_kvm_target::open): Rename to ...
7765 (bsd_kvm_target_open): ... this. Adjust.
7766 * bsd-uthread.c (bsd_uthread_target_info): New.
7767 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7768 <info>: New.
7769 * corefile.c (core_file_command): Adjust.
7770 * corelow.c (core_target_info): New.
7771 (core_target) <shortname, longname, doc>: Delete.
7772 <info>: New.
7773 (core_target::open): Rename to ...
7774 (core_target_open): ... this. Adjust.
7775 * ctf.c (ctf_target_info): New.
7776 (ctf_target) <shortname, longname, doc>: Delete.
7777 <info>: New.
7778 (ctf_target::open): Rename to ...
7779 (ctf_target_open): ... this.
7780 (_initialize_ctf): Adjust.
7781 * exec.c (exec_target_info): New.
7782 (exec_target) <shortname, longname, doc>: Delete.
7783 <info>: New.
7784 (exec_target::open): Rename to ...
7785 (exec_target_open): ... this.
7786 * gdbcore.h (core_target_open): Declare.
7787 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7788 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7789 add_inf_child_target.
7790 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7791 add_inf_child_target.
7792 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7793 add_inf_child_target.
7794 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7795 add_inf_child_target.
7796 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7797 add_inf_child_target.
7798 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7799 add_inf_child_target.
7800 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7801 add_inf_child_target.
7802 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7803 add_inf_child_target.
7804 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7805 add_inf_child_target.
7806 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7807 add_inf_child_target.
7808 * inf-child.c (inf_child_target_info): New.
7809 (inf_child_target::info): New.
7810 (inf_child_open_target): Remove 'target' parameter. Use
7811 get_native_target instead.
7812 (inf_child_target::open): Delete.
7813 (add_inf_child_target): New.
7814 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7815 Delete.
7816 <info>: New.
7817 (add_inf_child_target): Declare.
7818 (inf_child_open_target): Declare.
7819 * linux-thread-db.c (thread_db_target_info): New.
7820 (thread_db_target) <shortname, longname, doc>: Delete.
7821 <info>: New.
7822 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7823 add_inf_child_target.
7824 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7825 add_inf_child_target.
7826 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7827 add_inf_child_target.
7828 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7829 add_inf_child_target.
7830 * make-target-delegates (print_class): Adjust.
7831 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7832 add_inf_child_target.
7833 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7834 add_inf_child_target.
7835 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7836 add_inf_child_target.
7837 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7838 add_inf_child_target.
7839 * nto-procfs.c (nto_native_target_info): New.
7840 (nto_procfs_target_native) <shortname, longname, doc>:
7841 Delete.
7842 <info>: New.
7843 (nto_procfs_target_info): New.
7844 (nto_procfs_target_procfs) <shortname, longname, doc>:
7845 Delete.
7846 <info>: New.
7847 (init_procfs_targets): Adjust.
7848 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7849 add_inf_child_target.
7850 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7851 add_inf_child_target.
7852 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7853 add_inf_child_target.
7854 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7855 add_inf_child_target.
7856 * ravenscar-thread.c (ravenscar_target_info): New.
7857 (ravenscar_thread_target) <shortname, longname, doc>:
7858 Delete.
7859 <info>: New.
7860 * record-btrace.c (record_btrace_target_info):
7861 (record_btrace_target) <shortname, longname, doc>: Delete.
7862 <info>: New.
7863 (record_btrace_target::open): Rename to ...
7864 (record_btrace_target_open): ... this. Adjust.
7865 * record-full.c (record_longname, record_doc): New.
7866 (record_full_base_target) <shortname, longname, doc>: Delete.
7867 <info>: New.
7868 (record_full_target_info): New.
7869 (record_full_target): <shortname>: Delete.
7870 <info>: New.
7871 (record_full_core_open_1, record_full_open_1): Update comments.
7872 (record_full_base_target::open): Rename to ...
7873 (record_full_open): ... this.
7874 (cmd_record_full_restore): Update.
7875 (_initialize_record_full): Update.
7876 * remote-sim.c (remote_sim_target_info): New.
7877 (gdbsim_target) <shortname, longname, doc>: Delete.
7878 <info>: New.
7879 (gdbsim_target::open): Rename to ...
7880 (gdbsim_target_open): ... this.
7881 (_initialize_remote_sim): Adjust.
7882 * remote.c (remote_doc): New.
7883 (remote_target_info): New.
7884 (remote_target) <shortname, longname, doc>: Delete.
7885 <info>: New.
7886 (extended_remote_target_info): New.
7887 (extended_remote_target) <shortname, longname, doc>: Delete.
7888 <info>: New.
7889 (remote_target::open_1): Make static. Adjust.
7890 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7891 * s390-linux-nat.c (_initialize_s390_nat): Use
7892 add_inf_child_target.
7893 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7894 add_inf_child_target.
7895 * sol-thread.c (thread_db_target_info): New.
7896 (sol_thread_target) <shortname, longname, doc>: Delete.
7897 <info>: New.
7898 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7899 add_inf_child_target.
7900 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7901 add_inf_child_target.
7902 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7903 add_inf_child_target.
7904 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7905 add_inf_child_target.
7906 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7907 add_inf_child_target.
7908 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7909 add_inf_child_target.
7910 * spu-linux-nat.c (_initialize_spu_nat): Use
7911 add_inf_child_target.
7912 * spu-multiarch.c (spu_multiarch_target_info): New.
7913 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7914 <info>: New.
7915 * target-delegates.c: Regenerate.
7916 * target.c: Include <unordered_map>.
7917 (target_ops_p): Delete.
7918 (DEF_VEC_P(target_ops_p)): Delete.
7919 (target_factories): New.
7920 (test_target_info): New.
7921 (test_target_ops::info): New.
7922 (open_target): Adjust to use target_factories.
7923 (add_target_with_completer): Rename to ...
7924 (add_target): ... this. Change prototype. Register target_info
7925 and open callback in target_factories. Register target_info in
7926 command context instead of target_ops.
7927 (add_target): Delete old implementation.
7928 (add_deprecated_target_alias): Change prototype. Adjust.
7929 (the_native_target): New.
7930 (set_native_target, get_native_target): New.
7931 (find_default_run_target): Use the_native_target.
7932 (find_attach_target, find_run_target): Simplify.
7933 (target_ops::open): Delete.
7934 (dummy_target_info): New.
7935 (dummy_target::shortname, dummy_target::longname)
7936 (dummy_target::doc): Delete.
7937 (dummy_target::info): New.
7938 (debug_target::shortname, debug_target::longname)
7939 (debug_target::doc): Delete.
7940 (debug_target::info): New.
7941 * target.h (struct target_info): New.
7942 (target_ops::~target_ops): Add comment.
7943 (target_ops::info): New.
7944 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7945 longer virtual. Implement in terms of target_info.
7946 (set_native_target, get_native_target): Declare.
7947 (target_open_ftype): New.
7948 (add_target, add_target_with_completer)
7949 (add_deprecated_target_alias): Change prototype.
7950 (test_target) <shortname, longname, doc>: Delete.
7951 <info>: New.
7952 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7953 add_inf_child_target.
7954 * tracefile-tfile.c (tfile_target_info): New.
7955 (tfile_target) <shortname, longname, doc>: Delete.
7956 <info>: New.
7957 (tfile_target::open): Rename to ...
7958 (tfile_target_open): ... this.
7959 (_initialize_tracefile_tfile): Adjust.
7960 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7961 add_inf_child_target.
7962 * windows-nat.c (_initialize_windows_nat): Use
7963 add_inf_child_target.
7964 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7965 add_inf_child_target.
7966
135340af
PA
79672018-05-02 Pedro Alves <palves@redhat.com>
7968
7969 * linux-nat.h (linux_nat_target) <low_new_thread,
7970 low_delete_thread, low_new_fork, low_forget_process,
7971 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7972 New virtual methods.
7973 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7974 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7975 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7976 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7977 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7978 Delete.
7979 * linux-fork.c (delete_fork): Adjust to call low method.
7980 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7981 (linux_nat_new_fork, linux_nat_forget_process_hook)
7982 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7983 (linux_nat_status_is_event):
7984 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7985 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7986 to call low method.
7987 (sigtrap_is_event): Rename to ...
7988 (linux_nat_target::low_status_is_event): ... this.
7989 (linux_nat_set_status_is_event): Delete.
7990 (save_stop_reason, linux_nat_wait_1)
7991 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7992 low methods.
7993 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7994 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7995 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7996 (linux_nat_set_prepare_to_resume): Delete.
7997 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7998 low virtual methods.
7999 * amd64-linux-nat.c: Likewise.
8000 * arm-linux-nat.c: Likewise.
8001 * i386-linux-nat.c: Likewise.
8002 * ia64-linux-nat.c: Likewise.
8003 * mips-linux-nat.c: Likewise.
8004 * ppc-linux-nat.c: Likewise.
8005 * s390-linux-nat.c: Likewise.
8006 * sparc64-linux-nat.c: Likewise.
8007 * x86-linux-nat.c: Likewise.
8008 * x86-linux-nat.h: Include "nat/x86-linux.h".
8009 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8010 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8011 Override methods.
8012
57810aa7
PA
80132018-05-02 Pedro Alves <palves@redhat.com>
8014
8015 * target.h (target_ops)
8016 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8017 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8018 stopped_by_watchpoint, have_continuable_watchpoint,
8019 stopped_data_address, watchpoint_addr_within_range,
8020 can_accel_watchpoint_condition, can_run, thread_alive,
8021 has_all_memory, has_memory, has_stack, has_registers,
8022 has_execution, can_async_p, is_async_p, supports_non_stop,
8023 always_non_stop_p, can_execute_reverse, supports_multi_process,
8024 supports_enable_disable_tracepoint,
8025 supports_disable_randomization, supports_string_tracing,
8026 supports_evaluation_of_breakpoint_conditions,
8027 can_run_breakpoint_commands, filesystem_is_local,
8028 can_download_tracepoint, get_trace_state_variable_value,
8029 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8030 record_is_replaying, record_will_replay,
8031 augmented_libraries_svr4_read>: Adjust to return bool.
8032 * aarch64-linux-nat.c: All implementations adjusted.
8033 * aix-thread.c: All implementations adjusted.
8034 * arm-linux-nat.c: All implementations adjusted.
8035 * breakpoint.c: All implementations adjusted.
8036 * bsd-kvm.c: All implementations adjusted.
8037 * bsd-uthread.c: All implementations adjusted.
8038 * corelow.c: All implementations adjusted.
8039 * ctf.c: All implementations adjusted.
8040 * darwin-nat.c: All implementations adjusted.
8041 * darwin-nat.h: All implementations adjusted.
8042 * exec.c: All implementations adjusted.
8043 * fbsd-nat.c: All implementations adjusted.
8044 * fbsd-nat.h: All implementations adjusted.
8045 * gnu-nat.c: All implementations adjusted.
8046 * gnu-nat.h: All implementations adjusted.
8047 * go32-nat.c: All implementations adjusted.
8048 * ia64-linux-nat.c: All implementations adjusted.
8049 * inf-child.c: All implementations adjusted.
8050 * inf-child.h: All implementations adjusted.
8051 * inf-ptrace.c: All implementations adjusted.
8052 * inf-ptrace.h: All implementations adjusted.
8053 * linux-nat.c: All implementations adjusted.
8054 * linux-nat.h: All implementations adjusted.
8055 * mips-linux-nat.c: All implementations adjusted.
8056 * nto-procfs.c: All implementations adjusted.
8057 * ppc-linux-nat.c: All implementations adjusted.
8058 * procfs.c: All implementations adjusted.
8059 * ravenscar-thread.c: All implementations adjusted.
8060 * record-btrace.c: All implementations adjusted.
8061 * record-full.c: All implementations adjusted.
8062 * remote-sim.c: All implementations adjusted.
8063 * remote.c: All implementations adjusted.
8064 * s390-linux-nat.c: All implementations adjusted.
8065 * sol-thread.c: All implementations adjusted.
8066 * spu-multiarch.c: All implementations adjusted.
8067 * target-delegates.c: All implementations adjusted.
8068 * target.c: All implementations adjusted.
8069 * target.h: All implementations adjusted.
8070 * tracefile-tfile.c: All implementations adjusted.
8071 * tracefile.c: All implementations adjusted.
8072 * tracefile.h: All implementations adjusted.
8073 * windows-nat.c: All implementations adjusted.
8074 * x86-linux-nat.h: All implementations adjusted.
8075 * x86-nat.h: All implementations adjusted.
8076
ad6a4e2d
PA
80772018-05-02 Pedro Alves <palves@redhat.com>
8078
8079 * make-target-delegates (scan_target_h): Don't trim lines here.
8080 Replace sequences of tabs and/or whitespace with a single
8081 whitespace.
8082 (top level, parsing methods): Trim each line before processing it
8083 here.
8084
f6ac5f3d
PA
80852018-05-02 Pedro Alves <palves@redhat.com>
8086 John Baldwin <jhb@freebsd.org>
8087
8088 * target.h (enum strata) <debug_stratum>: New.
8089 (struct target_ops) <all delegation methods>: Replace by C++
8090 virtual methods, and drop "to_" prefix. All references updated
8091 throughout.
8092 <to_shortname, to_longname, to_doc, to_data,
8093 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8094 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8095 virtual methods. All references updated throughout.
8096 <can_attach, supports_terminal_ours, can_create_inferior,
8097 get_thread_control_capabilities, attach_no_wait>: New
8098 virtual methods.
8099 <insert_breakpoint, remove_breakpoint>: Now
8100 TARGET_DEFAULT_NORETURN methods.
8101 <info_proc>: Now returns bool.
8102 <to_magic>: Delete.
8103 (OPS_MAGIC): Delete.
8104 (current_target): Delete. All references replaced by references
8105 to ...
8106 (target_stack): ... this. New.
8107 (target_shortname, target_longname): Adjust.
8108 (target_can_run): Now a function declaration.
8109 (default_child_has_all_memory, default_child_has_memory)
8110 (default_child_has_stack, default_child_has_registers)
8111 (default_child_has_execution): Remove target_ops parameter.
8112 (complete_target_initialization): Delete.
8113 (memory_breakpoint_target): New template class.
8114 (test_target_ops): Refactor as a C++ class with virtual methods.
8115 * make-target-delegates (NAME_PART): Tighten.
8116 (POINTER_PART, CP_SYMBOL): New.
8117 (SIMPLE_RETURN_PART): Reimplement.
8118 (VEC_RETURN_PART): Expect less.
8119 (RETURN_PART, VIRTUAL_PART): New.
8120 (METHOD): Adjust to C++ virtual methods.
8121 (scan_target_h): Remove reference to C99.
8122 (dname): Output "target_ops::" prefix.
8123 (write_function_header): Adjust to output a C++ class method.
8124 (write_declaration): New.
8125 (write_delegator): Adjust to output a C++ class method.
8126 (tdname): Output "dummy_target::" prefix.
8127 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8128 method.
8129 (tdefault_names, debug_names): Delete.
8130 (return_types, tdefaults, styles, argtypes_array): New.
8131 (top level): All methods are delegators.
8132 (print_class): New.
8133 (top level): Print dummy_target and debug_target classes.
8134 * target-delegates.c: Regenerate.
8135 * target-debug.h (target_debug_print_enum_info_proc_what)
8136 (target_debug_print_thread_control_capabilities)
8137 (target_debug_print_thread_info_p): New.
8138 * target.c (dummy_target): Delete.
8139 (the_dummy_target, the_debug_target): New.
8140 (target_stack): Now extern.
8141 (set_targetdebug): Push/unpush debug target.
8142 (default_child_has_all_memory, default_child_has_memory)
8143 (default_child_has_stack, default_child_has_registers)
8144 (default_child_has_execution): Remove target_ops parameter.
8145 (complete_target_initialization): Delete.
8146 (add_target_with_completer): No longer call
8147 complete_target_initialization.
8148 (target_supports_terminal_ours): Use regular delegation.
8149 (update_current_target): Delete.
8150 (push_target): No longer check magic number. Don't call
8151 update_current_target.
8152 (unpush_target): Don't call update_current_target.
8153 (target_is_pushed): No longer check magic number.
8154 (target_require_runnable): Skip for all stratums over
8155 process_stratum.
8156 (target_ops::info_proc): New.
8157 (target_info_proc): Use find_target_at and
8158 find_default_run_target.
8159 (target_supports_disable_randomization): Use regular delegation.
8160 (target_get_osdata): Use find_target_at.
8161 (target_ops::open, target_ops::close, target_ops::can_attach)
8162 (target_ops::attach, target_ops::can_create_inferior)
8163 (target_ops::create_inferior, target_ops::can_run)
8164 (target_can_run): New.
8165 (default_fileio_target): Use regular delegation.
8166 (target_ops::fileio_open, target_ops::fileio_pwrite)
8167 (target_ops::fileio_pread, target_ops::fileio_fstat)
8168 (target_ops::fileio_close, target_ops::fileio_unlink)
8169 (target_ops::fileio_readlink): New.
8170 (target_fileio_open_1, target_fileio_unlink)
8171 (target_fileio_readlink): Always call the target method. Handle
8172 FILEIO_ENOSYS.
8173 (return_zero, return_zero_has_execution): Delete.
8174 (init_dummy_target): Delete.
8175 (dummy_target::dummy_target, dummy_target::shortname)
8176 (dummy_target::longname, dummy_target::doc)
8177 (debug_target::debug_target, debug_target::shortname)
8178 (debug_target::longname, debug_target::doc): New.
8179 (target_supports_delete_record): Use regular delegation.
8180 (setup_target_debug): Delete.
8181 (maintenance_print_target_stack): Skip debug_stratum.
8182 (initialize_targets): Instantiate the_dummy_target and
8183 the_debug_target.
8184 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8185 use target_stack.
8186 (target_auxv_search, fprint_target_auxv): Adjust.
8187 (info_auxv_command): Adjust to use target_stack.
8188 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8189 * exceptions.c (print_flush): Handle a NULL target_stack.
8190 * regcache.c (target_ops_no_register): Refactor as class with
8191 virtual methods.
8192
8193 * exec.c (exec_target): New class.
8194 (exec_ops): Now an exec_target.
8195 (exec_open, exec_close_1, exec_get_section_table)
8196 (exec_xfer_partial, exec_files_info, exec_has_memory)
8197 (exec_make_note_section): Refactor as exec_target methods.
8198 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8199 Delete.
8200 (exec_target::find_memory_regions): New.
8201 (_initialize_exec): Don't call init_exec_ops.
8202 * gdbcore.h (exec_file_clear): Delete.
8203
8204 * corefile.c (core_target): Delete.
8205 (core_file_command): Adjust.
8206 * corelow.c (core_target): New class.
8207 (the_core_target): New.
8208 (core_close): Remove target_ops parameter.
8209 (core_close_cleanup): Adjust.
8210 (core_target::close): New.
8211 (core_open, core_detach, get_core_registers, core_files_info)
8212 (core_xfer_partial, core_thread_alive, core_read_description)
8213 (core_pid_to_str, core_thread_name, core_has_memory)
8214 (core_has_stack, core_has_registers, core_info_proc): Rework as
8215 core_target methods.
8216 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8217 (_initialize_corelow): Initialize the_core_target.
8218 * gdbcore.h (core_target): Delete.
8219 (the_core_target): New.
8220
8221 * ctf.c: (ctf_target): New class.
8222 (ctf_ops): Now a ctf_target.
8223 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8224 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8225 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8226 methods.
8227 (init_ctf_ops): Delete.
8228 (_initialize_ctf): Don't call it.
8229 * tracefile-tfile.c (tfile_target): New class.
8230 (tfile_ops): Now a tfile_target.
8231 (tfile_open, tfile_close, tfile_files_info)
8232 (tfile_get_tracepoint_status, tfile_trace_find)
8233 (tfile_fetch_registers, tfile_xfer_partial)
8234 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8235 Refactor as tfile_target methods.
8236 (tfile_xfer_partial_features): Remove target_ops parameter.
8237 (init_tfile_ops): Delete.
8238 (_initialize_tracefile_tfile): Don't call it.
8239 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8240 (tracefile_has_stack, tracefile_has_registers)
8241 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8242 tracefile_target methods.
8243 (init_tracefile_ops): Delete.
8244 (tracefile_target::tracefile_target): New.
8245 * tracefile.h: Include "target.h".
8246 (tracefile_target): New class.
8247 (init_tracefile_ops): Delete.
8248
8249 * spu-multiarch.c (spu_multiarch_target): New class.
8250 (spu_ops): Now a spu_multiarch_target.
8251 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8252 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8253 (spu_search_memory, spu_mourn_inferior): Refactor as
8254 spu_multiarch_target methods.
8255 (init_spu_ops): Delete.
8256 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8257 complete_target_initialization.
8258
8259 * ravenscar-thread.c (ravenscar_thread_target): New class.
8260 (ravenscar_ops): Now a ravenscar_thread_target.
8261 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8262 (ravenscar_thread_alive, ravenscar_pid_to_str)
8263 (ravenscar_fetch_registers, ravenscar_store_registers)
8264 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8265 (ravenscar_stopped_by_hw_breakpoint)
8266 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8267 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8268 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8269 methods.
8270 (init_ravenscar_thread_ops): Delete.
8271 (_initialize_ravenscar): Remove references to
8272 init_ravenscar_thread_ops and complete_target_initialization.
8273
8274 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8275 (bsd_uthread_target): New class.
8276 (bsd_uthread_ops): Now a bsd_uthread_target.
8277 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8278 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8279 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8280 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8281 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8282 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8283 (bsd_uthread_target): Delete function.
8284 (_initialize_bsd_uthread): Remove reference to
8285 complete_target_initialization.
8286
8287 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8288 (target_bfd): ... this new class.
8289 (target_bfd_xfer_partial, target_bfd_get_section_table)
8290 (target_bfd_close): Refactor as target_bfd methods.
8291 (target_bfd::~target_bfd): New.
8292 (target_bfd_reopen): Adjust.
8293 (target_bfd::close): New.
8294
8295 * record-btrace.c (record_btrace_target): New class.
8296 (record_btrace_ops): Now a record_btrace_target.
8297 (record_btrace_open, record_btrace_stop_recording)
8298 (record_btrace_disconnect, record_btrace_close)
8299 (record_btrace_async, record_btrace_info)
8300 (record_btrace_insn_history, record_btrace_insn_history_range)
8301 (record_btrace_insn_history_from, record_btrace_call_history)
8302 (record_btrace_call_history_range)
8303 (record_btrace_call_history_from, record_btrace_record_method)
8304 (record_btrace_is_replaying, record_btrace_will_replay)
8305 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8306 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8307 (record_btrace_store_registers, record_btrace_prepare_to_store)
8308 (record_btrace_to_get_unwinder)
8309 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8310 (record_btrace_commit_resume, record_btrace_wait)
8311 (record_btrace_stop, record_btrace_can_execute_reverse)
8312 (record_btrace_stopped_by_sw_breakpoint)
8313 (record_btrace_supports_stopped_by_sw_breakpoint)
8314 (record_btrace_stopped_by_hw_breakpoint)
8315 (record_btrace_supports_stopped_by_hw_breakpoint)
8316 (record_btrace_update_thread_list, record_btrace_thread_alive)
8317 (record_btrace_goto_begin, record_btrace_goto_end)
8318 (record_btrace_goto, record_btrace_stop_replaying_all)
8319 (record_btrace_execution_direction)
8320 (record_btrace_prepare_to_generate_core)
8321 (record_btrace_done_generating_core): Refactor as
8322 record_btrace_target methods.
8323 (init_record_btrace_ops): Delete.
8324 (_initialize_record_btrace): Remove reference to
8325 init_record_btrace_ops.
8326 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8327 the execution_direction global.
8328 (record_full_base_target, record_full_target)
8329 (record_full_core_target): New classes.
8330 (record_full_ops): Now a record_full_target.
8331 (record_full_core_ops): Now a record_full_core_target.
8332 (record_full_target::detach, record_full_target::disconnect)
8333 (record_full_core_target::disconnect)
8334 (record_full_target::mourn_inferior, record_full_target::kill):
8335 New.
8336 (record_full_open, record_full_close, record_full_async): Refactor
8337 as methods of the record_full_base_target class.
8338 (record_full_resume, record_full_commit_resume): Refactor
8339 as methods of the record_full_target class.
8340 (record_full_wait, record_full_stopped_by_watchpoint)
8341 (record_full_stopped_data_address)
8342 (record_full_stopped_by_sw_breakpoint)
8343 (record_full_supports_stopped_by_sw_breakpoint)
8344 (record_full_stopped_by_hw_breakpoint)
8345 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8346 methods of the record_full_base_target class.
8347 (record_full_store_registers, record_full_xfer_partial)
8348 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8349 Refactor as methods of the record_full_target class.
8350 (record_full_can_execute_reverse, record_full_get_bookmark)
8351 (record_full_goto_bookmark, record_full_execution_direction)
8352 (record_full_record_method, record_full_info, record_full_delete)
8353 (record_full_is_replaying, record_full_will_replay)
8354 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8355 (record_full_stop_replaying): Refactor as methods of the
8356 record_full_base_target class.
8357 (record_full_core_resume, record_full_core_kill)
8358 (record_full_core_fetch_registers)
8359 (record_full_core_prepare_to_store)
8360 (record_full_core_store_registers, record_full_core_xfer_partial)
8361 (record_full_core_insert_breakpoint)
8362 (record_full_core_remove_breakpoint)
8363 (record_full_core_has_execution): Refactor
8364 as methods of the record_full_core_target class.
8365 (record_full_base_target::supports_delete_record): New.
8366 (init_record_full_ops): Delete.
8367 (init_record_full_core_ops): Delete.
8368 (record_full_save): Refactor as method of the
8369 record_full_base_target class.
8370 (_initialize_record_full): Remove references to
8371 init_record_full_ops and init_record_full_core_ops.
8372
8373 * remote.c (remote_target, extended_remote_target): New classes.
8374 (remote_ops): Now a remote_target.
8375 (extended_remote_ops): Now an extended_remote_target.
8376 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8377 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8378 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8379 (remote_pass_signals, remote_set_syscall_catchpoint)
8380 (remote_program_signals, )
8381 (remote_thread_always_alive): Remove target_ops parameter.
8382 (remote_thread_alive, remote_thread_name)
8383 (remote_update_thread_list, remote_threads_extra_info)
8384 (remote_static_tracepoint_marker_at)
8385 (remote_static_tracepoint_markers_by_strid)
8386 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8387 (remote_open): Refactor as methods of remote_target.
8388 (extended_remote_open, extended_remote_detach)
8389 (extended_remote_attach, extended_remote_post_attach):
8390 (extended_remote_supports_disable_randomization)
8391 (extended_remote_create_inferior): : Refactor as method of
8392 extended_remote_target.
8393 (remote_set_permissions, remote_open_1, remote_detach)
8394 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8395 (remote_resume, remote_commit_resume, remote_stop)
8396 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8397 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8398 (remote_prepare_to_store, remote_store_registers)
8399 (remote_flash_erase, remote_flash_done, remote_files_info)
8400 (remote_kill, remote_mourn, remote_insert_breakpoint)
8401 (remote_remove_breakpoint, remote_insert_watchpoint)
8402 (remote_watchpoint_addr_within_range)
8403 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8404 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8405 (remote_supports_stopped_by_sw_breakpoint)
8406 (remote_stopped_by_hw_breakpoint)
8407 (remote_supports_stopped_by_hw_breakpoint)
8408 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8409 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8410 (remote_verify_memory): Refactor as methods of remote_target.
8411 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8412 parameter.
8413 (remote_xfer_partial, remote_get_memory_xfer_limit)
8414 (remote_search_memory, remote_rcmd, remote_memory_map)
8415 (remote_pid_to_str, remote_get_thread_local_address)
8416 (remote_get_tib_address, remote_read_description): Refactor as
8417 methods of remote_target.
8418 (remote_target::fileio_open, remote_target::fileio_pwrite)
8419 (remote_target::fileio_pread, remote_target::fileio_close): New.
8420 (remote_hostio_readlink, remote_hostio_fstat)
8421 (remote_filesystem_is_local, remote_can_execute_reverse)
8422 (remote_supports_non_stop, remote_supports_disable_randomization)
8423 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8424 (remote_supports_enable_disable_tracepoint)
8425 (remote_supports_string_tracing)
8426 (remote_can_run_breakpoint_commands, remote_trace_init)
8427 (remote_download_tracepoint, remote_can_download_tracepoint)
8428 (remote_download_trace_state_variable, remote_enable_tracepoint)
8429 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8430 (remote_trace_start, remote_get_trace_status)
8431 (remote_get_tracepoint_status, remote_trace_stop)
8432 (remote_trace_find, remote_get_trace_state_variable_value)
8433 (remote_save_trace_data, remote_get_raw_trace_data)
8434 (remote_set_disconnected_tracing, remote_core_of_thread)
8435 (remote_set_circular_trace_buffer, remote_traceframe_info)
8436 (remote_get_min_fast_tracepoint_insn_len)
8437 (remote_set_trace_buffer_size, remote_set_trace_notes)
8438 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8439 (remote_disable_btrace, remote_teardown_btrace)
8440 (remote_read_btrace, remote_btrace_conf)
8441 (remote_augmented_libraries_svr4_read, remote_load)
8442 (remote_pid_to_exec_file, remote_can_do_single_step)
8443 (remote_execution_direction, remote_thread_handle_to_thread_info):
8444 Refactor as methods of remote_target.
8445 (init_remote_ops, init_extended_remote_ops): Delete.
8446 (remote_can_async_p, remote_is_async_p, remote_async)
8447 (remote_thread_events, remote_upload_tracepoints)
8448 (remote_upload_trace_state_variables): Refactor as methods of
8449 remote_target.
8450 (_initialize_remote): Remove references to init_remote_ops and
8451 init_extended_remote_ops.
8452
8453 * remote-sim.c (gdbsim_target): New class.
8454 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8455 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8456 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8457 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8458 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8459 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8460 Refactor as methods of gdbsim_target.
8461 (gdbsim_ops): Now a gdbsim_target.
8462 (init_gdbsim_ops): Delete.
8463 (gdbsim_cntrl_c): Adjust.
8464 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8465
8466 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8467 (the_amd64_linux_nat_target): New.
8468 (amd64_linux_fetch_inferior_registers)
8469 (amd64_linux_store_inferior_registers): Refactor as methods of
8470 amd64_linux_nat_target.
8471 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8472 * i386-linux-nat.c: Don't include "linux-nat.h".
8473 (i386_linux_nat_target): New class.
8474 (the_i386_linux_nat_target): New.
8475 (i386_linux_fetch_inferior_registers)
8476 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8477 as methods of i386_linux_nat_target.
8478 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8479 * inf-child.c (inf_child_ops): Delete.
8480 (inf_child_fetch_inferior_registers)
8481 (inf_child_store_inferior_registers): Delete.
8482 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8483 methods of inf_child_target.
8484 (inf_child_target::supports_terminal_ours)
8485 (inf_child_target::terminal_init)
8486 (inf_child_target::terminal_inferior)
8487 (inf_child_target::terminal_ours_for_output)
8488 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8489 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8490 New.
8491 (inf_child_open, inf_child_disconnect, inf_child_close)
8492 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8493 (inf_child_post_startup_inferior, inf_child_can_run)
8494 (inf_child_pid_to_exec_file): Refactor as methods of
8495 inf_child_target.
8496 (inf_child_follow_fork): Delete.
8497 (inf_child_target::can_create_inferior)
8498 (inf_child_target::can_attach): New.
8499 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8500 (inf_child_target::has_stack, inf_child_target::has_registers)
8501 (inf_child_target::has_execution): New.
8502 (inf_child_fileio_open, inf_child_fileio_pwrite)
8503 (inf_child_fileio_pread, inf_child_fileio_fstat)
8504 (inf_child_fileio_close, inf_child_fileio_unlink)
8505 (inf_child_fileio_readlink, inf_child_use_agent)
8506 (inf_child_can_use_agent): Refactor as methods of
8507 inf_child_target.
8508 (return_zero, inf_child_target): Delete.
8509 (inf_child_target::inf_child_target): New.
8510 * inf-child.h: Include "target.h".
8511 (inf_child_target): Delete function prototype.
8512 (inf_child_target): New class.
8513 (inf_child_open_target, inf_child_mourn_inferior)
8514 (inf_child_maybe_unpush_target): Delete.
8515 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8516 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8517 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8518 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8519 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8520 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8521 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8522 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8523 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8524 methods of inf_ptrace_target.
8525 (inf_ptrace_target): Delete function.
8526 * inf-ptrace.h: Include "inf-child.h".
8527 (inf_ptrace_target): Delete function declaration.
8528 (inf_ptrace_target): New class.
8529 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8530 * linux-nat.c (linux_target): New.
8531 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8532 (linux_nat_target::~linux_nat_target): New.
8533 (linux_child_post_attach, linux_child_post_startup_inferior)
8534 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8535 (linux_child_remove_fork_catchpoint)
8536 (linux_child_insert_vfork_catchpoint)
8537 (linux_child_remove_vfork_catchpoint)
8538 (linux_child_insert_exec_catchpoint)
8539 (linux_child_remove_exec_catchpoint)
8540 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8541 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8542 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8543 (linux_nat_stopped_data_address)
8544 (linux_nat_stopped_by_sw_breakpoint)
8545 (linux_nat_supports_stopped_by_sw_breakpoint)
8546 (linux_nat_stopped_by_hw_breakpoint)
8547 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8548 (linux_nat_kill, linux_nat_mourn_inferior)
8549 (linux_nat_xfer_partial, linux_nat_thread_alive)
8550 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8551 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8552 (linux_child_static_tracepoint_markers_by_strid)
8553 (linux_nat_is_async_p, linux_nat_can_async_p)
8554 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8555 (linux_nat_supports_multi_process)
8556 (linux_nat_supports_disable_randomization, linux_nat_async)
8557 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8558 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8559 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8560 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8561 methods of linux_nat_target.
8562 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8563 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8564 parameter.
8565 (check_stopped_by_watchpoint): Adjust.
8566 (linux_xfer_partial): Delete.
8567 (linux_target_install_ops, linux_target, linux_nat_add_target):
8568 Delete.
8569 (linux_nat_target::linux_nat_target): New.
8570 * linux-nat.h: Include "inf-ptrace.h".
8571 (linux_nat_target): New.
8572 (linux_target, linux_target_install_ops, linux_nat_add_target):
8573 Delete function declarations.
8574 (linux_target): Declare global.
8575 * linux-thread-db.c (thread_db_target): New.
8576 (thread_db_target::thread_db_target): New.
8577 (thread_db_ops): Delete.
8578 (the_thread_db_target): New.
8579 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8580 (thread_db_update_thread_list, thread_db_pid_to_str)
8581 (thread_db_extra_thread_info)
8582 (thread_db_thread_handle_to_thread_info)
8583 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8584 (thread_db_resume): Refactor as methods of thread_db_target.
8585 (init_thread_db_ops): Delete.
8586 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8587 * x86-linux-nat.c: Don't include "linux-nat.h".
8588 (super_post_startup_inferior): Delete.
8589 (x86_linux_nat_target::~x86_linux_nat_target): New.
8590 (x86_linux_child_post_startup_inferior)
8591 (x86_linux_read_description, x86_linux_enable_btrace)
8592 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8593 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8594 methods of x86_linux_nat_target.
8595 (x86_linux_create_target): Delete. Bits folded ...
8596 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8597 pointer.
8598 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8599 (x86_linux_nat_target): New class.
8600 (x86_linux_create_target): Delete.
8601 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8602 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8603 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8604 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8605 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8606 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8607 make extern.
8608 (x86_use_watchpoints): Delete.
8609 * x86-nat.h: Include "breakpoint.h" and "target.h".
8610 (x86_use_watchpoints): Delete.
8611 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8612 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8613 (x86_insert_watchpoint, x86_remove_watchpoint)
8614 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8615 (x86_stopped_by_hw_breakpoint): New declarations.
8616 (x86_nat_target): New template class.
8617
8618 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8619 (the_ppc_linux_nat_target): New.
8620 (ppc_linux_fetch_inferior_registers)
8621 (ppc_linux_can_use_hw_breakpoint)
8622 (ppc_linux_region_ok_for_hw_watchpoint)
8623 (ppc_linux_ranged_break_num_registers)
8624 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8625 (ppc_linux_insert_mask_watchpoint)
8626 (ppc_linux_remove_mask_watchpoint)
8627 (ppc_linux_can_accel_watchpoint_condition)
8628 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8629 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8630 (ppc_linux_watchpoint_addr_within_range)
8631 (ppc_linux_masked_watch_num_registers)
8632 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8633 (ppc_linux_read_description): Refactor as methods of
8634 ppc_linux_nat_target.
8635 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8636
8637 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8638 (procfs_target): New class.
8639 (the_procfs_target): New.
8640 (procfs_target): Delete function.
8641 (procfs_auxv_parse, procfs_attach, procfs_detach)
8642 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8643 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8644 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8645 (procfs_create_inferior, procfs_update_thread_list)
8646 (procfs_thread_alive, procfs_pid_to_str)
8647 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8648 (procfs_stopped_data_address, procfs_insert_watchpoint)
8649 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8650 (proc_find_memory_regions, procfs_info_proc)
8651 (procfs_make_note_section): Refactor as methods of procfs_target.
8652 (_initialize_procfs): Adjust.
8653 * sol-thread.c (sol_thread_target): New class.
8654 (sol_thread_ops): Now a sol_thread_target.
8655 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8656 (sol_thread_fetch_registers, sol_thread_store_registers)
8657 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8658 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8659 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8660 (init_sol_thread_ops): Delete.
8661 (_initialize_sol_thread): Adjust. Remove references to
8662 init_sol_thread_ops and complete_target_initialization.
8663
8664 * windows-nat.c (windows_nat_target): New class.
8665 (windows_fetch_inferior_registers)
8666 (windows_store_inferior_registers, windows_resume, windows_wait)
8667 (windows_attach, windows_detach, windows_pid_to_exec_file)
8668 (windows_files_info, windows_create_inferior)
8669 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8670 (windows_close, windows_pid_to_str, windows_xfer_partial)
8671 (windows_get_tib_address, windows_get_ada_task_ptid)
8672 (windows_thread_name, windows_thread_alive): Refactor as
8673 windows_nat_target methods.
8674 (do_initial_windows_stuff): Adjust.
8675 (windows_target): Delete function.
8676 (_initialize_windows_nat): Adjust.
8677
8678 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8679 (darwin_mourn_inferior, darwin_kill_inferior)
8680 (darwin_create_inferior, darwin_attach, darwin_detach)
8681 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8682 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8683 (darwin_supports_multi_process): Refactor as darwin_nat_target
8684 methods.
8685 (darwin_resume_to, darwin_files_info): Delete.
8686 (_initialize_darwin_inferior): Rename to ...
8687 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8688 * darwin-nat.h: Include "inf-child.h".
8689 (darwin_nat_target): New class.
8690 (darwin_complete_target): Delete.
8691 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8692 (darwin_target): New.
8693 (i386_darwin_fetch_inferior_registers)
8694 (i386_darwin_store_inferior_registers): Refactor as methods of
8695 darwin_nat_target.
8696 (darwin_complete_target): Delete, with ...
8697 (_initialize_i386_darwin_nat): ... bits factored out here.
8698
8699 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8700 (the_alpha_linux_nat_target): New.
8701 (alpha_linux_register_u_offset): Refactor as
8702 alpha_linux_nat_target method.
8703 (_initialize_alpha_linux_nat): Adjust.
8704 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8705 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8706 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8707 methods of linux_nat_trad_target.
8708 (linux_trad_target): Delete.
8709 * linux-nat-trad.h (linux_trad_target): Delete function.
8710 (linux_nat_trad_target): New class.
8711 * mips-linux-nat.c (mips_linux_nat_target): New class.
8712 (super_fetch_registers, super_store_registers, super_close):
8713 Delete.
8714 (the_mips_linux_nat_target): New.
8715 (mips64_linux_regsets_fetch_registers)
8716 (mips64_linux_regsets_store_registers)
8717 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8718 (mips_linux_register_u_offset, mips_linux_read_description)
8719 (mips_linux_can_use_hw_breakpoint)
8720 (mips_linux_stopped_by_watchpoint)
8721 (mips_linux_stopped_data_address)
8722 (mips_linux_region_ok_for_hw_watchpoint)
8723 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8724 (mips_linux_close): Refactor as methods of mips_linux_nat.
8725 (_initialize_mips_linux_nat): Adjust to C++ification.
8726
8727 * aix-thread.c (aix_thread_target): New class.
8728 (aix_thread_ops): Now an aix_thread_target.
8729 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8730 (aix_thread_fetch_registers, aix_thread_store_registers)
8731 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8732 (aix_thread_thread_alive, aix_thread_pid_to_str)
8733 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8734 Refactor as methods of aix_thread_target.
8735 (init_aix_thread_ops): Delete.
8736 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8737 and complete_target_initialization.
8738 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8739 (rs6000_nat_target): New class.
8740 (the_rs6000_nat_target): New.
8741 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8742 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8743 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8744 (super_create_inferior): Delete.
8745 (_initialize_rs6000_nat): Adjust to C++ification.
8746
8747 * arm-linux-nat.c (arm_linux_nat_target): New class.
8748 (the_arm_linux_nat_target): New.
8749 (arm_linux_fetch_inferior_registers)
8750 (arm_linux_store_inferior_registers, arm_linux_read_description)
8751 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8752 (arm_linux_remove_hw_breakpoint)
8753 (arm_linux_region_ok_for_hw_watchpoint)
8754 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8755 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8756 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8757 arm_linux_nat_target.
8758 (_initialize_arm_linux_nat): Adjust to C++ification.
8759
8760 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8761 (the_aarch64_linux_nat_target): New.
8762 (aarch64_linux_fetch_inferior_registers)
8763 (aarch64_linux_store_inferior_registers)
8764 (aarch64_linux_child_post_startup_inferior)
8765 (aarch64_linux_read_description)
8766 (aarch64_linux_can_use_hw_breakpoint)
8767 (aarch64_linux_insert_hw_breakpoint)
8768 (aarch64_linux_remove_hw_breakpoint)
8769 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8770 (aarch64_linux_region_ok_for_hw_watchpoint)
8771 (aarch64_linux_stopped_data_address)
8772 (aarch64_linux_stopped_by_watchpoint)
8773 (aarch64_linux_watchpoint_addr_within_range)
8774 (aarch64_linux_can_do_single_step): Refactor as methods of
8775 aarch64_linux_nat_target.
8776 (super_post_startup_inferior): Delete.
8777 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8778
8779 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8780 (the_hppa_linux_nat_target): New.
8781 (hppa_linux_fetch_inferior_registers)
8782 (hppa_linux_store_inferior_registers): Refactor as methods of
8783 hppa_linux_nat_target.
8784 (_initialize_hppa_linux_nat): Adjust to C++ification.
8785
8786 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8787 (the_ia64_linux_nat_target): New.
8788 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8789 (ia64_linux_stopped_data_address)
8790 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8791 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8792 ia64_linux_nat_target methods.
8793 (super_xfer_partial): Delete.
8794 (_initialize_ia64_linux_nat): Adjust to C++ification.
8795
8796 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8797 (the_m32r_linux_nat_target): New.
8798 (m32r_linux_fetch_inferior_registers)
8799 (m32r_linux_store_inferior_registers): Refactor as
8800 m32r_linux_nat_target methods.
8801 (_initialize_m32r_linux_nat): Adjust to C++ification.
8802
8803 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8804 (the_m68k_linux_nat_target): New.
8805 (m68k_linux_fetch_inferior_registers)
8806 (m68k_linux_store_inferior_registers): Refactor as
8807 m68k_linux_nat_target methods.
8808 (_initialize_m68k_linux_nat): Adjust to C++ification.
8809
8810 * s390-linux-nat.c (s390_linux_nat_target): New class.
8811 (the_s390_linux_nat_target): New.
8812 (s390_linux_fetch_inferior_registers)
8813 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8814 (s390_insert_watchpoint, s390_remove_watchpoint)
8815 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8816 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8817 (s390_auxv_parse, s390_read_description): Refactor as methods of
8818 s390_linux_nat_target.
8819 (_initialize_s390_nat): Adjust to C++ification.
8820
8821 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8822 (the_sparc_linux_nat_target): New.
8823 (_initialize_sparc_linux_nat): Adjust to C++ification.
8824 * sparc-nat.c (sparc_fetch_inferior_registers)
8825 (sparc_store_inferior_registers): Remove target_ops parameter.
8826 * sparc-nat.h (sparc_fetch_inferior_registers)
8827 (sparc_store_inferior_registers): Remove target_ops parameter.
8828 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8829 (the_sparc64_linux_nat_target): New.
8830 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8831
8832 * spu-linux-nat.c (spu_linux_nat_target): New class.
8833 (the_spu_linux_nat_target): New.
8834 (spu_child_post_startup_inferior, spu_child_post_attach)
8835 (spu_child_wait, spu_fetch_inferior_registers)
8836 (spu_store_inferior_registers, spu_xfer_partial)
8837 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8838 methods.
8839 (_initialize_spu_nat): Adjust to C++ification.
8840
8841 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8842 (the_tilegx_linux_nat_target): New.
8843 (fetch_inferior_registers, store_inferior_registers):
8844 Refactor as methods.
8845 (_initialize_tile_linux_nat): Adjust to C++ification.
8846
8847 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8848 (the_xtensa_linux_nat_target): New.
8849 (xtensa_linux_fetch_inferior_registers)
8850 (xtensa_linux_store_inferior_registers): Refactor as
8851 xtensa_linux_nat_target methods.
8852 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8853
8854 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8855 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8856 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8857 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8858 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8859 (fbsd_stopped_by_sw_breakpoint)
8860 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8861 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8862 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8863 (fbsd_post_startup_inferior, fbsd_post_attach)
8864 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8865 (fbsd_set_syscall_catchpoint)
8866 (super_xfer_partial, super_resume, super_wait)
8867 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8868 (fbsd_handle_debug_trap): Remove target_ops parameter.
8869 (fbsd_nat_add_target): Delete.
8870 * fbsd-nat.h: Include "inf-ptrace.h".
8871 (fbsd_nat_add_target): Delete.
8872 (USE_SIGTRAP_SIGINFO): Define.
8873 (fbsd_nat_target): New class.
8874
8875 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8876 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8877 (amd64bsd_target): Delete.
8878 * amd64-bsd-nat.h: New file.
8879 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8880 "x86-bsd-nat.h".
8881 (amd64_fbsd_nat_target): New class.
8882 (the_amd64_fbsd_nat_target): New.
8883 (amd64fbsd_read_description): Refactor as method of
8884 amd64_fbsd_nat_target.
8885 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8886 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8887 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8888 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8889 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8890 (i386bsd_target): Delete.
8891 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8892 (i386bsd_fetch_inferior_registers)
8893 (i386bsd_store_inferior_registers): Declare.
8894 (i386_bsd_nat_target): New class.
8895 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8896 (the_i386_fbsd_nat_target): New.
8897 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8898 i386_fbsd_nat_target methods.
8899 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8900 (_initialize_i386fbsd_nat): Adjust to C++ification.
8901 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8902 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8903 (_initialize_x86_bsd_nat): Adjust to C++ification.
8904 * x86-bsd-nat.h: Include "x86-nat.h".
8905 (x86bsd_target): Delete declaration.
8906 (x86bsd_nat_target): New class.
8907
8908 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8909 (the_aarch64_fbsd_nat_target): New.
8910 (aarch64_fbsd_fetch_inferior_registers)
8911 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8912 aarch64_fbsd_nat_target.
8913 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8914 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8915 (the_alpha_bsd_nat_target): New.
8916 (alphabsd_fetch_inferior_registers)
8917 (alphabsd_store_inferior_registers): Refactor as
8918 alpha_bsd_nat_target methods.
8919 (_initialize_alphabsd_nat): Refactor as methods of
8920 alpha_bsd_nat_target.
8921 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8922 (the_amd64_nbsd_nat_target): New.
8923 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8924 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8925 (the_amd64_obsd_nat_target): New.
8926 (_initialize_amd64obsd_nat): Adjust to C++ification.
8927 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8928 (the_arm_fbsd_nat_target): New.
8929 (arm_fbsd_fetch_inferior_registers)
8930 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8931 (_initialize_arm_fbsd_nat): Refactor as methods of
8932 arm_fbsd_nat_target.
8933 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8934 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8935 (the_arm_netbsd_nat_target): New.
8936 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8937 arm_netbsd_nat_target.
8938 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8939 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8940 (the_hppa_nbsd_nat_target): New.
8941 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8942 hppa_nbsd_nat_target methods.
8943 (_initialize_hppanbsd_nat): Adjust to C++ification.
8944 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8945 (the_hppa_obsd_nat_target): New.
8946 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8947 methods of hppa_obsd_nat_target.
8948 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8949 add_target.
8950 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8951 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8952 add_target.
8953 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8954 (_initialize_i386obsd_nat): Use add_target.
8955 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8956 (the_m68k_bsd_nat_target): New.
8957 (m68kbsd_fetch_inferior_registers)
8958 (m68kbsd_store_inferior_registers): Refactor as methods of
8959 m68k_bsd_nat_target.
8960 (_initialize_m68kbsd_nat): Adjust to C++ification.
8961 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8962 (the_mips_fbsd_nat_target): New.
8963 (mips_fbsd_fetch_inferior_registers)
8964 (mips_fbsd_store_inferior_registers): Refactor as methods of
8965 mips_fbsd_nat_target.
8966 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8967 add_target.
8968 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8969 (the_mips_nbsd_nat_target): New.
8970 (mipsnbsd_fetch_inferior_registers)
8971 (mipsnbsd_store_inferior_registers): Refactor as methods of
8972 mips_nbsd_nat_target.
8973 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8974 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8975 (the_mips64_obsd_nat_target): New.
8976 (mips64obsd_fetch_inferior_registers)
8977 (mips64obsd_store_inferior_registers): Refactor as methods of
8978 mips64_obsd_nat_target.
8979 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8980 add_target.
8981 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8982 nbsd_nat_target.
8983 * nbsd-nat.h: Include "inf-ptrace.h".
8984 (nbsd_nat_target): New class.
8985 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8986 (obsd_wait): Refactor as methods of obsd_nat_target.
8987 (obsd_add_target): Delete.
8988 * obsd-nat.h: Include "inf-ptrace.h".
8989 (obsd_nat_target): New class.
8990 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8991 (the_ppc_fbsd_nat_target): New.
8992 (ppcfbsd_fetch_inferior_registers)
8993 (ppcfbsd_store_inferior_registers): Refactor as methods of
8994 ppc_fbsd_nat_target.
8995 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8996 add_target.
8997 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8998 (the_ppc_nbsd_nat_target): New.
8999 (ppcnbsd_fetch_inferior_registers)
9000 (ppcnbsd_store_inferior_registers): Refactor as methods of
9001 ppc_nbsd_nat_target.
9002 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9003 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9004 (the_ppc_obsd_nat_target): New.
9005 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9006 methods of ppc_obsd_nat_target.
9007 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9008 add_target.
9009 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9010 (the_sh_nbsd_nat_target): New.
9011 (shnbsd_fetch_inferior_registers)
9012 (shnbsd_store_inferior_registers): Refactor as methods of
9013 sh_nbsd_nat_target.
9014 (_initialize_shnbsd_nat): Adjust to C++ification.
9015 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9016 (inf_ptrace_xfer_partial): Delete.
9017 (sparc_xfer_partial, sparc_target): Delete.
9018 * sparc-nat.h (sparc_fetch_inferior_registers)
9019 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9020 (sparc_target): Delete function declaration.
9021 (sparc_target): New template class.
9022 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9023 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9024 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9025 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9026 add_target.
9027 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9028 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9029 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9030 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9031 add_target.
9032 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9033 (the_vax_bsd_nat_target): New.
9034 (vaxbsd_fetch_inferior_registers)
9035 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9036 methods.
9037 (_initialize_vaxbsd_nat): Adjust to C++ification.
9038
9039 * bsd-kvm.c (bsd_kvm_target): New class.
9040 (bsd_kvm_ops): Now a bsd_kvm_target.
9041 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9042 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9043 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9044 bsd_kvm_target.
9045 (bsd_kvm_return_one): Delete.
9046 (bsd_kvm_add_target): Adjust to C++ification.
9047
9048 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9049 (nto_procfs_target_procfs): New classes.
9050 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9051 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9052 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9053 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9054 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9055 (procfs_remove_hw_breakpoint, procfs_resume)
9056 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9057 (procfs_kill_inferior, procfs_store_registers)
9058 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9059 as methods of nto_procfs_target.
9060 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9061 (nto_native_ops): Delete.
9062 (procfs_open, procfs_native_open): Delete.
9063 (nto_native_ops): Now an nto_procfs_target_native.
9064 (init_procfs_targets): Adjust to C++ification.
9065 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9066 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9067 Refactor as methods of nto_procfs_target.
9068
9069 * go32-nat.c (go32_nat_target): New class.
9070 (the_go32_nat_target): New.
9071 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9072 (go32_store_registers, go32_xfer_partial, go32_files_info)
9073 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9074 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9075 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9076 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9077 (go32_target): Delete.
9078 (_initialize_go32_nat): Adjust to C++ification.
9079
9080 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9081 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9082 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9083 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9084 gnu_nat_target.
9085 (gnu_target): Delete.
9086 * gnu-nat.h (gnu_target): Delete.
9087 (gnu_nat_target): New class.
9088 * i386-gnu-nat.c (gnu_base_target): New.
9089 (i386_gnu_nat_target): New class.
9090 (the_i386_gnu_nat_target): New.
9091 (_initialize_i386gnu_nat): Adjust to C++ification.
9092
3fffc070
PA
90932018-05-02 Pedro Alves <palves@redhat.com>
9094
9095 * bfd-target.c (target_bfd_xclose): Rename to ...
9096 (target_bfd_close): ... this.
9097 (target_bfd_reopen): Adjust.
9098 * target.c (target_close): Remove references to to_xclose.
9099 * target.h (target_ops::to_xclose): Delete.
9100 (target_ops::to_close): Update comments.
9101
6798487f
PA
91022018-05-02 Pedro Alves <palves@redhat.com>
9103
9104 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9105 "linux-nat.h".
9106 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9107 * inf-ptrace.c (inf_ptrace_register_u_offset)
9108 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9109 (inf_ptrace_store_register, inf_ptrace_store_registers)
9110 (inf_ptrace_trad_target): Move to ...
9111 * linux-nat-trad.c: ... this new file.
9112 * linux-nat-trad.h: New file.
9113 * linux-nat.c (linux_target_install_ops): Make extern.
9114 (linux_trad_target): Delete.
9115 * linux-nat.h (linux_trad_target): Delete declaration.
9116 (linux_target_install_ops): Declare.
9117 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9118 "linux-nat.h".
9119
c1955e17
PA
91202018-05-02 Pedro Alves <palves@redhat.com>
9121
9122 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9123 procfs_target/add_target here.
9124 * procfs.c (procfs_target): Make static.
9125 (_initialize_procfs): Call add_target here.
9126 * procfs.h (struct target_ops): Remove forward declaration.
9127 (procfs_target): Remove declaration.
9128 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9129
b5c8fcb1
PA
91302018-05-02 Pedro Alves <palves@redhat.com>
9131
9132 * procfs.c (procfs_stopped_by_watchpoint)
9133 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9134 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9135 Forward declare.
9136 (procfs_use_watchpoints): Delete, move contents...
9137 (procfs_target): ... here.
9138 * procfs.h (procfs_use_watchpoints): Delete declaration.
9139 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9140 procfs_use_watchpoints.
9141 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9142 procfs_use_watchpoints.
9143
0489430a
TT
91442018-05-02 Tom Tromey <tom@tromey.com>
9145
9146 PR python/20084:
9147 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9148 and var_zuinteger_unlimited.
9149 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9150 and PARAM_ZUINTEGER_UNLIMITED.
9151 (set_parameter_value): Handle var_zuinteger and
9152 var_zuinteger_unlimited.
9153 (add_setshow_generic): Likewise.
9154 (parmpy_init): Likewise.
9155
1632f8ba
DR
91562018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9157
9158 PR rust/23124
9159 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9160 pointer is not null before dereferencing it.
9161
76761936
TT
91622018-04-30 Tom Tromey <tom@tromey.com>
9163
9164 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9165 is_mi_like_p.
9166
2d33446d
TT
91672018-04-30 Tom Tromey <tom@tromey.com>
9168
9169 * breakpoint.c (mention): Remove use of is_mi_like_p.
9170 (print_mention_ranged_breakpoint): Likewise.
9171 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9172 of is_mi_like_p.
9173
f3c6abab
TT
91742018-04-30 Tom Tromey <tom@tromey.com>
9175
9176 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9177
40c03530
TT
91782018-04-30 Tom Tromey <tom@tromey.com>
9179
9180 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9181 (info_spu_event_command): Remove some uses of is_mi_like_p.
9182
2038b7fd
TT
91832018-04-30 Tom Tromey <tom@tromey.com>
9184
9185 * python/py-framefilter.c (py_print_single_arg)
9186 (enumerate_locals, py_print_args, py_print_frame): Remove some
9187 uses of is_mi_like_p.
9188
4904c3c6
TT
91892018-04-30 Tom Tromey <tom@tromey.com>
9190
9191 * ui-out.c: Update.
9192 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9193 * ui-out.h (ui_out::is_mi_like_p): Now const.
9194 (ui_out::do_is_mi_like_p): Now const.
9195 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9196
7c66fffc
TT
91972018-04-30 Tom Tromey <tom@tromey.com>
9198
9199 * varobj.c (varobj_set_visualizer): Use new_reference.
9200 * python/python.c (gdbpy_decode_line): Use new_reference.
9201 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9202 new_reference.
9203
bbfa6f00
TT
92042018-04-30 Tom Tromey <tom@tromey.com>
9205
9206 * varobj.c (install_new_value): Use new_reference.
9207 * value.h (value_incref): Return void. Swap intro comment with
9208 value_decref.
9209 * value.c (set_value_parent): Use new_reference.
9210 (value_incref): Return void. Update intro comment.
9211 (release_value): Use new_reference.
9212 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9213
1831a9f9
TT
92142018-04-30 Tom Tromey <tom@tromey.com>
9215
9216 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9217 * gdb_bfd.h (new_bfd_ref): Remove.
9218 (gdb_bfd_open): Update comment.
9219 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9220 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9221 (gdb_bfd_fdopenr): Use new_reference.
9222 * exec.c (exec_file_attach): Use new_reference.
9223
7c1b5f3d
TT
92242018-04-30 Tom Tromey <tom@tromey.com>
9225
9226 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9227 method.
9228
e11fb955
TT
92292018-04-30 Tom Tromey <tom@tromey.com>
9230
9231 * jit.c (jit_read_code_entry): Use type_align.
9232 * i386-tdep.c (i386_gdbarch_init): Don't call
9233 set_gdbarch_long_long_align_bit.
9234 * gdbarch.sh: Remove long_long_align_bit.
9235 * gdbarch.c, gdbarch.h: Rebuild.
9236 * arc-tdep.c (arc_type_align): New function.
9237 (arc_gdbarch_init): Use arc_type_align. Don't call
9238 set_gdbarch_long_long_align_bit.
9239
2fff16dd
TT
92402018-04-30 Tom Tromey <tom@tromey.com>
9241
9242 * rust-lang.c (rust_type_alignment): Remove.
9243 (rust_composite_type): Use type_align.
9244
6d7bb824
TT
92452018-04-30 Tom Tromey <tom@tromey.com>
9246
9247 * NEWS: Mention Type.align.
9248 * python/py-type.c (typy_get_alignof): New function.
9249 (type_object_getset): Add "alignof".
9250
007e1530
TT
92512018-04-30 Tom Tromey <tom@tromey.com>
9252
9253 PR exp/17095:
9254 * NEWS: Update.
9255 * std-operator.def (UNOP_ALIGNOF): New operator.
9256 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9257 New.
9258 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9259 * c-lang.c (c_op_print_tab): Add alignof.
9260 * c-exp.y (ALIGNOF): New token.
9261 (exp): Add "ALIGNOF" production.
9262 (ident_tokens): Add _Alignof and alignof.
9263
2b4424c3
TT
92642018-04-30 Tom Tromey <tom@tromey.com>
9265
9266 * i386-tdep.c (i386_type_align): New function.
9267 (i386_gdbarch_init): Update.
9268 * gdbarch.sh (type_align): New method.
9269 * gdbarch.c, gdbarch.h: Rebuild.
9270 * arch-utils.h (default_type_align): Declare.
9271 * arch-utils.c (default_type_align): New function.
9272 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9273 (struct type) <align_log2>: New field.
9274 <instance_flags>: Now a bitfield.
9275 (TYPE_RAW_ALIGN): New macro.
9276 (type_align, type_raw_align, set_type_align): Declare.
9277 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9278 functions.
9279 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9280 (get_alignment, maybe_set_alignment): New functions.
9281 (read_structure_type, read_enumeration_type, read_array_type)
9282 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9283 (read_subrange_type, read_base_type): Set type alignment.
9284
d33bc52e
SM
92852018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9286
9287 * dwarf2read.c (read_index_from_section): Use bool.
9288
e28b63a9
FG
92892018-04-29 Fabian Groffen <grobian@gentoo.org>
9290
9291 PR gdb/22950
9292 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9293 with #ifdef.
9294
cd8c76e4
JR
92952018-04-29 John Reiser <jreiser@BitWagon.com>
9296
9297 PR build/22873
9298 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9299 last step, and do it atomically.
9300
476d250e
AO
93012018-04-27 Alexandre Oliva <aoliva@redhat.com>
9302
9303 * compile/compile-c-types.c (convert_int, convert_float):
9304 Update for C FE v1.
9305
6873858b
TT
93062018-04-27 Tom Tromey <tom@tromey.com>
9307
9308 PR rust/22545:
9309 * rust-lang.c (rust_inclusive_range_type_p): New function.
9310 (rust_range): Handle inclusive ranges.
9311 (rust_compute_range): Likewise.
9312 * rust-exp.y (struct rust_op) <inclusive>: New field.
9313 (DOTDOTEQ): New constant.
9314 (range_expr): Add "..=" productions.
9315 (operator_tokens): Add "..=" token.
9316 (ast_range): Add "inclusive" parameter.
9317 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9318 ranges.
9319 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9320 bounds values.
9321 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9322 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9323 Update comments.
9324 * expprint.c (print_subexp_standard): Handle new bounds values.
9325 (dump_subexp_body_standard): Likewise.
9326
632e107b
TT
93272018-04-27 Tom Tromey <tom@tromey.com>
9328
9329 * configure: Rebuild.
9330 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9331 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9332 "OVERRIDE".
9333 (class symbol_needs_eval_context): Likewise.
9334 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9335 (mock_mapped_index::symbol_name_at): Use "override". Remove
9336 "virtual".
9337 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9338 "override".
9339 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9340 * aarch64-tdep.c (instruction_reader::read): Use "override".
9341 (instruction_reader_test::read): Likewise.
9342 * arm-tdep.c (instruction_reader::read): Use "override".
9343 (instruction_reader_thumb::read): Likewise.
9344
b75abf5b
AK
93452018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9346
9347 PR remote/9665
9348 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9349 instead of remote_send.
9350 (remote_send): Remove.
9351
79188d8d
PA
93522018-04-26 Pedro Alves <palves@redhat.com>
9353
9354 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9355 find_function_start_sal instead of find_pc_line.
9356
f50776aa
PA
93572018-04-26 Pedro Alves <palves@redhat.com>
9358
9359 * breakpoint.c (set_breakpoint_location_function): Handle
9360 mst_data_gnu_ifunc.
9361 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9362 * elfread.c (elf_symtab_read): Give data symbols with
9363 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9364 (elf_rel_plt_read): Update comment.
9365 * linespec.c (convert_linespec_to_sals): Handle
9366 mst_data_gnu_ifunc.
9367 (minsym_found): Handle mst_data_gnu_ifunc.
9368 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9369 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9370 * parse.c (find_minsym_type_and_address): Handle
9371 mst_data_gnu_ifunc.
9372 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9373 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9374 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9375 comment.
9376 <mst_data_gnu_ifunc>: New enumerator.
9377
20944a6e
PA
93782018-04-26 Pedro Alves <palves@redhat.com>
9379
9380 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9381 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9382 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9383 Handle it.
9384 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9385 (lookup_minimal_symbol_by_pc): Adjust.
9386 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9387 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9388 * minsyms.h (lookup_msym_prefer): New enum.
9389 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9390 parameter by a lookup_msym_prefer parameter.
9391
1adeb822
PA
93922018-04-26 Pedro Alves <palves@redhat.com>
9393
9394 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9395 ends in "@plt" instead of looking at the symbol's section.
9396
a0aca7b0
PA
93972018-04-26 Pedro Alves <palves@redhat.com>
9398
9399 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9400 all references.
9401 (find_pc_partial_function_gnu_ifunc): Rename to ...
9402 (find_pc_partial_function): ... this, and remove references to
9403 'is_gnu_ifunc_p'.
9404 (find_pc_partial_function): Delete old implementation.
9405 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9406
76af0f26
PA
94072018-04-26 Pedro Alves <palves@redhat.com>
9408
9409 * linespec.c (struct bound_minimal_symbol_search_key): New.
9410 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9411 skip first line if we found a GNU ifunc minimal symbol by name.
9412 (compare_msymbols): Change parameters to work with a destructured
9413 lhs minsym.
9414 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9415 functions.
9416
3467ec66
PA
94172018-04-26 Pedro Alves <palves@redhat.com>
9418
9419 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9420 ifunc targets here. Instead, if we have an ifunc minsym, use its
9421 address/name.
9422 (add_location_to_breakpoint): Store the minsym and the objfile in
9423 the breakpoint location.
9424 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9425 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9426 Record the minsym in the sal.
9427 * symtab.h (symtab_and_line) <msymbol>: New field.
9428
28f4fa4d
PA
94292018-04-26 Pedro Alves <palves@redhat.com>
9430
9431 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9432 unless we actually resolved the ifunc.
9433
ca31ab1d
PA
94342018-04-26 Pedro Alves <palves@redhat.com>
9435
9436 * c-exp.y (variable production): Prefer ifunc minsyms over
9437 regular function symbols.
9438 * symtab.c (find_gnu_ifunc): New function.
9439 * minsyms.h (lookup_msym_prefer): New enum.
9440 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9441 parameter by a lookup_msym_prefer parameter.
9442 * symtab.h (find_gnu_ifunc): New declaration.
9443
8388016d
PA
94442018-04-26 Pedro Alves <palves@redhat.com>
9445
9446 * blockframe.c (find_gnu_ifunc_target_type): New function.
9447 (find_function_type): New.
9448 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9449 return a value with a memory address.
9450 (eval_call): For calls to GNU ifunc functions, try to find the
9451 type of the target function from the type that the resolver
9452 returns.
9453 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9454 symbols.
9455 * infcall.c (find_function_return_type): Delete.
9456 (find_function_addr): Add 'function_type' parameter. For calls to
9457 GNU ifunc functions, try to find the type of the target function
9458 from the type that the resolver returns, and return it via
9459 FUNCTION_TYPE.
9460 (call_function_by_hand_dummy): Adjust to use the function type
9461 returned by find_function_addr.
9462 (find_function_addr): Add 'function_type' parameter and move
9463 description here.
9464 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9465 declarations.
9466
a376e11d
PA
94672018-04-26 Pedro Alves <palves@redhat.com>
9468
9469 * c-exp.y (variable production): Skip finding an alias for ifunc
9470 symbols.
9471
02e169e2
PA
94722018-04-26 Pedro Alves <palves@redhat.com>
9473
9474 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9475
249b5733
PA
94762018-04-25 Pedro Alves <palves@redhat.com>
9477
9478 * infcmd.c (kill_command): Print the pid as string, not the whole
9479 thread's ptid. Add comment. s/has been killed/killed/ in output
9480 message.
9481 * remote.c (remote_detach_1): Print the pid as string, not the
9482 whole thread's ptid.
9483
f67c0c91
SDJ
94842018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9485 Sergio Durigan Junior <sergiodj@redhat.com>
9486 Pedro Alves <palves@redhat.com>
9487
9488 * infcmd.c (kill_command): Print message when inferior has
9489 been killed.
9490 * inferior.c (print_inferior_events): Remove 'static'. Set as
9491 '1'.
9492 (add_inferior): Improve message printed when
9493 'print_inferior_events' is on.
9494 (exit_inferior): Remove message printed when
9495 'print_inferior_events' is on.
9496 (detach_inferior): Improve message printed when
9497 'print_inferior_events' is on.
9498 (initialize_inferiors): Use 'add_inferior_silent' to set
9499 'current_inferior_'.
9500 * inferior.h (print_inferior_events): Declare here as
9501 'extern'.
9502 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9503 '[Detaching...]' messages when 'print_inferior_events' is on.
9504 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9505 as prefix/suffix for messages. Remove periods. Fix erroneous
9506 'Detaching after fork from child...', replace it by '... from
9507 parent...'.
9508 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9509 prefix/suffix when printing 'Detaching...' messages. Print
9510 them when 'print_inferior_events' is on.
9511 * remote.c (remote_detach_1): Print message when detaching
9512 from inferior and '!is_fork_parent'.
9513
e427af18
TT
95142018-04-24 Tom Tromey <tom@tromey.com>
9515
9516 * cli-out.h: Reindent.
9517
05b1d8d6
TT
95182018-04-24 Tom Tromey <tom@tromey.com>
9519
9520 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9521 (cli_ui_out::do_field_string): Use fputs_filtered.
9522 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9523
a95c7dab
TT
95242018-04-23 Tom Tromey <tom@tromey.com>
9525
9526 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9527 gdb::unique_xmalloc_ptr.
9528
458412c3
TT
95292018-04-23 Tom Tromey <tom@tromey.com>
9530
9531 * configure: Rebuild.
9532
db86b02b
RS
95332018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9534
9535 PR gdb/23095
9536 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9537 prepare_for_testing. Set normal_bp to r_debug_state if target
9538 is bsd.
9539
00aecdcf
PA
95402018-04-21 Pedro Alves <palves@redhat.com>
9541 Rajendra SY <rajendra.sy@gmail.com>
9542
9543 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9544 * remote.c (extended_remote_attach): In all-stop mode, mark the
9545 thread as executing.
9546
224608c3
PW
95472018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9548
9549 * thread.c (thread_apply_all_command): Fix comment.
9550 (thread_command): Fix comment.
9551
3b74854b
AH
95522018-04-10 Alan Hayward <alan.hayward@arm.com>
9553
9554 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9555 parameter.
9556 * features/aarch64-core.c (create_feature_aarch64_core):
9557 Regenerate.
9558 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9559 Likewise.
9560 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9561 Likewise.
9562 * features/i386/32bit-avx512.c
9563 (create_feature_i386_32bit_avx512): Likewise.
9564 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9565 Likewise.
9566 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9567 Likewise.
9568 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9569 Likewise.
9570 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9571 Likewise.
9572 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9573 Likewise.
9574 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9575 Likewise.
9576 * features/i386/64bit-avx512.c
9577 (create_feature_i386_64bit_avx512): Likewise.
9578 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9579 Likewise.
9580 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9581 Likewise.
9582 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9583 Likewise.
9584 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9585 Likewise.
9586 * features/i386/64bit-segments.c
9587 (create_feature_i386_64bit_segments): Likewise.
9588 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9589 Likewise.
9590 * features/i386/x32-core.c
9591 (create_feature_i386_x32_core): Likewise.
9592 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9593 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9594 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9595 * target-descriptions.c: In generated code, don't pass xml
9596 filename.
9597
e98577a9
AH
95982018-04-18 Alan Hayward <alan.hayward@arm.com>
9599
9600 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9601 (print_xml_feature::visit_post): Likewise.
9602 (print_xml_feature::visit): Likewise.
9603 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9604 (print_xml_feature): Add new class.
9605 * regformats/regdat.sh: Null xmltarget on feature targets.
9606 * target-descriptions.c (struct target_desc): Add xmltarget.
9607 (maintenance_check_tdesc_xml_convert): Add unittest function.
9608 (tdesc_get_features_xml): Add function to get xml.
9609 (maintenance_check_xml_descriptions): Test xml generation.
9610 * xml-tdesc.c (string_read_description_xml): Add function.
9611 * xml-tdesc.h (string_read_description_xml): Add declaration.
9612
ad7fc756
AH
96132018-04-18 Alan Hayward <alan.hayward@arm.com>
9614
9615 * features/Makefile: Add feature marker to targets with new style
9616 target descriptions.
9617 * regformats/aarch64.dat: Regenerate.
9618 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9619 * regformats/i386/amd64-avx-linux.dat: Likewise.
9620 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9621 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9622 * regformats/i386/amd64-linux.dat: Likewise.
9623 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9624 * regformats/i386/amd64.dat: Likewise.
9625 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9626 * regformats/i386/i386-avx-linux.dat: Likewise.
9627 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9628 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9629 * regformats/i386/i386-linux.dat: Likewise.
9630 * regformats/i386/i386-mmx-linux.dat: Likewise.
9631 * regformats/i386/i386-mpx-linux.dat: Likewise.
9632 * regformats/i386/i386.dat: Likewise.
9633 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9634 * regformats/i386/x32-avx-linux.dat: Likewise.
9635 * regformats/i386/x32-linux.dat: Likewise.
9636 * regformats/tic6x-c62x-linux.dat: Likewise.
9637 * regformats/tic6x-c64x-linux.dat: Likewise.
9638 * regformats/tic6x-c64xp-linux.dat: Likewise.
9639 * regformats/regdat.sh: Parse feature marker.
9640
d278f585
AH
96412018-04-18 Alan Hayward <alan.hayward@arm.com>
9642
9643 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9644 (tdesc_osabi_name): Likewise.
9645 * target-descriptions.c (tdesc_architecture_name): Add new
9646 function.
9647 (tdesc_osabi_name): Likewise.
9648
eee8a18d
AH
96492018-04-18 Alan Hayward <alan.hayward@arm.com>
9650
9651 * common/tdesc.c (tdesc_predefined_type): Move to here.
9652 (tdesc_named_type): Likewise.
9653 (tdesc_create_vector): Likewise.
9654 (tdesc_create_struct): Likewise.
9655 (tdesc_set_struct_size): Likewise.
9656 (tdesc_create_union): Likewise.
9657 (tdesc_create_flags): Likewise.
9658 (tdesc_create_enum): Likewise.
9659 (tdesc_add_field): Likewise.
9660 (tdesc_add_typed_bitfield): Likewise.
9661 (tdesc_add_bitfield): Likewise.
9662 (tdesc_add_flag): Likewise.
9663 (tdesc_add_enum_value): Likewise.
9664 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9665 (struct tdesc_type_vector): Likewise.
9666 (struct tdesc_type_field): Likewise.
9667 (struct tdesc_type_with_fields): Likewise.
9668 (tdesc_create_enum): Add declaration.
9669 (tdesc_add_typed_bitfield): Likewise.
9670 (tdesc_add_enum_value): Likewise.
9671 * target-descriptions.c (tdesc_type_field): Move from here.
9672 (tdesc_type_builtin): Likewise.
9673 (tdesc_type_vector): Likewise.
9674 (tdesc_type_with_fields): Likewise.
9675 (tdesc_predefined_types): Likewise.
9676 (tdesc_named_type): Likewise.
9677 (tdesc_create_vector): Likewise.
9678 (tdesc_create_struct): Likewise.
9679 (tdesc_set_struct_size): Likewise.
9680 (tdesc_create_union): Likewise.
9681 (tdesc_create_flags): Likewise.
9682 (tdesc_create_enum): Likewise.
9683 (tdesc_add_field): Likewise.
9684 (tdesc_add_typed_bitfield): Likewise.
9685 (tdesc_add_bitfield): Likewise.
9686 (tdesc_add_flag): Likewise.
9687 (tdesc_add_enum_value): Likewise.
9688 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9689 (tdesc_add_typed_bitfield): Likewise.
9690 (tdesc_add_enum_value): Likewise.
9691
82ec9bc7
AH
96922018-04-18 Alan Hayward <alan.hayward@arm.com>
9693
9694 * common/tdesc.c (tdesc_feature::accept): Move to here.
9695 (tdesc_feature::operator==): Likewise.
9696 (tdesc_create_reg): Likewise.
9697 * common/tdesc.h (tdesc_type_kind): Likewise.
9698 (struct tdesc_type): Likewise.
9699 (struct tdesc_feature): Likewise.
9700 * regformats/regdat.sh: Create a feature.
9701 * target-descriptions.c (tdesc_type_kind): Move from here.
9702 (tdesc_type): Likewise.
9703 (tdesc_type_up): Likewise.
9704 (tdesc_feature): Likewise.
9705 (tdesc_create_reg): Likewise.
9706
ea3e7d71
AH
97072018-04-18 Alan Hayward <alan.hayward@arm.com>
9708
9709 * Makefile.in: Add arch/tdesc.c
9710 * common/tdesc.c: New file.
9711 * common/tdesc.h (tdesc_element_visitor): Move to here.
9712 (tdesc_element): Likewise.
9713 (tdesc_reg): Likewise.
9714 (tdesc_reg_up): Likewise.
9715 * regformats/regdef.h (reg): Add offset to constructors.
9716 * target-descriptions.c (tdesc_element_visitor): Move from here.
9717 (tdesc_element): Likewise.
9718 (tdesc_reg): Likewise.
9719 (tdesc_reg_up): Likewise.
9720
bedda9ac
TT
97212018-04-17 Tom Tromey <tom@tromey.com>
9722
9723 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9724 discriminant field.
9725
a037790e
TT
97262018-04-17 Tom Tromey <tom@tromey.com>
9727
9728 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9729
c7dcbf88
AA
97302018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9731
9732 * symtab.c (print_symbol_info): Skip printing filename and line
9733 number when `last' is NULL.
9734 (symtab_symbol_info): Use empty string instead of NULL for first
9735 invocation of print_symbol_info.
9736 (rbreak_command): Pass NULL to `last' parameter of
9737 print_symbol_info.
9738
07d28c77
SM
97392018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9740
9741 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9742 instead of nullptr.
9743
8a3de5e1
PA
97442018-04-16 Pedro Alves <palves@redhat.com>
9745
9746 * MAINTAINERS (sh): Remove.
9747 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9748 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9749 (ALLDEPFILES): Remove sh64-tdep.c.
9750 * NEWS: Mentions that support for SH-5/SH64 is removed.
9751 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9752 (sh*-*-openbsd*): Ditto.
9753 (sh64-*-elf*): Remove.
9754 (sh*): Remove.
9755 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9756 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9757 * sh-tdep.c: No longer include "sh64-tdep.h".
9758 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9759 * sh64-tdep.c, sh64-tdep.h: Remove files.
9760
a2a79012
PA
97612018-04-16 Pedro Alves <palves@redhat.com>
9762
9763 * MAINTAINERS: Remove m88k.
9764 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9765 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9766 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9767 * NEWS: Mention that support for m88k was removed.
9768 * configure.host (m88*-*-*): Remove support.
9769 * configure.nat (m88k-*-*): Remove support.
9770 * configure.tgt (m88*-*-openbsd*): Remove.
9771 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9772
eda4efb1
SM
97732018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9774
9775 * configure.tgt (x86_tobjs): New variable.
9776 (amd64_tobjs, i386_tobjs): Use it.
9777
b744723f
AA
97782018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9779
9780 * symtab.c (print_symbol_info): Precede the symbol definition by
9781 the line number when available.
9782 * NEWS: Advertise this enhancement.
9783
4a4495d6
MM
97842018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9785
9786 * NEWS (New options): announce set/show record btrace cpu.
9787 * btrace.c: Include record-btrace.h.
9788 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9789 the vendor is unknown.
9790 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9791 Maybe overwrite the btrace configuration's cpu.
9792 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9793 (btrace_fetch): Add cpu parameter. Update callers.
9794 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9795 Maybe overwrite the btrace configuration's cpu. Skip enabling
9796 errata workarounds if the vendor is unknown.
9797 * python/py-record-btrace.c: Include record-btrace.h.
9798 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9799 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9800 * record-btrace.c (record_btrace_cpu_state_kind): New.
9801 (record_btrace_cpu): New.
9802 (set_record_btrace_cpu_cmdlist): New.
9803 (record_btrace_get_cpu): New.
9804 (require_btrace_thread, record_btrace_info)
9805 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9806 (cmd_set_record_btrace_cpu_none): New.
9807 (cmd_set_record_btrace_cpu_auto): New.
9808 (cmd_set_record_btrace_cpu): New.
9809 (cmd_show_record_btrace_cpu): New.
9810 (_initialize_record_btrace): Initialize set/show record btrace cpu
9811 commands.
9812 * record-btrace.h (record_btrace_get_cpu): New.
9813
69f90c75
MM
98142018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9815
9816 * record.c (set_record_command): Fix typo in message.
9817
b85310e1
MM
98182018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9819
9820 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9821
1d509aa6
MM
98222018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9823
9824 * infrun.c (process_event_stop_test): Call
9825 gdbarch_in_indirect_branch_thunk.
9826 * gdbarch.sh (in_indirect_branch_thunk): New.
9827 * gdbarch.c: Regenerated.
9828 * gdbarch.h: Regenerated.
9829 * x86-tdep.h: New.
9830 * x86-tdep.c: New.
9831 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9832 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9833 (ALLDEPFILES): Add x86-tdep.c.
9834 * arch-utils.h (default_in_indirect_branch_thunk): New.
9835 * arch-utils.c (default_in_indirect_branch_thunk): New.
9836 * i386-tdep: Include x86-tdep.h.
9837 (i386_in_indirect_branch_thunk): New.
9838 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9839 function.
9840 * amd64-tdep: Include x86-tdep.h.
9841 (amd64_in_indirect_branch_thunk): New.
9842 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9843
b4be9bfd
JK
98442018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9845
9846 PR gdb/23053
9847 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9848 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9849 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9850 regression.
9851
53d7df28
TT
98522018-04-12 Tom Tromey <tom@tromey.com>
9853
9854 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9855 (rust_evaluate_subexp): Likewise.
9856
70b33f19
PA
98572018-04-12 Pedro Alves <palves@redhat.com>
9858
9859 * procfs.c (procfs_detach): Make forward declaration's prototype
9860 match definition's protototype.
9861 (proc_get_LDT_entry): Remove stale do_cleanups call.
9862
436411b1
PA
98632018-04-12 Pedro Alves <palves@redhat.com>
9864
9865 * target.h (target_ops::to_has_exited): Delete.
9866 (target_has_exited): Delete.
9867 * target-delegates.c: Regenerate.
9868
20db9c52
PA
98692018-04-11 Pedro Alves <palves@redhat.com>
9870
9871 * target.c (fileio_fh_t::t): Add comment.
9872 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9873 (target_fileio_close): Handle a NULL target.
9874 (invalidate_fileio_fh): New.
9875 (target_close): Call it.
9876 * remote.c (remote_hostio_send_command): No longer check whether
9877 remote_desc is open.
9878
5ff79300
PA
98792018-04-11 Pedro Alves <palves@redhat.com>
9880
9881 * target.c (fileio_fh_t): Make it a named struct instead of a
9882 typedef.
9883 (fileio_fh_t::is_closed): New method.
9884 (DEF_VEC_O (fileio_fh_t)): Remove.
9885 (fileio_fhandles): Now a std::vector.
9886 (is_closed_fileio_fh): Delete.
9887 (acquire_fileio_fd): Adjust. Rename parameters.
9888 (release_fileio_fd): Adjust.
9889 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9890 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9891 (target_fileio_close): Adjust.
9892
6e22e10d
SM
98932018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9894
9895 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9896 index.
9897
731f534f
PA
98982018-04-10 Pedro Alves <palves@redhat.com>
9899
9900 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9901 (scoped_finish_thread_state): New class.
9902 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9903 cleanup.
9904 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9905 (fetch_inferior_event, normal_stop): Likewise.
9906 * thread.c (finish_thread_state_cleanup): Delete.
9907
d5f4488f
SM
99082018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9909 Pedro Alves <palves@redhat.com>
9910
9911 * value.c: Include "selftest.h" and "common/array-view.h".
9912 (struct range) <operator ==>: New.
9913 (test_ranges_contain): New.
9914 (check_ranges_vector): New.
9915 (test_insert_into_bit_range_vector): New.
9916 (_initialize_values): Register selftests.
9917 * common/array-view.h (operator==, operator!=): New.
9918
b24531ed
SM
99192018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9920
9921 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9922 an iterator.
9923 * inline-frame.c: Include <algorithm>.
9924 (struct inline_state): Add constructor.
9925 (inline_state_s): Remove.
9926 (DEF_VEC_O(inline_state_s)): Remove.
9927 (inline_states): Change type to std::vector.
9928 (find_inline_frame_state): Adjust to std::vector.
9929 (allocate_inline_frame_state): Remove.
9930 (clear_inline_frame_state): Adjust to std::vector.
9931 (skip_inline_frames): Adjust to std::vector.
9932
c252925c
SM
99332018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9934
9935 * tracepoint.h (struct trace_state_variable): Add constructor.
9936 <name>: Change type to std::string.
9937 * tracepoint.c (tsv_s): Remove.
9938 (DEF_VEC_O(tsv_s)): Remove.
9939 (tvariables): Change to std::vector.
9940 (create_trace_state_variable): Adjust to std::vector.
9941 (find_trace_state_variable): Likewise.
9942 (find_trace_state_variable_by_number): Likewise.
9943 (delete_trace_state_variable): Likewise.
9944 (trace_variable_command): Adjust to std::string.
9945 (delete_trace_variable_command): Likewise.
9946 (tvariables_info_1): Adjust to std::vector.
9947 (save_trace_state_variables): Likewise.
9948 (start_tracing): Likewise.
9949 (merge_uploaded_trace_state_variables): Adjust to std::vector
9950 and std::string.
9951 * target.h (struct target_ops)
9952 <to_download_trace_state_variable>: Pass reference to
9953 trace_state_variable.
9954 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9955 * target-delegates.c: Re-generate.
9956 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9957 (mi_tsv_deleted): Likewise.
9958 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9959 * remote.c (remote_download_trace_state_variable): Change
9960 pointer to reference and adjust.
9961 * make-target-delegates (parse_argtypes): Handle references.
9962 (write_function_header): Likewise.
9963 (munge_type): Likewise.
9964
c9638d26
SM
99652018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9966
9967 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9968 string_view-selftests.c.
9969 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9970 testsuite.
9971 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9972 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9973 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9974 * unittests/basic_string_view/element_access/char/1.cc:
9975 Likewise.
9976 * unittests/basic_string_view/element_access/char/empty.cc:
9977 Likewise.
9978 * unittests/basic_string_view/element_access/char/front_back.cc:
9979 Likewise.
9980 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9981 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9982 Likewise.
9983 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9984 Likewise.
9985 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9986 Likewise.
9987 * unittests/basic_string_view/operations/compare/char/1.cc:
9988 Likewise.
9989 * unittests/basic_string_view/operations/compare/char/13650.cc:
9990 Likewise.
9991 * unittests/basic_string_view/operations/copy/char/1.cc:
9992 Likewise.
9993 * unittests/basic_string_view/operations/data/char/1.cc:
9994 Likewise.
9995 * unittests/basic_string_view/operations/find/char/1.cc:
9996 Likewise.
9997 * unittests/basic_string_view/operations/find/char/2.cc:
9998 Likewise.
9999 * unittests/basic_string_view/operations/find/char/3.cc:
10000 Likewise.
10001 * unittests/basic_string_view/operations/find/char/4.cc:
10002 Likewise.
10003 * unittests/basic_string_view/operations/rfind/char/1.cc:
10004 Likewise.
10005 * unittests/basic_string_view/operations/rfind/char/2.cc:
10006 Likewise.
10007 * unittests/basic_string_view/operations/rfind/char/3.cc:
10008 Likewise.
10009 * unittests/basic_string_view/operations/substr/char/1.cc:
10010 Likewise.
10011 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10012 * unittests/string_view-selftests.c: New file.
10013
fdc11678
SM
100142018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10015
10016 * unittests/basic_string_view/capacity/1.cc: New file.
10017 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10018 * unittests/basic_string_view/cons/char/1.cc: New file.
10019 * unittests/basic_string_view/cons/char/2.cc: New file.
10020 * unittests/basic_string_view/cons/char/3.cc: New file.
10021 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10022 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10023 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10024 * unittests/basic_string_view/element_access/char/1.cc: New file.
10025 * unittests/basic_string_view/element_access/char/2.cc: New file.
10026 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10027 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10028 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10029 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10030 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10031 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10032 * unittests/basic_string_view/include.cc: New file.
10033 * unittests/basic_string_view/inserters/char/1.cc: New file.
10034 * unittests/basic_string_view/inserters/char/2.cc: New file.
10035 * unittests/basic_string_view/inserters/char/3.cc: New file.
10036 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10037 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10038 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10039 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10040 * unittests/basic_string_view/literals/types.cc: New file.
10041 * unittests/basic_string_view/literals/values.cc: New file.
10042 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10043 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10044 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10045 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10046 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10047 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10048 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10049 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10050 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10051 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10052 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10053 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10054 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10055 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10056 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10057 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10058 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10059 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10060 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10061 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10062 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10063 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10064 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10065 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10066 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10067 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10068 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10069 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10070 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10071 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10072 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10073 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10074 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10075 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10076 * unittests/basic_string_view/operators/char/2.cc: New file.
10077 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10078 * unittests/basic_string_view/range_access/char/1.cc: New file.
10079 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10080 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10081 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10082 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10083 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10084 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10085 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10086 * unittests/basic_string_view/typedefs.cc: New file.
10087 * unittests/basic_string_view/types/1.cc: New file.
10088
8345c4a2
SM
100892018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10090
10091 * common/gdb_string_view.h: Remove libstdc++ implementation
10092 details, adjust to gdb reality.
10093 * common/gdb_string_view.tcc: Likewise.
10094 * cli/cli-script.c (struct string_view): Remove.
10095 (user_args) <m_args>: Change element type to gdb::string_view.
10096 (user_args::insert_args): Adjust.
10097
7adcdf08
SM
100982018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10099
10100 * common/gdb_string_view.h: New file.
10101 * common/gdb_string_view.tcc: New file.
10102
41260ac2
SM
101032018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10104
10105 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10106 * configure: Re-generate.
10107
0bee6dd4
PA
101082018-04-09 Pedro Alves <palves@redhat.com>
10109
10110 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10111 (set_target_gdbarch): Call
10112 gdb::observers::architecture_changed.notify instead of
10113 observer_notify_architecture_changed.
10114
6f14adc5
SM
101152018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10116
10117 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10118 (do_restore_current_traceframe_cleanup): Remove.
10119 (restore_current_traceframe_cleanup_dtor): Remove.
10120 (make_cleanup_restore_current_traceframe): Remove.
10121 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10122 New.
10123 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10124 * infrun.c (fetch_inferior_event): Use
10125 scoped_restore_current_traceframe.
10126
b2bdb8cf
SM
101272018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10128
10129 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10130 Remove.
10131 <n_allocated_type_units>: Remove.
10132 <all_type_units>: Change to std::vector.
10133 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10134 to std::vector change.
10135 (dwarf2_per_objfile::get_cutu): Likewise.
10136 (dwarf2_per_objfile::get_tu): Likewise.
10137 (create_signatured_type_table_from_index): Likewise.
10138 (create_signatured_type_table_from_debug_names): Likewise.
10139 (dw2_symtab_iter_next): Likewise.
10140 (dw2_print_stats): Likewise.
10141 (dw2_expand_all_symtabs): Likewise.
10142 (dw2_expand_marked_cus): Likewise.
10143 (dw2_debug_names_iterator::next): Likewise.
10144 (dwarf2_initialize_objfile): Likewise.
10145 (add_signatured_type_cu_to_table): Likewise.
10146 (create_all_type_units): Likewise.
10147 (add_type_unit): Likewise.
10148 (struct tu_abbrev_offset): Add constructor.
10149 (build_type_psymtabs_1): Adjust to std::vector change.
10150 (print_tu_stats): Likewise.
10151 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10152 (write_debug_names): Likewise.
10153
b76e467d
SM
101542018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10155
10156 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10157 Make an std::vector.
10158 <n_comp_units>: Remove.
10159 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10160 to std::vector change.
10161 (dwarf2_per_objfile::get_cutu): Likewise.
10162 (dwarf2_per_objfile::get_cu): Likewise.
10163 (create_cus_from_index): Likewise.
10164 (create_addrmap_from_index): Likewise.
10165 (create_addrmap_from_aranges): Likewise.
10166 (dwarf2_read_index): Likewise.
10167 (dw2_find_last_source_symtab): Likewise.
10168 (dw2_map_symtabs_matching_filename): Likewise.
10169 (dw2_symtab_iter_next): Likewise.
10170 (dw2_print_stats): Likewise.
10171 (dw2_expand_all_symtabs): Likewise.
10172 (dw2_expand_symtabs_with_fullname): Likewise.
10173 (dw2_expand_marked_cus): Likewise.
10174 (dw2_map_symbol_filenames): Likewise.
10175 (create_cus_from_debug_names): Likewise.
10176 (dwarf2_read_debug_names): Likewise.
10177 (dw2_debug_names_iterator::next): Likewise.
10178 (dwarf2_initialize_objfile): Likewise.
10179 (set_partial_user): Likewise.
10180 (dwarf2_build_psymtabs_hard): Likewise.
10181 (read_comp_units_from_section): Remove arguments, adjust to
10182 std::vector change.
10183 (create_all_comp_units): Adjust to std::vector and
10184 read_comp_units_from_section changes.
10185 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10186 change.
10187 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10188 (psyms_seen_size): Likewise.
10189 (write_gdbindex): Likewise.
10190 (write_debug_names): Likewise.
10191
12359b5e
SM
101922018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10193
10194 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10195 with dwarf2_per_objfile.
10196 (create_cus_from_index): Likewise.
10197 (create_signatured_type_table_from_index): Likewise.
10198 (dwarf2_read_index): Likewise.
10199 (dwarf2_initialize_objfile): Likewise.
10200 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10201 per_cu rather than get_dwarf2_per_objfile.
10202
ff4c9fec
SM
102032018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10204
10205 * dwarf2read.h (struct signatured_type): Forward declare.
10206 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10207 New methods.
10208 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10209 (dw2_get_cutu): ...this.
10210 (dwarf2_per_objfile::get_cu): Rename from...
10211 (dw2_get_cu): ...this.
10212 (dwarf2_per_objfile::get_tu): New.
10213 (create_addrmap_from_index): Adjust.
10214 (create_addrmap_from_aranges): Adjust.
10215 (dw2_find_last_source_symtab): Adjust.
10216 (dw2_map_symtabs_matching_filename): Adjust.
10217 (dw2_symtab_iter_next): Adjust.
10218 (dw2_print_stats): Adjust.
10219 (dw2_expand_all_symtabs): Adjust.
10220 (dw2_expand_symtabs_with_fullname): Adjust.
10221 (dw2_expand_marked_cus): Adjust.
10222 (dw_expand_symtabs_matching_file_matcher): Adjust.
10223 (dw2_map_symbol_filenames): Adjust.
10224 (dw2_debug_names_iterator::next): Adjust.
10225 (dwarf2_initialize_objfile): Adjust.
10226 (set_partial_user): Adjust.
10227 (dwarf2_build_psymtabs_hard): Adjust.
10228
5ca3fcb6
SM
102292018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10230
10231 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10232 Remove unused variables.
10233 (dw2_map_symtabs_matching_filename): Likewise.
10234 (dwarf2_record_block_ranges): Likewise.
10235 (dwarf2_read_addr_index): Likewise.
10236 (follow_die_offset): Likewise.
10237
b2e586e8
SM
102382018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10239
10240 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10241 to symbol_file_add_main.
10242
7c4e78cf
SM
102432018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10244
10245 PR mi/22299
10246 * mi/mi-console.c (do_fputc_async_safe): New.
10247 (mi_console_file::write_async_safe): New.
10248 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10249 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10250 New.
10251 * ui-file.c (ui_file::putstrn): Adjust call to
10252 fputstrn_unfiltered.
10253 * utils.c (printchar): Replace do_fputs and do_fprintf
10254 parameters by do_fputc.
10255 (fputstr_filtered): Adjust call to printchar.
10256 (fputstr_unfiltered): Likewise.
10257 (fputstrn_filtered): Likewise.
10258 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10259 printchar.
10260 * utils.h (do_fputc_ftype): New typedef.
10261 (fputstrn_unfiltered): Add do_fputc parameter.
10262
5dc026d3
SM
102632018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10264
10265 * regformats/i386/i386-avx.dat: Remove.
10266
c912f608
SM
102672018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10268
10269 PR gdb/22979
10270 * amd64-tdep.c (amd64_none_init_abi): New function.
10271 (amd64_x32_none_init_abi): New function.
10272 (_initialize_amd64_tdep): Register handlers for x86-64 and
10273 x64_32 with GDB_OSABI_NONE.
10274 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10275 GDB_OSABI_NONE osabi.
10276
26540402
SM
102772018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10278
10279 PR gdb/22980
10280 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10281 GDB_OSABI_NONE.
10282 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10283 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10284
9018be22
SM
102852018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10286
10287 * common/byte-vector.h (char_vector): New type.
10288 * target.h (target_read_alloc): Return
10289 gdb::optional<byte_vector>.
10290 (target_read_stralloc): Return gdb::optional<char_vector>.
10291 (target_get_osdata): Return gdb::optional<char_vector>.
10292 * target.c (target_read_alloc_1): Templatize. Replacement
10293 manual memory management with vector.
10294 (target_read_alloc): Change return type, adjust.
10295 (target_read_stralloc): Change return type, adjust.
10296 (target_get_osdata): Change return type, adjust.
10297 * auxv.c (struct auxv_info) <length>: Remove.
10298 <data>: Change type to gdb::optional<byte_vector>.
10299 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10300 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10301 (target_auxv_search): Adjust.
10302 (fprint_target_auxv): Adjust.
10303 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10304 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10305 (linux_make_corefile_notes): Adjust.
10306 * osdata.c (get_osdata): Adjust.
10307 * remote.c (remote_get_threads_with_qxfer): Adjust.
10308 (remote_memory_map): Adjust.
10309 (remote_traceframe_info): Adjust.
10310 (btrace_read_config): Adjust.
10311 (remote_read_btrace): Adjust.
10312 (remote_pid_to_exec_file): Adjust.
10313 * solib-aix.c (solib_aix_get_library_list): Adjust.
10314 * solib-dsbt.c (decode_loadmap): Don't free buf.
10315 (dsbt_get_initial_loadmaps): Adjust.
10316 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10317 * solib-target.c (solib_target_current_sos): Adjust.
10318 * tracepoint.c (sdata_make_value): Adjust.
10319 * xml-support.c (xinclude_start_include): Adjust.
10320 (xml_fetch_content_from_file): Adjust.
10321 * xml-support.h (xml_fetch_another): Change return type.
10322 (xml_fetch_content_from_file): Change return type.
10323 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10324 * xml-tdesc.c (file_read_description_xml): Adjust.
10325 (fetch_available_features_from_target): Change return type.
10326 (target_fetch_description_xml): Adjust.
10327 (target_read_description_xml): Adjust.
10328
14c88955
TT
103292018-04-06 Tom Tromey <tom@tromey.com>
10330
10331 * value.c (~value): Update.
10332 (struct value) <contents>: Now unique_xmalloc_ptr.
10333 (value_contents_bits_eq, allocate_value_contents)
10334 (value_contents_raw, value_contents_all_raw)
10335 (value_contents_for_printing, value_contents_for_printing_const)
10336 (set_value_enclosing_type): Update.
10337
0c7e6dd8
TT
103382018-04-06 Tom Tromey <tom@tromey.com>
10339
10340 * value.c (range_s): Remove typedef, VEC.
10341 (struct range): Add operator<.
10342 (range_lessthan): Remove.
10343 (ranges_contain): Change type.
10344 (~value): Update.
10345 (struct value) <unavailable, optimized_out>: Now std::vector.
10346 (value_entirely_available)
10347 (value_entirely_covered_by_range_vector)
10348 (value_entirely_unavailable, value_entirely_optimized_out):
10349 Update.
10350 (insert_into_bit_range_vector): Change argument type.
10351 (find_first_range_overlap): Likewise.
10352 (struct ranges_and_idx, value_contents_bits_eq)
10353 (require_not_optimized_out, require_available): Update.
10354 (ranges_copy_adjusted): Change argument types.
10355 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10356
2c8331b9
TT
103572018-04-06 Tom Tromey <tom@tromey.com>
10358
10359 * value.c (~value): Update.
10360 (struct value) <parent>: Now a value_ref_ptr.
10361 (value_parent, set_value_parent, value_address, value_copy):
10362 Update.
10363
466ce3ae
TT
103642018-04-06 Tom Tromey <tom@tromey.com>
10365
10366 * value.c (struct value): Add constructor, destructor, and member
10367 initializers.
10368 (allocate_value_lazy, value_decref): Update.
10369
062d818d
TT
103702018-04-06 Tom Tromey <tom@tromey.com>
10371
10372 * value.c (struct value) <released, next>: Remove.
10373 (all_values): Now a std::vector.
10374 (allocate_value_lazy): Update.
10375 (value_next): Remove.
10376 (value_mark, value_free_to_mark, release_value)
10377 (value_release_to_mark): Update.
10378
a6535de1
TT
103792018-04-06 Tom Tromey <tom@tromey.com>
10380
10381 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10382 (free_value_chain): Remove.
10383 * value.c (free_value_chain): Remove.
10384 (value_release_to_mark): Return a std::vector.
10385 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10386 std::vector.
10387 (check_condition): Update.
10388 * eval.c (fetch_subexp_value): Change "val_chain" to a
10389 std::vector.
10390 * breakpoint.c (update_watchpoint): Update.
10391 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10392
b5621201
TT
103932018-04-06 Tom Tromey <tom@tromey.com>
10394
10395 * value.h (free_all_values): Remove.
10396 * value.c (free_all_values): Remove.
10397
4d0266a0
TT
103982018-04-06 Tom Tromey <tom@tromey.com>
10399
10400 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10401 (value_history_chain, value_history_count): Remove.
10402 (value_history): New global.
10403 (record_latest_value, access_value_history, show_values)
10404 (preserve_values): Update.
10405
b4d61099
TT
104062018-04-06 Tom Tromey <tom@tromey.com>
10407
10408 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10409 * varobj.c (varobj_set_display_format, varobj_set_value)
10410 (install_default_visualizer, construct_visualizer)
10411 (install_new_value, ~varobj, varobj_get_value_type)
10412 (my_value_of_variable, varobj_editable_p): Update.
10413 * c-varobj.c (c_describe_child, c_value_of_variable)
10414 (cplus_number_of_children, cplus_describe_child): Update.
10415 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10416 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10417 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10418
9b558729
TT
104192018-04-06 Tom Tromey <tom@tromey.com>
10420
10421 * printcmd.c (last_examine_address): Change type to
10422 value_ref_ptr.
10423 (do_examine, x_command): Update.
10424
850645cf
TT
104252018-04-06 Tom Tromey <tom@tromey.com>
10426
10427 * value.c (release_value): Update.
10428 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10429 (struct bpstats) <val>: Now a value_ref_ptr.
10430 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10431 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10432 (~watchpoint, print_it_watchpoint, watch_command_1)
10433 (invalidate_bp_value_on_memory_change): Update.
10434
22bc8444
TT
104352018-04-06 Tom Tromey <tom@tromey.com>
10436
10437 * varobj.c (varobj_clear_saved_item)
10438 (update_dynamic_varobj_children, install_new_value, ~varobj):
10439 Update.
10440 * value.h (value_incref): Move declaration earlier.
10441 (value_decref): Rename from value_free.
10442 (struct value_ref_policy): New.
10443 (value_ref_ptr): New typedef.
10444 (struct value_deleter): Remove.
10445 (gdb_value_up): Remove typedef.
10446 (release_value): Change return type.
10447 (release_value_or_incref): Remove.
10448 * value.c (set_value_parent): Update.
10449 (value_incref): Change return type.
10450 (value_decref): Rename from value_free.
10451 (value_free_to_mark, free_all_values, free_value_chain): Update.
10452 (release_value): Return value_ref_ptr.
10453 (release_value_or_incref): Remove.
10454 (record_latest_value, set_internalvar, clear_internalvar):
10455 Update.
10456 * stack.c (info_frame_command): Don't call value_free.
10457 * python/py-value.c (valpy_dealloc, valpy_new)
10458 (value_to_value_object): Update.
10459 * printcmd.c (do_examine): Update.
10460 * opencl-lang.c (lval_func_free_closure): Update.
10461 * mi/mi-main.c (register_changed_p): Don't call value_free.
10462 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10463 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10464 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10465 value_free.
10466 * guile/scm-value.c (vlscm_free_value_smob)
10467 (vlscm_scm_from_value): Update.
10468 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10469 (frame_unwind_register_unsigned, get_frame_register_bytes)
10470 (put_frame_register_bytes): Don't call value_free.
10471 * findvar.c (address_from_register): Don't call value_free.
10472 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10473 * dwarf2loc.c (entry_data_value_free_closure)
10474 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10475 (dwarf2_evaluate_loc_desc_full): Update.
10476 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10477 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10478 (~watchpoint, watch_command_1)
10479 (invalidate_bp_value_on_memory_change): Update.
10480 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10481
7f8a5d38
SM
104822018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10483
10484 PR gdb/23022
10485 * warning.m4: Add -Wno-error=deprecated-register.
10486 * configure: Re-generate.
10487
8a76bd3b
TT
104882018-04-05 Tom Tromey <tom@tromey.com>
10489
10490 * linespec.h: Remove include of "vec.h".
10491
8e8d776e
TT
104922018-04-05 Tom Tromey <tom@tromey.com>
10493
10494 * linespec.c (typep): Remove typedef.
10495 (find_methods, find_superclass_methods): Take a std::vector.
10496 (find_method): Use std::vector.
10497
9b2f8581
TT
104982018-04-05 Tom Tromey <tom@tromey.com>
10499
10500 * utils.c (compare_strings): Remove.
10501 * utils.h (compare_strings): Remove.
10502 * objc-lang.h (find_imps): Update.
10503 * objc-lang.c (find_methods): Take a std::vector.
10504 (uniquify_strings, find_imps): Likewise.
10505 * linespec.c (find_methods): Take a std::vector.
10506 (decode_objc): Use std::vector.
10507 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10508 a std::vector.
10509 (find_method, find_function_symbols): Use std::vector.
10510
459a2e4c
TT
105112018-04-05 Tom Tromey <tom@tromey.com>
10512
10513 * completer.c (completion_tracker::completion_tracker): Remove
10514 cast.
10515 (completion_tracker::discard_completions): Likewise.
10516 * breakpoint.c (ambiguous_names_p): Remove cast.
10517 * ada-lang.c (_initialize_ada_language): Remove cast.
10518 * utils.h (streq): Update.
10519 (streq_hash): Add new declaration.
10520 * utils.c (streq): Return bool.
10521 (streq_hash): New function.
10522
9be2c17a
TT
105232018-04-05 Tom Tromey <tom@tromey.com>
10524
10525 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10526 Remove a string copy.
10527
f73c6ece
TT
105282018-04-05 Tom Tromey <tom@tromey.com>
10529
10530 * linespec.c (filter_results): Use std::vector.
10531 (decode_line_2, decode_line_full): Update.
10532
53a0f8a2
TT
105332018-04-05 Tom Tromey <tom@tromey.com>
10534
10535 * linespec.c (canonical_to_fullform): Return std::string.
10536 (filter_results): Update.
10537 (struct decode_line_2_item): Add constructor.
10538 <fullform, displayform>: Now std::string.
10539 (decode_line_2_compare_items): Now a std::sort comparator.
10540 (decode_line_2): Update.
10541
a5b5adf5
TT
105422018-04-05 Tom Tromey <tom@tromey.com>
10543
10544 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10545 (unexpected_linespec_error): Update.
10546 (linespec_parse_basic, parse_linespec): Update.
10547
6a307fc5
TT
105482018-04-05 Tom Tromey <tom@tromey.com>
10549
10550 * linespec.c (linespec_parse_basic): Reindent.
10551
41c1efc6
TT
105522018-04-05 Tom Tromey <tom@tromey.com>
10553
10554 * minsyms.h (iterate_over_minimal_symbols): Update.
10555 * minsyms.c (iterate_over_minimal_symbols): Take a
10556 gdb::function_view.
10557 * linespec.c (struct collect_minsyms): Remove.
10558 (compare_msyms): Now a std::sort comparator.
10559 (add_minsym): Add parameters.
10560 (search_minsyms_for_name): Update. Use std::vector.
10561
c5edbf3d
TT
105622018-04-03 Tom Tromey <tom@tromey.com>
10563
10564 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10565 gdb::byte_vector.
10566
b39efc48
WP
105672018-04-02 Weimin Pan <weimin.pan@oracle.com>
10568
10569 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10570
121ad66c 105712018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
10572
10573 PR gdb/16959
10574 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10575 printing static type.
10576
09473be8
TT
105772018-04-01 Tom Tromey <tom@tromey.com>
10578
10579 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10580 (rs6000_xfer_shared_libraries): Update.
10581
ec1f2d91
SM
105822018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10583
10584 * common/gdb_vecs.h (char_ptr): Remove.
10585 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10586
d8611974
SM
105872018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10588
10589 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10590 with std::vector.
10591 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10592
a18ba4e4
SM
105932018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10594
10595 * tracepoint.h (struct uploaded_tp): Initialize fields.
10596 <actions, step_actions, cmd_strings>: Change type to
10597 std::vector<char *>.
10598 * tracepoint.c (get_uploaded_tp): Allocate with new.
10599 (free_uploaded_tps): Free with delete.
10600 (parse_tracepoint_definition): Adjust to std::vector change.
10601 * breakpoint.c (read_uploaded_action): Likewise.
10602 (create_tracepoint_from_upload): Likewise.
10603 * ctf.c (ctf_write_uploaded_tp): Likewise.
10604 (SET_ARRAY_FIELD): Likewise.
10605 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10606
a7961323
TT
106072018-03-30 Tom Tromey <tom@tromey.com>
10608
10609 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10610 std::unique_ptr.
10611 (svr4_keep_data_in_core): Update.
10612 (svr4_read_so_list): Update.
10613
e83e4e24
TT
106142018-03-30 Tom Tromey <tom@tromey.com>
10615
10616 * windows-nat.c (handle_output_debug_string, handle_exception):
10617 Update.
10618 * target.h (target_read_string): Update.
10619 * target.c (target_read_string): Change "string" to
10620 unique_xmalloc_ptr.
10621 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10622 Update.
10623 * solib-frv.c (frv_current_sos): Update.
10624 * solib-dsbt.c (dsbt_current_sos): Update.
10625 * solib-darwin.c (darwin_current_sos): Update.
10626 * linux-thread-db.c (inferior_has_bug): Update.
10627 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10628 Update. Remove alloca.
10629 * ada-lang.c (ada_main_name): Update.
10630
263db9a1
TT
106312018-03-30 Tom Tromey <tom@tromey.com>
10632
10633 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10634 (struct dwo_file_deleter): New.
10635 (dwo_file_up): New typedef.
10636 (open_and_init_dwo_file): Use dwo_file_up.
10637 (free_dwo_file_cleanup): Remove.
10638
5dafb3d1
TT
106392018-03-30 Tom Tromey <tom@tromey.com>
10640
10641 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10642 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10643
11ed8cad
TT
106442018-03-30 Tom Tromey <tom@tromey.com>
10645
10646 * dwarf2read.c (class free_cached_comp_units): New class.
10647 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10648 (free_cached_comp_units): Remove function.
10649
9ae79dac
TT
106502018-03-30 Tom Tromey <tom@tromey.com>
10651
10652 * utils.h (make_cleanup_unpush_target): Remove.
10653 * inf-ptrace.c (struct target_unpusher): New.
10654 (target_unpush_up) New typedef.
10655 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10656 target_unpush_up.
10657 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10658
5aa89276
TT
106592018-03-27 Tom Tromey <tom@tromey.com>
10660
10661 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10662
1dbeed45
TT
106632018-03-27 Pedro Alves <palves@redhat.com>
10664 Tom Tromey <tom@tromey.com>
10665
10666 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10667 destructor. Now a class.
10668 (gdb_readline_wrapper_cleanup): Remove function.
10669 (gdb_readline_wrapper): Remove cleanups.
10670
c819b2c0
TT
106712018-03-27 Tom Tromey <tom@tromey.com>
10672
10673 * typeprint.h (struct type_print_options) <local_typedefs,
10674 global_typedefs>: Remove "struct" keyword.
10675 (class typedef_hash_table): New class.
10676 (recursively_update_typedef_hash, add_template_parameters)
10677 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10678 (find_typedef_in_hash): Don't declare.
10679 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10680 (typedef_hash_table::recursively_update): Rename from
10681 recursively_update_typedef_hash. Now a member.
10682 (typedef_hash_table::add_template_parameters): Rename from
10683 add_template_parameters. Now a member.
10684 (typedef_hash_table::typedef_hash_table): Now a constructor;
10685 rename from create_typedef_hash.
10686 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10687 rename from free_typedef_hash.
10688 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10689 (do_free_global_table): Remove.
10690 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10691 from copy_type_recursive.
10692 (create_global_typedef_table): Remove.
10693 (typedef_hash_table::find_global_typedef): Now a member of
10694 typedef_hash_table.
10695 (typedef_hash_table::find_typedef): Rename from
10696 find_typedef_in_hash; now a member.
10697 (whatis_exp): Update.
10698 * extension.h (struct ext_lang_type_printers): Add constructor and
10699 destructor.
10700 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10701 declare.
10702 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10703 Now a constructor; rename from start_ext_lang_type_printers.
10704 (ext_lang_type_printers): Now a destructor; rename from
10705 free_ext_lang_type_printers.
10706 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10707 Update.
10708 (c_type_print_base_struct_union): Update. Remove cleanups.
10709
608219fb
TT
107102018-03-27 Tom Tromey <tom@tromey.com>
10711
10712 * dwarf-index-write.c: Include <cmath>.
10713
3fcded8f
JB
107142018-03-27 Joel Brobecker <brobecker@adacore.com>
10715
10716 * NEWS: Add entry describing new "set|show varsize-limit" command.
10717 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10718 command.
10719 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10720 "set variable".
10721
cd4fb1b2
SM
107222018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10723
10724 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10725 dwarf-index-write.c
10726 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10727 * dwarf-index-common.c: New file.
10728 * dwarf-index-common.h: New file.
10729 * dwarf-index-write.c: New file.
10730 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10731 (struct dwarf2_section_info): Move from here.
10732 (dwarf2_section_info_def): Likewise.
10733 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10734 (offset_type): Likewise.
10735 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10736 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10737 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10738 (byte_swap): Likewise.
10739 (MAYBE_SWAP): Likewise.
10740 (dwarf2_per_cu_ptr): Likewise.
10741 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10742 (struct tu_stats): Likewise.
10743 (struct dwarf2_per_objfile): Likewise.
10744 (struct dwarf2_per_cu_data): Likewise.
10745 (struct signatured_type): Likewise.
10746 (sig_type_ptr): Likewise.
10747 (DEF_VEC_P (sig_type_ptr)): Likewise.
10748 (INDEX4_SUFFIX): Likewise.
10749 (INDEX5_SUFFIX): Likewise.
10750 (DEBUG_STR_SUFFIX): Likewise.
10751 (dwarf2_read_section): Make non-static.
10752 (mapped_index_string_hash): Move from here.
10753 (dwarf5_djb_hash): Likewise.
10754 (file_write): Likewise.
10755 (class data_buf): Likewise.
10756 (struct symtab_index_entry): Likewise.
10757 (struct mapped_symtab): Likewise.
10758 (find_slot): Likewise.
10759 (hash_expand): Likewise.
10760 (add_index_entry): Likewise.
10761 (uniquify_cu_indices): Likewise.
10762 (class c_str_view): Likewise.
10763 (class c_str_view_hasher): Likewise.
10764 (class vector_hasher): Likewise.
10765 (write_hash_table): Likewise.
10766 (psym_index_map): Likewise.
10767 (struct addrmap_index_data): Likewise.
10768 (add_address_entry): Likewise.
10769 (add_address_entry_worker): Likewise.
10770 (write_address_map): Likewise.
10771 (symbol_kind): Likewise.
10772 (write_psymbols): Likewise.
10773 (struct signatured_type_index_data): Likewise.
10774 (write_one_signatured_type): Likewise.
10775 (recursively_count_psymbols): Likewise.
10776 (recursively_write_psymbols): Likewise.
10777 (class debug_names): Likewise.
10778 (check_dwarf64_offsets): Likewise.
10779 (psyms_seen_size): Likewise.
10780 (write_gdbindex): Likewise.
10781 (write_debug_names): Likewise.
10782 (assert_file_size): Likewise.
10783 (write_psymtabs_to_index): Likewise.
10784 (save_gdb_index_command): Likewise.
10785 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10786 command.
10787 * dwarf2read.h: New file.
10788
59cc4834
JB
107892018-03-27 Joel Brobecker <brobecker@adacore.com>
10790
10791 PR gdb/22670
10792 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10793 symbol name if the CU's language stores symbol names in linkage
10794 format.
10795 * language.h (struct language_defn)
10796 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10797 all instances of this struct.
10798
67501539
TT
107992018-03-26 Tom Tromey <tom@tromey.com>
10800
10801 * stack.c (backtrace_command_1): Remove verbose code.
10802
76c939ac
TT
108032018-03-26 Tom Tromey <tom@tromey.com>
10804
10805 * python/py-framefilter.c (py_print_type): Don't catch
10806 exceptions. Return void.
10807 (py_print_value): Likewise.
10808 (py_print_single_arg): Likewise.
10809 (enumerate_args): Don't catch exceptions.
10810 (py_print_args): Likewise.
10811 (py_print_frame): Likewise.
10812 (gdbpy_apply_frame_filter): Catch exceptions here.
10813
9507b29c
TT
108142018-03-26 Tom Tromey <tom@tromey.com>
10815
10816 * stack.c (_initialize_stack): Remove trailing newlines from help
10817 text. Add "Usage" line to "backtrace" help.
10818
eb68e487
TT
108192018-03-26 Tom Tromey <tom@tromey.com>
10820
10821 PR python/16486:
10822 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10823
1f111921
TT
108242018-03-26 Tom Tromey <tom@tromey.com>
10825
10826 * python/py-framefilter.c (py_print_single_arg): Return
10827 EXT_LANG_BT_ERROR from catch.
10828
fb7eb8b5
TT
108292018-03-26 Tom Tromey <tom@tromey.com>
10830
10831 PR backtrace/15584:
10832 * stack.c (backtrace_command_1): Move some code into no-filters
10833 "if".
10834
4ca59a9f
TT
108352018-03-26 Tom Tromey <tom@tromey.com>
10836
10837 * python/py-framefilter.c (throw_quit_or_print_exception): New
10838 function.
10839 (gdbpy_apply_frame_filter): Use it.
10840
92256134
TT
108412018-03-26 Tom Tromey <tom@tromey.com>
10842
10843 PR cli/17716:
10844 * python/py-framefilter.c (py_print_type, py_print_value)
10845 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10846 RETURN_MASK_ERROR.
10847
7a630bc2
TT
108482018-03-26 Tom Tromey <tom@tromey.com>
10849
10850 * python/py-framefilter.c (enumerate_args): Use
10851 gdb::unique_xmalloc_ptr.
10852
63283d4a
TT
108532018-03-26 Tom Tromey <tom@tromey.com>
10854
10855 * python/py-framefilter.c (py_print_frame): Return
10856 EXT_LANG_BT_OK.
10857 (gdbpy_apply_frame_filter): Update comment.
10858 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10859 Remove.
10860 <EXT_LANG_BT_NO_FILTERS>: Change value.
10861
978d6c75
TT
108622018-03-26 Tom Tromey <tom@tromey.com>
10863
10864 PR backtrace/15582:
10865 * stack.c (backtrace_command): Parse "hide" argument.
10866 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10867 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10868 constant.
10869
1cf7e640
TT
108702018-03-26 Tom Tromey <tom@tromey.com>
10871
10872 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10873 add "flags".
10874 (backtrace_command): Remove "fulltrace", add "flags".
10875
ea3b0687
TT
108762018-03-26 Tom Tromey <tom@tromey.com>
10877
10878 * stack.c (backtrace_command): Rewrite command line parsing.
10879
9f034d75
SM
108802018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10881
10882 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10883
ce1459e5
SM
108842018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10885
10886 * filename-seen-cache.h: Add include guard.
10887
4f7ae6f5
KS
108882018-03-26 Keith Seitz <keiths@redhat.com>
10889
10890 * symfile.c (place_section): Remove "struct" from section_addr_info
10891 in comment.
10892 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10893 "struct" keyword from section_addr_info.
10894
5cd3e386
AH
108952018-03-26 Alan Hayward <alan.hayward@arm.com>
10896
10897 * regformats/regdef.h (reg): Add constructors.
10898
3e5ef9a4
PA
108992018-03-25 Pedro Alves <palves@redhat.com>
10900
10901 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10902 if then/else bodies in var_func_name extraction.
10903
c88d2fcc 109042018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
10905
10906 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10907 lookup_minimal_symbol() to find symbol entry.
10908 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10909
b7fee5a3
KS
109102018-03-23 Keith Seitz <keiths@redhat.com>
10911
10912 PR c++/22968
10913 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10914 nested type definitions for C++, too.
10915
2cc9b304
TT
109162018-03-23 Tom Tromey <tom@tromey.com>
10917
10918 * machoread.c (struct oso_el): Add a constructor. Don't define as
10919 a typedef.
10920 (macho_register_oso): Remove.
10921 (macho_symtab_read): Take a std::vector.
10922 (oso_el_compare_name): Now a std::sort comparator.
10923 (macho_symfile_read_all_oso): Take a std::vector.
10924 (macho_symfile_read): Use std::vector. Remove cleanups.
10925
a2b2bc12
TT
109262018-03-22 Tom Tromey <tom@tromey.com>
10927
10928 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10929 (record_full_goto_bookmark): Use std::string.
10930
7a8f494c
PFC
109312018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10932
10933 PR tdep/18295
10934 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10935 a single mask.
10936
dd6d677f
PFC
109372018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10938
10939 * rs6000-tdep.c (store_insn_p): New function.
10940 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10941 and cr_reg to their unshifted values. Use store_insn_p to
10942 match LR saves using either R1 or fdata->alloca_reg. Use
10943 store_insn_p to match CR saves. Set alloca_reg_offset
10944 when alloca_reg and framep are set. Remove lr_reg shift
10945 when assigning to fdata->lr_register.
10946
26d6cec4
AA
109472018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10948
10949 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10950 command line args instead of emitting a warning.
10951
5d9310c4
SM
109522018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10953
10954 * tracepoint.h (struct static_tracepoint_marker): Initialize
10955 fields, define default constructor, move constructor and move
10956 assignment, disable the rest.
10957 <str_id, extra>: Make std::string.
10958 (release_static_tracepoint_marker): Remove.
10959 (free_current_marker): Remove.
10960 * tracepoint.c (free_current_marker): Remove.
10961 (parse_static_tracepoint_marker_definition): Adjust to
10962 std::string, use new hex2str overload.
10963 (release_static_tracepoint_marker): Remove.
10964 (print_one_static_tracepoint_marker): Get marker by reference
10965 and adjust to std::string.
10966 (info_static_tracepoint_markers_command): Adjust to std::vector
10967 changes
10968 * target.h (static_tracepoint_marker_p): Remove typedef.
10969 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10970 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10971 bool.
10972 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10973 * target-debug.h
10974 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10975 (target_debug_print_std_vector_static_tracepoint_marker): New.
10976 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10977 to...
10978 (target_debug_print_static_tracepoint_marker_p): ... this.
10979 * target-delegates.c: Re-generate.
10980 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10981 Make std::string.
10982 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10983 (decode_static_tracepoint_spec): Adjust to std::vector.
10984 (tracepoint_print_one_detail): Adjust to std::string.
10985 (strace_marker_decode_location): Adjust to std::string.
10986 (update_static_tracepoint): Adjust to std::string, remove call
10987 to release_static_tracepoint_marker.
10988 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10989 Adjust to std::vector.
10990 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10991 (remote_static_tracepoint_markers_by_strid): Adjust to
10992 std::vector.
10993 * common/rsp-low.h (hex2str): New overload with explicit count
10994 of bytes.
10995 * common/rsp-low.c (hex2str): New overload with explicit count
10996 of bytes.
10997 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10998 (_initialize_rsp_low_selftests): Add test_hex2str test.
10999 * unittests/tracepoint-selftests.c
11000 (test_parse_static_tracepoint_marker_definition): Adjust to
11001 std::string.
11002
62c222b6
SM
110032018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11004
11005 * tracepoint.c (parse_static_tracepoint_marker_definition):
11006 Consider case where the definition is followed by more
11007 definitions.
11008 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11009 tracepoint-selftests.c.
11010 * unittests/tracepoint-selftests.c: New.
11011
7eb2418f
PFC
110122018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11013
11014 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11015 Carvalho.
11016
7cbe16e9
SR
110172018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11018
3d6b3b82 11019 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 11020
4ee89e90
SR
110212018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11022
3d6b3b82 11023 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 11024
92630041
TT
110252018-03-19 Tom Tromey <tom@tromey.com>
11026
11027 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11028 "IDENT" production.
11029
76727919
TT
110302018-03-19 Pedro Alves <palves@redhat.com>
11031 Tom Tromey <tom@tromey.com>
11032
11033 * unittests/observable-selftests.c: New file.
11034 * common/observable.h: New file.
11035 * observable.h: New file.
11036 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11037 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11038 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11039 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11040 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11041 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11042 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11043 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11044 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11045 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11046 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11047 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11048 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11049 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11050 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11051 tui/tui-interp.c, valops.c: Update all users.
11052 * tui/tui-hooks.c (tui_bp_created_observer)
11053 (tui_bp_deleted_observer, tui_bp_modified_observer)
11054 (tui_inferior_exit_observer, tui_before_prompt_observer)
11055 (tui_normal_stop_observer, tui_register_changed_observer):
11056 Remove.
11057 (tui_observers_token): New global.
11058 (attach_or_detach, tui_attach_detach_observers): New functions.
11059 (tui_install_hooks, tui_remove_hooks): Use
11060 tui_attach_detach_observers.
11061 * record-btrace.c (record_btrace_thread_observer): Remove.
11062 (record_btrace_thread_observer_token): New global.
11063 * observer.sh: Remove.
11064 * observer.c: Rename to observable.c.
11065 * observable.c (namespace gdb_observers): Define new objects.
11066 (observer_debug): Move into gdb_observers namespace.
11067 (struct observer, struct observer_list, xalloc_observer_list_node)
11068 (xfree_observer_list_node, generic_observer_attach)
11069 (generic_observer_detach, generic_observer_notify): Remove.
11070 (_initialize_observer): Update.
11071 Don't include observer.inc.
11072 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11073 (clean mostlyclean): Likewise.
11074 (observer.h, observer.inc): Remove targets.
11075 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11076 (COMMON_SFILES): Use observable.c, not observer.c.
11077 * .gitignore: Remove observer.h.
11078
1cb1f3da
TT
110792018-03-18 Tom Tromey <tom@tromey.com>
11080
11081 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11082 gdb::def_vector.
11083 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11084
a06ab151
TT
110852018-03-17 Tom Tromey <tom@tromey.com>
11086
11087 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11088
770623f7
TT
110892018-03-17 Tom Tromey <tom@tromey.com>
11090
11091 * target.c (class scoped_target_fd): New.
11092 (target_fileio_close_cleanup): Remove.
11093 (target_fileio_read_alloc_1): Use scoped_target_fd.
11094
39be3c7e
SM
110952018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11096
11097 * silent-rules.mk: New.
11098 * Makefile.in: Include silent-rules.mk
11099 (srcdir, VPATH, top_srcdir): Move up.
11100 (COMPILE): Add ECHO_CXX.
11101 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11102 (init.c): Add ECHO_INIT_C.
11103 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11104 (version.c): Add ECHO_GEN.
11105 (printcmd.o): Add ECHO_CXX.
11106 (target-float.o): Add ECHO_CXX.
11107 (ada-exp.o): Add ECHO_CXX.
11108 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11109 (insight$(EXEEXT)): Add ECHO_CXXLD.
11110 * gnulib/configure.ac: Add AM_SILENT_RULES.
11111 * gnulib/aclocal.m4: Re-generate.
11112 * gnulib/configure: Re-generate.
11113 * gnulib/import/Makefile.in: Re-generate.
11114
37e136b1
TT
111152018-03-16 Tom Tromey <tom@tromey.com>
11116
11117 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11118 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11119 * utils.c (do_free_section_addr_info)
11120 (make_cleanup_free_section_addr_info): Remove.
11121 * symfile.h (struct other_sections): Add constructor.
11122 (struct section_addr_info): Remove.
11123 (section_addr_info): New typedef.
11124 (struct sym_fns) <sym_offsets>: Change type of parameter.
11125 (build_section_addr_info_from_objfile)
11126 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11127 (default_symfile_offsets, symbol_file_add)
11128 (symbol_file_add_from_bfd)
11129 (build_section_addr_info_from_section_table): Update.
11130 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11131 * symfile.c (alloc_section_addr_info): Remove.
11132 (build_section_addr_info_from_section_table): Change return type.
11133 Update.
11134 (build_section_addr_info_from_bfd)
11135 (build_section_addr_info_from_objfile): Likewise.
11136 (free_section_addr_info): Remove.
11137 (relative_addr_info_to_section_offsets): Change type of "addrs".
11138 (addrs_section_compar): Now a std::sort comparator.
11139 (addrs_section_sort): Change return type.
11140 (addr_info_make_relative): Change type of "addrs". Update.
11141 (default_symfile_offsets, syms_from_objfile_1)
11142 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11143 (symbol_file_add_separate): Update.
11144 (symbol_file_add): Change type of "addrs". Update.
11145 (add_symbol_file_command): Update. Remove cleanups.
11146 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11147 cleanups.
11148 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11149 * solib.c (solib_read_symbols): Update.
11150 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11151 * machoread.c (macho_symfile_offsets): Update.
11152 * jit.c (jit_bfd_try_read_symtab): Update.
11153
03afa6ef
SM
111542018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11155
11156 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11157 unittests/utils-selftests.c.
11158 * unittests/utils-selftests.c: New file.
11159
3ae9ce5d
TT
111602018-03-14 Tom Tromey <tom@tromey.com>
11161
11162 PR cli/14977:
11163 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11164 for NULL.
11165
b8c2339b
TT
111662018-03-14 Tom Tromey <tom@tromey.com>
11167
11168 PR cli/19918:
11169 * printcmd.c (printf_pointer): Allow "-" in format.
11170
80ae639d
TT
111712018-03-14 Tom Tromey <tom@tromey.com>
11172
11173 * printcmd.c (_initialize_printcmd): Add usage to printf.
11174
0d671d99
YQ
111752018-03-14 Yao Qi <qiyao@sourceware.org>
11176
11177 * MAINTAINERS: Update my email address.
11178
b577b6af
TT
111792018-03-13 Tom Tromey <tom@tromey.com>
11180
11181 * machoread.c (macho_check_dsym): Change filenamep to a
11182 std::string*.
11183 (macho_symfile_read): Update.
11184 * symfile.c (load_command): Use std::string.
11185
89a3b63e
AB
111862018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11187
11188 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11189 to error message string.
11190 (riscv_register_name): Use xsnprintf instead of sprintf.
11191 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11192 internal_error.
11193 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11194 error.
11195 (riscv_push_dummy_call): Likewise.
11196
984c7238
TT
111972018-03-12 Tom Tromey <tom@tromey.com>
11198
11199 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11200 Use gdb::byte_vector.
11201 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11202
933522d1
YQ
112032018-03-12 Yao Qi <yao.qi@linaro.org>
11204
11205 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11206 parameter type to readable_regcache.
11207 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11208 the declaration.
11209
be2daae6
TT
112102018-03-11 Tom Tromey <tom@tromey.com>
11211
11212 * dwarf2read.c (struct nextfield): Add initializers.
11213 (struct nextfnfield): Remove.
11214 (struct fnfieldlist): Add initializers. Remove "length" and
11215 "head", use std::vector.
11216 (struct decl_field_list): Remove.
11217 (struct field_info): Add initializers.
11218 <fields, baseclasses>: Now std::vector.
11219 <nbaseclasses, nfnfields, typedef_field_list_count,
11220 nested_types_list_count>: Remove.
11221 (dwarf2_add_field, dwarf2_add_type_defn)
11222 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11223 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11224 (process_structure_scope): Update.
11225
484cf504
TT
112262018-03-11 Tom Tromey <tom@tromey.com>
11227
11228 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11229 for use by std::sort.
11230 (build_type_psymtabs_1): Use std::vector.
11231
9bd8e0b0
EZ
112322018-03-09 Eli Zaretskii <eliz@gnu.org>
11233
11234 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11235 and LIBMPFR in the printed configuration.
11236
5dc1a704
TT
112372018-03-08 Tom Tromey <tom@tromey.com>
11238
11239 * source.c (get_filename_and_charpos): Use scoped_fd.
11240 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11241 (procfs_pidlist): Likewise.
11242 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11243 (iterate_over_mappings): Likewise.
11244
fdf07f3a
TT
112452018-03-08 Tom Tromey <tom@tromey.com>
11246
11247 * infcall.c (struct call_return_meta_info)
11248 <stack_temporaries_enabled>: Remove.
11249 (get_call_return_value, call_function_by_hand_dummy): Update.
11250 * thread.c (disable_thread_stack_temporaries): Remove.
11251 (enable_thread_stack_temporaries): Remove.
11252 (thread_stack_temporaries_enabled_p): Return bool.
11253 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11254 (get_last_thread_stack_temporary): Update.
11255 * eval.c (evaluate_subexp): Update.
11256 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11257 class, not a function.
11258 (value_ptr, value_vec): Remove typedefs.
11259 (class thread_info) <stack_temporaries_enabled>: Now bool.
11260 <stack_temporaries>: Now a std::vector.
11261 (thread_stack_temporaries_enabled_p)
11262 (value_in_thread_stack_temporaries): Return bool.
11263
567a3e54
SM
112642018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11265
11266 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11267 (getpkt_or_notif_sane_1): Likewise.
11268
00b40057
SM
112692018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11270
11271 * build-id.c (build_id_to_debug_bfd): Use std::string.
11272
a8dbfd58
SM
112732018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11274
11275 * build-id.c (find_separate_debug_file_by_buildid): Return
11276 std::string.
11277 * build-id.h (find_separate_debug_file_by_buildid): Return
11278 std::string.
11279 * coffread.c (coff_symfile_read): Adjust to std::string.
11280 * elfread.c (elf_symfile_read): Adjust to std::string.
11281 * symfile.c (separate_debug_file_exists): Change parameter to
11282 std::string.
11283 (find_separate_debug_file): Return std::string.
11284 (find_separate_debug_file_by_debuglink): Return std::string.
11285 * symfile.h (find_separate_debug_file_by_debuglink): Return
11286 std::string.
11287
e6a58aa8
SM
112882018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11289
11290 * common/xml-utils.c (xml_escape_text): Move code to...
11291 (xml_escape_text_append): ... this new function.
11292 * common/xml-utils.h (xml_escape_text_append): New declaration.
11293 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11294 New function.
11295 (_initialize_xml_utils): register test_xml_escape_text_append as
11296 a selftest.
11297
4ef0bef6
AH
112982018-03-07 Alan Hayward <alan.hayward@arm.com>
11299
11300 * defs.h: Remove MAX_REGISTER_SIZE.
11301 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11302 asserts.
11303 * python/py-unwind.c (pyuw_sniffer): Likewise.
11304
e0d3522b
TT
113052018-03-07 Tom Tromey <tom@tromey.com>
11306
11307 * linux-tdep.c (linux_info_proc): Update.
11308 * target.h (struct target_ops) <to_fileio_readlink>: Return
11309 optional<string>.
11310 (target_fileio_readlink): Return optional<string>.
11311 * remote.c (remote_hostio_readlink): Return optional<string>.
11312 * inf-child.c (inf_child_fileio_readlink): Return
11313 optional<string>.
11314 * target.c (target_fileio_readlink): Return optional<string>.
11315
ea005f31
AB
113162018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11317
11318 * regcache.c (cooked_read_test): Add riscv to the list of
11319 architectures that have a save_reggroup.
11320
e95a97d4
AA
113212018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11322
11323 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11324 value is not a dynamic class object.
11325
d8344f3d
TT
113262018-03-06 Tom Tromey <tom@tromey.com>
11327
11328 * rust-exp.y: Formatting fixes.
11329
9add17f2
AB
113302018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11331
11332 * riscv-tdep.c (riscv_register_name): Remove target description
11333 support.
11334 (riscv_gdbarch_init): Remove target description check.
11335
c9486dfe
AB
113362018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11337
11338 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11339 comment.
11340 * riscv-tdep.h: Likewise.
11341
d74aff3d
AB
113422018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11343
11344 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11345 (riscv_pseudo_register_write): Delete.
11346 (riscv_gdbarch_init): Remove all use of pseudo registers.
11347
7ea78b59
SM
113482018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11349
11350 * record-btrace.c (btrace_print_lines): Replace cleanup
11351 parameter with RAII equivalents.
11352 (btrace_insn_history): Replace cleanup with RAII equivalents.
11353 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11354 make_cleanup_ui_out_tuple_begin_end): Remove.
11355 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11356 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11357 make_cleanup_ui_out_list_begin_end): Remove.
11358
53127008
SM
113592018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11360
11361 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11362 parameter types to std::vector. Use bool.
11363 (record_btrace_wait): Replace VEC(tp_t) with
11364 std::vector<thread_info *>.
11365 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11366
228f1508
SM
113672018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11368
11369 * record-btrace.c (record_btrace_disable_callback): Remove.
11370 (struct scoped_btrace_disable): New.
11371 (record_btrace_open): Use scoped_btrace_disable.
11372
b2970c23
AB
113732018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11374
11375 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11376 reading values from registers.
11377
fb294655
AB
113782018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11379
11380 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11381 where appropriate.
11382
cab5bb9d
AB
113832018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11384
11385 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11386 change parameter type. Use GDB's print functions, and use
11387 core_addr_to_string where appropriate.
11388 (riscv_push_dummy_call): Use core_addr_to_string where
11389 appropriate, update call to riscv_print_arg_location, and reindent
11390 a few lines.
11391 (riscv_return_value): Update call to riscv_print_arg_location.
11392
dbbb1059
AB
113932018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11394 Tim Newsome <tim@sifive.com>
11395 Albert Ou <a0u@eecs.berkeley.edu>
11396 Darius Rad <darius@bluespec.com>
11397
11398 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11399 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11400 (ALLDEPFILES): Add riscv-tdep.c
11401 * configure.tgt: Add riscv support.
11402 * riscv-tdep.c: New file.
11403 * riscv-tdep.h: New file.
11404 * NEWS: Mention new target.
11405 * MAINTAINERS: Add entry for riscv.
11406
5dc43913
AB
114072018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11408
11409 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11410 fields within aggregates.
11411
3dea1ef7
SM
114122018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11413
11414 * record-btrace.c (btrace_print_lines): Change type of flags to
11415 gdb_disassembly_flags.
11416
7efba073
JB
114172018-03-04 John Baldwin <jhb@FreeBSD.org>
11418
11419 * fbsd-nat.c: Include "inf-ptrace.h".
11420 (USE_SIGTRAP_SIGINFO): Conditionally define.
11421 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11422 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11423 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11424 function.
11425 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11426 Likewise.
11427 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11428 Likewise.
11429 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11430 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11431 "supports_stopped_by_hw_breakpoint" target methods.
11432
386a8676
JB
114332018-03-04 John Baldwin <jhb@FreeBSD.org>
11434
11435 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11436 * fbsd-nat.c (debug_fbsd_nat): New variable.
11437 (show_fbsd_nat_debug): New function.
11438 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11439 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11440
12279366
JB
114412018-03-04 John Baldwin <jhb@FreeBSD.org>
11442
11443 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11444 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11445 prototype.
11446 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11447 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11448 method.
11449
54693cf5
SM
114502018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11451
11452 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11453 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11454
ccb2231c
SM
114552018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11456
11457 * charset.c (struct charset_vector): New.
11458 (charsets): Change type to charset_vector.
11459 (find_charset_names): Adjust.
11460 (add_one): Adjust.
11461 (_initialize_charset): Adjust.
11462
6fb16ce6
SM
114632018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11464
11465 * progspace.h (struct program_space) <deleted_solibs>: Change
11466 type to std::vector<std::string>.
11467 * progspace.c (clear_program_space_solib_cache): Adjust.
11468 * breakpoint.c (print_solib_event): Adjust.
11469 (check_status_catch_solib): Adjust.
11470 * solib.c (update_solib_list): Adjust.
11471 * ui-out.h (class ui_out) <field_string>: New overload.
11472 * ui-out.c (ui_out::field_string): New overload.
11473
564b1e3f
SM
114742018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11475
11476 * progspace.h (struct program_space): Add constructor and
11477 destructor, initialize fields.
11478 (add_program_space): Remove.
11479 * progspace.c (add_program_space): Rename to...
11480 (program_space::program_space): ... this.
11481 (release_program_space): Rename to...
11482 (program_space::~program_space): ... this.
11483 (delete_program_space): Use delete to delete program_space.
11484 (initialize_progspace): Use new to allocate program_space.
11485 * inferior.c (add_inferior_with_spaces): Likewise.
11486 (clone_inferior_command): Likewise.
11487 * infrun.c (follow_fork_inferior): Likewise.
11488 (handle_vfork_child_exec_or_exit): Likewise.
11489
e80aaf61
SM
114902018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11491
11492 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11493 (delim_string_to_char_ptr_vec): Return std::vector of
11494 gdb::unique_xmalloc_ptr.
11495 (dirnames_to_char_ptr_vec_append): Take std::vector of
11496 gdb::unique_xmalloc_ptr.
11497 (dirnames_to_char_ptr_vec): Return std::vector of
11498 gdb::unique_xmalloc_ptr.
11499 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11500 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11501 (delim_string_to_char_ptr_vec): Return an std::vector of
11502 gdb::unique_xmalloc_ptr, adjust the code.
11503 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11504 gdb::unique_xmalloc_ptr, adjust the code.
11505 (dirnames_to_char_ptr_vec): Return an std::vector of
11506 gdb::unique_xmalloc_ptr, adjust the code.
11507 * auto-load.c (auto_load_safe_path_vec): Change type to
11508 std::vector of gdb::unique_xmalloc_ptr.
11509 (auto_load_expand_dir_vars): Return an std::vector of
11510 gdb::unique_xmalloc_ptr, adjust the code.
11511 (auto_load_safe_path_vec_update): Adjust.
11512 (filename_is_in_auto_load_safe_path_vec): Adjust.
11513 (auto_load_objfile_script_1): Adjust.
11514 * build-id.c (build_id_to_debug_bfd): Adjust.
11515 * linux-thread-db.c (thread_db_load_search): Adjust.
11516 * source.c (add_path): Adjust.
11517 (openp): Adjust.
11518 * symfile.c (find_separate_debug_file): Adjust.
11519 * utils.c (do_free_char_ptr_vec): Remove.
11520 (make_cleanup_free_char_ptr_vec): Remove.
11521
ab818ade
SDJ
115222018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11523
11524 PR gdb/22907
11525 * common/pathstuff.c: Conditionally include "<windows.h>".
11526
e1e6f073
GS
115272018-03-01 Georg Sauthoff <mail@georg.so>
11528
11529 PR gdb/22888
11530 * gcore.in: Quote variables and switch interpreter to bash.
11531
c7b15a66
TT
115322018-03-01 Tom Tromey <tom@tromey.com>
11533
11534 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11535 assertion. Add assertion for discriminant_index.
11536 (quirk_rust_enum): Use correct base type name in univariant case.
11537
0cb7c7b0
SM
115382018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11539
11540 * record.c (get_call_history_modifiers): Return a
11541 record_print_flags.
11542 (cmd_record_call_history): Adjust.
11543 * record-btrace.c (record_btrace_call_history): Adjust.
11544 (record_btrace_call_history_range): Adjust.
11545 (record_btrace_call_history_from): Adjust.
11546 * target-debug.h (target_debug_print_record_print_flags): New.
11547 * target-delegates.c: Re-generate.
11548 * target.c (target_call_history): Change flags type.
11549 (target_call_history_from): Likewise.
11550 (target_call_history_range): Likewise.
11551 * target.h (struct target_ops) <target_call_history>: Likewise.
11552 (target_call_history_from): Likewise.
11553 (target_call_history_range): Likewise.
11554
25e3c82c
SDJ
115552018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11556 Simon Marchi <simon.marchi@polymtl.ca>
11557
11558 * common/common-utils.c: Include "sys/stat.h".
11559 (is_regular_file): Move here from "source.c"; change return
11560 type to "bool".
11561 * common/common-utils.h (is_regular_file): New prototype.
11562 * common/pathstuff.c (contains_dir_separator): New function.
11563 * common/pathstuff.h (contains_dir_separator): New prototype.
11564 * source.c: Don't include "sys/stat.h".
11565 (is_regular_file): Move to "common/common-utils.c".
11566
b4987c95
SDJ
115672018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11568
11569 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11570 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11571 * auto-load.c: Include "common/pathstuff.h".
11572 * common/common-def.h (current_directory): Move here.
11573 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11574 function.
11575 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11576 prototype.
11577 * common/pathstuff.c: New file.
11578 * common/pathstuff.h: New file.
11579 * compile/compile.c: Include "common/pathstuff.h".
11580 * defs.h (current_directory): Move to "common/common-defs.h".
11581 * dwarf2read.c: Include "common/pathstuff.h".
11582 * exec.c: Likewise.
11583 * guile/scm-safe-call.c: Likewise.
11584 * linux-thread-db.c: Likewise.
11585 * main.c: Likewise.
11586 * nto-tdep.c: Likewise.
11587 * objfiles.c: Likewise.
11588 * source.c: Likewise.
11589 * symtab.c: Likewise.
11590 * utils.c: Include "common/pathstuff.h".
11591 (gdb_realpath): Move to "common/pathstuff.c".
11592 (gdb_realpath_keepfile): Likewise.
11593 (gdb_abspath): Likewise.
11594 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11595 (gdb_realpath_keepfile): Likewise.
11596 (gdb_abspath): Likewise.
11597
f169cfdc
JB
115982018-02-28 John Baldwin <jhb@FreeBSD.org>
11599
11600 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11601 wildcard process pid for super_resume for kernels with a
11602 specific bug.
11603
e05cac70
PM
116042018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11605
11606 * compile/compile.c (get_args): Add additional comments
11607 explaining function.
11608
55089490
TT
116092018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11610 Tom Tromey <tom@tromey.com>
11611
11612 * target.h (memory_write_request_s): Remove typedef. Don't define
11613 VEC.
11614 (target_write_memory_blocks): Change argument to std::vector.
11615 (struct memory_write_request): Add constructor.
11616 * target-memory.c (compare_block_starting_address): Return bool.
11617 Change argument types.
11618 (claim_memory): Change arguments to use std::vector.
11619 (split_regular_and_flash_blocks, blocks_to_erase)
11620 (compute_garbled_blocks): Likewise.
11621 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11622 (target_write_memory_blocks): Change argument to std::vector.
11623 * symfile.c (struct load_section_data): Add constructor and
11624 destructor. Use std::vector for "requests".
11625 (struct load_progress_data): Add initializers.
11626 (load_section_callback): Update. Use "new".
11627 (clear_memory_write_data): Remove.
11628 (generic_load): Update.
11629
0c305b61
AH
116302018-02-27 Alan Hayward <alan.hayward@arm.com>
11631
11632 * arch/aarch64.h: Use common/tdesc.h.
11633
c5196c92
MR
116342018-02-26 Maciej W. Rozycki <macro@mips.com>
11635
11636 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11637 architecture with a 64-bit ABI.
11638
37c33887
MR
116392018-02-26 Maciej W. Rozycki <macro@mips.com>
11640
11641 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11642 ahead of target description loading.
11643
d4dd3282
TT
116442018-02-26 Tom Tromey <tom@tromey.com>
11645
11646 * stack.c (backtrace_command_1): Update.
11647 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11648 of "flags".
11649 * python/py-framefilter.c (py_print_frame)
11650 (gdbpy_apply_frame_filter): Change type of "flags".
11651 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11652 of "flags".
11653 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11654 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11655 * extension.h (enum frame_filter_flag): Rename from
11656 frame_filter_flags.
11657 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11658 (apply_ext_lang_frame_filter): Change type of "flags".
11659 * extension.c (apply_ext_lang_frame_filter): Change type of
11660 "flags".
11661 * extension-priv.h (struct extension_language_ops)
11662 <apply_frame_filter>: Change type of "flags".
11663
6893c19a
TT
116642018-02-26 Tom Tromey <tom@tromey.com>
11665
11666 PR python/16497:
11667 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11668 off-by-one in py_end computation.
11669 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11670 PRINT_MORE_FRAMES.
11671 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11672 constant.
11673
2ddeaf8a
TT
116742018-02-26 Tom Tromey <tom@tromey.com>
11675
11676 * dwarf2read.c (struct variant_field): New.
11677 (struct nextfield) <variant>: New field.
11678 (dwarf2_add_field): Handle DW_TAG_variant_part.
11679 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11680 discriminated union.
11681 (read_structure_type): Handle DW_TAG_variant_part.
11682 (handle_struct_member_die): New function, extracted from
11683 process_structure_scope. Handle DW_TAG_variant.
11684 (process_structure_scope): Handle discriminated unions. Call
11685 handle_struct_member_die.
11686
c9317f21
TT
116872018-02-26 Tom Tromey <tom@tromey.com>
11688
11689 * rust-lang.h (rust_last_path_segment): Declare.
11690 * rust-lang.c (rust_last_path_segment): Now public. Change
11691 contract.
11692 (struct disr_info): Remove.
11693 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11694 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11695 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11696 (rust_enum_p, rust_enum_variant): New function.
11697 (rust_underscore_fields): Remove "offset" parameter.
11698 (rust_print_enum): New function.
11699 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11700 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11701 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11702 enums.
11703 (rust_internal_print_type): New function, from rust_print_type.
11704 Remove enum code.
11705 (rust_print_type): Call rust_internal_print_type.
11706 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11707 Update enum handling.
11708 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11709 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11710 (rust_union_quirks): New functions.
11711 (process_full_comp_unit, process_full_type_unit): Call
11712 rust_union_quirks.
11713 (process_structure_scope): Update rust_unions if necessary.
11714
7c22600a
TT
117152018-02-26 Tom Tromey <tom@tromey.com>
11716
11717 * value.h (value_union_variant): Declare.
11718 * valops.c (value_union_variant): New function.
11719 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11720 (struct discriminant_info): New.
11721 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11722 enumerator.
11723 (struct main_type) <flag_discriminated_union>: New field.
11724
15ce8941
TT
117252018-02-26 Tom Tromey <tom@tromey.com>
11726
11727 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11728 unittests/unpack-selftests.c.
11729 * unittests/unpack-selftests.c: New file.
11730 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11731
48fbe735
YQ
117322018-02-26 Yao Qi <yao.qi@linaro.org>
11733
11734 * dwarf2read.c (struct partial_die_info) <read>: New method.
11735 (read_partial_die): Remove the declaration.
11736 (load_partial_dies): Update.
11737 (partial_die_info::partial_die_info):
11738 (read_partial_die): Change it to partial_die_info::read.
11739
52356b79
YQ
117402018-02-26 Yao Qi <yao.qi@linaro.org>
11741
11742 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11743 (fixup_partial_die): Remove declaration.
11744 (scan_partial_symbols): Update.
11745 (partial_die_parent_scope): Likewise.
11746 (partial_die_full_name): Likewise.
11747 (fixup_partial_die): Change it to partial_die_info::fixup.
11748
35cc7ed7
YQ
117492018-02-26 Yao Qi <yao.qi@linaro.org>
11750
11751 * dwarf2read.c (read_partial_die): Update the declaration.
11752 (load_partial_dies): Caller update.
11753 (read_partial_die): Remove one argument abbrev_len.
11754
6f06d47b
YQ
117552018-02-26 Yao Qi <yao.qi@linaro.org>
11756
11757 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11758 assignment operator.
11759 (load_partial_dies): Use ctor and copy ctor.
11760 (read_partial_die): Update.
11761 (dwarf2_cu::find_partial_die): Use ctor.
11762
d590ff25
YQ
117632018-02-26 Yao Qi <yao.qi@linaro.org>
11764
11765 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11766 (find_partial_die_in_comp_unit): Change it to
11767 dwarf2_cu::find_partial_die.
11768 (find_partial_die): Update.
11769
fd0a254f
YQ
117702018-02-26 Yao Qi <yao.qi@linaro.org>
11771
11772 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11773 is NULL.
11774
cd9983dd
YQ
117752018-02-26 Yao Qi <yao.qi@linaro.org>
11776
11777 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11778
f46cd62a
AH
117792018-02-26 Alan Hayward <alan.hayward@arm.com>
11780
11781 * arch/amd64.h: Use common/tdesc.h.
11782 * arch/i386.c: Likewise.
11783 * arch/i386.h: Likewise.
11784 * arch/tic6x.c: Likewise.
11785 * arch/tdesc.h: Move file from here...
11786 * common/tdesc.h: ...to here.
11787 * features/aarch64-core.c: Regenerate.
11788 * features/aarch64-fpu.c: Regenerate.
11789 * features/i386/32bit-avx.c: Regenerate.
11790 * features/i386/32bit-avx512.c: Regenerate.
11791 * features/i386/32bit-core.c: Regenerate.
11792 * features/i386/32bit-linux.c: Regenerate.
11793 * features/i386/32bit-mpx.c: Regenerate.
11794 * features/i386/32bit-pkeys.c: Regenerate.
11795 * features/i386/32bit-sse.c: Regenerate.
11796 * features/i386/64bit-avx.c: Regenerate.
11797 * features/i386/64bit-avx512.c: Regenerate.
11798 * features/i386/64bit-core.c: Regenerate.
11799 * features/i386/64bit-linux.c: Regenerate.
11800 * features/i386/64bit-mpx.c: Regenerate.
11801 * features/i386/64bit-pkeys.c: Regenerate.
11802 * features/i386/64bit-segments.c: Regenerate.
11803 * features/i386/64bit-sse.c: Regenerate.
11804 * features/i386/x32-core.c: Regenerate.
11805 * features/tic6x-c6xp.c: Regenerate.
11806 * features/tic6x-core.c: Regenerate.
11807 * features/tic6x-gp.c: Regenerate.
11808 * target-descriptions.c: Use common/tdesc.h.
11809 * target-descriptions.h: Likewise.
11810
9b292f68
TT
118112018-02-24 Tom Tromey <tom@tromey.com>
11812
11813 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11814 (try_thread_db_load_from_dir, thread_db_load_search): Use
11815 std::string.
11816 (info_auto_load_libthread_db_compare): Return bool. Change
11817 argument types.
11818 (info_auto_load_libthread_db): Use std::vector, std::string.
11819 Remove cleanups.
11820
281d762b
TT
118212018-02-24 Tom Tromey <tom@tromey.com>
11822
11823 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11824 std::string.
11825 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11826 std::string*.
11827 * gdbarch.c: Rebuild.
11828 * gdbarch.h: Rebuild.
11829 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11830 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11831 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11832 std::string*.
11833
9d8780f0
SM
118342018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11835
11836 * gdbtypes.h (sect_offset): Change type to uint64_t.
11837 (sect_offset_str): New function.
11838 * dwarf2read.c (create_addrmap_from_aranges): Use
11839 sect_offset_str.
11840 (error_check_comp_unit_head): Likewise.
11841 (create_debug_type_hash_table): Likewise.
11842 (read_cutu_die_from_dwo): Likewise.
11843 (init_cutu_and_read_dies): Likewise.
11844 (init_cutu_and_read_dies_no_follow): Likewise.
11845 (process_psymtab_comp_unit_reader): Likewise.
11846 (partial_die_parent_scope): Likewise.
11847 (peek_die_abbrev): Likewise.
11848 (process_queue): Likewise.
11849 (dwarf2_physname): Likewise.
11850 (read_namespace_alias): Likewise.
11851 (read_import_statement): Likewise.
11852 (create_dwo_cu_reader): Likewise.
11853 (create_cus_hash_table): Likewise.
11854 (lookup_dwo_cutu): Likewise.
11855 (inherit_abstract_dies): Likewise.
11856 (read_func_scope): Likewise.
11857 (read_call_site_scope): Likewise.
11858 (dwarf2_add_member_fn): Likewise.
11859 (read_common_block): Likewise.
11860 (read_module_type): Likewise.
11861 (read_typedef): Likewise.
11862 (read_subrange_type): Likewise.
11863 (load_partial_dies): Likewise.
11864 (read_partial_die): Likewise.
11865 (find_partial_die): Likewise.
11866 (read_str_index): Likewise.
11867 (dwarf2_string_attr): Likewise.
11868 (build_error_marker_type): Likewise.
11869 (lookup_die_type): Likewise.
11870 (dump_die_shallow): Likewise.
11871 (follow_die_ref): Likewise.
11872 (dwarf2_fetch_die_loc_sect_off): Likewise.
11873 (dwarf2_fetch_constant_bytes): Likewise.
11874 (follow_die_sig): Likewise.
11875 (get_signatured_type): Likewise.
11876 (get_DW_AT_signature_type): Likewise.
11877 (dwarf2_find_containing_comp_unit): Likewise.
11878 (set_die_type): Likewise.
11879
8ec57239
JB
118802018-02-21 John Baldwin <jhb@FreeBSD.org>
11881
11882 * arch/aarch64.c: Include "common-defs.h".
11883 * arch/amd64.c: Likewise.
11884 * arch/i386.c: Likewise.
11885
3eac2b65
TT
118862018-02-21 Tom Tromey <tom@tromey.com>
11887
11888 * value.h: (extract_field_op): Update.
11889 * eval.c (extract_field_op): Return a const char *.
11890 * expression.h (parse_expression_for_completion): Update.
11891 * completer.c (complete_expression): Update.
11892 (add_struct_fields): Make fieldname const.
11893 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11894 (mark_completion_tag, parse_exp_in_context_1): Update.
11895 (parse_expression_for_completion): Change "name" to
11896 unique_xmalloc_ptr*.
11897
6ccb583f
TT
118982018-02-21 Tom Tromey <tom@tromey.com>
11899
11900 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11901
c113ed0c
YQ
119022018-02-21 Yao Qi <yao.qi@linaro.org>
11903
11904 * avr-tdep.c (avr_read_pc): Change parameter type to
11905 readable_regcache.
11906 * gdbarch.sh (read_pc): Likewise.
11907 * gdbarch.c: Re-generated.
11908 * gdbarch.h: Re-generated.
11909 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11910 readable_regcache.
11911 * ia64-tdep.c (ia64_read_pc): Likewise.
11912 * mips-tdep.c (mips_read_pc): Likewise.
11913 * spu-tdep.c (spu_read_pc): Likewise.
11914
4c74fe6b
YQ
119152018-02-21 Yao Qi <yao.qi@linaro.org>
11916
11917 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11918 * regcache-dump.c: New file.
11919 * regcache.c: Move register_dump to regcache-dump.c.
11920 (maintenance_print_registers): Likewise.
11921 (maintenance_print_raw_registers): Likewise.
11922 (maintenance_print_cooked_registers): Likewise.
11923 (maintenance_print_register_groups): Likewise.
11924 (maintenance_print_remote_registers): Likewise.
11925 (_initialize_regcache): Likewise.
11926 * regcache.h (register_dump): Moved from regcache.c.
11927
796bb026
YQ
119282018-02-21 Yao Qi <yao.qi@linaro.org>
11929
11930 * regcache.c (regcache::regcache): Update.
11931 (regcache::invalidate): Move it to detached_regcache::invalidate.
11932 (get_thread_arch_aspace_regcache): Update.
11933 (regcache::raw_update): Update.
11934 (regcache::cooked_read): Remove some code.
11935 (regcache::cooked_read_value): Likewise.
11936 (regcache::raw_write): Remove assert on m_readonly_p.
11937 (regcache::raw_supply_integer): Move it to
11938 detached_regcache::raw_supply_integer.
11939 (regcache::raw_supply_zeroed): Likewise.
11940 * regcache.h (detached_regcache) <raw_supply_integer>: New
11941 declaration.
11942 <raw_supply_zeroed, invalidate>: Likewise.
11943 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11944 <invalidate>: Likewise.
11945 <m_readonly_p>: Removed.
11946
215c69dc
YQ
119472018-02-21 Yao Qi <yao.qi@linaro.org>
11948
11949 * infcmd.c (get_return_value): Let stop_regs point to
11950 get_current_regcache.
11951 * regcache.c (regcache::regcache): Remove.
11952 (register_dump_reg_buffer): New class.
11953 (regcache_print): Adjust.
11954 * regcache.h (regcache): Remove constructors.
11955
f3384e66
YQ
119562018-02-21 Yao Qi <yao.qi@linaro.org>
11957
11958 * regcache.c (class register_dump): New class.
11959 (register_dump_regcache, register_dump_none): New class.
11960 (register_dump_remote, register_dump_groups): New class.
11961 (regcache_print): Update.
11962 * regcache.h (regcache_dump_what): Move it to regcache.c.
11963 (regcache) <dump>: Remove.
11964
c8ec2f33
YQ
119652018-02-21 Yao Qi <yao.qi@linaro.org>
11966
11967 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11968 reg_buffer_rw *.
11969 (jit_unwind_reg_set_impl): Call raw_supply.
11970 (jit_frame_sniffer): Use reg_buffer_rw.
11971 * record-full.c (record_full_core_regbuf): Change its type.
11972 (record_full_core_open_1): Use reg_buffer_rw.
11973 (record_full_close): Likewise.
11974 (record_full_core_fetch_registers): Use regcache->raw_supply.
11975 (record_full_core_store_registers): Likewise.
11976 * regcache.c (regcache::get_register_status): Move it to
11977 reg_buffer.
11978 (regcache_raw_set_cached_value): Remove.
11979 (regcache::raw_set_cached_value): Remove.
11980 (regcache::raw_write): Call raw_supply.
11981 (regcache::raw_supply): Move it to reg_buffer_rw.
11982 * regcache.h (regcache_raw_set_cached_value): Remove.
11983 (reg_buffer_rw): New class.
11984
daf6667d
YQ
119852018-02-21 Yao Qi <yao.qi@linaro.org>
11986
11987 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11988 readonly_detached_regcache.
11989 (dummy_frame_prev_register): Use regcache->cooked_read.
11990 * frame.c (frame_save_as_regcache): Change return type.
11991 (frame_pop): Update.
11992 * frame.h (frame_save_as_regcache): Update declaration.
11993 * inferior.h (get_infcall_suspend_state_regcache): Update
11994 declaration.
11995 * infrun.c (infcall_suspend_state) <registers>: use
11996 readonly_detached_regcache.
11997 (save_infcall_suspend_state): Don't use regcache_dup.
11998 (get_infcall_suspend_state_regcache): Change return type.
11999 * linux-fork.c (struct fork_info) <savedregs>: Change to
12000 readonly_detached_regcache.
12001 <pc>: New field.
12002 (fork_save_infrun_state): Don't use regcache_dup.
12003 (info_checkpoints_command): Adjust.
12004 * mi/mi-main.c (register_changed_p): Update declaration.
12005 (mi_cmd_data_list_changed_registers): Use
12006 readonly_detached_regcache.
12007 (register_changed_p): Change parameter type to
12008 readonly_detached_regcache.
12009 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12010 readonly_detached_regcache.
12011 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12012 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12013 New.
12014 (regcache::save): Move it to reg_buffer.
12015 (regcache::restore): Change parameter type.
12016 (regcache_dup): Remove.
12017 * regcache.h (reg_buffer) <save>: New method.
12018 (readonly_detached_regcache): New class.
12019 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12020 readonly_detached_regcache.
12021 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12022
fc5b8736
YQ
120232018-02-21 Yao Qi <yao.qi@linaro.org>
12024
12025 * frame.c (frame_save_as_regcache): Use regcache method save.
12026 (frame_pop): Use regcache method restore.
12027 * infrun.c (restore_infcall_suspend_state): Likewise.
12028 * linux-fork.c (fork_load_infrun_state): Likewise.
12029 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12030 save.
12031 * regcache.c (regcache_save): Remove.
12032 (regcache::restore): More asserts.
12033 (regcache_cpy): Remove.
12034 * regcache.h (regcache_save): Remove the declaration.
12035 (regcache::restore): Move from private to public.
12036 Remove the friend declaration of regcache_cpy.
12037 (regcache_cpy): Remove declaration.
12038
849d0ba8
YQ
120392018-02-21 Yao Qi <yao.qi@linaro.org>
12040
12041 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12042 parameter type to 'readable_regcache *'.
12043 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12044 * arm-tdep.c (arm_neon_quad_read): Likewise.
12045 (arm_pseudo_read): Likewise.
12046 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12047 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12048 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12049 * gdbarch.c: Re-generated.
12050 * gdbarch.h: Re-generated.
12051 * gdbarch.sh (pseudo_register_read): Change parameter type to
12052 'readable_regcache *'.
12053 (pseudo_register_read_value): Likewise.
12054 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12055 (h8300_pseudo_register_read): Likewise.
12056 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12057 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12058 (i386_pseudo_register_read_into_value): Likewise.
12059 (i386_pseudo_register_read_value): Likewise.
12060 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12061 declaration.
12062 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12063 * m32c-tdep.c (m32c_raw_read): Likewise.
12064 (m32c_read_flg): Likewise.
12065 (m32c_banked_register): Likewise.
12066 (m32c_banked_read): Likewise.
12067 (m32c_sb_read): Likewise.
12068 (m32c_part_read): Likewise.
12069 (m32c_cat_read): Likewise.
12070 (m32c_r3r2r1r0_read): Likewise.
12071 (m32c_pseudo_register_read): Likewise.
12072 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12073 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12074 (mep_pseudo_cr64_read): Likewise.
12075 (mep_pseudo_register_read): Likewise.
12076 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12077 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12078 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12079 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12080 (regcache::cooked_read): Likewise.
12081 (regcache::cooked_read_value): Likewise.
12082 (regcache_cooked_read_signed):
12083 (regcache::cooked_read): Likewise.
12084 * regcache.h (readable_regcache): New class.
12085 (regcache): Inherit readable_regcache. Move some methods to
12086 readable_regcache.
12087 * rl78-tdep.c (rl78_pseudo_register_read): Change
12088 parameter type to 'readable_regcache *'.
12089 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12090 (e500_pseudo_register_read): Change parameter type to
12091 'readable_regcache *'.
12092 (dfp_pseudo_register_read): Likewise.
12093 (vsx_pseudo_register_read): Likewise.
12094 (efpr_pseudo_register_read): Likewise.
12095 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12096 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12097 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12098 (sh64_pseudo_register_read): Likewise.
12099 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12100 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12101 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12102 (spu_pseudo_register_read): Likewise.
12103 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12104 (xtensa_pseudo_register_read): Likewise.
12105
31716595
YQ
121062018-02-21 Yao Qi <yao.qi@linaro.org>
12107
12108 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12109 (regcache::arch): Move it to reg_buffer::arch.
12110 (regcache::register_buffer): Likewise.
12111 (regcache::assert_regnum): Likewise.
12112 (regcache::num_raw_registers): Likewise.
12113 * regcache.h (reg_buffer): New class.
12114 (regcache): Inherit reg_buffer.
12115
7104e59b
SM
121162018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12117
12118 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12119 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12120
2d8adcbd
MM
121212018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12122
12123 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12124
b5884fa7
AH
121252018-02-19 Alan Hayward <alan.hayward@arm.com>
12126
12127 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12128 (SFILES): Remove common/*.c files.
12129 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12130 * common/common.host: Add common reference.
12131 * configure.ac: Likewise.
12132 * configure: Regenerate.
12133
fd90ace4
YQ
121342018-02-16 Yao Qi <yao.qi@linaro.org>
12135
12136 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12137 (block_initialize_namespace): Use new.
12138 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12139 (dwarf2_free_objfile): Use delete.
12140 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12141 (copy_type_recursive): Use new.
12142 * gdb_obstack.h (allocate_on_obstack): New.
12143
85046ae2
YQ
121442018-02-15 Yao Qi <yao.qi@linaro.org>
12145
12146 PR gdb/22849
12147 * inferior.c (exit_inferior_1): Reset inf->control.
12148
355c559b
JB
121492018-02-15 Joel Brobecker <brobecker@adacore.com>
12150
12151 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12152 declaration.
12153
980548fd
PA
121542018-02-14 Pedro Alves <palves@redhat.com>
12155
12156 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12157 frame_cleanup_after_sniffer on exception.
12158
692d6f97
TT
121592018-02-14 Tom Tromey <tom@tromey.com>
12160
12161 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12162 const.
12163 (solib_bfd_open): Make pathname const.
12164 * solib.c (solib_bfd_open): Make pathname const.
12165 * solib-spu.c (spu_bfd_fopen): Make name const.
12166 (spu_bfd_open): Make pathname const.
12167 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12168 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12169
e0cc99a6
TT
121702018-02-14 Tom Tromey <tom@tromey.com>
12171
12172 * symfile.c (symfile_bfd_open): Update.
12173 * source.h (openp, source_full_path_of, find_and_open_source):
12174 Change argument type to unique_xmalloc_ptr.
12175 * source.c (openp): Take a unique_xmalloc_ptr.
12176 (source_full_path_of, find_and_open_source): Likewise.
12177 (open_source_file, symtab_to_fullname): Update.
12178 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12179 unique_xmalloc_ptr.
12180 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12181 (exec_file_find): Update.
12182 * psymtab.c (psymtab_to_fullname): Update.
12183 * nto-tdep.h (nto_find_and_open_solib): Update.
12184 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12185 unique_xmalloc_ptr.
12186 * exec.c (exec_file_attach): Update.
12187 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12188 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12189
b46a8d7c
TT
121902018-02-14 Tom Tromey <tom@tromey.com>
12191
12192 * solib.c: Include source.h.
12193 * nto-tdep.c: Include source.h.
12194 * mi/mi-cmd-env.c: Include source.h.
12195 * infcmd.c: Include source.h.
12196 * exec.c: Include source.h.
12197 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12198 (add_path, directory_switch, source_path, init_source_path): Move
12199 declarations...
12200 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12201 (add_path, directory_switch, source_path, init_source_path):
12202 ...here.
12203
797bc1cb
TT
122042018-02-14 Tom Tromey <tom@tromey.com>
12205
12206 * solist.h (exec_file_find, solib_find): Return
12207 unique_xmalloc_ptr.
12208 (solib_bfd_fopen): Take a const char *.
12209 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12210 (exec_file_find, solib_find): Likewise.
12211 (solib_bfd_fopen): Do not take ownership of "pathname".
12212 (solib_bfd_open): Use unique_xmalloc_ptr.
12213 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12214 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12215 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12216 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12217
f98b2e33
JB
122182018-02-14 Joel Brobecker <brobecker@adacore.com>
12219
12220 * ada-lang.c (name_match_type_from_name): Remove reference to
12221 ada_name_for_lookup in function's documentation.
12222 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12223
24b9144d
SM
122242018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12225
12226 * defs.h (enum openp_flags): New enum.
12227 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12228 Move to enum openp_flags.
12229 (openp_flags): New enum flags.
12230 (openp): Change parameter type to openp_flags.
12231 * source.c (openp): Change parameter type to openp_flags.
12232 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12233 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12234
387cd15b
SM
122352018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12236
12237 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12238 per-command.
12239
b303c6f6
AB
122402018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12241
12242 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12243 into...
12244 (class dwarf2_queue_guard): ...the destructor of this new class.
12245 (dw2_do_instantiate_symtab): Create instance of the new class
12246 dwarf2_queue_guard, remove cleanup.
12247
9c3630e9
TT
122482018-02-09 Tom Tromey <tom@tromey.com>
12249
12250 * source.c (find_source_lines): Don't reference past the end of
12251 the vector.
12252
c4e12631
MM
122532018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12254
12255 * remote.c (remote_btrace_maybe_reopen): Change error message.
12256 * btrace.c (btrace_enable): Likewise.
12257 (parse_xml_btrace): Likewise.
12258 (parse_xml_btrace_conf): Likewise.
12259
88711fbf
MM
122602018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12261
12262 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12263 (linux_enable_pt, linux_enable_bts): Call
12264 diagnose_perf_event_open_fail.
12265
17ad2a4f
MM
122662018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12267
12268 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12269 Remove parameter and change return type. Update callers. Move it.
12270 (linux_enable_bts, linux_enable_pt): Improve error message.
12271 (linux_enable_pt): Remove zero buffer size check.
12272 (linux_enable_btrace): Improve error messages. Remove NULL return
12273 check.
12274
de6242d3
MM
122752018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12276
12277 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12278 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12279 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12280 (linux_supports_pt, linux_supports_btrace): Remove.
12281 (linux_enable_bts): Call cpu_supports_bts.
12282 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12283 * remote.c (remote_supports_btrace): Remove.
12284 (init_remote_ops): Remove remote_supports_btrace.
12285 * target-delegates.c: Regenerated.
12286 * target.c (target_supports_btrace): Remove.
12287 * target.h (target_ops) <to_supports_btrace>: Remove
12288 (target_supports_btrace): Remove.
12289 * x86-linux-nat.c (x86_linux_create_target): Remove
12290 linux_supports_btrace.
12291
9ee23a85
MM
122922018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12293
12294 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12295 btrace failed.
12296 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12297 exception and use message in own exception.
12298
5c3284c1
MM
122992018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12300
12301 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12302 (perf_event_pt_event_type): Use gdb_file_up.
12303 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12304 scoped_fd, and scoped_mmap.
12305
84696f37
MM
123062018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12307
12308 * common/scoped_mmap.h: New.
12309 * unittests/scoped_mmap-selftest.c: New.
12310 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12311 unittests/scoped_mmap-selftest.c.
12312
ea4a0888
MM
123132018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12314
12315 * common/scoped_fd.h: New.
12316 * unittests/scoped_fd-selftest.c: New.
12317 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12318 unittests/scoped_fd-selftest.c.
12319
869e8290
TT
123202018-02-09 Tom Tromey <tom@tromey.com>
12321
12322 * auto-load.c (auto_load_section_scripts): Use
12323 gdb::unique_xmalloc_ptr.
12324
a37a2ae7
TT
123252018-02-09 Tom Tromey <tom@tromey.com>
12326
12327 * auto-load.c (execute_script_contents): Use std::string.
12328
4e725347
JB
123292018-02-09 Joel Brobecker <brobecker@adacore.com>
12330
12331 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12332 Python function, rather than a new command.
12333
9a897d43
TT
123342018-02-08 Tom Tromey <tom@tromey.com>
12335
12336 * solib.c (solib_find_1): Use std::string.
12337 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12338
58ef3771
TT
123392018-02-08 Tom Tromey <tom@tromey.com>
12340
12341 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12342
a9abc434
TT
123432018-02-08 Tom Tromey <tom@tromey.com>
12344
12345 * source.c (find_source_lines): Use gdb::def_vector.
12346
84f27c6f
TT
123472018-02-08 Tom Tromey <tom@tromey.com>
12348
12349 * macrocmd.c (struct temporary_macro_definition): New.
12350 (macro_define_command): Use temporary_macro_definition. Remove
12351 cleanups.
12352 (free_macro_definition_ptr): Remove.
12353
0354904b
TT
123542018-02-08 Tom Tromey <tom@tromey.com>
12355
12356 * macroexp.c (maybe_expand): Use std::string.
12357
1739cf24
TT
123582018-02-08 Tom Tromey <tom@tromey.com>
12359
12360 * macroexp.c (struct macro_buffer): Add initializers for some
12361 members.
12362 (init_buffer, init_shared_buffer, free_buffer)
12363 (free_buffer_return_text): Remove.
12364 (macro_buffer): New constructors.
12365 (~macro_buffer): New destructor.
12366 (macro_buffer::set_shared): New method.
12367 (macro_buffer::resize_buffer, macro_buffer::appendc)
12368 (macro_buffer::appendmem): Now methods, not free functions.
12369 (set_token, append_tokens_without_splicing, stringify)
12370 (macro_stringify): Update.
12371 (gather_arguments): Change return type. Remove argc_p argument,
12372 add args_ptr argument. Use std::vector.
12373 (substitute_args): Remove argc argument. Accept std::vector.
12374 (expand): Update. Use std::vector.
12375 (scan, macro_expand, macro_expand_next): Update.
12376
f6c2623e
TT
123772018-02-08 Tom Tromey <tom@tromey.com>
12378
12379 * symtab.c (default_collect_symbol_completion_matches_break_on):
12380 Use unique_xmalloc_ptr.
12381 * macroscope.h: (sal_macro_scope, user_macro_scope)
12382 (default_macro_scope): Return unique_xmalloc_ptr.
12383 * macroscope.c (sal_macro_scope, user_macro_scope)
12384 (default_macro_scope): Return unique_xmalloc_ptr.
12385 * macroexp.h (macro_expand, macro_expand_once): Return
12386 unique_xmalloc_ptr.
12387 * macroexp.c (macro_expand, macro_expand_once): Return
12388 unique_xmalloc_ptr.
12389 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12390 (info_macro_command, info_macros_command): Use
12391 unique_xmalloc_ptr.
12392 * compile/compile-c-support.c (write_macro_definitions): Use
12393 unique_xmalloc_ptr.
12394 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12395
c2e0e465
SM
123962018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12397
12398 * value.c (value_static_field): Assign field type instead of
12399 containing type when returning an optimized out value.
12400
3f8c94b4
YQ
124012018-02-06 Yao Qi <yao.qi@linaro.org>
12402
12403 * ft32-tdep.c (ft32_read_pc): Remove.
12404 (ft32_write_pc): Remove.
12405 (ft32_gdbarch_init): Update.
12406 * m32r-tdep.c (m32r_read_pc): Remove.
12407 (m32r_gdbarch_init): Update.
12408 * mep-tdep.c (mep_read_pc): Remove.
12409 (mep_gdbarch_init): Update.
12410 * microblaze-tdep.c (microblaze_write_pc): Remove.
12411 (microblaze_gdbarch_init): Update.
12412 * mn10300-tdep.c (mn10300_read_pc): Remove.
12413 (mn10300_write_pc): Remove.
12414 (mn10300_gdbarch_init): Update.
12415 * moxie-tdep.c (moxie_read_pc): Remove.
12416 (moxie_write_pc): Remove.
12417 (moxie_gdbarch_init): Update.
12418
bca65a23
YQ
124192018-02-06 Yao Qi <yao.qi@linaro.org>
12420
12421 * expprint.c (print_subexp_standard): Handle
12422 OP_F77_UNDETERMINED_ARGLIST.
12423 (dump_subexp_body_standard): Likewise.
12424
583e3f90 124252018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 12426
583e3f90
YQ
12427 * target-descriptions.c (tdesc_element_visitor) Add empty
12428 implementations.
b8df6ca7
AH
12429 (tdesc_type): Move make_gdb_type from here.
12430 (tdesc_type_builtin): Likewise.
12431 (tdesc_type_vector): Likewise.
12432 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12433 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12434 (make_gdb_type_union): Likewise.
12435 (make_gdb_type_flags): Likewise.
12436 (make_gdb_type_enum): Likewise.
12437 (make_gdb_type): New function.
12438 (tdesc_register_type): Use static make_gdb_type.
12439
e813d34a
RK
124402018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12441
12442 * infcmd.c (default_print_one_register_info): Align natural-format
12443 column values consistently one under another.
12444 (pad_to_column): New function.
12445
0eb876f5
JB
124462018-02-05 Joel Brobecker <brobecker@adacore.com>
12447
12448 * dwarf2read.c (dwarf2_physname): Move commment.
12449
0625771b
LS
124502018-02-01 Leszek Swirski <leszeks@google.com>
12451
12452 * varobj.c (varobj_formatted_print_options): Allow recursive
12453 pretty printing if pretty printing is enabled.
12454
59498c30
LS
124552018-02-01 Leszek Swirski <leszeks@google.com>
12456
12457 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12458 names after a structop as a filename.
12459
2d9e6acb
YQ
124602018-02-01 Yao Qi <yao.qi@linaro.org>
12461
12462 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12463 (arm_record_coproc_data_proc): Likewise.
12464
df95a9cf
YQ
124652018-02-01 Yao Qi <yao.qi@linaro.org>
12466
12467 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12468
07e5f5cf
NP
124692018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12470
12471 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12472 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12473
3045b475
PA
124742018-01-31 Pedro Alves <palves@redhat.com>
12475
12476 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12477 * inflow.c (child_terminal_save_inferior): Wrap reference to
12478 tcgetpgrp in HAVE_TERMIOS_H.
12479 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12480 _WIN32.
12481 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12482 always iterate over all inferiors.
12483 (gdbsim_cntrl_c): Adjust.
12484 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12485
929b5ad4
JB
124862018-01-31 Joel Brobecker <brobecker@adacore.com>
12487
12488 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12489 index type is objfile-owned if the element type is as well.
12490
29236ca2
JB
124912018-01-31 Joel Brobecker <brobecker@adacore.com>
12492
12493 GDB 8.1 released.
12494
c81e8879
PR
124952018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12496
12497 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12498 "features/s390x-linux64.c".
12499 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12500 s390_linux32 and s390x_linux64.
12501 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12502 default tdesc.
12503 * s390-tdep.c: Include "features/s390-linux32.c" and
12504 "features/s390x-linux64.c".
12505 (s390_tdesc_valid): Add check for tdesc_has_registers.
12506 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12507 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12508 tdesc_s390x_linux64.
12509 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12510 tdesc_s390x_linux64 to...
12511 * s390-tdep.h: ...here.
12512
e671cd59
PA
125132018-01-30 Pedro Alves <palves@redhat.com>
12514
12515 PR gdb/13211
12516 * config.in, configure: Regenerate.
12517 * configure.ac: Check for getpgid.
12518 * go32-nat.c (go32_pass_ctrlc): New.
12519 (go32_target): Install it.
12520 * inf-child.c (inf_child_target): Install
12521 child_terminal_save_inferior, child_pass_ctrlc and
12522 child_interrupt.
12523 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12524 (inf_ptrace_target): No longer install it.
12525 * infcmd.c (interrupt_target_1): Adjust.
12526 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12527 (child_interrupt): Declare.
12528 (inferior::terminal_state): New.
12529 * inflow.c (struct terminal_info): Update comments.
12530 (inferior_process_group): Delete.
12531 (terminal_is_ours): Delete.
12532 (gdb_tty_state): New.
12533 (child_terminal_init): Adjust.
12534 (is_gdb_terminal, sharing_input_terminal_1)
12535 (sharing_input_terminal): New functions.
12536 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12537 Set the process's actual process group in the foreground if
12538 possible. Handle is_ours_for_output/is_ours distinction. Don't
12539 mark terminal as the inferior's if not sharing GDB's terminal.
12540 Don't check attach_flag.
12541 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12542 pass down a target_terminal_state.
12543 (child_terminal_save_inferior): New, factored out from ...
12544 (child_terminal_ours_1): ... this. Handle
12545 target_terminal_state::is_ours_for_output.
12546 (child_interrupt, child_pass_ctrlc): New.
12547 (inflow_inferior_exit): Clear the inferior's terminal_state.
12548 (copy_terminal_info): Copy the inferior's terminal state.
12549 (_initialize_inflow): Remove reference to terminal_is_ours.
12550 * inflow.h (inferior_process_group): Delete.
12551 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12552 * procfs.c (procfs_target): Don't install procfs_interrupt.
12553 (procfs_interrupt): Delete.
12554 * remote.c (remote_serial_quit_handler): Adjust.
12555 (remote_interrupt): Remove ptid parameter. Adjust.
12556 * target-delegates.c: Regenerate.
12557 * target.c: Include "terminal.h".
12558 (target_terminal::terminal_state): Rename to ...
12559 (target_terminal::m_terminal_state): ... this.
12560 (target_terminal::init): Adjust.
12561 (target_terminal::inferior): Adjust to per-inferior
12562 terminal_state.
12563 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12564 (target_terminal::ours, target_terminal::ours_for_output): Use
12565 target_terminal_is_ours_kind.
12566 (target_interrupt): Remove ptid parameter. Adjust.
12567 (default_target_pass_ctrlc): Adjust.
12568 * target.h (target_ops::to_terminal_save_inferior): New field.
12569 (target_ops::to_interrupt): Remove ptid_t parameter.
12570 (target_interrupt): Remove ptid_t parameter. Update comment.
12571 (target_pass_ctrlc): Update comment.
12572 * target/target.h (target_terminal_state): New scoped enum,
12573 factored out of ...
12574 (target_terminal::terminal_state): ... here.
12575 (target_terminal::inferior): Update comments.
12576 (target_terminal::restore_inferior): New.
12577 (target_terminal::is_inferior, target_terminal::is_ours)
12578 (target_terminal::is_ours_for_output): Adjust.
12579 (target_terminal::scoped_restore_terminal_state): Adjust to
12580 rename, and call restore_inferior() instead of inferior().
12581 (target_terminal::scoped_restore_terminal_state::m_state): Change
12582 type.
12583 (target_terminal::terminal_state): Rename to ...
12584 (target_terminal::m_terminal_state): ... this and change type.
12585
9c3a5d93
PA
125862018-01-30 Pedro Alves <palves@redhat.com>
12587
12588 * linux-nat.c (wait_for_signal): New function.
12589 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12590 directly.
12591 (async_terminal_is_ours)
12592 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12593 (linux_nat_add_target): Don't override
12594 to_terminal_inferior/to_terminal_ours.
12595
69ab5edb
SDJ
125962018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12597
12598 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12599
fc8e7e75
SM
126002018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12601
12602 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12603 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12604 dwarf2_per_objfile_free here.
12605 (dwarf2_per_objfile_free): Remove.
12606 (_initialize_dwarf2_read): Don't register
12607 dwarf2_per_objfile_free as a registry cleanup.
12608
b2a426e2
EZ
126092018-01-27 Eli Zaretskii <eliz@gnu.org>
12610
12611 Avoid compilation errors in MinGW native builds
12612
12613 The error is triggered by including python-internal.h, and the
12614 error message is:
12615
12616 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12617 from build-gnulib/import/math.h:27,
12618 from d:/usr/Python26/include/pyport.h:235,
12619 from d:/usr/Python26/include/Python.h:58,
12620 from python/python-internal.h:94,
12621 from python/py-arch.c:24:
12622 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12623 using ::hypot;
12624 ^~~~~
12625
12626 This happens because Python headers define 'hypot' to expand t
12627 '_hypot' in the Windows builds.
12628 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12629 'hypoth'. This avoids a compilation error.
12630
0bdd8eac
AH
126312018-01-26 Alan Hayward <alan.hayward@arm.com>
12632
12633 * MAINTAINERS (Write After Approval): Fix ordering.
12634
56ae9dc3
AH
126352018-01-26 Alan Hayward <alan.hayward@arm.com>
12636
12637 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12638
7433498b
AM
126392018-01-26 Alan Modra <amodra@gmail.com>
12640
12641 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12642 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12643 Remove nop. Make const. Comment.
12644 (powerpc32_plt_stub_so_2): New.
12645 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12646 Correct count. Update uses.
12647 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12648 Move common code reading PLT entry word. Correct
12649 powerpc32_plt_stub PLT address calculation.
12650 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12651 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12652 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12653 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12654 (ppc64_standard_linkage8): Likewise.
12655 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12656 Correct insns description.
12657 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12658
0f59d5fc
PA
126592018-01-24 Pedro Alves <palves@redhat.com>
12660
12661 GCC PR libstdc++/83906
12662 * gdbtypes.c (operator==(const dynamic_prop &,
12663 const dynamic_prop &)): New.
12664 (operator==(const range_bounds &, const range_bounds &)): New.
12665 (check_types_equal): Use them instead of memcmp.
12666 * gdbtypes.h (operator==(const dynamic_prop &,
12667 const dynamic_prop &)): Declare.
12668 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12669 (operator==(const range_bounds &, const range_bounds &)): Declare.
12670 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12671
ef8914a4
PR
126722018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12673
12674 * s390-linux-tdep.c (s390_record_address_mask)
12675 (s390_record_calc_disp_common, s390_record_calc_disp)
12676 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12677 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12678 (s390_process_record): Move to s390-tdep.c.
12679 (s390_linux_init_abi_any): Adjust.
12680 * s390-tdep.c (s390_record_address_mask)
12681 (s390_record_calc_disp_common, s390_record_calc_disp)
12682 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12683 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12684 (s390_process_record): Moved from s390-linux-tdep.c
12685 (s390_gdbarch_init): Adjust.
12686
d6e58945
PR
126872018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12688
12689 * s390-linux-nat.c (s390-tdep.h): New include.
12690 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12691 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12692 (ALLDEPFILES): Add s390-tdep.c.
12693 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12694 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12695 * s390-tdep.h: ...this. New file.
12696 * s390-linux-tdep.c (s390-tdep.h): New include.
12697 (_initialize_s390_tdep): Rename to...
12698 (_initialize_s390_linux_tdep): ...this and adjust.
12699 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12700 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12701 s390-tdep.h.
12702 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12703 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12704 (s390_is_partial_instruction, s390_software_single_step)
12705 (is_non_branch_ril, s390_displaced_step_copy_insn)
12706 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12707 (s390_prologue_data, s390_addr, s390_store, s390_load)
12708 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12709 (s390_register_call_saved, s390_guess_tracepoint_registers)
12710 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12711 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12712 (s390_pseudo_register_name, s390_pseudo_register_type)
12713 (s390_pseudo_register_read, s390_pseudo_register_write)
12714 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12715 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12716 (s390_addr_bits_remove, s390_address_class_type_flags)
12717 (s390_address_class_type_flags_to_name)
12718 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12719 (s390_function_arg_float, s390_function_arg_vector)
12720 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12721 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12722 (s390_frame_align, s390_register_return_value, s390_return_value)
12723 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12724 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12725 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12726 (s390_trad_frame_prev_register, s390_unwind_cache)
12727 (s390_prologue_frame_unwind_cache)
12728 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12729 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12730 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12731 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12732 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12733 (s390_frame_base_address, s390_local_base_address)
12734 (s390_frame_base, s390_gcc_target_options)
12735 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12736 (s390_validate_reg_range, s390_tdesc_valid)
12737 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12738 * s390-tdep.c: ...this. New file.
12739
9c0b896e
PR
127402018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12741
12742 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12743 (s390_process_record, s390_gdbarch_tdep_alloc)
12744 (s390_linux_init_abi_any): Use/set new hook.
12745
7042632b
PR
127462018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12747
12748 * s390-linux-tdep.c (osabi.h): New include.
12749 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12750 (s390_linux_init_abi_any): New functions.
12751 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12752
650f5e13
PR
127532018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12754
12755 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12756 tdesc_has_registers check
12757
47c9317e
PR
127582018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12759
12760 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12761 (s390_validate_reg_range): New macro.
12762 (s390_gdbarch_init): Adjust.
12763
095085d8
PR
127642018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12765
12766 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12767 (s390_gdbarch_tdep_alloc): Adjust.
12768 (s390_gdbarch_init): Adjust.
12769
ab9bcc67
PR
127702018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12771
12772 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12773 <have_tdb>: Change type to bool.
12774 (s390_gdbarch_tdep_alloc): Adjust.
12775 (s390_gdbarch_init): Adjust.
12776
21f6f5ff
PR
127772018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12778
12779 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12780 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12781 (s390_gdbarch_tdep_alloc): New function.
12782 (s390_gdbarch_init): Allocate tdep at start and use its fields
12783 instead of separate variables.
12784
0eb97953
PR
127852018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12786
12787 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12788 when looking for cached gdbarch and add comment for remaining.
12789
5c319bb2
PA
127902018-01-22 Pedro Alves <palves@redhat.com>
12791 Sergio Durigan Junior <sergiodj@redhat.com>
12792
12793 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12794 case.
12795
d65ce302
MR
127962018-01-22 Maciej W. Rozycki <macro@mips.com>
12797
12798 * MAINTAINERS: Update my company e-mail address.
12799
ec7a5fcb
YQ
128002018-01-22 Yao Qi <yao.qi@linaro.org>
12801
12802 * regcache.c (cooked_write_test): New function.
12803 (_initialize_regcache): Register the test.
12804
11f57cb6
YQ
128052018-01-22 Yao Qi <yao.qi@linaro.org>
12806
12807 * ia64-tdep.c (ia64_pseudo_register_read): Call
12808 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12809 * m32c-tdep.c (m32c_cat_read): Likewise.
12810 (m32c_r3r2r1r0_read): Likewise.
12811 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12812 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12813
03f50fc8
YQ
128142018-01-22 Yao Qi <yao.qi@linaro.org>
12815
12816 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12817 method raw_read instead of regcache_raw_read.
12818 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12819 * arm-tdep.c (arm_neon_quad_read): Likewise.
12820 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12821 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12822 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12823 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12824 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12825 (i386_pseudo_register_read_into_value): Likewise.
12826 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12827 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12828 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12829 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12830 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12831 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12832 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12833 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12834 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12835
dc711524
YQ
128362018-01-22 Yao Qi <yao.qi@linaro.org>
12837
12838 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12839 * configure.tgt: Remove target mt.
12840 * mt-tdep.c: Remove.
12841 * regcache.c (cooked_read_test): Remove the check for mt.
12842
3f5a868b
YQ
128432018-01-22 Yao Qi <yao.qi@linaro.org>
12844
12845 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12846 instead of gdbarch_pseudo_register_read_value.
12847
de4cb04a
JB
128482018-01-22 Joel Brobecker <brobecker@adacore.com>
12849
12850 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12851 language is Ada.
12852
a9e40818
JB
128532018-01-22 Joel Brobecker <brobecker@adacore.com>
12854
12855 * linespec.c (create_sals_line_offset): Remove code that preserved
12856 the symtab_and_line's line number.
12857
e707fc44
AB
128582018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12859
12860 * varobj.c (varobj_create): Don't set valid_block when creating a
12861 floating varobj.
12862
03d0bf7b
AB
128632018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12864
12865 * varobj.c (varobj_create): Remove out of date comment.
12866
ae451627
AB
128672018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12868
12869 PR mi/20395
12870 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12871 updating innermost block.
12872 * parse.c (innermost_block_tracker::update): Take extra type
12873 parameter, and check types match before updating innermost block.
12874 (write_dollar_variable): Update innermost block for registers.
12875 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12876 (innermost_block_tracker::innermost_block_tracker): Initialise
12877 m_types member.
12878 (innermost_block_tracker::reset): Take type parameter.
12879 (innermost_block_tracker::update): Take type parameter, and pass
12880 type through as needed.
12881 (innermost_block_tracker::m_types): New member.
12882 * varobj.c (varobj_create): Pass type when reseting innermost
12883 block.
12884
aee1fcdf
AB
128852018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12886
12887 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12888 * ada-lang.c (resolve_subexp): Likewise.
12889 * breakpoint.c (set_breakpoint_condition) Likewise.
12890 (watch_command_1) Likewise.
12891 * c-exp.y (variable): Likewise.
12892 * d-exp.y (PrimaryExpression): Likewise.
12893 * f-exp.y (variable): Likewise.
12894 * go-exp.y (variable): Likewise.
12895 * m2-exp.y (variable): Likewise.
12896 * objfiles.c (objfile::~objfile): Likewise.
12897 * p-exp.y (variable): Likewise.
12898 * parse.c (innermost_block): Change type.
12899 * parser-defs.h (class innermost_block_tracker): New.
12900 (innermost_block): Change to innermost_block_tracker.
12901 * printcmd.c (display_command): Switch to innermost_block API.
12902 (do_one_display): Likewise.
12903 * rust-exp.y (do_one_display): Likewise.
12904 * symfile.c (clear_symtab_users): Likewise.
12905 * varobj.c (varobj_create): Switch to innermost_block API, replace
12906 use of innermost_block with block stored on varobj object.
12907
396af9a1
AB
129082018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12909
12910 * expression.h (innermost_block): Remove declaration.
12911 * varobj.c: Add 'parser-defs.h' include.
12912
fcfcc376
TT
129132018-01-19 Tom Tromey <tom@tromey.com>
12914
12915 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12916 symbols in the static and global blocks.
12917
5a6c3296
JC
129182018-01-19 James Clarke <jrtc27@jrtc27.com>
12919
12920 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12921 gdb_ptrace.h, and move including gdb_wait.h ...
12922 * nat/linux-ptrace.h: ... to here.
12923
bc09b0c1
SM
129242018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12925
12926 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12927 inf_ptrace_detach_success.
12928 (inf_ptrace_detach_success): Add inferior parameter, use it
12929 instead of inferior_ptid, pass it to detach_inferior.
12930 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12931 parameter.
12932 * inferior.c (detach_inferior): Add overload that takes an
12933 inferior object.
12934 * inferior.h (detach_inferior): Likewise.
12935 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12936 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12937 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12938
6e1e1966
SM
129392018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12940
12941 * target.h (struct target_ops) <to_detach>: Add inferior
12942 parameter.
12943 (target_detach): Likewise.
12944 * target.c (dispose_inferior): Pass inferior down.
12945 (target_detach): Pass inferior down. Assert that it is equal to
12946 the current inferior.
12947 * aix-thread.c (aix_thread_detach): Pass inferior down.
12948 * corefile.c (core_file_command): Pass current_inferior() down.
12949 * corelow.c (core_detach): Add inferior parameter.
12950 * darwin-nat.c (darwin_detach): Likewise.
12951 * gnu-nat.c (gnu_detach): Likewise.
12952 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12953 * infcmd.c (detach_command): Pass current_inferior() down to
12954 target_detach.
12955 * infrun.c (follow_fork_inferior): Pass parent_inf to
12956 target_detach.
12957 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12958 target_detach.
12959 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12960 * linux-thread-db.c (thread_db_detach): Likewise.
12961 * nto-procfs.c (procfs_detach): Likewise.
12962 * procfs.c (procfs_detach): Likewise.
12963 * record.c (record_detach): Likewise.
12964 * record.h (struct inferior): Forward-declare.
12965 (record_detach): Add inferior parameter.
12966 * remote-sim.c (gdbsim_detach): Likewise.
12967 * remote.c (remote_detach_1): Likewise.
12968 (remote_detach): Likewise.
12969 (extended_remote_detach): Likewise.
12970 * sol-thread.c (sol_thread_detach): Likewise.
12971 * target-debug.h (target_debug_print_inferior_p): New macro.
12972 * target-delegates.c: Re-generate.
12973 * top.c (kill_or_detach): Pass inferior down to target_detach.
12974 * windows-nat.c (windows_detach): Add inferior parameter.
12975
6bd6f3b6
SM
129762018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12977
12978 * target.h (struct target_ops) <to_detach>: Remove args
12979 parameter.
12980 (target_detach): Likewise.
12981 * target.c (dispose_inferior): Adjust.
12982 (target_detach): Remove args parameter, adjust.
12983 * aix-thread.c (aix_thread_detach): Adjust.
12984 * corefile.c (core_file_command): Adjust.
12985 * corelow.c (core_detach): Adjust.
12986 * darwin-nat.c (darwin_detach): Adjust.
12987 * gnu-nat.c (gnu_detach): Adjust.
12988 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12989 * infcmd.c (detach_command): Adjust
12990 * infrun.c (follow_fork_inferior): Adjust.
12991 (handle_vfork_child_exec_or_exit): Adjust.
12992 * linux-fork.c (linux_fork_detach): Remove args parameter.
12993 * linux-fork.h (linux_fork_detach): Likewise.
12994 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12995 * linux-thread-db.c (thread_db_detach): Likewise.
12996 * nto-procfs.c (procfs_detach): Likewise.
12997 * procfs.c (procfs_detach): Likewise.
12998 (do_detach): Remove signo parameter.
12999 * record.c (record_detach): Remove args parameter.
13000 * record.h (record_detach): Likewise.
13001 * remote-sim.c (gdbsim_detach): Likewise.
13002 * remote.c (remote_detach_1): Likewise.
13003 (remote_detach): Likewise.
13004 (extended_remote_detach): Likewise.
13005 * sol-thread.c (sol_thread_detach): Likewise.
13006 * target-delegates.c: Re-generate.
13007 * top.c (struct qt_args) <args>: Remove field.
13008 (kill_or_detach): Don't pass args.
13009 (quit_force): Don't set args.
13010 * windows-nat.c (windows_detach): Remove args parameter.
13011
88af8ea8
YQ
130122018-01-19 Yao Qi <yao.qi@linaro.org>
13013
13014 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13015 (arm_linux_init_abi): Install it.
13016
dea445b9
YQ
130172018-01-19 Yao Qi <yao.qi@linaro.org>
13018
13019 * osabi.c (gdb_osabi_names): Extend the regexp for
13020 arm-linux-gnueabihf.
13021
4a17f768
YQ
130222018-01-18 Yao Qi <yao.qi@linaro.org>
13023
13024 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13025 m_abbrevs.
13026 (abbrev_table::add_abbrev): Update.
13027 (abbrev_table::lookup_abbrev): Update.
13028
d679c21a
YQ
130292018-01-18 Yao Qi <yao.qi@linaro.org>
13030
13031 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13032
7d937cad
SDJ
130332018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13034
13035 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13036 to "std::string".
13037
9e14690d
TT
130382018-01-17 Tom Tromey <tom@tromey.com>
13039
13040 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13041
50a82047
TT
130422018-01-17 Tom Tromey <tom@tromey.com>
13043
13044 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13045 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13046 (create_array_type_with_stride): Update.
13047 * dwarf2read.c (set_die_type): Update.
13048
c89b44cd
TT
130492018-01-17 Tom Tromey <tom@tromey.com>
13050
13051 * dwarf2read.c (delayed_method_info): Remove typedef.
13052 (dwarf2_cu::method_info): Now a std::vector.
13053 (add_to_method_list): Update.
13054 (free_delayed_list): Remove.
13055 (compute_delayed_physnames): Update.
13056 (process_full_comp_unit, process_full_type_unit): Clear the method
13057 list. Remove cleanups.
13058 (psymtab_include_file_name): Add name_holder parameter. Use
13059 unique_xmalloc_ptr.
13060 (dwarf_decode_lines): Update.
13061
fcd3b13d
SM
130622018-01-17 Tom Tromey <tom@tromey.com>
13063 Simon Marchi <simon.marchi@ericsson.com>
13064
13065 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13066 (dwarf2_per_objfile::free_cached_comp_units)
13067 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13068 (init_cutu_and_read_dies_no_follow): Update.
13069 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13070 (dwarf2_cu::~dwarf2_cu): New.
13071 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13072 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13073
685af9cd
TT
130742018-01-17 Tom Tromey <tom@tromey.com>
13075 Simon Marchi <simon.marchi@ericsson.com>
13076
13077 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13078 (struct die_reader_specs) <abbrev_table>: New member.
13079 (struct abbrev_table): Add constructor.
13080 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13081 <abbrev_obstack>: Now an auto_obstack.
13082 (abbrev_table_up): New typedef.
13083 (init_cu_die_reader): Add abbrev_table parameter.
13084 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13085 Add result_dwo_abbrev_table.
13086 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13087 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13088 Update.
13089 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13090 parameter.
13091 (skip_children): Update.
13092 (abbrev_table::alloc_abbrev): Rename from
13093 abbrev_table_alloc_abbrev.
13094 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13095 (abbrev_table::lookup_abbrev): Rename from
13096 abbrev_table_lookup_abbrev.
13097 (abbrev_table_read_table): Return abbrev_table_up.
13098 (abbrev_table_free, abbrev_table_free_cleanup)
13099 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13100 (load_partial_dies): Update.
13101
5e2db402
TT
131022018-01-17 Tom Tromey <tom@tromey.com>
13103
13104 * dwarf2read.c (dwarf2_compute_name): Update comment.
13105 (read_func_scope, read_variable): Update.
13106 (new_symbol): Remove.
13107 (new_symbol_full): Rename to new_symbol.
13108
ee7f689e 131092018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
13110
13111 PR gdb/16577
13112 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13113 a warning instead of throwing an error, set section size to 0 and return
13114 NULL.
13115 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13116
4d9b86e1
SM
131172018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13118
13119 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13120 std::string.
13121 (linux_ptrace_attach_fail_reason_string): Likewise.
13122 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13123 Likewise.
13124 (linux_ptrace_attach_fail_reason_string): Likewise.
13125 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13126
a7b2d0fb
SM
131272018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13128
13129 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13130
f517c180
EA
131312018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13132
13133 PR gdb/21559
13134 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13135 checking for fs_base/gs_base fields in struct user_regs_struct.
13136 * configure: Regenerate.
13137
7045b1ca
YQ
131382018-01-17 Yao Qi <yao.qi@linaro.org>
13139
13140 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13141 function.
13142 (aarch64_linux_init_abi): Install it to gdbarch hook
13143 gcc_target_options.
13144
db422fb2
PA
131452018-01-15 Pedro Alves <palves@redhat.com>
13146
13147 * common/signals-state-save-restore.c
13148 (save_original_signals_state): Fix typos.
13149
ba643918
SDJ
131502017-01-12 Tom Tromey <tom@tromey.com>
13151 Sergio Durigan Junior <sergiodj@redhat.com>
13152
13153 * Makefile.in (install-only): Install gdb-add-index.
13154
906b4aac
JB
131552018-01-12 John Baldwin <jhb@FreeBSD.org>
13156
13157 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13158
bdf2a94a
AA
131592018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13160
13161 * infrun.c (keep_going_pass_signal): Clear step-over info when
13162 insert_breakpoints fails.
13163
71d378ae
PA
131642018-01-11 Pedro Alves <palves@redhat.com>
13165
13166 PR gdb/22583
13167 * infrun.c (resume): Rename to ...
13168 (resume_1): ... this.
13169 (resume): Reimplement as wrapper around resume_1.
13170
3cada740
PA
131712018-01-11 Pedro Alves <palves@redhat.com>
13172
13173 PR remote/22597
13174 * remote.c (remote_parse_stop_reply): Default to the last-set
13175 general thread instead of to 'magic_null_ptid'.
13176
618daa93
PA
131772018-01-10 Pedro Alves <palves@redhat.com>
13178
13179 * language.h (language_get_symbol_name_matcher): Rename ...
13180 (get_symbol_name_matcher): ... this.
13181 * language.c (language_get_symbol_name_matcher): Ditto.
13182 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13183 callers adjusted.
13184
c63d3e8d
PA
131852018-01-10 Pedro Alves <palves@redhat.com>
13186
13187 PR gdb/22670
13188 * dwarf2read.c
13189 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13190 Adjust to use language_get_symbol_name_matcher instead of
13191 language_defn::la_get_symbol_name_matcher.
13192 * language.c (language_get_symbol_name_matcher): If in Ada mode
13193 and the lookup name is a verbatim match, return Ada's matcher.
13194 * language.h (language_get_symbol_name_matcher): Adjust comment.
13195 (ada_lookup_name_info::verbatim_p):: New method.
13196
d4c2a405
PA
131972018-01-10 Pedro Alves <palves@redhat.com>
13198
13199 PR gdb/22670
13200 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13201 minsym's language is language_auto or language_cplus, pass down
13202 language_ada instead.
13203 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13204
8825213e
PA
132052018-01-10 Pedro Alves <palves@redhat.com>
13206
13207 PR gdb/22670
13208 * minsyms.c (linkage_name_str): New function.
13209 (iterate_over_minimal_symbols): Use it.
13210
2d97a5d9
JB
132112018-01-09 John Baldwin <jhb@FreeBSD.org>
13212
13213 * NEWS: Document that 'info proc' now works on FreeBSD.
13214
92fce24d
JB
132152018-01-09 John Baldwin <jhb@FreeBSD.org>
13216
13217 * configure.ac: Check for kinfo_getfile in libutil.
13218 * configure: Regenerate.
13219 * config.in: Regenerate.
13220 * fbsd-nat.c: Include "fbsd-tdep.h".
13221 (fbsd_fetch_cmdline): New.
13222 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13223 rather than calling error.
13224 (fbsd_info_proc): New.
13225 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13226 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13227 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13228
262f62f5
JB
132292018-01-09 John Baldwin <jhb@FreeBSD.org>
13230
13231 * fbsd-nat.c (struct free_deleter): Remove.
13232 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13233
b999e203
JB
132342018-01-09 John Baldwin <jhb@FreeBSD.org>
13235
13236 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13237 NULL for an empty pathname.
13238
d2176225
JB
132392018-01-09 John Baldwin <jhb@FreeBSD.org>
13240
13241 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13242 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13243 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13244 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13245 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13246 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13247 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13248 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13249 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13250 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13251 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13252 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13253 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13254 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13255 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13256
9c4ac400
ST
132572018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13258
13259 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13260 (gnu_xfer_auxv): New function.
13261 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13262 TARGET_OBJECT_AUXV.
13263
1e5ded6c
YQ
132642018-01-08 Yao Qi <yao.qi@linaro.org>
13265 Simon Marchi <simon.marchi@ericsson.com>
13266
13267 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13268 common/selftest.c.
13269 (COMMON_OBS): Remove selftest.o.
13270 * configure.ac: Append selftest-arch.c and common/selftest.c to
13271 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13272 * configure: Re-generated.
13273 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13274 GDB_SELF_TEST.
13275 (maintenance_info_selftests): Likewise.
13276
04bafb1e
XR
132772018-01-08 Xavier Roirand <roirand@adacore.com>
13278
13279 * ada-valprint.c (val_print_packed_array_elements): Use
13280 proper number of elements when printing an array indexed
13281 by an enumeration type.
13282
518817b3
SM
132832018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13284
13285 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13286 (dw2_get_file_names_reader): Adjust.
13287 (lookup_dwo_signatured_type): Adjust.
13288 (lookup_dwp_signatured_type): Adjust.
13289 (lookup_signatured_type): Adjust.
13290 (create_type_unit_group): Adjust.
13291 (get_type_unit_group): Adjust.
13292 (process_psymtab_comp_unit_reader): Adjust.
13293 (build_type_psymtabs_reader): Adjust.
13294 (scan_partial_symbols): Adjust.
13295 (add_partial_symbol): Adjust.
13296 (add_partial_subprogram): Adjust.
13297 (peek_die_abbrev): Adjust.
13298 (fixup_go_packaging): Adjust.
13299 (process_imported_unit_die): Adjust.
13300 (dwarf2_compute_name): Adjust.
13301 (dwarf2_physname): Adjust.
13302 (read_import_statement): Adjust.
13303 (handle_DW_AT_stmt_list): Adjust.
13304 (read_file_scope): Adjust.
13305 (read_func_scope): Adjust.
13306 (read_lexical_block_scope): Adjust.
13307 (read_call_site_scope): Adjust.
13308 (read_variable): Adjust.
13309 (dwarf2_rnglists_process): Adjust.
13310 (dwarf2_ranges_process): Adjust.
13311 (dwarf2_ranges_read): Adjust.
13312 (dwarf2_get_pc_bounds): Adjust.
13313 (dwarf2_record_block_ranges): Adjust.
13314 (dwarf2_add_field): Adjust.
13315 (dwarf2_add_member_fn): Adjust.
13316 (read_structure_type): Adjust.
13317 (process_structure_scope): Adjust.
13318 (read_enumeration_type): Adjust.
13319 (read_array_type): Adjust.
13320 (mark_common_block_symbol_computed): Adjust.
13321 (read_common_block): Adjust.
13322 (read_namespace_type): Adjust.
13323 (read_namespace): Adjust.
13324 (read_module_type): Adjust.
13325 (read_tag_pointer_type): Adjust.
13326 (read_tag_ptr_to_member_type): Adjust.
13327 (read_tag_string_type): Adjust.
13328 (read_subroutine_type): Adjust.
13329 (read_typedef): Adjust.
13330 (read_base_type): Adjust.
13331 (attr_to_dynamic_prop): Adjust.
13332 (read_subrange_type): Adjust.
13333 (read_unspecified_type): Adjust.
13334 (dwarf2_read_abbrevs): Adjust.
13335 (load_partial_dies): Adjust.
13336 (read_partial_die): Adjust.
13337 (find_partial_die): Adjust.
13338 (guess_partial_die_structure_name): Adjust.
13339 (fixup_partial_die): Adjust.
13340 (read_attribute_value): Adjust.
13341 (read_addr_index): Adjust.
13342 (read_addr_index_from_leb128): Adjust.
13343 (read_str_index): Adjust.
13344 (dwarf2_string_attr): Adjust.
13345 (get_debug_line_section): Adjust.
13346 (dwarf_decode_line_header): Adjust.
13347 (lnp_state_machine::check_line_address): Adjust.
13348 (dwarf_decode_lines_1): Adjust.
13349 (dwarf_decode_lines): Adjust.
13350 (dwarf2_start_symtab): Adjust.
13351 (var_decode_location): Adjust.
13352 (new_symbol_full): Adjust.
13353 (dwarf2_const_value_data): Adjust.
13354 (dwarf2_const_value_attr): Adjust.
13355 (dwarf2_const_value): Adjust.
13356 (die_type): Adjust.
13357 (die_containing_type): Adjust.
13358 (build_error_marker_type): Adjust.
13359 (lookup_die_type): Adjust.
13360 (guess_full_die_structure_name): Adjust.
13361 (anonymous_struct_prefix): Adjust.
13362 (determine_prefix): Adjust.
13363 (dwarf2_name): Adjust.
13364 (follow_die_ref_or_sig): Adjust.
13365 (follow_die_offset): Adjust.
13366 (follow_die_ref): Adjust.
13367 (follow_die_sig_1): Adjust.
13368 (follow_die_sig): Adjust.
13369 (get_signatured_type): Adjust.
13370 (get_DW_AT_signature_type): Adjust.
13371 (decode_locdesc): Adjust.
13372 (dwarf_decode_macros): Adjust.
13373 (cu_debug_loc_section): Adjust.
13374 (fill_in_loclist_baton): Adjust.
13375 (dwarf2_symbol_mark_computed): Adjust.
13376 (init_one_comp_unit): Don't assign
13377 dwarf2_cu::dwarf2_per_objfile.
13378 (set_die_type): Adjust.
13379
ed2dc618
SM
133802018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13381
13382 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13383 <dwarf2_per_objfile>: New field.
13384 (dwarf2_per_objfile): Remove global.
13385 (get_dwarf2_per_objfile): New function.
13386 (set_dwarf2_per_objfile): New function.
13387 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13388 dwarf2_per_objfile.
13389 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13390 (read_abbrev_offset): Likewise.
13391 (read_indirect_string): Likewise.
13392 (read_indirect_line_string): Likewise.
13393 (read_indirect_string_at_offset): Likewise.
13394 (read_indirect_string_from_dwz): Likewise.
13395 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13396 dwarf2_per_objfile.
13397 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13398 (create_all_comp_units): Change objfile parameter to
13399 dwarf2_per_objfile.
13400 (create_all_type_units): Likewise.
13401 (process_queue): Add dwarf2_per_objfile parameter.
13402 (read_and_check_comp_unit_head): Likewise.
13403 (lookup_dwo_unit_in_dwp): Likewise.
13404 (get_dwp_file): Likewise.
13405 (process_cu_includes): Likewise.
13406 (struct free_dwo_file_cleanup_data): New struct.
13407 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13408 set_dwarf2_per_objfile.
13409 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13410 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13411 context, adjust calls.
13412 (dw2_instantiate_symtab): Likewise.
13413 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13414 (dw2_get_cu): Likewise.
13415 (create_cu_from_index_list): Change objfile parameter to
13416 dwarf2_per_objfile.
13417 (create_cus_from_index_list): Get dwarf2_per_objfile from
13418 context, adjust calls.
13419 (create_cus_from_index): Likewise.
13420 (create_signatured_type_table_from_index): Change objfile
13421 parameter to dwarf2_per_objfile.
13422 (create_signatured_type_table_from_debug_names): Change objfile
13423 parameter to dwarf2_per_objfile.
13424 (create_addrmap_from_index): Likewise.
13425 (create_addrmap_from_aranges): Likewise.
13426 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13427 (dw2_setup): Remove.
13428 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13429 context.
13430 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13431 get_dwarf2_per_objfile.
13432 (dw2_forget_cached_source_info): Likewise.
13433 (dw2_map_symtabs_matching_filename): Likewise.
13434 (struct dw2_symtab_iterator) <index>: Remove.
13435 <dwarf2_per_objfile>: New field.
13436 (dw2_symtab_iter_init): Replace index parameter with
13437 dwarf2_per_objfile.
13438 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13439 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13440 (dw2_print_stats): Likewise.
13441 (dw2_dump): Likewise.
13442 (dw2_expand_symtabs_for_function): Likewise.
13443 (dw2_expand_all_symtabs): Likewise.
13444 (dw2_expand_symtabs_with_fullname): Likewise.
13445 (dw2_expand_marked_cus): Replace index and objfile parameters
13446 with dwarf2_per_objfile.
13447 (dw_expand_symtabs_matching_file_matcher): Add
13448 dwarf2_per_objfile parameter and adjust calls.
13449 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13450 adjust calls.
13451 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13452 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13453 adjust calls.
13454 (create_cus_from_debug_names_list): Replace objfile parameter
13455 with dwarf2_per_objfile and adjust calls.
13456 (create_cus_from_debug_names): Likewise.
13457 (dwarf2_read_debug_names): Likewise.
13458 (mapped_debug_names::namei_to_name): Adjust call.
13459 (dw2_debug_names_iterator::next): Likewise.
13460 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13461 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13462 (dw2_debug_names_dump): Likewise.
13463 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13464 (dw2_debug_names_expand_symtabs_matching): Likewise.
13465 (dwarf2_initialize_objfile): Likewise.
13466 (dwarf2_build_psymtabs): Likewise.
13467 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13468 this_cu.
13469 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13470 (read_and_check_comp_unit_head): Likewise.
13471 (read_abbrev_offset): Likewise.
13472 (create_debug_type_hash_table): Likewise.
13473 (create_debug_types_hash_table): Likewise.
13474 (create_all_type_units): Replace objfile parameter with
13475 dwarf2_per_objfile.
13476 (add_type_unit): Add dwarf2_per_objfile parameter.
13477 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13478 with dwarf2_per_objfile.
13479 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13480 (lookup_dwp_signatured_type): Likewise.
13481 (lookup_signatured_type): Likewise.
13482 (read_cutu_die_from_dwo): Likewise.
13483 (init_tu_and_read_dwo_dies): Likewise.
13484 (init_cutu_and_read_dies): Likewise.
13485 (init_cutu_and_read_dies_no_follow): Likewise.
13486 (allocate_type_unit_groups_table): Add objfile parameter.
13487 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13488 (get_type_unit_group): Likewise.
13489 (process_psymtab_comp_unit): Update call.
13490 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13491 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13492 (print_tu_stats): Likewise.
13493 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13494 in void* parameter.
13495 (build_type_psymtabs): Change objfile parameter to
13496 dwarf2_per_objfile.
13497 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13498 passed in void* parameter.
13499 (process_skeletonless_type_units): Change objfile parameter to
13500 dwarf2_per_objfile.
13501 (set_partial_user): Likewise.
13502 (dwarf2_build_psymtabs_hard): Likewise.
13503 (read_comp_units_from_section): Likewise.
13504 (create_all_comp_units): Likewise.
13505 (scan_partial_symbols): Update calls.
13506 (add_partial_symbol): Likewise.
13507 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13508 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13509 (process_queue): Add dwarf2_per_objfile parameter.
13510 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13511 (compute_compunit_symtab_includes): Likewise.
13512 (process_cu_includes): Add dwarf2_per_objfile parameter.
13513 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13514 (process_full_type_unit): Likewise.
13515 (process_imported_unit_die): Update call.
13516 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13517 (read_file_scope): Likewise.
13518 (allocate_dwo_file_hash_table): Add objfile parameter.
13519 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13520 (create_cus_hash_table): Likewise.
13521 (create_dwp_hash_table): Likewise.
13522 (create_dwo_unit_in_dwp_v1): Likewise.
13523 (create_dwp_v2_section): Likewise.
13524 (create_dwo_unit_in_dwp_v2): Likewise.
13525 (lookup_dwo_unit_in_dwp): Likewise.
13526 (try_open_dwop_file): Likewise.
13527 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13528 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13529 cleanup to include a reference to dwarf2_per_objfile.
13530 (open_dwp_file): Add dwarf2_per_objfile parameter.
13531 (open_and_init_dwp_file): Likewise.
13532 (get_dwp_file): Likewise.
13533 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13534 (queue_and_load_all_dwo_tus): Update call.
13535 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13536 data.
13537 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13538 (dwarf2_ranges_process): Likewise.
13539 (dwarf2_get_pc_bounds): Likewise.
13540 (mark_common_block_symbol_computed): Likewise.
13541 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13542 (dwarf2_read_abbrevs): Update call.
13543 (read_partial_die): Use dwarf2_per_objfile from cu.
13544 (find_partial_die): Likewise.
13545 (fixup_partial_die): Likewise.
13546 (read_attribute_value): Likewise.
13547 (read_indirect_string_at_offset_from): Add objfile parameter.
13548 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13549 parameter.
13550 (read_indirect_string_from_dwz): Add objfile parameter.
13551 (read_indirect_string): Add objfile parameter.
13552 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13553 (read_addr_index): Use dwarf2_per_objfile from cu.
13554 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13555 call dw2_setup.
13556 (read_str_index): Use dwarf2_per_objfile from cu.
13557 (get_debug_line_section): Likewise.
13558 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13559 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13560 (new_symbol_full): Use dwarf2_per_objfile from cu.
13561 (build_error_marker_type): Likewise.
13562 (lookup_die_type): Likewise.
13563 (determine_prefix): Likewise.
13564 (follow_die_offset): Likewise.
13565 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13566 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13567 (dwarf2_fetch_die_type_sect_off): Likewise.
13568 (dwarf2_get_die_type): Likewise.
13569 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13570 (get_signatured_type): Likewise.
13571 (get_DW_AT_signature_type): Likewise.
13572 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13573 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13574 (cu_debug_loc_section): Likewise.
13575 (fill_in_loclist_baton): Likewise.
13576 (dwarf2_symbol_mark_computed): Likewise.
13577 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13578 dwarf2_per_objfile.
13579 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13580 parameter.
13581 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13582 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13583 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13584 (set_die_type): Use dwarf2_free_objfile from cu.
13585 (get_die_type_at_offset): Likewise.
13586 (dwarf2_per_objfile_free): Don't assign global variable.
13587 (debug_names) <constructor>: Add dwarf2_per_objfile
13588 parameter, update m_debugstrlookup construction.
13589 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13590 parameter.
13591 <m_dwarf2_per_objfile>: New field.
13592 <lookup>: Use m_dwarf2_per_objfile.
13593 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13594 (psyms_seen_size): Likewise.
13595 (write_gdbindex): Replace objfile parameter with
13596 dwarf2_per_objfile.
13597 (write_debug_names): Likewise.
13598 (write_psymtabs_to_index): Likewise.
13599 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13600 calls.
13601
e3b94546
SM
136022018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13603
13604 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13605 <dwarf2_per_objfile>: New field.
13606 (struct dwarf2_per_cu_data) <objfile>: Remove.
13607 <dwarf2_per_objfile>: New field.
13608 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13609 of objfile.
13610 (create_signatured_type_table_from_index): Likewise.
13611 (create_debug_type_hash_table): Likewise.
13612 (fill_in_sig_entry_from_dwo_entry): Likewise.
13613 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13614 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13615 objfile.
13616 (create_partial_symtab): Access objfile through
13617 dwarf2_per_objfile.
13618 (process_psymtab_comp_unit_reader): Likewise.
13619 (read_comp_units_from_section): Likewise.
13620 (scan_partial_symbols): Likewise.
13621 (add_partial_symbol): Likewise.
13622 (add_partial_subprogram): Likewise.
13623 (peek_die_abbrev): Likewise.
13624 (fixup_go_packaging): Likewise.
13625 (process_full_comp_unit): Likewise.
13626 (process_full_type_unit): Likewise.
13627 (process_imported_unit_die): Likewise.
13628 (dwarf2_compute_name): Likewise.
13629 (dwarf2_physname): Likewise.
13630 (read_import_statement): Likewise.
13631 (create_cus_hash_table): Assign dwarf2_physname instead of
13632 objfile.
13633 (read_func_scope): Access objfile through dwarf2_per_objfile.
13634 (read_lexical_block_scope): Likewise.
13635 (read_call_site_scope): Likewise.
13636 (read_variable): Likewise.
13637 (dwarf2_rnglists_process): Likewise.
13638 (dwarf2_ranges_process): Likewise.
13639 (dwarf2_ranges_read): Likewise.
13640 (dwarf2_record_block_ranges): Likewise.
13641 (dwarf2_add_field): Likewise.
13642 (dwarf2_add_member_fn): Likewise.
13643 (read_structure_type): Likewise.
13644 (process_structure_scope): Likewise.
13645 (read_enumeration_type): Likewise.
13646 (read_array_type): Likewise.
13647 (read_common_block): Likewise.
13648 (read_namespace_type): Likewise.
13649 (read_namespace): Likewise.
13650 (read_module_type): Likewise.
13651 (read_tag_pointer_type): Likewise.
13652 (read_tag_ptr_to_member_type): Likewise.
13653 (read_tag_string_type): Likewise.
13654 (read_subroutine_type): Likewise.
13655 (read_typedef): Likewise.
13656 (read_base_type): Likewise.
13657 (attr_to_dynamic_prop): Likewise.
13658 (read_subrange_type): Likewise.
13659 (read_unspecified_type): Likewise.
13660 (load_partial_dies): Likewise.
13661 (read_partial_die): Likewise.
13662 (find_partial_die): Likewise.
13663 (guess_partial_die_structure_name): Likewise.
13664 (fixup_partial_die): Likewise.
13665 (read_attribute_value): Likewise.
13666 (read_addr_index_from_leb128): Likewise.
13667 (dwarf2_read_addr_index): Likewise.
13668 (dwarf2_string_attr): Likewise.
13669 (lnp_state_machine::check_line_address): Likewise.
13670 (dwarf_decode_lines_1): Likewise.
13671 (dwarf_decode_lines): Likewise.
13672 (dwarf2_start_symtab): Likewise.
13673 (var_decode_location): Likewise.
13674 (new_symbol_full): Likewise.
13675 (dwarf2_const_value_data): Likewise.
13676 (dwarf2_const_value_attr): Likewise.
13677 (dwarf2_const_value): Likewise.
13678 (die_type): Likewise.
13679 (die_containing_type): Likewise.
13680 (lookup_die_type): Likewise.
13681 (guess_full_die_structure_name): Likewise.
13682 (anonymous_struct_prefix): Likewise.
13683 (dwarf2_name): Likewise.
13684 (follow_die_ref_or_sig): Likewise.
13685 (follow_die_offset): Likewise.
13686 (follow_die_ref): Likewise.
13687 (dwarf2_fetch_die_loc_sect_off): Likewise.
13688 (dwarf2_fetch_constant_bytes): Likewise.
13689 (dwarf2_fetch_die_type_sect_off): Likewise.
13690 (dwarf2_get_die_type): Likewise.
13691 (follow_die_sig): Likewise.
13692 (decode_locdesc): Likewise.
13693 (dwarf2_per_cu_objfile): Likewise.
13694 (dwarf2_per_cu_text_offset): Likewise.
13695 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13696 objfile.
13697 (set_die_type): Access objfile through
13698 dwarf2_per_objfile.
13699
b01ba14d
SM
137002018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13701
13702 * valprint.c (converted_character_d): Remove typedef.
13703 (DEF_VEC_O (converted_character_d)): Remove.
13704 (count_next_character): Use std::vector.
13705 (print_converted_chars_to_obstack): Likewise.
13706 (generic_printstr): Likewise.
13707
4d0fdd9b
SM
137082018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13709
13710 * xml-support.h (struct gdb_xml_value): Add constructor.
13711 <value>: Change type to unique_xmalloc_ptr.
13712 (gdb_xml_value_s): Remove typedef.
13713 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13714 (gdb_xml_element_start_handler): Change parameter type to
13715 std::vector.
13716 (xml_find_attribute): Likewise.
13717 * xml-support.c (xml_find_attribute): Change parameter type to
13718 std::vector and adjust.
13719 (gdb_xml_values_cleanup): Remove.
13720 (gdb_xml_parser::start_element): Adjust to std::vector.
13721 (xinclude_start_include): Change paraeter type to std::vector
13722 and adjust.
13723 * btrace.c (check_xml_btrace_version): Likewise.
13724 (parse_xml_btrace_block): Likewise.
13725 (parse_xml_btrace_pt_config_cpu): Likewise.
13726 (parse_xml_btrace_pt): Likewise.
13727 (parse_xml_btrace_conf_bts): Likewise.
13728 (parse_xml_btrace_conf_pt): Likewise.
13729 * memory-map.c (memory_map_start_memory): Likewise.
13730 (memory_map_start_property): Likewise.
13731 * osdata.c (osdata_start_osdata): Likewise.
13732 (osdata_start_item): Likewise.
13733 (osdata_start_column): Likewise.
13734 * remote.c (start_thread): Likewise.
13735 * solib-aix.c (library_list_start_library): Likewise.
13736 (library_list_start_list): Likewise.
13737 * solib-svr4.c (library_list_start_library): Likewise.
13738 (svr4_library_list_start_list): Likewise.
13739 * solib-target.c (library_list_start_segment): Likewise.
13740 (library_list_start_section): Likewise.
13741 (library_list_start_library): Likewise.
13742 (library_list_start_list): Likewise.
13743 * tracepoint.c (traceframe_info_start_memory): Likewise.
13744 (traceframe_info_start_tvar): Likewise.
13745 * xml-syscall.c (syscall_start_syscall): Likewise.
13746 * xml-tdesc.c (tdesc_start_target): Likewise.
13747 (tdesc_start_feature): Likewise.
13748 (tdesc_start_reg): Likewise.
13749 (tdesc_start_union): Likewise.
13750 (tdesc_start_struct): Likewise.
13751 (tdesc_start_flags): Likewise.
13752 (tdesc_start_enum): Likewise.
13753 (tdesc_start_field): Likewise.
13754 (tdesc_start_enum_value): Likewise.
13755 (tdesc_start_vector): Likewise.
13756
f979c73f
SM
137572018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13758
13759 * extension.h (struct xmethod_worker) <clone>: Remove.
13760 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13761 Remove.
13762 (python_xmethod_worker::clone): Remove.
13763 * valops.c (find_overload_match): Use std::move instead of
13764 clone.
13765
ba18742c
SM
137662018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13767
13768 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13769 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13770 <free_xmethod_worker_data>: Remove.
13771 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13772 <get_xmethod_arg_types>: Remove.
13773 <get_xmethod_result_type>: Remove.
13774 <invoke_xmethod>: Remove.
13775 * extension.c (new_xmethod_worker): Remove.
13776 (clone_xmethod_worker): Remove.
13777 (get_matching_xmethod_workers): Return void, pass std::vector by
13778 pointer.
13779 (get_xmethod_arg_types): Rename to...
13780 (xmethod_worker::get_arg_types): ... this, and adjust.
13781 (get_xmethod_result_type): Rename to...
13782 (xmethod_worker::get_result_type): ... this, and adjust.
13783 (invoke_xmethod): Remove.
13784 (free_xmethod_worker): Remove.
13785 (free_xmethod_worker_vec): Remove.
13786 * extension.h (enum ext_lang_rc): Move here from
13787 extension-priv.h.
13788 (struct xmethod_worker): Add constructor and destructor.
13789 <data>: Remove.
13790 <value>: Remove.
13791 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13792 virtual pure methods.
13793 <get_arg_types, get_result_type>: New methods.
13794 (xmethod_worker_ptr): Remove typedef.
13795 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13796 (xmethod_worker_vec): Remove typedef.
13797 (xmethod_worker_up): New typedef.
13798 (invoke_xmethod): Remove.
13799 (clone_xmethod_worker): Remove.
13800 (free_xmethod_worker): Remove.
13801 (free_xmethod_worker_vec): Remove.
13802 (get_xmethod_arg_types): Remove.
13803 (get_xmethod_result_type): Remove.
13804 * valops.c (find_method_list): Use std::vector, don't use
13805 intermediate vector.
13806 (value_find_oload_method_list): Use std::vector.
13807 (find_overload_match): Use std::vector.
13808 (find_oload_champ): Use std::vector.
13809 * value.c (value_free): Use operator delete.
13810 (value_of_xmethod): Rename to...
13811 (value_from_xmethod): ... this. Don't assign
13812 xmethod_worker::value, take rvalue-reference.
13813 (result_type_of_xmethod): Adjust.
13814 (call_xmethod): Adjust.
13815 * value.h: Include extension.h.
13816 (struct xmethod_worker): Don't forward-declare.
13817 (value_of_xmethod): Rename to...
13818 (value_from_xmethod): ... this, take rvalue-reference.
13819 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13820 (struct python_xmethod_worker): ... this, add constructor and
13821 destructor.
13822 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13823 (gdbpy_free_xmethod_worker_data): Rename to...
13824 (python_xmethod_worker::~python_xmethod_worker): ... this and
13825 adjust.
13826 (gdbpy_clone_xmethod_worker_data): Rename to...
13827 (python_xmethod_worker::clone): ... this and adjust.
13828 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13829 temporary vector.
13830 (gdbpy_get_xmethod_arg_types): Rename to...
13831 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13832 (gdbpy_get_xmethod_result_type): Rename to...
13833 (python_xmethod_worker::do_get_result_type): ... this and
13834 adjust.
13835 (gdbpy_invoke_xmethod): Rename to...
13836 (python_xmethod_worker::invoke): ... this and adjust.
13837 (new_python_xmethod_worker): Rename to...
13838 (python_xmethod_worker::python_xmethod_worker): ... this and
13839 adjust.
13840 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13841 Remove.
13842 (gdbpy_free_xmethod_worker_data): Remove.
13843 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13844 (gdbpy_get_xmethod_arg_types): Remove.
13845 (gdbpy_get_xmethod_result_type): Remove.
13846 (gdbpy_invoke_xmethod): Remove.
13847 * python/python.c (python_extension_ops): Remove obsolete
13848 callbacks.
13849
e379cee6
PA
138502018-01-05 Pedro Alves <palves@redhat.com>
13851
13852 PR gdb/18653
13853 * common/signals-state-save-restore.c
13854 (save_original_signals_state): New parameter 'quiet'. Warn if we
13855 find a custom handler preinstalled, instead of internal erroring.
13856 But only warn if !quiet.
13857 * common/signals-state-save-restore.h
13858 (save_original_signals_state): New parameter 'quiet'.
13859 * main.c (captured_main_1): Move save_original_signals_state call
13860 after option handling, and pass QUIET.
13861
a655456c
PA
138622018-01-05 Pedro Alves <palves@redhat.com>
13863
13864 * spu-tdep.c (spu_catch_start): Pass
13865 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13866
de63c46b
PA
138672018-01-05 Pedro Alves <palves@redhat.com>
13868
13869 PR gdb/22670
13870 * ada-lang.c (literal_symbol_name_matcher): New function.
13871 (ada_get_symbol_name_matcher): Use it for
13872 symbol_name_match_type::SEARCH_NAME.
13873 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13874 it down instead of assuming symbol_name_match_type::FULL.
13875 * block.h (block_lookup_symbol): New parameter 'match_type'.
13876 * c-valprint.c (print_unpacked_pointer): Use
13877 lookup_symbol_search_name instead of lookup_symbol.
13878 * compile/compile-object-load.c (get_out_value_type): Pass down
13879 symbol_name_match_type::SEARCH_NAME.
13880 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13881 symbol_name_match_type::FULL.
13882 * cp-support.c (cp_get_symbol_name_matcher): Handle
13883 symbol_name_match_type::SEARCH_NAME.
13884 * infrun.c (insert_exception_resume_breakpoint): Use
13885 lookup_symbol_search_name.
13886 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13887 * psymtab.c (maintenance_check_psymtabs): Use
13888 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13889 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13890 SYMBOL_SEARCH_NAME.
13891 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13892 if symbol_name_match_type::SEARCH_NAME.
13893 (lookup_symbol_in_language): Pass down
13894 symbol_name_match_type::FULL.
13895 (lookup_symbol_search_name): New.
13896 (lookup_language_this): Pass down
13897 symbol_name_match_type::SEARCH_NAME.
13898 (lookup_symbol_aux, lookup_local_symbol): New parameter
13899 'match_type'. Pass it down.
13900 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13901 (lookup_symbol_search_name): New declaration.
13902 (lookup_symbol_in_block): New 'match_type' parameter.
13903
f98fc17b
PA
139042018-01-05 Pedro Alves <palves@redhat.com>
13905
13906 PR gdb/22670
13907 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13908 ada_lookup_symbol.
13909 (ada_lookup_symbol): Reimplement in terms of
13910 ada_lookup_symbol_list, bits factored out from
13911 ada_lookup_encoded_symbol.
13912
342f8240
JB
139132018-01-05 Joel Brobecker <brobecker@adacore.com>
13914
13915 * ada-exp.y (write_object_renaming): When subscripting an array
13916 using a symbol as the index, pass the block in call to
13917 ada_lookup_encoded_symbol when looking that symbol up.
13918
7150d33c
JG
139192018-01-05 Jerome Guitton <guitton@adacore.com>
13920
13921 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13922 TYPE_INDEX_TYPE.
13923
cc0e770c
JB
139242018-01-05 Joel Brobecker <brobecker@adacore.com>
13925
13926 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13927 the case where VALUE_LVAL (val0) is not lval_memory.
13928
f79da888 139292018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
13930
13931 * ada-valprint.c (print_optional_low_bound): Handle
13932 character-indexed array printing like boolean-indexed array
13933 printing.
13934
cd385f94
JB
139352018-01-05 Joel Brobecker <brobecker@adacore.com>
13936
13937 * NEWS: Create a new section for the next release branch.
13938 Rename the section of the current branch, now that it has
13939 been cut.
13940
09aca949
JB
139412018-01-05 Joel Brobecker <brobecker@adacore.com>
13942
13943 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13944 * version.in: Bump version to 8.1.50.DATE-git.
13945
9f757bf7
XR
139462018-01-03 Xavier Roirand <roirand@adacore.com>
13947
13948 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13949 Add field.
13950 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13951 Add field.
13952 (default_exception_support_info) <catch_handlers_sym>: Add field.
13953 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13954 (ada_exception_name_addr_1): Add "catch handlers" handling.
13955 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13956 Update all callers.
13957 (create_excep_cond_exprs) <ex>: Add parameter.
13958 (re_set_exception): Update create_excep_cond_exprs call.
13959 (print_it_exception, print_one_exception, print_mention_exception)
13960 (print_recreate_exception): Add "catch handler" handling.
13961 (allocate_location_catch_handlers, re_set_catch_handlers)
13962 (check_status_catch_handlers, print_it_catch_handlers)
13963 (print_one_catch_handlers, print_mention_catch_handlers)
13964 (print_recreate_catch_handlers): New function.
13965 (catch_handlers_breakpoint_ops): New variable.
13966 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13967 Add parameter. Add "catch handler" handling.
13968 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13969 Add "catch handler" handling.
13970 (ada_exception_catchpoint_cond_string): Add "catch handler"
13971 handling.
13972 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13973 call.
13974 (catch_ada_handlers_command): New function.
13975 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13976 operations structure.
13977 (_initialize_ada_language): Add "catch handlers" command entry.
13978 * NEWS: Document "catch handlers" feature.
13979
9fe561ab
JB
139802018-01-02 Joel Brobecker <brobecker@adacore.com>
13981
13982 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13983 account when creating the array type of the slice.
13984 (ada_value_slice): Likewise.
13985
a405673c
JB
139862018-01-02 Joel Brobecker <brobecker@adacore.com>
13987
13988 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13989 New enum value.
13990 (create_array_type_with_stride): Add byte_stride_prop parameter.
13991 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13992 New parameter. Update all callers in this file.
13993 (array_type_has_dynamic_stride): New function.
13994 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13995 of arrays with dynamic byte strides.
13996 * dwarf2read.c (read_array_type): Add support for dynamic
13997 DW_AT_byte_stride attributes.
13998
74a2f8ff
JB
139992018-01-02 Joel Brobecker <brobecker@adacore.com>
14000
14001 * dwarf2read.c (read_unspecified_type): Treat
14002 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14003
e2882c85
JB
140042018-01-01 Joel Brobecker <brobecker@adacore.com>
14005
14006 Update copyright year range in all GDB files.
14007
1690bb24
JB
140082018-01-01 Joel Brobecker <brobecker@adacore.com>
14009
14010 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14011 and gdb/testsuite/gdb.base/step-line.c.
14012
0f0c98a8
JB
140132018-01-01 Joel Brobecker <brobecker@adacore.com>
14014
14015 * copyright.py (main): Dump the contents of
14016 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14017 even if BY_HAND is empty.
14018
82e1e79a
JB
140192018-01-01 Joel Brobecker <brobecker@adacore.com>
14020
14021 * top.c (print_gdb_version): Update Copyright year in version
14022 message.
14023
053f54e5 140242018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 14025
053f54e5 14026 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 14027
053f54e5 14028For older changes see ChangeLog-2017.
c906108c
SS
14029\f
14030Local Variables:
14031mode: change-log
14032left-margin: 8
14033fill-column: 74
14034version-control: never
57da7796 14035coding: utf-8
c906108c 14036End:
This page took 4.661625 seconds and 4 git commands to generate.