Fix gdb.ada bp_fun_addr failure due to conflict between fun 'a' and s-dimmks.ads...
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
03eccf7a
JB
12018-12-23 Joel Brobecker <brobecker@adacore.com>
2
3 GDB 8.2.1 released.
4
74e3300d
AB
52018-12-22 Andrew Burgess <andrew.burgess@embecosm.com>
6
7 * riscv-tdep.c (riscv_call_arg_struct): Don't adjust size before
8 assigning locations.
9 (riscv_return_value): Take more care not to read/write outside of
10 argument buffer. Cast return value between the declared type and
11 the abi type.
12
ecc82c05
AB
132018-12-22 Andrew Burgess <andrew.burgess@embecosm.com>
14
15 * riscv-tdep.c (riscv_register_reggroup_p): Save and restore fcsr,
16 fflags, and frm registers.
17
fb44d95a
AB
182018-12-22 Andrew Burgess <andrew.burgess@embecosm.com>
19
20 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): New function.
21 (riscv_gdbarch_init): Register new function with gdbarch.
22 * riscv-tdep.h: New enum to define RISC-V DWARF register numbers.
23
e08b849e
SM
242018-12-21 Simon Marchi <simon.marchi@ericsson.com>
25
26 * minsyms.c (mst_str): New.
27 (minimal_symbol_reader::record_full): Add debug output.
28
6d78332e
JB
292018-12-21 John Baldwin <jhb@FreeBSD.org>
30
31 * fbsd-nat.c (fbsd_handle_debug_trap): Require pl.pl_flags to
32 equal PL_FLAG_SI.
33 (fbsd_nat_target::stopped_by_sw_breakpoint): Likewise.
34
d00a27c5
PM
352018-12-21 Paul Marechal <paul.marechal@ericsson.com>
36
37 PR gdb/23974
38 * target.c (target_read_stralloc): Check for empty vector.
39
50c7c5b8
ДП
402018-12-21 Дилян Палаузов <dilyan.palauzov@aegee.org>
41
42 * top.c (print_gdb_configuration): Print "--without-python"
43 if GDB was configured without Python.
44
a96bd1cc
AB
452018-12-21 Andrew Burgess <andrew.burgess@embecosm.com>
46
47 * riscv-tdep.c (riscv_scan_prologue): Use plongest to format
48 a signed offset as a string.
49
3dcfdc58
DM
502018-12-21 Dave Murphy <davem@devkitpro.org>
51
52 * dtrace-probe.c (dtrace_static_probe_ops): Explicit zero
53 initialise.
54 * probe.c (any_static_probe_ops): Ditto.
55 * record-btrace.c (record_btrace_thread_observer_token): Ditto.
56 * stap-probe.c (stap_static_probe_ops): Ditto.
57 * tui/tui-hooks.c (tui_observers_token): Ditto.
58 * unittests/observable-selftests.c (token1, token2, token3): Ditto.
59
8bcb5208
AB
602018-12-19 Andrew Burgess <andrew.burgess@embecosm.com>
61
62 * gdb/dummy-frame.c (default_dummy_id): Defined new function.
63 * gdb/dummy-frame.h (default_dummy_id): Declare new function.
64 * gdb/frame-unwind.c (default_unwind_pc): Define new function.
65 (default_unwind_sp): Define new function.
66 * gdb/frame-unwind.h (default_unwind_pc): Declare new function.
67 (default_unwind_sp): Declare new function.
68 * gdb/frame.c (frame_unwind_pc): Assume gdbarch_unwind_pc is
69 available.
70 (get_frame_sp): Assume that gdbarch_unwind_sp is available.
71 * gdb/gdbarch.c: Regenerate.
72 * gdb/gdbarch.h: Regenerate.
73 * gdb/gdbarch.sh: Update definition of dummy_id, unwind_pc, and
74 unwind_sp. Add additional header files to be included in
75 generated file.
76
7406a500
DD
772018-12-19 Dimitar Dimitrov <dimitar@dinux.eu>
78
79 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Remove
80 sp clobbers.
81
9068261f
AB
822018-12-17 Andrew Burgess <andrew.burgess@embecosm.com>
83
84 * dwarf2read.c (struct dwarf2_cu): Convert the fields 'mark',
85 'has_loclist', 'checked_producer', 'producer_is_gxx_lt_4_6',
86 'producer_is_gcc_lt_4_3', 'producer_is_icc_lt_14',
87 'processing_has_namespace_info' from unsigned int to bool. Update
88 comments.
89 (producer_is_icc_lt_14): Update return type.
90 (producer_is_gcc_lt_4_3): Likewise.
91 (producer_is_gxx_lt_4_6): Likewise.
92 (process_die): Write true instead of 1 into predicate fields.
93 (dwarf2_start_symtab): Likewise.
94 (var_decode_location): Likewise.
95 (dwarf2_mark_helper): Likewise.
96 (dwarf2_mark): Likewise.
97 (dwarf2_clear_marks): Write false instead of 0 into predicate
98 field.
99 (dwarf2_cu::dwarf2_cu): Initialise predicate fields to false, not
100 0.
101
51b4f73a
SN
1022018-12-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
103
104 * nat/aarch64-sve-linux-ptrace.h: Include signal.h instead of
105 asm/sigcontext.h.
106
4ef5dbe4
PW
1072018-12-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
108
109 * nat/linux-ptrace.c (kill_child): Fix ARI warning by removing
110 warning trailing new line.
111
a65f6835
PW
1122018-12-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
113
114 * nat/linux-ptrace.c (kill_child): New function.
115 (linux_ptrace_test_ret_to_nx): Use kill_child instead of local code.
116 Add a call to kill_child in case of early return after fork.
117 (linux_check_ptrace_features): Use kill_child instead of local code.
118 (linux_test_for_tracefork): Likewise.
119
7ff6138b
TT
1202018-12-14 Tom Tromey <tom@tromey.com>
121
122 * Makefile.in: Remove "alloca" comment.
123 (INFOFILES): Remove.
124 (local-maintainer-clean): Don't use INFOFILES.
125
64fdde09
JB
1262018-12-13 John Baldwin <jhb@FreeBSD.org>
127
128 * syscalls/update-freebsd.sh: New file.
129 * syscalls/freebsd.xml: Regenerate.
130
e9076973
JB
1312018-12-13 John Baldwin <jhb@FreeBSD.org>
132
133 * NEWS: Add entry documenting system call aliases.
134 * break-catch-syscall.c (catch_syscall_split_args): Pass 'result'
135 to get_syscalls_by_name.
136 * gdbarch.sh (UNKNOWN_SYSCALL): Remove.
137 * gdbarch.h: Regenerate.
138 * syscalls/gdb-syscalls.dtd (syscall): Add alias attribute.
139 * xml-syscall.c [!HAVE_LIBEXPAT] (get_syscalls_by_name): Rename
140 from get_syscall_by_name. Now accepts a pointer to a vector of
141 integers and returns a bool.
142 [HAVE_LIBEXPAT] (struct syscall_desc): Add alias member.
143 (syscall_create_syscall_desc): Add alias parameter and pass it to
144 syscall_desc constructor.
145 (syscall_start_syscall): Handle alias attribute.
146 (syscall_attr): Add alias attribute.
147 (xml_get_syscalls_by_name): Rename from xml_get_syscall_number.
148 Now accepts a pointer to a vector of integers and returns a
149 bool. Add syscalls whose alias or name matches the requested
150 name.
151 (get_syscalls_by_name): Rename from get_syscall_by_name. Now
152 accepts a pointer to a vector of integers and returns a bool.
153 * xml-syscall.h (get_syscalls_by_name): Likewise.
154
4794efbf
JB
1552018-12-13 John Baldwin <jhb@FreeBSD.org>
156
157 * break-catch-syscall.c (catch_syscall_split_args): Pass 'result'
158 to get_syscalls_by_group.
159 * xml-syscall.c [!HAVE_LIBEXPAT] (get_syscalls_by_group): Return
160 false.
161 [HAVE_LIBEXPAT] (xml_list_syscalls_by_group): Append syscall
162 numbers to an existing vector of integers and return a bool.
163 (get_syscalls_by_group): Accept pointer to vector of integers
164 and change return type to bool.
165 * xml-syscall.h (get_syscalls_by_group): Likewise.
166
b7c8601a
JW
1672018-12-13 Jim Wilson <jimw@sifive.com>
168
169 * riscv-tdep.c (riscv_print_one_register_info): For MSTATUS, add
170 comment for SD field, and correct xlen calculation. For MISA, add
171 comment for MXL field, add call to register_size, and correct base
172 calculation.
173
66ac1ae9
SH
1742018-12-13 Stafford Horne <shorne@gmail.com>
175
176 * NEWS(New targets): Add or1k*-*-linux*.
177
c8749e58
PW
1782018-12-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
179
180 * nat/linux-osdata.c (linux_xfer_osdata_info_os_types): Forward
181 declare on one line to fix ARI warning.
182
6bf78e29
AB
1832018-12-12 Andrew Burgess <andrew.burgess@embecosm.com>
184
185 * infrun.c (infcall_suspend_state::infcall_suspend_state): New.
186 (infcall_suspend_state::registers): New.
187 (infcall_suspend_state::restore): New.
188 (infcall_suspend_state::thread_suspend): Rename to...
189 (infcall_suspend_state::m_thread_suspend): ...this.
190 (infcall_suspend_state::registers): Rename to...
191 (infcall_suspend_state::m_registers): ...this.
192 (infcall_suspend_state::siginfo_gdbarch): Rename to...
193 (infcall_suspend_state::m_siginfo_gdbarch): ...this.
194 (infcall_suspend_state::siginfo_data): Rename to...
195 (infcall_suspend_state::m_siginfo_data): ...this.
196 (save_infcall_suspend_state): Rewrite to use infcall_suspend_state
197 constructor.
198 (restore_infcall_suspend_state): Rewrite to use
199 infcall_suspend_state::restore method.
200 (get_infcall_suspend_state_regcache): Use
201 infcall_suspend_state::registers method.
202
4de3d8d0
AB
2032018-12-12 Andrew Burgess <andrew.burgess@embecosm.com>
204
205 * riscv-tdep.c (riscv_call_arg_scalar_float): Unnamed (variadic)
206 arguments are passed in integer registers.
207 (riscv_call_arg_complex_float): Likewise.
208
750b258e
PW
2092018-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
210
211 * nat/linux-osdata.c (common_getter): New function.
212 (struct osdata_type): Change getter to take_snapshot.
213 Add LONGEST len_avail and struct buffer buffer.
214 Change all elements in the initializer.
215 Add an element for the list of types.
216 (linux_xfer_osdata_info_os_types): New function.
217 (linux_common_xfer_osdata): Use common_getter for the list of types.
218 Replace getter call by common_getter.
219 (linux_xfer_osdata_cpus): Remove args READBUF, OFFSET, LEN.
220 Add arg BUFFER. Only keep the code that adds data in BUFFER.
221 (linux_xfer_osdata_fds): Likewise.
222 (linux_xfer_osdata_modules): Likewise.
223 (linux_xfer_osdata_msg): Likewise.
224 (linux_xfer_osdata_processes): Likewise.
225 (linux_xfer_osdata_processgroups): Likewise.
226 (linux_xfer_osdata_sem): Likewise.
227 (linux_xfer_osdata_shm): Likewise.
228 (linux_xfer_osdata_isockets): Likewise.
229 (linux_xfer_osdata_threads): Likewise.
230
9f375018 2312018-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
326b0c12
PW
232
233 * nat/linux-osdata.c: Removed various trailing spaces.
234
69cb2952
AB
2352018-12-10 Andrew Burgess <andrew.burgess@embecosm.com>
236
237 * riscv-tdep.c (riscv_register_name): Fix ARI warning by removing
238 leading whitespace before #include line.
239
2578ecb1
SM
2402018-12-08 Simon Marchi <simon.marchi@ericsson.com>
241 Дилян Палаузов <dilyan.palauzov@aegee.org>
242
243 PR gdb/23950
244 * configure.ac: Search for tgetent in libtinfow.
245 * configure: Re-generate.
246
a2419b98
PW
2472018-12-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
248
249 * linux-thread-db.c (struct thread_db_info): Add td_ta_delete_p.
250 (thread_db_err_str): Forward declare.
251 (delete_thread_db_info): Call td_ta_delete_p if available.
252 (try_thread_db_load_1): Acquire td_ta_delete address.
253 * nat/gdb_thread_db.h (td_ta_delete_ftype): Declare.
254
73e8dc90
PA
2552018-12-08 Pedro Alves <palves@redhat.com>
256
257 * source.c (forward_search_command): Rename to ...
258 (search_command_helper): ... this. Add 'forward' parameter.
259 Tweak to use a gdb::def_vector<char> instead of a xrealloc'ed
260 buffer. Handle backward searches too.
261 (forward_search_command, reverse_search_command): Reimplement by
262 calling search_command_helper.
263
d9c859da
AB
2642018-12-07 Andrew Burgess <andrew.burgess@embecosm.com>
265
266 * .dir-locals.el: Copy most of the settings from c-mode over to
267 c++-mode.
268
42e151bf
SH
2692018-12-08 Stafford Horne <shorne@gmail.com>
270
271 * Makefile.in (ALL_TARGET_OBS): Add or1k-linux-tdep.o.
272 * configure.tgt: Add or1k*-*-linux*.
273 * or1k-linux-tdep.c: New file.
274 * or1k-tdep.c (or1k_gdbarch_init): Call gdbarch_init_osabi.
275
8bebfcda
PA
2762018-12-07 Pedro Alves <palves@redhat.com>
277
278 * dwarf2read.c (get_gdb_index_contents_from_section): Use
279 gdb::make_array_view.
280
4a811000
PW
2812018-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
282
283 * language.c (_initialize_language): Fix leak by assigning
284 a static string to language. Same for range and case_sensitive,
285 even if no leak is detected for these variables.
286
2861ee4f
JB
2872018-12-05 John Baldwin <jhb@FreeBSD.org>
288
289 * configure: Re-generate.
290 * configure.ac: Use separate sed expressions to escape variables
291 in auto-load directories.
292
90af0679
AB
2932018-12-05 Andrew Burgess <andrew.burgess@embecosm.com>
294
295 * riscv-tdep.c (riscv_features_from_gdbarch_info): New function.
296 (riscv_find_default_target_description): Use new function to
297 extract feature from gdbarch_info.
298 (riscv_gdbarch_init): Add error checks for xlen and flen between
299 target description and bfd headers. Be smarter about when we
300 think the hardware floating point abi should be used.
301
754e3168
AH
3022018-12-05 Alan Hayward <alan.hayward@arm.com>
303
304 * nat/aarch64-linux-hw-point.c
305 (aarch64_linux_any_set_debug_regs_state): New function.
306 * nat/aarch64-linux-hw-point.h
307 (aarch64_linux_any_set_debug_regs_state): New declaration.
308 * nat/aarch64-linux.c (aarch64_linux_new_thread): Check if any
309 BPs or WPs are set.
310
93579f6f
JB
3112018-11-30 John Baldwin <jhb@FreeBSD.org>
312
313 * common/filestuff.c [HAVE_KINFO_GETFILE]: Include headers.
314 (fdwalk) [HAVE_KINFO_GETFILE]: Use kinfo_getfile.
315
4717cec4
SM
3162018-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
317 Simon Marchi <simon.marchi@ericsson.com>
318
319 * linespec.c (symtab_vector_up): Remove.
320 (symtabs_from_filename): Change return type to std::vector.
321 (collect_symtabs_from_filename): Likewise.
322 (create_sals_line_offset): Assign return value of
323 collect_symtabs_from_filename to *ls->file_symtabs.
324 (convert_explicit_location_to_linespec): Remove call to release.
325 (parse_linespec): Likewise.
326 (symtab_collector) <symtab_collector>: Remove initialization of
327 m_symtabs.
328 <release_symtabs>: Change return type to std::vector<symtab *>.
329 <operator ()>: Adjust.
330
f8eb6a9e
JB
3312018-11-30 John Baldwin <jhb@FreeBSD.org>
332
333 * fbsd-nat.c [__FreeBSD_version >= 700009] (USE_SIGINFO): Macro
334 defined.
335 (union sigval32, struct siginfo32, fbsd_siginfo_size)
336 (fbsd_convert_siginfo): Make conditional on USE_SIGINFO instead
337 of KERN_PROC_AUXV and PT_LWPINFO.
338 (fbsd_nat_target::xfer_partial): Define method unconditionally.
339 Make TARGET_OBJECT_SIGNAL_INFO conditional on USE_SIGINFO.
340 Make TARGET_OBJECT_AUXV conditional on KERN_PROC_AUXV.
341 Make TARGET_OBJECT_FREEBSD_VMMAP and
342 TARGET_OBJECT_FREEBSD_PS_STRINGS conditional on KERN_PROC_VMMAP
343 and KERN_PROC_PS_STRINGS.
344 * fbsd-nat.h: Include <sys/proc.h>.
345 (fbsd_nat_target::xfer_partial): Declare method unconditionally.
346
92528b67
AB
3472018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
348
349 * riscv-linux-nat.c: Add 'inferior.h' and 'target-descriptions.h'
350 header files.
351 (riscv_linux_nat_target::read_description): New method.
352
63449436
AB
3532018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
354
355 * arch/riscv.h (riscv_gdbarch_features::hash): New method.
356 * arch/riscv.c (struct riscv_gdbarch_features_hasher): New.
357 (riscv_tdesc_cache): New global.
358 (riscv_create_target_description): Look in the cache before
359 creating a new target description.
360
65a4b373
AB
3612018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
362
363 * arch/riscv.h (riscv_gdb_features::operator==): New.
364 (riscv_gdb_features::operator!=): New.
365 * riscv-tdep.c (riscv_gdbarch_init): Make use of the inequality
366 operator.
367
0ff80bf7
AB
3682018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
369
370 * arch/riscv.h (riscv_create_target_description): Make return type
371 const.
372 * arch/riscv.c (riscv_create_target_description): Likewise.
373 * riscv-tdep.c (riscv_find_default_target_description): Likewise.
374
81fbbaf9
SDJ
3752018-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
376 Keith Seitz <keiths@redhat.com>
377 Tom Tromey <tom@tromey.com>
378 Sergio Durigan Junior <sergiodj@redhat.com>
379
380 https://bugzilla.redhat.com/show_bug.cgi?id=1613614
381 * dwarf2read.c (dwarf2_find_containing_comp_unit): Add
382 'mid_cu->length' to '*cu_off' when checking if 'sect_off' is
383 inside the CU.
384
66b4deae
PA
3852018-11-30 Pedro Alves <palves@redhat.com>
386
387 * aix-thread.c (aix_thread_target) <aix_thread_target>: Delete.
388 <stratum>: New override.
389 * bfd-target.c (aix_thread_target) <aix_thread_target>: Delete.
390 <stratum>: New override.
391 * bsd-uthread.c (bsd_uthread_target) <bsd_uthread_target>: Delete.
392 <stratum>: New override.
393 * exec.c (exec_target) <exec_target>: Delete.
394 <stratum>: New override.
395 * gdbarch-selftests.c (register_to_value_test): Adjust to use the
396 stratum method instead of the to_stratum field.
397 * linux-thread-db.c (thread_db_target) <thread_db_target>: Delete.
398 <stratum>: New override.
399 (thread_db_target::thread_db_target): Delete.
400 * make-target-delegates (print_class): Don't print a ctor
401 declaration. Print a stratum method override declaration.
402 * process-stratum-target.h (process_stratum_target)
403 <process_stratum_target>: Delete.
404 <stratum>: New override.
405 * ravenscar-thread.c (ravenscar_thread_target)
406 <ravenscar_thread_target>: Delete.
407 <stratum>: New override.
408 * record-btrace.c (record_btrace_target)
409 <record_btrace_target>: Delete.
410 <stratum>: New override.
411 * record-full.c (record_full_base_target)
412 <record_full_base_target>: Delete.
413 <stratum>: New override.
414 * record.c (record_disconnect, record_detach)
415 (record_mourn_inferior, record_kill): Adjust to use the stratum
416 method instead of the to_stratum field.
417 * regcache.c (cooked_read_test, cooked_write_test): Likewise.
418 * sol-thread.c (sol_thread_target)
419 <sol_thread_target>: Delete.
420 <stratum>: New override.
421 * spu-multiarch.c (spu_multiarch_target)
422 <spu_multiarch_target>: Delete.
423 <stratum>: New override.
424 * target-delegates.c: Regenerate.
425 * target.c (target_stack::push, target_stack::unpush)
426 (pop_all_targets_above, pop_all_targets_at_and_above)
427 (info_target_command, target_require_runnable)
428 (target_stack::find_beneath): Adjust to use the stratum method
429 instead of the to_stratum field.
430 (dummy_target::dummy_target): Delete.
431 (dummy_target::stratum): New.
432 (debug_target::debug_target): Delete.
433 (debug_target::stratum): New.
434 (maintenance_print_target_stack): Adjust to use the stratum method
435 instead of the to_stratum field.
436 * target.h (struct target_ops) <stratum>: New method.
437 <to_stratum>: Delete.
438 <is_pushed>: Adjust to use the stratum method
439 instead of the to_stratum field.
440
f3d11a9a
PA
4412018-11-30 Pedro Alves <palves@redhat.com>
442
443 * corelow.c (core_target) <has_all_memory, has_execution>: New
444 overrides.
445 * inf-child.c (inf_child_target::has_all_memory)
446 (inf_child_target::has_memory, inf_child_target::has_stack)
447 (inf_child_target::has_registers)
448 (inf_child_target::has_execution): Delete.
449 * inf-child.h (inf_child_target) <has_all_memory, has_memory,
450 has_stack, has_registers, has_execution>: Delete.
451 * process-stratum-target.c
452 (process_stratum_target::has_all_memory)
453 (process_stratum_target::has_memory)
454 (process_stratum_target::has_stack)
455 (process_stratum_target::has_registers)
456 (process_stratum_target::has_execution): New.
457 * process-stratum-target.h (process_stratum_target)
458 <has_all_memory, has_memory, has_stack, has_registers,
459 has_execution>: New method overrides.
460 * ravenscar-thread.c (ravenscar_thread_target) <has_all_memory,
461 has_memory, has_stack, has_registers, has_execution>: Delete.
462 * remote-sim.c (gdbsim_target) <has_stack, has_registers,
463 has_execution>: Delete.
464 * remote.c (remote_target) <has_all_memory, has_memory, has_stack,
465 has_registers, has_execution>: Delete.
466 * target.c (default_child_has_all_memory)
467 (default_child_has_memory, default_child_has_stack)
468 (default_child_has_registers, default_child_has_execution):
469 Delete.
470 * target.h (default_child_has_all_memory)
471 (default_child_has_memory, default_child_has_stack)
472 (default_child_has_registers, default_child_has_execution):
473 Delete.
474 * tracefile.h (tracefile_target) <has_execution>: New override.
475
3b3dac9b
PA
4762018-11-30 Pedro Alves <palves@redhat.com>
477
478 * Makefile.in (COMMON_SFILES): Add process-stratum-target.c.
479 * bsd-kvm.c: Include "process-stratum-target.h".
480 (bsd_kvm_target): Now inherits from process_stratum_target.
481 (bsd_kvm_target::bsd_kvm_target): Default it.
482 * corelow.c: Include "process-stratum-target.h".
483 (core_target): Now inherits from process_stratum_target.
484 (core_target::core_target): Don't set to_stratum here.
485 * inf-child.c (inf_child_target::inf_child_target): Delete.
486 * inf-child.h: Include "process-stratum-target.h".
487 (inf_child_target): Inherit from process_stratum_target.
488 (inf_child_target) <inf_child_target>: Default it.
489 <can_async_p, supports_non_stop, supports_disable_randomization>:
490 Delete overrides.
491 * process-stratum-target.c: New file.
492 * process-stratum-target.h: New file.
493 * remote-sim.c: Include "process-stratum-target.h".
494 (gdbsim_target): Inherit from process_stratum_target.
495 <gdbsim_target>: Default it.
496 * remote.c: Include "process-stratum-target.h".
497 (remote_target): Inherit from process_stratum_target.
498 <remote_target>: Default it.
499 * target.c (default_thread_address_space)
500 (default_thread_architecture): Delete.
501 * target.h (target_ops) <thread_architecture>: Now returns NULL by
502 default.
503 <thread_address_space>: Ditto.
504 * test-target.h: Include "process-stratum-target.h" instead of
505 "target.h".
506 (test_target_ops): Inherit from process_stratum_target.
507 <test_target_ops>: Default it.
508 * tracefile.c (tracefile_target::tracefile_target): Delete.
509 * tracefile.h: Include "process-stratum-target.h".
510 (tracefile_target): Inherit from process_stratum_target.
511 <tracefile_target>: Default it.
512 * target-delegates.c: Regenerate.
513
c180496d
PA
5142018-11-30 Pedro Alves <palves@redhat.com>
515
516 * Makefile.in (COMMON_SFILES): Add test-target.c.
517 * gdbarch-selftests.c: Include "test-target.h".
518 * regcache.c: Include "test-target.h".
519 * target.c (test_target_info, test_target_ops::info): Move to ...
520 * test-target.c: ... this new file.
521 * target.h (test_target_ops): Move to ...
522 * test-target.h: ... this new file.
523
95b1f9ac
PW
5242018-11-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
525
526 * source.c (forward_search_command): Fix leak by using
527 xrealloc even for the first allocation in the loop, as buf
528 is static.
529
e61667ef
RS
5302018-11-29 Rajendra SY <rajendra.sy@gmail.com>
531
532 PR gdb/23093
533 * gdb/fbsd-tdep.c (fbsd_gdb_signal_from_target)
534 (fbsd_gdb_signal_to_target): New.
535 (fbsd_init_abi): Install gdbarch "signal_from_target" and
536 "signal_to_target" methods.
537
3d5500e9
TT
5382018-11-29 Tom Tromey <tom@tromey.com>
539
540 * valarith.c (value_x_unop): Don't set argvec[3].
541
ed2df75c
SM
5422018-11-26 Simon Marchi <simon.marchi@ericsson.com>
543
544 PR gdb/23917
545 * sparc-linux-nat.c (sparc_linux_nat_target): Remove extraneous
546 semicolon.
547
24bce9bb
PA
5482018-11-26 Pedro Alves <palves@redhat.com>
549
550 * procfs.c (procfs_notice_thread): Replace uses of
551 in_thread_list/is_exited with find_thread_ptid/THREAD_EXITED.
552 * sol-thread.c (sol_thread_target::wait)
553 (sol_update_thread_list_callback): Likewise.
554
b5b12e1d
TT
5552018-11-25 Tom Tromey <tom@tromey.com>
556
557 * ui-out.c (ui_out::field_fmt): Remove comment.
558 * tui/tui-out.c (tui_ui_out::do_field_fmt): Remove comment.
559 * mi/mi-out.c (mi_ui_out::do_field_fmt): Remove comment.
560
54460946
PW
5612018-11-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
562
563 * source.c (open_source_file): Leak fixed in '8e6a5953e1d Fix 4K
564 leak in open_source_file' has been partially undone by '2179fbc36d23
565 Return scoped_fd from open_source_file'. Re-add the transfer of
566 current s->fullname to the unique_xmalloc_ptr fullname given
567 to find_and_open_source.
568
6af05e64
PA
5692018-11-23 Pedro Alves <palves@redhat.com>
570
571 * gdbthread.h (enum thread_state): Move comments here.
572 (is_running, is_stopped, is_exited): Remove declarations.
573
08036331
PA
5742018-11-22 Pedro Alves <palves@redhat.com>
575
576 * Makefile.in (COMMON_SFILES): Add thread-iter.c.
577 * breakpoint.c (breakpoints_should_be_inserted_now): Replace
578 ALL_NON_EXITED_THREADS with all_non_exited_threads.
579 (print_one_breakpoint_location): Replace ALL_INFERIORS with
580 all_inferiors.
581 * bsd-kvm.c: Include inferior.h.
582 * btrace.c (btrace_free_objfile): Replace ALL_NON_EXITED_THREADS
583 with all_non_exited_threads.
584 * common/filtered-iterator.h: New.
585 * common/safe-iterator.h: New.
586 * corelow.c (core_target_open): Don't call init_thread_list here.
587 * darwin-nat.c (thread_info_from_private_thread_info): Replace
588 ALL_THREADS with all_threads.
589 * fbsd-nat.c (fbsd_nat_target::resume): Replace
590 ALL_NON_EXITED_THREADS with inf->non_exited_threads.
591 * fbsd-tdep.c (fbsd_make_corefile_notes): Replace
592 ALL_NON_EXITED_THREADS with inf->non_exited_threads.
593 * fork-child.c (postfork_hook): Don't call init_thread_list here.
594 * gdbarch-selftests.c (register_to_value_test): Adjust.
595 * gdbthread.h: Don't include "inferior.h" here.
596 (struct inferior): Forward declare.
597 (enum step_over_calls_kind): Moved here from inferior.h.
598 (thread_info::deletable): Definition moved to thread.c.
599 (find_thread_ptid (inferior *, ptid_t)): Declare.
600 (ALL_THREADS, ALL_THREADS_BY_INFERIOR, ALL_THREADS_SAFE): Delete.
601 Include "thread-iter.h".
602 (all_threads, all_non_exited_threads, all_threads_safe): New.
603 (any_thread_p): Declare.
604 (thread_list): Delete.
605 * infcmd.c (signal_command): Replace ALL_NON_EXITED_THREADS with
606 all_non_exited_threads.
607 (proceed_after_attach_callback): Delete.
608 (proceed_after_attach): Take an inferior pointer instead of an
609 integer PID. Adjust to use range-for.
610 (attach_post_wait): Pass down inferior pointer instead of pid.
611 Use range-for instead of ALL_NON_EXITED_THREADS.
612 (detach_command): Remove init_thread_list call.
613 * inferior-iter.h: New.
614 * inferior.c (struct delete_thread_of_inferior_arg): Delete.
615 (delete_thread_of_inferior): Delete.
616 (delete_inferior, exit_inferior_1): Use range-for with
617 inf->threads_safe() instead of iterate_over_threads.
618 (inferior_appeared): Call init_thread_list here.
619 (discard_all_inferiors): Use all_non_exited_inferiors.
620 (find_inferior_id, find_inferior_pid): Use all_inferiors.
621 (iterate_over_inferiors): Use all_inferiors_safe.
622 (have_inferiors, number_of_live_inferiors): Use
623 all_non_exited_inferiors.
624 (number_of_inferiors): Use all_inferiors and std::distance.
625 (print_inferior): Use all_inferiors.
626 * inferior.h: Include gdbthread.h.
627 (enum step_over_calls_kind): Moved to gdbthread.h.
628 (struct inferior) <thread_list>: New field.
629 <threads, non_exited_threads, threads_safe>: New methods.
630 (ALL_INFERIORS): Delete.
631 Include "inferior-iter.h".
632 (ALL_NON_EXITED_INFERIORS): Delete.
633 (all_inferiors_safe, all_inferiors, all_non_exited_inferiors): New
634 functions.
635 * inflow.c (child_interrupt, child_pass_ctrlc): Replace
636 ALL_NON_EXITED_THREADS with all_non_exited_threads.
637 * infrun.c (follow_exec): Use all_threads_safe.
638 (clear_proceed_status, proceed): Use all_non_exited_threads.
639 (init_wait_for_inferior): Don't clear inline frame state here.
640 (infrun_thread_stop_requested, for_each_just_stopped_thread): Use
641 all_threads instead of ALL_NON_EXITED_THREADS.
642 (random_pending_event_thread): Use all_non_exited_threads instead
643 of ALL_NON_EXITED_THREADS. Use a lambda for repeated code.
644 (clean_up_just_stopped_threads_fsms): Use all_non_exited_threads
645 instead of ALL_NON_EXITED_THREADS.
646 (handle_no_resumed): Use all_non_exited_threads instead of
647 ALL_NON_EXITED_THREADS. Use all_inferiors instead of
648 ALL_INFERIORS.
649 (restart_threads, switch_back_to_stepped_thread): Use
650 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
651 * linux-nat.c (check_zombie_leaders): Replace ALL_INFERIORS with
652 all_inferiors.
653 (kill_unfollowed_fork_children): Use inf->non_exited_threads
654 instead of ALL_NON_EXITED_THREADS.
655 * linux-tdep.c (linux_make_corefile_notes): Use
656 inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
657 * linux-thread-db.c (thread_db_target::update_thread_list):
658 Replace ALL_INFERIORS with all_inferiors.
659 (thread_db_target::thread_handle_to_thread_info): Use
660 inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
661 * mi/mi-interp.c (multiple_inferiors_p): New.
662 (mi_on_resume_1): Simplify using all_non_exited_threads and
663 multiple_inferiors_p.
664 * mi/mi-main.c (mi_cmd_thread_list_ids): Use all_non_exited_threads
665 instead of ALL_NON_EXITED_THREADS.
666 * nto-procfs.c (nto_procfs_target::open): Don't call
667 init_thread_list here.
668 * record-btrace.c (record_btrace_target_open)
669 (record_btrace_target::stop_recording)
670 (record_btrace_target::close)
671 (record_btrace_target::record_is_replaying)
672 (record_btrace_target::resume, record_btrace_target::wait)
673 (record_btrace_target::record_stop_replaying): Use
674 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
675 * record-full.c (record_full_wait_1): Use all_non_exited_threads
676 instead of ALL_NON_EXITED_THREADS.
677 * regcache.c (cooked_read_test): Remove reference to global
678 thread_list.
679 * remote-sim.c (gdbsim_target::create_inferior): Don't call
680 init_thread_list here.
681 * remote.c (remote_target::update_thread_list): Use
682 all_threads_safe instead of ALL_NON_EXITED_THREADS.
683 (remote_target::process_initial_stop_replies): Replace
684 ALL_INFERIORS with all_non_exited_inferiors and use
685 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
686 (remote_target::open_1): Don't call init_thread_list here.
687 (remote_target::append_pending_thread_resumptions)
688 (remote_target::remote_resume_with_hc): Use all_non_exited_threads
689 instead of ALL_NON_EXITED_THREADS.
690 (remote_target::commit_resume)
691 (remote_target::remove_new_fork_children): Replace ALL_INFERIORS
692 with all_non_exited_inferiors and use all_non_exited_threads
693 instead of ALL_NON_EXITED_THREADS.
694 (remote_target::kill_new_fork_children): Use
695 all_non_exited_threads instead of ALL_NON_EXITED_THREADS. Remove
696 init_thread_list and init_wait_for_inferior calls.
697 (remote_target::remote_btrace_maybe_reopen)
698 (remote_target::thread_handle_to_thread_info): Use
699 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
700 * target.c (target_terminal::restore_inferior)
701 (target_terminal_is_ours_kind): Replace ALL_INFERIORS with
702 all_non_exited_inferiors.
703 * thread-iter.c: New file.
704 * thread-iter.h: New file.
705 * thread.c: Include "inline-frame.h".
706 (thread_list): Delete.
707 (clear_thread_inferior_resources): Call clear_inline_frame_state.
708 (init_thread_list): Use all_threads_safe instead of
709 ALL_THREADS_SAFE. Adjust to per-inferior thread lists.
710 (new_thread): Adjust to per-inferior thread lists.
711 (add_thread_silent): Pass inferior to find_thread_ptid.
712 (thread_info::deletable): New, moved from the header.
713 (delete_thread_1): Adjust to per-inferior thread lists.
714 (find_thread_global_id): Use inf->threads().
715 (find_thread_ptid): Use find_inferior_ptid and pass inferior to
716 find_thread_ptid.
717 (find_thread_ptid(inferior*, ptid_t)): New overload.
718 (iterate_over_threads): Use all_threads_safe.
719 (any_thread_p): New.
720 (thread_count): Use all_threads and std::distance.
721 (live_threads_count): Use all_non_exited_threads and
722 std::distance.
723 (valid_global_thread_id): Use all_threads.
724 (in_thread_list): Use find_thread_ptid.
725 (first_thread_of_inferior): Adjust to per-inferior thread lists.
726 (any_thread_of_inferior, any_live_thread_of_inferior): Use
727 inf->non_exited_threads().
728 (prune_threads, delete_exited_threads): Use all_threads_safe.
729 (thread_change_ptid): Pass inferior pointer to find_thread_ptid.
730 (set_resumed, set_running): Use all_non_exited_threads.
731 (is_thread_state, is_stopped, is_exited, is_running)
732 (is_executing): Delete.
733 (set_executing, set_stop_requested, finish_thread_state): Use
734 all_non_exited_threads.
735 (print_thread_info_1): Use all_inferiors and all_threads.
736 (thread_apply_all_command): Use all_non_exited_threads.
737 (thread_find_command): Use all_threads.
738 (update_threads_executing): Use all_non_exited_threads.
739 * tid-parse.c (parse_thread_id): Use inf->threads.
740 * x86-bsd-nat.c (x86bsd_dr_set): Use inf->non_exited_threads ().
741
c4c17fb0
PA
7422018-11-22 Pedro Alves <palves@redhat.com>
743
744 * infrun.c (follow_exec) <set follow-exec new>: Add thread and
745 switch to it before calling into try_open_exec_file.
746
151bb4a5
PA
7472018-11-22 Pedro Alves <palves@redhat.com>
748
749 * cli/cli-interp.c (cli_on_user_selected_context_changed): Use
750 inferior_thread instead of find_thread_ptid, and only when
751 inferior_ptid is not null_ptid.
752 * inferior.c (add_inferior): Don't include target_pid_to_str
753 output when the inferior is not started.
754 * python/py-inferior.c (python_on_normal_stop): Don't use
755 find_thread_ptid.
756 (tui_on_user_selected_context_changed): Use inferior_thread
757 instead of find_thread_ptid, and only when inferior_ptid is not
758 null_ptid.
759
1c97054b
BF
7602018-11-21 Benno Fünfstück <benno.fuenfstueck@gmail.com>
761
762 PR python/23714
763 * gdb/python/python.c (execute_gdb_command): Call
764 prevent_dont_repeat earlier to avoid affecting dont_repeat.
765
b5ffee31
AB
7662018-11-21 Andrew Burgess <andrew.burgess@embecosm.com>
767
768 * Makefile.in (ALL_TARGET_OBS): Add arch/riscv.o.
769 (HFILES_NO_SRCDIR): Add arch/riscv.h.
770 * arch/riscv.c: New file.
771 * arch/riscv.h: New file.
772 * configure.tgt: Add cpu_obs list of riscv, move riscv-tdep.o into
773 this list, and add arch/riscv.o.
774 * features/Makefile: Add riscv features.
775 * features/riscv/32bit-cpu.c: New file.
776 * features/riscv/32bit-cpu.xml: New file.
777 * features/riscv/32bit-csr.c: New file.
778 * features/riscv/32bit-csr.xml: New file.
779 * features/riscv/32bit-fpu.c: New file.
780 * features/riscv/32bit-fpu.xml: New file.
781 * features/riscv/64bit-cpu.c: New file.
782 * features/riscv/64bit-cpu.xml: New file.
783 * features/riscv/64bit-csr.c: New file.
784 * features/riscv/64bit-csr.xml: New file.
785 * features/riscv/64bit-fpu.c: New file.
786 * features/riscv/64bit-fpu.xml: New file.
787 * features/riscv/rebuild-csr-xml.sh: New file.
788 * riscv-tdep.c: Add 'arch/riscv.h' include.
789 (riscv_gdb_reg_names): Delete.
790 (csr_reggroup): New global.
791 (struct riscv_register_alias): Delete.
792 (struct riscv_register_feature): New structure.
793 (riscv_register_aliases): Delete.
794 (riscv_xreg_feature): New global.
795 (riscv_freg_feature): New global.
796 (riscv_virtual_feature): New global.
797 (riscv_csr_feature): New global.
798 (riscv_create_csr_aliases): New function.
799 (riscv_read_misa_reg): Delete.
800 (riscv_has_feature): Delete.
801 (riscv_isa_xlen): Simplify, just return cached xlen.
802 (riscv_isa_flen): Simplify, just return cached flen.
803 (riscv_has_fp_abi): Update for changes in struct gdbarch_tdep.
804 (riscv_register_name): Update to make use of tdesc_register_name.
805 Look up xreg and freg names in the new globals riscv_xreg_feature
806 and riscv_freg_feature. Don't supply csr aliases here.
807 (riscv_fpreg_q_type): Delete.
808 (riscv_register_type): Use tdesc_register_type in almost all
809 cases, override the returned type in a few specific cases only.
810 (riscv_print_one_register_info): Handle errors reading registers.
811 (riscv_register_reggroup_p): Use tdesc_register_in_reggroup_p for
812 registers that are otherwise unknown to GDB. Also check the
813 csr_reggroup.
814 (riscv_print_registers_info): Remove assert about upper register
815 number, and use gdbarch_register_reggroup_p instead of
816 short-cutting.
817 (riscv_find_default_target_description): New function.
818 (riscv_check_tdesc_feature): New function.
819 (riscv_add_reggroups): New function.
820 (riscv_setup_register_aliases): New function.
821 (riscv_init_reggroups): New function.
822 (_initialize_riscv_tdep): Add calls to setup CSR aliases, and
823 setup register groups. Register new riscv debug variable.
824 * riscv-tdep.h: Add 'arch/riscv.h' include.
825 (struct gdbarch_tdep): Remove abi union, and add
826 riscv_gdbarch_features field. Remove cached quad floating point
827 type, and provide initialisation for double type field.
828 * target-descriptions.c (maint_print_c_tdesc_cmd): Add riscv to
829 the list of targets using the feature based target descriptions.
830 * NEWS: Mention target description support.
831
38139a96
PA
8322018-11-21 Pedro Alves <palves@redhat.com>
833
834 * valops.c (find_method_list, value_find_oload_method_list)
835 (find_overload_match, find_oload_champ): Rename parameters and
836 locals.
837
85cca2bc
PA
8382018-11-21 Pedro Alves <palves@redhat.com>
839
840 * valops.c (find_method_list): Replace pointer and length
841 parameters with an gdb::array_view. Adjust.
842 (value_find_oload_method_list): Likewise.
843 (find_overload_match): Use gdb::array_view for methods list.
844 Adjust to find_oload_champ interface change.
845 (find_oload_champ): 'xm_worker_vec' parameter now a pointer/array.
846 'num_fns' parameter now a size_t. Eliminate 'fn_count' local.
847
82ceee50
PA
8482018-11-21 Pedro Alves <palves@redhat.com>
849
850 * gdbtypes.c (compare_badness): Change type of parameters to const
851 reference. Adjust to badness_vector being a std::vector now.
852 (rank_function): Adjust to badness_vector being a std::vector now.
853 * gdbtypes.h (badness_vector): Now a typedef to std::vector.
854 (LENGTH_MATCH): Delete.
855 (compare_badness): Change type of parameters to const reference.
856 (rank_function): Return a badness_vector by value now.
857 (find_overload_match): Adjust to badness_vector being a
858 std::vector now. Remove cleanups.
859 (find_oload_champ_namespace): 'oload_champ_bv' parameter now a
860 badness_vector pointer.
861 (find_oload_champ_namespace_loop): 'oload_champ_bv' parameter now
862 a badness_vector pointer. Adjust to badness_vector being a
863 std::vector now. Remove cleanups.
864 (find_oload_champ): 'oload_champ_bv' parameter now
865 a badness_vector pointer. Adjust to badness_vector being a
866 std::vector now. Remove cleanups.
867
0891c3cc
PA
8682018-11-21 Pedro Alves <palves@redhat.com>
869
870 * cp-support.c (sym_return_val_size, sym_return_val_index)
871 (sym_return_val): Delete.
872 (overload_list_add_symbol): Add std::vector parameter. Adjust to
873 add to the vector.
874 (make_symbol_overload_list): Adjust to return a std::vector
875 instead of maintaining a global open coded vector.
876 (make_symbol_overload_list_block): Add std::vector parameter.
877 (make_symbol_overload_list_block): Rename to ...
878 (add_symbol_overload_list_block): ... this and add std::vector
879 parameter.
880 (make_symbol_overload_list_namespace): Rename to ...
881 (add_symbol_overload_list_namespace): ... this and add std::vector
882 parameter.
883 (make_symbol_overload_list_adl_namespace): Rename to ...
884 (add_symbol_overload_list_adl_namespace): ... this and add
885 std::vector parameter.
886 (make_symbol_overload_list_adl): Delete.
887 (add_symbol_overload_list_adl): New.
888 (make_symbol_overload_list_using): Rename to ...
889 (add_symbol_overload_list_using): ... this and add std::vector
890 parameter.
891 (make_symbol_overload_list_qualified): Rename to ...
892 (add_symbol_overload_list_qualified): ... this and add std::vector
893 parameter.
894 * cp-support.h: Include "common/array-view.h" and <vector>.
895 (make_symbol_overload_list): Change return type to std::vector.
896 (make_symbol_overload_list_adl): Delete declaration.
897 (add_symbol_overload_list_adl): New declaration.
898 * valops.c (find_overload_match): Local 'oload_syms' now a
899 std::vector.
900 (find_oload_champ_namespace): 'oload_syms' parameter now a
901 std::vector pointer.
902 (find_oload_champ_namespace_loop): 'oload_syms' parameter now a
903 std::vector pointer. Adjust to new make_symbol_overload_list
904 interface.
905
6b1747cd
PA
9062018-11-21 Pedro Alves <palves@redhat.com>
907
908 * common/array-view.h (array_view::splice(size_type, size_t)): New.
909 (array_view::splice(size_type)): New.
910 * eval.c (eval_call, evaluate_funcall): Adjust to use array_view.
911 * extension.c (xmethod_worker::get_arg_types): Adjust to return an
912 std::vector.
913 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
914 * extension.h: Include "common/array-view.h".
915 (xmethod_worker::invoke): Adjust to use gdb::array_view.
916 (xmethod_worker::get_arg_types): Adjust to return an std::vector.
917 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
918 (xmethod_worker::do_get_arg_types): Adjust to use std::vector.
919 (xmethod_worker::do_get_result_type): Adjust to use
920 gdb::array_view.
921 * gdbtypes.c (rank_function): Adjust to use gdb::array_view.
922 * gdbtypes.h: Include "common/array-view.h".
923 (rank_function): Adjust to use gdb::array_view.
924 * python/py-xmethods.c (python_xmethod_worker::invoke)
925 (python_xmethod_worker::do_get_arg_types)
926 (python_xmethod_worker::do_get_result_type)
927 (python_xmethod_worker::invoke): Adjust to new interfaces.
928 * valarith.c (value_user_defined_cpp_op, value_user_defined_op)
929 (value_x_binop, value_x_unop): Adjust to use gdb::array_view.
930 * valops.c (find_overload_match, find_oload_champ_namespace)
931 (find_oload_champ_namespace_loop, find_oload_champ): Adjust to use
932 gdb:array_view and the new xmethod_worker interfaces.
933 * value.c (result_type_of_xmethod, call_xmethod): Adjust to use
934 gdb::array_view.
935 * value.h (find_overload_match, result_type_of_xmethod)
936 (call_xmethod): Adjust to use gdb::array_view.
937 * unittests/array-view-selftests.c: Add slicing tests.
938
e71585ff
PA
9392018-11-21 Pedro Alves <palves@redhat.com>
940
941 * ada-lang.c (ada_evaluate_subexp): Adjust to pass an array_view.
942 * common/array-view.h (make_array_view): New.
943 * compile/compile-object-run.c (compile_object_run): Adjust to
944 pass an array_view.
945 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust.
946 * eval.c (eval_call): Adjust to pass an array_view.
947 (evaluate_subexp_standard): Adjust to pass an array_view.
948 * gcore.c (call_target_sbrk): Adjust to pass an array_view.
949 * guile/scm-value.c (gdbscm_value_call): Likewise.
950 * infcall.c (push_dummy_code): Replace pointer + size parameters
951 with an array_view parameter.
952 (call_function_by_hand, call_function_by_hand_dummy): Likewise and
953 adjust.
954 * infcall.h: Include "common/array-view.h".
955 (call_function_by_hand, call_function_by_hand_dummy): Replace
956 pointer + size parameters with an array_view parameter.
957 * linux-fork.c (inferior_call_waitpid): Adjust to use array_view.
958 * linux-tdep.c (linux_infcall_mmap): Likewise.
959 * objc-lang.c (lookup_objc_class, lookup_child_selector)
960 (value_nsstring, print_object_command): Likewise.
961 * python/py-value.c (valpy_call): Likewise.
962 * rust-lang.c (rust_evaluate_funcall): Likewise.
963 * spu-tdep.c (flush_ea_cache): Likewise.
964 * valarith.c (value_x_binop, value_x_unop): Likewise.
965 * valops.c (value_allocate_space_in_inferior): Likewise.
966 * unittests/array-view-selftests.c (run_tests): Add
967 gdb::make_array_view test.
968
d63095c4
AB
9692018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
970
971 * cli-out.c (cli_ui_out::do_field_int): Use string_printf rather
972 than a fixed size buffer.
973
1871a62d
AB
9742018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
975
976 * breakpoint.c (print_one_breakpoint_location): Reduce whitespace,
977 and remove insertion of extra spaces in GDB's output.
978 * cli-out.c (cli_ui_out::do_field_fmt): Update header comment.
979 Layout field into a temporary buffer, and then output it as a
980 string field.
981
604c4ca9
PW
9822018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
983
984 * NEWS: Document the language choice done by
985 'info [types|functions|variables]|rbreak'.
986
43d397ca
PW
9872018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
988
989 * symtab.c (treg_matches_sym_type_name): Use
990 scoped_switch_to_sym_language_if_auto instead of local logic.
991 (print_symbol_info): Use scoped_switch_to_sym_language_if_auto
992 to switch to SYM language when language mode is auto.
993
9e6a1ab6
PW
9942018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
995
996 * language.h (scoped_switch_to_sym_language_if_auto): New class.
997
a8462bbf
PW
9982018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
999
1000 * symtab.c (search_symbols): Properly check absence of type regexp
1001 before entering the loop scanning the minimal symbols.
1002
4399bce9 10032018-11-20 John Darrington <john@darrington.wattle.id.au>
c3247a98
JD
1004
1005 * s12z-tdep.c (s12z_extract_return_value): New function.
1006 (inv_reg_perm) New array.
1007 (s12z_return_value): Populate readbuf if non-null.
1008
970d89d8
EZ
10092018-11-20 Eli Zaretskii <eliz@gnu.org>
1010
1011 * common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode
1012 with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater
1013 to MinGW fixed by Gnulib.
2fa1b319 1014 (O_NOINHERIT): Define if not defined.
970d89d8 1015
4399bce9 10162018-11-19 John Darrington <john@darrington.wattle.id.au>
7b5227d1 1017
4399bce9 1018 * s12z-tdep.c (s12z_frame_cache): Add an assertion.
7b5227d1 1019
dbe4e654
SM
10202018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1021
1022 * infrun.c (displaced_step_inferior_state) <next>: Remove.
1023
0614ef69
TT
10242018-11-19 Tom Tromey <tom@tromey.com>
1025
1026 * source.c (get_filename_and_charpos): Return void.
1027
261f6f79
SM
10282018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1029
1030 * skip.c (_initialize_step_skip): Fix "info skip" help.
1031
73fc52c4
TT
10322018-11-16 Tom Tromey <tom@tromey.com>
1033
1034 PR rust/23625:
1035 * rust-lang.c (rust_internal_print_type): Handle TYPE_CODE_PTR.
1036
39a36629
SM
10372018-11-19 Simon Marchi <simon.marchi@ericsson.com>
1038
1039 * infrun.c (displaced_step_inferior_states): Change type to
1040 std::forward_list.
1041 (get_displaced_stepping_state): Adjust.
1042 (displaced_step_in_progress_any_inferior): Adjust.
1043 (add_displaced_stepping_state): Adjust.
1044 (remove_displaced_stepping_state): Adjust.
1045
c2a6c5da
TT
10462018-11-18 Tom Tromey <tom@tromey.com>
1047
1048 PR build/23814:
1049 * target-delegates.c: Rebuild.
1050 * ia64-linux-nat.c (class ia64_linux_nat_target)
1051 <have_steppable_watchpoint>: Use override. Return true, not 1.
1052 (ia64_linux_nat_target::can_use_hw_breakpoint): Rename. Remove
1053 "self" argument.
1054 (ia64_linux_nat_target::low_new_thread): Rename.
1055 (class ia64_linux_nat_target) <read_description>: Don't declare.
1056 * target.h (struct target_ops) <have_steppable_watchpoint>: Return
1057 bool.
1058
38a72da0
AH
10592018-11-16 Alan Hayward <alan.hayward@arm.com>
1060
1061 PR gdb/22736:
1062 * aarch64-tdep.c (aarch64_push_dummy_call): Remove
1063 lang_struct_return code.
1064
cf84fa6b
AH
10652018-11-16 Alan Hayward <alan.hayward@arm.com>
1066
1067 * aarch64-tdep.c (aarch64_push_dummy_call): Replace arg with
1068 return_method.
1069 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
1070 * amd64-tdep.c (amd64_push_arguments): Likewise.
1071 (amd64_push_dummy_call): Likewise.
1072 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
1073 * arc-tdep.c (arc_push_dummy_call): Likewise.
1074 * arm-tdep.c (arm_push_dummy_call): Likewise.
1075 * avr-tdep.c (avr_push_dummy_call): Likewise.
1076 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1077 * cris-tdep.c (cris_push_dummy_call): Likewise.
1078 * csky-tdep.c (csky_push_dummy_call): Likewise.
1079 * frv-tdep.c (frv_push_dummy_call): Likewise.
1080 * gdbarch.c: Regenerate.
1081 * gdbarch.h: Regenerate.
1082 * gdbarch.sh (gdbarch_push_dummy_call): Replace arg with
1083 return_method.
1084 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1085 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
1086 (hppa64_push_dummy_call): Likewise.
1087 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1088 * i386-tdep.c (i386_push_dummy_call): Likewise.
1089 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
1090 * infcall.c (call_function_by_hand_dummy): Likewise.
1091 * iq2000-tdep.c (iq2000_push_dummy_call): Likewise.
1092 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1093 * m32c-tdep.c (m32c_push_dummy_call): Likewise.
1094 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
1095 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1096 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
1097 * mep-tdep.c (mep_push_dummy_call): Likewise.
1098 * mips-tdep.c (mips_eabi_push_dummy_call): Likewise.
1099 (mips_n32n64_push_dummy_call): Likewise.
1100 (mips_o32_push_dummy_call): Likewise.
1101 (mips_o64_push_dummy_call): Likewise.
1102 * mn10300-tdep.c (mn10300_push_dummy_call): Likewise.
1103 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
1104 * nds32-tdep.c (nds32_push_dummy_call): Likewise.
1105 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
1106 * or1k-tdep.c (or1k_push_dummy_call): Likewise.
1107 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
1108 (ppc64_sysv_abi_push_dummy_call): Likewise.
1109 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Likewise.
1110 (ppc64_sysv_abi_push_dummy_call): Likewise.
1111 * riscv-tdep.c (riscv_push_dummy_call): Likewise.
1112 * rl78-tdep.c (rl78_push_dummy_call): Likewise.
1113 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
1114 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
1115 * rx-tdep.c (rx_push_dummy_call): Likewise.
1116 * s390-tdep.c (s390_push_dummy_call): Likewise.
1117 * score-tdep.c (score_push_dummy_call): Likewise.
1118 * sh-tdep.c (sh_push_dummy_call_fpu): Likewise.
1119 (sh_push_dummy_call_nofpu): Likewise.
1120 * sparc-tdep.c (sparc32_store_arguments): Likewise.
1121 (sparc32_push_dummy_call): Likewise.
1122 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
1123 (sparc64_push_dummy_call): Likewise.
1124 * spu-tdep.c (spu_push_dummy_call): Likewise.
1125 * tic6x-tdep.c (tic6x_push_dummy_call): Likewise.
1126 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1127 * v850-tdep.c (v850_push_dummy_call): Likewise.
1128 * vax-tdep.c (vax_push_dummy_call): Likewise.
1129 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1130 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1131
c5ac5cbb
AH
11322018-11-16 Alan Hayward <alan.hayward@arm.com>
1133
1134 * gdbarch.sh (enum function_call_return_method): Add enum.
1135 * gdbarch.h: Regenerate.
1136 * infcall.c (call_function_by_hand_dummy): Replace vars with enum.
1137
f9db0c4c
JB
11382018-11-15 Joel Brobecker <brobecker@adacore.com>
1139
1140 * unittests/copy_bitwise-selftests.c: New file.
1141 * utils.c (selftests::bits_to_str, selftests::check_copy_bitwise)
1142 (selftests::copy_bitwise_tests): Delete, moving this code to
1143 unittests/copy_bitwise-selftests.c instead.
1144 (_initialize_utils): Do not register copy_bitwise tests.
1145 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1146 unittests/copy_bitwise-selftests.c.
1147
a99bc3d2
JB
11482018-11-14 Joel Brobecker <brobecker@adacore.com>
1149
1150 * ada-lang.c (move_bits): Delete. Update all callers to use
1151 copy_bitwise instead.
1152 * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str)
1153 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
1154 Move from here to utils.c.
1155 (_initialize_dwarf2loc): Remove call to register copy_bitwise
1156 selftests.
1157 * utils.h (copy_bitwise): Add declaration.
1158 * utils.c (copy_bitwise, bits_to_str::bits_to_str)
1159 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
1160 Moved here from dwarf2loc.c.
1161 (_initialize_utils): Register copy_bitwise selftests.
1162
174f8ac8
JW
11632018-11-14 Jim Wilson <jimw@sifive.com>
1164
8b2d40cb
JW
1165 * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed.
1166 (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment,
1167 then increment next_regnum if odd.
1168 (riscv_arg_location): New arg is_unnamed. Set ainfo->is_unnamed.
1169 (riscv_push_dummy_call): New local ftype. Call check_typedef to set
1170 function type. Pass new arg to riscv_arg_location based on function
1171 type.
1172 (riscv_return_value): Pass new arg to riscv_arg_location.
1173
ef2de9e7
JW
1174 * riscv-tdep.c (BIGGEST_ALIGNMENT): New.
1175 (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min
1176 of TYPE_LENGTH and BIGGEST_ALIGNMENT.
1177
174f8ac8
JW
1178 * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when
1179 setting len. New local align, set to max of arg align and xlen,
1180 and pass to first riscv_assign_stack_location call.
1181
53a89d6e
SM
11822018-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1183
1184 * skip.c (complete_skip_number): New function.
1185 (_initialize_step_skip): Add completers to some skip commands.
1186
eefce37f
TT
11872018-11-09 Tom Tromey <tom@tromey.com>
1188
1189 * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC.
1190 (struct remote_g_packet_data): Derive from allocate_on_obstack.
1191 <guesses>: Now a std::vector.
1192 (remote_g_packet_data_init, register_remote_g_packet_guess):
1193 Update.
1194 (remote_read_description_p): Update. Return bool.
1195 (remote_target::read_description): Update.
1196 (struct remote_g_packet_guess): Add constructor.
1197
2179fbc3
TT
11982018-11-09 Tom Tromey <tom@tromey.com>
1199
1200 * common/scoped_fd.h (class scoped_fd): Add move constructor and
1201 move assignment operator.
1202 * psymtab.c (psymtab_to_fullname): Update.
1203 * source.h (open_source_file): Return scoped_fd.
1204 (find_and_open_source): Likewise.
1205 * source.c (open_source_file): Return scoped_fd.
1206 (get_filename_and_charpos): Update.
1207 (print_source_lines_base): Update. Use scoped_fd::to_file.
1208 (forward_search_command): Likewise.
1209 (reverse_search_command): Likewise.
1210 (find_and_open_source): Return scoped_fd.
1211 * tui/tui-source.c (tui_set_source_content): Update. Use
1212 gdb_file_up.
1213
9c122c7f
JB
12142018-11-09 John Baldwin <jhb@FreeBSD.org>
1215
1216 * minsyms.c (minimal_symbol_reader::install): Fix unsigned
1217 overflow.
1218
5d762de0
HAQ
12192018-11-09 Hafiz Abid Qadeer <abidh@codesourcery.com>
1220
1221 * configure: Regenerate.
1222
9325300d
TV
12232018-11-09 Tom de Vries <tdevries@suse.de>
1224
1225 * symtab.c (symbol_set_names): Call symbol_find_demangled_name
1226 unconditionally, to set the language of the symbol. Manage freeing
1227 returned pointer using gdb::unique_xmalloc_ptr.
1228
9c710e11
TT
12292018-11-08 Tom Tromey <tom@tromey.com>
1230
1231 * record.c (require_record_target): Upper-case "<TAB>".
1232
3c6618cd
TT
12332018-11-08 Tom Tromey <tom@tromey.com>
1234
1235 * python/lib/gdb/command/pretty_printers.py
1236 (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
1237
20f0d60d
TT
12382018-11-08 Tom Tromey <tom@tromey.com>
1239
1240 PR gdb/23555:
1241 PR gdb/23838:
1242 * target.h (target_supports_terminal_ours): Return bool.
1243 * target.c (target_supports_terminal_ours): Handle case where
1244 current_top_target returns nullptr. Return bool.
1245
d4718d5c
JB
12462018-11-08 Joel Brobecker <brobecker@adacore.com>
1247
1248 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1):
1249 return the correct count for potential HFAs.
1250
b5420128
JB
12512018-11-08 Jan Beulich <jbeulich@suse.com>
1252
1253 * i387-tdep.c (i387_supply_xsave): Split handling of
1254 X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
1255 (i387_collect_xsave): Likewise.
1256
17cf2897
AB
12572018-11-08 Andrew Burgess <andrew.burgess@embecosm.com>
1258
1259 * riscv-tdep.c (riscv_insn::decode): Update header comment.
1260 (riscv_frame_this_id): Catch errors thrown while building the
1261 frame cache, leave the frame id as the default, which is the outer
1262 frame id.
1263
76136aed
JB
12642018-11-07 Joel Brobecker <brobecker@adacore.com>
1265
1266 * ada-lang.c (read_atcb): Only set task_info->called_task if
1267 task_info->state == Entry_Caller_Sleep.
1268 (print_ada_task_info): Do not check task_info->state before
1269 checking task_info->called_task.
1270 (info_task): Likewise.
1271
07deea26
JB
12722018-11-07 Joel Brobecker <brobecker@adacore.com>
1273
1274 * ada-tasks.c (read_atcb): Clear task_info before computing
1275 the value of each of its fields.
1276
35ee2dc2
AB
12772018-11-07 Andrew Burgess <andrew.burgess@embecosm.com>
1278
1279 * dwarf2read.c (dwarf2_init_integer_type): Check for name being
1280 NULL before dereferencing it.
1281
31aceee8
TV
12822018-11-06 Tom de Vries <tdevries@suse.de>
1283
1284 * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
1285 program headers.
1286
f11acc5e
MF
12872018-11-06 Max Filippov <jcmvbkbc@gmail.com>
1288
1289 * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
1290 so that it applies to uclinux as well.
1291
9e237747
MM
12922018-11-06 Marius Muench <marius.muench@eurecom.fr>
1293
1294 * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
1295 when on AAPCS.
1296
bcecc11d
JB
12972018-11-06 John Baldwin <jhb@FreeBSD.org>
1298
1299 * riscv-fbsd-nat.c (getregs_supplies): Return true for
1300 RISCV_CSR_SSTATUS_REGNUM.
1301
bb20ccab
PW
13022018-11-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1303
1304 * source.c (open_source_file): Fix leak by transferring the
1305 current s->fullname to the unique_xmalloc_ptr fullname given
1306 to find_and_open_source.
1307
a31abe80
TT
13082018-11-04 Tom Tromey <tom@tromey.com>
1309
1310 * varobj.c (install_default_visualizer): Update.
1311 * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
1312 Return gdbpy_ref.
1313 * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
1314 (find_pretty_printer_from_progspace)
1315 (find_pretty_printer_from_gdb, find_pretty_printer)
1316 (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
1317 (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
1318 Update.
1319
833d985d
TT
13202018-11-04 Tom Tromey <tom@tromey.com>
1321
1322 * python/python.c (gdbpy_parameter_value): Update.
1323 * python/python-internal.h (python_string_to_unicode)
1324 (python_string_to_target_python_string)
1325 (host_string_to_python_string): Return gdbpy_ref.
1326 * python/py-utils.c (python_string_to_unicode)
1327 (unicode_to_encoded_python_string)
1328 (unicode_to_target_python_string)
1329 (python_string_to_target_string)
1330 (python_string_to_target_python_string): Return gdbpy_ref.
1331 (python_string_to_host_string): Update.
1332 (host_string_to_python_string): Return gdbpy_ref.
1333 * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
1334 (stpy_fullname): Update.
1335 * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
1336 Update.
1337 * python/py-prettyprint.c (print_string_repr): Update.
1338 * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
1339 (objfpy_get_build_id): Update.
1340 * python/py-breakpoint.c (bppy_get_location)
1341 (bppy_get_expression, bppy_get_condition, bppy_get_commands):
1342 Update.
1343
12dfa12a
TT
13442018-11-04 Tom Tromey <tom@tromey.com>
1345
1346 * python/python-internal.h (gdb_py_object_from_longest)
1347 (gdb_py_object_from_ulongest): Return gdbpy_ref.
1348 * python/py-value.c (valpy_int): Update.
1349 * python/py-utils.c (gdb_py_object_from_longest): Return
1350 gdbpy_ref.
1351 (gdb_py_object_from_ulongest): Likewise.
1352 * python/py-type.c (typy_get_alignof): Update.
1353 * python/py-linetable.c (ltpy_get_all_source_lines)
1354 (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
1355 * python/py-block.c (blpy_get_start, blpy_get_end): Update.
1356
470678d7
PW
13572018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1358
1359 * ada-lang.c (_initialize_ada_language): Fix typo.
1360
814fa4f6
PW
13612018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1362
1363 * language.c (type): Remove.
1364 (_initialize_language): Remove assignment to type.
1365
3c6dd3d1 13662018-11-02 Joel Brobecker <brobecker@adacore.com>
e8bf1ce4
JB
1367
1368 * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
1369 * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
1370 (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
1371 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
1372 (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
1373 (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
1374 * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
1375 and aarch64-ravenscar-thread.o.
1376 * NEWS: Add entry documenting Ravenscar tasking support
1377 on AArch64 ELF.
1378
d54cfd76
PW
13792018-11-02 Matthew Malcomson <matthew.malcomson@arm.com>
1380
1381 * symtab.c (info_functions_command): Initialize quiet flag.
1382 * stack.c (info_args_command): Likewise.
1383
3ba2ee38
JW
13842018-11-01 Jim Wilson <jimw@sifive.com>
1385
1386 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
1387 Set if pcptr if unaligned. Return 2 if unaligned_p true. Update
1388 debugging messages.
1389
e2b7af72
JB
13902018-11-01 Joel Brobecker <brobecker@adacore.com>
1391
1392 * ada-lang.c (ada_watch_location_expression): New function.
1393 (ada_language_defn): Set la_watch_location_expression to
1394 ada_watch_location_expression.
1395
8b578f9c
JB
13962018-11-01 Joel Brobecker <brobecker@adacore.com>
1397
1398 * print-utils.c (int_string): Remove unnecessary trailing spaces.
1399
1cc62f2e
JB
14002018-11-01 Joel Brobecker <brobecker@adacore.com>
1401
1402 * rs6000-tdep.c (skip_prologue): Fix potential negative left
1403 shifting.
1404
e1c3a373
JG
14052018-11-01 Jerome Guitton <guitton@adacore.com>
1406 Joel Brobecker <brobecker@adacore.com>
1407
1408 * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
1409 * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
1410 * arm-pikeos-tdep.c: New file.
1411 * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
1412 embedded system.
1413 * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
1414
e8d8cce6
SM
14152018-11-01 Simon Marchi <simon.marchi@ericsson.com>
1416
1417 * common/pathstuff.c (get_standard_temp_dir): New.
1418 * common/pathstuff.h (get_standard_temp_dir): New.
1419 * config.in: Re-generate.
1420 * configure: Re-generate.
1421 * configure.ac: Don't check for mkdtemp.
1422 * gnulib/aclocal-m4-deps.mk: Re-generate.
1423 * gnulib/aclocal.m4: Re-generate.
1424 * gnulib/config.in: Re-generate.
1425 * gnulib/configure: Re-generate.
1426 * gnulib/import/Makefile.am: Re-generate.
1427 * gnulib/import/Makefile.in: Re-generate.
1428 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1429 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1430 * gnulib/import/m4/mkdtemp.m4: New file.
1431 * gnulib/import/mkdtemp.c: New file.
1432 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
1433 Add mkdtemp module.
1434 * unittests/mkdir-recursive-selftests.c (test): Use
1435 get_standard_temp_dir.
1436 (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
1437 ifdef.
1438 * compile/compile.c (get_compile_file_tempdir): Likewise.
1439
cdcda965
SM
14402018-11-01 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1441
1442 * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1443 (SIG_FRAME_LR_OFFSET64): New define.
1444 (SIG_FRAME_FP_OFFSET64): New define.
1445 (aix_sighandle_frame_cache): New Function.
1446 (aix_sighandle_frame_this_id): New Function.
1447 (aix_sighandle_frame_prev_register): New Function.
1448 (aix_sighandle_frame_sniffer): New Function.
1449 (aix_sighandle_frame_unwind): New global variable.
1450 (rs6000_aix_init_osabi): Install new frame unwinder.
1451
656efb5e
SDJ
14522018-10-31 Sergio Durigan Junior <sergiodj@redhat.com>
1453
1454 PR gdb/23835
1455 * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
1456 already defined.
1457
64f57f3d
PFC
14582018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1459
1460 * ppc-linux-nat.c: Include nat/linux-ptrace.h.
1461
eb77c9df
AB
14622018-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1463
1464 * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
1465 (producer_is_icc): New function.
1466 (check_producer): Set producer_is_icc field on dwarf2_cu.
1467 (dwarf2_init_integer_type): New function.
1468 (read_base_type): Call dwarf2_init_integer_type instead of
1469 init_integer_type in all cases.
1470 (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
1471 * valprint.c (maybe_negate_by_bytes): Add an assertion that the
1472 LEN is greater than 0.
1473
4d5d1049
TT
14742018-10-30 Tom Tromey <tom@tromey.com>
1475
1476 * main.c (captured_main_1): Check return value of bfd_init.
1477
fd332753
SDJ
14782018-10-29 Sergio Durigan Junior <sergiodj@redhat.com>
1479
1480 * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
1481 Adjust comments.
1482
30a7953d
RO
14832018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1484
1485 * procfs.c: Include common/pathstuff.h.
1486
a3d72268
AB
14872018-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
1488
1489 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1490 Add missing braces. No functional change.
1491
cd948f5b
PW
14922018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1493
1494 * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
1495 to report a bad option and fix indentation.
1496 * demangle.c (demangle_command): Use report_unrecognized_option_error
1497 to report a bad option and correctly report the bad option.
1498
b50a8b9a
TT
14992018-10-27 Tom Tromey <tom@tromey.com>
1500
1501 PR cli/23364:
1502 * darwin-nat.c (copied_shell): New global.
1503 (may_have_sip): Rename from should_disable_startup_with_shell.
1504 (copy_shell_to_cache, maybe_cache_shell): New functions.
1505 (darwin_nat_target::create_inferior): Update. Use
1506 copied_shell.
1507
36033ef5
TT
15082018-10-27 Tom Tromey <tom@tromey.com>
1509
1510 * unittests/scoped_fd-selftests.c (test_to_file): New function.
1511 (run_tests): Call test_to_file.
1512 * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
1513 temporary files.
1514 * common/scoped_fd.h (scoped_fd::to_file): New method.
1515
b3279b60
TT
15162018-10-27 Tom Tromey <tom@tromey.com>
1517
1518 * unittests/scoped_mmap-selftests.c (test_normal): Use
1519 gdb_mkostemp_cloexec.
1520 * unittests/scoped_fd-selftests.c (test_destroy, test_release):
1521 Use gdb_mkostemp_cloexec.
1522 * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
1523 gnulib/config.in, gnulib/configure,
1524 gnulib/import/Makefile.am, gnulib/import/Makefile.in,
1525 gnulib/import/m4/gnulib-cache.m4,
1526 gnulib/import/m4/gnulib-comp.m4: Update.
1527 * gnulib/import/m4/mkostemp.m4: New file.
1528 * gnulib/import/m4/mkstemp.m4: Remove.
1529 * gnulib/import/mkostemp.c: New file.
1530 * gnulib/import/mkstemp.m4: Remove.
1531 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
1532 mkstemp, add mkostemp. Apply new patch.
1533 * gnulib/import/stdlib.in.h: Apply patch.
1534 * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
1535 New file.
1536 * dwarf-index-write.c (write_psymtabs_to_index): Use
1537 gdb_mkostemp_cloexec.
1538 * common/filestuff.h (gdb_mkostemp_cloexec): New function.
1539
e418a61a
TT
15402018-10-27 Tom Tromey <tom@tromey.com>
1541
1542 * unittests/mkdir-recursive-selftests.c: New file.
1543 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1544 unittests/mkdir-recursive-selftests.c.
1545 * dwarf-index-cache.c (mkdir_recursive): Move to
1546 common/filestuff.c.
1547 (index_cache::store): Check return value of mkdir_recursive.
1548 (create_dir_and_check, test_mkdir_recursive): Move to new file.
1549 (_initialize_index_cache): Don't register test.
1550 * common/filestuff.h (mkdir_recursive): Declare.
1551 * common/filestuff.c (mkdir_recursive): Move from
1552 dwarf-index-cache.c. Return bool.
1553
29be4d9d
TT
15542018-10-27 Tom Tromey <tom@tromey.com>
1555
1556 * dwarf-index-write.c (write_psymtabs_to_index): Move
1557 make_temp_filename to common/pathstuff.c.
1558 * common/pathstuff.h (make_temp_filename): Declare.
1559 * common/pathstuff.c (make_temp_filename): New function, moved
1560 from dwarf-index-write.c.
1561
974e6844
TT
15622018-10-27 Tom Tromey <tom@tromey.com>
1563
1564 * procfs.c (procfs_target::create_inferior): Use get_shell.
1565 * cli/cli-cmds.c (shell_escape): Use get_shell.
1566 * windows-nat.c (windows_nat_target::create_inferior): Use
1567 get_shell.
1568 * common/pathstuff.c (get_shell): New function.
1569 * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
1570 (fork_inferior): Use get_shell.
1571 * common/pathstuff.h (get_shell): Declare.
1572
e0a7911f
PW
15732018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1574
1575 * NEWS: Mention changes to 'info [args|functions|locals|variables]'
1576
12615cba
PW
15772018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1578
1579 * stack.c (print_variable_and_value_data): Add preg and treg.
1580 (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
1581 and update callers.
1582 (print_frame_arg_vars): Likewise.
1583 (prepare_reg): New function.
1584 (info_locals_command): Extract info print args and use them.
1585 (info_args_command): Likewise.
1586 (_initialize_stack): Modify on-line help.
1587 * symtab.c (treg_matches_sym_type_name): New function.
1588 (search_symbols): New arg t_regexp.
1589 (symtab_symbol_info): New args quiet, regexp, t_regexp.
1590 (info_variables_command): Extract info print args and use them.
1591 (info_functions_command): Likewise.
1592 (info_types_command): Update call to symtab_symbol_info.
1593 (_initialize_symtab): Modify on-line help.
1594 * symtab.h (treg_matches_sym_type_name): New function.
1595 (search_symbols): New t_regexp arg.
1596
0d4cad90
PW
15972018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1598
1599 * cli-utils.c (extract_arg_maybe_quoted): New function.
1600 (extract_info_print_args): New function.
1601 (info_print_args_help): New function.
1602 (report_unrecognized_option_error): New function.
1603 * cli-utils.h (extract_arg_maybe_quoted): New function.
1604 (extract_info_print_args): New function.
1605 (info_print_args_help): New function.
1606 (report_unrecognized_option_error): New function.
1607
4c39bc03
TT
16082018-10-26 Tom Tromey <tom@tromey.com>
1609
1610 * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
1611 (compute_compunit_symtab_includes): Update.
1612 * symtab.h: (symtab_ptr): Remove typedef. Don't define a VEC.
1613 (compunit_symtab_ptr): Likewise.
1614
fd2b4de5
JB
16152018-10-26 John Baldwin <jhb@FreeBSD.org>
1616
1617 * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
1618 default_print_auxv_entry for specific tag values.
1619
d7ded98f
JB
16202018-10-26 John Baldwin <jhb@FreeBSD.org>
1621
1622 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
1623
8a613826
JW
16242018-10-26 Jim Wilson <jimw@sifive.com>
1625
77c6f5fc
JW
1626 * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
1627 (riscv_linux_sigframe_init): Declare.
1628 (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
1629 (riscv_linux_sigframe): New.
1630 (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
1631 (riscv_linux_sigframe_init): Define.
1632 (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
1633
8a613826
JW
1634 * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
1635 (riscv_isa_flen): Likewise. Drop static.
1636 * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
1637 (riscv_isa_flen): Likewise. Declare.
1638
8d619c01
EBM
16392018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1640 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1641
1642 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
1643 (tdesc_powerpc_isa207_htm_vsx64l): Declare.
1644 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
1645 (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
1646 (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
1647 (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
1648 (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
1649 Define.
1650 (struct ppc_linux_features) <htm>: New field.
1651 (ppc_linux_no_features): Add initializer for htm field.
1652 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1653 new tdescs.
1654 * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
1655 (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
1656 (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
1657 Define if not already defined.
1658 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
1659 and rs6000/powerpc-isa207-htm-vsx64l.
1660 (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
1661 rs6000/powerpc-isa207-htm-vsx64l.xml.
1662 * features/rs6000/power-htm-spr.xml: New file.
1663 * features/rs6000/power-htm-core.xml: New file.
1664 * features/rs6000/power64-htm-core.xml: New file.
1665 * features/rs6000/power-htm-fpu.xml: New file.
1666 * features/rs6000/power-htm-altivec.xml: New file.
1667 * features/rs6000/power-htm-vsx.xml: New file.
1668 * features/rs6000/power-htm-ppr.xml: New file.
1669 * features/rs6000/power-htm-dscr.xml: New file.
1670 * features/rs6000/power-htm-tar.xml: New file.
1671 * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
1672 * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
1673 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
1674 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
1675 * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
1676 * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
1677 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1678 fetch_regset with HTM regsets.
1679 (store_register, store_ppc_registers): Call store_regset with HTM
1680 regsets.
1681 (ppc_linux_nat_target::read_description): Set htm field in the
1682 features struct if needed.
1683 * ppc-linux-tdep.c: Include
1684 features/rs6000/powerpc-isa207-htm-vsx32l.c and
1685 features/rs6000/powerpc-isa207-htm-vsx64l.c.
1686 (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
1687 (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
1688 (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
1689 (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
1690 (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
1691 (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
1692 (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
1693 (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
1694 (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
1695 (ppc32_linux_ctarregset): New globals.
1696 (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
1697 (ppc_linux_collect_core_cpgrregset): New function.
1698 (ppc_linux_iterate_over_regset_sections): Call back with the htm
1699 regsets.
1700 (ppc_linux_core_read_description): Check if the tm spr section is
1701 present and set htm in the features struct.
1702 (_initialize_ppc_linux_tdep): Call
1703 initialize_tdesc_powerpc_isa207_htm_vsx32l and
1704 initialize_tdesc_powerpc_isa207_htm_vsx64l.
1705 * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
1706 Declare.
1707 (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
1708 (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
1709 (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
1710 * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
1711 New fields.
1712 <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
1713 Likewise.
1714 <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
1715 <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
1716 (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
1717 New enum fields.
1718 <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
1719 <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
1720 <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
1721 <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
1722 <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
1723 <PPC_CTAR_REGNUM>: Likewise.
1724 (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
1725 (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
1726 * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
1727 (IS_CEFP_PSEUDOREG): Define.
1728 (rs6000_register_name): Hide the upper halves of checkpointed VSX
1729 registers. Return names for the checkpointed DFP, VSX, and EFP
1730 pseudo registers.
1731 (rs6000_pseudo_register_type): Remove initial assert and raise an
1732 internal error in the else clause instead. Return types for the
1733 checkpointed DFP, VSX, and EFP pseudo registers.
1734 (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
1735 checkpointed DFP pseudo registers.
1736 (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
1737 checkpointed VSX pseudo registers.
1738 (efp_pseudo_register_read, efp_pseudo_register_write): Rename
1739 from efpr_pseudo_register_read and
1740 efpr_pseudo_register_write. Handle checkpointed EFP pseudo
1741 registers.
1742 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
1743 Handle checkpointed DFP, VSX, and EFP registers.
1744 (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
1745 (efp_ax_pseudo_register_collect): New functions.
1746 (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
1747 register logic to new functions. Handle checkpointed DFP, VSX,
1748 and EFP pseudo registers.
1749 (rs6000_gdbarch_init): Look for and validate the htm features.
1750 Include checkpointed DFP, VSX and EFP pseudo-registers.
1751 * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
1752 HTM registers.
1753
81ab84fd
PFC
17542018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1755
1756 * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
1757 without altivec or fpu.
1758
232bfb86
EBM
17592018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1760 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1761
1762 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
1763 (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
1764 * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
1765 Define if not already defined.
1766 * features/rs6000/power-ebb.xml: New file.
1767 * features/rs6000/power-linux-pmu.xml: New file.
1768 * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
1769 features.
1770 * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
1771 * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
1772 * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
1773 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
1774 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
1775 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1776 fetch_regset with ebb and pmu regsets.
1777 (store_register, store_ppc_registers): Call store_regset with ebb
1778 and pmu regsets.
1779 (ppc_linux_nat_target::read_description): Set isa207 field in the
1780 features struct if ebb and pmu are avaiable.
1781 * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
1782 (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
1783 (ppc_linux_iterate_over_regset_sections): Call back with the ebb
1784 and pmu regsets.
1785 (ppc_linux_core_read_description): Check if the pmu section is
1786 present and set isa207 in the features struct.
1787 * ppc-linux-tdep.h (ppc32_linux_ebbregset)
1788 (ppc32_linux_pmuregset): Declare.
1789 * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
1790 <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
1791 <ppc_sier_regnum>: New field.
1792 (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
1793 New enum values.
1794 <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
1795 values.
1796 <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
1797 (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
1798 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
1799 ebb and pmu features.
1800
f2cf6173
EBM
18012018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1802 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1803
1804 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
1805 (tdesc_powerpc_isa207_vsx64l): Declare.
1806 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
1807 (struct ppc_linux_features) <isa207>: New field.
1808 (ppc_linux_no_features): Add initializer for isa207 field.
1809 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1810 new tdescs.
1811 * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
1812 (NT_PPC_TAR): Define if not already defined.
1813 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
1814 rs6000/powerpc-isa207-vsx64l.
1815 (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
1816 rs6000/powerpc-isa207-vsx64l.xml.
1817 * features/rs6000/power-tar.xml: New file.
1818 * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
1819 * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
1820 * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
1821 * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
1822 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
1823 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
1824 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1825 fetch_regset with the TAR regset.
1826 (store_register, store_ppc_registers): Call store_regset with the
1827 TAR regset.
1828 (ppc_linux_nat_target::read_description): Set isa207 field in the
1829 features struct if needed.
1830 * ppc-linux-tdep.c: Include
1831 features/rs6000/powerpc-isa207-vsx32l.c and
1832 features/rs6000/powerpc-isa207-vsx64l.c.
1833 (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
1834 (ppc_linux_iterate_over_regset_sections): Call back with the tar
1835 regset.
1836 (ppc_linux_core_read_description): Check if the tar section is
1837 present and set isa207 in the features struct.
1838 (_initialize_ppc_linux_tdep): Call
1839 initialize_tdesc_powerpc_isa207_vsx32l and
1840 initialize_tdesc_powerpc_isa207_vsx64l.
1841 * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
1842 * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
1843 (enum) <PPC_TAR_REGNUM>: New enum value.
1844 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
1845 feature.
1846 (ppc_process_record_op31): Record changes to TAR.
1847
7ca18ed6
EBM
18482018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1849 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1850
1851 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
1852 (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
1853 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
1854 (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
1855 (struct ppc_linux_features) <ppr_dscr>: New field.
1856 (ppc_linux_no_features): Add initializer for ppr_dscr field.
1857 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1858 new tdescs.
1859 * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
1860 Define if not already defined.
1861 * features/Makefile (WHICH): Add
1862 rs6000/powerpc-isa205-ppr-dscr-vsx32l and
1863 rs6000/powerpc-isa205-ppr-dscr-vsx64l.
1864 (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
1865 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
1866 * features/rs6000/power-dscr.xml: New file.
1867 * features/rs6000/power-ppr.xml: New file.
1868 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
1869 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
1870 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
1871 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
1872 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
1873 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
1874 * ppc-linux-nat.c: Include <sys/uio.h>.
1875 (fetch_regset, store_regset, check_regset): New functions.
1876 (fetch_register, fetch_ppc_registers): Call fetch_regset with
1877 DSCR and PPR regsets.
1878 (store_register, store_ppc_registers): Call store_regset with
1879 DSCR and PPR regsets.
1880 (ppc_linux_get_hwcap2): New function.
1881 (ppc_linux_nat_target::read_description): Call
1882 ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
1883 features struct if needed.
1884 * ppc-linux-tdep.c: Include
1885 features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
1886 features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
1887 (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
1888 (ppc32_linux_dscrregset): New globals.
1889 (ppc_linux_iterate_over_regset_sections): Call back with the ppr
1890 and dscr regsets.
1891 (ppc_linux_core_read_description): Check if the ppr and dscr
1892 sections are present and set ppr_dscr in the features struct.
1893 (_initialize_ppc_linux_tdep): Call
1894 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
1895 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
1896 * ppc-linux-tdep.h (ppc32_linux_pprregset)
1897 (ppc32_linux_dscrregset): Declare.
1898 * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
1899 <ppc_dscr_regnum>: New field.
1900 (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
1901 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
1902 and dscr features.
1903 (ppc_process_record_op31): Record changes to PPR and DSCR.
1904
93b4691f
PFC
19052018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1906
1907 * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
1908 second initializer line for the have_* variables. Initialize
1909 have_fpu to 0 instead of 1.
1910
71733a7b
PFC
19112018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1912
1913 * arch/ppc-linux-common.c (ppc_linux_match_description):
1914 Parenthesize tdesc assignements and indent them properly.
1915
3d907528
PFC
19162018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1917
1918 * ppc-linux-nat.c (fetch_register): Change if statement to else
1919 if.
1920 (store_register): Likewise.
1921
500f01a0
PFC
19222018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1923
1924 * rs6000-tdep.c: Remove reggroups.h include.
1925 (rs6000_pseudo_register_reggroup_p): Remove.
1926 (rs6000_gdbarch_init): Remove call to
1927 set_tdesc_pseudo_register_reggroup_p.
1928
7ed29001
PFC
19292018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1930
1931 * reggroups.c (default_register_reggroup_p): Return true for
1932 decfloat registers and float_reggroup.
1933
5c849b22
PFC
19342018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1935
1936 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
1937 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
1938 ppc_linux_collect_vrregset by regcache_collect_regset.
1939
afde3032
PFC
19402018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1941
1942 * linux-tdep.c (linux_collect_regset_section_cb): Use
1943 std::vector<gdb_byte> instead of char * and malloc for buf.
1944 Remove xfree.
1945
b9718991
SM
19462018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1947
1948 * xcoffread.c (read_xcoff_symtab): Pass deduced language to
1949 symtab_start instead of always using language_unknown.
1950
0b0eff8b
AB
19512018-10-26 Andrew Burgess <andrew.burgess@embecosm.com>
1952
1953 * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
1954 READ_P parameter, catch and ignore register access errors from
1955 either the old or new MISA location.
1956 (riscv_has_feature): Update call to riscv_read_misa_reg.
1957
b352ceb6
AB
19582018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1959
1960 * python/py-function.c (convert_values_to_python): Return
1961 gdbpy_ref<>. Add header comment.
1962 (fnpy_call): Adjust.
1963
50db9ef4
AB
19642018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1965
1966 * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
1967 (cmdpy_completer_handle_brkchars): Adjust.
1968 (cmdpy_completer): Adjust.
1969
ee67fd7f
AB
19702018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1971
1972 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1973 Pass correct regnum to raw_supply_zeroed.
1974
bea556ab
HAQ
19752018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com>
1976
1977 * regcache.c (cooked_read_test): Add CSKY to the list of
1978 architectures with a save_reggroup
1979
35ed81d4
SM
19802018-10-23 Simon Marchi <simon.marchi@polymtl.ca>
1981
1982 PR gdb/23368
1983 * infrun.c (follow_exec): In the follow_exec_mode_new case,
1984 transfer terminal state from old new new inferior.
1985 * terminal.h (swap_terminal_info): New function.
1986 * inflow.c (swap_terminal_info): New function.
1987
79b8d3b0
TT
19882018-10-23 Tom Tromey <tom@tromey.com>
1989
1990 * record-btrace.c (get_thread_current_frame_id): Rename from
1991 get_thread_current_frame. Return a frame_id.
1992 (record_btrace_start_replaying): Update.
1993
420ecd9c
AB
19942018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1995
1996 * riscv-tdep.c (riscv_register_name): Use the user-friendly names
1997 for CSRs.
1998
5a77b1b4
JB
19992018-10-23 Joel Brobecker <brobecker@adacore.com>
2000
2001 * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
2002 have_nonsteppable_watchpoint attribute to 1.
2003
0dbfcfff
AB
20042018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2005
2006 * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
2007 register names.
2008 (struct register_alias): Rename to...
2009 (struct riscv_register_alias): ...this, and update comment.
2010 (riscv_register_aliases): Update type, and alias names. Remove
2011 CSR names from this list.
2012 (riscv_register_name): Use riscv_gdb_reg_names for int and float
2013 register names. Add an extra assertion.
2014 (riscv_is_regnum_a_named_csr): New function.
2015 (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
2016
32641fa9
JD
20172018-10-23 John Darrington <john@darrington.wattle.id.au>
2018
2019 * configure.tgt: Add configuration for s12z.
2020 * s12z-tdep.c: New file.
2021 * NEWS: Mention new target.
2022
270b9329
JW
20232018-10-22 Jim Wilson <jimw@sifive.com>
2024
3399f1b3
JW
2025 * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
2026 FP reg smaller than FP reg size, and fill with -1 instead of 0.
2027
270b9329
JW
2028 * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
2029 (riscv_register_type): Use them.
2030 (riscv_print_one_register_info): Handle union of floats same as float.
2031 * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
2032 riscv_fpreg_q_type fields.
2033
f6efe3f8
SM
20342018-10-21 Simon Marchi <simon.marchi@ericsson.com>
2035
2036 * gdbarch.sh (gdbarch_num_cooked_regs): New.
2037 * gdbarch.h: Re-generate.
2038 * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
2039 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2040 * eval.c (evaluate_subexp_standard): Likewise.
2041 * findvar.c (value_of_register): Likewise.
2042 (value_of_register_lazy): Likewise.
2043 (address_from_register): Likewise.
2044 * frame.c (get_frame_register_bytes): Likewise.
2045 * gdbarch-selftests.c (register_to_value_test): Likewise.
2046 * h8300-tdep.c (h8300_register_type): Likewise.
2047 * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
2048 (i386_svr4_reg_to_regnum): Likewise.
2049 * infcmd.c (default_print_registers_info): Likewise.
2050 (registers_info): Likewise.
2051 (print_vector_info): Likewise.
2052 (default_print_float_info): Likewise.
2053 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2054 * mdebugread.c (mdebug_reg_to_regnum): Likewise.
2055 * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
2056 (mi_cmd_data_list_changed_registers): Likewise.
2057 (mi_cmd_data_list_register_values): Likewise.
2058 (mi_cmd_data_write_register_values): Likewise.
2059 (mi_cmd_trace_frame_collected): Likewise.
2060 * mips-tdep.c (print_gp_register_row): Likewise.
2061 (mips_print_registers_info): Likewise.
2062 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
2063 * regcache.c (init_regcache_descr): Likewise.
2064 (register_size): Likewise.
2065 (register_dump::dump): Likewise.
2066 (cooked_read_test): Likewise.
2067 (cooked_write_test): Likewise.
2068 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
2069 (rs6000_gdbarch_init): Likewise.
2070 * stabsread.c (stab_reg_to_regnum): Likewise.
2071 * stack.c (info_frame_command): Likewise.
2072 * target-descriptions.c (tdesc_register_name): Likewise.
2073 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
2074 * tui/tui-regs.c (tui_show_register_group): Likewise.
2075 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
2076 (user_reg_map_regnum_to_name): Likewise.
2077 (value_of_user_reg): Likewise.
2078 (maintenance_print_user_registers): Likewise.
2079 * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
2080 (xtensa_register_name): Likewise.
2081 (xtensa_register_type): Likewise.
2082 (xtensa_reg_to_regnum): Likewise.
2083 (xtensa_pseudo_register_read): Likewise.
2084 (xtensa_pseudo_register_write): Likewise.
2085
925047fe
SM
20862018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2087
2088 * amd64-tdep.c (amd64_pseudo_register_read_value): Use
2089 correctly-sized buffer with raw_read.
2090 (amd64_pseudo_register_write): Use correctly-sized buffer for
2091 raw_read/raw_write.
2092
4051d2d6
PW
20932018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2094
2095 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
2096 in add_prefix_cmd of set print type.
2097
7806cea7
TT
20982018-10-19 Tom Tromey <tom@tromey.com>
2099
2100 PR tui/18388:
2101 * NEWS: Mention tabset deprecation.
2102 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
2103 (update_tab_width): New function.
2104 (tui_set_tab_width, tui_show_tab_width): New functions.
2105 (tui_set_tab_width_command): Use update_tab_width.
2106 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
2107 Add new "set tui tab-width" command.
2108 * tui/tui-source.c (tui_set_source_content): Update.
2109 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2110 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
2111 Don't declare.
2112 (tui_tab_width): Declare.
2113 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
2114 (tui_set_default_tab_len): Remove.
2115
84371624
TT
21162018-10-19 Tom Tromey <tom@tromey.com>
2117
2118 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
2119 (key_is_backspace, tui_getc): Don't declare.
2120 * tui/tui-io.c (key_is_start_sequence): Now static.
2121 (key_is_end_sequence, key_is_backspace): Remove.
2122 (tui_getc): Now static.
2123
22ad8107
TT
21242018-10-19 Tom Tromey <tom@tromey.com>
2125
2126 * symfile.c (reread_symbols): Clear "static_links".
2127
74b3c713
AH
21282018-10-19 Alan Hayward <alan.hayward@arm.com>
2129
2130 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
2131 define.
2132 (aarch64_linux_sigframe_init): Extra boundary checks.
2133
0667c506
AA
21342018-10-19 Andreas Arnez <arnez@linux.ibm.com>
2135
2136 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
2137 the possibly non-existent tdesc type 'vec128', but the type of raw
2138 register v16 instead.
2139
ba543ca5
GB
21402018-10-19 Gary Benson <gbenson@redhat.com>
2141
2142 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
2143
94c18618
SDJ
21442018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
2145
2146 PR cli/23785
2147 * cli/cli-dump.c (restore_binary_file): Check if "file" is
2148 NULL.
2149
89eb3c54
PK
21502018-10-17 Paul Koning <paul_koning@dell.com>
2151
2152 * charset.c (convert_between_encodings): Fix unsigned overflow.
2153
6f3b1098
JB
21542018-10-17 John Baldwin <jhb@FreeBSD.org>
2155
2156 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
2157 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
2158 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
2159 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
2160 New functions.
2161 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
2162 and fbsd_info_proc_mappings_header.
2163 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
2164 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
2165 New.
2166
d500b4f2
JB
21672018-10-17 Joel Brobecker <brobecker@adacore.com>
2168
2169 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
2170 Solaris Maintainer.
2171
63a33118
TT
21722018-10-15 Tom Tromey <tom@tromey.com>
2173
2174 * tui/tui.c (strcat_to_buf): Remove casts.
2175 * tui/tui-winsource.c (tui_show_source_line)
2176 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
2177 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
2178 * tui/tui-windata.c (tui_first_data_item_displayed)
2179 (tui_delete_data_content_windows, tui_erase_data_content)
2180 (tui_display_all_data, tui_display_data_from)
2181 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
2182 * tui/tui-win.c (tui_set_win_height)
2183 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
2184 casts.
2185 * tui/tui-win.c (tui_resize_all): Remove casts.
2186 (tui_scroll_backward_command, tui_set_focus)
2187 (tui_set_tab_width_command): Likewise.
2188 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
2189 * tui/tui-regs.c (tui_show_register_group): Remove cast.
2190 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
2191 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
2192 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
2193 Remove casts.
2194
933e62b1
SM
21952018-10-15 Simon Marchi <simon.marchi@ericsson.com>
2196
2197 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
2198 AArch64/ARM maintainer.
2199
fbe61a36
GB
22002018-10-11 Gary Benson <gbenson@redhat.com>
2201
2202 * interps.h (interp::m_name): Make private and mutable.
2203 * interps.c (interp::~interp): Free m_name.
2204
8ecfd7bd
SDJ
22052018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2206 Simon Marchi <simark@simark.ca>
2207
2208 * README (`configure' options): Add documentation for new
2209 "--enable-unit-tests" option.
2210 * acinclude.m4: Include "selftest.m4".
2211 * configure: Regenerate.
2212 * configure.ac: Use "GDB_AC_SELFTEST".
2213 * maint.c (maintenance_selftest): Update message informing
2214 that selftests have been disabled.
2215 (maintenance_info_selftests): Likewise.
2216 * selftest.m4: New file.
2217
33b031ce
GB
22182018-10-10 Gary Benson <gbenson@redhat.com>
2219
2220 * remote.c (remote_target::remote_send_printf): Add
2221 missing va_end found by Coverity.
2222
2cb2ba9a
MM
22232018-10-10 Markus Metzger <markus.t.metzger@intel.com>
2224
2225 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
2226
eff98030
TT
22272018-10-09 Tom Tromey <tom@tromey.com>
2228
2229 * configure: Rebuild.
2230 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
2231 * NEWS: Update --enable-ubsan documentation.
2232
04fd5eed
GB
22332018-10-09 Gary Benson <gbenson@redhat.com>
2234
2235 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
2236 found by Coverity.
2237
a0c3048e
TT
22382018-10-08 Tom Tromey <tom@tromey.com>
2239
2240 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
2241 variable.
2242 (riscv_fbsd_init_abi): Likewise.
2243
a51bb70c
WP
22442018-10-08 Weimin Pan <weimin.pan@oracle.com>
2245 * valops.c (value_struct_elt_for_reference): Rename local variable
2246 to work around the shadowing a previous local warning.
2247
74792ff7
JB
22482018-10-08 John Baldwin <jhb@FreeBSD.org>
2249
2250 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
2251 * NEWS: Mention new FreeBSD/riscv native configuration.
2252 * configure.host: Add riscv*-*-freebsd*.
2253 * configure.nat: Likewise.
2254 * riscv-fbsd-nat.c: New file.
2255
ed65e20b
JB
22562018-10-08 John Baldwin <jhb@FreeBSD.org>
2257
2258 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
2259 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
2260 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
2261 * NEWS: Mention new FreeBSD/riscv target.
2262 * configure.tgt: Add riscv*-*-freebsd*.
2263 * riscv-fbsd-tdep.c: New file.
2264 * riscv-fbsd-tdep.h: New file.
2265
498f7407
JB
22662018-10-08 John Baldwin <jhb@FreeBSD.org>
2267
2268 * regcache.h (struct regcache_map_entry): Note that this type can
2269 be used with traditional frame caches.
2270 * trad-frame.c (trad_frame_set_reg_regmap): New.
2271 * trad-frame.h (trad_frame_set_reg_regmap): New.
2272
9f6b697b
WP
22732018-10-08 Weimin Pan <weimin.pan@oracle.com>
2274
2275 PR c++/16841
2276 * valops.c (get_virtual_base_offset): New function.
2277 (value_struct_elt_for_reference): Use it to get virtual base offset
2278 and add it in calculating class member address.
2279
4399bce9 22802018-10-08 John Darrington <john@darrington.wattle.id.au>
c258c396 2281
4399bce9
PA
2282 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
2283 (check_producer): Check if the producer is codewarrior.
2284 (producer_is_codewarrior): New function.
2285 (lnp_state_machine::record_line): Ignore is_stmt flag for records
2286 produced by codewarrior.
2287 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
c258c396 2288
add5ded5
TT
22892018-10-06 Tom Tromey <tom@tromey.com>
2290
2291 PR python/19399:
2292 * python/py-inferior.c: Add "architecture" entry.
2293 (infpy_architecture): New function.
2294
51e78fc5
TT
22952018-10-06 Tom Tromey <tom@tromey.com>
2296
2297 PR python/21765:
2298 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
2299 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
2300 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
2301 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
2302
a8a5dbca
TT
23032018-10-06 Tom Tromey <tom@tromey.com>
2304
2305 PR build/17077:
2306 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
2307 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
2308 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
2309 #include.
2310
2a8be203
TT
23112018-10-06 Tom Tromey <tom@tromey.com>
2312
2313 * python/py-breakpoint.c (bppy_get_location): Handle a
2314 bp_breakpoint without a location.
2315
2fb009bb
TT
23162018-10-06 Tom Tromey <tom@tromey.com>
2317
2318 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
2319 (_RegEx): Reformat help text.
2320 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
2321 (AnyCallerIs, AnyCallerMatches): Reformat help text.
2322 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
2323 text.
2324 * python/lib/gdb/command/xmethods.py (InfoXMethod)
2325 (EnableXMethod, DisableXMethod): Remove help indentation.
2326 Capitalize meta-syntactic variables.
2327 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
2328 (EnableUnwinder, DisableUnwinder): Remove help indentation.
2329 Capitalize meta-syntactic variables.
2330 * python/lib/gdb/command/explore.py (ExploreCommand)
2331 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
2332 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
2333 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
2334 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
2335 Remove help indentation.
2336 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
2337 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
2338 (DisableFrameFilter, SetFrameFilterPriority)
2339 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
2340
7a956928
TT
23412018-10-06 Tom Tromey <tom@tromey.com>
2342
2343 PR tui/28819:
2344 * tui/tui-io.c (gdb_wgetch): New function.
2345 (tui_mld_getc, tui_getc): Use it.
2346
f8740dc5
TT
23472018-10-05 Tom Tromey <tom@tromey.com>
2348
2349 * sol-thread.c (sol_thread_target::wait): Rename inner
2350 "save_ptid".
2351
96643e35
TT
23522018-10-04 Tom Tromey <tom@tromey.com>
2353
2354 * configure: Rebuild.
2355 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
2356
d951f98b
TT
23572018-10-04 Tom Tromey <tom@tromey.com>
2358
2359 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
2360 declaration of "block".
2361
b8c88847
TT
23622018-10-04 Tom Tromey <tom@tromey.com>
2363
2364 * common/filestuff.c (fdwalk): Remove inner declaration of
2365 "result".
2366
ef789dc4
TT
23672018-10-04 Tom Tromey <tom@tromey.com>
2368
2369 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
2370 "structs_addr" and hoist declaration.
2371
3fba72f7
TT
23722018-10-04 Tom Tromey <tom@tromey.com>
2373
2374 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
2375 variable "size".
2376
795afcbb
TT
23772018-10-04 Tom Tromey <tom@tromey.com>
2378
2379 * mdebugread.c (parse_partial_symbols): Use std::string.
2380
b926417a
TT
23812018-10-04 Tom Tromey <tom@tromey.com>
2382
2383 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
2384 * p-valprint.c (pascal_val_print): Split inner "i" variable.
2385 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
2386 header.
2387 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
2388 more inner scope.
2389 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
2390 * varobj.c (varobj_update): Rename inner "newobj",
2391 "type_changed".
2392 * valprint.c (generic_emit_char): Rename inner "buf".
2393 * valops.c (find_overload_match): Rename inner "temp".
2394 (value_struct_elt_for_reference): Declare "v" in more inner
2395 scope.
2396 * v850-tdep.c (v850_push_dummy_call): Rename "len".
2397 * unittests/array-view-selftests.c (run_tests): Rename inner
2398 "vec".
2399 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
2400 header.
2401 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
2402 "tsv" in more inner scope.
2403 (print_one_static_tracepoint_marker): Rename inner
2404 "tuple_emitter".
2405 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
2406 (tic6x_push_dummy_call): Don't redeclare "addr".
2407 * target-float.c: Declare "dto" lower.
2408 * symtab.c (lookup_local_symbol): Rename inner "sym".
2409 (find_pc_sect_line): Rename inner "pc".
2410 * stack.c (print_frame): Don't redeclare "gdbarch".
2411 (return_command): Rename inner "gdbarch".
2412 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
2413 "sp".
2414 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
2415 header.
2416 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
2417 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
2418 scope.
2419 * remote.c (remote_target::update_thread_list): Don't redeclare
2420 "tp".
2421 (remote_target::process_initial_stop_replies): Rename inner
2422 "thread".
2423 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
2424 (remote_target::wait_as): Don't redeclare "stop_reply".
2425 (remote_target::get_thread_local_address): Rename inner
2426 "result".
2427 (remote_target::get_tib_address): Likewise.
2428
2429 * regcache.c (cooked_read_test): Rename "regnum".
2430 * record-btrace.c (cmd_record_btrace_start): Rename inner
2431 "exception".
2432 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
2433 loop header.
2434 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
2435 header.
2436 (ppu2spu_sniffer): Rename inner "buf".
2437 * parse.c (operator_check_standard): Rename inner "type",
2438 "objfile".
2439 * p-valprint.c (pascal_val_print): Introduce new scope for
2440 "low_bound", "high_bound".
2441 * p-exp.y (yylex): Declare "i" in loop header.
2442 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
2443 Lower declaration of "s".
2444 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
2445 header.
2446 (nios2_push_dummy_call): Rename "len".
2447 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
2448 "buf".
2449 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
2450 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
2451 (linux_xfer_osdata_modules): Likewise.
2452 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
2453 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
2454 (mips_o64_push_dummy_call): Likewise.
2455 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
2456 "op".
2457 * mi/mi-main.c (list_available_thread_groups): Rename inner
2458 "tuple_emitter".
2459 (mi_cmd_data_read_memory): Rename inner "opts".
2460 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
2461 "tuple_emitter".
2462 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
2463 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
2464 more inner scope.
2465 (parse_partial_symbols): Rename inner "pst", "p", "name"
2466 * main.c (captured_main_1): Rename inner "i"s.
2467 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
2468 "oso2".
2469 * linux-tdep.c (linux_info_proc): Rename inner "filename".
2470 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
2471 * infrun.c (handle_no_resumed): Don't redeclare "thread".
2472 (handle_signal_stop): Rename inner "gdbarch".
2473 (handle_command): Declare "signum" in loop header.
2474 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
2475 "status".
2476 (examine_prologue): Rename inner "sol" and "sof".
2477 (ia64_extract_return_value): Rename inner "val". Declare another
2478 "val" in a more inner scope.
2479 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
2480 inner scope.
2481 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
2482 "except".
2483 * findvar.c (default_read_var_value): Don't redeclare "addr".
2484 * f-exp.y (yylex): Declare "i" in loop header.
2485 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
2486 Rename inner "type", "expect_type".
2487 (evaluate_subexp_for_sizeof): Rename inner "pc".
2488 * elfread.c (elf_symfile_read): Rename inner "abfd".
2489 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
2490 "bytes_read".
2491 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
2492 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
2493 (dwarf_decode_line_header): Rename inner "lh".
2494 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
2495 "offset". Declare "i" in loop header.
2496 (disassemble_dwarf_expression): Rename inner "addr_size".
2497 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
2498 inner "result".
2499 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
2500 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
2501 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
2502 "inner_list_emitter".
2503 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
2504 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
2505 declaration in a block.
2506 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
2507 * cp-valprint.c (cp_print_value_fields): Don't redeclare
2508 "obstack_final_size".
2509 * cp-support.c (inspect_type): Declare "i" in loop header.
2510 * compile/compile.c (compile_instance::insert_symbol_error):
2511 Rename inner "e".
2512 * common/agent.c (agent_run_command): Remove inner "ret"
2513 declaration.
2514 * coffread.c (coff_symfile_read): Rename inner "name".
2515 (coff_symfile_read): Rename inner "abfd".
2516 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
2517 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
2518 "high".
2519 * c-exp.y (lex_one_token): Move "len" declaration lower.
2520 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
2521 "gdbarch".
2522 (create_exception_master_breakpoint): Likewise. Don't redeclare
2523 "b".
2524 (watch_command_1): Declare "mark" later.
2525 (clear_command): Don't shadow "a" or "b".
2526 (delete_command): Rename inner "b".
2527 (delete_trace_command): Likewise.
2528 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
2529 "op".
2530 (arm_gdbarch_init): Remove inner "e_flags".
2531 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
2532 "offset" in inner blocks.
2533
1f88d0c8
SM
25342018-10-04 Simon Marchi <simon.marchi@ericsson.com>
2535
2536 * dwarf-index-write.c (file_write): Don't write if the vector is
2537 empty.
2538
5c4481cc
TV
25392018-10-05 Tom de Vries <tdevries@suse.de>
2540
2541 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
2542 PyArg_ParseTuple call.
2543
96b1ad86
TV
25442018-10-05 Tom de Vries <tdevries@suse.de>
2545
2546 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
2547 PyArg_ParseTuple call.
2548
d2f7dcb2
JB
25492018-10-04 Joel Brobecker <brobecker@adacore.com>
2550
2551 * psymtab.c (recursively_search_psymtabs): Reformat parameters
2552 to avoid exceeding 80 characters per line limit.
2553
5ca8c39f
TT
25542018-10-04 Tom Tromey <tom@tromey.com>
2555
2556 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2557 (reread_symbols): Update.
2558 * complaints.h (clear_complaints): Remove argument.
2559 * complaints.c (enum complaint_series): Remove.
2560 (series): Remove global.
2561 (complaint_internal): Update.
2562 (clear_complaints): Remove argument.
2563
e79497a1
TT
25642018-10-04 Tom Tromey <tom@tromey.com>
2565
2566 * symfile.c (symbol_file_add_with_addrs): Do not print "no
2567 debugging symbols" message if there is a separate debug objfile.
2568
3453e7e4
TT
25692018-10-04 Tom Tromey <tom@tromey.com>
2570
2571 PR cli/19551:
2572 * symfile.c (symbol_file_add_with_addrs): Update output.
2573 * psymtab.c (require_partial_symbols): Update output.
2574
6afcf761
TT
25752018-10-04 Tom Tromey <tom@tromey.com>
2576
2577 PR cli/22234:
2578 * complaints.c: Emit \n.
2579
22068491
TT
25802018-10-04 Tom Tromey <tom@tromey.com>
2581
2582 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
2583 (separate_debug_file_exists, find_separate_debug_file)
2584 (add_symbol_file_command, reread_symbols, allocate_symtab)
2585 (allocate_compunit_symtab): Use filtered printing, not
2586 unfiltered.
2587 * psymtab.c (require_partial_symbols, dump_psymtab)
2588 (allocate_psymtab): Use filtered printing, not unfiltered.
2589
9fdd7193
TT
25902018-10-04 Tom Tromey <tom@tromey.com>
2591
2592 * complaints.c (complaint_internal): Correctly check complaint
2593 count.
2594
3f2cf4dc
TT
25952018-10-04 Tom Tromey <tom@tromey.com>
2596
2597 * complaints.h (struct complaints): Remove declaration.
2598 * complaints.c (clear_complaints): Remove an unused variable.
2599
4f9bdf7f
RO
26002018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2601
2602 * MAINTAINERS (Write After Approval): Add self.
2603
875e5398
TT
26042018-10-03 Tom Tromey <tom@tromey.com>
2605
2606 * guile/scm-value.c (gdbscm_value_to_string): Initialize
2607 "buffer_contents".
2608 * coffread.c (coff_symtab_read): Initialize "newobj".
2609
8634679f
SM
26102018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
2611
2612 * dwarf2read.c (read_func_scope): Remove struct keyword in
2613 range-based for.
2614
f35d5ade
TT
26152018-10-03 Tom Tromey <tom@tromey.com>
2616
2617 * README: Mention --enable-ubsan.
2618 * NEWS: Mention --enable-ubsan.
2619 * acinclude.m4: Include sanitize.m4.
2620 * configure: Rebuild.
2621 * configure.ac: Call AM_GDB_UBSAN.
2622 * sanitize.m4: New file.
2623
1dffa580
TT
26242018-10-03 Tom Tromey <tom@tromey.com>
2625
2626 * expression.h (enum exp_opcode): Use uint8_t as base type.
2627 * expprint.c (op_name): Handle invalid opcodes.
2628
5e70ee09
TT
26292018-10-03 Tom Tromey <tom@tromey.com>
2630
2631 * parse.c (prefixify_expression): Add assert.
2632 (parse_exp_in_context_1): Throw exception if the expression is
2633 empty.
2634
4dd1b460
TT
26352018-10-03 Tom Tromey <tom@tromey.com>
2636
2637 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
2638
20562150
TT
26392018-10-03 Tom Tromey <tom@tromey.com>
2640
2641 * c-exp.y (parse_number): Work in unsigned. Remove casts.
2642
d359392f
TT
26432018-10-03 Tom Tromey <tom@tromey.com>
2644
2645 * dwarf2read.c (read_subrange_type): Make "negative_mask"
2646 unsigned.
2647
0101665f
TT
26482018-10-03 Tom Tromey <tom@tromey.com>
2649
2650 * findvar.c (extract_integer): Do work in an unsigned type.
2651
ad69edbb
TT
26522018-10-03 Tom Tromey <tom@tromey.com>
2653
2654 * common/enum-flags.h (enum_flags::operator~): Add static assert.
2655 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
2656 base type.
2657 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
2658 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
2659 type.
2660 * c-lang.h (enum c_string_type_values): Use unsigned as base
2661 type.
2662 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
2663
780942fc
TT
26642018-10-03 Tom Tromey <tom@tromey.com>
2665
2666 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
2667 <~dwarf2_frame_state_reg_info>: Update.
2668 <dwarf2_frame_state_reg_info>: Update.
2669 <alloc_regs>: Add assertion. Update.
2670 <reg>: Now a std::vector.
2671 <num_regs>: Remove.
2672 <swap>: Update.
2673 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
2674 (execute_cfa_program_test, dwarf2_frame_cache): Update.
2675
10657c04
TT
26762018-10-03 Tom Tromey <tom@tromey.com>
2677
2678 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
2679
34c0fc00
PW
26802018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2681
2682 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
2683
2398abf8
TT
26842018-10-02 Tom Tromey <tom@tromey.com>
2685
2686 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
2687
4399bce9 26882018-10-02 John Darrington <john@darrington.wattle.id.au>
c1168a2f
JD
2689
2690 * NEWS: Mention changed commands.
2691 * ser-uds.c: New file.
2692 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
2693 * configure: Regenerate.
2694 * Makefile.in: Add new file.
2695 * serial.c (serial_open): Check if filename is a socket
4399bce9 2696 and lookup the appropriate interface accordingly.
c1168a2f 2697
05c71722
AH
26982018-10-01 Alan Hayward <alan.hayward@arm.com>
2699
2700 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
2701 define.
2702 (AARCH64_EXTRA_MAGIC): Likewise.
2703 (AARCH64_FPSIMD_MAGIC): Likewise.
2704 (AARCH64_SVE_MAGIC): Likewise.
2705 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
2706 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
2707 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
2708 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
2709 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
2710 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
2711 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
2712 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
2713 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
2714 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
2715 (read_aarch64_ctx): Add function.
2716 (aarch64_linux_sigframe_init): Detect FP registers.
2717
c74e7cb9
AH
27182018-10-01 Alan Hayward <alan.hayward@arm.com>
2719
2720 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
2721 (AARCH64_D0_REGNUM): Likewise.
2722 (AARCH64_S0_REGNUM): Likewise.
2723 (AARCH64_H0_REGNUM): Likewise.
2724 (AARCH64_B0_REGNUM): Likewise.
2725 (AARCH64_SVE_V0_REGNUM): Likewise.
2726 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
2727 (AARCH64_D0_REGNUM): Likewise.
2728 (AARCH64_S0_REGNUM): Likewise.
2729 (AARCH64_H0_REGNUM): Likewise.
2730 (AARCH64_B0_REGNUM): Likewise.
2731 (AARCH64_SVE_V0_REGNUM): Likewise.
2732
12b164e9
GB
27332018-10-01 Gary Benson <gbenson@redhat.com>
2734
2735 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
2736 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
2737 prfpregset_t instead of gdb_prfpregset_t.
2738 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
2739 * configure, config.in: Rebuild.
2740
7c619dbd
GB
27412018-10-01 Gary Benson <gbenson@redhat.com>
2742
2743 * common/gdb_proc_service.h: New file, factored out from...
2744 * gdb_proc_service.h: Moved common code to the above file.
2745 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
2746
358ffcf2
GB
27472018-10-01 Gary Benson <gbenson@redhat.com>
2748
2749 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
2750 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
2751
43b7e92b
GB
27522018-10-01 Gary Benson <gbenson@redhat.com>
2753
2754 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
2755 (AC_CHECK_HEADERS): Check for linux/elf.h.
2756 * configure, config.in: Rebuild.
2757 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
2758 doesn't define elf_fpregset_t.
2759
3795e814
GB
27602018-10-01 Gary Benson <gbenson@redhat.com>
2761
2762 * gdb_proc_service.h: Whitespace change.
2763
4176f14d
TT
27642018-10-01 Tom Tromey <tom@tromey.com>
2765
2766 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
2767 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
2768 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
2769
a95746f9
TT
27702018-10-01 Tom Tromey <tom@tromey.com>
2771
2772 * README: Minor change.
2773
dd203782
PA
27742018-09-30 Pedro Alves <palves@redhat.com>
2775
2776 * darwin-nat-info.c (darwin_debug_regions_recurse)
2777 (info_mach_exceptions_command): Remove unused local variables.
2778 * darwin-nat.c (darwin_decode_notify_message)
2779 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
2780 (darwin_stop_inferior, darwin_setup_exceptions)
2781 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
2782 (darwin_nat_target::attach, darwin_nat_target::detach)
2783 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
2784 local variables.
2785 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
2786 variables.
2787
c82a2e6f
TT
27882018-09-29 Tom Tromey <tom@tromey.com>
2789
2790 * README: Remove some leftover text.
2791
7f0bd420
TT
27922018-09-29 Tom Tromey <tom@tromey.com>
2793
2794 * PROBLEMS: Rewrite.
2795 * README: Update.
2796
f37bc8b1
JB
27972018-09-28 John Baldwin <jhb@FreeBSD.org>
2798
2799 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
2800 case with explicit breakpoint kind.
2801 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
2802 'additional_info' and related logic.
2803 (riscv_debug_breakpoints): New variable.
2804 (riscv_breakpoint_kind_from_pc): Use the length of the existing
2805 instruction to determine the breakpoint kind.
2806 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
2807 flag. Update description of 'set/show riscv
2808 use-compressed-breakpoints' flag.
2809
f67ffa6a
AB
28102018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
2811
2812 (NEWS): Mention changes to frame related commands.
2813 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
2814 (add_prefix_cmd_suppress_notification): New function.
2815 (add_com_suppress_notification): Call
2816 add_cmd_suppress_notification.
2817 * command.h (add_cmd_suppress_notification): Declare.
2818 (add_prefix_cmd_suppress_notification): Declare.
2819 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
2820 (parse_frame_specification): Moved from stack.c, with
2821 simplification to handle a single argument.
2822 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
2823 switch to the selected frame. Add a header comment.
2824 * stack.c: Remove 'safe-ctype.h' include.
2825 (find_frame_for_function): Add declaration.
2826 (find_frame_for_address): New function.
2827 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
2828 (frame_selection_by_function_completer): New function.
2829 (info_frame_command): Rename to...
2830 (info_frame_command_core): ...this, and update parameter types.
2831 (select_frame_command): Rename to...
2832 (select_frame_command_core): ...this, and update parameter types.
2833 (frame_command): Rename to...
2834 (frame_command_core): ...this, and update parameter types.
2835 (class frame_command_helper): New class to wrap implementations of
2836 frame related sub-commands.
2837 (frame_apply_cmd_list): New static global.
2838 (frame_cmd_list): Make static.
2839 (select_frame_cmd_list): New global for sub-commands.
2840 (info_frame_cmd_list): New global for sub-commands.
2841 (_initialize_stack): Register sub-commands for 'frame',
2842 'select-frame', and 'info frame'. Update 'frame apply' commands
2843 to use frame_apply_cmd_list. Move function local static
2844 frame_apply_list to file static frame_apply_cmd_list for
2845 consistency.
2846 * stack.h (select_frame_command): Delete declarationn.
2847 (select_frame_for_mi): Declare new function.
2848
d354055e
AB
28492018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
2850
2851 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
2852 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
2853 and NOP.
2854
85392414
SM
28552018-09-26 Simon Marchi <simon.marchi@ericsson.com>
2856
2857 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
2858
896ee098
TT
28592018-09-26 Tom Tromey <tom@tromey.com>
2860
2861 * valops.c (auto_abandon): Remove dead code.
2862
57dbb3af
TT
28632018-09-26 Tom Tromey <tom@tromey.com>
2864
2865 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
2866
b5a9bfbe
TT
28672018-09-24 Tom Tromey <tom@tromey.com>
2868
2869 * common/pathstuff.c (get_standard_cache_dir): Make
2870 "xdg_cache_home" and "home" const.
2871 * top.c (init_history): Make "tmpenv" const.
2872 * main.c (get_init_files): Make "homedir" const.
2873
ae778caf
TT
28742018-09-23 Tom Tromey <tom@tromey.com>
2875
2876 PR python/18852:
2877 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
2878
2b4ad2fe
TT
28792018-09-23 Tom Tromey <tom@tromey.com>
2880
2881 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
2882 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
2883 * python/python-internal.h (gdbpy_handle_exception): Declare.
2884 * python/py-utils.c (gdbpy_handle_exception): New function.
2885
fd3ba736
TT
28862018-09-23 Tom Tromey <tom@tromey.com>
2887
2888 PR python/17284:
2889 * python/py-type.c (typy_template_argument): Check for negative
2890 argument number.
2891
39a24317
TT
28922018-09-23 Tom Tromey <tom@tromey.com>
2893
2894 PR python/14062:
2895 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
2896
f5769a2c
TT
28972018-09-23 Tom Tromey <tom@tromey.com>
2898
2899 PR python/18170:
2900 * python/py-value.c (valpy_int): Allow conversion from pointer
2901 type.
2902
1c1e54f6
TT
29032018-09-23 Tom Tromey <tom@tromey.com>
2904
2905 PR python/20126:
2906 * python/py-value.c (valpy_int): Respect type sign.
2907
fb4fa946
TT
29082018-09-23 Tom Tromey <tom@tromey.com>
2909
2910 PR python/18352;
2911 * python/py-value.c (valpy_float): Allow conversions from int or
2912 char.
2913 (valpy_int, valpy_long): Allow conversions from float.
2914
65773341
TT
29152018-09-23 Tom Tromey <tom@tromey.com>
2916
2917 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
2918 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
2919
1db88d22
RO
29202018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2921
2922 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
2923 __sighndlr.
2924 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
2925
a44294f5
JT
29262018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
2927
2928 * windows-nat.c (windows_nat_target::wait): Remove a spurious
2929 target_terminal::ours().
2930
0c0a40e0
SM
29312018-09-23 Simon Marchi <simon.marchi@ericsson.com>
2932
2933 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
2934 of vl to ULONGEST.
2935
4daf1902
YS
29362018-09-21 Yacov Simhony <ysimhony@gmail.com>
2937
2938 * breakpoint.c (update_inserted_breakpoint_locations): Remove
2939 redundant condition.
2940
c475f569
RO
29412018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2942
2943 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
2944
2945 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
2946 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
2947 * sol-thread.c (ps_pdmodel): Don't guard definition.
2948
2949 * procfs.c: Fix formatting.
2950
2951 * procfs.c (sysset_t_alloc): Remove.
2952 (create_procinfo): Use XNEW instead of sysset_t_alloc.
2953 (procfs_debug_inferior): Likewise.
2954 (procfs_set_exec_trap): Likewise.
2955 (proc_set_traced_sysentry): Don't allocate argp dynamically.
2956 (proc_set_traced_sysexit): Likewise.
2957
2958 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
2959 (dead_procinfo): Likewise.
2960 (proc_warn): Likewise.
2961 (proc_error): Likewise.
2962 (proc_get_LDT_entry): Likewise.
2963 (do_attach): Likewise.
2964 (procfs_target::pid_to_str): Likewise.
2965 (iterate_over_mappings): Likewise.
2966
2967 * procfs.c (create_procinfo): Fix ARI warning.
2968 (proc_get_status): Likewise.
2969 (proc_stop_process): Likewise.
2970 (proc_run_process): Likewise.
2971 (proc_kill): Likewise.
2972 (proc_get_LDT_entry): Likewise.
2973 (procfs_find_LDT_entry): Likewise.
2974 (proc_update_threads): Likewise.
2975 (proc_iterate_over_threads): Likewise.
2976 (do_attach): Likewise.
2977 (procfs_xfer_memory): Likewise.
2978 (invalidate_cache): Likewise.
2979 (procfs_target::resume): Likewise.
2980 (procfs_init_inferior): Likewise.
2981 (procfs_set_exec_trap): Likewise.
2982 (procfs_target::thread_alive): Likewise.
2983 (procfs_target::pid_to_exec_file): Likewise.
2984 (iterate_over_mappings): Likewise.
2985 (procfs_target::make_corefile_notes): Likewise.
2986 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
2987
2988 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
2989 (procfs_find_LDT_entry): Likewise.
2990 * sol-thread.c (ps_lgetLDT): Likewise.
2991
4206c05e
RO
29922018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2993
2994 PR tdep/17903
2995 * procfs.c (procfs_target): Declare pid_to_exec_file.
2996 (procfs_target::pid_to_exec_file): New.
2997
3d282ac3
RO
29982018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2999
3000 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
3001 renaming.
3002 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
3003 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
3004
8c93fae6
RO
30052018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3006
3007 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
3008 (supply_fpregset, fill_fpregset): Move ...
3009 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
3010 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
3011 Remove references to ioctl-based procfs.
3012 Include <sys/reg.h>.
3013 Remove PR_MODEL_NATIVE guards.
3014 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
3015 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
3016
79b32f4a
XR
30172018-09-19 Xavier Roirand <roirand@adacore.com>
3018
3019 PR gdb/20981:
3020 * solib-darwin.c (darwin_get_dyld_bfd): New function.
3021 (darwin_solib_get_all_image_info_addr_at_init): Update call.
3022 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
3023
07147793
JB
30242018-09-19 John Baldwin <jhb@FreeBSD.org>
3025
3026 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
3027 (fbsd_print_sockaddr_in6): Likewise.
3028
23be8da7
RB
30292018-09-19 Richard Bunt <richard.bunt@arm.com>
3030 Chris January <chris.january@arm.com>
3031
3032 * eval.c (skip_undetermined_arglist): Skip argument list helper.
3033 (evaluate_subexp_standard): Return a dummy type when
3034 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
3035 OP_F77_UNDETERMINED_ARGLIST case.
3036 * expression.h (enum noside): Update comment.
3037
7307a73a
RO
30382018-09-19 George Vasick <george.vasick@oracle.com>
3039
3040 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
3041
13db92d3
RO
30422018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
3043 April Chin <april.chin@oracle.com>
3044 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3045
3046 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
3047 uint_t lwpid_t.
3048 (create_procinfo): Print pids in /proc without leading zeros.
3049
3d50f170
SL
30502018-09-18 Sandra Loosemore <sandra@codesourcery.com>
3051
3052 * nios2-tdep.c (nios2_gcc_target_options): New.
3053 (nios2_gdb_arch_init): Install new hook.
3054
b567ca63
SM
30552018-09-18 Simon Marchi <simon.marchi@ericsson.com>
3056
3057 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
3058 New file.
3059 * update-gnulib.sh: Apply patch.
3060 * configure: Re-generate.
3061
73f1bd76
JB
30622018-09-18 John Baldwin <jhb@FreeBSD.org>
3063
3064 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
3065 description. Make "info proc" command descriptions more
3066 consistent.
3067
8b113111
JB
30682018-09-18 John Baldwin <jhb@FreeBSD.org>
3069
3070 * NEWS: Mention 'info proc files' command.
3071
7e69672e
JB
30722018-09-18 John Baldwin <jhb@FreeBSD.org>
3073
3074 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
3075 descriptors for IP_FILES and IP_ALL.
3076
57c2a98a
JB
30772018-09-18 John Baldwin <jhb@FreeBSD.org>
3078
3079 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
3080 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
3081 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
3082 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
3083 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
3084 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
3085 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
3086 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
3087 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
3088 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
3089 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
3090 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
3091 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
3092 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
3093 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
3094 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
3095 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
3096 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
3097 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
3098 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
3099 (struct fbsd_sockaddr_un): New types.
3100 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
3101 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
3102 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
3103 (fbsd_core_info_proc_files): New functions.
3104 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
3105 IP_ALL.
3106 * fbsd-tdep.h (fbsd_info_proc_files_header)
3107 (fbsd_info_proc_files_entry): New.
3108
e98ee8c4
JB
31092018-09-18 John Baldwin <jhb@FreeBSD.org>
3110
3111 * defs.h (enum info_proc_what) [IP_FILES]: New value.
3112 * infcmd.c (info_proc_cmd_files): New function.
3113 (_initialize_infcmd): Register 'info proc files' command.
3114
725e2999
JB
31152018-09-18 John Baldwin <jhb@FreeBSD.org>
3116
3117 * gnulib/aclocal-m4-deps.mk: Re-generate.
3118 * gnulib/aclocal.m4: Re-generate.
3119 * gnulib/config.in: Re-generate.
3120 * gnulib/configure: Re-generate.
3121 * gnulib/import/Makefile.am: Re-generate.
3122 * gnulib/import/Makefile.in: Re-generate.
3123 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3124 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3125 * gnulib/import/arpa_inet.in.h: New file.
3126 * gnulib/import/inet_ntop.c: New file.
3127 * gnulib/import/m4/arpa_inet_h.m4: New file.
3128 * gnulib/import/m4/inet_ntop.m4: New file.
3129 * gnulib/import/m4/netinet_in_h.m4: New file.
3130 * gnulib/import/m4/socklen.m4: New file.
3131 * gnulib/import/m4/sockpfaf.m4: New file.
3132 * gnulib/import/m4/stdalign.m4: New file.
3133 * gnulib/import/m4/sys_uio_h.m4: New file.
3134 * gnulib/import/netinet_in.in.h: New file.
3135 * gnulib/import/stdalign.in.h: New file.
3136 * gnulib/import/sys_socket.c: New file.
3137 * gnulib/import/sys_socket.in.h: New file.
3138 * gnulib/import/sys_uio.in.h: New file.
3139 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
3140 module.
3141
2afffa7f
JB
31422018-09-18 John Baldwin <jhb@FreeBSD.org>
3143
3144 * gnulib/aclocal-m4-deps.mk: New file.
3145 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
3146 deterministically.
3147
9f235e09
JB
31482018-09-18 John Baldwin <jhb@FreeBSD.org>
3149
3150 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
3151 KVE_PATH.
3152
40f03055
TT
31532018-09-18 Tom Tromey <tom@tromey.com>
3154
3155 * compile/compile-object-load.c (struct
3156 link_hash_table_cleanup_data): Add constructor and destructor.
3157 Use DISABLE_COPY_AND_ASSIGN.
3158 (~link_hash_table_cleanup_data): Rename from
3159 link_hash_table_free. Now a destructor.
3160 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
3161
c9e0a7e3
TT
31622018-09-18 Tom Tromey <tom@tromey.com>
3163
3164 * compile/compile-object-run.c (do_module_cleanup): Use delete.
3165 * compile/compile-object-load.c (struct munmap_list): Move to
3166 header file.
3167 (munmap_list::add): Rename from munmap_list_add; rewrite.
3168 (munmap_list::~munmap_list): Rename from munmap_list_free.
3169 (munmap_listp_free_cleanup): Remove.
3170 (compile_object_load): Update.
3171 * compile/compile-object-load.h (struct munmap_list): Move from
3172 compile-object-load.c. Rewrite.
3173
3ff2c72e
AH
31742018-09-18 Alan Hayward <alan.hayward@arm.com>
3175
3176 * aarch64-tdep.c (pass_in_v): Use register size.
3177 (aarch64_extract_return_value): Likewise.
3178 (aarch64_store_return_value): Likewise.
3179
206c1947
RO
31802018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3181
3182 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
3183 rlim_t.
3184
6eb5dbce
PW
31852018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3186
3187 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
3188 Fix short help line.
3189
ae292b3a
TT
31902018-09-17 Tom Tromey <tom@tromey.com>
3191
3192 PR python/20445:
3193 * configure: Rebuild.
3194 * configure.ac: Conditionally use -DNDEBUG for Python.
3195
da658607
TT
31962018-09-17 Tom Tromey <tom@tromey.com>
3197
3198 * configure: Rebuild.
3199 * configure.ac: Use gmp as a library dependency when checking for
3200 mpfr.
3201
d35da542
PA
32022018-09-17 Pedro Alves <palves@redhat.com>
3203
3204 * python/py-inferior.c (find_inferior_object): Delete.
3205
461464f2
SM
32062018-09-17 Simon Marchi <simon.marchi@ericsson.com>
3207
3208 * compile/compile-cplus-types.c
3209 (compile_cplus_instance::enter_scope): Don't use new_scope after
3210 std::move.
3211
e6cd1dc1
TT
32122018-09-17 Tom Tromey <tom@tromey.com>
3213
3214 * common/pathstuff.c (get_standard_cache_dir): Use
3215 ~/Library/Caches on macOS.
3216 * common/pathstuff.h (get_standard_cache_dir): Update comment.
3217
8588b356
SM
32182018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
3219
3220 PR python/23669
3221 * breakpoint.c (commands_cmd_element): New.
3222 (_initialize_breakpoint): Assign commands_cmd_element.
3223 * breakpoint.h (commands_cmd_element): New.
3224 * cli/cli-script.c (while_cmd_element, if_command,
3225 define_cmd_element): New.
3226 (command_name_equals): Remove.
3227 (process_next_line): Compare commands by pointer, not by name.
3228 (_initialize_cli_script): Assign the various cmd_list_element
3229 variables.
3230 * compile/compile.c (compile_cmd_element): New.
3231 (_initialize_compile): Assign compile_cmd_element.
3232 * compile/compile.h (compile_cmd_element): New.
3233 * guile/guile.c (guile_cmd_element): New.
3234 (install_gdb_commands): Assign guile_cmd_element.
3235 * guile/guile.h (guile_cmd_element): New.
3236 * python/python.c (python_cmd_element): New.
3237 (_initialize_python): Assign python_cmd_element.
3238 * python/python.h (python_cmd_element): New.
3239 * tracepoint.c (while_stepping_cmd_element): New.
3240 (_initialize_tracepoint): Assign while_stepping_cmd_element.
3241 * tracepoint.h (while_stepping_cmd_element): New.
3242
cb524840
TT
32432018-09-17 Tom Tromey <tom@tromey.com>
3244
3245 * infrun.c (save_infcall_suspend_state): Return
3246 infcall_suspend_state_up.
3247 (save_infcall_control_state): Return infcall_control_state_up.
3248 * inferior.h (save_infcall_suspend_state)
3249 (save_infcall_control_state): Declare later. Return unique
3250 pointers.
3251
2d844eaf
TT
32522018-09-17 Tom Tromey <tom@tromey.com>
3253
3254 * infrun.c (struct stop_context): Declare constructor,
3255 destructor, "changed" method.
3256 (stop_context::stop_context): Rename from save_stop_context.
3257 (stop_context::~stop_context): Rename from
3258 release_stop_context_cleanup.
3259 (normal_stop): Update.
3260 (stop_context::changed): Rename from stop_context_changed. Return
3261 bool.
3262
c7c4d3fa
TT
32632018-09-17 Tom Tromey <tom@tromey.com>
3264
3265 * inferior.h (struct infcall_suspend_state_deleter): New.
3266 (infcall_suspend_state_up): New typedef.
3267 (struct infcall_control_state_deleter): New.
3268 (infcall_control_state_up): New typedef.
3269 (make_cleanup_restore_infcall_suspend_state)
3270 (make_cleanup_restore_infcall_control_state): Don't declare.
3271 * infcall.c (call_function_by_hand_dummy): Update.
3272 * infrun.c (do_restore_infcall_suspend_state_cleanup)
3273 (make_cleanup_restore_infcall_suspend_state): Remove.
3274 (do_restore_infcall_control_state_cleanup)
3275 (make_cleanup_restore_infcall_control_state): Remove.
3276
ee841dd8
TT
32772018-09-17 Tom Tromey <tom@tromey.com>
3278
3279 * gdbthread.h (struct thread_control_state): Add initializer.
3280 (class thread_info) <control>: Remove initializer.
3281 * inferior.h (struct inferior_control_state): Add initializer.
3282 (class inferior) <control>: Remove initializer.
3283 (exit_inferior_1): Update.
3284 * infrun.c (struct infcall_control_state): Add constructors.
3285 (save_infcall_control_state): Use new.
3286 (restore_infcall_control_state, discard_infcall_control_state):
3287 Use delete.
3288
117f580a
TT
32892018-09-17 Tom Tromey <tom@tromey.com>
3290
3291 * infrun.c (struct infcall_suspend_state) <registers>: Now a
3292 unique_ptr.
3293 <siginfo_data>: Now a unique_xmalloc_ptr.
3294 (save_infcall_suspend_state, restore_infcall_suspend_state)
3295 (discard_infcall_suspend_state)
3296 (get_infcall_suspend_state_regcache): Update.
3297
dd848631
TT
32982018-09-17 Tom Tromey <tom@tromey.com>
3299
3300 * gdbthread.h (struct thread_suspend_state): Add initializers.
3301 (class thread_info) <suspend>: Remove initializer.
3302 * infrun.c (struct infcall_suspend_state): Add initializers.
3303 (save_infcall_suspend_state): Use new.
3304 (discard_infcall_suspend_state): Use delete.
3305
1a338907
TT
33062018-09-16 Tom Tromey <tom@tromey.com>
3307
3308 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
3309 Remove.
3310 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
3311 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
3312 (py_varobj_iter_new): Likewise.
3313 (py_varobj_get_iterator): Use gdbpy_ref.
3314
4a137fec
TT
33152018-09-16 Tom Tromey <tom@tromey.com>
3316
3317 * python/py-threadevent.c (py_get_event_thread): Simplify.
3318 * python/py-inferior.c (infpy_thread_from_thread_handle):
3319 Return immediately after calling thread_to_thread_object. Use
3320 Py_RETURN_NONE.
3321 (thread_to_thread_object): Set the exception on a NULL return.
3322
8ff03f0b
SM
33232018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3324
3325 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
3326
94c8b725
TT
33272018-09-16 Tom Tromey <tom@tromey.com>
3328
3329 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
3330 Remove.
3331
db1337cc
TT
33322018-09-16 Tom Tromey <tom@tromey.com>
3333
3334 * python/python-internal.h (thread_to_thread_object): Change
3335 return type.
3336 * python/py-inferior.c (thread_to_thread_object): Return a new
3337 reference.
3338 (infpy_thread_from_thread_handle): Update.
3339 * python/py-infthread.c (gdbpy_selected_thread): Update.
3340 * python/py-stopevent.c (create_stop_event_object): Update.
3341 * python/py-threadevent.c (py_get_event_thread): Return a new
3342 reference.
3343 (py_get_event_thread): Update.
3344 * python/py-event.h (py_get_event_thread): Change return type.
3345 * python/py-continueevent.c (create_continue_event_object):
3346 Update.
3347
0a9db5ad
TT
33482018-09-16 Tom Tromey <tom@tromey.com>
3349
3350 * python/py-progspace.c (pspy_get_objfiles): Update.
3351 * python/python-internal.h (objfile_to_objfile_object): Change
3352 return type.
3353 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3354 Update.
3355 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
3356 Update.
3357 * python/python.c (gdbpy_get_current_objfile): Update.
3358 (gdbpy_objfiles): Update.
3359 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
3360 Update.
3361 (objfile_to_objfile_object): Return a new reference.
3362 * python/py-symtab.c (stpy_get_objfile): Update.
3363 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
3364 Update.
3365
3c7aa307
TT
33662018-09-16 Tom Tromey <tom@tromey.com>
3367
3368 * python/py-inferior.c (infpy_get_progspace): Update.
3369 * python/python-internal.h (pspace_to_pspace_object): Change
3370 return type.
3371 * python/py-newobjfileevent.c
3372 (create_clear_objfiles_event_object): Update.
3373 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
3374 Update.
3375 * python/python.c (gdbpy_get_current_progspace): Update.
3376 (gdbpy_progspaces): Update.
3377 * python/py-progspace.c (pspace_to_pspace_object): Return a new
3378 reference.
3379 * python/py-objfile.c (objfpy_get_progspace): Update.
3380 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
3381 Update.
3382
8743a9cd
TT
33832018-09-16 Tom Tromey <tom@tromey.com>
3384
3385 * python/lib/gdb/__init__.py (current_progspace, objfiles)
3386 (solib_name, block_for_pc, find_pc_line): New functions.
3387 (execute_unwinders): Update.
3388 * python/py-block.c (gdbpy_block_for_pc): Remove.
3389 * python/py-inferior.c (infpy_get_progspace): New function.
3390 (inferior_object_getset) <progspace>: Add.
3391 * python/py-progspace.c (pspy_objfiles): Rewrite.
3392 (pspy_solib_name, pspy_block_for_pc)
3393 (pspy_find_pc_line, pspy_is_valid): New functions.
3394 (progspace_object_methods): Add entries for solib_name,
3395 block_for_pc, find_pc_line, is_valid.
3396 * python/python-internal.h (gdbpy_block_for_pc)
3397 (build_objfiles_list): Don't declare.
3398 * python/python.c: Don't include solib.h.
3399 (gdbpy_solib_name, gdbpy_find_pc_line)
3400 (gdbpy_get_current_progspace, build_objfiles_list)
3401 (gdbpy_objfiles): Remove.
3402 (GdbMethods) <current_progspace, objfiles, block_for_pc,
3403 solib_name, find_pc_line>: Remove entries.
3404
65e65158
TT
34052018-09-16 Tom Tromey <tom@tromey.com>
3406
3407 * top.c (new_ui_command): Use GNU style for metasyntactic
3408 variables.
3409 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
3410 variables.
3411 * maint.c (maintenance_translate_address): Remove "<>" around
3412 text.
3413 * interps.c (interpreter_exec_cmd): Use GNU style for
3414 metasyntactic variables.
3415 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
3416 metasyntactic variables.
3417 * tracepoint.c (tfind_range_command): Use GNU style for
3418 metasyntactic variables.
3419 (tfind_outside_command): Likewise.
3420 (_initialize_tracepoint): Likewise.
3421 * remote.c (extended_remote_target::create_inferior): Use GNU
3422 style for metasyntactic variables.
3423 * sparc64-tdep.c (adi_examine_command): Use GNU style for
3424 metasyntactic variables.
3425 (adi_assign_command): Likewise.
3426
f4bab6ff
TT
34272018-09-16 Tom Tromey <tom@tromey.com>
3428
3429 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
3430 metasyntactic variables. Print message if no disassembler options
3431 are available.
3432
cbaaa0ca
TT
34332018-09-15 Tom Tromey <tom@tromey.com>
3434
3435 * infcmd.c (get_inferior_args): Return const char *.
3436 * inferior.h (get_inferior_args): Return type now const.
3437 * linux-tdep.c (linux_fill_prpsinfo): Update.
3438 * procfs.c (procfs_target::make_corefile_notes): Update.
3439
a3a6aef4
TT
34402018-09-07 Tom Tromey <tom@tromey.com>
3441
3442 * python/python.c (execute_gdb_command): Call bpstat_do_actions
3443 inside the TRY.
3444
f70e088f
SL
34452018-09-14 Sandra Loosemore <sandra@codesourcery.com>
3446
3447 * nios2-tdep.c (nios2_type_align): New.
3448 (nios2_gdb_arch_init): Install type_align hook.
3449
2fabdf33
AB
34502018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3451
3452 * eval.c (fake_method::fake_method): Call xzalloc directly for a
3453 type that is neither object file owned, nor gdbarch owned.
3454 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
3455 gdbarch is non-NULL.
3456 (alloc_type_instance): Allocate non-objfile owned types on the
3457 gdbarch obstack.
3458 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
3459 using TYPE_ALLOC to ensure memory is allocated on the correct
3460 obstack.
3461 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
3462 obstack, or the gdbarch obstack.
3463 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
3464
b4b08fa2
TT
34652018-09-14 Tom Tromey <tom@tromey.com>
3466
3467 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
3468 block.
3469
87b240d4
TT
34702018-09-14 Tom Tromey <tom@tromey.com>
3471
3472 * nat/fork-inferior.c (get_startup_shell): Remove "static".
3473
7d221512
TT
34742018-09-13 Tom Tromey <tom@tromey.com>
3475
3476 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
3477 static.
3478
97e67fc6
TT
34792018-09-13 Tom Tromey <tom@tromey.com>
3480
3481 * exec.c (try_open_exec_file): Use std::string.
3482
803c08d0
TT
34832018-09-13 Tom Tromey <tom@tromey.com>
3484
3485 * utils.h (gdb_bfd_errmsg): Return std::string.
3486 * exec.c (exec_file_attach): Update.
3487 * compile/compile-object-load.c (compile_object_load): Update.
3488 * utils.c (gdb_bfd_errmsg): Return std::string.
3489
5b4cbbe3
TT
34902018-09-13 Tom Tromey <tom@tromey.com>
3491
3492 * procfs.c (struct procinfo_deleter): New.
3493 (procinfo_up): New typedef.
3494 (do_destroy_procinfo_cleanup): Remove.
3495 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
3496
db68fbe2
TT
34972018-09-13 Tom Tromey <tom@tromey.com>
3498
3499 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
3500
0ae1a321
SM
35012018-09-13 Simon Marchi <simon.marchi@ericsson.com>
35022018-09-13 Tom Tromey <tom@tromey.com>
3503
3504 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
3505 (pspy_get_objfiles): New function.
3506 (progspace_object_methods): New.
3507 (pspace_object_type): Add tp_methods callback.
3508 * python/python-internal.h (build_objfiles_list): New
3509 declaration.
3510 * python/python.c (build_objfiles_list): New function.
3511 (gdbpy_objfiles): Implement using build_objfiles_list.
3512 * NEWS: Mention the Progspace.objfiles method.
3513
a40bf0c2
SM
35142018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3515
3516 * python/py-inferior.c (infpy_get_progspace): New function.
3517 (inferior_object_getset): Add progspace property.
3518 * NEWS: Mention the new property.
3519
4a3fe98f
TT
35202018-09-13 Tom Tromey <tom@tromey.com>
3521
3522 PR rust/23650:
3523 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
3524
098b2108
TT
35252018-09-13 Tom Tromey <tom@tromey.com>
3526
3527 PR rust/23626:
3528 * rust-lang.c (rust_enum_variant): Now static.
3529 (rust_empty_enum_p): New function.
3530 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
3531 Handle empty enum.
3532
1256af7d
SM
35332018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3534
3535 * python/py-inferior.c (infpy_repr): New.
3536 (inferior_object_type): Register infpy_repr.
3537 * python/py-objfile.c (objfpy_repr): New.
3538 (objfile_object_type): Register objfpy_repr.
3539
f117a62c
JB
35402018-09-12 John Baldwin <jhb@FreeBSD.org>
3541
3542 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
3543
88f22c34
JB
35442018-09-12 John Baldwin <jhb@FreeBSD.org>
3545
3546 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
3547 typo.
3548
3c025cfe
SDJ
35492018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
3550
3551 * common/common-utils.c: Don't include '<sys/stat.h>'.
3552 (is_regular_file): Move to...
3553 * common/filestuff.c (is_regular_file): ... here.
3554 * common/common-utils.h (is_regular_file): Move to...
3555 * common/filestuff.h (is_regular_file): ... here.
3556
3e68067f
SM
35572018-09-12 Simon Marchi <simon.marchi@ericsson.com>
3558
3559 * skip.c (debug_skip): New variable.
3560 (skiplist_entry::do_skip_file_p): Add debug output.
3561 (skiplist_entry::do_skip_gfile_p): Likewise.
3562 (skiplist_entry::skip_function_p): Likewise.
3563 (_initialize_step_skip): Create debug command.
3564 * NEWS: Mention set/show debug skip.
3565
d6be54ef
XR
35662018-09-11 Xavier Roirand <roirand@adacore.com>
3567
3568 * darwin-nat.c (should_disable_startup_with_shell):
3569 New function.
3570 (darwin_nat_target::create_inferior): Add call.
3571
de1ec836
XR
35722018-09-11 Xavier Roirand <roirand@adacore.com>
3573
3574 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
3575 inf_port, msg_state>: Initialize.
3576 (struct darwin_thread_info) <signaled, single_step>: Change
3577 type and initialize.
3578 (struct darwin_thread_info) <event>: Initialize.
3579
e2fc52e7
SDJ
35802018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3581
3582 PR gdb/23555
3583 PR gdb/23558
3584 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
3585 guesses.
3586
5e8754f9
SDJ
35872018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3588
3589 Revert:
3590 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
3591
3592 PR gdb/23555
3593 PR gdb/23558
3594 * gnulib/aclocal.m4: Regenerate.
3595 * gnulib/config.in: Regenerate.
3596 * gnulib/configure: Regenerate.
3597 * gnulib/import/Makefile.am: Update.
3598 * gnulib/import/Makefile.in: Update.
3599 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3600 * gnulib/import/_Noreturn.h: ... this.
3601 * gnulib/import/alloca.in.h: Update.
3602 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3603 * gnulib/import/arg-nonnull.h: ... this.
3604 * gnulib/import/assure.h: Update.
3605 * gnulib/import/at-func.c: Update.
3606 * gnulib/import/basename-lgpl.c: Update.
3607 * gnulib/import/extra/snippet/c++defs.h: Rename to...
3608 * gnulib/import/c++defs.h: ... this.
3609 * gnulib/import/canonicalize-lgpl.c: Update.
3610 * gnulib/import/cdefs.h: Update.
3611 * gnulib/import/chdir-long.c: Update.
3612 * gnulib/import/chdir-long.h: Update.
3613 * gnulib/import/cloexec.c: Update.
3614 * gnulib/import/cloexec.h: Update.
3615 * gnulib/import/close.c: Update.
3616 * gnulib/import/closedir.c: Update.
3617 * gnulib/import/config.charset: Update.
3618 * gnulib/import/dirent-private.h: Update.
3619 * gnulib/import/dirent.in.h: Update.
3620 * gnulib/import/dirfd.c: Update.
3621 * gnulib/import/dirname-lgpl.c: Update.
3622 * gnulib/import/dirname.h: Update.
3623 * gnulib/import/dosname.h: Update.
3624 * gnulib/import/dup-safer-flag.c: Update.
3625 * gnulib/import/dup-safer.c: Update.
3626 * gnulib/import/dup.c: Update.
3627 * gnulib/import/dup2.c: Update.
3628 * gnulib/import/errno.in.h: Update.
3629 * gnulib/import/error.c: Update.
3630 * gnulib/import/error.h: Update.
3631 * gnulib/import/exitfail.c: Update.
3632 * gnulib/import/exitfail.h: Update.
3633 * gnulib/import/extra/update-copyright: Update.
3634 * gnulib/import/fchdir.c: Update.
3635 * gnulib/import/fcntl.c: Update.
3636 * gnulib/import/fcntl.in.h: Update.
3637 * gnulib/import/fd-hook.c: Update.
3638 * gnulib/import/fd-hook.h: Update.
3639 * gnulib/import/fd-safer-flag.c: Update.
3640 * gnulib/import/fd-safer.c: Update.
3641 * gnulib/import/fdopendir.c: Update.
3642 * gnulib/import/filename.h: Update.
3643 * gnulib/import/filenamecat-lgpl.c: Update.
3644 * gnulib/import/filenamecat.h: Update.
3645 * gnulib/import/flexmember.h: Update.
3646 * gnulib/import/float+.h: Update.
3647 * gnulib/import/float.c: Update.
3648 * gnulib/import/float.in.h: Update.
3649 * gnulib/import/fnmatch.c: Update.
3650 * gnulib/import/fnmatch.in.h: Update.
3651 * gnulib/import/fnmatch_loop.c: Update.
3652 * gnulib/import/fpucw.h: Update.
3653 * gnulib/import/frexp.c: Update.
3654 * gnulib/import/frexpl.c: Update.
3655 * gnulib/import/fstat.c: Update.
3656 * gnulib/import/fstatat.c: Update.
3657 * gnulib/import/getcwd-lgpl.c: Update.
3658 * gnulib/import/getcwd.c: Update.
3659 * gnulib/import/getdtablesize.c: Update.
3660 * gnulib/import/getlogin_r.c: Update.
3661 * gnulib/import/getprogname.c: Update.
3662 * gnulib/import/getprogname.h: Update.
3663 * gnulib/import/gettext.h: Update.
3664 * gnulib/import/gettimeofday.c: Update.
3665 * gnulib/import/glob-libc.h: Update.
3666 * gnulib/import/glob.c: Update.
3667 * gnulib/import/glob.in.h: Update.
3668 * gnulib/import/glob_internal.h: Update.
3669 * gnulib/import/glob_pattern_p.c: Update.
3670 * gnulib/import/globfree.c: Update.
3671 * gnulib/import/hard-locale.c: Update.
3672 * gnulib/import/hard-locale.h: Update.
3673 * gnulib/import/intprops.h: Update.
3674 * gnulib/import/inttypes.in.h: Update.
3675 * gnulib/import/isnan.c: Update.
3676 * gnulib/import/isnand-nolibm.h: Update.
3677 * gnulib/import/isnand.c: Update.
3678 * gnulib/import/isnanl-nolibm.h: Update.
3679 * gnulib/import/isnanl.c: Update.
3680 * gnulib/import/itold.c: Update.
3681 * gnulib/import/libc-config.h: Update.
3682 * gnulib/import/limits.in.h: Update.
3683 * gnulib/import/localcharset.c: Update.
3684 * gnulib/import/localcharset.h: Update.
3685 * gnulib/import/localtime-buffer.c: Update.
3686 * gnulib/import/localtime-buffer.h: Update.
3687 * gnulib/import/lstat.c: Update.
3688 * gnulib/import/m4/00gnulib.m4: Update.
3689 * gnulib/import/m4/__inline.m4: Update.
3690 * gnulib/import/m4/absolute-header.m4: Update.
3691 * gnulib/import/m4/alloca.m4: Update.
3692 * gnulib/import/m4/builtin-expect.m4: Update.
3693 * gnulib/import/m4/canonicalize.m4: Update.
3694 * gnulib/import/m4/chdir-long.m4: Update.
3695 * gnulib/import/m4/close.m4: Update.
3696 * gnulib/import/m4/closedir.m4: Update.
3697 * gnulib/import/m4/configmake.m4: Update.
3698 * gnulib/import/m4/d-ino.m4: Update.
3699 * gnulib/import/m4/d-type.m4: Update.
3700 * gnulib/import/m4/dirent_h.m4: Update.
3701 * gnulib/import/m4/dirfd.m4: Update.
3702 * gnulib/import/m4/dirname.m4: Update.
3703 * gnulib/import/m4/double-slash-root.m4: Update.
3704 * gnulib/import/m4/dup.m4: Update.
3705 * gnulib/import/m4/dup2.m4: Update.
3706 * gnulib/import/m4/eealloc.m4: Update.
3707 * gnulib/import/m4/environ.m4: Update.
3708 * gnulib/import/m4/errno_h.m4: Update.
3709 * gnulib/import/m4/error.m4: Update.
3710 * gnulib/import/m4/exponentd.m4: Update.
3711 * gnulib/import/m4/exponentl.m4: Update.
3712 * gnulib/import/m4/extensions.m4: Update.
3713 * gnulib/import/m4/extern-inline.m4: Update.
3714 * gnulib/import/m4/fchdir.m4: Update.
3715 * gnulib/import/m4/fcntl-o.m4: Update.
3716 * gnulib/import/m4/fcntl.m4: Update.
3717 * gnulib/import/m4/fcntl_h.m4: Update.
3718 * gnulib/import/m4/fdopendir.m4: Update.
3719 * gnulib/import/m4/filenamecat.m4: Update.
3720 * gnulib/import/m4/flexmember.m4: Update.
3721 * gnulib/import/m4/float_h.m4: Update.
3722 * gnulib/import/m4/fnmatch.m4: Update.
3723 * gnulib/import/m4/fnmatch_h.m4: Update.
3724 * gnulib/import/m4/fpieee.m4: Update.
3725 * gnulib/import/m4/frexp.m4: Update.
3726 * gnulib/import/m4/frexpl.m4: Update.
3727 * gnulib/import/m4/fstat.m4: Update.
3728 * gnulib/import/m4/fstatat.m4: Update.
3729 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3730 * gnulib/import/m4/getcwd-path-max.m4: Update.
3731 * gnulib/import/m4/getcwd.m4: Update.
3732 * gnulib/import/m4/getdtablesize.m4: Update.
3733 * gnulib/import/m4/getlogin.m4: Update.
3734 * gnulib/import/m4/getlogin_r.m4: Update.
3735 * gnulib/import/m4/getpagesize.m4: Update.
3736 * gnulib/import/m4/getprogname.m4: Update.
3737 * gnulib/import/m4/gettimeofday.m4: Update.
3738 * gnulib/import/m4/glibc21.m4: Update.
3739 * gnulib/import/m4/glob.m4: Update.
3740 * gnulib/import/m4/glob_h.m4: Update.
3741 * gnulib/import/m4/gnulib-cache.m4: Update.
3742 * gnulib/import/m4/gnulib-common.m4: Update.
3743 * gnulib/import/m4/gnulib-comp.m4: Update.
3744 * gnulib/import/m4/gnulib-tool.m4: Update.
3745 * gnulib/import/m4/hard-locale.m4: Update.
3746 * gnulib/import/m4/include_next.m4: Update.
3747 * gnulib/import/m4/inttypes-pri.m4: Update.
3748 * gnulib/import/m4/inttypes.m4: Update.
3749 * gnulib/import/m4/isnand.m4: Update.
3750 * gnulib/import/m4/isnanl.m4: Update.
3751 * gnulib/import/m4/largefile.m4: Update.
3752 * gnulib/import/m4/limits-h.m4: Update.
3753 * gnulib/import/m4/localcharset.m4: Update.
3754 * gnulib/import/m4/locale-fr.m4: Update.
3755 * gnulib/import/m4/locale-ja.m4: Update.
3756 * gnulib/import/m4/locale-zh.m4: Update.
3757 * gnulib/import/m4/localtime-buffer.m4: Update.
3758 * gnulib/import/m4/longlong.m4: Update.
3759 * gnulib/import/m4/lstat.m4: Update.
3760 * gnulib/import/m4/malloc.m4: Update.
3761 * gnulib/import/m4/malloca.m4: Update.
3762 * gnulib/import/m4/math_h.m4: Update.
3763 * gnulib/import/m4/mbrtowc.m4: Update.
3764 * gnulib/import/m4/mbsinit.m4: Update.
3765 * gnulib/import/m4/mbsrtowcs.m4: Update.
3766 * gnulib/import/m4/mbstate_t.m4: Update.
3767 * gnulib/import/m4/memchr.m4: Update.
3768 * gnulib/import/m4/memmem.m4: Update.
3769 * gnulib/import/m4/mempcpy.m4: Update.
3770 * gnulib/import/m4/memrchr.m4: Update.
3771 * gnulib/import/m4/mkdir.m4: Update.
3772 * gnulib/import/m4/mkstemp.m4: Update.
3773 * gnulib/import/m4/mmap-anon.m4: Update.
3774 * gnulib/import/m4/mode_t.m4: Update.
3775 * gnulib/import/m4/msvc-inval.m4: Update.
3776 * gnulib/import/m4/msvc-nothrow.m4: Update.
3777 * gnulib/import/m4/multiarch.m4: Update.
3778 * gnulib/import/m4/nocrash.m4: Update.
3779 * gnulib/import/m4/off_t.m4: Update.
3780 * gnulib/import/m4/onceonly.m4: Update.
3781 * gnulib/import/m4/open-cloexec.m4: Update.
3782 * gnulib/import/m4/open.m4: Update.
3783 * gnulib/import/m4/openat.m4: Update.
3784 * gnulib/import/m4/opendir.m4: Update.
3785 * gnulib/import/m4/pathmax.m4: Update.
3786 * gnulib/import/m4/rawmemchr.m4: Update.
3787 * gnulib/import/m4/readdir.m4: Update.
3788 * gnulib/import/m4/readlink.m4: Update.
3789 * gnulib/import/m4/realloc.m4: Update.
3790 * gnulib/import/m4/rename.m4: Update.
3791 * gnulib/import/m4/rewinddir.m4: Update.
3792 * gnulib/import/m4/rmdir.m4: Update.
3793 * gnulib/import/m4/save-cwd.m4: Update.
3794 * gnulib/import/m4/secure_getenv.m4: Update.
3795 * gnulib/import/m4/setenv.m4: Update.
3796 * gnulib/import/m4/signal_h.m4: Update.
3797 * gnulib/import/m4/ssize_t.m4: Update.
3798 * gnulib/import/m4/stat-time.m4: Update.
3799 * gnulib/import/m4/stat.m4: Update.
3800 * gnulib/import/m4/std-gnu11.m4: Update.
3801 * gnulib/import/m4/stdbool.m4: Update.
3802 * gnulib/import/m4/stddef_h.m4: Update.
3803 * gnulib/import/m4/stdint.m4: Update.
3804 * gnulib/import/m4/stdio_h.m4: Update.
3805 * gnulib/import/m4/stdlib_h.m4: Update.
3806 * gnulib/import/m4/strchrnul.m4: Update.
3807 * gnulib/import/m4/strdup.m4: Update.
3808 * gnulib/import/m4/strerror.m4: Update.
3809 * gnulib/import/m4/string_h.m4: Update.
3810 * gnulib/import/m4/strstr.m4: Update.
3811 * gnulib/import/m4/strtok_r.m4: Update.
3812 * gnulib/import/m4/sys_socket_h.m4: Update.
3813 * gnulib/import/m4/sys_stat_h.m4: Update.
3814 * gnulib/import/m4/sys_time_h.m4: Update.
3815 * gnulib/import/m4/sys_types_h.m4: Update.
3816 * gnulib/import/m4/tempname.m4: Update.
3817 * gnulib/import/m4/time_h.m4: Update.
3818 * gnulib/import/m4/unistd-safer.m4: Update.
3819 * gnulib/import/m4/unistd_h.m4: Update.
3820 * gnulib/import/m4/warn-on-use.m4: Update.
3821 * gnulib/import/m4/wchar_h.m4: Update.
3822 * gnulib/import/m4/wchar_t.m4: Update.
3823 * gnulib/import/m4/wctype_h.m4: Update.
3824 * gnulib/import/m4/wint_t.m4: Update.
3825 * gnulib/import/malloc.c: Update.
3826 * gnulib/import/malloc/scratch_buffer.h: Update.
3827 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3828 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3829 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3830 * gnulib/import/malloca.c: Update.
3831 * gnulib/import/malloca.h: Update.
3832 * gnulib/import/malloca.valgrind: Update.
3833 * gnulib/import/math.in.h: Update.
3834 * gnulib/import/mbrtowc.c: Update.
3835 * gnulib/import/mbsinit.c: Update.
3836 * gnulib/import/mbsrtowcs-impl.h: Update.
3837 * gnulib/import/mbsrtowcs-state.c: Update.
3838 * gnulib/import/mbsrtowcs.c: Update.
3839 * gnulib/import/memchr.c: Update.
3840 * gnulib/import/memmem.c: Update.
3841 * gnulib/import/mempcpy.c: Update.
3842 * gnulib/import/memrchr.c: Update.
3843 * gnulib/import/mkdir.c: Update.
3844 * gnulib/import/mkstemp.c: Update.
3845 * gnulib/import/msvc-inval.c: Update.
3846 * gnulib/import/msvc-inval.h: Update.
3847 * gnulib/import/msvc-nothrow.c: Update.
3848 * gnulib/import/msvc-nothrow.h: Update.
3849 * gnulib/import/open.c: Update.
3850 * gnulib/import/openat-die.c: Update.
3851 * gnulib/import/openat-priv.h: Update.
3852 * gnulib/import/openat-proc.c: Update.
3853 * gnulib/import/openat.c: Update.
3854 * gnulib/import/openat.h: Update.
3855 * gnulib/import/opendir.c: Update.
3856 * gnulib/import/pathmax.h: Update.
3857 * gnulib/import/pipe-safer.c: Update.
3858 * gnulib/import/rawmemchr.c: Update.
3859 * gnulib/import/readdir.c: Update.
3860 * gnulib/import/readlink.c: Update.
3861 * gnulib/import/realloc.c: Update.
3862 * gnulib/import/ref-add.sin: Update.
3863 * gnulib/import/ref-del.sin: Update.
3864 * gnulib/import/rename.c: Update.
3865 * gnulib/import/rewinddir.c: Update.
3866 * gnulib/import/rmdir.c: Update.
3867 * gnulib/import/same-inode.h: Update.
3868 * gnulib/import/save-cwd.c: Update.
3869 * gnulib/import/save-cwd.h: Update.
3870 * gnulib/import/scratch_buffer.h: Update.
3871 * gnulib/import/secure_getenv.c: Update.
3872 * gnulib/import/setenv.c: Update.
3873 * gnulib/import/signal.in.h: Update.
3874 * gnulib/import/stat-time.c: Update.
3875 * gnulib/import/stat-time.h: Update.
3876 * gnulib/import/stat-w32.c: Update.
3877 * gnulib/import/stat-w32.h: Update.
3878 * gnulib/import/stat.c: Update.
3879 * gnulib/import/stdbool.in.h: Update.
3880 * gnulib/import/stddef.in.h: Update.
3881 * gnulib/import/stdint.in.h: Update.
3882 * gnulib/import/stdio.in.h: Update.
3883 * gnulib/import/stdlib.in.h: Update.
3884 * gnulib/import/str-two-way.h: Update.
3885 * gnulib/import/strchrnul.c: Update.
3886 * gnulib/import/strdup.c: Update.
3887 * gnulib/import/streq.h: Update.
3888 * gnulib/import/strerror-override.c: Update.
3889 * gnulib/import/strerror-override.h: Update.
3890 * gnulib/import/strerror.c: Update.
3891 * gnulib/import/string.in.h: Update.
3892 * gnulib/import/stripslash.c: Update.
3893 * gnulib/import/strnlen1.c: Update.
3894 * gnulib/import/strnlen1.h: Update.
3895 * gnulib/import/strstr.c: Update.
3896 * gnulib/import/strtok_r.c: Update.
3897 * gnulib/import/sys_stat.in.h: Update.
3898 * gnulib/import/sys_time.in.h: Update.
3899 * gnulib/import/sys_types.in.h: Update.
3900 * gnulib/import/tempname.c: Update.
3901 * gnulib/import/tempname.h: Update.
3902 * gnulib/import/time.in.h: Update.
3903 * gnulib/import/unistd--.h: Update.
3904 * gnulib/import/unistd-safer.h: Update.
3905 * gnulib/import/unistd.in.h: Update.
3906 * gnulib/import/unsetenv.c: Update.
3907 * gnulib/import/verify.h: Update.
3908 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3909 * gnulib/import/wchar.in.h: Update.
3910 * gnulib/import/wctype.in.h: Update.
3911 * gnulib/import/xalloc-oversized.h: Update.
3912 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3913 "53e2c179f26a890fa6685af4b6c1397ee370433b".
3914
8ec23583
SM
39152018-09-10 Simon Marchi <simon.marchi@ericsson.com>
3916
3917 * record-btrace.c (get_thread_current_frame): Remove
3918 old_inferior_ptid.
3919
1f5d1570
JG
39202018-09-10 Jerome Guitton <guitton@adacore.com>
3921
3922 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
3923 with check_tag to 1 if and only if the type is tagged and the
3924 component being searched cannot been found in the current
3925 view. Otherwise, always call ada_to_fixed_type with
3926 check_tag to 0.
3927
d91e9ea8
XR
39282018-09-10 Xavier Roirand <roirand@adacore.com>
3929
3930 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
3931 declaration.
3932 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
3933 * ada-varobj.c (ada_varobj_get_number_of_children,
3934 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
3935
cc330e39
XR
39362018-09-10 Xavier Roirand <roirand@adacore.com>
3937
3938 * ada-valprint.c (ada_value_print): Use type instead of
3939 enclosing type.
3940
b9c50e9a
XR
39412018-09-10 Xavier Roirand <roirand@adacore.com>
3942
3943 * ada-lang.c (ada_value_subscript): Handle case when parameter is
3944 an array of access to unconstrained array.
3945
736ade86
XR
39462018-09-10 Xavier Roirand <roirand@adacore.com>
3947
3948 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
3949 (ada_check_typedef): Use it.
3950
2963898f
XR
39512018-09-10 Xavier Roirand <roirand@adacore.com>
3952
3953 * ada-varobj.c (ada_varobj_describe_struct_child)
3954 (ada_varobj_describe_child): Handle union case like struct one.
3955
a154931e
TT
39562018-09-10 Tom Tromey <tom@tromey.com>
3957
3958 PR python/18380:
3959 * python/python.c (_initialize_python): Make example in "python"
3960 help work in Python 3.
3961
23c4651c
EZ
39622018-09-10 Eli Zaretskii <eliz@gnu.org>
3963
3964 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
3965 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
3966 $(EXEEXT) to the script, as it is not a program.
3967
a5c5eda7
SM
39682018-09-09 Simon Marchi <simon.marchi@ericsson.com>
3969
3970 * python/py-prettyprint.c (pretty_print_one_value): Return
3971 gdbpy_ref<>.
3972 (print_string_repr): Adjust.
3973 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
3974 * python/python-internal.h (apply_varobj_pretty_printer): Return
3975 gdbpy_ref<>.
3976 * varobj.c (varobj_value_get_print_value): Adjust.
3977
332cf4c9
TT
39782018-09-08 Tom Tromey <tom@tromey.com>
3979
3980 PR python/16047:
3981 * python/py-prettyprint.c (pretty_print_one_value): Check for
3982 to_string method.
3983
424da6cf
JB
39842018-09-08 Joel Brobecker <brobecker@adacore.com>
3985
3986 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
3987 replace_operator_with_call.
3988
95f39a5b
JB
39892018-09-08 Joel Brobecker <brobecker@adacore.com>
3990
3991 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
3992
16b9eb7b
JB
39932018-09-08 Joel Brobecker <brobecker@adacore.com>
3994
3995 * ada-typeprint.c (print_range): Print the bounds using TYPE
3996 rather than its TYPE_TARGET_TYPE.
3997
d8ce9127
JB
39982018-09-08 Joel Brobecker <brobecker@adacore.com>
3999
4000 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
4001 call to ada_to_fixed_value_create.
4002
0d81f350
JG
40032018-09-08 Jerome Guitton <guitton@adacore.com>
4004
4005 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
4006
57aff202
JB
40072018-09-08 Joel Brobecker <brobecker@adacore.com>
4008
4009 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
4010 by calls to error.
4011
fb44b1a7
JB
40122018-09-08 Joel Brobecker <brobecker@adacore.com>
4013
4014 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
4015 Move update of loop variable "fi".
4016
2a62dfa9
JB
40172018-09-08 Joel Brobecker <brobecker@adacore.com>
4018
4019 * ada-lang.c (value_assign_to_component): In the case of
4020 big-endian targets, extract the bits of the given VAL
4021 using an src_offset of zero if container is not a scalar.
4022
739ab2e9
SS
40232018-09-06 Simon Ser <contact@emersion.fr>
4024
4025 PR gdb/23105
4026 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
4027 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
4028 * fbsd-tdep.c (fbsd_make_note_desc): New.
4029 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
4030 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
4031 * target.h (enum target_object) Add FreeBSD-specific
4032 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
4033
d82b3862
SM
40342018-09-06 Simon Marchi <simon.marchi@ericsson.com>
4035
4036 * compile/compile-c.h (generate_c_for_variable_locations):
4037 Change reference to pointer.
4038 * compile/compile-c-support.c (compile_program) <compute>:
4039 Likewise.
4040 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
4041 (generate_c_for_for_one_variable): Likewise
4042 (generate_c_for_variable_locations): Likewise
4043 * compile/compile-c-types.c (compile_c_instance::convert_type):
4044 Likewise
4045 * compile/compile-cplus-symbols.c (convert_one_symbol):
4046 std::move the scope passed to enter_scope.
4047 * compile/compile-cplus-types.c
4048 (compile_cplus_instance::enter_scope): Make parameter
4049 rvalue-reference.
4050 (compile_cplus_instance::new_scope): Change reference to
4051 pointer.
4052 (compile_cplus_instance::convert_type): Likewise
4053 (compile_cplus_convert_typedef): std::move the scope passed to
4054 enter_scope.
4055 (compile_cplus_convert_struct_or_union): Likewise.
4056 (compile_cplus_convert_enum): Likewise.
4057 (compile_cplus_convert_namespace): Likewise.
4058 * compile/compile-cplus.h (compile_cplus_instance)
4059 <enter_scope>: Make parameter rvalue-reference.
4060 * compile/compile-internal.h (compile_instance)
4061 <get_cached_type>: Likewise
4062 * compile/compile-loc2c.c (push): Likewise
4063 (pushf): Likewise
4064 (unary): Likewise
4065 (binary): Likewise
4066 (print_label): Likewise
4067 (pushf_register_address): Likewise
4068 (pushf_register): Likewise
4069 (do_compile_dwarf_expr_to_c): Likewise
4070 (compile_dwarf_expr_to_c): Likewise
4071 (compile_dwarf_bounds_to_c): Likewise
4072 * compile/compile.c (compile_instance::get_cached_type):
4073 Likewise
4074 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
4075 (compile_dwarf_bounds_to_c): Likewise
4076 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
4077 (dwarf2_compile_property_to_c): Likewise
4078 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
4079 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
4080 Likewise
4081
cc5a5ae5
SM
40822018-09-06 Simon Marchi <simon.marchi@ericsson.com>
4083
4084 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
4085 * tui/tui-data.c (init_content_element): Don't initialize it.
4086
137be540
SM
40872018-09-06 Simon Marchi <simon.marchi@ericsson.com>
4088
4089 * tui/tui-data.h (struct tui_win_info)
4090 <detail::opaque>: Remove.
4091 * tui/tui-data.c (init_win_info): Remove assignment.
4092
f1628857
TT
40932018-09-05 Tom Tromey <tom@tromey.com>
4094
4095 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
4096 -Wformat-nonliteral.
4097 * target-float.c (host_float_ops<T>::to_string)
4098 (host_float_ops<T>::from_string): Use
4099 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
4100 * configure: Rebuild.
4101
af39b1c2
SM
41022018-09-05 Simon Marchi <simon.marchi@ericsson.com>
4103
4104 * printcmd.c (printf_c_string): Use
4105 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
4106 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
4107
081bca4d
TT
41082018-09-05 Tom Tromey <tom@tromey.com>
4109
4110 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
4111
e4a62c65
TV
41122018-09-05 Tom de Vries <tdevries@suse.de>
4113
4114 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
4115 with resolve_abstract_p == true.
4116 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
4117 defaulting to false. Propagate resolve_abstract_p to
4118 dwarf2_fetch_die_loc_sect_off.
4119 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
4120 parameter, defaulting to false.
4121 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
4122 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
4123 parameter.
4124 * dwarf2read.h (struct die_info): Forward-declare.
4125 (die_info_ptr): New typedef.
4126 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
4127
2b69821e
JB
41282018-09-05 Joel Brobecker <brobecker@adacore.com>
4129
4130 GDB 8.2 released.
4131
fcc9b044
SDJ
41322018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
4133 Pedro Alves <palves@redhat.com>
4134
4135 * gnulib/Makefile.in (aclocal_m4_deps): Move to
4136 "aclocal-m4-deps.mk". Include file here.
4137 $(srcdir)/aclocal.m4: Add "configure.ac".
4138 * gnulib/aclocal-m4-deps.mk: New file.
4139 * gnulib/update-gnulib.sh: Automatically update
4140 "aclocal-m4-deps.mk".
4141
d53d5436
TT
41422018-09-04 Tom Tromey <tom@tromey.com>
4143
4144 * configure: Rebuild.
4145 * configure.ac: Remove multi-ice code.
4146
8dc9fd87
TT
41472018-09-04 Tom Tromey <tom@tromey.com>
4148
4149 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
4150 (ada-exp.o): Update.
4151
3322c5d9
TT
41522018-09-04 Tom Tromey <tom@tromey.com>
4153
4154 * Makefile.in (printcmd.o, target-float.o): Remove.
4155 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
4156
ba2bf2aa
TT
41572018-09-04 Tom Tromey <tom@tromey.com>
4158
4159 * gnulib/Makefile.in: Remove obsolete comment.
4160 * Makefile.in: Remove obsolete comment.
4161
6c9d681b
AB
41622018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
4163
4164 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
4165 line with '+'.
4166
78a3b0fa
AB
41672018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4168
4169 * riscv-tdep.c: Add 'prologue-value.h' include.
4170 (struct riscv_unwind_cache): New struct.
4171 (riscv_debug_unwinder): New global.
4172 (riscv_scan_prologue): Update arguments, capture register details
4173 from prologue scan.
4174 (riscv_skip_prologue): Reformat arguments line, move end of
4175 prologue calculation into riscv_scan_prologue.
4176 (riscv_frame_cache): Update return type, create
4177 riscv_unwind_cache, scan the prologue, and fill in remaining cache
4178 details.
4179 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
4180 (riscv_frame_prev_register): Use the trad_frame within the
4181 riscv_unwind_cache.
4182 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
4183 flag.
4184
23e60e7a
AB
41852018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4186
4187 * trad-frame.h (trad_frame_set_realreg): Declare.
4188 (trad_frame_set_addr): Declare.
4189 * trad-frame.c (trad_frame_set_realreg): Define new function.
4190 (trad_frame_set_addr): Define new function.
4191 (trad_frame_set_reg_realreg): Use new function.
4192 (trad_frame_set_reg_addr): Use new function.
4193
5c889512
KS
41942018-09-01 Keith Seitz <keiths@redhat.com>
4195
4196 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
4197 pulongest instead of "%lld".
4198 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
4199 ATTRIBUTE_UNUSED.
4200
c8c81635
TT
42012018-08-31 Tom Tromey <tom@tromey.com>
4202
4203 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
4204 variant part type.
4205
0c888588
PA
42062018-08-31 Pedro Alves <palves@redhat.com>
4207
4208 * gdbarch.h: Regenerate.
4209
7ea65f08
PA
42102018-08-31 Pedro Alves <palves@redhat.com>
4211
4212 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
4213 * target.h (Hardware watchpoint interfaces): Describe
4214 continuable/steppable/non-steppable watchpoints.
4215 * gdbarch.h, gdbarch.c: Regenerate.
4216
7eb65faf
PA
42172018-08-31 Pedro Alves <palves@redhat.com>
4218
4219 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
4220 Delete.
4221 * s390-linux-nat.c
4222 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
4223 * target.h (target_ops::have_continuable_watchpoint): Delete.
4224 (target_have_continuable_watchpoint): Delete.
4225 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
4226 * target-delegates.c: Regenerate.
4227
dab999b1
SDJ
42282018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4229
4230 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
4231 the files present in "gnulib/import/m4/".
4232
ff3a05b3
AB
42332018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
4234
4235 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
4236 c.sw, c.swsp, and c.sdsp.
4237
0b3f9efc
AB
42382018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
4239
4240 * riscv-tdep.c (struct riscv_inferior_data): Delete.
4241 (riscv_read_misa_reg): Don't cache value read into inferior data.
4242 (riscv_new_inferior_data): Delete.
4243 (riscv_inferior_data_cleanup): Delete.
4244 (riscv_inferior_data): Delete.
4245 (riscv_invalidate_inferior_data): Delete.
4246 (_initialize_riscv_tdep): Remove initialisation of inferior data.
4247
a0dc02a6
SM
42482018-08-30 Simon Marchi <simon.marchi@ericsson.com>
4249
4250 * compile/compile-cplus-types.c
4251 (compile_cplus_instance::leave_scope): Take the address of scope
4252 object.
4253 (compile_cplus_instance::convert_qualified_base): Compare quals
4254 to 0.
4255
fdad7678
KS
42562018-08-30 Keith Seitz <keiths@redhat.com>
4257
4258 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
4259 Use "%s" and host_address_to_string instead of "%p" in printf.
4260
078a0207
KS
42612018-08-29 Keith Seitz <keiths@redhat.com>
4262
4263 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
4264 and compile-cplus-types.c.
4265 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
4266 * c-lang.c (cplus_language_defn): Set C++ compile functions.
4267 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
4268 Declare.
4269 * compile/compile-c-support.c: Include compile-cplus.h.
4270 (load_libcompile): Templatize.
4271 (get_compile_context): "New" function.
4272 (c_get_compile_context): Use get_compile_context.
4273 (cplus_get_compile_context): New function.
4274 (cplus_push_user_expression, cplus_pop_user_expression)
4275 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
4276 (cplus_compute_program): Define new structs/functions.
4277 * compile/compile-cplus-symmbols.c: New file.
4278 * compile/compile-cplus-types.c: New file.
4279 * compile/compile-cplus.h: New file.
4280 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
4281 Declare.
4282 * compile/compile-object-load.c (get_out_value_type): Use
4283 strncmp_iw when comparing symbol names.
4284 (compile_object_load): Add mst_bss and mst_data.
4285 * compile/compile.c (_initialize_compile): Remove
4286 -Wno-implicit-function-declaration from `compile_args'.
4287 * compile/gcc-cp-plugin.h: New file.
4288 * NEWS: Mention C++ compile support and new debug options.
4289
fcaad03c
KS
42902018-08-29 Keith Seitz <keiths@redhat.com>
4291
4292 * linespec.c (collect_info::add_symbol): Make virtual.
4293 (struct symbol_searcher_collect_info): New struct.
4294 (symbol_searcher::find_all_symbols): New method.
4295 * symtab.h (class symbol_searcher): New class.
4296
7e41c8db
KS
42972018-08-29 Keith Seitz <keiths@redhat.com>
4298
4299 * linespec.c (struct linespec) <function_symbols, label_symbols>:
4300 Change to vector of block_symbol. Update all users.
4301 (struct collect_info) <symbols>: Likewise.
4302 (collect_info::add_symbol): Take block_symbol as argument.
4303 Update all callers.
4304 (decode_compound_collector) <m_symbols>: Change type to vector
4305 of block_symbol. Update all users.
4306 (decode_compound_collector::operator ()): Change parameter type
4307 to block_symbol.
4308 (find_method, find_function_symbols, find_linespec_symbols)
4309 (find_label_symbols_in_block, find_label_symbols): Change symbol
4310 vectors to block_symbol vectors.
4311 * symtab.h (symbol_found_callback_ftype): Change parameter type to
4312 block_symbol.
4313
63e8c3da
KS
43142018-08-29 Keith Seitz <keiths@redhat.com>
4315
4316 * linespec.c (symbolp): Remove typedef and VEC definitions.
4317 (bound_minimal_symbol_d): Likewise.
4318
4dedf84d
KS
43192018-08-29 Keith Seitz <keiths@redhat.com>
4320
4321 * linespec.c (decode_compound_collector::decode_compound_collector):
4322 Remove initialization for `m_symtabs'.
4323 (decode_compound_collector::release_symbols): Change return type
4324 to std::vector. Update all callers.
4325 (class decode_compound_collector) <m_symbols>: Change type to
4326 std::vector.
4327 (lookup_prefix_sym): Change return type to std::vector. Update all
4328 callers.
4329 (compare_symbols): Remove.
4330 (std_compare_symbols): Rename to `compare_symbols'.
4331 (find_method): Change `sym_classes' parameter to std::vector.
4332 Update all callers. Use std::sort to sort sym_classes.
4333 (find_linespec_symbols): Remove cleanup.
4334
c2a031c5
KS
43352018-08-29 Keith Seitz <keiths@redhat.com>
4336
4337 * linespec.c (struct linespec) <minimal_symbols>: Change type to
4338 std::vector. Update all users.
4339 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
4340 (struct collect_info) <minimal_symbols>: Likewise.
4341 (compare_msymbols): Return bool. Change parameters to const
4342 bound_minimal_symbol references.
4343 (find_method, find_function_symbols, find_linespec_symbols): Change
4344 `minsyms' parameter to std::vector. Update all callers.
4345
3553eadc
KS
43462018-08-29 Keith Seitz <keiths@redhat.com>
4347
4348 * linespec.c (struct linespec) <label_symbols>: Change type to
4349 std::vector. Update all users.
4350 (find_label_symbols_in_block): Change `result' parameter to
4351 std::vector. Update all callers.
4352 (find_label_symbols): Return std::vector. Update all callers.
4353
7243d011
KS
43542018-08-29 Keith Seitz <keiths@redhat.com>
4355
4356 * linespec.c (struct linespec) <function_symbols>: Change type to
4357 std::vector. Update all users.
4358 (struct collect_info) <function_symbols>: Likewise.
4359 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
4360 (std_compare_symbols): New function.
4361 (find_method, find_function_symbols, find_linespec_symbols)
4362 (find_label_symbols_in_block): Change `symbols' parameter to
4363 std::vector. Update all callers.
4364 (find_label_symbols): Likewise for `function_symbols' and
4365 `label_funcs_ret'.
4366
2a908241
KS
43672018-08-29 Keith Seitz <keiths@redhat.com>
4368
4369 * linespec.c (symtab_vector_up): Define.
4370 (struct linespec) <file_symtabs>: Change type to std::vector *.
4371 Update all uses.
4372 (struct collect_info) <file_symtabs>: Likewise.
4373 (collect_symtabs_from_filename): Return symtab_vector_up.
4374 Update all callers.
4375 (decode_objc): Remove cleanup.
4376 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
4377 (symtab_collector::release_symtabs): Return symtab_vector_up.
4378 Update all callers.
4379 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
4380 Update all users.
4381 (collect_symtabs_from_filename, symtabs_from_filename): Return
4382 symtab_vector_up. Update all callers.
4383
f6c4e3e8
TT
43842018-08-29 Tom Tromey <tom@tromey.com>
4385
4386 * csky-tdep.c (csky_analyze_prologue): Use
4387 core_addr_to_string_nz.
4388
73c13fe6
TT
43892018-08-29 Tom Tromey <tom@tromey.com>
4390
4391 * windows-nat.c (struct xlate_exception) <them>: Change type to
4392 DWORD.
4393 (xlate): Fix formatting. Remove last entry.
4394 (struct xlate_exception, xlate): Comment out.
4395 (windows_nat_target::resume): Use ranged for.
4396
4d3928d7
JW
43972018-08-29 Jim Wilson <jimw@sifive.com>
4398
4399 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
4400 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
4401 of NT_PRFPREG.
4402 (riscv_linux_nat_target::store_registers): Likewise.
4403
7a6dbc2f
SDJ
44042018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
4405
4406 PR gdb/23555
4407 PR gdb/23558
4408 * gnulib/aclocal.m4: Regenerate.
4409 * gnulib/config.in: Regenerate.
4410 * gnulib/configure: Regenerate.
4411 * gnulib/import/Makefile.am: Update.
4412 * gnulib/import/Makefile.in: Update.
4413 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
4414 * gnulib/import/_Noreturn.h: ... this.
4415 * gnulib/import/alloca.in.h: Update.
4416 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
4417 * gnulib/import/arg-nonnull.h: ... this.
4418 * gnulib/import/assure.h: Update.
4419 * gnulib/import/at-func.c: Update.
4420 * gnulib/import/basename-lgpl.c: Update.
4421 * gnulib/import/extra/snippet/c++defs.h: Rename to...
4422 * gnulib/import/c++defs.h: ... this.
4423 * gnulib/import/canonicalize-lgpl.c: Update.
4424 * gnulib/import/cdefs.h: Update.
4425 * gnulib/import/chdir-long.c: Update.
4426 * gnulib/import/chdir-long.h: Update.
4427 * gnulib/import/cloexec.c: Update.
4428 * gnulib/import/cloexec.h: Update.
4429 * gnulib/import/close.c: Update.
4430 * gnulib/import/closedir.c: Update.
4431 * gnulib/import/config.charset: Update.
4432 * gnulib/import/dirent-private.h: Update.
4433 * gnulib/import/dirent.in.h: Update.
4434 * gnulib/import/dirfd.c: Update.
4435 * gnulib/import/dirname-lgpl.c: Update.
4436 * gnulib/import/dirname.h: Update.
4437 * gnulib/import/dosname.h: Update.
4438 * gnulib/import/dup-safer-flag.c: Update.
4439 * gnulib/import/dup-safer.c: Update.
4440 * gnulib/import/dup.c: Update.
4441 * gnulib/import/dup2.c: Update.
4442 * gnulib/import/errno.in.h: Update.
4443 * gnulib/import/error.c: Update.
4444 * gnulib/import/error.h: Update.
4445 * gnulib/import/exitfail.c: Update.
4446 * gnulib/import/exitfail.h: Update.
4447 * gnulib/import/extra/update-copyright: Update.
4448 * gnulib/import/fchdir.c: Update.
4449 * gnulib/import/fcntl.c: Update.
4450 * gnulib/import/fcntl.in.h: Update.
4451 * gnulib/import/fd-hook.c: Update.
4452 * gnulib/import/fd-hook.h: Update.
4453 * gnulib/import/fd-safer-flag.c: Update.
4454 * gnulib/import/fd-safer.c: Update.
4455 * gnulib/import/fdopendir.c: Update.
4456 * gnulib/import/filename.h: Update.
4457 * gnulib/import/filenamecat-lgpl.c: Update.
4458 * gnulib/import/filenamecat.h: Update.
4459 * gnulib/import/flexmember.h: Update.
4460 * gnulib/import/float+.h: Update.
4461 * gnulib/import/float.c: Update.
4462 * gnulib/import/float.in.h: Update.
4463 * gnulib/import/fnmatch.c: Update.
4464 * gnulib/import/fnmatch.in.h: Update.
4465 * gnulib/import/fnmatch_loop.c: Update.
4466 * gnulib/import/fpucw.h: Update.
4467 * gnulib/import/frexp.c: Update.
4468 * gnulib/import/frexpl.c: Update.
4469 * gnulib/import/fstat.c: Update.
4470 * gnulib/import/fstatat.c: Update.
4471 * gnulib/import/getcwd-lgpl.c: Update.
4472 * gnulib/import/getcwd.c: Update.
4473 * gnulib/import/getdtablesize.c: Update.
4474 * gnulib/import/getlogin_r.c: Update.
4475 * gnulib/import/getprogname.c: Update.
4476 * gnulib/import/getprogname.h: Update.
4477 * gnulib/import/gettext.h: Update.
4478 * gnulib/import/gettimeofday.c: Update.
4479 * gnulib/import/glob-libc.h: Update.
4480 * gnulib/import/glob.c: Update.
4481 * gnulib/import/glob.in.h: Update.
4482 * gnulib/import/glob_internal.h: Update.
4483 * gnulib/import/glob_pattern_p.c: Update.
4484 * gnulib/import/globfree.c: Update.
4485 * gnulib/import/hard-locale.c: Update.
4486 * gnulib/import/hard-locale.h: Update.
4487 * gnulib/import/intprops.h: Update.
4488 * gnulib/import/inttypes.in.h: Update.
4489 * gnulib/import/isnan.c: Update.
4490 * gnulib/import/isnand-nolibm.h: Update.
4491 * gnulib/import/isnand.c: Update.
4492 * gnulib/import/isnanl-nolibm.h: Update.
4493 * gnulib/import/isnanl.c: Update.
4494 * gnulib/import/itold.c: Update.
4495 * gnulib/import/libc-config.h: Update.
4496 * gnulib/import/limits.in.h: Update.
4497 * gnulib/import/localcharset.c: Update.
4498 * gnulib/import/localcharset.h: Update.
4499 * gnulib/import/localtime-buffer.c: Update.
4500 * gnulib/import/localtime-buffer.h: Update.
4501 * gnulib/import/lstat.c: Update.
4502 * gnulib/import/m4/00gnulib.m4: Update.
4503 * gnulib/import/m4/__inline.m4: Update.
4504 * gnulib/import/m4/absolute-header.m4: Update.
4505 * gnulib/import/m4/alloca.m4: Update.
4506 * gnulib/import/m4/builtin-expect.m4: Update.
4507 * gnulib/import/m4/canonicalize.m4: Update.
4508 * gnulib/import/m4/chdir-long.m4: Update.
4509 * gnulib/import/m4/close.m4: Update.
4510 * gnulib/import/m4/closedir.m4: Update.
4511 * gnulib/import/m4/configmake.m4: Update.
4512 * gnulib/import/m4/d-ino.m4: Update.
4513 * gnulib/import/m4/d-type.m4: Update.
4514 * gnulib/import/m4/dirent_h.m4: Update.
4515 * gnulib/import/m4/dirfd.m4: Update.
4516 * gnulib/import/m4/dirname.m4: Update.
4517 * gnulib/import/m4/double-slash-root.m4: Update.
4518 * gnulib/import/m4/dup.m4: Update.
4519 * gnulib/import/m4/dup2.m4: Update.
4520 * gnulib/import/m4/eealloc.m4: Update.
4521 * gnulib/import/m4/environ.m4: Update.
4522 * gnulib/import/m4/errno_h.m4: Update.
4523 * gnulib/import/m4/error.m4: Update.
4524 * gnulib/import/m4/exponentd.m4: Update.
4525 * gnulib/import/m4/exponentl.m4: Update.
4526 * gnulib/import/m4/extensions.m4: Update.
4527 * gnulib/import/m4/extern-inline.m4: Update.
4528 * gnulib/import/m4/fchdir.m4: Update.
4529 * gnulib/import/m4/fcntl-o.m4: Update.
4530 * gnulib/import/m4/fcntl.m4: Update.
4531 * gnulib/import/m4/fcntl_h.m4: Update.
4532 * gnulib/import/m4/fdopendir.m4: Update.
4533 * gnulib/import/m4/filenamecat.m4: Update.
4534 * gnulib/import/m4/flexmember.m4: Update.
4535 * gnulib/import/m4/float_h.m4: Update.
4536 * gnulib/import/m4/fnmatch.m4: Update.
4537 * gnulib/import/m4/fnmatch_h.m4: Update.
4538 * gnulib/import/m4/fpieee.m4: Update.
4539 * gnulib/import/m4/frexp.m4: Update.
4540 * gnulib/import/m4/frexpl.m4: Update.
4541 * gnulib/import/m4/fstat.m4: Update.
4542 * gnulib/import/m4/fstatat.m4: Update.
4543 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
4544 * gnulib/import/m4/getcwd-path-max.m4: Update.
4545 * gnulib/import/m4/getcwd.m4: Update.
4546 * gnulib/import/m4/getdtablesize.m4: Update.
4547 * gnulib/import/m4/getlogin.m4: Update.
4548 * gnulib/import/m4/getlogin_r.m4: Update.
4549 * gnulib/import/m4/getpagesize.m4: Update.
4550 * gnulib/import/m4/getprogname.m4: Update.
4551 * gnulib/import/m4/gettimeofday.m4: Update.
4552 * gnulib/import/m4/glibc21.m4: Update.
4553 * gnulib/import/m4/glob.m4: Update.
4554 * gnulib/import/m4/glob_h.m4: Update.
4555 * gnulib/import/m4/gnulib-cache.m4: Update.
4556 * gnulib/import/m4/gnulib-common.m4: Update.
4557 * gnulib/import/m4/gnulib-comp.m4: Update.
4558 * gnulib/import/m4/gnulib-tool.m4: Update.
4559 * gnulib/import/m4/hard-locale.m4: Update.
4560 * gnulib/import/m4/include_next.m4: Update.
4561 * gnulib/import/m4/inttypes-pri.m4: Update.
4562 * gnulib/import/m4/inttypes.m4: Update.
4563 * gnulib/import/m4/isnand.m4: Update.
4564 * gnulib/import/m4/isnanl.m4: Update.
4565 * gnulib/import/m4/largefile.m4: Update.
4566 * gnulib/import/m4/limits-h.m4: Update.
4567 * gnulib/import/m4/localcharset.m4: Update.
4568 * gnulib/import/m4/locale-fr.m4: Update.
4569 * gnulib/import/m4/locale-ja.m4: Update.
4570 * gnulib/import/m4/locale-zh.m4: Update.
4571 * gnulib/import/m4/localtime-buffer.m4: Update.
4572 * gnulib/import/m4/longlong.m4: Update.
4573 * gnulib/import/m4/lstat.m4: Update.
4574 * gnulib/import/m4/malloc.m4: Update.
4575 * gnulib/import/m4/malloca.m4: Update.
4576 * gnulib/import/m4/math_h.m4: Update.
4577 * gnulib/import/m4/mbrtowc.m4: Update.
4578 * gnulib/import/m4/mbsinit.m4: Update.
4579 * gnulib/import/m4/mbsrtowcs.m4: Update.
4580 * gnulib/import/m4/mbstate_t.m4: Update.
4581 * gnulib/import/m4/memchr.m4: Update.
4582 * gnulib/import/m4/memmem.m4: Update.
4583 * gnulib/import/m4/mempcpy.m4: Update.
4584 * gnulib/import/m4/memrchr.m4: Update.
4585 * gnulib/import/m4/mkdir.m4: Update.
4586 * gnulib/import/m4/mkstemp.m4: Update.
4587 * gnulib/import/m4/mmap-anon.m4: Update.
4588 * gnulib/import/m4/mode_t.m4: Update.
4589 * gnulib/import/m4/msvc-inval.m4: Update.
4590 * gnulib/import/m4/msvc-nothrow.m4: Update.
4591 * gnulib/import/m4/multiarch.m4: Update.
4592 * gnulib/import/m4/nocrash.m4: Update.
4593 * gnulib/import/m4/off_t.m4: Update.
4594 * gnulib/import/m4/onceonly.m4: Update.
4595 * gnulib/import/m4/open-cloexec.m4: Update.
4596 * gnulib/import/m4/open.m4: Update.
4597 * gnulib/import/m4/openat.m4: Update.
4598 * gnulib/import/m4/opendir.m4: Update.
4599 * gnulib/import/m4/pathmax.m4: Update.
4600 * gnulib/import/m4/rawmemchr.m4: Update.
4601 * gnulib/import/m4/readdir.m4: Update.
4602 * gnulib/import/m4/readlink.m4: Update.
4603 * gnulib/import/m4/realloc.m4: Update.
4604 * gnulib/import/m4/rename.m4: Update.
4605 * gnulib/import/m4/rewinddir.m4: Update.
4606 * gnulib/import/m4/rmdir.m4: Update.
4607 * gnulib/import/m4/save-cwd.m4: Update.
4608 * gnulib/import/m4/secure_getenv.m4: Update.
4609 * gnulib/import/m4/setenv.m4: Update.
4610 * gnulib/import/m4/signal_h.m4: Update.
4611 * gnulib/import/m4/ssize_t.m4: Update.
4612 * gnulib/import/m4/stat-time.m4: Update.
4613 * gnulib/import/m4/stat.m4: Update.
4614 * gnulib/import/m4/std-gnu11.m4: Update.
4615 * gnulib/import/m4/stdbool.m4: Update.
4616 * gnulib/import/m4/stddef_h.m4: Update.
4617 * gnulib/import/m4/stdint.m4: Update.
4618 * gnulib/import/m4/stdio_h.m4: Update.
4619 * gnulib/import/m4/stdlib_h.m4: Update.
4620 * gnulib/import/m4/strchrnul.m4: Update.
4621 * gnulib/import/m4/strdup.m4: Update.
4622 * gnulib/import/m4/strerror.m4: Update.
4623 * gnulib/import/m4/string_h.m4: Update.
4624 * gnulib/import/m4/strstr.m4: Update.
4625 * gnulib/import/m4/strtok_r.m4: Update.
4626 * gnulib/import/m4/sys_socket_h.m4: Update.
4627 * gnulib/import/m4/sys_stat_h.m4: Update.
4628 * gnulib/import/m4/sys_time_h.m4: Update.
4629 * gnulib/import/m4/sys_types_h.m4: Update.
4630 * gnulib/import/m4/tempname.m4: Update.
4631 * gnulib/import/m4/time_h.m4: Update.
4632 * gnulib/import/m4/unistd-safer.m4: Update.
4633 * gnulib/import/m4/unistd_h.m4: Update.
4634 * gnulib/import/m4/warn-on-use.m4: Update.
4635 * gnulib/import/m4/wchar_h.m4: Update.
4636 * gnulib/import/m4/wchar_t.m4: Update.
4637 * gnulib/import/m4/wctype_h.m4: Update.
4638 * gnulib/import/m4/wint_t.m4: Update.
4639 * gnulib/import/malloc.c: Update.
4640 * gnulib/import/malloc/scratch_buffer.h: Update.
4641 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
4642 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
4643 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
4644 * gnulib/import/malloca.c: Update.
4645 * gnulib/import/malloca.h: Update.
4646 * gnulib/import/malloca.valgrind: Update.
4647 * gnulib/import/math.in.h: Update.
4648 * gnulib/import/mbrtowc.c: Update.
4649 * gnulib/import/mbsinit.c: Update.
4650 * gnulib/import/mbsrtowcs-impl.h: Update.
4651 * gnulib/import/mbsrtowcs-state.c: Update.
4652 * gnulib/import/mbsrtowcs.c: Update.
4653 * gnulib/import/memchr.c: Update.
4654 * gnulib/import/memmem.c: Update.
4655 * gnulib/import/mempcpy.c: Update.
4656 * gnulib/import/memrchr.c: Update.
4657 * gnulib/import/mkdir.c: Update.
4658 * gnulib/import/mkstemp.c: Update.
4659 * gnulib/import/msvc-inval.c: Update.
4660 * gnulib/import/msvc-inval.h: Update.
4661 * gnulib/import/msvc-nothrow.c: Update.
4662 * gnulib/import/msvc-nothrow.h: Update.
4663 * gnulib/import/open.c: Update.
4664 * gnulib/import/openat-die.c: Update.
4665 * gnulib/import/openat-priv.h: Update.
4666 * gnulib/import/openat-proc.c: Update.
4667 * gnulib/import/openat.c: Update.
4668 * gnulib/import/openat.h: Update.
4669 * gnulib/import/opendir.c: Update.
4670 * gnulib/import/pathmax.h: Update.
4671 * gnulib/import/pipe-safer.c: Update.
4672 * gnulib/import/rawmemchr.c: Update.
4673 * gnulib/import/readdir.c: Update.
4674 * gnulib/import/readlink.c: Update.
4675 * gnulib/import/realloc.c: Update.
4676 * gnulib/import/ref-add.sin: Update.
4677 * gnulib/import/ref-del.sin: Update.
4678 * gnulib/import/rename.c: Update.
4679 * gnulib/import/rewinddir.c: Update.
4680 * gnulib/import/rmdir.c: Update.
4681 * gnulib/import/same-inode.h: Update.
4682 * gnulib/import/save-cwd.c: Update.
4683 * gnulib/import/save-cwd.h: Update.
4684 * gnulib/import/scratch_buffer.h: Update.
4685 * gnulib/import/secure_getenv.c: Update.
4686 * gnulib/import/setenv.c: Update.
4687 * gnulib/import/signal.in.h: Update.
4688 * gnulib/import/stat-time.c: Update.
4689 * gnulib/import/stat-time.h: Update.
4690 * gnulib/import/stat-w32.c: Update.
4691 * gnulib/import/stat-w32.h: Update.
4692 * gnulib/import/stat.c: Update.
4693 * gnulib/import/stdbool.in.h: Update.
4694 * gnulib/import/stddef.in.h: Update.
4695 * gnulib/import/stdint.in.h: Update.
4696 * gnulib/import/stdio.in.h: Update.
4697 * gnulib/import/stdlib.in.h: Update.
4698 * gnulib/import/str-two-way.h: Update.
4699 * gnulib/import/strchrnul.c: Update.
4700 * gnulib/import/strdup.c: Update.
4701 * gnulib/import/streq.h: Update.
4702 * gnulib/import/strerror-override.c: Update.
4703 * gnulib/import/strerror-override.h: Update.
4704 * gnulib/import/strerror.c: Update.
4705 * gnulib/import/string.in.h: Update.
4706 * gnulib/import/stripslash.c: Update.
4707 * gnulib/import/strnlen1.c: Update.
4708 * gnulib/import/strnlen1.h: Update.
4709 * gnulib/import/strstr.c: Update.
4710 * gnulib/import/strtok_r.c: Update.
4711 * gnulib/import/sys_stat.in.h: Update.
4712 * gnulib/import/sys_time.in.h: Update.
4713 * gnulib/import/sys_types.in.h: Update.
4714 * gnulib/import/tempname.c: Update.
4715 * gnulib/import/tempname.h: Update.
4716 * gnulib/import/time.in.h: Update.
4717 * gnulib/import/unistd--.h: Update.
4718 * gnulib/import/unistd-safer.h: Update.
4719 * gnulib/import/unistd.in.h: Update.
4720 * gnulib/import/unsetenv.c: Update.
4721 * gnulib/import/verify.h: Update.
4722 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4723 * gnulib/import/wchar.in.h: Update.
4724 * gnulib/import/wctype.in.h: Update.
4725 * gnulib/import/xalloc-oversized.h: Update.
4726 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4727 "53e2c179f26a890fa6685af4b6c1397ee370433b".
4728
b0f492b9
GB
47292018-08-16 Gary Benson <gbenson@redhat.com>
4730
4731 PR gdb/13000:
4732 * gdb/main.c (captured_main_1): Exit with nonzero status
4733 in batch mode if the last command to be executed failed.
4734 * NEWS: Mention the above.
4735
2362e7f7
SM
47362018-08-29 Simon Marchi <simon.marchi@ericsson.com>
4737
4738 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
4739 end of warning message.
4740
4f4aedeb
AH
47412018-08-29 Alan Hayward <alan.hayward@arm.com>
4742
4743 PR gdb/22943:
4744 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
4745 (aarch64_extract_return_value): Use
4746 aapcs_is_vfp_call_or_return_candidate.
4747 (aarch64_return_in_memory): Likewise.
4748 (aarch64_store_return_value): Likewise.
4749
0e745c60
AH
47502018-08-29 Alan Hayward <alan.hayward@arm.com>
4751
4752 * aarch64-tdep.c
4753 (aapcs_is_vfp_call_or_return_candidate): Make static
4754 (pass_in_v_or_stack): Remove function.
4755 (pass_in_v_vfp_candidate): New function.
4756 (aarch64_push_dummy_call): Check for float register candidates.
4757
ea92689a
AH
47582018-08-29 Alan Hayward <alan.hayward@arm.com>
4759
4760 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
4761 (aapcs_is_vfp_call_or_return_candidate_1): New function.
4762 (aapcs_is_vfp_call_or_return_candidate): Likewise.
4763
ad202fcc
SM
47642018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4765
4766 PR build/23399
4767 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
4768 (struct ipa_sym_addresses): Rename to...
4769 (struct ipa_sym_addresses_common): ... this.
4770 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
4771
5fe3f3e4
TT
47722018-08-28 Tom Tromey <tom@tromey.com>
4773
4774 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4775 (token_fifo): Now a std::vector.
4776 (yylex, c_parse): Update.
4777 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4778 (token_fifo): Now a std::vector.
4779 (yylex, d_parse): Update.
4780 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4781 (token_fifo): Now a std::vector.
4782 (yylex, go_parse): Update.
4783
858d8004
SM
47842018-08-28 Simon Marchi <simon.marchi@ericsson.com>
4785
4786 * parser-defs.h (struct type_stack) <elements>: Change type to
4787 std::vector<union type_stack_elt>.
4788 <depth, size>: Remove.
4789 * parse.c (parse_exp_in_context_1): Adjust.
4790 (type_stack_reserve): Remove.
4791 (check_type_stack_depth): Remove.
4792 (insert_into_type_stack): Adjust to std::vector.
4793 (insert_type): Likewise.
4794 (push_type): Likewise.
4795 (push_type_int): Likewise.
4796 (insert_type_address_space): Likewise.
4797 (pop_type): Likewise.
4798 (pop_type_int): Likewise.
4799 (pop_typelist): Likewise.
4800 (pop_type_stack): Likewise.
4801 (append_type_stack): Likewise.
4802 (push_type_stack): Likewise.
4803 (get_type_stack): Likewise.
4804 (type_stack_cleanup): Likewise.
4805 (push_typelist): Likewise.
4806 (follow_types): Likewise.
4807 (_initialize_parse): Likewise.
4808
416a69af
HAQ
48092018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
4810
4811 * NEWS: Mention csky target.
4812
9d24df82
HAQ
48132018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
4814 Hafiz Abid Qadeer <abidh@codesourcery.com>
4815 Don Breazeal <donb@codesourcery.com>
4816
4817 * csky-linux-tdep.c: New file.
4818 * csky-tdep.c: Likewise.
4819 * csky-tdep.h: Likewise.
4820 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
4821 csky-tdep.o.
4822 (HFILES_NO_SRCDIR): Add csky-tdep.h.
4823 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
4824 * configure.tgt: Add csky support.
4825
3bf9c013
JV
48262018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
4827
4828 * python/py-framefilter.c (py_print_frame): Print frame architecture
4829 when printing on an MI output.
4830
d3d8724a
TT
48312018-08-27 Tom Tromey <tom@tromey.com>
4832
4833 PR build/23087:
4834 * configure: Rebuild.
4835 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
4836
1885053b
TT
48372018-08-27 Tom Tromey <tom@tromey.com>
4838
4839 * aarch64-linux-tdep.c
4840 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
4841 casts to int.
4842
8406672e
TT
48432018-08-27 Tom Tromey <tom@tromey.com>
4844
4845 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
4846 unsigned.
4847 (ppc64_standard_linkage1, ppc64_standard_linkage2)
4848 (ppc64_standard_linkage3, ppc64_standard_linkage4)
4849 (ppc64_standard_linkage5, ppc64_standard_linkage6)
4850 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
4851 unsigned.
4852
ec40cf90
TT
48532018-08-27 Tom Tromey <tom@tromey.com>
4854
4855 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
4856 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
4857
7bc02706
TT
48582018-08-27 Tom Tromey <tom@tromey.com>
4859
4860 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
4861 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
4862 ULONGEST_MAX.
4863 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
4864 ULONGEST_MAX.
4865 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
4866 ULONGEST_MAX.
4867 * sparc-linux-tdep.c (sparc32_linux_sigframe)
4868 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
4869 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
4870 ULONGEST_MAX.
4871 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
4872 (ppc64_linux_sigaction_tramp_frame)
4873 (ppc32_linux_sighandler_tramp_frame)
4874 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4875 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
4876 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
4877 * mn10300-linux-tdep.c (am33_linux_sigframe)
4878 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
4879 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
4880 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4881 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4882 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
4883 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
4884 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
4885 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
4886 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
4887 * microblaze-linux-tdep.c
4888 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4889 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
4890 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
4891 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
4892 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
4893 * common/common-types.h (ULONGEST_MAX): New define.
4894 (CORE_ADDR_MAX): Fix formatting.
4895 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
4896 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
4897 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
4898 (arm_linux_rt_sigreturn_tramp_frame)
4899 (arm_eabi_linux_sigreturn_tramp_frame)
4900 (arm_eabi_linux_rt_sigreturn_tramp_frame)
4901 (thumb2_eabi_linux_sigreturn_tramp_frame)
4902 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
4903 (arm_linux_restart_syscall_tramp_frame)
4904 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
4905 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
4906 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
4907 ULONGEST_MAX.
4908 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
4909
70ab8ccd
TT
49102018-08-27 Tom Tromey <tom@tromey.com>
4911
4912 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
4913 CORE_ADDR_MAX.
4914 * mips-tdep.c (mips_deal_with_atomic_sequence)
4915 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
4916 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
4917 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
4918 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
4919 CORE_ADDR_MAX.
4920 * aarch64-tdep.c (aarch64_software_single_step): Use
4921 CORE_ADDR_MAX.
4922
896a7aa6
TT
49232018-08-27 Tom Tromey <tom@tromey.com>
4924
4925 * linespec.c (complete_linespec_component): Add cast to "char".
4926 * completer.c (completion_tracker::build_completion_result): Add
4927 cast to "char".
4928
dd33d41d
SM
49292018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4930
4931 * solist.h (struct solist, struct target_so_ops): Fix
4932 indentation.
4933
c645cda4
SM
49342018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4935
4936 * ada-tasks.c (ada_task_info_s): Remove typedef.
4937 (DEF_VEC_O(ada_task_info_s)): Remove.
4938 (struct ada_tasks_inferior_data): Initialize fields.
4939 <task_list>: Make an std::vector.
4940 (get_ada_tasks_inferior_data): Allocate with new.
4941 (ada_get_task_number): Adjust.
4942 (get_task_number_from_id): Likewise.
4943 (valid_task_id): Likewise.
4944 (ada_get_task_info_from_ptid): Likewise.
4945 (iterate_over_live_ada_tasks): Likewise.
4946 (add_ada_task): Likewise.
4947 (read_known_tasks): Likewise.
4948 (ada_build_task_list): Likewise.
4949 (print_ada_task_info): Likewise.
4950 (info_task): Likewise.
4951 (task_command_1): Likewise.
4952
39e7af3e
SM
49532018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4954
4955 * ada-lang.c (add_angle_brackets): Return std::string.
4956
bbbbbcee
SM
49572018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
4958
4959 * python/py-threadevent.c (py_get_event_thread): Initialize
4960 pythread.
4961
d98fc15b
PA
49622018-08-24 Pedro Alves <palves@redhat.com>
4963
4964 * python/py-bpevent.c (create_breakpoint_event_object): Use
4965 copy-initialization.
4966 * python/py-continueevent.c (emit_continue_event): Use
4967 copy-initialization.
4968 * python/py-exitedevent.c (create_exited_event_object): Return a
4969 gdbpy_ref<>.
4970 (emit_exited_event): Use copy-initialization.
4971 * python/py-inferior.c (python_new_inferior)
4972 (python_inferior_deleted, add_thread_object): Use
4973 copy-initialization.
4974 * python/py-infevents.c (create_inferior_call_event_object)
4975 (create_register_changed_event_object)
4976 (create_memory_changed_event_object): Return a gdbpy_ref<>.
4977 (emit_inferior_call_event, emit_memory_changed_event)
4978 (emit_register_changed_event): Use copy-initialization.
4979 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4980 Return a gdbpy_ref<>.
4981 (emit_new_objfile_event): Use copy-initialization.
4982 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
4983 (emit_clear_objfiles_event): Use copy-initialization.
4984 * python/py-signalevent.c (create_signal_event_object): Use
4985 copy-initialization.
4986 * python/py-threadevent.c (create_thread_event_object): Use
4987 copy-initialization.
4988
da3c8738
PA
49892018-08-24 Pedro Alves <palves@redhat.com>
4990 Simon Marchi <simon.marchi@ericsson.com>
4991
4992 PR gdb/23379
4993 * python/py-continueevent.c: Include "gdbthread.h".
4994 (create_continue_event_object): Add intro comment. Add 'ptid'
4995 parameter. Use it to find thread to pass to
4996 create_thread_event_object.
4997 (emit_continue_event): Pass PTID down to
4998 create_continue_event_object.
4999 * python/py-event.h (py_get_event_thread): Declare.
5000 (create_thread_event_object): Remove default from 'thread'
5001 parameter.
5002 * python/py-stopevent.c (create_stop_event_object): Use
5003 py_get_event_thread.
5004 * python/py-threadevent.c (get_event_thread): Rename to ...
5005 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
5006 and use it to find the thread.
5007 (create_thread_event_object): Assert that THREAD isn't null.
5008 Don't find the event thread here.
5009
26457a9c
KB
50102018-08-23 Kevin Buettner <kevinb@redhat.com>
5011
5012 * block.h (blockrange, blockranges): New struct declarations.
5013 (struct block): Add new field named `ranges'.
5014 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
5015 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
5016 macros for accessing ranges in struct block.
5017 (make_blockranges): New declaration.
5018 block.c (make_blockranges): New function.
2d5f09ec
KB
5019 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
5020 for block.
fc811edd
KB
5021 * symtab.h (find_pc_partial_function): Add new parameter `block'.
5022 * blockframe.c (cache_pc_function_block): New static global.
5023 (clear_pc_function_cache): Clear cache_pc_function_block.
5024 (find_pc_partial_function): Move comment to symtab.h. Add
5025 support for non-contiguous blocks.
e9480230
KB
5026 * cli/cli-cmds.c (block.h): Include.
5027 (print_disassembly): Handle printing of non-contiguous blocks.
5028 (disassemble_current_function): Likewise.
5029 (disassemble_command): Likewise.
26457a9c 5030
2b1ffcfd
KB
5031 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
5032 BLOCK_START.
5033 * blockframe.c (get_pc_function_start): Likewise.
5034 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
5035 (gcc_symbol_address): Likewise.
5036 * compile/compile-object-run.c (compile_object_run): Likewise.
5037 * compile/compile.c (get_expr_block_and_pc): Likewise.
5038 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
5039 (func_addr_to_tail_call_list): Likewise.
5040 * findvar.c (default_read_var_value): Likewise.
5041 * inline-frame.c (inline_frame_this_id): Likewise.
5042 (skip-inline_frames): Likewise.
5043 * infcmd.c (until_next_command): Likewise.
5044 * linespec.c (convert_linespec_to_sals): Likewise.
5045 * parse.c (parse_exp_in_context_1): Likewise.
5046 * printcmd.c (build_address_symbolic): likewise.
5047 (info_address_command): Likewise.
5048 symtab.c (find_function_start_sal): Likewise.
5049 (skip_prologue_sal): Likewise.
5050 (find_function_alias_target): Likewise.
5051 (find_gnu_ifunc): Likewise.
5052 * stack.c (find_frame_funname): Likewise.
5053 * symtab.c (fixup_symbol_section): Likewise.
5054 (find_function_start_sal): Likewise.
5055 (skip_prologue_sal): Likewsie.
5056 (find_function_alias_target): Likewise.
5057 (find_gnu_ifunc): Likewise.
5058 * tracepoint.c (info_scope_command): Likewise.
5059 * value.c (value_fn_field): Likewise.
5060
9644dc3a
KB
5061 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
5062 in place of find_pc_partial_function.
5063 * blockframe.c (find_function_entry_range_from_pc): New function.
5064 * symtab.h (find_function_entry_range_from_pc): Declare and document.
5065 * objfiles.c (objfile_relocate1): Relocate start and end addresses
5066 for each range in a block.
5067
5068
12a0d0f6
XR
50692018-08-23 Xavier Roirand <roirand@adacore.com>
5070
5071 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
5072 incrementation.
5073
d1012b8e
SM
50742018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
5075
5076 * solib-svr4.c (read_program_headers_from_bfd): Return
5077 gdb::optional<gdb::byte_vector>.
5078 (svr4_exec_displacement): Adjust.
5079
17658d46
SM
50802018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
5081
5082 * solib-svr4.c (read_program_header): Return
5083 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
5084 (find_program_interpreter): Return
5085 gdb::optional<gdb::byte_vector>.
5086 (scan_dyntag_auxv): Adjust.
5087 (enable_break): Adjust.
5088 (svr4_exec_displacement): Adjust.
5089
ae739fe7
SM
50902018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
5091
5092 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
5093 * inf-child.c (inf_child_target::terminal_save_inferior): New.
5094
467dc1e2
SM
50952018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
5096
5097 * guile/scm-string.c (gdbscm_scm_from_printf): Use
5098 string_vprintf.
5099 * guile/scm-utils.c (gdbscm_printf): Likewise.
5100 * serial.c (serial_printf): Likewise.
5101 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
5102
6d52907e
JV
51032018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
5104
5105 * stack.c (print_frame): Print frame architecture when printing on
5106 an MI output.
5107 * NEWS: Mention new "arch" attribute in frame output.
5108
9758a8f8
AH
51092018-08-21 Alan Hayward <alan.hayward@arm.com>
5110
5111 * arch/aarch64.h (aarch64_regnum): Update comment.
5112
1461bdac
AH
51132018-08-21 Alan Hayward <alan.hayward@arm.com>
5114
5115 * NEWS: Add SVE to 8.2 section.
5116
4895f384
PA
51172018-08-21 Pedro Alves <palves@redhat.com>
5118
5119 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
5120 out from gdbscm_parse_function_args.
5121 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
5122 gdbscm_parse_function_args_1.
5123
a4497d2f
SM
51242018-08-21 Simon Marchi <simon.marchi@ericsson.com>
5125
5126 PR gdb/17816
5127 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
5128 operator.
5129
c44deb73
SM
51302018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
5131
5132 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
5133
be2d111a
MS
51342018-08-19 Michael Spang <spang@google.com>
5135
5136 PR gdb/11786
5137 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
5138 for PT_TLS segments.
5139
a6b786da
KB
51402018-08-18 Kevin Buettner <kevinb@redhat.com>
5141
5142 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
5143 dwarf_variable_value.
5144 * dwarf2-frame.c (class dwarf_expr_executor):
5145 Add override for dwarf_variable_value.
5146 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
5147 (class symbol_needs_eval_context): Likewise.
5148 (indirect_synthetic_pointer): Add forward declaration.
5149 (sect_variable_value): New function.
5150 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
5151 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
5152 for DW_OP_GNU_variable_value.
5153
89fbedf3
TT
51542018-08-16 Tom Tromey <tom@tromey.com>
5155
5156 * top.c (read_command_file): Update.
5157 (command_line_input): Remove "repeat" argument.
5158 * ada-lang.c (get_selections): Update.
5159 * linespec.c (decode_line_2): Update.
5160 * defs.h (command_line_input): Remove argument.
5161 * cli/cli-script.c (read_next_line): Update.
5162 * python/py-gdb-readline.c: Update.
5163
12582533
TT
51642018-08-17 Tom Tromey <tom@tromey.com>
5165
5166 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
5167 command_line_input.
5168
49514353
TT
51692018-08-15 Tom Tromey <tom@tromey.com>
5170
5171 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
5172
26fb3983
JV
51732018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
5174
5175 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
5176 If used, use find_pc_partial_function to find address range
5177 to disassemble.
5178 * mi/mi-main.c (mi_cmd_list_features): Report
5179 "data-disassemble-a-option" feature.
5180 * NEWS: Mention new -data-disassemble option -a.
5181
a97b53dd
TT
51822018-08-13 Tom Tromey <tom@tromey.com>
5183
5184 * common/common-defs.h (_FORTIFY_SOURCE): Define.
5185
0c76e06d
AH
51862018-08-13 Alan Hayward <alan.hayward@arm.com>
5187
5188 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
5189 (aarch64_linux_collect_sve_regset): Likewise.
5190 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
5191 * regcache.h (regcache_map_entry_size): New function.
5192
b7fd65b9
AH
51932018-08-13 Alan Hayward <alan.hayward@arm.com>
5194
5195 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
5196 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
5197 (SVE_HEADER_VL_LENGTH): Likewise.
5198 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
5199 (SVE_HEADER_FLAGS_LENGTH): Likewise.
5200 (SVE_HEADER_RESERVED_LENGTH): Likewise.
5201 (SVE_HEADER_SIZE_OFFSET): Likewise.
5202 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
5203 (SVE_HEADER_VL_OFFSET): Likewise.
5204 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
5205 (SVE_HEADER_FLAGS_OFFSET): Likewise.
5206 (SVE_HEADER_RESERVED_OFFSET): Likewise.
5207 (SVE_HEADER_SIZE): Likewise.
5208 (aarch64_linux_core_read_vq): Add function.
5209 (aarch64_linux_core_read_description): Check for SVE section.
5210
a616bb94
AH
52112018-08-13 Alan Hayward <alan.hayward@arm.com>
5212
5213 * aarch64-fbsd-tdep.c
5214 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
5215 collect_size.
5216 * aarch64-linux-tdep.c
5217 (aarch64_linux_iterate_over_regset_sections): Likewise.
5218 * alpha-linux-tdep.c
5219 (alpha_linux_iterate_over_regset_sections):
5220 * alpha-nbsd-tdep.c
5221 (alphanbsd_iterate_over_regset_sections): Likewise.
5222 * amd64-fbsd-tdep.c
5223 (amd64fbsd_iterate_over_regset_sections): Likewise.
5224 * amd64-linux-tdep.c
5225 (amd64_linux_iterate_over_regset_sections): Likewise.
5226 * arm-bsd-tdep.c
5227 (armbsd_iterate_over_regset_sections): Likewise.
5228 * arm-fbsd-tdep.c
5229 (arm_fbsd_iterate_over_regset_sections): Likewise.
5230 * arm-linux-tdep.c
5231 (arm_linux_iterate_over_regset_sections): Likewise.
5232 * corelow.c (get_core_registers_cb): Likewise.
5233 (core_target::fetch_registers): Likewise.
5234 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
5235 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
5236 * gdbarch.h (void): Regenerate.
5237 * gdbarch.sh: Add supply_size and collect_size.
5238 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
5239 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
5240 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
5241 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
5242 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
5243 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
5244 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
5245 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
5246 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
5247 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
5248 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
5249 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
5250 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
5251 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
4399bce9
PA
5252 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections):
5253 Likewise.
a616bb94
AH
5254 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
5255 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
5256 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
5257 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
5258 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
5259 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
4399bce9
PA
5260 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections):
5261 Likewise.
a616bb94
AH
5262 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
5263 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
5264 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
5265 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
5266 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
5267 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
5268 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
5269 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
5270
a9925d4f
SM
52712018-08-10 Simon Marchi <simon.marchi@ericsson.com>
5272
5273 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
5274 with string_printf.
5275
ad3a68e9
KS
52762018-08-10 Keith Seitz <keiths@redhat.com>
5277
5278 * compile/compile-c-support.c (add_code_header, add_code_footer):
5279 Move into policy class.
5280 (c_push_user_expression, pop_user_expression_nop)
5281 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
5282 (compile_program): New host class.
5283 (c_compile_program): New typedef.
5284 (c_compute_porgram): Use c_compile_program.
5285
0cfbf430
KS
52862018-08-10 Keith Seitz <keiths@redhat.com>
5287
5288 * compile/compile-internal.h (compile_instance::~compile_instance):
5289 Remove calls to htab_delete.
5290 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
5291 * compile.c (compile_instance::compile_instance): Initialize
5292 htab unique pointers.
5293 (compile_instance::get_cached_type, compile_instance::insert_type)
5294 (compile_instance::error_symbol_once): Update for unique_ptr.
5295
946d3d10
KS
52962018-08-10 Keith Seitz <keiths@redhat.com>
5297
5298 * compile/compile-c-symbols.c (struct symbol_error)
5299 (hash_symbol_error, eq_symbol_error, del_symbol_error)
5300 (compile_instance::insert_symbol_error)
5301 (compile_instance::error_symbol_once): Move to ...
5302 * compile/compile.c: ... here.
5303
9cdfd9a2
KS
53042018-08-10 Keith Seitz <keiths@redhat.com>
5305
5306 * compile/compile-c-support.c (c_get_compile_context): Use `new'
5307 instead of `new_compile_instance'.
5308 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
5309 Update description.
5310 If the symbol error map is not initialized, create it.
5311 (generate_c_for_for_one_symbol): Do not check/initialize
5312 the symbol error map.
5313 * compile/compile-c-types.c (compile_c_instance): Make a class.
5314 Update all callers.
5315 (compile_instance::compile_instance): Initialize the type cache.
5316 (get_cached_type): New function.
5317 (insert_type): Update description.
5318 (compile_c_instance::m_default_cflags): Define.
5319 (convert_type): Update description. Use get_cached_type.
5320 (delete_instance): Moved to destructor.
5321 (new_compile_instance): Moved to constructor.
5322 * compile/compile-c.h (compile_c_instance): Make class inheriting
5323 from compile_instance.
5324 <base>: Remove field.
5325 <type_map, symbol_err_map>: Move to base class.
5326 <c_plugin>: Rename to `m_plugin' and remove pointer type.
5327 * compile/compile-internal.h (compile_instance): Make class.
5328 <type_map_t, symbol_err_map_t>: Define.
5329 <fe>: Rename to `m_gcc_fe'.
5330 <scope, block, gcc_target_options>: Add `m_' prefix.
5331 <m_type_map, m_symbol_err_map>: New fields, moved from
5332 compile_c_instance.
5333 <destroy>: Remove.
5334 (convert_type, new_compile_instance): Remove.
5335 * compile/compile.c (cleanup_compile_instance): Remove.
5336 (compile_to_object): Use unique_ptr to eliminate cleanups.
5337 (compile_instance::set_print_callback, compile_instance::version)
5338 (compile_instance::set_verbose)
5339 (compile_instance::set_driver_filename)
5340 (compile_instance::set_triplet_regexp)
5341 (compile_instance::set_arguments)
5342 (compile_instance::set_source_file)
5343 (compile_instance::compile): Define.
5344
18cdc6d8
KS
53452018-08-10 Keith Seitz <keiths@redhat.com>
5346
5347 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
5348 * compile/compile-c-types.c: Define GCC_METHODN macros and include
5349 gcc-c-fe.def to define C plugin.
5350 (delete_instance): Delete `c_plugin'.
5351 (new_compile_instance): Initialize `c_plugin'.
5352 * compile/compile-c.h: Include gcc_c_plugin.h.
5353 (struct compile_c_instance) <c_plugin>: New member.
5354 * gcc-c-plugin.h: New file.
5355 Update all callers with API change.
5356
b7dc48b4
KS
53572018-08-10 Keith Seitz <keiths@redhat.com>
5358
5359 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
5360 (HFILES_NO_SRCDIR): ... to here.
5361 Add compile-internal.h and compile-c.h.
5362 * compile/compile-c-support.c: Include compile-c.h.
5363 * compile/compile-c-symbols.c: Include compile-c.h.
5364 (generate_c_for_variable_locations): Update comment.
5365 * compile/compile-c-types.c: Include compile-c.h.
5366 * compile/compile-c.h: New file -- moved C language declarations
5367 from other files here.
5368 * compile/compile-internal.h: Do not include hashtab.h or
5369 common/enum-flags.h.
5370 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
5371 (gcc_convert_symbol, gcc_symbol_address)
5372 (generate_c_for_variable_locations, c_get_mode_for_size)
5373 (c_get_range_decl_name): Definitions moved to compile-c.h.
5374 * compile/compile-loc2c.c: Include compile-c.h.
5375
6f36b6d2
KS
53762018-08-10 Keith Seitz <keiths@redhat.com>
5377
5378 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
5379 (c_symbol_substitution_name): ... this.
5380 Update all callers.
5381
bd923e51
KS
53822018-08-10 Keith Seitz <keiths@redhat.com>
5383
5384 * compile/compile-c-support.c (c_compute_program): Use
5385 unique_xmalloc_ptr to eliminate cleanup.
5386 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
5387 Return a unique_xmalloc_ptr and eliminate cleanup.
5388 * compile/compile-internal.h (generate_c_for_variable_locations):
5389 Return unique_xmalloc_ptr and update description.
5390
dbd534fe
AH
53912018-08-10 Alan Hayward <alan.hayward@arm.com>
5392
5393 * corelow.c (core_target::get_core_register_section): Rename
5394 min_size to section_min_size.
5395
90ad3654
JW
53962018-08-09 Jim Wilson <jimw@sifive.com>
5397
52a187f8
JW
5398 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
5399 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
5400 * NEWS: Mention new GNU/Linux RISC-V target.
5401 * configure.host: Add riscv*-*-linux*.
5402 * configure.nat: Add riscv*.
5403 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 5404 * riscv-linux-nat.c: New file.
90ad3654
JW
5405 * riscv-linux-tdep.c: New file.
5406
aff4e175
AB
54072018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
5408
5409 * infrun.c (resume): Make static, add forward declaration.
5410 (proceed): Update header comment.
5411 * infrun.h (resume): Delete declaration.
5412
06ab9219
TT
54132018-08-09 Tom Tromey <tom@tromey.com>
5414
5415 * riscv-tdep.h: Minor formatting fixes.
5416
83c8d318
SM
54172018-08-09 Simon Marchi <simon.marchi@ericsson.com>
5418
5419 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
5420 * dwarf-index-cache.c (create_dir_and_check): Likewise.
5421 (test_mkdir_recursive): Likewise.
5422 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
5423
5ff2bbae
AB
54242018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
5425
5426 * valarith.c (value_subscripted_rvalue): If an array is not in
5427 memory, and we don't know the upper bound, then we can't know that
5428 the requested element exists or not.
5429
fdbac7d8
SM
54302018-08-08 Simon Marchi <simon.marchi@ericsson.com>
5431
5432 * target.c (str_comma_list_concat_elem): Fix typo in comment.
5433 (target_options_to_string): Add comment.
5434
83202f7a
TT
54352018-08-08 Tom Tromey <tom@tromey.com>
5436
5437 * unittests/scoped_mmap-selftests.c: Check result of "write".
5438
411baa47
JW
54392018-08-08 Jim Wilson <jimw@sifive.com>
5440
5c720ed8
JW
5441 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
5442 (decode_register_index_short): New.
5443 (decode_j_type_insn, decode_cj_type_insn): New.
5444 (decode_b_type_insn, decode_cb_type_insn): New.
5445 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
5446 local xlen. Check xlen when decoding ambiguous compressed insns. In
5447 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
5448 is_c_sw_insn instead of is_sw_insn.
5449 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
5450 (riscv_software_single_step): New.
5451 * riscv-tdep.h (riscv_software_single_step): Declare.
5452
411baa47
JW
5453 * riscv-tdep.c (riscv_isa_xlen): Drop static.
5454 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
5455
9d4a934c
AB
54562018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
5457
5458 PR gdb/18050:
5459 * target.c (dispose_inferior): Don't dispose of inferiors that are
5460 already killed.
5461
ff36536c
SN
54622018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
5463
5464 * remote.c (remote_target::download_tracepoint): Change char* to
5465 const char*.
5466
09ce46f2
SM
54672018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5468
5469 * target.h (target_options_to_string): Return an std::string.
5470 * target.c (str_comma_list_concat_elem): Return void, use
5471 std::string.
5472 (do_option): Likewise.
5473 (target_options_to_string): Return an std::string.
5474 * linux-nat.c (linux_nat_target::wait): Adjust.
5475 * target-debug.h (target_debug_print_options): Adjust.
5476
9c612964
TT
54772018-08-07 Tom Tromey <tom@tromey.com>
5478
5479 * Makefile.in (CPPFLAGS): New variable.
5480 (INTERNAL_CPPFLAGS): Use it.
5481
7d11235d
SM
54822018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5483
5484 * NEWS: Mention the index cache.
5485
87d6a7aa
SM
54862018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5487
5488 * common/pathstuff.h (get_standard_cache_dir): New.
5489 * common/pathstuff.c (get_standard_cache_dir): New.
5490 * build-id.h (build_id_to_string): New.
5491 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
5492 DEBUG_STR_SUFFIX): Move to here.
5493 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
5494 DEBUG_STR_SUFFIX): Move from there.
5495 (write_psymtabs_to_index): Make non-static, add basename
5496 parameter. Write to temporary files, rename when done.
5497 (save_gdb_index_command): Adjust call to
5498 write_psymtabs_to_index.
5499 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
5500 field.
5501 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
5502 (get_gdb_index_contents_from_cache): New.
5503 (get_gdb_index_contents_from_cache_dwz): New.
5504 (dwarf2_initialize_objfile): Read index from cache.
5505 (dwarf2_build_psymtabs): Save to index.
5506 * dwarf-index-cache.h: New file.
5507 * dwarf-index-cache.c: New file.
5508 * dwarf-index-write.h: New file.
5509
8a99096f
SM
55102018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5511
5512 * gnulib/aclocal.m4: Re-generate.
5513 * gnulib/config.in: Re-generate.
5514 * gnulib/configure: Re-generate.
5515 * gnulib/import/Makefile.am: Re-generate.
5516 * gnulib/import/Makefile.in: Re-generate.
5517 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
5518 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
5519 * gnulib/import/m4/mkdir.m4: New file.
5520 * gnulib/import/mkdir.c: New file.
5521 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
5522 module.
5523
5c831bb1
SM
55242018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5525
5526 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
5527 * common/scoped_mmap.c: New file.
5528 * common/scoped_mmap.h (destroy): New method.
5529 (~scoped_mmap, reset): Use destroy.
5530 (scoped_mmap): New move constructor.
5531 (mmap_file): New declaration.
5532 * unittests/scoped_mmap-selftests.c (test_normal,
5533 test_invalid_filename, run_tests): New functions.
5534 (_initialize_scoped_mmap_selftests): Register selftest.
5535
4485a1c1
SM
55362018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5537
5538 * dwarf2read.c (read_gdb_index_from_section): Rename to...
5539 (read_gdb_index_from_buffer): ... this. Remove section
5540 parameter, add buffer parameter.
5541 (get_gdb_index_contents_ftype,
5542 get_gdb_index_contents_dwz_ftype): New typedefs.
5543 (dwarf2_read_gdb_index): Add callback parameters to get the
5544 index contents.
5545 (get_gdb_index_contents_from_section): New.
5546 (dwarf2_initialize_objfile): Update call to
5547 dwarf2_read_gdb_index.
5548
528e1572
SM
55492018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5550
5551 * common/filestuff.h (gdb_fopen_cloexec): New overload.
5552 (gdb_open_cloexec): Likewise.
5553 * nat/linux-osdata.c (command_from_pid): Use string_printf.
5554 (commandline_from_pid): Likewise.
5555 (linux_xfer_osdata_threads): Likewise.
5556 (linux_xfer_osdata_fds): Likewise.
5557 * ada-lang.c (is_package_name): Likewise.
5558 * auxv.c (procfs_xfer_auxv): Likewise.
5559 * breakpoint.c (print_one_breakpoint_location): Use
5560 uiout::field_fmt.
5561 (print_one_catch_solib): Use string_printf.
5562 * coff-pe-read.c (add_pe_exported_sym): Likewise.
5563 (add_pe_forwarded_sym): Likewise.
5564 * dwarf2read.c (create_type_unit_group): Likewise.
5565 (build_error_marker_type): Likewise.
5566 * infcall.c (get_function_name): Likewise.
5567 * valprint.c (print_converted_chars_to_obstack): Likewise.
5568 * xtensa-tdep.c (xtensa_register_type): Likewise.
5569
a7f25a84
SM
55702018-08-06 Simon Marchi <simon.marchi@ericsson.com>
5571
5572 * remote.c (remote_target::download_tracepoint): Fix format
5573 string errors.
5574
296956be
PFC
55752018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5576
5577 * tracefile.c: Include common/byte-vector.h.
5578 (trace_save): Change type of buf to gdb::byte_vector. Initialize
5579 with trace_regblock_size if needed. Update uses of buf.
5580
a04b9d62
PFC
55812018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5582
5583 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
5584 std::vector<unsigned char>.
5585 * tracepoint.c (collection_list::collection_list): Remove
5586 m_regs_mask initializer from initializer list. Resize
5587 m_regs_mask using the largest remote register number.
5588 (collection_list::add_remote_register): Remove size check on
5589 m_regs_mask. Use at to access element.
5590 (collection_list::stringify): Change type of temp_buf to
5591 gdb::char_vector. Update uses of temp_buf. Resize if needed to
5592 stringify the register mask. Use pack_hex_byte for the register
5593 mask.
5594
4277c4b8
PFC
55952018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5596
5597 * tracepoint.h (class collection_list) <add_register>: Remove.
5598 <add_remote_register, add_ax_registers, add_local_register>:
5599 Declare.
5600 <add_memrange>: Add scope parameter.
5601 * tracepoint.c (encode_actions_1): Likewise.
5602 (collection_list::add_register): Rename to ...
5603 (collection_list::add_remote_register): ... this. Update
5604 comment.
5605 (collection_list::add_ax_registers, add_local_register): New
5606 methods.
5607 (collection_list::add_memrange): Add scope parameter. Call
5608 add_local_register instead of add_register.
5609 (finalize_tracepoint_aexpr): New function.
5610 (collection_list::collect_symbol): Update calls to add_memrange.
5611 Call add_local_register instead of add_register. Call
5612 add_ax_registers. Call finalize_tracepoint_aexpr.
5613 (encode_actions_1): Get remote regnos for $reg action. Call
5614 add_remote_register, add_ax_registers, and add_local_register.
5615 Update call to add_memrange. Call finalize_tracepoint_aexpr.
5616 (validate_actionline): Call finalize_tracepoint_aexpr.
5617
3df3a985
PFC
56182018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5619
5620 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
5621 Replace array buf with gdb::char_vector buf, of size
5622 get_remote_packet_size (). Replace references to buf and
5623 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
5624 and xsnprintf with snprintf. Raise errors if the buffer is too
5625 small.
5626
aa6f3694
PFC
56272018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5628
5629 * remote.c (remote_target::download_tracepoint): Fix the has_more
5630 predicate in the QTDP action list iteration.
5631
05abfc39
PFC
56322018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5633
5634 * remote.c (remote_target::download_tracepoint): Fix indentation
5635 in for block.
5636
821a2682
RO
56372018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5638
5639 * proc-api.c (_initialize_proc_api): Remove c, unused.
5640 * procfs.c (procfs_init_inferior): Remove signals, unused.
5641 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
5642 unused.
5643
95347337
AB
56442018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
5645 Andrew Burgess <andrew.burgess@embecosm.com>
5646
5647 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
5648 'W_STOPCODE (0)' as this could be ambiguous.
5649
425699f5
SDJ
56502018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
5651
5652 * ser-tcp.c (net_open): Fix thinko when deciding whether to
5653 disable TCP's Nagle algorithm (use "ai_protocol" instead of
5654 "ai_socktype").
5655
3e1d3d8c
TT
56562018-08-02 Tom Tromey <tom@tromey.com>
5657
5658 PR symtab/16842.
5659 * dwarf2read.c (read_func_scope): Set symtab on template parameter
5660 symbols.
5661 (process_structure_scope): Likewise.
5662
15843549
XR
56632018-08-02 Xavier Roirand <roirand@adacore.com>
5664
5665 PR gdb/22629:
4399bce9
PA
5666 * darwin-nat.c (darwin_kill_inferior): Fix handling of
5667 kill inferior.
15843549 5668
b5bddbbb
TT
56692018-08-02 Tom Tromey <tom@tromey.com>
5670
5671 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
5672 (darwin_suspend_inferior, darwin_resume_inferior)
5673 (darwin_decode_notify_message, darwin_resume_inferior_threads)
5674 (darwin_check_new_threads): Check result of get_darwin_inferior.
5675
f61cfa07
JB
56762018-07-31 Joel Brobecker <brobecker@adacore.com>
5677
5678 GDB 8.1.1 released.
5679
5abe0f0c
JV
56802018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
5681
5682 * varobj.c (varobj_get_path_expr_parent): Report an error if
5683 parent is a dynamic varobj.
5684
472fa5ee
SM
56852018-07-31 Simon Marchi <simon.marchi@ericsson.com>
5686
5687 * gnulib/aclocal.m4: Re-generate.
5688 * gnulib/config.in: Re-generate.
5689 * gnulib/configure: Re-generate.
5690 * gnulib/import/Makefile.in: Re-generate.
5691 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
5692 * gnulib/import/m4/onceonly.m4: Re-generate.
5693
1c28969e
SM
56942018-07-31 Simon Marchi <simon.marchi@ericsson.com>
5695
5696 * target-descriptions.c (struct xml_test_tdesc): New.
5697 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
5698 (record_xml_tdesc): Update.
5699 (maintenance_check_xml_descriptions): Update.
5700 * target-descriptions.h (record_xml_tdesc): Update comment.
5701
c8f2dc0d
AB
57022018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
5703
5704 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
5705 checking array bounds are defined.
5706
463c08d1
TT
57072018-07-30 Tom Tromey <tom@tromey.com>
5708
5709 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
5710 irreflexivity violation.
5711
dba7455e
TT
57122018-07-30 Tom Tromey <tom@tromey.com>
5713
5714 * cli/cli-decode.c (lookup_cmd): Remove lint code.
5715 * value.c (unpack_long): Remove lint code.
5716 * valops.c (value_ind): Remove lint code.
5717 * valarith.c (value_x_binop, value_x_unop, value_equal)
5718 (value_pos): Remove lint code.
5719
37cc0cae
TV
57202018-07-28 Tom de Vries <tdevries@suse.de>
5721
5722 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
5723 with undefined upper bound as <optimized out>.
5724
129eb0f1
SDJ
57252018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
5726
5727 * gcore.in: Rename variable "name" to "prefix". Expand
5728 "usage" text.
5729
6af79d7b
JT
57302018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
5731
5732 * windows-nat.c (windows_nat_target::create_inferior): Update to
5733 call close() in global namespace.
5734
79748972
TT
57352018-07-26 Tom Tromey <tom@tromey.com>
5736
5737 * dwarf-index-write.c (add_address_entry): Don't add objfile
5738 offsets.
5739 * dbxread.c (find_stab_function): Rename from
5740 find_stab_function_addr. Return a bound_minimal_symbol.
5741 (read_dbx_symtab): Use raw_text_low, raw_text_high.
5742 Don't add objfile offsets.
5743 (end_psymtab): Use raw_text_low, raw_text_high,
5744 MSYMBOL_VALUE_RAW_ADDRESS.
5745 (read_ofile_symtab): Update.
5746 (process_one_symbol): Update.
5747 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
5748 offsets.
5749 (dw2_relocate): Remove.
5750 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
5751 searching addrmap.
5752 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
5753 Update.
5754 (process_psymtab_comp_unit_reader, add_partial_symbol)
5755 (add_partial_subprogram, dwarf2_ranges_read): Update.
5756 (load_partial_dies): Update.
5757 (add_address_entry): Don't add objfile offsets.
5758 (dwarf2_build_include_psymtabs): Update.
5759 (create_addrmap_from_aranges): Don't add objfile offsets.
5760 (dw2_find_pc_sect_compunit_symtab): Update.
5761 * mdebugread.c (parse_symbol): Don't add objfile offsets.
5762 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
5763 Update.
5764 (parse_partial_symbols): Don't add objfile offsets. Use
5765 raw_text_low, raw_text_high. Update.
5766 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
5767 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
5768 or call 'relocate' quick function. Clear psymbol_map.
5769 * psympriv.h (struct partial_symbol) <address>: Add section
5770 offset.
5771 <set_unrelocated_address>: Rename from set_address.
5772 <raw_text_low, raw_text_high>: New methods.
5773 <text_low, text_high>: Add objfile parameter.
5774 (add_psymbol_to_bcache): Add 'section' parameter. Call
5775 set_unrelocated_address.
5776 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5777 (find_pc_psymbol): Update.
5778 (fixup_psymbol_section, relocate_psymtabs): Remove.
5779 (dump_psymtab, psym_functions): Update.
5780 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
5781 parameter.
5782 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5783 (start_psymtab_common): Update.
5784 * symfile-debug.c (debug_qf_relocate): Remove.
5785 (debug_sym_quick_functions): Update.
5786 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
5787 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
5788 Update.
5789
52948f01
TT
57902018-07-26 Tom Tromey <tromey@redhat.com>
5791
5792 * dbxread.c (end_psymtab): Use text_high_valid and
5793 text_low_valid.
5794 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
5795 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
5796 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5797 Update comment.
5798 <text_low_valid, text_high_valid>: New fields.
5799 <set_text_low, set_text_high>: Update.
5800 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
5801
4ae976d1
TT
58022018-07-26 Tom Tromey <tom@tromey.com>
5803
5804 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
5805 Update.
5806 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
5807 textlow and texthigh fields.
5808 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
5809 Update.
5810 * mdebugread.c (parse_lines, parse_partial_symbols)
5811 (psymtab_to_symtab_1): Update.
5812 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5813 Rename fields. Update comment. Now private.
5814 <text_low, text_high, set_text_low, set_text_high>: New methods.
5815 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5816 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
5817 (start_psymtab_common, maintenance_info_psymtabs)
5818 (maintenance_check_psymtabs): Update.
5819 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
5820 texthigh fields.
5821 (scan_xcoff_symtab): Update.
5822
02e9e7f7
TT
58232018-07-26 Tom Tromey <tromey@redhat.com>
5824
5825 * psympriv.h (struct partial_symbol) <unrelocated_address,
5826 address, set_address>: New methods.
5827 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
5828 (fixup_psymbol_section, relocate_psymtabs): Update.
5829 (print_partial_symbols): Add 'objfile' parameter. Update.
5830 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
5831 Update.
5832
8a6d4234
TT
58332018-07-26 Tom Tromey <tom@tromey.com>
5834
5835 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5836 (debug_names::write_psymbols): Update.
5837 * psympriv.h (struct partial_symbol): Derive from
5838 general_symbol_info.
5839 <obj_section>: New method.
5840 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
5841 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5842 (find_pc_sect_psymbol, fixup_psymbol_section)
5843 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
5844 (print_partial_symbols, recursively_search_psymtabs)
5845 (compare_psymbols, psymbol_hash, psymbol_compare)
5846 (add_psymbol_to_bcache, maintenance_check_psymtabs)
5847 (psymbol_name_matches, psym_fill_psymbol_map): Update.
5848
08994e1d
TT
58492018-07-26 Tom Tromey <tromey@redhat.com>
5850
5851 * dbxread.c (end_psymtab): Remove dead code.
5852
3c3bb058
AB
58532018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
5854
5855 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
5856 DWARF unwinders are disabled.
5857 * dwarf2-frame.c: Add dwarf2read.h include.
5858 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
5859 disabled.
5860 (dwarf2_frame_unwinders_enabled_p): Define.
5861 (show_dwarf_unwinders_enabled_p): New function.
5862 (_initialize_dwarf2_frame): Register switch to control DWARF
5863 unwinder use.
5864 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
5865 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
5866 (show_dwarf_cmdlist): Remove static keyword.
5867 * dwarf2read.h (set_dwarf_cmdlist): Declare.
5868 (show_dwarf_cmdlist): Declare.
5869 * NEWS: Document new feature.
5870
9e7f3bbb
TV
58712018-07-26 Tom de Vries <tdevries@suse.de>
5872
5873 PR breakpoints/23366
5874 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
5875
506f5c41
TV
58762018-07-26 Tom de Vries <tdevries@suse.de>
5877
5878 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
5879 DW_AT_count can't be translated to a dynamic prop.
5880
16f808ec
TV
58812018-07-25 Tom de Vries <tdevries@suse.de>
5882
5883 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
5884 try/catch.
5885
d7154a8d
JV
58862018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
5887
5888 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
5889
a45389f6
JB
58902018-07-25 Joel Brobecker <brobecker@adacore.com>
5891
5892 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
5893
380618d6
KS
58942018-07-24 Keith Seitz <keiths@redhat.comt
5895
5896 PR symtab/23010
5897 * dwarf2read.c (dw2_add_symbol_to_list): New function.
5898 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
5899 instead of add_symbol_to_list.
5900 (read_file_scope): Call prepare_one_comp_unit before reading
5901 any other DIEs.
5902
4b17aefe
SM
59032018-07-24 Simon Marchi <simon.marchi@ericsson.com>
5904
5905 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
5906
29d17e47
TT
59072018-07-24 Tom Tromey <tom@tromey.com>
5908
5909 * utils.c (malloc, realloc, free): Don't declare.
5910 * configure, config.in: Rebuild.
5911 * configure.ac: Don't check for declarations of free, malloc, or
5912 realloc.
5913
cf4088a9
SM
59142018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5915
5916 * aarch64-linux-nat.c
5917 (aarch64_linux_nat_target::stopped_data_address): Remove unused
5918 variable.
5919 * arm-linux-nat.c (fetch_regs): Likewise.
5920 (store_regs): Likewise.
5921 (fetch_vfp_regs): Likewise.
5922 (store_vfp_regs): Likewise.
5923 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
5924 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
5925 (arm_linux_nat_target::insert_watchpoint): Likewise.
5926 (arm_linux_nat_target::remove_watchpoint): Likewise.
5927 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
5928 Likewise.
5929 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
5930 Likewise.
5931 * ppc-linux-nat.c (fetch_register): Likewise.
5932 (fetch_all_gp_regs): Likewise.
5933 (fetch_ppc_registers): Likewise.
5934 (store_all_gp_regs): Likewise.
5935 (store_ppc_registers): Likewise.
5936 (hwdebug_insert_point): Likewise.
5937 (can_use_watchpoint_cond_accel): Likewise.
5938 * remote-sim.c (gdb_os_write_stdout): Likewise.
5939
a0de763e
TT
59402018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5941 Tom Tromey <tom@tromey.com>
5942
5943 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
5944 test for it.
5945 * configure: Rebuild.
5946
3b20124b
TT
59472018-07-22 Tom Tromey <tom@tromey.com>
5948
5949 * regformats/regdat.sh: Define xmltarget_${name} inside
5950 #ifndef IN_PROCESS_AGENT.
5951
8c8807f4
TT
59522018-07-22 Tom Tromey <tom@tromey.com>
5953
5954 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
5955
c486b610
TT
59562018-07-22 Tom Tromey <tom@tromey.com>
5957
5958 * symfile.c (reread_symbols): Notify iter, not objfile.
5959
494f80a9
TT
59602018-07-22 Tom Tromey <tom@tromey.com>
5961
5962 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
5963 Use arch_ops.
5964 (ravenscar_thread_target::prepare_to_store): Likewise.
5965
c51f6a54
TT
59662018-07-22 Tom Tromey <tom@tromey.com>
5967
5968 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
5969 unused variable. Call value_fetch_lazy when needed.
5970 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5971 Remove unused variable. Call value_fetch_lazy when needed.
5972
374fd1fd
TT
59732018-07-22 Tom Tromey <tom@tromey.com>
5974
5975 * m32c-tdep.c (mark_dma): Return void.
5976 (make_regs): Remove unused declarations.
5977
d5e9a511
TT
59782018-07-22 Tom Tromey <tom@tromey.com>
5979
5980 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
5981 cmdscm_get_valid_command_smob_arg_unsafe for effect.
5982 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
5983 bkscm_get_valid_block_smob_arg_unsafe for effect.
5984
996d693a
TT
59852018-07-22 Tom Tromey <tom@tromey.com>
5986
5987 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
5988 value_type.
5989
15766370
TT
59902018-07-22 Tom Tromey <tom@tromey.com>
5991
5992 * windows-nat.c (saved_context): Conditionally define.
5993 * remote.c (remote_target::remote_btrace_maybe_reopen):
5994 Conditionally declare "warned".
5995 * inflow.c (sigquit_ours): Conditionally define.
5996 (new_tty): Move "tty" declaration inside #if.
5997 * guile/guile.c (guile_datadir): Conditionally define.
5998 * charset.c (set_be_le_names): Move some declarations inside #if.
5999 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
6000 #if.
6001 (parse_xml_btrace_conf): Likewise.
6002
f4e80e13
TT
60032018-07-22 Tom Tromey <tom@tromey.com>
6004
6005 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
6006
8d49165d
TT
60072018-07-22 Tom Tromey <tom@tromey.com>
6008
6009 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
6010 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
6011 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
6012 * buildsym-legacy.c (get_macro_table): Remove unused variable.
6013 * stack.c (frame_apply_level_command): Remove unused variable.
6014 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
6015 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
6016 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
6017 unused variable.
6018 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
6019 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
6020 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
6021 variable.
6022 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
6023 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
6024 variable.
6025 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
6026 Remove unused variable.
6027 * cli/cli-script.c (recurse_read_control_structure): Remove unused
6028 variable.
6029 * common/tdesc.c (print_xml_feature::visit): Remove unused
6030 variable.
6031 * compile/compile-object-load.c (store_regs): Remove unused
6032 variables.
6033 * complaints.c (clear_complaints): Remove unused variable.
6034 * corelow.c (core_target_open): Remove unused variable.
6035 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
6036 variable.
6037 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
6038 variable.
6039 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
6040 variable.
6041 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
6042 variable.
6043 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
6044 variable.
6045 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
6046 variable.
6047 * ia64-tdep.c (examine_prologue): Remove unused variable.
6048 * infcall.c (run_inferior_call): Remove unused variable.
6049 * inferior.c (exit_inferior): Remove unused variable.
6050 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
6051 * linespec.c (decode_line_2): Remove unused variable.
6052 * linux-nat.c (super_close): Remove.
6053 * linux-tdep.c (linux_info_proc): Remove unused variable.
6054 * mi/mi-main.c (mi_execute_command): Remove unused variable.
6055 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
6056 Remove unused variable.
6057 * parse.c (find_minsym_type_and_address): Remove unused variable.
6058 * printcmd.c (info_symbol_command, printf_floating): Remove unused
6059 variable.
6060 * python/py-breakpoint.c (bppy_set_commands): Remove unused
6061 variable.
6062 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
6063 variables.
6064 * record-btrace.c (record_btrace_target::store_registers): Remove
6065 unused variable.
6066 (cmd_show_record_btrace_cpu): Remove unused variable.
6067 * riscv-tdep.c (riscv_register_reggroup_p)
6068 (riscv_push_dummy_call, riscv_return_value): Remove unused
6069 variable.
6070 * rust-exp.y (literal): Remove unused variable.
6071 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
6072 unused variable.
6073 <STRUCTOP_ANONYMOUS>: Likewise.
6074 * s390-linux-tdep.c (s390_linux_init_abi_31)
6075 (s390_linux_init_abi_64): Remove unused variable.
6076 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
6077 (file_select_thread, net_windows_open, _initialize_ser_windows):
6078 Remove unused variables.
6079 * symtab.c (find_pc_sect_line): Remove unused variable.
6080 * target-memory.c (compute_garbled_blocks): Remove unused
6081 variable.
6082 (target_write_memory_blocks): Remove unused variable.
6083 * target.c (target_stack::unpush): Remove unused variables.
6084 * tracepoint.c (start_tracing, all_tracepoint_actions)
6085 (merge_uploaded_trace_state_variables)
6086 (print_one_static_tracepoint_marker): Remove unused variable.
6087 * unittests/basic_string_view/element_access/char/1.cc (test01):
6088 Remove unused variable.
6089 * windows-nat.c (windows_continue, windows_add_all_dlls)
6090 (do_initial_windows_stuff, windows_nat_target::create_inferior):
6091 Remove unused variables.
6092
17cbafdb
SM
60932018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6094
6095 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
6096 attr_profile in HAVE_ELF.
6097 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
6098 HAVE_ELF.
6099
0ee6c332
SM
61002018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
6101
6102 * frame.c (frame_register_unwind): Change parameter name.
6103 (frame_unwind_register): Likewise.
6104 (frame_unwind_register_value): Likewise.
6105 (frame_unwind_register_signed): Likewise.
6106 (frame_unwind_register_unsigned): Likewise.
6107 * frame.h (frame_register_unwind): Likewise.
6108 (frame_unwind_register): Likewise.
6109 (frame_unwind_register_value): Likewise.
6110 (frame_unwind_register_signed): Likewise.
6111 (frame_unwind_register_unsigned): Likewise.
6112 (frame_unwind_arch): Likewise.
6113
e2e31f10
MR
61142018-07-20 Maciej W. Rozycki <macro@mips.com>
6115
6116 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
6117 ISA maintenance.
6118
2d389915
MR
61192018-07-20 Maciej W. Rozycki <macro@mips.com>
6120
6121 * mips-linux-nat.c (mips_linux_nat_target::read_description):
6122 Call `get_ptrace_pid' rather than extracting the ptrace PID by
6123 hand.
6124
cbb09508
KS
61252018-07-20 Keith Seitz <keiths@redhat.com>
6126
6127 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
6128 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
6129 m_compunit_symtab, m_language>: Add "m_" prefix.
6130 Update all uses.
6131 * buildsym.c: Update all uses.
6132
bfe2e011
TT
61332018-07-20 Tom Tromey <tom@tromey.com>
6134
6135 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
6136 * buildsym.h (record_line_ftype): Remove typedef.
6137
0e6f3061
TT
61382018-07-20 Tom Tromey <tom@tromey.com>
6139
6140 * buildsym-legacy.h (augment_type_symtab): Don't declare.
6141 (end_expandable_symtab): Likewise.
6142 (end_symtab_get_static_block): Likewise.
6143 (end_symtab_from_static_block): Likewise.
6144 * buildsym-legacy.c (augment_type_symtab): Remove.
6145 (end_expandable_symtab): Remove.
6146 (end_symtab_get_static_block): Remove.
6147 (end_symtab_from_static_block): Remove.
6148
804d2729
TT
61492018-07-20 Tom Tromey <tom@tromey.com>
6150
6151 * dwarf2read.c: Include buildsym.h.
6152 (struct dwarf2_cu) <builder>: New method.
6153 (fixup_go_packaging): Update.
6154 (process_full_comp_unit, process_full_type_unit): Update. Don't
6155 use scoped_free_pendings.
6156 (using_directives): Add "cu" parameter, remove "language".
6157 (read_import_statement, setup_type_unit_groups, )
6158 (read_func_scope, read_lexical_block_scope)
6159 (dwarf2_record_block_ranges, read_namespace): Update.
6160 (lnp_state_machine::lnp_state_machine): Add cu parameter.
6161 (lnp_state_machine::handle_end_sequence): Update.
6162 (class lnp_state_machine) <m_cu>: New member.
6163 <m_record_line_callback>: Remove.
6164 <m_currently_recording_lines>: New member.
6165 (lnp_state_machine::handle_set_file): Update.
6166 (noop_record_line): Remove.
6167 (dwarf_record_line_p): Add cu parameter.
6168 (dwarf_record_line_1, dwarf_finish_line): Likewise.
6169 (lnp_state_machine::record_line)
6170 (lnp_state_machine::lnp_state_machine)
6171 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6172 (dwarf_decode_lines): Update.
6173 (dwarf2_start_subfile): Add cu parameter.
6174 (dwarf2_start_symtab, new_symbol): Update.
6175 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
6176 Remove dwarf2_per_objfile parameter.
6177 (dwarf_decode_macros): Update.
6178
80e649fc
TT
61792018-07-20 Tom Tromey <tom@tromey.com>
6180
6181 * stabsread.c (define_symbol): Update.
6182 * buildsym-legacy.h (get_buildsym_compunit): Declare.
6183 * dwarf2read.c (new_symbol): Update.
6184 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
6185 * cp-namespace.c: Include buildsym.h.
6186 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
6187 * buildsym-legacy.c (get_buildsym_compunit): New function.
6188
0baae8db
TT
61892018-07-20 Tom Tromey <tom@tromey.com>
6190
6191 * xcoffread.c: Include buildsym-legacy.h.
6192 * windows-nat.c: Include buildsym-legacy.h.
6193 * stabsread.c: Include buildsym-legacy.h.
6194 * mdebugread.c: Include buildsym-legacy.h.
6195 * buildsym-legacy.h: New file.
6196 * buildsym-legacy.c: New file, from buildsym.c.
6197 * go32-nat.c: Include buildsym-legacy.h.
6198 * dwarf2read.c: Include buildsym-legacy.h.
6199 * dbxread.c: Include buildsym-legacy.h.
6200 * cp-namespace.c: Include buildsym-legacy.h.
6201 * coffread.c: Include buildsym-legacy.h.
6202 * buildsym.h: Move some contents to buildsym-legacy.h.
6203 * buildsym.c: Include buildsym-legacy.h. Move many functions to
6204 buildsym-legacy.c.
6205 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
6206
ab209f6f
TT
62072018-07-20 Tom Tromey <tom@tromey.com>
6208
6209 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
6210 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
6211 (buildsym_compunit::buildsym_compunit)
6212 (buildsym_compunit::~buildsym_compunit)
6213 (buildsym_compunit::get_macro_table): Define.
6214
74c72eac
TT
62152018-07-20 Tom Tromey <tom@tromey.com>
6216
6217 * buildsym.c (reset_symtab_globals): Remove.
6218 (buildsym_compunit::end_symtab_from_static_block): Update.
6219 (buildsym_compunit::augment_type_symtab): Update.
6220 (end_symtab_from_static_block): Call free_buildsym_compunit.
6221 (augment_type_symtab, end_symtab, end_expandable_symtab):
6222 Likewise.
6223
da6580e5
TT
62242018-07-20 Tom Tromey <tom@tromey.com>
6225
6226 * arch-utils.c: Do not include buildsym.h.
6227 * mipsread.c: Do not include buildsym.h.
6228 * machoread.c: Do not include buildsym.h.
6229 * elfread.c: Do not include buildsym.h.
6230
4a2125f5
TT
62312018-07-20 Tom Tromey <tom@tromey.com>
6232
6233 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
6234 initialization.
6235 (buildsym_compunit): Add new constructor.
6236 (struct buildsym_compunit) <get_last_source_file, finish_block,
6237 record_block_range, start_subfile, patch_subfile_names,
6238 push_subfile, pop_subfile, record_line, get_compunit_symtab,
6239 set_last_source_start_addr, get_last_source_start_addr,
6240 get_local_using_directives, set_local_using_directives,
6241 get_global_using_directives, outermost_context_p,
6242 get_current_context_stack, get_context_stack_depth,
6243 get_current_subfile, get_local_symbols, get_file_symbols,
6244 get_global_symbols, record_debugformat, record_producer,
6245 push_context, pop_context, end_symtab_get_static_block,
6246 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
6247 New public methods.
6248 <record_pending_block, finish_block_internal, make_blockvector,
6249 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
6250 private methods.
6251 Update all users.
6252
62532018-05-22 Tom Tromey <tom@tromey.com>
6254
6255 * buildsym.c (record_pending_block): Move earlier. Remove objfile
6256 parameter.
6257 (finish_block_internal): Update.
6258
6b213a47
TT
62592018-07-20 Tom Tromey <tom@tromey.com>
6260
6261 * buildsym.c (record_pending_block): Move earlier. Remove objfile
6262 parameter.
6263 (finish_block_internal): Update.
6264
b80a981d
TT
62652018-07-20 Tom Tromey <tom@tromey.com>
6266
6267 * buildsym.h (EXTERN): Don't define or undef.
6268 * buildsym.c (EXTERN): Don't define.
6269
ddb70602
TT
62702018-07-20 Tom Tromey <tom@tromey.com>
6271
6272 * buildsym.c: Remove TODO comment.
6273
b37dd3bc
TT
62742018-07-20 Tom Tromey <tom@tromey.com>
6275
6276 * coffread.c (coff_symtab_read): Update.
6277 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6278 (xcoff_new_init): Update.
6279 * mipsread.c (mipscoff_new_init): Update.
6280 * mdebugread.c (mdebug_build_psymtabs): Update.
6281 * elfread.c (elf_new_init): Update.
6282 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
6283 Update.
6284 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
6285 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6286 (stabsect_build_psymtabs): Update.
6287 * buildsym.h (buildsym_init): Don't declare.
6288 * buildsym.c: Update comment.
6289 (prepare_for_building): Remove.
6290 (start_symtab, restart_symtab): Update.
6291 (reset_symtab_globals): Update comment.
6292 (buildsym_init): Remove.
6293
e148f09d
TT
62942018-07-20 Tom Tromey <tom@tromey.com>
6295
6296 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
6297 * stabsread.c (patch_block_stabs, define_symbol, read_type)
6298 (read_enum_type, common_block_start, common_block_end)
6299 (cleanup_undefined_types_1, finish_global_stabs): Update.
6300 * mdebugread.c (psymtab_to_symtab_1): Update.
6301 * dwarf2read.c (fixup_go_packaging, read_func_scope)
6302 (read_lexical_block_scope, new_symbol): Update.
6303 * dbxread.c (process_one_symbol): Update.
6304 * coffread.c (coff_symtab_read, process_coff_symbol)
6305 (coff_read_enum_type): Update.
6306 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
6307 declare.
6308 (get_local_symbols, get_file_symbols, get_global_symbols): New
6309 functions.
6310 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
6311 m_global_symbols.
6312 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
6313 (~scoped_free_pendings): Update.
6314 (finish_block, prepare_for_building, reset_symtab_globals)
6315 (end_symtab_get_static_block, end_symtab_with_blockvector)
6316 (augment_type_symtab, push_context): Update.
6317 (get_local_symbols, get_file_symbols, get_global_symbols): New
6318 functions.
6319 (buildsym_init): Update.
6320
93b8bea4
TT
63212018-07-20 Tom Tromey <tom@tromey.com>
6322
6323 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
6324 (process_full_type_unit): Likewise.
6325 (dwarf2_start_symtab): Set list_in_scope.
6326
f62f6af5
TT
63272018-07-20 Tom Tromey <tom@tromey.com>
6328
6329 * dwarf2read.c (process_psymtab_comp_unit_reader)
6330 (build_type_psymtabs_reader): Do not set list_in_scope.
6331
1d376700
TT
63322018-07-20 Tom Tromey <tom@tromey.com>
6333
6334 * buildsym.c (free_pendings): Remove.
6335 (add_symbol_to_list, scoped_free_pendings)
6336 (finish_block_internal, buildsym_init): Update.
6337
c233e9c6
TT
63382018-07-20 Tom Tromey <tom@tromey.com>
6339
6340 * xcoffread.c (read_xcoff_symtab): Update.
6341 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
6342 Update.
6343 * dbxread.c (process_one_symbol): Update.
6344 * coffread.c (coff_symtab_read): Update.
6345 * buildsym.h (finish_block): Update.
6346 * buildsym.c (finish_block): Remove "listhead" argument.
6347 (end_symtab_get_static_block): Update.
6348
5ac04550
TT
63492018-07-20 Tom Tromey <tom@tromey.com>
6350
6351 * buildsym.h (class scoped_free_pendings): Remove constructor.
6352 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
6353 method.
6354 <m_pending_block_obstack, m_pending_blocks>: New members.
6355 (pending_block_obstack, pending_blocks): Remove.
6356 (scoped_free_pendings::scoped_free_pendings): Default.
6357 (~scoped_free_pendings): Update.
6358 (free_pending_blocks): Remove.
6359 (finish_block_internal, record_pending_block, make_blockvector)
6360 (end_symtab_get_static_block, augment_type_symtab, push_context)
6361 (buildsym_init): Update.
6362
7ea05a7b
TT
63632018-07-20 Tom Tromey <tom@tromey.com>
6364
6365 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
6366 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
6367 members.
6368 (pending_addrmap, pending_addrmap_obstack)
6369 (pending_addrmap_interesting): Remove.
6370 (scoped_free_pendings, record_block_range, make_blockvector)
6371 (prepare_for_building, reset_symtab_globals, buildsym_init):
6372 Update.
6373
3c65e5b3
TT
63742018-07-20 Tom Tromey <tom@tromey.com>
6375
6376 * xcoffread.c (process_linenos): Update.
6377 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
6378 * mdebugread.c (psymtab_to_symtab_1): Update.
6379 * dwarf2read.c (setup_type_unit_groups)
6380 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
6381 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
6382 * dbxread.c (process_one_symbol): Update.
6383 * coffread.c (coff_symtab_read, enter_linenos)
6384 (process_coff_symbol): Update.
6385 * buildsym.h (current_subfile): Don't declare.
6386 (get_current_subfile): Declare.
6387 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
6388 member.
6389 (start_subfile, free_buildsym_compunit, push_subfile)
6390 (prepare_for_building, start_symtab): Update.
6391 (get_current_subfile): New function.
6392
a60f3166
TT
63932018-07-20 Tom Tromey <tom@tromey.com>
6394
6395 * coffread.c (coff_symtab_read): Update.
6396 * xcoffread.c (read_xcoff_symtab): Update.
6397 * dwarf2read.c (new_symbol): Update.
6398 (read_func_scope, read_lexical_block_scope): Update.
6399 * dbxread.c (process_one_symbol): Update.
6400 * buildsym.h (context_stack, context_stack_depth): Don't declare.
6401 (outermost_context_p): Remove macro.
6402 (outermost_context_p, get_current_context_stack)
6403 (get_context_stack_depth): Declare.
6404 (pop_context): Return struct context_stack.
6405 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
6406 member.
6407 (context_stack_size): Remove.
6408 (INITIAL_CONTEXT_STACK_SIZE): Remove.
6409 (prepare_for_building, end_symtab_get_static_block)
6410 (augment_type_symtab, push_context): Update.
6411 (pop_context): Return struct context_stack.
6412 (outermost_context_p, get_current_context_stack)
6413 (get_context_stack_depth): New functions.
6414 (buildsym_init): Update.
6415
56ba65a0
TT
64162018-07-20 Tom Tromey <tom@tromey.com>
6417
6418 * rust-exp.y: Now a pure parser. Update all rules.
6419 (%union): Move earlier.
6420 (current_parser, work_obstack): Remove globals.
6421 (rust_parser, ~rust_parser): Update.
6422 (class rust_parser) <copy_name, concat3, crate_name, super_name,
6423 lex_character, lex_number, lex_string, lex_identifier,
6424 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
6425 convert_name, convert_params_to_expression,
6426 convert_ast_to_expression, ast_basic_type, ast_operation,
6427 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
6428 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
6429 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
6430 ast_array_type, ast_slice_type, ast_reference_type,
6431 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
6432 (rust_parse): Update.
6433 (rustyyerror, rustyylex): Add parser parameter.
6434 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
6435 (rust_lex_stringish_test, rust_lex_test_sequence)
6436 (rust_lex_test_trailing_dot, rust_lex_test_completion)
6437 (rust_lex_test_push_back, rust_lex_tests): Update.
6438
4c693332
PA
64392018-07-19 Pedro Alves <palves@redhat.com>
6440
6441 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
6442 gdb::unique_xmalloc_ptr.
6443 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
6444 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
6445 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
6446 copy-initialization.
6447 * guile/scm-pretty-print.c (ppscm_print_children): Use
6448 gdb::unique_xmalloc_ptr instead of cleanups.
6449 (gdbscm_apply_val_pretty_printer): Remove cleanups.
6450 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
6451 gdb::unique_xmalloc_ptr.
6452 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
6453 Adjust to use gdb::unique_xmalloc_ptr.
6454 * guile/scm-utils.c (extract_arg): Adjust.
6455 * guile/scm-value.c (gdbscm_value_field): Adjust to use
6456 gdb::unique_xmalloc_ptr instead of a cleanup.
6457
4581dc82
TT
64582018-07-19 Tom Tromey <tom@tromey.com>
6459
6460 * utils.c (do_value_free_to_mark)
6461 (make_cleanup_value_free_to_mark): Remove.
6462 * utils.h (make_cleanup_value_free_to_mark): Remove.
6463
43cc6c3a
PA
64642018-07-19 Pedro Alves <palves@redhat.com>
6465
6466 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
6467 forwarding reference.
6468
3a5f2a48
PA
64692018-07-18 Pedro Alves <palves@redhat.com>
6470
6471 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
6472 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
6473 cleanup.
6474
557e56be
PA
64752018-07-18 Pedro Alves <palves@redhat.com>
6476
6477 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
6478 exceptions.
6479 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
6480 (gdbscm_wrap): New.
6481 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
6482 directly instead of a cleanup.
6483 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
6484 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
6485 (vlscm_binop_gdbthrow): New, factored out from ...
6486 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
6487 (vlscm_rich_compare): Use gdbscm_wrap.
6488 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
6489 instead of a cleanup.
6490 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
6491 cleanup.
6492 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
6493 Use xfree directly instead of a cleanup.
6494 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
6495 Adjust to use gdbscm_wrap and scoped_value_mark.
6496 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
6497 (gdbscm_value_address, gdbscm_value_dereference)
6498 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
6499 scoped_value_mark.
6500 (gdbscm_value_dynamic_type): Use scoped_value_mark.
6501 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
6502 scoped_value_mark.
6503 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
6504 gdbscm_wrap and scoped_value_mark.
6505 (gdbscm_value_to_string): Use xfree directly instead of a
6506 cleanup. Move 'buffer' unique_ptr to TRY scope.
6507 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
6508 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
6509 scoped_value_mark.
6510 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
6511 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
6512 scoped_value_mark.
6513 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
6514 gdbscm_wrap.
6515
42dc7699
TV
65162018-07-18 Tom de Vries <tdevries@suse.de>
6517
6518 * findvar.c (default_read_var_value): Also resolve dynamic type for
6519 LOC_OPTIMIZED_OUT vars.
6520
6592ceed
MR
65212018-07-18 Maciej W. Rozycki <macro@mips.com>
6522
6523 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
6524 decoding.
6525
c6c6149a
TT
65262018-07-17 Tom Tromey <tom@tromey.com>
6527
6528 * guile/scm-param.c (pascm_set_func, pascm_show_func)
6529 (compute_enum_list, pascm_set_param_value_x)
6530 (gdbscm_parameter_value): Update.
6531 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
6532 (gdbscm_scm_to_host_string): Update.
6533 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
6534 Update.
6535 * guile/scm-cmd.c (cmdscm_add_completion): Update.
6536 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
6537 * guile/scm-string.c (gdbscm_scm_to_string): Return
6538 unique_xmalloc_ptr.
6539 (gdbscm_scm_to_host_string): Likewise.
6540
a1a31cb8
TT
65412018-07-17 Tom Tromey <tom@tromey.com>
6542
6543 * guile/guile.c (gdbscm_eval_from_control_command): Update.
6544 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
6545 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
6546 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
6547 unique_xmalloc_ptr.
6548
15bf3002
TT
65492018-07-17 Tom Tromey <tom@tromey.com>
6550
6551 * guile/scm-param.c (pascm_signal_setshow_error): Update.
6552 * guile/guile-internal.h (gdbscm_exception_message_to_string):
6553 Update.
6554 * guile/scm-cmd.c (cmdscm_function): Update.
6555 * guile/scm-pretty-print.c
6556 (ppscm_print_exception_unless_memory_error): Update.
6557 * guile/scm-exception.c (gdbscm_exception_message_to_string):
6558 Return unique_xmalloc_ptr.
6559
7eb1a66c
TT
65602018-07-17 Tom Tromey <tom@tromey.com>
6561
6562 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
6563 Use string_printf.
6564
ce73f310
JW
65652018-07-17 Jim Wilson <jimw@sifive.com>
6566
27724bad
JW
6567 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
6568 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
6569 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
6570 unecessary braces after EF_RISCV_RVC test. Delete call to
6571 set_gdbarch_decr_pc_after_break.
6572
ce73f310
JW
6573 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
6574 RISCV_LAST_FP_REGNUM + 1.
6575 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
6576
056dec39
TT
65772018-07-17 Tom Tromey <tom@tromey.com>
6578
6579 * configure.ac: Remove --disable-gdbcli.
6580 * configure: Rebuild.
6581 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
6582 (SUBDIR_CLI_CFLAGS): Remove.
6583 (SFILES): Use SUBDIR_CLI_SRCS.
6584 (COMMON_OBS): Use SUBDIR_CLI_OBS.
6585
4735f0ed
TT
65862018-07-17 Tom Tromey <tom@tromey.com>
6587
6588 PR gdb/18624:
6589 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
6590
117a0e99
JW
65912018-07-16 Jim Wilson <jimw@sifive.com>
6592
6593 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
6594
8a67aaa8
SM
65952018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6596
6597 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
6598 variable.
6599 (libunwind_frame_sniffer): Likewise.
6600 (libunwind_frame_prev_register): Likewise.
6601 (libunwind_sigtramp_frame_sniffer): Likewise.
6602 * ia64-tdep.c (ia64_access_reg): Likewise.
6603 (ia64_access_rse_reg): Likewise.
6604 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
6605 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
6606
ec74dcd8
SM
66072018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6608
6609 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
6610
a700e753
SM
66112018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6612
6613 * remote-sim.c (gdbsim_target::close,
6614 gdbsim_target::mourn_inferior): Remove unused variables.
6615
8b411ff8
SM
66162018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
6617
6618 * ia64-tdep.c (ktab_buf): New global.
6619 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
6620 (get_kernel_table): Adjust.
6621
edb0470b
TT
66222018-07-16 Tom Tromey <tom@tromey.com>
6623
6624 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
6625 * dwarf2read.c (using_directives, new_symbol): Use
6626 outermost_context_p.
6627 * dbxread.c (process_one_symbol): Use outermost_context_p.
6628 * coffread.c (coff_symtab_read): Use outermost_context_p.
6629
6cccc9a8
TT
66302018-07-16 Tom Tromey <tom@tromey.com>
6631
6632 * dwarf2read.c (using_directives, read_func_scope)
6633 (read_lexical_block_scope): Update.
6634 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6635 * buildsym.h (local_using_directives, global_using_directives):
6636 Don't declare.
6637 (get_local_using_directives, set_local_using_directives)
6638 (get_global_using_directives): Declare.
6639 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
6640 m_global_using_directives>: New members.
6641 (finish_block_internal, prepare_for_building)
6642 (reset_symtab_globals, end_symtab_get_static_block)
6643 (push_context): Update.
6644 (get_local_using_directives, set_local_using_directives)
6645 (get_global_using_directives): New functions.
6646 (buildsym_init): Update.
6647
652788a7
TT
66482018-07-16 Tom Tromey <tom@tromey.com>
6649
6650 * xcoffread.c (xcoff_initial_scan): Don't call
6651 free_pending_blocks.
6652 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
6653 * buildsym.h (class scoped_free_pendings): Add constructor.
6654 (free_pending_blocks): Don't declare.
6655 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
6656 (free_pending_blocks): Now static.
6657
8419ee53
TT
66582018-07-16 Tom Tromey <tom@tromey.com>
6659
6660 * buildsym.h (push_subfile, pop_subfile): Update declarations.
6661 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
6662 member.
6663 (struct subfile_stack): Remove.
6664 (subfile_stack): Remove.
6665 (push_subfile, pop_subfile, buildsym_init): Update.
6666
ccdac490
TT
66672018-07-16 Tom Tromey <tom@tromey.com>
6668
6669 * buildsym.c (push_subfile): Use gdb_assert.
6670 (pop_subfile): Use gdb_assert.
6671
43130d6f
TT
66722018-07-16 Tom Tromey <tom@tromey.com>
6673
6674 * buildsym.h (merge_symbol_lists): Remove.
6675 * buildsym.c (merge_symbol_lists): Remove.
6676
77d6f1aa
TT
66772018-07-16 Tom Tromey <tom@tromey.com>
6678
6679 * stabsread.c (scan_file_globals): Update comment.
6680 * stabsread.h (scan_file_globals): Move from buildsym.h.
6681 * buildsym.h (scan_file_globals): Move to stabsread.h.
6682
2c722d18
TT
66832018-07-16 Tom Tromey <tom@tromey.com>
6684
6685 * xcoffread.c (xcoff_new_init): Update.
6686 * mipsread.c (mipscoff_new_init): Update.
6687 * mdebugread.c (mdebug_build_psymtabs): Update.
6688 * elfread.c (elf_new_init): Update.
6689 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
6690 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
6691 * buildsym.h (buildsym_new_init): Don't declare.
6692 * buildsym.c (buildsym_new_init): Remove.
6693
5985ac61
TT
66942018-07-16 Tom Tromey <tom@tromey.com>
6695
6696 * stabsread.h (within_function): Move from buildsym.h.
6697 * stabsread.c (start_stabs): Clear within_function.
6698 * coffread.c (coff_start_symtab): Clear within_function.
6699 * buildsym.h (within_function): Move to stabsread.h.
6700 * buildsym.c (prepare_for_building): Update.
6701
6b84eeb2
TT
67022018-07-16 Tom Tromey <tom@tromey.com>
6703
6704 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
6705 * dwarf2read.c (dwarf2_start_symtab): Don't set
6706 processing_gcc_compilation.
6707 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
6708
2150c3ef
TT
67092018-07-16 Tom Tromey <tom@tromey.com>
6710
6711 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
6712 (next_symbol_text_func): Move from buildsym.h.
6713 * stabsread.c (hashname): Move from buildsym.c.
6714 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
6715 (next_symbol_text_func, hashname): Move to stabsread.h.
6716 * buildsym.c: Don't include bcache.h
6717 (hashname): Move to stasbread.c.
6718
0ec44fc0
TT
67192018-07-16 Tom Tromey <tom@tromey.com>
6720
6721 * buildsym.h (context_stack_size): Don't declare.
6722 * buildsym.c (context_stack_size): New global.
6723
81cc346d
TT
67242018-07-16 Tom Tromey <tom@tromey.com>
6725
6726 * dbxread.c (processing_acc_compilation): New global.
6727 * buildsym.h (processing_acc_compilation): Don't declare.
6728
2c99ee5c
TT
67292018-07-16 Tom Tromey <tom@tromey.com>
6730
6731 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
6732 * dbxread.c (read_ofile_symtab): Update.
6733 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
6734 * buildsym.h (last_source_start_addr): Remove.
6735 (set_last_source_start_addr, get_last_source_start_addr):
6736 Declare.
6737 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
6738 parameter.
6739 (struct buildsym_compunit) <m_last_source_start_addr>: New
6740 member.
6741 (prepare_for_building): Remove start_addr parameter.
6742 (start_symtab, restart_symtab, end_symtab_get_static_block)
6743 (end_symtab_with_blockvector): Update.
6744 (set_last_source_start_addr, get_last_source_start_addr): New
6745 functions.
6746
530fedbc
TT
67472018-07-16 Tom Tromey <tom@tromey.com>
6748
6749 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
6750 member.
6751 (have_line_numbers): Remove.
6752 (record_line, prepare_for_building, end_symtab_get_static_block)
6753 (augment_type_symtab): Update.
6754
6a976300
TT
67552018-07-16 Tom Tromey <tom@tromey.com>
6756
6757 * buildsym.c (~buildsym_compunit): Free the macro table.
6758 (struct buildsym_compunit) <get_macro_table, release_macros>: New
6759 methods.
6760 <m_pending_macros>: New member.
6761 (pending_macros): Remove.
6762 (~scoped_free_pendings, get_macro_table, prepare_for_building)
6763 (reset_symtab_globals, end_symtab_get_static_block)
6764 (end_symtab_with_blockvector, augment_type_symtab)
6765 (buildsym_init): Update.
6766
c0015d44
TT
67672018-07-16 Tom Tromey <tom@tromey.com>
6768
6769 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
6770 parameter.
6771 (buildsym_compunit::set_last_source_file): New method.
6772 <m_last_source_file>: New member.
6773 (prepare_for_building): Remove "name" parameter.
6774 (start_symtab, restart_symtab, reset_symtab_globals): Update.
6775 (last_source_file): Remove.
6776 (set_last_source_file, get_last_source_file): Update.
6777
e62cca7c
TT
67782018-07-16 Tom Tromey <tom@tromey.com>
6779
6780 * buildsym.c (prepare_for_building): Add assert.
6781
905eb0e2
TT
67822018-07-16 Tom Tromey <tom@tromey.com>
6783
6784 * buildsym.c (~buildsym_compunit): Update.
6785 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
6786 (start_subfile, patch_subfile_names)
6787 (end_symtab_with_blockvector): Update.
6788
b248663f
TT
67892018-07-16 Tom Tromey <tom@tromey.com>
6790
6791 * buildsym.c (struct buildsym_compunit): Add constructor,
6792 destructor, initializers.
6793 (start_buildsym_compunit): Remove.
6794 (free_buildsym_compunit): Use "delete".
6795 (start_symtab, restart_symtab): Use "new".
6796
ff27d073
SM
67972018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
6798
6799 * symfile.c (set_objfile_default_section_offset): Remove struct
6800 keyword.
6801
6a15ecf5
SH
68022018-07-14 Stafford Horne <shorne@gmail.com>
6803
6804 * (Responsible Maintainers): Add myself as or1k maintainer.
6805
027a4c30
TT
68062018-07-13 Tom Tromey <tom@tromey.com>
6807
6808 * symfile.c (set_objfile_default_section_offset): Use extra braces
6809 around initializer.
6810
5c1eda30
AA
68112018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6812
6813 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
6814 non-branching basr.
6815
bc7b042b
PW
68162018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6817
6818 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6819 unittests/cli-utils-selftests.c
6820 * unittests/cli-utils-selftests.c: New file.
6821
a14c4daa
PW
68222018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6823
6824 * NEWS: Mention new commands. Mention change to 'thread apply'.
6825
1fe75df7
PW
68262018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6827
6828 * thread.c (thr_try_catch_cmd): New function.
6829 (thread_apply_all_command): Handle qcs flags.
6830 (thread_apply_command): Handle qcs flags.
6831 (taas_command): New function.
6832 (tfaas_command): New function.
6833 (_initialize_thread): Update to setup the new commands 'taas
6834 and 'tfaas'. Change doc string for 'thread apply'.
6835
6a70eb7d
PW
68362018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6837
6838 * stack.c: (trailing_outermost_frame): New function, mostly
6839 extracted from backtrace_command_1.
6840 (leading_innermost_frame): New function.
6841 (backtrace_command_1): Update to call trailing_outermost_frame.
6842 (frame_apply_command_count): New function.
6843 (frame_apply_level_command): New function.
6844 (frame_apply_all_command): New function.
6845 (frame_apply_command): New function.
6846 (faas_command): New function.
6847 (frame_cmd_list): New variable.
6848 (_initialize_stack): Update to setup the new commands 'frame apply'
6849 and 'faas'.
6850
529c08b2
PW
68512018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6852
6853 * cli-utils.c (number_or_range_parser::get_number): Only handle
6854 numbers or convenience var as numbers.
6855 (parse_flags): New function.
6856 (parse_flags_qcs): New function.
6857 (number_or_range_parser::finished): Ensure parsing end is detected
6858 before end of string.
6859 * cli-utils.h (parse_flags): New function.
6860 (parse_flags_qcs): New function.
6861 (number_or_range_parser): Remove m_finished bool.
6862 (number_or_range_parser::skip_range): Set m_in_range to false.
6863
64b58472
SDJ
68642018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
6865
6866 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
6867 on Windows.
6868
c7ab0aef
SDJ
68692018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6870 Jan Kratochvil <jan.kratochvil@redhat.com>
6871 Paul Fertser <fercerpav@gmail.com>
6872 Tsutomu Seki <sekiriki@gmail.com>
6873 Pedro Alves <palves@redhat.com>
6874
6875 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6876 'unittests/parse-connection-spec-selftests.c'.
6877 (COMMON_SFILES): Add 'common/netstuff.c'.
6878 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
6879 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
6880 * common/netstuff.c: New file.
6881 * common/netstuff.h: New file.
6882 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
6883 (wait_for_connect): Update comment. New parameter
6884 'gdb::optional<int> sock' instead of 'struct serial *scb'.
6885 Use 'sock' directly instead of 'scb->fd'.
6886 (try_connect): New function, with code from 'net_open'.
6887 (net_open): Rewrite main loop to deal with multiple
6888 sockets/addresses. Handle IPv6-style hostnames; implement
6889 support for IPv6 connections.
6890 * unittests/parse-connection-spec-selftests.c: New file.
6891
4c7333b3
PA
68922018-07-11 Pedro Alves <palves@redhat.com>
6893
6894 PR gdb/23377
6895 * remote.c (remote_target::remote_detach_pid): Call
6896 set_current_process.
6897
a6f88f6e
PA
68982018-07-11 Pedro Alves <palves@redhat.com>
6899
6900 * h8300-tdep.c (h8300_gdbarch_init): Remove
6901 set_gdbarch_ecoff_reg_to_regnum calls.
6902
16ff70dd
SDJ
69032018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6904
6905 PR c++/23373
6906 * c-typeprint.c (c_type_print_base_struct_union): Don't print
6907 offsets/sizes for static members of a class/struct.
6908
12863263
AH
69092018-07-11 Alan Hayward <alan.hayward@arm.com>
6910
6911 * target-descriptions.c (tdesc_register_bitsize): Rename.
6912 * target-descriptions.h (tdesc_register_bitsize): Likewise.
6913 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
6914 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
6915
1123588c
TT
69162018-07-10 Tom Tromey <tom@tromey.com>
6917
6918 * breakpoint.c (moribund_locations): Now static and a
6919 std::vector.
6920 (breakpoint_init_inferior, moribund_breakpoint_here_p)
6921 (build_bpstat_chain, update_global_location_list)
6922 (breakpoint_retire_moribund): Update.
6923 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
6924 VEC.
6925
8c49aa89
AB
69262018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6927
6928 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
6929 (riscv_register_reggroup_p): Use new function, remove unneeded
6930 parenthesis.
6931 (riscv_push_dummy_call): Extend assert to compare against xlen or
6932 flen based on register type.
6933
42ecac17
AB
69342018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6935
6936 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
6937
055303e2
AB
69382018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6939
6940 * remote.c (show_hardware_watchpoint_limit): New function.
6941 (show_hardware_watchpoint_length_limit): New function.
6942 (show_hardware_breakpoint_limit): New function.
6943 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
6944 where appropriate, update help text.
6945
8fd32c1c
TT
69462018-07-09 Tom Tromey <tom@tromey.com>
6947
6948 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
6949 (CLIBS): Don't mention NAT_CLIBS.
6950
31278b51
TT
69512018-07-09 Tom Tromey <tom@tromey.com>
6952
6953 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
6954 (LIBGDB_OBS, clean mostlyclean): Update.
6955 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
6956
e5fd1493
TT
69572018-07-09 Tom Tromey <tom@tromey.com>
6958
6959 * Makefile.in (%.c: %.y): Use ECHO_YACC.
6960 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
6961 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
6962
981e0c0c
TT
69632018-07-09 Tom Tromey <tom@tromey.com>
6964
6965 * Makefile.in (ALLDEPFILES): Remove exec.c.
6966 (COMMON_OBS): Remove exec.o.
6967 (COMMON_SFILES): Add exec.c.
6968
14ccceb2
TT
69692018-07-09 Tom Tromey <tom@tromey.com>
6970
6971 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
6972
5d3c3a68
TT
69732018-07-09 Tom Tromey <tom@tromey.com>
6974
6975 * Makefile.in (clean mostlyclean): Remove stamp-version.
6976 (version.c): Depend on stamp-version.
6977 (stamp-version): New rule, from version.c rule.
6978
1998086d
TT
69792018-07-09 Tom Tromey <tom@tromey.com>
6980
6981 * Makefile.in (init.c): Depend on stamp-init.
6982 (stamp-init): New rule, from init.c rule.
6983 (clean mostlyclean): Remove stamp-init.
6984
4c754949
TT
69852018-07-09 Tom Tromey <tom@tromey.com>
6986
6987 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
6988 SUBDIR_GCC_COMPILE_SRCS.
6989
6497f1dd
TT
69902018-07-09 Tom Tromey <tom@tromey.com>
6991
6992 * Makefile.in (init.c): Remove some unused sed rules.
6993
97a34db9
TT
69942018-07-09 Tom Tromey <tom@tromey.com>
6995
6996 * Makefile.in (TSOBS): Remove.
6997 (INIT_FILES): Update.
6998 (LIBGDB_OBS): Update.
6999 (COMMON_SFILES): Add inflow.c.
7000 (SFILES): Remove inflow.c.
7001
25289ac1
JK
70022018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7003
7004 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
7005
e83f4d97
SM
70062018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
7007
4869c585
SM
7008 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
7009 get_saveloc_name, is_signal_frame_name, step_name,
7010 init_remote_name, create_addr_space_name,
7011 destroy_addr_space_name, search_unwind_table_name,
7012 find_dyn_list_name): Constify.
e83f4d97 7013
6821842f
SM
70142018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
7015
7016 * darwin-nat.c (darwin_pthread_kill): New function.
7017 (darwin_resume_thread): Use darwin_pthread_kill.
7018
c530603c
TV
70192018-07-05 Tom de Vries <tdevries@suse.de>
7020
7021 * macroexp.c (macro_buffer) <operator=>: New member function.
7022
a7d0f0f0
TT
70232018-07-04 Tom Tromey <tom@tromey.com>
7024
7025 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
7026
6242c6a6
SM
70272018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
7028
7029 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
7030 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
7031 * maint.c: Likewise.
7032 * top.c: Likewise.
7033
4e5b2f89
JB
70342018-07-04 Joel Brobecker <brobecker@adacore.com>
7035
7036 * NEWS: Create a new section for the next release branch.
7037 Rename the section of the current branch, now that it has
7038 been cut.
7039
538ccc4a
JB
70402018-07-04 Joel Brobecker <brobecker@adacore.com>
7041
7042 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
7043 * version.in: Bump version to 8.2.50.DATE-git.
7044
1b919490
VB
70452018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
7046 Pedro Alves <palves@redhat.com>
7047
7048 * linux-nat.c (linux_init_ptrace): Rename to ...
7049 (linux_init_ptrace_procfs): ... this. Call
7050 linux_proc_init_warnings.
7051 (linux_nat_target::post_attach)
7052 (linux_nat_target::post_startup_inferior): Adjust.
7053 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
7054 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
7055
1ea5da02
TV
70562018-07-04 Tom de Vries <tdevries@suse.de>
7057
7058 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
7059 check ...
7060 (read_comp_unit_head): ... here.
7061
f51e0e20
TT
70622018-07-03 Tom Tromey <tom@tromey.com>
7063
7064 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
7065 (stop_tracing, tstatus_command)
7066 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
7067 (print_one_static_tracepoint_marker): Update.
7068 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
7069 std::vector.
7070 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
7071 VEC.
7072 (all_tracepoints, static_tracepoints_here): Return std::vector.
7073
d7e15655
TT
70742018-07-03 Tom Tromey <tom@tromey.com>
7075
7076 * common/ptid.c (ptid_equal): Remove.
7077 * common/ptid.h (ptid_equal): Don't declare.
7078 * ada-tasks.c: Update.
7079 * breakpoint.c: Update.
7080 * common/agent.c: Update.
7081 * corelow.c: Update.
7082 * darwin-nat-info.c: Update.
7083 * darwin-nat.c: Update.
7084 * dcache.c: Update.
7085 * dtrace-probe.c: Update.
7086 * dummy-frame.c: Update.
7087 * fbsd-nat.c: Update.
7088 * frame.c: Update.
7089 * gdbthread.h: Update.
7090 * gnu-nat.c: Update.
7091 * go32-nat.c: Update.
7092 * inf-loop.c: Update.
7093 * inf-ptrace.c: Update.
7094 * infcall.c: Update.
7095 * infcmd.c: Update.
7096 * inflow.c: Update.
7097 * infrun.c: Update.
7098 * linux-fork.c: Update.
7099 * linux-nat.c: Update.
7100 * linux-thread-db.c: Update.
7101 * mi/mi-cmd-var.c: Update.
7102 * mi/mi-interp.c: Update.
7103 * mi/mi-main.c: Update.
7104 * nto-procfs.c: Update.
7105 * ppc-linux-tdep.c: Update.
7106 * procfs.c: Update.
7107 * python/py-inferior.c: Update.
7108 * python/py-record-btrace.c: Update.
7109 * python/py-record.c: Update.
7110 * ravenscar-thread.c: Update.
7111 * regcache.c: Update.
7112 * remote-sim.c: Update.
7113 * remote.c: Update.
7114 * sol-thread.c: Update.
7115 * solib.c: Update.
7116 * target.c: Update.
7117 * tui/tui-stack.c: Update.
7118 * varobj.c: Update.
7119 * windows-nat.c: Update.
7120 * windows-tdep.c: Update.
7121
26a57c92
TT
71222018-07-03 Tom Tromey <tom@tromey.com>
7123
7124 * common/ptid.c (ptid_match): Remove.
7125 * common/ptid.h (ptid_match): Don't declare.
7126 * fbsd-nat.c: Update.
7127 * infcmd.c: Update.
7128 * infrun.c: Update.
7129 * linux-nat.c: Update.
7130 * record-btrace.c: Update.
7131 * regcache.c: Update.
7132 * remote.c: Update.
7133
d2a107e3
TT
71342018-07-03 Tom Tromey <tom@tromey.com>
7135
7136 * common/ptid.c (ptid_tid_p): Remove.
7137 * common/ptid.h (ptid_tid_p): Don't declare.
7138 * sol-thread.c: Update.
7139
15a9e13e
TT
71402018-07-03 Tom Tromey <tom@tromey.com>
7141
7142 * common/ptid.c (ptid_lwp_p): Remove.
7143 * common/ptid.h (ptid_lwp_p): Don't declare.
7144 * fbsd-nat.c: Update.
7145 * linux-nat.c: Update.
7146 * nat/linux-procfs.c: Update.
7147 * nat/x86-linux-dregs.c: Update.
7148 * sol-thread.c: Update.
7149
0e998d96
TT
71502018-07-03 Tom Tromey <tom@tromey.com>
7151
7152 * common/ptid.c (ptid_is_pid): Remove.
7153 * common/ptid.h (ptid_is_pid): Don't declare.
7154 * infrun.c: Update.
7155 * linux-nat.c: Update.
7156 * mi/mi-interp.c: Update.
7157 * remote.c: Update.
7158 * thread.c: Update.
7159
cc6bcb54
TT
71602018-07-03 Tom Tromey <tom@tromey.com>
7161
7162 * common/ptid.c (ptid_get_tid): Remove.
7163 * common/ptid.h (ptid_get_tid): Don't declare.
7164 * ada-tasks.c: Update.
7165 * aix-thread.c: Update.
7166 * bsd-uthread.c: Update.
7167 * darwin-nat.c: Update.
7168 * fbsd-nat.c: Update.
7169 * i386-darwin-nat.c: Update.
7170 * infrun.c: Update.
7171 * linux-tdep.c: Update.
7172 * nto-procfs.c: Update.
7173 * ppc-ravenscar-thread.c: Update.
7174 * python/py-infthread.c: Update.
7175 * ravenscar-thread.c: Update.
7176 * sol-thread.c: Update.
7177 * sparc-ravenscar-thread.c: Update.
7178 * windows-nat.c: Update.
7179
e38504b3
TT
71802018-07-03 Tom Tromey <tom@tromey.com>
7181
7182 * common/ptid.c (ptid_get_lwp): Remove.
7183 * common/ptid.h (ptid_get_lwp): Don't declare.
7184 * aarch64-linux-nat.c: Update.
7185 * ada-tasks.c: Update.
7186 * aix-thread.c: Update.
7187 * amd64-linux-nat.c: Update.
7188 * arm-linux-nat.c: Update.
7189 * corelow.c: Update.
7190 * fbsd-nat.c: Update.
7191 * fbsd-tdep.c: Update.
7192 * gnu-nat.c: Update.
7193 * i386-cygwin-tdep.c: Update.
7194 * i386-gnu-nat.c: Update.
7195 * i386-linux-nat.c: Update.
7196 * ia64-linux-nat.c: Update.
7197 * inf-ptrace.c: Update.
7198 * infrun.c: Update.
7199 * linux-fork.c: Update.
7200 * linux-nat.c: Update.
7201 * linux-tdep.c: Update.
7202 * linux-thread-db.c: Update.
7203 * mips-linux-nat.c: Update.
7204 * nat/aarch64-linux-hw-point.c: Update.
7205 * nat/aarch64-linux.c: Update.
7206 * nat/linux-btrace.c: Update.
7207 * nat/linux-osdata.c: Update.
7208 * nat/linux-procfs.c: Update.
7209 * nat/x86-linux-dregs.c: Update.
7210 * obsd-nat.c: Update.
7211 * ppc-fbsd-nat.c: Update.
7212 * ppc-linux-nat.c: Update.
7213 * procfs.c: Update.
7214 * python/py-infthread.c: Update.
7215 * ravenscar-thread.c: Update.
7216 * remote.c: Update.
7217 * s390-linux-nat.c: Update.
7218 * sol-thread.c: Update.
7219 * sol2-tdep.c: Update.
7220 * spu-linux-nat.c: Update.
7221 * x86-linux-nat.c: Update.
7222 * xtensa-linux-nat.c: Update.
7223
e99b03dc
TT
72242018-07-03 Tom Tromey <tom@tromey.com>
7225
7226 * common/ptid.c (ptid_get_pid): Remove.
7227 * common/ptid.h (ptid_get_pid): Don't declare.
7228 * aarch64-linux-nat.c: Update.
7229 * ada-lang.c: Update.
7230 * aix-thread.c: Update.
7231 * alpha-bsd-nat.c: Update.
7232 * amd64-fbsd-nat.c: Update.
7233 * amd64-linux-nat.c: Update.
7234 * arm-linux-nat.c: Update.
7235 * arm-nbsd-nat.c: Update.
7236 * auxv.c: Update.
7237 * break-catch-syscall.c: Update.
7238 * breakpoint.c: Update.
7239 * bsd-uthread.c: Update.
7240 * corelow.c: Update.
7241 * ctf.c: Update.
7242 * darwin-nat.c: Update.
7243 * fbsd-nat.c: Update.
7244 * fbsd-tdep.c: Update.
7245 * gcore.c: Update.
7246 * gnu-nat.c: Update.
7247 * hppa-nbsd-nat.c: Update.
7248 * hppa-obsd-nat.c: Update.
7249 * i386-fbsd-nat.c: Update.
7250 * ia64-linux-nat.c: Update.
7251 * inf-ptrace.c: Update.
7252 * infcmd.c: Update.
7253 * inferior.c: Update.
7254 * inferior.h: Update.
7255 * inflow.c: Update.
7256 * infrun.c: Update.
7257 * linux-fork.c: Update.
7258 * linux-nat.c: Update.
7259 * linux-tdep.c: Update.
7260 * linux-thread-db.c: Update.
7261 * m68k-bsd-nat.c: Update.
7262 * mi/mi-interp.c: Update.
7263 * mi/mi-main.c: Update.
7264 * mips-linux-nat.c: Update.
7265 * mips-nbsd-nat.c: Update.
7266 * mips64-obsd-nat.c: Update.
7267 * nat/aarch64-linux-hw-point.c: Update.
7268 * nat/aarch64-linux.c: Update.
7269 * nat/linux-btrace.c: Update.
7270 * nat/linux-osdata.c: Update.
7271 * nat/linux-procfs.c: Update.
7272 * nat/x86-linux-dregs.c: Update.
7273 * nto-procfs.c: Update.
7274 * obsd-nat.c: Update.
7275 * ppc-linux-nat.c: Update.
7276 * ppc-nbsd-nat.c: Update.
7277 * ppc-obsd-nat.c: Update.
7278 * proc-service.c: Update.
7279 * procfs.c: Update.
7280 * python/py-inferior.c: Update.
7281 * python/py-infthread.c: Update.
7282 * ravenscar-thread.c: Update.
7283 * record.c: Update.
7284 * remote-sim.c: Update.
7285 * remote.c: Update.
7286 * rs6000-nat.c: Update.
7287 * s390-linux-nat.c: Update.
7288 * sh-nbsd-nat.c: Update.
7289 * sol-thread.c: Update.
7290 * sparc-nat.c: Update.
7291 * sparc64-tdep.c: Update.
7292 * spu-linux-nat.c: Update.
7293 * spu-tdep.c: Update.
7294 * target-debug.h: Update.
7295 * target.c: Update.
7296 * thread.c: Update.
7297 * tid-parse.c: Update.
7298 * tracefile-tfile.c: Update.
7299 * vax-bsd-nat.c: Update.
7300 * windows-nat.c: Update.
7301 * x86-linux-nat.c: Update.
7302 * x86-nat.c: Update.
7303
f2907e49
TT
73042018-07-03 Tom Tromey <tom@tromey.com>
7305
7306 * common/ptid.c (pid_to_ptid): Remove.
7307 * common/ptid.h (pid_to_ptid): Don't declare.
7308 * aix-thread.c: Update.
7309 * arm-linux-nat.c: Update.
7310 * common/ptid.c: Update.
7311 * common/ptid.h: Update.
7312 * corelow.c: Update.
7313 * ctf.c: Update.
7314 * darwin-nat.c: Update.
7315 * fbsd-nat.c: Update.
7316 * fork-child.c: Update.
7317 * gnu-nat.c: Update.
7318 * go32-nat.c: Update.
7319 * inf-ptrace.c: Update.
7320 * infcmd.c: Update.
7321 * inferior.c: Update.
7322 * infrun.c: Update.
7323 * linux-fork.c: Update.
7324 * linux-nat.c: Update.
7325 * nat/aarch64-linux-hw-point.c: Update.
7326 * nat/fork-inferior.c: Update.
7327 * nat/x86-linux-dregs.c: Update.
7328 * nto-procfs.c: Update.
7329 * obsd-nat.c: Update.
7330 * procfs.c: Update.
7331 * progspace.c: Update.
7332 * remote.c: Update.
7333 * rs6000-nat.c: Update.
7334 * s390-linux-nat.c: Update.
7335 * sol-thread.c: Update.
7336 * spu-linux-nat.c: Update.
7337 * target.c: Update.
7338 * top.c: Update.
7339 * tracefile-tfile.c: Update.
7340 * windows-nat.c: Update.
7341
fd79271b
TT
73422018-07-03 Tom Tromey <tom@tromey.com>
7343
7344 * common/ptid.h (ptid_build): Don't declare.
7345 * common/ptid.c (ptid_build): Remove.
7346 * aix-thread.c: Update.
7347 * bsd-kvm.c: Update.
7348 * bsd-uthread.c: Update.
7349 * common/agent.c: Update.
7350 * common/ptid.c: Update.
7351 * common/ptid.h: Update.
7352 * corelow.c: Update.
7353 * darwin-nat.c: Update.
7354 * fbsd-nat.c: Update.
7355 * gnu-nat.c: Update.
7356 * linux-fork.c: Update.
7357 * linux-nat.c: Update.
7358 * linux-thread-db.c: Update.
7359 * nat/linux-osdata.c: Update.
7360 * nat/linux-procfs.c: Update.
7361 * nto-procfs.c: Update.
7362 * obsd-nat.c: Update.
7363 * proc-service.c: Update.
7364 * procfs.c: Update.
7365 * ravenscar-thread.c: Update.
7366 * remote-sim.c: Update.
7367 * remote.c: Update.
7368 * sol-thread.c: Update.
7369 * target.c: Update.
7370 * windows-nat.c: Update.
7371
057302ce
TT
73722018-07-03 Tom Tromey <tom@tromey.com>
7373
7374 * infrun.c (follow_exec): Use exit_inferior_silent.
7375 * inferior.c (exit_inferior_num_silent): Remove.
7376 * inferior.h (exit_inferior_num_silent): Don't declare.
7377
a50c11c6
TT
73782018-07-03 Tom Tromey <tom@tromey.com>
7379
7380 PR cli/23340:
7381 * darwin-nat.c (darwin_attach_pid): Reset inferior and
7382 inferior_ptid on error.
7383
471b9d15
MR
73842018-07-02 Maciej W. Rozycki <macro@mips.com>
7385 Simon Marchi <simon.marchi@polymtl.ca>
7386
7387 PR tdep/8282
7388 * disasm.h (gdb_disassembler): Add
7389 `m_disassembler_options_holder'. member
7390 * disasm.c (get_all_disassembler_options): New function.
7391 (gdb_disassembler::gdb_disassembler): Use it.
7392 (gdb_buffered_insn_length_init_dis): Likewise.
7393 (gdb_buffered_insn_length): Adjust accordingly.
7394 (set_disassembler_options): Handle options with arguments.
7395 (show_disassembler_options_sfunc): Likewise. Add a leading new
7396 line if showing options with descriptions.
7397 (disassembler_options_completer): Adapt to using the
7398 `disasm_options_and_args_t' structure.
7399 * mips-tdep.c (mips_disassembler_options): New variable.
7400 (mips_disassembler_options_o32): Likewise.
7401 (mips_disassembler_options_n32): Likewise.
7402 (mips_disassembler_options_n64): Likewise.
7403 (gdb_print_insn_mips): Don't set `disassembler_options'.
7404 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
7405 functions.
7406 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
7407 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
7408 `gdbarch_disassembler_options_implicit' and
7409 `gdbarch_valid_disassembler_options'.
7410 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
7411 `disasm_options_and_args_t' structure.
7412 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
7413 method.
7414 (valid_disassembler_options): Switch from `disasm_options_t' to
7415 the `disasm_options_and_args_t' structure.
7416 * NEWS: Document `set disassembler-options' support for the MIPS
7417 target.
7418 * gdbarch.h: Regenerate.
7419 * gdbarch.c: Regenerate.
7420
41823f29
SH
74212018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
7422
7423 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
7424
41206e32
JB
74252018-06-29 Joel Brobecker <brobecker@adacore.com>
7426
7427 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
7428 parameter in call to amd64_target_description.
7429 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
7430 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
7431 (amd64fbsd_init_abi): Likewise.
7432 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7433 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7434 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7435 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
7436
de52b960
PA
74372018-06-29 Pedro Alves <palves@redhat.com>
7438
7439 * gdb/amd64-tdep.h (amd64_create_target_description): Add
7440 "segments" parameter.
7441 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
7442 (_initialize_amd64_tdep): Update call to
7443 amd64_create_target_description.
7444 (amd64_target_description): Add "segments" parameter. Adjust
7445 the implementation to use it.
7446 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
7447 call to amd64_create_target_description.
7448 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
7449 * gdb/arch/amd64.h (amd64_create_target_description): Add
7450 "segments" register.
7451 * gdb/arch/amd64.c (amd64_create_target_description): Add
7452 "segments" parameter. Call create_feature_i386_64bit_segments
7453 only if SEGMENTS is true.
7454 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
7455 call to amd64_create_target_description.
7456
75acb486
PA
74572018-06-29 Pedro Alves <palves@redhat.com>
7458
7459 * thread.c (thread_target_id_str): New, factored out from ...
7460 (print_thread_info_1): ... here. Use it to compute the max
7461 "Target Id" column width.
7462
c76a8ea3
PA
74632018-06-29 Pedro Alves <palves@redhat.com>
7464
7465 * remote.c (remote_target::extra_thread_info): Delete
7466 'display_buf' and 'n' locals. from the cache, regardless of
7467 packet mechanims is in use. Use cache for qThreadExtra and qP
7468 methods too.
7469
cd2bb709
PA
74702018-06-29 Pedro Alves <palves@redhat.com>
7471
7472 * blockframe.c (find_pc_sect_containing_function): New function.
7473 * breakpoint.c (print_breakpoint_location): Don't call
7474 find_pc_sect_function.
7475 * linespec.c (create_sals_line_offset): Record the location's
7476 symbol in the sal.
7477 * linespec.c (convert_address_location_to_sals): Fill in sal's
7478 symbol with find_pc_sect_containing_function.
7479 * symtab.c (find_function_start_sal): Rename to ...
7480 (find_function_start_sal_1): ... this.
7481 (find_function_start_sal): Reimplement as wrapper around
7482 find_function_start_sal_1, and use
7483 find_pc_sect_containing_function to fill in the sal's symbol.
7484 (find_function_start_sal(symbol*, bool)): Adjust.
7485 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
7486 comments.
7487 (find_pc_sect_containing_function): Declare.
7488
991ff292
PA
74892018-06-29 Pedro Alves <palves@redhat.com>
7490
7491 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
7492 true if the the location has no symbol.
7493
44cee4fd
TT
74942018-06-28 Tom Tromey <tom@tromey.com>
7495
7496 * NEWS: Mention --enable-codesign.
7497 * silent-rules.mk (ECHO_SIGN): New variable.
7498 * configure.ac: Add --enable-codesign.
7499 * configure: Rebuild.
7500 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
7501 (gdb$(EXEEXT)): Optionally invoke codesign.
7502
f2ffa92b
PA
75032018-06-28 Pedro Alves <palves@redhat.com>
7504
7505 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
7506 comments.
7507 (switch_to_thread_no_regs): Adjust comment.
7508 * infcmd.c (stop_pc): Delete.
7509 (post_create_inferior, info_program_command): Replace references
7510 to stop_pc with references to thread_info->suspend.stop_pc.
7511 * inferior.h (stop_pc): Delete declaration.
7512 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
7513 (handle_inferior_event_1, handle_signal_stop)
7514 (process_event_stop_test, keep_going_stepped_thread)
7515 (handle_step_into_function, handle_step_into_function_backward)
7516 (print_stop_location): Replace references to stop_pc with
7517 references to thread_info->suspend.stop_pc.
7518 (struct infcall_suspend_state) <stop_pc>: Delete field.
7519 (save_infcall_suspend_state, restore_infcall_suspend_state):
7520 Remove references to inf_stat->stop_pc.
7521 * linux-fork.c (fork_load_infrun_state): Likewise.
7522 * record-btrace.c (record_btrace_set_replay): Likewise.
7523 * record-full.c (record_full_goto_entry): Likewise.
7524 * remote.c (print_one_stopped_thread): Likewise.
7525 * target.c (target_resume): Extend comment.
7526 * thread.c (set_executing_thread): New.
7527 (set_executing): Use it.
7528 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
7529 Remove references to stop_pc.
7530
ecdc3a72
PA
75312018-06-28 Pedro Alves <palves@redhat.com>
7532
7533 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
7534 Moving fetching stop_pc until after ecs->event_thread is refreshed.
7535
d95d3aef
TT
75362018-06-28 Tom Tromey <tom@tromey.com>
7537
7538 * coffread.c (coff_symfile_finish): Update.
7539 * xcoffread.c (xcoff_symfile_finish): Update.
7540 * elfread.c (elf_symfile_finish): Update.
7541 * symfile.h (dwarf2_free_objfile): Don't declare.
7542 * dwarf2read.c (_initialize_dwarf2_read): Use
7543 register_objfile_data_with_cleanup.
7544 (dwarf2_free_objfile): Now static. Change signature.
7545
291f9a96
PT
75462018-06-28 Petr Tesarik <ptesarik@suse.cz>
7547
7548 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
7549 option "-o" to add-symbol-file-load to add an offset to each
7550 section's load address.
7551 * symfile.c (set_objfile_default_section_offset): New function.
7552
d81a3eaf
PT
75532018-06-28 Petr Tesarik <ptesarik@suse.cz>
7554
7555 * symfile.c (add_symbol_file_command): Make sure that sections
7556 with the same name are sorted in the same order.
7557
ed6dfe51
PT
75582018-06-28 Petr Tesarik <ptesarik@suse.cz>
7559
7560 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
7561 require the second argument. If omitted, load sections at the
7562 addresses specified in the file.
7563
d4d429d5
PT
75642018-06-28 Petr Tesarik <ptesarik@suse.cz>
7565
7566 * symfile.c (symbol_file_command, symbol_file_add_main_1)
7567 (_initialize_symfile): Add option "-o" to symbol-file to add an
7568 offset to each section of the symbol file.
7569
39b27ab6
PT
75702018-06-28 Petr Tesarik <ptesarik@suse.cz>
7571
7572 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
7573
41827fc3
TT
75742018-06-27 Tom Tromey <tom@tromey.com>
7575
7576 * stack.c (_initialize_stack): Update "func" help text.
7577
0c6aef22
TT
75782018-06-27 Tom Tromey <tom@tromey.com>
7579
7580 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
7581 std::vector.
7582 (unwind_infopy_str, pyuw_create_unwind_info)
7583 (unwind_infopy_add_saved_register, pyuw_sniffer)
7584 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
7585 Update.
7586 (struct saved_reg): Add constructor.
7587 <value>: Now a gdbpy_ref<>.
7588
63177289
TT
75892018-06-27 Tom Tromey <tom@tromey.com>
7590
7591 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
7592
e76f78a0
SM
75932018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7594
7595 * gdb-gdb.py.in: Format using autopep8.
7596
9a14af7b
SM
75972018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7598
7599 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
7600 (type_lookup_function): Recognize CORE_ADDR values.
7601
189366cd
SM
76022018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7603
7604 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
7605 print tag_name.
7606
68ad5fb9
SM
76072018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7608
7609 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
7610 <__lt__>: Add.
7611
141ec9f6
SM
76122018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7613
7614 * gdb-gdb.py: Move to...
7615 * gdb-gdb.py.in: ... here.
7616 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
7617 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
7618 dependencies.
7619 (distclean): Remove gdb-gdb.py when cleaning.
7620 (gdb-gdb.py, gdb-gdb.gdb): New rules.
7621 * configure: Re-generate.
7622
4c4e7ad4
PA
76232018-06-27 Pedro Alves <palves@redhat.com>
7624
7625 * proc-service.c (get_ps_regcache): New.
7626 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7627 (ps_lsetfpregs): Use it.
7628
7ab6656f
OJ
76292018-06-27 Omair Javaid <omair.javaid@linaro.org>
7630
7631 PR gdb/21695
4399bce9
PA
7632 * dwarf2read.c (lnp_state_machine::check_line_address): Update
7633 declaration.
7ab6656f
OJ
7634 (dwarf_decode_lines_1): Adjust.
7635
bd583225
SM
76362018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7637
7638 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
7639 override.
7640 <info_proc>: Likewise.
7641
9a325b7b
JB
76422018-06-26 Joel Brobecker <brobecker@adacore.com>
7643
7644 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
7645 to windows_fetch_one_register, and only handle the case of
7646 fetching one register. Move the code that reloads the context
7647 and iterates over all registers if R is negative to...
7648 (windows_nat_target::fetch_registers): ... here.
7649 (do_windows_store_inferior_registers): Rename to
7650 windows_store_one_register, and only handle the case of storing
7651 one register. Move the code that handles the case where r is
7652 negative to...
7653 (windows_nat_target::store_registers) ... here.
7654
a33ccfc7
TT
76552018-06-26 Tom Tromey <tom@tromey.com>
7656
7657 PR rust/22574:
7658 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
7659 * rust-lang.c (rust_print_struct_def): Add podata parameter.
7660 Update.
7661 (rust_internal_print_type): Add podata parameter.
7662 (rust_print_type): Update.
7663
e0c547d1
TT
76642018-06-26 Tom Tromey <tom@tromey.com>
7665
7666 * typeprint.h (struct print_offset_data) <update, finish,
7667 maybe_print_hole>: New methods.
7668 <indentation>: New constant.
7669 * typeprint.c (print_offset_data::indentation): Define.
7670 (print_offset_data::maybe_print_hole, print_offset_data::update)
7671 (print_offset_data::finish): Move from c-typeprint.c and rename.
7672 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
7673 (print_spaces_filtered_with_print_options): Update.
7674 (c_print_type_union_field_offset, maybe_print_hole)
7675 (c_print_type_struct_field_offset): Move to typeprint.c and
7676 rename.
7677 (c_type_print_base_struct_union): Update.
7678
75cbc781
PA
76792018-06-25 Pedro Alves <palves@redhat.com>
7680
7681 * gdbthread.h (thread_info_ref, delete_thread)
7682 (delete_thread_silent, first_thread_of_inferior)
7683 (any_thread_of_inferior, switch_to_thread)
7684 (enable_thread_stack_temporaries)
7685 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7686 (get_last_thread_stack_temporary)
7687 (value_in_thread_stack_temporaries, can_access_registers_thread):
7688 Spell out "struct thread_info" instead of just "thread_info".
7689 * inferior.h (notice_new_inferior): Likewise.
7690
b7a08269
PA
76912018-06-25 Pedro Alves <palves@redhat.com>
7692
7693 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
7694 pass thread_info pointer to delete_thread.
7695 (windows_nat_target::detach): Pass inferior pointer to
7696 detach_inferior.
7697 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
7698 delete_thread.
7699 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
7700 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
7701 and pass a thread_info pointer to delete_thread.
7702 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
7703 pass thread_info pointer to delete_thread.
7704 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
7705 delete_thread_silent call.
7706 * procfs.c (procfs_target::detach): Pass inferior pointer to
7707 detach_inferior.
7708 (procfs_target::wait): Pass thread_info pointer to delete_thread.
7709 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
7710 delete_thread_silent call.
7711 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
7712 pass thread_info pointer to delete_thread.
7713 (windows_nat_target::detach): Pass inferior pointer to
7714 delete_inferior.
7715
8e7767e3
AH
77162018-06-22 Alan Hayward <alan.hayward@arm.com>
7717
7718 * regcache.c (readable_regcache::read_part): Fix asserts.
7719 (reg_buffer::raw_collect_part): New function.
7720 (regcache::write_part): Fix asserts.
7721 (reg_buffer::raw_supply_part): New function.
7722 (regcache::transfer_regset_register): New helper function.
7723 (regcache::transfer_regset): Call new functions.
7724 (regcache_supply_regset): Use gdb_byte*.
7725 (regcache::supply_regset): Likewise.
7726 (regcache_collect_regset): Likewise.
7727 (regcache::collect_regset): Likewise.
7728 * regcache.h (reg_buffer::raw_collect_part): New declaration.
7729 (reg_buffer::raw_supply_part): Likewise.
7730 (regcache::transfer_regset_register): Likewise.
7731 (regcache::transfer_regset): Use gdb_byte*.
7732
bfd60e34
AH
77332018-06-22 Alan Hayward <alan.hayward@arm.com>
7734
7735 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
7736
00431a78
PA
77372018-06-21 Pedro Alves <palves@redhat.com>
7738
7739 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
7740 instead of a ptid_t. All callers adjusted.
7741 * ada-tasks.c (ada_get_task_number): Likewise. All callers
7742 adjusted.
7743 (print_ada_task_info, display_current_task_id, task_command_1):
7744 Adjust.
7745 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
7746 inferior_thread.
7747 (breakpoint_kind): Adjust.
7748 (remove_breakpoints_pid): Rename to ...
7749 (remove_breakpoints_inf): ... this. Adjust to take an inferior
7750 pointer. All callers adjusted.
7751 (bpstat_clear_actions): Use inferior_thread.
7752 (get_bpstat_thread): New.
7753 (bpstat_do_actions): Use it.
7754 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
7755 to take a thread_info pointer. All callers adjusted.
7756 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
7757 (breakpoint_re_set_thread): Use inferior_thread.
7758 * breakpoint.h (struct inferior): Forward declare.
7759 (bpstat_stop_status): Update.
7760 (remove_breakpoints_pid): Delete.
7761 (remove_breakpoints_inf): New.
7762 * bsd-uthread.c (bsd_uthread_target::wait)
7763 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
7764 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
7765 (maint_btrace_packet_history_cmd)
7766 (maint_btrace_clear_packet_history_cmd): Adjust.
7767 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
7768 inferior_thread.
7769 * cli/cli-interp.c: Include "inferior.h".
7770 * common/refcounted-object.h (struct
7771 refcounted_object_ref_policy): New.
7772 * compile/compile-object-load.c: Include gdbthread.h.
7773 (store_regs): Use inferior_thread.
7774 * corelow.c (core_target::close): Use current_inferior.
7775 (core_target_open): Adjust to use first_thread_of_inferior and use
7776 the current inferior.
7777 * ctf.c (ctf_target::close): Adjust to use current_inferior.
7778 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
7779 <thread>: ... this new field. All references adjusted.
7780 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
7781 Take a thread_info pointer instead of a ptid_t.
7782 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
7783 (dummy_frame_discard, register_dummy_frame_dtor): Take a
7784 thread_info pointer instead of a ptid_t.
7785 * elfread.c: Include "inferior.h".
7786 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
7787 Use inferior_thread.
7788 * eval.c (evaluate_subexp): Likewise.
7789 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
7790 inferior_thread.
7791 * gdb_proc_service.h (struct thread_info): Forward declare.
7792 (struct ps_prochandle) <ptid>: Delete, replaced by ...
7793 <thread>: ... this new field. All references adjusted.
7794 * gdbarch.h, gdbarch.c: Regenerate.
7795 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
7796 'thread' parameter. All implementations and callers adjusted.
7797 * gdbthread.h (thread_info) <set_running>: New method.
7798 (delete_thread, delete_thread_silent): Take a thread_info pointer
7799 instead of a ptid.
7800 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
7801 (first_thread_of_process): Delete, replaced by ...
7802 (first_thread_of_inferior): ... this new function. All callers
7803 adjusted.
7804 (any_live_thread_of_process): Delete, replaced by ...
7805 (any_live_thread_of_inferior): ... this new function. All callers
7806 adjusted.
7807 (switch_to_thread, switch_to_no_thread): Declare.
7808 (is_executing): Delete.
7809 (enable_thread_stack_temporaries): Update comment.
7810 <enable_thread_stack_temporaries>: Take a thread_info pointer
7811 instead of a ptid_t. Incref the thread.
7812 <~enable_thread_stack_temporaries>: Decref the thread.
7813 <m_ptid>: Delete
7814 <m_thr>: New.
7815 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7816 (get_last_thread_stack_temporary)
7817 (value_in_thread_stack_temporaries, can_access_registers_thread):
7818 Take a thread_info pointer instead of a ptid_t. All callers
7819 adjusted.
7820 * infcall.c (get_call_return_value): Use inferior_thread.
7821 (run_inferior_call): Work with thread pointers instead of ptid_t.
7822 (call_function_by_hand_dummy): Work with thread pointers instead
7823 of ptid_t. Use thread_info_ref.
7824 * infcmd.c (proceed_thread_callback): Access thread's state
7825 directly.
7826 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
7827 access thread's state directly.
7828 (continue_command): Use inferior_thread.
7829 (info_program_command): Use find_thread_ptid and access thread
7830 state directly.
7831 (proceed_after_attach_callback): Use thread state directly.
7832 (notice_new_inferior): Take a thread_info pointer instead of a
7833 ptid_t. All callers adjusted.
7834 (exit_inferior): Take an inferior pointer instead of a pid. All
7835 callers adjusted.
7836 (exit_inferior_silent): New.
7837 (detach_inferior): Delete.
7838 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
7839 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
7840 (detach_inferior_command, kill_inferior_command): Use
7841 find_inferior_id instead of valid_gdb_inferior_id and
7842 gdb_inferior_id_to_pid.
7843 (inferior_command): Use inferior and thread pointers.
7844 * inferior.h (struct thread_info): Forward declare.
7845 (notice_new_inferior): Take a thread_info pointer instead of a
7846 ptid_t. All callers adjusted.
7847 (detach_inferior): Delete declaration.
7848 (exit_inferior, exit_inferior_silent): Take an inferior pointer
7849 instead of a pid. All callers adjusted.
7850 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
7851 (valid_gdb_inferior_id): Delete.
7852 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
7853 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
7854 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
7855 ...
7856 <inf>: ... this new field.
7857 <step_ptid>: Delete, replaced by ...
7858 <step_thread>: ... this new field.
7859 (get_displaced_stepping_state): Take an inferior pointer instead
7860 of a pid. All callers adjusted.
7861 (displaced_step_in_progress_any_inferior): Adjust.
7862 (displaced_step_in_progress_thread): Take a thread pointer instead
7863 of a ptid_t. All callers adjusted.
7864 (displaced_step_in_progress, add_displaced_stepping_state): Take
7865 an inferior pointer instead of a pid. All callers adjusted.
7866 (get_displaced_step_closure_by_addr): Adjust.
7867 (remove_displaced_stepping_state): Take an inferior pointer
7868 instead of a pid. All callers adjusted.
7869 (displaced_step_prepare_throw, displaced_step_prepare)
7870 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
7871 All callers adjusted.
7872 (start_step_over): Adjust.
7873 (infrun_thread_ptid_changed): Remove bit updating ptids in the
7874 displaced step queue.
7875 (do_target_resume): Adjust.
7876 (fetch_inferior_event): Use inferior_thread.
7877 (context_switch, get_inferior_stop_soon): Take an
7878 execution_control_state pointer instead of a ptid_t. All callers
7879 adjusted.
7880 (switch_to_thread_cleanup): Delete.
7881 (stop_all_threads): Use scoped_restore_current_thread.
7882 * inline-frame.c: Include "gdbthread.h".
7883 (inline_state) <inline_state>: Take a thread pointer instead of a
7884 ptid_t. All callers adjusted.
7885 <ptid>: Delete, replaced by ...
7886 <thread>: ... this new field.
7887 (find_inline_frame_state): Take a thread pointer instead of a
7888 ptid_t. All callers adjusted.
7889 (skip_inline_frames, step_into_inline_frame)
7890 (inline_skipped_frames, inline_skipped_symbol): Take a thread
7891 pointer instead of a ptid_t. All callers adjusted.
7892 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
7893 (inline_skipped_frames, inline_skipped_symbol): Likewise.
7894 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
7895 pointers directly.
7896 * linux-nat.c (get_detach_signal): Likewise.
7897 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
7898 (thread_db_notice_clone): Adjust.
7899 (thread_db_find_new_threads_silently)
7900 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
7901 a thread pointer instead of a ptid_t. All callers adjusted.
7902 * mi/mi-cmd-var.c: Include "inferior.h".
7903 (mi_cmd_var_update_iter): Update to use thread pointers.
7904 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
7905 inferior directly.
7906 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
7907 out to ...
7908 (mi_output_running): ... this new function.
7909 (mi_on_resume_1): Adjust to use it.
7910 (mi_user_selected_context_changed): Adjust to use inferior_thread.
7911 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
7912 directly.
7913 (interrupt_thread_callback): : Adjust to use thread and inferior
7914 pointers.
7915 * proc-service.c: Include "gdbthread.h".
7916 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
7917 * progspace-and-thread.c: Include "inferior.h".
7918 * progspace.c: Include "inferior.h".
7919 * python/py-exitedevent.c (create_exited_event_object): Adjust to
7920 hold a reference to an inferior_object.
7921 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
7922 inferior_thread.
7923 * python/py-inferior.c (struct inferior_object): Give the type a
7924 tag name instead of a typedef.
7925 (python_on_normal_stop): No need to check if the current thread is
7926 listed.
7927 (inferior_to_inferior_object): Change return type to
7928 inferior_object. All callers adjusted.
7929 (find_thread_object): Delete, bits factored out to ...
7930 (thread_to_thread_object): ... this new function.
7931 * python/py-infthread.c (create_thread_object): Use
7932 inferior_to_inferior_object.
7933 (thpy_is_stopped): Use thread pointer directly.
7934 (gdbpy_selected_thread): Use inferior_thread.
7935 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
7936 field, replaced with ...
7937 <thread>: ... this new field. All users adjusted.
7938 (btpy_insn_or_gap_new): Drop const.
7939 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
7940 callers adjusted.
7941 * python/py-record.c: Include "gdbthread.h".
7942 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7943 a ptid_t. All callers adjusted.
7944 (gdbpy_current_recording): Use inferior_thread.
7945 * python/py-record.h (recpy_record_object) <ptid>: Delete
7946 field, replaced with ...
7947 <thread>: ... this new field. All users adjusted.
7948 (recpy_element_object) <ptid>: Delete
7949 field, replaced with ...
7950 <thread>: ... this new field. All users adjusted.
7951 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7952 a ptid_t. All callers adjusted.
7953 * python/py-threadevent.c: Include "gdbthread.h".
7954 (get_event_thread): Use thread_to_thread_object.
7955 * python/python-internal.h (struct inferior_object): Forward
7956 declare.
7957 (find_thread_object, find_inferior_object): Delete declarations.
7958 (thread_to_thread_object, inferior_to_inferior_object): New
7959 declarations.
7960 * record-btrace.c: Include "inferior.h".
7961 (require_btrace_thread): Use inferior_thread.
7962 (record_btrace_frame_sniffer)
7963 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
7964 (get_thread_current_frame): Use scoped_restore_current_thread and
7965 switch_to_thread.
7966 (get_thread_current_frame): Use thread pointer directly.
7967 (record_btrace_replay_at_breakpoint): Use thread's inferior
7968 pointer directly.
7969 * record-full.c: Include "inferior.h".
7970 * regcache.c: Include "gdbthread.h".
7971 (get_thread_arch_regcache): Use the inferior's address space
7972 directly.
7973 (get_thread_regcache, registers_changed_thread): New.
7974 * regcache.h (get_thread_regcache(thread_info *thread)): New
7975 overload.
7976 (registers_changed_thread): New.
7977 (remote_target) <remote_detach_1>: Swap order of parameters.
7978 (remote_add_thread): <remote_add_thread>: Return the new thread.
7979 (get_remote_thread_info(ptid_t)): New overload.
7980 (remote_target::remote_notice_new_inferior): Use thread pointers
7981 directly.
7982 (remote_target::process_initial_stop_replies): Use
7983 thread_info::set_running.
7984 (remote_target::remote_detach_1, remote_target::detach)
7985 (extended_remote_target::detach): Adjust.
7986 * stack.c (frame_show_address): Use inferior_thread.
7987 * target-debug.h (target_debug_print_thread_info_pp): New.
7988 * target-delegates.c: Regenerate.
7989 * target.c (default_thread_address_space): Delete.
7990 (memory_xfer_partial_1): Use current_inferior.
7991 (target_detach): Use current_inferior.
7992 (target_thread_address_space): Delete.
7993 (generic_mourn_inferior): Use current_inferior.
7994 * target.h (struct target_ops) <thread_address_space>: Delete.
7995 (target_thread_address_space): Delete.
7996 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
7997 pointers directly.
7998 (delete_thread_1, delete_thread, delete_thread_silent): Take a
7999 thread pointer instead of a ptid_t. Adjust all callers.
8000 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
8001 (first_thread_of_process): Delete, replaced by ...
8002 (first_thread_of_inferior): ... this new function. All callers
8003 adjusted.
8004 (any_thread_of_process): Rename to ...
8005 (any_thread_of_inferior): ... this, and take an inferior pointer.
8006 (any_live_thread_of_process): Rename to ...
8007 (any_live_thread_of_inferior): ... this, and take an inferior
8008 pointer.
8009 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
8010 (value_in_thread_stack_temporaries)
8011 (get_last_thread_stack_temporary): Take a thread pointer instead
8012 of a ptid_t. Adjust all callers.
8013 (thread_info::set_running): New.
8014 (validate_registers_access): Use inferior_thread.
8015 (can_access_registers_ptid): Rename to ...
8016 (can_access_registers_thread): ... this, and take a thread
8017 pointer.
8018 (print_thread_info_1): Adjust to compare thread pointers instead
8019 of ptids.
8020 (switch_to_no_thread, switch_to_thread): Make extern.
8021 (scoped_restore_current_thread::~scoped_restore_current_thread):
8022 Use m_thread pointer directly.
8023 (scoped_restore_current_thread::scoped_restore_current_thread):
8024 Use inferior_thread.
8025 (thread_command): Use thread pointer directly.
8026 (thread_num_make_value_helper): Use inferior_thread.
8027 * top.c (execute_command): Use inferior_thread.
8028 * tui/tui-interp.c: Include "inferior.h".
8029 * varobj.c (varobj_create): Use inferior_thread.
8030 (value_of_root_1): Use find_thread_global_id instead of
8031 global_thread_id_to_ptid.
8032
33bab475
AH
80332018-06-21 Alan Hayward <alan.hayward@arm.com>
8034
4399bce9
PA
8035 * regcache.c (readable_regcache::read_part): Avoid memcpy when
8036 possible.
8037 (regcache::write_part): Likewise.
8038 (readable_regcache::cooked_read_part): Update comment.
8039 (readable_regcache::cooked_write_part): Likewise.
8040 * regcache.h: (readable_regcache::read_part): Likewise.
8041 (regcache::write_part): Likewise.
33bab475 8042
8363f9d5
RB
80432018-06-21 Richard Bunt <richard.bunt@arm.com>
8044 Dirk Schubert <dirk.schubert@arm.com>
8045
8046 * aarch64-linux-nat.c (post_attach): New.
8047 (aarch64_linux_nat_target::post_attach): Override post_attach to
8048 record the number of hardware debug registers.
8049
0d0b0ea2
TT
80502018-06-20 Tom Tromey <tom@tromey.com>
8051
8052 * python/py-param.c (add_setshow_generic): Make parameters const.
8053 (parmpy_init): Update.
8054
302abd6e
SM
80552018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
8056
8057 * regcache.h (regcache_cooked_read_ftype): Rename to...
8058 (register_read_ftype): ...this, change type to function_view.
8059 (class reg_buffer) <save>: Remove src parameter.
8060 (readonly_detached_regcache) <readonly_detached_regcache>: Make
8061 parameter non-const in first overload. Remove src parameter in
8062 second overload.
8063 * regcache.c (do_cooked_read): Remove.
8064 (readonly_detached_regcache::readonly_detached_regcache): Make
8065 parameter non-const, adjust call to other constructor.
8066 (reg_buffer::save): Remove src parameter.
8067 * frame.c (do_frame_register_read): Remove.
8068 (frame_save_as_regcache): Use lambda function.
8069 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
8070 parameter to ppu2spu_data *.
8071 (ppu2spu_sniffer): Use lambda function.
8072
19f3f25f
SM
80732018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
8074
8075 * record-full.c (record_full_target::insert_breakpoint): Remove
8076 "struct" keyword, add const.
8077
d0ac1c44
SM
80782018-06-19 Simon Marchi <simon.marchi@ericsson.com>
8079
8080 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
8081 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
8082 * configure.ac: Remove AC_PREREQ, add missing quoting.
8083 * gnulib/configure.ac: Modernize usage of
8084 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
8085 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
8086 (AUTOMAKE_VERSION): Bump to 1.15.1.
8087 * configure: Re-generate.
8088 * config.in: Re-generate.
8089 * aclocal.m4: Re-generate.
8090 * gnulib/aclocal.m4: Re-generate.
8091 * gnulib/config.in: Re-generate.
8092 * gnulib/configure: Re-generate.
8093 * gnulib/import/Makefile.in: Re-generate.
8094
6ae50267
PA
80952018-06-19 Pedro Alves <palves@redhat.com>
8096
8097 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
8098 (lookup_minimal_symbol_by_pc_section): ... here with
8099 gdb_assert_not_reached added.
8100
61b04dd0
PA
81012018-06-19 Pedro Alves <palves@redhat.com>
8102
8103 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
8104 parameter with a block parameter. Compare location's block symbol
8105 with the frame's block instead of addresses.
8106 (skip_inline_frames): Pass the current block instead of the
8107 frame's address. Break out as soon as we determine the frame
8108 should not be skipped.
8109
f709fabb
TT
81102018-06-18 Tom Tromey <tom@tromey.com>
8111
8112 * solib-aix.c (solib_aix_get_section_offsets): Return
8113 unique_xmalloc_ptr.
8114 (solib_aix_solib_create_inferior_hook): Update.
8115
668eb2f0
TT
81162018-06-18 Tom Tromey <tom@tromey.com>
8117
8118 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
8119
309822ca
TT
81202018-06-18 Tom Tromey <tom@tromey.com>
8121
8122 * solib-frv.c (frv_relocate_main_executable): Use
8123 unique_xmalloc_ptr.
8124 * solib-dsbt.c (dsbt_relocate_main_executable): Use
8125 unique_xmalloc_ptr.
8126
06424eac
TT
81272018-06-18 Tom Tromey <tom@tromey.com>
8128
8129 * objfiles.h (inhibit_section_map_updates): Update.
8130 (resume_section_map_updates, resume_section_map_updates_cleanup):
8131 Remove.
8132 * solib-svr4.c (svr4_handle_solib_event): Update.
8133 * objfiles.c (inhibit_section_map_updates): Return
8134 scoped_restore_tmpl<int>.
8135 (resume_section_map_updates, resume_section_map_updates_cleanup):
8136 Remove.
8137
b4be9fad
TT
81382018-06-18 Tom Tromey <tom@tromey.com>
8139
8140 * valprint.h (read_string): Update.
8141 * valprint.c (read_string): Change type of "buffer".
8142 (val_print_string): Update.
8143 * python/py-value.c (valpy_string): Update.
8144 * language.h (struct language_defn) <la_get_string>: Change
8145 type of "buffer".
8146 (default_get_string, c_get_string): Update.
8147 * language.c (default_get_string): Change type of "buffer".
8148 * guile/scm-value.c (gdbscm_value_to_string): Update.
8149 * c-lang.c (c_get_string): Change type of "buffer".
8150
3f0dbd67
TT
81512018-06-18 Tom Tromey <tom@tromey.com>
8152
8153 * ser-mingw.c (struct pipe_state_destroyer): New.
8154 (pipe_state_up): New typedef.
8155 (cleanup_pipe_state): Remove.
8156 (pipe_windows_open): Use pipe_state_up. Don't release argv.
8157
69d340c6
TT
81582018-06-18 Tom Tromey <tom@tromey.com>
8159
8160 * rust-lang.h (rust_yyerror): Don't declare.
8161 * rust-lang.c (rust_language_defn): Update.
8162 * rust-exp.y (yyerror): Now static.
8163 * parse.c (parse_exp_in_context_1): Update.
8164 * p-lang.h (p_yyerror): Don't declare.
8165 * p-lang.c (p_language_defn): Update.
8166 * p-exp.y (yyerror): Now static.
8167 * opencl-lang.c (opencl_language_defn): Update.
8168 * objc-lang.c (objc_language_defn): Update.
8169 * m2-lang.h (m2_yyerror): Don't declare.
8170 * m2-lang.c (m2_language_defn): Update.
8171 * m2-exp.y (yyerror): Now static.
8172 * language.h (struct language_defn) <la_error>: Remove.
8173 * language.c (unk_lang_error): Remove.
8174 (unknown_language_defn, auto_language_defn): Remove.
8175 * go-lang.h (go_yyerror): Don't declare.
8176 * go-lang.c (go_language_defn): Update.
8177 * go-exp.y (yyerror): Now static.
8178 * f-lang.h (f_yyerror): Don't declare.
8179 * f-lang.c (f_language_defn): Update.
8180 * f-exp.y (yyerror): Now static.
8181 * d-lang.h (d_yyerror): Don't declare.
8182 * d-lang.c (d_language_defn): Update.
8183 * d-exp.y (yyerror): Now static.
8184 * c-lang.h (c_yyerror): Don't declare.
8185 * c-lang.c (c_language_defn, cplus_language_defn)
8186 (asm_language_defn, minimal_language_defn): Update.
8187 * c-exp.y (yyerror): Now static.
8188 * ada-lang.h (ada_yyerror): Don't declare.
8189 * ada-lang.c (ada_language_defn): Update.
8190 * ada-exp.y (yyerror): Now static.
8191
e9902bfc
AH
81922018-06-18 Alan Hayward <alan.hayward@arm.com>
8193
8194 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
8195 (store_sveregs_to_thread): Likewise.
8196 (aarch64_linux_fetch_inferior_registers): Check for SVE.
8197 (aarch64_linux_store_inferior_registers): Likewise.
8198 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
8199 function.
8200 (aarch64_sve_regs_copy_to_regcache): Likewise.
8201 (aarch64_sve_regs_copy_from_regcache): Likewise.
8202 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
8203 declaration.
8204 (aarch64_sve_regs_copy_to_regcache): Likewise.
8205 (aarch64_sve_regs_copy_from_regcache): Likewise.
8206 (sve_context): Structure from Linux headers.
8207 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
8208 (SVE_SIG_ZREG_SIZE): Likewise.
8209 (SVE_SIG_PREG_SIZE): Likewise.
8210 (SVE_SIG_FFR_SIZE): Likewise.
8211 (SVE_SIG_REGS_OFFSET): Likewise.
8212 (SVE_SIG_ZREGS_OFFSET): Likewise.
8213 (SVE_SIG_ZREG_OFFSET): Likewise.
8214 (SVE_SIG_ZREGS_SIZE): Likewise.
8215 (SVE_SIG_PREGS_OFFSET): Likewise.
8216 (SVE_SIG_PREG_OFFSET): Likewise.
8217 (SVE_SIG_PREGS_SIZE): Likewise.
8218 (SVE_SIG_FFR_OFFSET): Likewise.
8219 (SVE_SIG_REGS_SIZE): Likewise.
8220 (SVE_SIG_CONTEXT_SIZE): Likewise.
8221 (SVE_PT_REGS_MASK): Likewise.
8222 (SVE_PT_REGS_FPSIMD): Likewise.
8223 (SVE_PT_REGS_SVE): Likewise.
8224 (SVE_PT_VL_INHERIT): Likewise.
8225 (SVE_PT_VL_ONEXEC): Likewise.
8226 (SVE_PT_REGS_OFFSET): Likewise.
8227 (SVE_PT_FPSIMD_OFFSET): Likewise.
8228 (SVE_PT_FPSIMD_SIZE): Likewise.
8229 (SVE_PT_SVE_ZREG_SIZE): Likewise.
8230 (SVE_PT_SVE_PREG_SIZE): Likewise.
8231 (SVE_PT_SVE_FFR_SIZE): Likewise.
8232 (SVE_PT_SVE_FPSR_SIZE): Likewise.
8233 (SVE_PT_SVE_FPCR_SIZE): Likewise.
8234 (__SVE_SIG_TO_PT): Likewise.
8235 (SVE_PT_SVE_OFFSET): Likewise.
8236 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
8237 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
8238 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
8239 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
8240 (SVE_PT_SVE_PREG_OFFSET): Likewise.
8241 (SVE_PT_SVE_PREGS_SIZE): Likewise.
8242 (SVE_PT_SVE_FFR_OFFSET): Likewise.
8243 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
8244 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
8245 (SVE_PT_SVE_SIZE): Likewise.
8246 (SVE_PT_SIZE): Likewise.
8247 (HAS_SVE_STATE): New define.
8248
17a1cc89
AH
82492018-06-18 Alan Hayward <alan.hayward@arm.com>
8250
8251 * nat/aarch64-sve-linux-sigcontext.h: New file.
8252 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
8253 new files.
8254 (SVE_VQ_MIN): Likewise.
8255 (SVE_VQ_MAX): Likewise.
8256 (SVE_VL_MIN): Likewise.
8257 (SVE_VL_MAX): Likewise.
8258 (SVE_NUM_ZREGS): Likewise.
8259 (SVE_NUM_PREGS): Likewise.
8260 (sve_vl_valid): Likewise.
8261 (struct user_sve_header): Likewise.
8262
7010835a
AB
82632018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8264 Richard Bunt <Richard.Bunt@arm.com>
8265
8266 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
8267 was requested by GDB.
8268
479b3ef4
TV
82692018-06-15 Tom de Vries <tdevries@suse.de>
8270
8271 * MAINTAINERS (Write After Approval): Add Tom de Vries.
8272
8199b8f4
SM
82732018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
8274
8275 * gnulib/update-gnulib.sh: Print expected versions of
8276 autoconf/aclocal.
8277
55c748a1
SM
82782018-06-14 Simon Marchi <simon.marchi@ericsson.com>
8279
8280 * arch-utils.c (default_type_align): Use type_length_units.
8281 * gdbtypes.c (type_align): Use type_length_units.
8282
87a8eca7
PW
82832018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8284
8285 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
8286 of 'define' command.
8287
5d9a0608
TV
82882018-06-14 Tom de Vries <tdevries@suse.de>
8289
8290 PR cli/22573
8291 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
8292 get_no_prettyformat_print_options.
8293
ab89b5a5
SM
82942018-06-13 Simon Marchi <simon.marchi@ericsson.com>
8295
8296 * sparc-nat.h: Include target.h.
8297 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
8298 <fetch_registers>: Remove this argument in function call.
8299 <store_registers>: Remove this argument in function call, remove
8300 extra semicolon.
8301 <low_forget_process>: Call sparc64_forget_process instead of
8302 sparc_forget_process.
8303
62c808ae
RO
83042018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8305
8306 * procfs.c (_initialize_procfs): Use add_inf_child_target.
8307 (procfs_target::make_corefile_notes): Adjust to new
8308 target_read_alloc return type.
8309
1840d81a
AB
83102018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8311 Stephen Roberts <stephen.roberts@arm.com>
8312
8313 PR gdb/22882
8314 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
8315 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
8316 Move should_notify_stop local into more inner scope.
8317
9516f85a
AB
83182018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8319 Stephen Roberts <stephen.roberts@arm.com>
8320
8321 PR gdb/22882
8322 * infrun.c (resume_1): Add call to mark_async_event_handler.
8323
defd2172
AB
83242018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8325
8326 * infrun.c (do_target_wait): Change old version of $pc printed.
8327
7b23e087
SM
83282018-06-11 Simon Marchi <simon.marchi@ericsson.com>
8329
8330 * dwarf2read.c (read_index_from_section): Rename to...
8331 (read_gdb_index_from_section): ... this, update all callers.
8332 (dwarf2_read_index): Rename to...
8333 (dwarf2_read_gdb_index): ... this, update all callers.
8334
69c67a0b
JDA
83352018-06-11 John David Anglin <danglin@gcc.gnu.org>
8336
4399bce9 8337 * hppa-linux-nat.c
69c67a0b
JDA
8338 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
8339 hppa_linux_nat_target::fetch_registers.
8340
65d4cada
AH
83412018-06-11 Alan Hayward <alan.hayward@arm.com>
8342
8343 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
8344 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
8345 (AARCH64_DWARF_SVE_FFR): Likewise.
8346 (AARCH64_DWARF_SVE_P0): Likewise.
8347 (AARCH64_DWARF_SVE_Z0): Likewise.
8348
f868386e
AH
83492018-06-11 Alan Hayward <alan.hayward@arm.com>
8350
8351 * common/common-regcache.h (raw_compare): New function.
8352 * regcache.c (regcache::raw_compare): Likewise.
8353 * regcache.h (regcache::raw_compare): New declaration.
8354
9c861883
AH
83552018-06-11 Alan Hayward <alan.hayward@arm.com>
8356
8357 * common/common-regcache.h (reg_buffer_common): New structure.
8358 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
8359 (reg_buffer::raw_supply): Likewise.
8360 (reg_buffer::raw_supply_integer): Likewise.
8361 (reg_buffer::raw_supply_zeroed): Likewise.
8362 (reg_buffer::raw_collect): Likewise.
8363 (reg_buffer::raw_collect_integer): Likewise.
8364 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
8365 (reg_buffer::raw_supply): Likewise.
8366 (reg_buffer::raw_supply_integer): Likewise.
8367 (reg_buffer::raw_supply_zeroed): Likewise.
8368 (reg_buffer::raw_collect): Likewise.
8369 (reg_buffer::raw_collect_integer): Likewise.
8370
953edf2b
TT
83712018-06-10 Tom Tromey <tom@tromey.com>
8372
8373 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
8374 (class remote_state) <stop_reply_queue>: Now std::vector.
8375 (remote_state::~remote_state)
8376 (remote_target::stop_reply_queue_length): Update.
8377 (struct queue_iter_param, remove_child_of_pending_fork)
8378 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
8379 (check_pending_event_prevents_wildcard_vcont_callback)
8380 (remove_stop_reply_for_inferior)
8381 (remove_stop_reply_of_remote_state)
8382 (remote_notif_remove_once_on_match)
8383 (stop_reply_match_ptid_and_ws)
8384 (remote_kill_child_of_pending_fork): Remove.
8385 (remote_target::remove_new_fork_children)
8386 (remote_target::check_pending_events_prevent_wildcard_vcont)
8387 (remote_target::discard_pending_stop_replies)
8388 (remote_target::discard_pending_stop_replies_in_queue)
8389 (remote_target::remote_notif_remove_queued_reply)
8390 (remote_target::queued_stop_reply)
8391 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
8392 (remote_target::wait, remote_target::kill_new_fork_children)
8393 (remote_target::async): Update.
8394
1ddbba9d
TT
83952018-06-10 Tom Tromey <tom@tromey.com>
8396
8397 * record-full.c (record_full_arch_list_cleanups): Remove.
8398 (record_full_message): Use try/catch.
8399 (record_full_wait_cleanups): Remove.
8400 (record_full_wait_1): Use try/catch.
8401 (record_full_restore): Likewise.
8402
219605fd
TT
84032018-06-10 Tom Tromey <tom@tromey.com>
8404
8405 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
8406 declare VEC. Add constructor.
8407 <in_target_beneath>: Now bool.
8408 (record_full_breakpoints): Now a std::vector, static.
8409 (record_full_sync_record_breakpoints)
8410 (record_full_init_record_breakpoints)
8411 (record_full_target::insert_breakpoint)
8412 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
8413
71b73764
SM
84142018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8415
8416 * dwarf2read.c (process_cu_includes): Remove struct keyword.
8417 * serial.c (serial_interface_lookup): Remove struct keyword.
8418
4360561f
TT
84192018-06-10 Tom Tromey <tom@tromey.com>
8420
8421 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
8422 method.
8423 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
8424 a method.
8425 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
8426 method.
8427 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
8428 "beneath" as a method.
8429 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
8430 Use "beneath" as a method.
8431
d14b92bf
TT
84322018-06-10 Tom Tromey <tom@tromey.com>
8433
8434 * tracefile.c (struct trace_file_writer_deleter): New.
8435 <operator()>: Rename from trace_file_writer_xfree.
8436 (trace_file_writer_up): New typedef.
8437 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
8438
835dcf92
SM
84392018-06-09 Simon Marchi <simon.marchi@ericsson.com>
8440
8441 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
8442 <m_registers, m_register_status>: Change type to
8443 std::unique_ptr.
8444 * regcache.c (reg_buffer::reg_buffer): Use new instead of
8445 XCNEWVEC.
8446
aac0d564
SM
84472018-06-09 Simon Marchi <simon.marchi@ericsson.com>
8448
8449 * common/common-regcache.h (enum register_status): Add
8450 underlying type "signed char".
8451 * regcache.h (reg_buffer) <m_register_status>: Change type to
8452 register_status *.
8453 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
8454 register_status instead of signed char.
8455 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
8456 (reg_buffer::get_register_status): Remove cast.
8457 (readable_regcache::raw_read): Remove cast.
8458 (readable_regcache::cooked_read): Remove cast.
8459
77ad7394
TT
84602018-06-09 Tom Tromey <tom@tromey.com>
8461
8462 * source.c (reverse_search_command, forward_search_command): Use
8463 scoped_fd.
8464
191cca63
TT
84652018-06-09 Tom Tromey <tom@tromey.com>
8466
8467 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
8468 (serial_ops_list): Now static, std::vector.
8469 (serial_interface_lookup, serial_add_interface): Update.
8470
c5d0225d
TT
84712018-06-09 Tom Tromey <tom@tromey.com>
8472
8473 * dwarf2read.c (process_cu_includes): Update.
8474 (process_full_comp_unit): Update.
8475 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
8476 std::vector.
8477
aeab5128
PK
84782018-06-08 Paul Koning <paul_koning@dell.com>
8479
8480 PR gdb/23252
8481
8482 * python/python.c (do_start_initialization):
8483 Avoid call to internal Python API.
8484 (init__gdb_module): New function.
8485
5045b3d7
GB
84862018-06-08 Gary Benson <gbenson@redhat.com>
8487
8488 * linux-thread-db.c (valprint.h): New include.
8489 (struct check_thread_db_info): New structure.
8490 (check_thread_db_on_load, tdb_testinfo): New static globals.
8491 (check_thread_db, check_thread_db_callback): New functions.
8492 (try_thread_db_load_1): Run integrity checks if requested.
8493 (maintenance_check_libthread_db): New function.
8494 (_initialize_thread_db): Register "maint check libthread-db"
8495 and "maint set/show check-libthread-db".
8496 * NEWS: Mention the above new commands.
8497
2f4f025f
TT
84982018-06-08 Tom Tromey <tom@tromey.com>
8499
8500 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
8501 now a method.
8502
343b0027
TT
85032018-06-08 Tom Tromey <tom@tromey.com>
8504
8505 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
8506
8dcc53b3
TT
85072018-06-08 Tom Tromey <tom@tromey.com>
8508
8509 * common/btrace-common.h (struct btrace_data): Add constructor,
8510 destructor, move assignment operator.
8511 <empty, clear, fini>: New methods.
8512 <format>: Initialize.
8513 (btrace_data_init, btrace_data_fini, btrace_data_clear)
8514 (btrace_data_empty): Don't declare.
8515 * common/btrace-common.c (btrace_data_init): Remove.
8516 (btrace_data::fini): Rename from btrace_data_fini.
8517 (btrace_data::empty): Rename from btrace_data_empty.
8518 (btrace_data::clear): Rename from btrace_data_clear. Return
8519 bool.
8520 * btrace.h (make_cleanup_btrace_data): Don't declare.
8521 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
8522 (parse_xml_btrace): Update.
8523 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
8524 (maint_btrace_clear_packet_history_cmd): Update.
8525
a1740ee1
PA
85262018-06-07 Pedro Alves <palves@redhat.com>
8527
8528 * target.h (target_ops) <beneath>: Now a method. All references
8529 updated.
8530 (class target_stack): New.
8531 * target.c (g_target_stack): New.
8532 (g_current_top_target): Delete.
8533 (current_top_target): Get the top target out of g_target_stack.
8534 (target_stack::push, target_stack::unpush): New.
8535 (push_target, unpush_target): Reimplement.
8536 (target_is_pushed): Reimplement in terms of g_target_stack.
8537 (target_ops::beneath, target_stack::find_beneath): New.
8538
d6ca69cd
PA
85392018-06-07 Pedro Alves <palves@redhat.com>
8540
8541 * target.h (find_target_beneath): Delete declaration.
8542 * target.c (find_target_beneath): Delete definition.
8543 * aix-thread.c: All callers of find_target_beneath adjusted to
8544 call target_ops::beneath instead.
8545 * bsd-uthread.c: Likewise.
8546 * linux-thread-db.c: Likewise.
8547 * ravenscar-thread.c: Likewise.
8548 * sol-thread.c: Likewise.
8549 * spu-multiarch.c: Likewise.
8550
b6a8c27b
PA
85512018-06-07 Pedro Alves <palves@redhat.com>
8552
8553 * target.h (target_ops) <beneath>: Now a method. All references
8554 updated.
8555 (target_ops) <m_beneath>: New.
8556 * target.c (target_ops::beneath): New.
8557 * corelow.c: Adjust all references to target_ops::beneath.
8558 * linux-thread-db.c: Likewise.
8559 * make-target-delegates: Likewise.
8560 * record-btrace.c: Likewise.
8561 * record-full.c: Likewise.
8562 * remote.c: Likewise.
8563 * target.c: Likewise.
8564 * target-delegates.c: Regenerate.
8565
8b88a78e
PA
85662018-06-07 Pedro Alves <palves@redhat.com>
8567
8568 * target.h (target_stack): Delete.
8569 (current_top_target): Declare function.
8570 * target.c (target_stack): Delete.
8571 (g_current_top_target): New.
8572 (current_top_target): New function.
8573 * auxv.c: Use current_top_target instead of target_stack
8574 throughout.
8575 * avr-tdep.c: Likewise.
8576 * breakpoint.c: Likewise.
8577 * corefile.c: Likewise.
8578 * elfread.c: Likewise.
8579 * eval.c: Likewise.
8580 * exceptions.c: Likewise.
8581 * frame.c: Likewise.
8582 * gdbarch-selftests.c: Likewise.
8583 * gnu-v3-abi.c: Likewise.
8584 * ia64-tdep.c: Likewise.
8585 * ia64-vms-tdep.c: Likewise.
8586 * infcall.c: Likewise.
8587 * infcmd.c: Likewise.
8588 * infrun.c: Likewise.
8589 * linespec.c: Likewise.
8590 * linux-tdep.c: Likewise.
8591 * minsyms.c: Likewise.
8592 * ppc-linux-nat.c: Likewise.
8593 * ppc-linux-tdep.c: Likewise.
8594 * procfs.c: Likewise.
8595 * regcache.c: Likewise.
8596 * remote.c: Likewise.
8597 * rs6000-tdep.c: Likewise.
8598 * s390-linux-nat.c: Likewise.
8599 * s390-tdep.c: Likewise.
8600 * solib-aix.c: Likewise.
8601 * solib-darwin.c: Likewise.
8602 * solib-dsbt.c: Likewise.
8603 * solib-spu.c: Likewise.
8604 * solib-svr4.c: Likewise.
8605 * solib-target.c: Likewise.
8606 * sparc-tdep.c: Likewise.
8607 * sparc64-tdep.c: Likewise.
8608 * spu-tdep.c: Likewise.
8609 * symfile.c: Likewise.
8610 * symtab.c: Likewise.
8611 * target-descriptions.c: Likewise.
8612 * target-memory.c: Likewise.
8613 * target.c: Likewise.
8614 * target.h: Likewise.
8615 * tracefile-tfile.c: Likewise.
8616 * tracepoint.c: Likewise.
8617 * valops.c: Likewise.
8618 * valprint.c: Likewise.
8619 * value.c: Likewise.
8620 * windows-tdep.c: Likewise.
8621 * mi/mi-main.c: Likewise.
8622
c7110220
TT
86232018-06-07 Tom Tromey <tom@tromey.com>
8624
8625 * valprint.h (build_address_symbolic): Declare.
8626 * printcmd.c (print_address_symbolic): Update.
8627 (build_address_symbolic): Change "name" and "filename" to
8628 std::string.
8629 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
8630 Update.
8631 * defs.h (build_address_symbolic): Remove declaration.
8632
63bad7b6
AH
86332018-06-07 Alan Hayward <alan.hayward@arm.com>
8634
8635 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
8636 (aarch64_vnv_type): Add function.
8637 (aarch64_pseudo_register_name): Add V regs for SVE.
8638 (aarch64_pseudo_register_type): Likewise.
8639 (aarch64_pseudo_register_reggroup_p): Likewise.
8640 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
8641 (aarch64_pseudo_read_value): Add V regs for SVE.
8642 (aarch64_pseudo_write_2): Use V0 offset for SVE
8643 (aarch64_pseudo_write): Add V regs for SVE.
8644 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
8645
13e3c608
SDJ
86462018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
8647
8648 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
8649 (sve_vl_from_vq): Likewise.
8650
c61b06a1
TT
86512018-06-05 Tom Tromey <tom@tromey.com>
8652
8653 * cli/cli-cmds.c (show_version): Update.
8654 * top.c (print_gdb_version): Add "interactive" parameter.
8655 Update.
8656 * main.c (captured_main_1): Update.
8657 * top.h (print_gdb_version): Add "interactive" parameter and a
8658 comment.
8659
115f7325
DM
86602018-06-05 David Malcolm <dmalcolm@redhat.com>
8661
8662 * common/enum-flags.h: Add trailing semicolon to example in
8663 comment.
8664
eb6af809
TT
86652018-06-05 Tom Tromey <tom@tromey.com>
8666
8667 PR cli/12326:
8668 * NEWS: Add entry about pager.
8669 * utils.c (pagination_disabled_for_command): New global.
8670 (prompt_for_continue): Allow "c" response to prompt.
8671 (reinitialize_more_filter): Clear
8672 pagination_disabled_for_command.
8673 (fputs_maybe_filtered): Check pagination_disabled_for_command.
8674
54d343a2
TT
86752018-06-04 Tom Tromey <tom@tromey.com>
8676
8677 * ada-lang.h (ada_lookup_symbol_list): Update.
8678 * ada-lang.c (resolve_subexp): Update.
8679 (symbols_are_identical_enums): Change type of syms. Remove nsyms
8680 parameter.
8681 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
8682 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
8683 results parameter to std::vector.
8684 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
8685 Update.
8686 * ada-exp.y (block_lookup): Update.
8687 (select_possible_type_sym): Change type of syms. Remove nsyms
8688 parameter.
8689 (write_var_or_type, write_name_assoc): Update.
8690
178d6a63
JB
86912018-06-04 Joel Brobecker <brobecker@adacore.com>
8692
8693 * windows-nat.c (windows_nat_target::xfer_partial): Return
8694 TARGET_XFER_E_IO if we need to delegate to the target beneath
8695 but BENEATH is NULL.
8696
baf00c2d
SM
86972018-06-04 Simon Marchi <simon.marchi@ericsson.com>
8698
8699 * Makefile.in (config.status): Add configure.nat as a
8700 dependency.
8701
214b073c
TT
87022018-06-04 Tom Tromey <tom@tromey.com>
8703
8704 * cp-name-parser.y (cpname_state): Add method declarations.
8705 (HANDLE_QUAL): Update.
8706 (cpname_state::d_grab, cpname_state::fill_comp)
8707 (cpname_state::make_operator, cpname_state::make_dtor)
8708 (cpname_state::make_builtin_type, cpname_state::make_name)
8709 (cpname_state::d_qualify, cpname_state::d_int_type)
8710 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
8711 (%union): Move earlier.
8712
62b74cb8
AH
87132018-06-04 Alan Hayward <alan.hayward@arm.com>
8714
8715 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
8716
3c5cd5c3
AH
87172018-06-04 Alan Hayward <alan.hayward@arm.com>
8718
8719 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
8720 (aarch64_pseudo_write_1): Likewise.
8721 (aarch64_pseudo_read_value): Use helper.
8722 (aarch64_pseudo_write): Likewise.
8723
59f413d5
PA
87242018-06-04 Pedro Alves <palves@redhat.com>
8725
8726 * darwin-nat.c (darwin_ops): Delete.
8727 (darwin_attach_pid): Use get_native_target.
8728
1332a140
AH
87292018-06-04 Alan Hayward <alan.hayward@arm.com>
8730
8731 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
8732 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
8733
ba2d2bb2
AH
87342018-06-04 Alan Hayward <alan.hayward@arm.com>
8735
8736 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
8737 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
8738 (aarch64_gdbarch_init): Check for SVE.
8739 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
8740
87412018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
8742
8743 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
8744 * aarch64-tdep.h (aarch64_read_description): Likewise.
8745 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8746 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8747 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
8748 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
8749 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
8750
41c60b4b
SM
87512018-06-02 Simon Marchi <simon.marchi@ericsson.com>
8752
8753 * value.c (value_fetch_lazy_bitfield): New.
8754 (value_fetch_lazy_memory): New.
8755 (value_fetch_lazy_register): New.
8756 (value_fetch_lazy): Factor out to smaller functions.
8757
7b640f72
TT
87582018-06-01 Tom Tromey <tom@tromey.com>
8759
8760 * cp-name-parser.y (backslashable, represented): Now const.
8761
98e69eb3
TT
87622018-06-01 Tom Tromey <tom@tromey.com>
8763
8764 * cp-name-parser.y: Include parser-defs.h.
8765 (parser_fprintf): Remove declaration.
8766
49265499
TT
87672018-06-01 Tom Tromey <tom@tromey.com>
8768
8769 * cp-name-parser.y: Use %pure-parser, %lex-param, and
8770 %parse-param.
8771 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
8772 (global_result): Remove globals.
8773 (struct cpname_state): New.
8774 (yyparse): Don't declare.
8775 (yylex, yyerror): Move declarations after %union.
8776 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
8777 (make_name): Add state parameter.
8778 Update all callers.
8779 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
8780 parameter.
8781 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
8782 Update.
8783 (yylex): Add lvalp, state parameters.
8784 (yyerror): Add state parameter.
8785 (cp_demangled_name_to_comp): Update.
8786
55b6c984
TT
87872018-06-01 Tom Tromey <tom@tromey.com>
8788
8789 * cp-name-parser.y (parser_fprintf): Declare.
8790 (GDB_YY_REMAP_PREFIX): Define.
8791 Include yy-remap.h. Don't redefine yy* identifiers.
8792
3513a6bb
TT
87932018-06-01 Tom Tromey <tom@tromey.com>
8794
8795 * python/py-type.c (typy_legacy_template_argument): Update.
8796 * cp-support.h (cp_demangled_name_to_comp): Update.
8797 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
8798 parameter to be a "std::string *".
8799 (main): Update.
8800
e9cb46ab
L
88012018-06-01 H.J. Lu <hongjiu.lu@intel.com>
8802
8803 * ada-lex.l: Include "diagnostics.h" instead of
8804 "common/diagnostics.h".
8805 * unittests/environ-selftests.c: Likewise.
8806 * common/diagnostics.h: Moved to ../include.
8807
8e817061
JB
88082018-06-01 Joel Brobecker <brobecker@adacore.com>
8809
8810 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
8811 to language_mode_manual while calling breakpoint_re_set_one.
8812
a737d952
TT
88132018-06-01 Tom Tromey <tom@tromey.com>
8814
8815 * valops.c (value_cast_structs, destructor_name_p): Update.
8816 * symtab.c (gdb_mangle_name): Update.
8817 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
8818 Update.
8819 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
8820 (pascal_object_print_value_fields, pascal_object_print_value):
8821 Update.
8822 * p-typeprint.c (pascal_type_print_derivation_info): Update.
8823 * linespec.c (find_methods): Update.
8824 * gdbtypes.h (type_name_no_tag): Remove.
8825 (type_name_or_error): Rename from type_name_no_tag_or_error.
8826 * gdbtypes.c (type_name_no_tag): Remove.
8827 (type_name_or_error): Rename from type_name_no_tag_or_error.
8828 (lookup_struct_elt_type, check_typedef): Update.
8829 * expprint.c (print_subexp_standard): Update.
8830 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
8831 * d-namespace.c (d_lookup_nested_symbol): Update.
8832 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
8833 (cp_print_class_member): Update.
8834 * cp-namespace.c (cp_lookup_nested_symbol): Update.
8835 * completer.c (add_struct_fields): Update.
8836 * c-typeprint.c (cp_type_print_derivation_info)
8837 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
8838 Update.
8839 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
8840 (ada_prefer_type, ada_is_exception_sym): Update.
8841
e86ca25f
TT
88422018-06-01 Tom Tromey <tom@tromey.com>
8843
8844 * valops.c (enum_constant_from_type, value_namespace_elt)
8845 (value_maybe_namespace_elt): Update.
8846 * valarith.c (find_size_for_pointer_math): Update.
8847 * target-descriptions.c (make_gdb_type): Update.
8848 * symmisc.c (print_symbol): Update.
8849 * stabsread.c (define_symbol, read_type)
8850 (complain_about_struct_wipeout, add_undefined_type)
8851 (cleanup_undefined_types_1): Update.
8852 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
8853 (rust_range_type_p, val_print_struct, rust_print_struct_def)
8854 (rust_internal_print_type, rust_composite_type)
8855 (rust_evaluate_funcall, rust_evaluate_subexp)
8856 (rust_inclusive_range_type_p): Update.
8857 * python/py-type.c (typy_get_tag): Update.
8858 * p-typeprint.c (pascal_type_print_base): Update.
8859 * mdebugread.c (parse_symbol, parse_type): Update.
8860 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
8861 Update.
8862 * guile/scm-type.c (gdbscm_type_tag): Update.
8863 * go-lang.c (sixg_string_p): Update.
8864 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
8865 Update.
8866 * gdbtypes.h (struct main_type) <tag_name>: Remove.
8867 (TYPE_TAG_NAME): Remove.
8868 * gdbtypes.c (type_name_no_tag): Simplify.
8869 (check_typedef, check_types_equal, recursive_dump_type)
8870 (copy_type_recursive, arch_composite_type): Update.
8871 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
8872 in summary mode when needed.
8873 * eval.c (evaluate_funcall): Update.
8874 * dwarf2read.c (fixup_go_packaging, read_structure_type)
8875 (process_structure_scope, read_enumeration_type)
8876 (read_namespace_type, read_module_type, determine_prefix): Update.
8877 * cp-support.c (inspect_type): Update.
8878 * coffread.c (process_coff_symbol, decode_base_type): Update.
8879 * c-varobj.c (c_is_path_expr_parent): Update.
8880 * c-typeprint.c (c_type_print_base_struct_union): Update.
8881 (c_type_print_base_1): Update. Print struct/class/union/enum in
8882 summary when using C language.
8883 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
8884 (gen_maybe_namespace_elt): Update.
8885 * ada-lang.c (ada_type_name): Simplify.
8886 (empty_record, ada_template_to_fixed_record_type_1)
8887 (template_to_static_fixed_type)
8888 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
8889
c1ec8cea
TT
88902018-06-01 Tom Tromey <tom@tromey.com>
8891
8892 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
8893 c_print_type.
8894 * c-typeprint.c (c_print_type_1): Add "language" parameter.
8895 (c_print_type): Update.
8896 (c_print_type): New overload.
8897 (c_type_print_varspec_prefix, c_type_print_args)
8898 (c_type_print_varspec_suffix, c_print_type_no_offsets)
8899 (c_type_print_base_struct_union, c_type_print_base_1)
8900 (cp_type_print_method_args): Add "language" parameter.
8901 (c_type_print_base): Update.
8902 * c-lang.h (c_print_type): Add new overload.
8903
bc8453a7
TT
89042018-06-01 Tom Tromey <tom@tromey.com>
8905
8906 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
8907 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
8908
739e8682
AH
89092018-06-01 Alan Hayward <alan.hayward@arm.com>
8910
8911 * aarch64-tdep.c (aarch64_sve_register_names): New const
8912 var.
8913 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
8914 (AARCH64_SVE_Z_REGS_NUM): New define.
8915 (AARCH64_SVE_P_REGS_NUM): Likewise.
8916 (AARCH64_SVE_NUM_REGS): Likewise.
8917
8a60efe7
UB
89182018-05-31 Uros Bizjak <ubizjak@gmail.com>
8919
8920 * nat/linux-ptrace.h [__alpha__]
8921 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
8922 definitions.
8923
4b2dfa9d
MR
89242018-05-31 Maciej W. Rozycki <macro@mips.com>
8925
8926 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
8927 the endianness selected.
8928 * NEWS: Document `set endian auto' mode operation update.
8929
122394f1
AH
89302018-05-31 Alan Hayward <alan.hayward@arm.com>
8931
8932 * Makefile.in: Add new header.
8933 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
8934 (sve_vl_from_vg): Likewise.
8935 (sve_vq_from_vl): Likewise.
8936 (sve_vl_from_vq): Likewise.
8937 (sve_vq_from_vg): Likewise.
8938 (sve_vg_from_vq): Likewise.
8939 * configure.nat: Add new c file.
8940 * nat/aarch64-sve-linux-ptrace.c: New file.
8941 * nat/aarch64-sve-linux-ptrace.h: New file.
8942
95228a0d
AH
89432018-05-31 Alan Hayward <alan.hayward@arm.com>
8944
8945 * aarch64-linux-nat.c (aarch64_linux_read_description):
8946 Add parmeter zero.
8947 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8948 Likewise.
8949 * aarch64-tdep.c (tdesc_aarch64_list): Add.
8950 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
8951 (aarch64_gdbarch_init): Add parmeter zero.
8952 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
8953 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
8954 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
8955 parmeter.
8956 * doc/gdb.texinfo: Describe SVE feature
8957 * features/aarch64-sve.c: New file.
8958
5969f0db
OJ
89592018-05-31 Omair Javaid <omair.javaid@linaro.org>
8960
8961 PR gdb/23210
8962 * gdbarch.sh (significant_addr_bit): Default to zero when
8963 not set by target architecture.
8964 * gdbarch.c: Re-generated.
8965 * utils.c (address_significant): Update.
8966
61367c61
JB
89672018-05-30 Joel Brobecker <brobecker@adacore.com>
8968
8969 * stack.c (func_command): Remove trailing newline in call to error.
8970
34a79281
SM
89712018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8972
8973 * regcache.h (regcache_raw_collect): Remove, update callers to
8974 use regcache::raw_collect.
8975 * regcache.c (regcache_raw_collect): Remove.
8976
73e1c03f
SM
89772018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8978
8979 * regcache.h (regcache_raw_supply): Remove, update callers to
8980 use detached_regcache::raw_supply.
8981 * regcache.c (regcache_raw_supply): Remove.
8982
e4c4a59b
SM
89832018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8984
8985 * regcache.h (regcache_cooked_write_part): Remove, update
8986 callers to use regcache::cooked_write_part.
8987 * regcache.c (regcache_cooked_write_part): Remove.
8988
73bb0000
SM
89892018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8990
8991 * regcache.h (regcache_cooked_read_part): Remove, update callers
8992 to use readable_regcache::cooked_read_part.
8993 * regcache.c (regcache_cooked_read_part): Remove.
8994
46a45e9d
SM
89952018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8996
8997 * regcache.h (regcache_cooked_read_value): Remove, update
8998 callers to use readable_regcache::cooked_read_value.
8999 * regcache.c (regcache_cooked_read_value): Remove.
9000
b66f5587
SM
90012018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9002
9003 * regcache.h (regcache_cooked_write): Remove, update callers to
9004 use regcache::cooked_write.
9005 * regcache.c (regcache_cooked_write): Remove.
9006
6aa7d724
SM
90072018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9008
9009 * regcache.h (regcache_invalidate): Remove, update callers to
9010 use detached_regcache::invalidate instead.
9011 * regcache.c (regcache_invalidate): Remove.
9012
4f0420fd
SM
90132018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9014
9015 * regcache.h (regcache_raw_write_part): Remove, update callers
9016 to use regcache::raw_write_part instead.
9017 * regcache.c (regcache_raw_write_part): Remove.
9018
502fe83e
SM
90192018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9020
9021 * regcache.h (regcache_raw_read_part): Remove, update callers to
9022 use readable_regcache::raw_read_part instead.
9023 * regcache.c (regcache_raw_read_part): Remove.
9024
dca08e1f
SM
90252018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9026
9027 * regcache.h (regcache_cooked_read): Remove, update callers to
9028 use readable_regcache::cooked_read instead.
9029 * regcache.c (regcache_cooked_read): Remove.
9030
10eaee5f
SM
90312018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9032
9033 * regcache.h (regcache_raw_write): Remove, update callers to use
9034 regcache::raw_write instead.
9035 * regcache.c (regcache_raw_write): Remove.
9036
0b883586
SM
90372018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9038
9039 * regcache.h (regcache_raw_read): Remove, update callers to use
9040 readable_regcache::raw_read instead.
9041 * regcache.c (regcache_raw_read): Remove.
9042
0b47d985
SM
90432018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9044
9045 * regcache.h (regcache_raw_update): Remove, update callers to
9046 use readable_regcache::raw_update instead.
9047 * regcache.c (regcache_raw_update): Remove.
9048
0ec9f114
SM
90492018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9050
9051 * regcache.h (regcache_register_status): Remove, update callers
9052 to use reg_buffer::get_register_status directly instead.
9053 * regcache.c (regcache_register_status): Remove.
9054
222312d3
SM
90552018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9056
9057 * regcache.h (regcache_get_ptid): Remove, update all callers to
9058 call regcache::ptid instead.
9059 * regcache.c (regcache_get_ptid): Remove.
9060
fdbe37e3
SM
90612018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9062
9063 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
9064
f7c6f423
PA
90652018-05-30 Pedro Alves <palves@redhat.com>
9066
9067 * common/common-exceptions.h (exception_rethrow): Use
9068 ATTRIBUTE_NORETURN.
9069
52941706
SM
90702018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
9071
9072 * breakpoint.c (print_solib_event, check_status_catch_solib):
9073 Remove struct keyword in range-based for loops.
9074 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
9075 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
9076 Likewise.
9077 * linespec.c (find_superclass_methods, search_minsyms_for_name):
9078 Likewise.
9079 * symfile.c (addr_info_make_relative): Likewise.
9080 * thread.c (value_in_thread_stack_temporaries): Likewise.
9081
bf2977b5
WP
90822018-06-12 Weimin Pan <weimin.pan@oracle.com>
9083
9084 PR gdb/16841
9085 * valops.c (value_struct_elt_for_reference): Call check_typedef on
9086 aggregate type to get its real type before accessing it.
9087
64cc34d8
WP
90882018-05-29 Weimin Pan <weimin.pan@oracle.com>
9089
9090 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
9091 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
9092 * coff-pe-read.c (add_pe_forwarded_sym): Replace
9093 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
9094 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
9095 * jit.c (jit_breakpoint_re_set_internal): Likewise.
9096 * printcmd.c (info_address_command): Likewise.
9097
e7ec8713
TT
90982018-05-29 Tom Tromey <tom@tromey.com>
9099
9100 * windows-nat.c (handle_exception): Update fall-through comment.
9101
bcb430e4
TT
91022018-05-29 Tom Tromey <tom@tromey.com>
9103
9104 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
9105 (struct program_space) <added_solibs>: Now a std::vector.
9106 * breakpoint.c (print_solib_event): Update.
9107 (check_status_catch_solib): Update.
9108 * progspace.c (clear_program_space_solib_cache): Update.
9109 * solib.c (update_solib_list): Update.
9110
894882e3
TT
91112018-05-29 Tom Tromey <tom@tromey.com>
9112
9113 * python/py-type.c (typy_richcompare): Update.
9114 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
9115 * gdbtypes.h (types_deeply_equal): Return bool.
9116 (types_equal): Likewise.
9117 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
9118 declare VEC.
9119 (check_types_equal): Change worklist to std::vector. Return
9120 bool.
9121 (struct type_equality_entry): Add constructor.
9122 (compare_maybe_null_strings): Return bool.
9123 (check_types_worklist): Return bool. Change worklist to
9124 std::vector.
9125 (types_deeply_equal): Use std::vector.
9126 (types_equal): Return bool.
9127 (compare_maybe_null_strings): Simplify.
9128
10b2ded4
TT
91292018-05-29 Tom Tromey <tom@tromey.com>
9130
9131 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
9132
4f7deebe
TT
91332018-05-29 Tom Tromey <tom@tromey.com>
9134
9135 * objc-lang.h: Don't include cp-support.h.
9136 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
9137 declare VEC.
9138
b8283aea
TT
91392018-05-27 Tom Tromey <tom@tromey.com>
9140
9141 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
9142
41a883c8
TT
91432018-05-25 Tom Tromey <tom@tromey.com>
9144
9145 * value.c (value::location): Initialize.
9146
bf259e25
TT
91472018-05-25 Tom Tromey <tom@tromey.com>
9148
9149 * dbxread.c (init_bincl_list): Remove.
9150 (bincl_list): Now a std::vector.
9151 (bincls_allocated, next_bincl): Remove.
9152 (free_bincl_list, do_free_bincl_list_cleanup)
9153 (make_cleanup_free_bincl_list): Remove.
9154 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
9155 unique_xmalloc_ptr.
9156 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
9157 (struct header_file_location): Add constructor.
9158 (add_bincl_to_list): Remove.
9159
d525a99b
TT
91602018-05-25 Tom Tromey <tom@tromey.com>
9161
9162 * tui/tui.c (tui_enable): Update.
9163 * mi/mi-interp.c (mi_interp::init): Update.
9164 * interps.h (class interp) <name>: New method.
9165 <m_name>: Rename from name.
9166 (~scoped_restore_interp): Update.
9167 * interps.c (interp::interp): Update.
9168 (interp_add, interp_set, interp_lookup_existing)
9169 (current_interp_named_p): Update.
9170
da505cff
TT
91712018-05-25 Tom Tromey <tom@tromey.com>
9172
9173 * interps.c (interp_name): Remove.
9174 * mi/mi-interp.c (mi_interp::init): Update.
9175 * interps.h (interp_name): Remove.
9176 (~scoped_restore_interp): Update.
9177 * tui/tui.c (tui_enable): Update.
9178
29f94340
TT
91792018-05-25 Tom Tromey <tom@tromey.com>
9180
9181 * utils.c (fputs_maybe_filtered): Update.
9182 * linespec.c (decode_line_full): Update.
9183 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
9184 (mi_print_breakpoint_for_event, mi_solib_loaded)
9185 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
9186 (mi_user_selected_context_changed): Update.
9187 * mi/mi-main.c (mi_execute_command): Update.
9188 * cli/cli-script.c (execute_control_command): Update.
9189 * python/python.c (execute_gdb_command): Update.
9190 * solib.c (info_sharedlibrary_command): Update.
9191 * interps.c (interp_ui_out): Remove.
9192 * interps.h (interp_ui_out): Remove.
9193
716b8bc5
TT
91942018-05-25 Tom Tromey <tom@tromey.com>
9195
9196 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
9197 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
9198 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
9199
753ff9bd
TT
92002018-05-25 Tom Tromey <tom@tromey.com>
9201
9202 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
9203 * interps.c (interp_exec): Use scoped_restore.
9204
5ca3b260
TT
92052018-05-25 Tom Tromey <tom@tromey.com>
9206
9207 * remote.c (remote_target::remote_file_get): Use
9208 gdb::byte_vector.
9209 (remote_target::remote_file_put): Likewise.
9210
3173aa2f
TT
92112018-05-25 Tom Tromey <tom@tromey.com>
9212
9213 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
9214 a std::string.
9215 (get_pe_section_index, add_pe_exported_sym): Update.
9216 (read_pe_exported_syms): Use gdb::def_vector.
9217
09a5e1b5
TT
92182018-05-25 Tom Tromey <tom@tromey.com>
9219
9220 * frame.c (remove_prev_frame): Remove.
9221 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
9222
d8dab6c3
MR
92232018-05-25 Maciej W. Rozycki <macro@mips.com>
9224
9225 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
9226 Remove prototypes.
9227 * mips-linux-nat.c (supply_fpregset): Always call
9228 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
9229 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
9230 `mips_fill_fpregset'.
9231 * mips-linux-tdep.c (mips_supply_fpregset)
9232 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
9233 (mips_fill_fpregset_wrapper): Remove functions.
9234 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
9235 (mips_linux_fpregset): Remove variable.
9236 (mips_linux_iterate_over_regset_sections): Use
9237 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
9238 (mips_linux_o32_sigframe_init): Remove comment.
9239
3c69da40
PA
92402018-05-25 Pedro Alves <palves@redhat.com>
9241
9242 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
9243 (struct readahead_cache, struct packet_reg, struct
9244 remote_arch_state, class remote_state): Move higher up in the
9245 file.
9246 (remote_target::m_remote_state): Now an object instead of a pointer.
9247 (remote_target::get_remote_state): Adjust.
9248
39f0c204
AB
92492018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
9250
9251 * stack.c (select_and_print_frame): Delete.
9252 (struct function_bounds): Move struct within function.
9253 (func_command): Most content moved into new function
9254 find_frame_for_function, use new function, print result, add
9255 function comment.
9256 (find_frame_for_function): New function, now returns a result.
9257
d392224a
PW
92582018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9259
9260 * stack.c (iterate_over_block_arg_vars): Fix comment.
9261 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
9262
45f25d6c
AB
92632018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
9264
9265 PR gdb/23203
9266 * frame.c
9267 (scoped_restore_selected_frame::scoped_restore_selected_frame):
9268 Define.
9269 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
9270 Define.
9271 * frame.h (class scoped_restore_selected_frame): New class.
9272 * stack.c (print_frame_local_vars): Remove catching and rethrowing
9273 of any exception, use scoped_restore_selected_frame to restore the
9274 frame instead.
9275
da05d921
PA
92762018-05-24 Pedro Alves <palves@redhat.com>
9277
9278 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
9279 override.
9280
a8be540e
TT
92812018-05-23 Tom Tromey <tom@tromey.com>
9282
9283 * complaints.c (struct complaints): Remove.
9284 (symfile_complaint_book): Remove.
9285 (series): New global.
9286 (complaint_internal): Update.
9287 (clear_complaints): Update.
9288
ff1cf532
TT
92892018-05-23 Tom Tromey <tom@tromey.com>
9290
9291 * complaints.c (counters): New global.
9292 (struct complain): Remove.
9293 (struct complaints) <root>: Remove.
9294 (complaint_sentinel): Remove.
9295 (symfile_complaint_book): Update.
9296 (find_complaint) Remove.
9297 (complaint_internal, clear_complaints): Update.
9298
7ff88174
TT
92992018-05-23 Tom Tromey <tom@tromey.com>
9300
9301 * complaints.c (struct complain) <file, line>: Remove.
9302 (find_complaint): Remove file, line parameters.
9303 (complaint_internal): Update.
9304
de54e1a5
TT
93052018-05-23 Tom Tromey <tom@tromey.com>
9306
9307 * complaints.c (vcomplaint): Remove.
9308 (complaint_internal) Merge in contents of vcomplaint.
9309
2ac237e5
TT
93102018-05-23 Tom Tromey <tom@tromey.com>
9311
9312 * complaints.c (struct complaints) <explanation>: Remove.
9313 (symfile_explanations): Remove.
9314 (symfile_complaint_book): Update.
9315 (vcomplaint): Update.
9316 (struct explanation): Remove.
9317
b98664d3
TT
93182018-05-23 Tom Tromey <tom@tromey.com>
9319
9320 * complaints.c (symfile_complaints): Remove.
9321 (complaint_internal): Remove "complaints" parameter.
9322 (clear_complaints, vcomplaint): Remove "c" parameter.
9323 (get_complaints): Remove.
9324 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
9325 (dwarf2_debug_line_missing_file_complaint)
9326 (dwarf2_debug_line_missing_end_sequence_complaint)
9327 (dwarf2_complex_location_expr_complaint)
9328 (dwarf2_const_value_length_mismatch_complaint)
9329 (dwarf2_section_buffer_overflow_complaint)
9330 (dwarf2_macro_malformed_definition_complaint)
9331 (dwarf2_invalid_attrib_class_complaint)
9332 (create_addrmap_from_index, dw2_symtab_iter_next)
9333 (dw2_expand_marked_cus)
9334 (dw2_debug_names_iterator::find_vec_in_debug_names)
9335 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
9336 (create_debug_type_hash_table, init_cutu_and_read_dies)
9337 (partial_die_parent_scope, add_partial_enumeration)
9338 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
9339 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
9340 (read_import_statement, read_file_scope, create_dwo_cu_reader)
9341 (create_cus_hash_table, create_dwp_hash_table)
9342 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9343 (dwarf2_rnglists_process, dwarf2_ranges_process)
9344 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
9345 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
9346 (handle_struct_member_die, process_structure_scope)
9347 (read_array_type, read_common_block, read_module_type)
9348 (read_tag_pointer_type, read_typedef, read_base_type)
9349 (read_subrange_type, load_partial_dies, partial_die_info::read)
9350 (partial_die_info::read, partial_die_info::read)
9351 (partial_die_info::read, read_checked_initial_length_and_offset)
9352 (dwarf2_string_attr, read_formatted_entries)
9353 (dwarf_decode_line_header)
9354 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
9355 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
9356 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
9357 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9358 (get_signatured_type, get_DW_AT_signature_type)
9359 (decode_locdesc, file_file_name, consume_improper_spaces)
9360 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
9361 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9362 (dwarf2_symbol_mark_computed, set_die_type)
9363 (read_attribute_value): Update.
9364 * stap-probe.c (handle_stap_probe, get_stap_base_address):
9365 Update.
9366 * dbxread.c (unknown_symtype_complaint)
9367 (lbrac_mismatch_complaint, repeated_header_complaint)
9368 (set_namestring, function_outside_compilation_unit_complaint)
9369 (read_dbx_symtab, process_one_symbol): Update.
9370 * gdbtypes.c (stub_noname_complaint): Update.
9371 * windows-nat.c (handle_unload_dll): Update.
9372 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
9373 (decode_base_type): Update.
9374 * xcoffread.c (bf_notfound_complaint, ef_complaint)
9375 (eb_complaint, record_include_begin, record_include_end)
9376 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
9377 (process_xcoff_symbol, read_symbol)
9378 (function_outside_compilation_unit_complaint)
9379 (scan_xcoff_symtab): Update.
9380 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
9381 * buildsym.c (finish_block_internal, make_blockvector)
9382 (end_symtab_get_static_block, augment_type_symtab): Update.
9383 * dtrace-probe.c (dtrace_process_dof)
9384 (dtrace_static_probe_ops::get_probes): Update.
9385 * complaints.h (struct complaint): Don't declare.
9386 (symfile_complaints): Remove.
9387 (complaint_internal): Remove "complaints" parameter.
9388 (complaint): Likewise.
9389 (clear_complaints): Likewise.
9390 * symfile.c (syms_from_objfile_1, finish_new_objfile)
9391 (reread_symbols): Update.
9392 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
9393 (dwarf2_frame_cache, decode_frame_entry): Update.
9394 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
9395 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9396 (info_selectors_command): Update.
9397 * macrotab.c (macro_include, check_for_redefinition)
9398 (macro_undef): Update.
9399 * objfiles.c (filter_overlapping_sections): Update.
9400 * stabsread.c (invalid_cpp_abbrev_complaint)
9401 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
9402 (define_symbol, error_type, read_type, rs6000_builtin_type)
9403 (stabs_method_name_from_physname, read_member_functions)
9404 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
9405 (attach_fields_to_type, complain_about_struct_wipeout)
9406 (read_range_type, read_args, common_block_start)
9407 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
9408 Update.
9409 * mdebugread.c (index_complaint, unknown_ext_complaint)
9410 (basic_type_complaint, bad_tag_guess_complaint)
9411 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
9412 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
9413 (parse_procedure, parse_lines)
9414 (function_outside_compilation_unit_complaint)
9415 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
9416 (bad_tag_guess_complaint, reg_value_complaint): Update.
9417 * cp-support.c (demangled_name_complaint): Update.
9418 * macroscope.c (sal_macro_scope): Update.
9419 * dwarf-index-write.c (class debug_names): Update.
9420
4e9668d0
TT
94212018-05-23 Tom Tromey <tom@tromey.com>
9422
9423 * complaints.c (clear_complaints): Remove "noisy" parameter.
9424 * complaints.h (clear_complaints): Update.
9425 * symfile.c (syms_from_objfile_1, finish_new_objfile)
9426 (reread_symbols): Update.
9427
43ba33c7
TT
94282018-05-23 Tom Tromey <tom@tromey.com>
9429
9430 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
9431 SUBSEQUENT_MESSAGE.
9432 (vcomplaint, clear_complaints): Update.
9433 (symfile_explanations): Remove some messages.
9434
2b9496b2
TT
94352018-05-23 Tom Tromey <tom@tromey.com>
9436
9437 * complaints.c (internal_complaint): Remove.
9438 * complaints.h (internal_complaint): Remove.
9439
35f1fea3
MR
94402018-05-22 Maciej W. Rozycki <macro@mips.com>
9441
9442 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
9443
6b8edb51
PA
94442018-05-22 Pedro Alves <palves@redhat.com>
9445
9446 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
9447 (remote_fileio_badfd, remote_fileio_return_errno)
9448 (remote_fileio_return_success, remote_fileio_func_open)
9449 (remote_fileio_func_open, remote_fileio_func_close)
9450 (remote_fileio_func_read, remote_fileio_func_write)
9451 (remote_fileio_func_lseek, remote_fileio_func_rename)
9452 (remote_fileio_func_unlink, remote_fileio_func_stat)
9453 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
9454 (remote_fileio_func_isatty, remote_fileio_func_system): Add
9455 remote_target parameter.
9456 (remote_fio_func_map) <func>: Add remote_target parameter.
9457 (do_remote_fileio_request, remote_fileio_request):
9458 * remote-fileio.h (remote_fileio_request):
9459 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
9460 remote_target parameter.
9461 (remote_notif_process, handle_notification): Adjust to pass down
9462 the remote.
9463 (remote_notif_state_allocate): Add remote_target parameter. Save
9464 it.
9465 * remote-notif.h (struct remote_target): Forward declare.
9466 (struct notif_client) <parse, ack, can_get_pending_events>: Add
9467 remote_target parameter.
9468 (struct remote_notif_state) <remote>: New field.
9469 (remote_notif_ack, remote_notif_parse): Add remote_target
9470 parameter.
9471 (remote_notif_state_allocate, remote_notif_state_allocate): Add
9472 remote_target parameter.
9473 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
9474 (threads_listing_context, rmt_thread_action, protocol_feature)
9475 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
9476 (packet_result, struct threads_listing_context, remote_state):
9477 Move definitions and declarations higher up.
9478 (remote_target) <~remote_target>: Declare.
9479 (remote_download_command_source, remote_file_put, remote_file_get)
9480 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
9481 (remote_hostio_pread_vFile, remote_hostio_send_command)
9482 (remote_hostio_set_filesystem, remote_hostio_open)
9483 (remote_hostio_close, remote_hostio_unlink, remote_state)
9484 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
9485 (get_memory_write_packet_size, get_memory_read_packet_size)
9486 (append_pending_thread_resumptions, remote_detach_1)
9487 (append_resumption, remote_resume_with_vcont)
9488 (add_current_inferior_and_thread, wait_ns, wait_as)
9489 (process_stop_reply, remote_notice_new_inferior)
9490 (process_initial_stop_replies, remote_add_thread)
9491 (btrace_sync_conf, remote_btrace_maybe_reopen)
9492 (remove_new_fork_children, kill_new_fork_children)
9493 (discard_pending_stop_replies, stop_reply_queue_length)
9494 (check_pending_events_prevent_wildcard_vcont)
9495 (discard_pending_stop_replies_in_queue, stop_reply)
9496 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
9497 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
9498 (remote_interrupt_as, remote_interrupt_ns)
9499 (remote_get_noisy_reply, remote_query_attached)
9500 (remote_add_inferior, remote_current_thread, get_current_thread)
9501 (set_thread, set_general_thread, set_continue_thread)
9502 (set_general_process, write_ptid)
9503 (remote_unpack_thread_info_response, remote_get_threadinfo)
9504 (parse_threadlist_response, remote_get_threadlist)
9505 (remote_threadlist_iterator, remote_get_threads_with_ql)
9506 (remote_get_threads_with_qxfer)
9507 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
9508 (get_offsets, remote_check_symbols, remote_supported_packet)
9509 (remote_query_supported, remote_packet_size)
9510 (remote_serial_quit_handler, remote_detach_pid)
9511 (remote_vcont_probe, remote_resume_with_hc)
9512 (send_interrupt_sequence, interrupt_query)
9513 (remote_notif_get_pending_events, fetch_register_using_p)
9514 (send_g_packet, process_g_packet, fetch_registers_using_g)
9515 (store_register_using_P, store_registers_using_G)
9516 (set_remote_traceframe, check_binary_download)
9517 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
9518 (remote_xfer_live_readonly_partial, remote_read_bytes)
9519 (remote_send_printf, remote_flash_write, readchar)
9520 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
9521 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
9522 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
9523 (extended_remote_disable_randomization, extended_remote_run)
9524 (send_environment_packet, extended_remote_environment_support)
9525 (extended_remote_set_inferior_cwd, remote_write_qxfer)
9526 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
9527 (packet_command): Now methods of ...
9528 (remote_target): ... this class.
9529 (m_remote_state) <remote_target>: New field.
9530 (struct remote_state) <stop_reply_queue,
9531 remote_async_inferior_event_token, wait_forever_enabled_p>: New
9532 fields.
9533 (remote_state::remote_state): Allocate stop_reply_queue.
9534 (remote_state): Delete global.
9535 (get_remote_state_raw): Delete.
9536 (remote_target::get_remote_state): Allocate m_remote_state on
9537 demand.
9538 (get_current_remote_target): New.
9539 (remote_ops, extended_remote_ops): Delete.
9540 (wait_forever_enabled_p, remote_async_inferior_event_token):
9541 Delete, moved to struct remote_state.
9542 (remote_target::close): Delete self. Destruction bits split to
9543 ...
9544 (remote_target::~remote_target): ... this.
9545 (show_memory_packet_size): Adjust to use
9546 get_current_remote_target.
9547 (struct protocol_feature) <func>: Add remote_target parameter.
9548 All callers adjusted.
9549 (curr_quit_handler_target): New.
9550 (remote_serial_quit_handler): Reimplement.
9551 (remote_target::open_1): Adjust to use get_current_remote_target.
9552 Heap-allocate remote_target/extended_remote_target instances.
9553 (vcont_builder::vcont_builder): Add remote_target parameter, and
9554 save it in m_remote. All callers adjusted.
9555 (vcont_builder::m_remote): New field.
9556 (vcont_builder::restart, vcont_builder::flush)
9557 (vcont_builder::push_action): Use it.
9558 (remote_target::commit_resume): Use it.
9559 (struct queue_iter_param) <remote>: New field.
9560 (remote_target::remove_new_fork_children): Fill in 'remote' field.
9561 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
9562 (check_pending_event_prevents_wildcard_vcont_callback)
9563 (remote_target::check_pending_events_prevent_wildcard_vcont)
9564 (remote_target::discard_pending_stop_replies)
9565 (remote_target::discard_pending_stop_replies_in_queue)
9566 (remote_target::remote_notif_remove_queued_reply): Fill in
9567 'remote' field.
9568 (remote_notif_get_pending_events): New.
9569 (remote_target::readchar, remote_target::remote_serial_write):
9570 Save/restore curr_quit_handler_target.
9571 (putpkt): New.
9572 (kill_new_fork_children): Fill in 'remote' field.
9573 (packet_command): Use get_current_remote_target, defer to
9574 remote_target method of same name.
9575 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
9576 parameter, and save it in m_remote. All callers adjusted.
9577 (scoped_remote_fd::release): Use m_remote.
9578 (scoped_remote_fd::m_remote): New field.
9579 (remote_file_put, remote_file_get, remote_file_delete): Use
9580 get_current_remote_target, defer to remote_target method of same
9581 name.
9582 (remote_btrace_reset): Add remote_state paremeter. Update all
9583 callers.
9584 (remote_async_inferior_event_handler). Pass down 'data'.
9585 (remote_new_objfile): Use get_current_remote_target.
9586 (remote_target::vcont_r_supported): New.
9587 (set_range_stepping): Use get_current_remote_target and
9588 remote_target::vcont_r_supported.
9589 (_initialize_remote): Don't allocate 'remote_state' and
9590 'stop_reply_queue' globals.
9591 * remote.h (struct remote_target): Forward declare.
9592 (getpkt, putpkt, remote_notif_get_pending_events): Add
9593 'remote_target' parameter.
9594
f5db4863
PA
95952018-05-22 Pedro Alves <palves@redhat.com>
9596
9597 * remote.c (vcont_builder): Now a class. Make all data members
9598 private.
9599 (vcont_builder) <vcont_builder, restart, flush, push_action>:
9600 Declare methods.
9601 (vcont_builder_restart): Rename to ...
9602 (vcont_builder::restart): ... this.
9603 (vcont_builder_flush): Rename to ...
9604 (vcont_builder::flush): ... this.
9605 (vcont_builder_push_action): Rename to ...
9606 (vcont_builder::push_action): ... this.
9607 (remote_target::commit_resume): Adjust.
9608
cc0be08f
PA
96092018-05-22 Pedro Alves <palves@redhat.com>
9610
9611 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
9612 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
9613 (get_fixed_memory_packet_size): New.
9614 (get_memory_packet_size): Use it.
9615 (set_memory_packet_size): Don't override the config size with
9616 DEFAULT_MAX_MEMORY_PACKET_SIZE.
9617 (show_memory_packet_size): Use get_fixed_memory_packet_size.
9618 Don't refer to get_memory_packet_size if not connected to a remote
9619 target. Show "(default)" if configured size is 0.
9620
9607784a
PA
96212018-05-22 Pedro Alves <palves@redhat.com>
9622
9623 * remote.c (remote_target::mourn_inferior): Move
9624 discard_pending_stop_replies call here from ...
9625 (_initialize_remote): ... here.
9626
0e9a6b2f
PA
96272018-05-22 Pedro Alves <palves@redhat.com>
9628
9629 * remote.c (compare_section_command): Remove set_general_process
9630 call.
9631
43c3a0e4
PA
96322018-05-22 Pedro Alves <palves@redhat.com>
9633
9634 * remote.c (struct packet_reg, struct remote_arch_state):
9635 Move higher up in the file.
9636 (remote_state) <m_arch_states>: Store remote_arch_state values
9637 instead of remote_arch_state pointers.
9638 (remote_state::get_remote_arch_state): Adjust.
9639
9d6eea31
PA
96402018-05-22 Pedro Alves <palves@redhat.com>
9641
9642 * remote.c: Include <unordered_map>.
9643 (remote_state): Now a class.
9644 (remote_state) <get_remote_arch_state>: Declare method.
9645 <get_remote_arch_state>: New field.
9646 (remote_arch_state) <remote_arch_state>: Declare ctor.
9647 <regs>: Now a unique_ptr.
9648 (remote_gdbarch_data_handle): Delete.
9649 (get_remote_arch_state): Delete.
9650 (remote_state::get_remote_arch_state): New.
9651 (get_remote_state): Adjust to call remote_state's
9652 get_remote_arch_state method.
9653 (init_remote_state): Delete, bits factored out to ...
9654 (remote_arch_state::remote_arch_state): ... this new method.
9655 (get_remote_packet_size, get_memory_packet_size)
9656 (process_g_packet, remote_target::fetch_registers)
9657 (remote_target::prepare_to_store, store_registers_using_G)
9658 (remote_target::store_registers, remote_target::get_trace_status):
9659 Adjust to call remote_state's method.
9660 (_initialize_remote): Remove reference to
9661 remote_gdbarch_data_handle.
9662
dd194f6b
PA
96632018-05-22 Pedro Alves <palves@redhat.com>
9664
9665 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
9666 pread>: New method declarations.
9667 (remote_target::open_1): Adjust.
9668 (readahead_cache_invalidate): Rename to ...
9669 (readahead_cache::invalidate): ... this, and adjust to be a class
9670 method.
9671 (readahead_cache_invalidate_fd): Rename to ...
9672 (readahead_cache::invalidate_fd): ... this, and adjust to be a
9673 class method.
9674 (remote_hostio_pwrite): Adjust.
9675 (remote_hostio_pread_from_cache): Rename to ...
9676 (readahead_cache::pread): ... this, and adjust to be a class
9677 method.
9678 (remote_hostio_close): Adjust.
9679
440b7aec
PA
96802018-05-22 Pedro Alves <palves@redhat.com>
9681
9682 * remote.c (remote_hostio_close_cleanup): Delete.
9683 (class scoped_remote_fd): New.
9684 (remote_file_put, remote_file_get): Use it.
9685
de44f5a7
PA
96862018-05-22 Pedro Alves <palves@redhat.com>
9687
9688 (struct vCont_action_support): Use bool and initialize all fields.
9689 (struct readahead_cache): Initialize all fields.
9690 (remote_state): Use bool and initialize all fields.
9691 (remote_state::remote_state, remote_state::~remote_state): New.
9692 (new_remote_state): Delete.
9693 (_initialize_remote): Use new to allocate remote_state.
9694
b1b60145
PA
96952018-05-22 Pedro Alves <palves@redhat.com>
9696 張俊芝 <zjz@zjz.name>
9697
9698 PR gdb/22973
9699 * c-exp.y: Include "c-support.h".
9700 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
9701 of tolower. Use c_ident_is_alpha to scan names.
9702 * c-lang.c: Include "c-support.h".
9703 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
9704 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
9705 * c-support.h: New file, with bits factored out from ...
9706 * cp-name-parser.y: ... this file.
9707 Include "c-support.h".
9708 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
9709 c-support.h and renamed.
9710 (symbol_end, yylex): Adjust.
9711
0ec848ad
PFC
97122018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9713
9714 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
9715 parameter type to CORE_ADDR.
9716 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
9717 parameter type in declaration to CORE_ADDR.
9718 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
9719 target_auxv_search to get AT_HWCAP and use the result to get the
9720 target description.
9721 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
9722 to CORE_ADDR. Remove the cast of the return value to unsigned
9723 long. Fix error predicate of target_auxv_search.
9724 (ppc_linux_nat_target::read_description): Change the type of the
9725 hwcap variable to CORE_ADDR.
9726
0fb2aaa1
PFC
97272018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9728
9729 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
9730 if the size of fpscr is larger than 32 bits.
9731
2c3305f6
PFC
97322018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9733
9734 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
9735 (ppc32_linux_vsxregmap): New global.
9736 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
9737 regcache_supply_regset, and regcache_collect_regset.
9738 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
9739 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
9740 (fetch_vsx_register, store_vsx_register): Remove.
9741 (fetch_vsx_registers): Add regno parameter. Get regset using
9742 ppc_linux_vsxregset. Use regset to supply registers.
9743 (store_vsx_registers): Add regno parameter. Get regset using
9744 ppc_linux_vsxregset. Use regset to collect registers.
9745 (fetch_register): Call fetch_vsx_registers instead of
9746 fetch_vsx_register.
9747 (store_register): Call store_vsx_registers instead of
9748 store_vsx_register.
9749 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
9750 new regno parameter.
9751 (store_ppc_registers): Call store_vsx_registers with -1 for the
9752 new regno parameter.
9753 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
9754 (ppc_collect_vsxregset): Remove.
9755
1d75a658
PFC
97562018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9757
9758 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
9759 offset fields.
9760 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
9761 for vector register offset fields.
9762 (ppc64_fbsd_reg_offsets): Likewise.
9763 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9764 to vector register offset fields.
9765 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9766 to vector register offset fields.
9767 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
9768 vector register offset fields.
9769 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
9770 initializers for vector register offset fields.
9771 (rs6000_aix64_reg_offsets): Likewise.
9772 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
9773 (ppc_supply_vrregset): Remove.
9774 (ppc_collect_vrregset): Remove.
9775 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
9776 (ppc_linux_vrregset) : New function.
9777 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
9778 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
9779 (ppc32_linux_vrregset): Remove.
9780 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
9781 and use result instead of ppc32_linux_vrregset.
9782 (ppc32_linux_reg_offsets): Remove initializers for vector register
9783 offset fields.
9784 (ppc64_linux_reg_offsets): Likewise.
9785 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
9786 * ppc-linux-nat.c: Include regset.h.
9787 (gdb_vrregset_t): Adjust comment to account for little-endian
9788 mode.
9789 (supply_vrregset, fill_vrregset): Remove.
9790 (fetch_altivec_register, store_altivec_register): Remove.
9791 (fetch_altivec_registers): Add regno parameter. Get regset using
9792 ppc_linux_vrregset. Use regset to supply registers.
9793 (store_altivec_registers): Add regno parameter. Get regset using
9794 ppc_linux_vrregset. Use regset to collect registers.
9795 (fetch_register): Call fetch_altivec_registers instead of
9796 fetch_altivec_register.
9797 (store_register): Call store_altivec_registers instead of
9798 store_altivec_register.
9799 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
9800 the new regno parameter.
9801 (store_ppc_registers): Call store_altivec_registers with -1 for
9802 the new regno parameter.
9803
d078308a
PFC
98042018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9805
9806 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
9807 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
9808 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
9809 (gdb_vrregset_t): Change array type size to
9810 PPC_LINUX_SIZEOF_VRREGSET.
9811 (gdb_vsxregset_t): Change array type size to
9812 PPC_LINUX_SIZEOF_VSXREGSET.
9813 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
9814 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
9815 PPC_LINUX_SIZEOF_VSXREGSET.
9816
2e077f5e
PFC
98172018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9818
9819 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
9820 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
9821 nat/ppc-linux.c.
9822 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
9823 ppc_linux_target_wordsize with tid.
9824 (ppc_linux_nat_target::read_description): Call ppc_linux_target
9825 wordsize with tid.
9826 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
9827 (ppc64_64bit_inferior_p): Add static and inline specifiers.
9828 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
9829 tid parameter. Remove static specifier.
9830 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
9831 (ppc_linux_target_wordsize): New declaration.
9832
bd64614e
PFC
98332018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9834
9835 * arch/ppc-linux-common.c: New file.
9836 * arch/ppc-linux-common.h: New file.
9837 * arch/ppc-linux-tdesc.h: New file.
9838 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
9839 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
9840 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
9841 arch/ppc-linux-tdesc.h.
9842 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
9843 arch/ppc-linux-tdesc.h.
9844 (ppc_linux_nat_target::read_description): Remove target
9845 description matching code. Fill a ppc_linux_features struct and
9846 call ppc_linux_match_description with it. Move comment about ISA
9847 2.05 to ppc-linux-common.c.
9848 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
9849 arch/ppc-linux-tdesc.h.
9850 (ppc_linux_core_read_description): Remove target description
9851 matching code. Fill a ppc_linux_features struct and call
9852 ppc_linux_match_description with it.
9853 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
9854 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
9855 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
9856 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
9857 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
9858 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
9859 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
9860 (tdesc_powerpc_e500l): Remove.
9861
241db429
JB
98622018-05-22 Joel Brobecker <brobecker@adacore.com>
9863
9864 * ada-lang.c (catch_assert_command): Pass empty string instead
9865 of NULL for excep_string argument.
9866
75d74cca
MR
98672018-05-22 Maciej W. Rozycki <macro@mips.com>
9868
9869 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
9870 the width of the requested register exceeds the width of the
9871 `ptrace' data type.
9872
122b53ea
TT
98732018-05-21 Tom Tromey <tom@tromey.com>
9874
9875 * printcmd.c (output_command): Remove.
9876 (output_command_const): Rename to output_command.
9877 * valprint.h (output_command): Rename from output_command_const.
9878 * tracepoint.c (trace_dump_actions): Call output_command.
9879
bc18fbb5
TT
98802018-05-21 Tom Tromey <tom@tromey.com>
9881
9882 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
9883 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
9884 * ada-lang.h (create_ada_exception_catchpoint): Update.
9885 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
9886 std::string.
9887 (create_excep_cond_exprs, ~ada_catchpoint)
9888 (should_stop_exception, print_one_exception)
9889 (print_mention_exception, print_recreate_exception): Update.
9890 (ada_get_next_arg): Remove.
9891 (catch_ada_exception_command_split): Use std::string. Change type
9892 of "excep_string", "cond_string".
9893 (catch_ada_exception_command): Update.
9894 (create_ada_exception_catchpoint): Change type of excep_string.
9895 (ada_exception_sal): Remove excep_string parameter.
9896 (~ada_catchpoint): Remove.
9897
790217f6
TT
98982018-05-21 Tom Tromey <tom@tromey.com>
9899
9900 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
9901 cleanup.
9902
6f46ac85
TT
99032018-05-21 Tom Tromey <tom@tromey.com>
9904
9905 * ada-lang.c (ada_exception_message_1, ada_exception_message):
9906 Return unique_xmalloc_ptr.
9907 (print_it_exception): Update.
9908
15b6611c
TT
99092018-05-21 Tom Tromey <tom@tromey.com>
9910
9911 * tracepoint.c (trace_dump_actions): Use std::string.
9912
c0c9f665
TT
99132018-05-21 Tom Tromey <tom@tromey.com>
9914
9915 * symfile.c (reread_symbols): Use std::string for original_name.
9916
22ca247e
TT
99172018-05-21 Tom Tromey <tom@tromey.com>
9918
9919 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
9920 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
9921 constructor.
9922
184cde75
SM
99232018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
9924
9925 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
9926 instance to...
9927 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
9928 * objfiles.c (get_objfile_bfd_data): Allocate
9929 objfile_per_bfd_storage with obstack_new when allocating on
9930 obstack.
9931
e39db4db
SM
99322018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9933
9934 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
9935 OBSTACK_ZALLOC.
9936 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
9937 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
9938 * mdebugread.c (mdebug_build_psymtabs): Likewise.
9939 (add_pending): Likewise.
9940 (parse_symbol): Likewise.
9941 (parse_partial_symbols): Likewise.
9942 (psymtab_to_symtab_1): Likewise.
9943 (new_psymtab): Likewise.
9944 (elfmdebug_build_psymtabs): Likewise.
9945 * minsyms.c (terminate_minimal_symbol_table): Likewise.
9946 * objfiles.c (get_objfile_bfd_data): Likewise.
9947 (objfile_register_static_link): Likewise.
9948 * psymtab.c (allocate_psymtab): Likewise.
9949 * stabsread.c (read_member_functions): Likewise.
9950 * xcoffread.c (xcoff_end_psymtab): Likewise.
9951
284a0e3c
SM
99522018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9953
9954 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
9955 compiler supports std::is_trivially_constructible.
9956 * common/poison.h: Include obstack.h.
9957 (IsMallocable): Define to is_trivially_constructible if the
9958 compiler supports it, define to true_type otherwise.
9959 (xobnew): New.
9960 (XOBNEW): Redefine.
9961 (xobnewvec): New.
9962 (XOBNEWVEC): Redefine.
9963 * gdb_obstack.h (obstack_zalloc): New.
9964 (OBSTACK_ZALLOC): Redefine.
9965 (obstack_calloc): New.
9966 (OBSTACK_CALLOC): Redefine.
9967 (obstack_new): New.
9968 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
9969 (gdbarch_obstack): New declaration in gdbarch.h, definition in
9970 gdbarch.c.
9971 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
9972 obstack_calloc/obstack_zalloc.
9973 (gdbarch_obstack_zalloc): Remove.
9974 * target-descriptions.c (tdesc_data_init): Use obstack_new.
9975
59f66be3
PW
99762018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9977
9978 * stack.c (backtrace_command_1): Remove useless variable int i.
9979
50c65c2d
PW
99802018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9981
9982 * stack.c (print_frame_info): Fix comment.
9983
7ff8cb8c
TT
99842018-05-18 Tom Tromey <tom@tromey.com>
9985
9986 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
9987 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
9988 (~dwarf2_per_objfile): Update
9989 (dwarf2_get_dwz_file): Use new.
9990 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
9991 unique_ptr.
9992
400174b1
TT
99932018-05-18 Tom Tromey <tom@tromey.com>
9994
9995 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
9996 unique_ptr.
9997 * dwarf2read.c (struct dwp_file): Add constructor and
9998 initializers.
9999 (open_and_init_dwp_file): Return a unique_ptr.
10000 (dwarf2_per_objfile, create_dwp_hash_table)
10001 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
10002 (lookup_dwo_unit_in_dwp): Update.
10003 (open_and_init_dwp_file, get_dwp_file): Update.
10004
3063847f
TT
100052018-05-18 Tom Tromey <tom@tromey.com>
10006
10007 * dwarf2read.c (dwarf2_per_objfile): Update.
10008 (struct mapped_index): Add initializers.
10009 (dwarf2_read_index): Use new.
10010 (dw2_symtab_iter_init): Update.
10011 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
10012 unique_ptr.
10013
d3d02dee
SM
100142018-05-18 Simon Marchi <simon.marchi@ericsson.com>
10015
10016 * dwarf2read.c (mapped_index) <total_size>: Remove.
10017
1d143c36
SM
100182018-05-18 Simon Marchi <simon.marchi@ericsson.com>
10019
10020 * unittests/format_pieces-selftests.c (test_format_specifier):
10021 Add ARI comments.
10022
ce1e8424
TT
100232018-05-18 Tom Tromey <tom@tromey.com>
10024
10025 * c-typeprint.c (maybe_print_hole): New function.
10026 (c_print_type_struct_field_offset): Update.
10027 (c_type_print_base_struct_union): Call maybe_print_hole.
10028
ddfe970e
KS
100292018-05-17 Keith Seitz <keiths@redhat.com>
10030
10031 * breakpoint.c (build_bpstat_chain): New function, moved from
10032 bpstat_stop_status.
10033 (bpstat_stop_status): Add optional parameter, `stop_chain'.
10034 If no stop chain is passed, call build_bpstat_chain to build it.
10035 * breakpoint.h (build_bpstat_chain): Declare.
10036 (bpstat_stop_status): Move documentation here from breakpoint.c.
10037 * infrun.c (handle_signal_stop): Before eliding inlined frames,
10038 build the stop chain and pass it to skip_inline_frames.
10039 Pass this stop chain to bpstat_stop_status.
10040 * inline-frame.c: Include breakpoint.h.
10041 (stopped_by_user_bp_inline_frame): New function.
10042 (skip_inline_frames): Add parameter `stop_chain'.
10043 Move documention to inline-frame.h.
10044 If non-NULL, use stopped_by_user_bp_inline_frame to determine
10045 whether the frame should be elided.
10046 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
10047 Add moved documentation and update for new parameter.
10048
b17992c1
SM
100492018-05-17 Simon Marchi <simon.marchi@ericsson.com>
10050
10051 PR cli/14975
10052 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10053 unittests/format_pieces-selftests.c.
10054 * common/format.h (format_piece) <operator==>: New.
10055 (format_pieces) <operator[]>: Remove.
10056 * common/format.c (format_pieces::format_pieces): Handle \e.
10057 * unittests/format_pieces-selftests.c: New.
10058
58f0c718
TT
100592018-05-17 Tom Tromey <tom@tromey.com>
10060
10061 PR symtab/23010:
10062 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
10063 (dw2_instantiate_symtab): Add skip_partial parameter.
10064 (dw2_find_last_source_symtab, dw2_map_expand_apply)
10065 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
10066 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
10067 (dw2_expand_symtabs_matching_one)
10068 (dw2_find_pc_sect_compunit_symtab)
10069 (dw2_debug_names_lookup_symbol)
10070 (dw2_debug_names_expand_symtabs_for_function): Update.
10071 (init_cutu_and_read_dies): Add skip_partial parameter.
10072 (process_psymtab_comp_unit, build_type_psymtabs_1)
10073 (process_skeletonless_type_unit, load_partial_comp_unit)
10074 (psymtab_to_symtab_1): Update.
10075 (load_full_comp_unit): Add skip_partial parameter.
10076 (process_imported_unit_die, dwarf2_read_addr_index)
10077 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
10078 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
10079 (read_signatured_type): Update.
10080
3e618834
SM
100812018-05-17 Simon Marchi <simon.marchi@ericsson.com>
10082
10083 * value.c (release_value): Remove unused variable.
10084 (record_latest_value): Likewise.
10085 (access_value_history): Likewise.
10086 (preserve_values): Likewise.
10087
fe10fe31
TT
100882018-05-17 Tom Tromey <tom@tromey.com>
10089
10090 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
10091 Initialize.
10092
1d761124
MR
100932018-05-16 Maciej W. Rozycki <macro@mips.com>
10094
10095 PR gdb/22286
10096 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
10097 Also handle registers whose width is not a multiple of
10098 PTRACE_TYPE_RET.
10099 (linux_nat_trad_target::store_register): Likewise.
10100
06333fea
TT
101012018-05-16 Tom Tromey <tom@tromey.com>
10102
10103 * gdbcore.h (core_bfd): Redefine.
10104 * corelow.c (core_target::close): Update.
10105 (core_target_open): Update.
10106 * progspace.h (struct program_space) <cbfd>: Now a
10107 gdb_bfd_ref_ptr.
10108
921222e2
TT
101092018-05-16 Tom Tromey <tom@tromey.com>
10110
10111 PR cli/19551:
10112 * symfile-add-flags.h (enum symfile_add_flags)
10113 <SYMFILE_NOT_FILENAME>: New constant.
10114 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
10115 objfile name from BFD.
10116 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
10117 * minidebug.c (find_separate_debug_file_in_section): Put
10118 ".gnu_debugdata" into BFD's file name.
10119
3acb7083
SM
101202018-05-16 Simon Marchi <simon.marchi@ericsson.com>
10121
10122 * regcache.c (regcache_read_ftype, regcache_write_ftype):
10123 Remove.
10124
561a72d4
TC
101252018-05-15 Tamar Christina <tamar.christina@arm.com>
10126
10127 PR binutils/21446
10128 * aarch64-tdep.c (aarch64_analyze_prologue,
10129 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
10130 Indicate not interested in errors.
10131
4e6ff0e1
MR
101322018-05-15 Maciej W. Rozycki <macro@mips.com>
10133
10134 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
10135 Supply the MIPS_ZERO_REGNUM register.
10136
ea33cd92
MR
101372018-05-15 Maciej W. Rozycki <macro@mips.com>
10138
10139 * mips-tdep.c (mask_address_var): Make variable static.
10140
2d79090e
TT
101412018-05-14 Tom Tromey <tom@tromey.com>
10142
10143 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
10144
cf4912ae
AB
101452018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
10146
10147 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
10148 FXSAVE_ADDR for the mxcsr register.
10149
67e6f569
MF
101502018-05-11 Max Filippov <jcmvbkbc@gmail.com>
10151
10152 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
10153
15244507
PA
101542018-05-11 Pedro Alves <palves@redhat.com>
10155
10156 * corelow.c (core_target) <core_target>: No longer inline.
10157 Initialize m_core_gdbarch, m_core_vec and build the section table
10158 here.
10159 <~core_target>: New.
10160 <core_gdbarch, get_core_register_section>: New methods.
10161 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
10162 factored out from ...
10163 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
10164 (core_ops): Delete.
10165 (sniff_core_bfd): Add gdbarch parameter.
10166 (core_close): Delete, merged into ...
10167 (core_target::close): ... here. Delete self.
10168 (core_close_cleanup): Delete.
10169 (core_target_open): Allocate a core_target on the heap. Use a
10170 unique_ptr instead of a cleanup. Bits moved into the core_target
10171 ctor. Adjust to use core_target methods instead of globals.
10172 (get_core_register_section): Rename to ...
10173 (core_target::get_core_register_section): ... this and adjust.
10174 (struct get_core_registers_cb_data): New.
10175 (get_core_registers_cb): Use it. Use bool.
10176 (core_target::fetch_registers, core_target::files_info)
10177 (core_target::xfer_partial, core_target::read_description)
10178 (core_target::pid_to, core_target::thread_name): Adjust to
10179 reference class fields instead of globals.
10180 * target.h (struct target_ops_deleter, target_ops_up): New.
10181
451953fa
PA
101822018-05-11 Pedro Alves <palves@redhat.com>
10183
10184 * corefile.c (core_file_command): Move to corelow.c.
10185 * corelow.c (the_core_target): Delete.
10186 (core_file_command): Moved from corefile.c. Check exec_bfd
10187 instead of the_core_target. Use target_detach instead of calling
10188 into the_core_target directly.
10189 (maybe_say_no_core_file_now): New.
10190 (core_target::detach): Use it.
10191 (_initialize_corelow): Remove references to the_core_target.
10192 * gdbcore.h (the_core_target): Delete.
10193
e540a5a2 101942018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 10195 Pedro Alves <palves@redhat.com>
e540a5a2
TT
10196
10197 * corefile.c (core_bfd): Remove.
10198 * gdbcore.h (core_bfd): Now a macro.
10199 * progspace.h (struct program_space) <cbfd>: New field.
10200
633cf254
TT
102012018-05-11 Tom Tromey <tom@tromey.com>
10202
10203 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
10204 gdb::def_vector.
10205
1a34f210
TT
102062018-05-10 Tom Tromey <tom@tromey.com>
10207
10208 * configure: Rebuild.
10209 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
10210
190852c8
JB
102112018-05-10 Joel Brobecker <brobecker@adacore.com>
10212
10213 PR server/23158:
10214 * regformats/regdat.sh: Adjust script, following the addition
10215 of the new expedite_regs parameter to init_target_desc.
10216
8727de56
OJ
102172018-05-10 Omair Javaid <omair.javaid@linaro.org>
10218
10219 PR gdb/23127
10220 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
10221 set_gdbarch_significant_addr_bit.
10222 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
10223 set_gdbarch_significant_addr_bit.
10224 * utils.c (address_significant): Update to sign extend addr.
10225
37d9e062
MF
102262018-05-09 Max Filippov <jcmvbkbc@gmail.com>
10227
10228 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
10229 (xtensa_linux_init_abi): Limit tdep->num_regs by
10230 tdep->num_nopriv_regs.
10231 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
10232 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
10233 not initialized.
10234
7402fbca
SM
102352018-05-08 Simon Marchi <simon.marchi@ericsson.com>
10236
10237 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
10238
8ee22052
AB
102392018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10240
10241 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
10242 (I387_MXCSR_INIT_VAL): New constant.
10243 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
10244 buffer if it was supplied by the inferior.
10245 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
10246 (i387_xsave_get_clear_bv): New function.
10247 (i387_supply_xsave): Only read x87 control registers from the
10248 xsave buffer if the feature is enabled, and the state will have
10249 been written, otherwise, provide a suitable default.
10250 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
10251 including x87 control registers. Update control registers if they
10252 have changed from the default value, and mark features as enabled
10253 as required.
10254 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
10255
968ae51b
UW
102562018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
10257
10258 * spu-tdep.c (info_spu_event_command): Fix output formatting.
10259
aff689d3
TT
102602018-05-07 Tom Tromey <tom@tromey.com>
10261
10262 * configure: Rebuild.
10263 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
10264
ce887586
TT
102652018-05-07 Tom Tromey <tom@tromey.com>
10266
10267 PR tdep/20362:
10268 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
10269 bit. Use correct value for VDIV.
10270
85e26832
TT
102712018-05-04 Tom Tromey <tom@tromey.com>
10272
10273 * configure: Rebuild.
10274 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
10275
449b1ac7
TT
102762018-05-04 Tom Tromey <tom@tromey.com>
10277
10278 * linux-record.c (record_linux_system_call) <case
10279 RECORD_SYS_RECVFROM>: Add "break".
10280
15c9ffd6
TT
102812018-05-04 Tom Tromey <tom@tromey.com>
10282
10283 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
10284 Add missing "break".
10285 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
10286 Add missing "break".
10287
e3829d13
TT
102882018-05-04 Tom Tromey <tom@tromey.com>
10289
10290 * rs6000-tdep.c (ppc_process_record_op4)
10291 (ppc_process_record_op63): Add fall-through comment.
10292
da0e1563
TT
102932018-05-04 Tom Tromey <tom@tromey.com>
10294
10295 * i386-tdep.c (i386_process_record): Add fall-through comment.
10296
0019cd49
TT
102972018-05-04 Tom Tromey <tom@tromey.com>
10298
10299 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
10300 comment.
10301
565e0eda
TT
103022018-05-04 Tom Tromey <tom@tromey.com>
10303
10304 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
10305 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
10306 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
10307 comment.
10308 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
10309 comment.
10310 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
10311 comment.
10312
621846f4
TT
103132018-05-04 Tom Tromey <tom@tromey.com>
10314
10315 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
10316
86a73007
TT
103172018-05-04 Tom Tromey <tom@tromey.com>
10318
10319 * s390-tdep.c (s390_process_record): Fix fall-through comments.
10320 * xcoffread.c (scan_xcoff_symtab): Move comment later.
10321 * symfile.c (section_is_mapped): Fix fall-through comment.
10322 * stabsread.c (define_symbol, read_member_functions): Fix
10323 fall-through comment.
10324 * s390-linux-tdep.c (s390_process_record): Fix fall-through
10325 comment.
10326 * remote.c (remote_wait_as): Fix fall-through comment.
10327 * p-exp.y (yylex): Fix fall-through comment.
10328 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
10329 comment.
10330 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
10331 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
10332 * jv-exp.y (yylex): Fix fall-through comment.
10333 * go-exp.y (lex_one_token): Fix fall-through comment.
10334 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
10335 fall-through comment.
10336 * f-exp.y (yylex): Fix fall-through comment.
10337 * dwarf2read.c (process_die): Fix fall-through comments.
10338 * dbxread.c (process_one_symbol): Fix fall-through comment.
10339 * d-exp.y (lex_one_token): Fix fall-through comment.
10340 * cp-name-parser.y (yylex): Fix fall-through comment.
10341 * coffread.c (coff_symtab_read): Fix fall-through comment.
10342 * c-exp.y (lex_one_token): Fix fall-through comment.
10343 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
10344 comment.
10345 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
10346 comment.
10347
56bcdbea
TT
103482018-05-04 Tom Tromey <tom@tromey.com>
10349
10350 PR python/22730:
10351 * NEWS: Mention gdb.execute change.
10352 * gdbcmd.h (execute_control_command): Don't declare.
10353 * python/python.c (execute_gdb_command): Use read_command_lines_1,
10354 execute_control_commands, execute_control_commands_to_string.
10355 * cli/cli-script.h (execute_control_commands)
10356 (execute_control_commands_to_string): Declare.
10357 (execute_control_command): Add from_tty parameter.
10358 * cli/cli-script.c (execute_control_commands)
10359 (execute_control_commands_to_string): New functions.
10360 (execute_user_command): Use execute_control_commands.
10361 (execute_control_command_1): Add "from_tty" parameter. Update.
10362 (execute_control_command): Likewise.
10363
a913fffb
TT
103642018-05-04 Tom Tromey <tom@tromey.com>
10365
10366 PR python/22731:
10367 * NEWS: Mention that breakpoint commands are writable.
10368 * python/py-breakpoint.c (bppy_set_commands): New function.
10369 (breakpoint_object_getset) <"commands">: Use it.
10370
60b3cef2
TT
103712018-05-04 Tom Tromey <tom@tromey.com>
10372
10373 * tracepoint.c (actions_command): Update.
10374 * mi/mi-cmd-break.c (mi_command_line_array)
10375 (mi_command_line_array_cnt, mi_command_line_array_ptr)
10376 (mi_read_next_line): Remove.
10377 (mi_cmd_break_commands): Update.
10378 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
10379 function_view.
10380 * cli/cli-script.c (get_command_line): Update.
10381 (process_next_line): Use function_view. Constify.
10382 (recurse_read_control_structure, read_command_lines)
10383 (read_command_lines_1): Change argument types to function_view.
10384 (do_define_command, document_command): Update.
10385 * breakpoint.h (check_tracepoint_command): Don't declare.
10386 * breakpoint.c (check_tracepoint_command): Remove.
10387 (commands_command_1, create_tracepoint_from_upload): Update.
10388
7a2c85f2
TT
103892018-05-04 Tom Tromey <tom@tromey.com>
10390
10391 PR gdb/11750:
10392 * cli/cli-script.h (enum command_control_type) <define_control>:
10393 New constant.
10394 * cli/cli-script.c (multi_line_command_p): Handle define_control.
10395 (build_command_line, execute_control_command_1)
10396 (process_next_line): Likewise.
10397 (do_define_command): New function, extracted from define_command.
10398 (define_command): Use it.
10399
295dc222
TT
104002018-05-04 Tom Tromey <tom@tromey.com>
10401
10402 * tracepoint.c (actions_command): Update.
10403 * cli/cli-script.h (read_command_lines): Update.
10404 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
10405 (MAX_TMPBUF): Remove define.
10406 (define_command): Use string_printf.
10407 (document_command): Likewise.
10408 * breakpoint.c (commands_command_1): Update.
10409
1263a9d5
TT
104102018-05-04 Tom Tromey <tom@tromey.com>
10411
10412 * top.c (execute_command): Update.
10413 * cli/cli-script.h (print_command_lines): Now varargs.
10414 * cli/cli-script.c (print_command_lines): Now varargs.
10415 (execute_control_command_1) <case while_control, case if_control>:
10416 Update.
10417
12973681
TT
104182018-05-04 Tom Tromey <tom@tromey.com>
10419
10420 * tracepoint.c (all_tracepoint_actions): Rename from
10421 all_tracepoint_actions_and_cleanup. Change return type.
10422 (actions_command, encode_actions_1, encode_actions)
10423 (trace_dump_actions, tdump_command): Update.
10424 * remote.c (remote_download_command_source): Update.
10425 * python/python.c (gdbpy_eval_from_control_command)
10426 (python_command, python_interactive_command): Update.
10427 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10428 * guile/guile.c (guile_command)
10429 (gdbscm_eval_from_control_command, guile_command): Update.
10430 * compile/compile.c (compile_code_command)
10431 (compile_print_command, compile_to_object): Update.
10432 * cli/cli-script.h (struct command_lines_deleter): New.
10433 (counted_command_line): New typedef.
10434 (struct command_line): Add constructor, destructor.
10435 <body_list>: Remove.
10436 <body_list_0, body_list_1>: New members.
10437 (command_line_up): Remove typedef.
10438 (read_command_lines, read_command_lines_1, get_command_line):
10439 Update.
10440 (copy_command_lines): Don't declare.
10441 * cli/cli-script.c (build_command_line): Use "new".
10442 (get_command_line): Return counted_command_line.
10443 (print_command_lines, execute_user_command)
10444 (execute_control_command_1, while_command, if_command): Update.
10445 (realloc_body_list): Remove.
10446 (process_next_line, recurse_read_control_structure): Update.
10447 (read_command_lines, read_command_lines_1): Return counted_command_line.
10448 (free_command_lines): Use "delete".
10449 (copy_command_lines): Remove.
10450 (define_command, document_command, show_user_1): Update.
10451 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
10452 a counted_command_line.
10453 * breakpoint.h (counted_command_line): Remove typedef.
10454 (breakpoint_set_commands): Update.
10455 * breakpoint.c (check_no_tracepoint_commands)
10456 (validate_commands_for_breakpoint): Update.
10457 (breakpoint_set_commands): Change commands to be a
10458 counted_command_line.
10459 (commands_command_1, update_dprintf_command_list)
10460 (create_tracepoint_from_upload): Update.
10461
e2fc72e2
TT
104622018-05-04 Tom Tromey <tom@tromey.com>
10463
10464 * cli/cli-decode.h (cmd_list_element): New constructor.
10465 (~cmd_list_element): New destructor.
10466 (struct cmd_list_element): Add initializers.
10467 * cli/cli-decode.c (do_add_cmd): Use "new".
10468 (delete_cmd): Use "delete".
10469
a3b60e45
JK
104702018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10471 Pedro Alves <palves@redhat.com>
10472
10473 PR breakpoints/19806 and support for PR external/20207.
10474 * NEWS: Mention Aarch64 watchpoint improvements.
10475 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
10476 watchpoints and PR external/20207 watchpoints.
10477 * nat/aarch64-linux-hw-point.c
10478 (kernel_supports_any_contiguous_range): New.
10479 (aarch64_watchpoint_offset): New.
10480 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
10481 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
10482 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
10483 (aarch64_align_watchpoint): New parameters aligned_offset_p and
10484 next_addr_orig_p. Support PR external/20207 watchpoints.
10485 (aarch64_downgrade_regs): New.
10486 (aarch64_dr_state_insert_one_point): New parameters offset and
10487 addr_orig.
10488 (aarch64_dr_state_remove_one_point): Likewise.
10489 (aarch64_handle_breakpoint): Update caller.
10490 (aarch64_handle_aligned_watchpoint): Likewise.
10491 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
10492 aligned_offset.
10493 (aarch64_linux_set_debug_regs): Remove const from state. Call
10494 aarch64_downgrade_regs.
10495 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
10496 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
10497 (DR_CONTROL_MASK): ... this.
10498 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
10499 (unsigned int aarch64_watchpoint_offset): New prototype.
10500 (aarch64_linux_set_debug_regs): Remove const from state.
10501 * utils.c (align_up, align_down): Move to ...
10502 * common/common-utils.c (align_up, align_down): ... here.
10503 * utils.h (align_up, align_down): Move to ...
10504 * common/common-utils.h (align_up, align_down): ... here.
10505
05bc7456
JB
105062018-05-04 Joel Brobecker <brobecker@adacore.com>
10507
10508 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
10509 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
10510 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
10511 Re-implement to match the ABI as summarized in GCC's
10512 gcc/config/sparc/sparc.c. All callers updated.
10513 (sparc32_store_arguments): Remove assertion.
10514
2f433492
TT
105152018-05-04 Tom Tromey <tom@tromey.com>
10516
10517 * printcmd.c: Don't include tui.h.
10518 (decode_format): Use skip_spaces.
10519
9be2ae8f
TT
105202018-05-04 Tom Tromey <tom@tromey.com>
10521
10522 PR gdb/22619:
10523 * printcmd.c (last_count): New global.
10524 (x_command): Use saved count when repeating.
10525
f0b3976b
TT
105262018-05-04 Tom Tromey <tom@tromey.com>
10527
10528 * nto-procfs.c (do_closedir_cleanup): Remove.
10529 (procfs_pidlist): Use gdb_dir_up.
10530 * procfs.c (do_closedir_cleanup): Remove.
10531 (proc_update_threads): Use gdb_dir_up.
10532 * common/filestuff.h (struct gdb_dir_deleter): New.
10533 (gdb_dir_up): New typedef.
10534
862d101a
TT
105352018-05-04 Tom Tromey <tom@tromey.com>
10536
10537 * ada-lang.c (print_mention_exception): Use std::string.
10538
cb7de75e
TT
105392018-05-04 Tom Tromey <tom@tromey.com>
10540
10541 * ada-lang.c (create_excep_cond_exprs): Update.
10542 (ada_exception_catchpoint_cond_string): Use std::string.
10543
49d83361
TT
105442018-05-04 Tom Tromey <tom@tromey.com>
10545
10546 * ada-lang.c (xget_renaming_scope): Return std::string.
10547 (old_renaming_is_invisible): Update.
10548
ade72a34
TT
105492018-05-04 Tom Tromey <tom@tromey.com>
10550
10551 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
10552 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
10553
2be4d7f0
UW
105542018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
10555
10556 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
10557
69b6ecb0
TT
105582018-05-04 Tom Tromey <tom@tromey.com>
10559
10560 * remote.c (remote_query_supported_append): Change type.
10561 (remote_check_symbols): Update.
10562
bf27f0e2
PP
105632018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
10564
10565 PR gdb/11420
10566 * configure.ac: Prepend libpython.
10567 * python/python-config.py: Likewise.
10568 * configure: Regenerate.
10569
4ea17de8
SM
105702018-05-03 Simon Marchi <simon.marchi@ericsson.com>
10571
10572 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
10573
bd732259
PA
105742018-05-03 Pedro Alves <palves@redhat.com>
10575
10576 * s390-linux-nat.c
10577 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
10578 override. Write 'true' instead of '1'.
10579 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
10580 declaration.
10581
d9f719f1
PA
105822018-05-02 Pedro Alves <palves@redhat.com>
10583
10584 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
10585 add_inf_child_target.
10586 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
10587 add_inf_child_target.
10588 * aix-thread.c (aix_thread_target_info): New.
10589 (aix_thread_target) <shortname, longname, doc>: Delete.
10590 <info>: New.
10591 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
10592 add_inf_child_target.
10593 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
10594 add_inf_child_target.
10595 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
10596 add_inf_child_target.
10597 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
10598 add_inf_child_target.
10599 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
10600 add_inf_child_target.
10601 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
10602 add_inf_child_target.
10603 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
10604 add_inf_child_target.
10605 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
10606 add_inf_child_target.
10607 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
10608 add_inf_child_target.
10609 * bfd-target.c (target_bfd_target_info): New.
10610 (target_bfd) <shortname, longname, doc>: Delete.
10611 <info>: New.
10612 * bsd-kvm.c (bsd_kvm_target_info): New.
10613 (bsd_kvm_target) <shortname, longname, doc>: Delete.
10614 <info>: New.
10615 (bsd_kvm_target::open): Rename to ...
10616 (bsd_kvm_target_open): ... this. Adjust.
10617 * bsd-uthread.c (bsd_uthread_target_info): New.
10618 (bsd_uthread_target) <shortname, longname, doc>: Delete.
10619 <info>: New.
10620 * corefile.c (core_file_command): Adjust.
10621 * corelow.c (core_target_info): New.
10622 (core_target) <shortname, longname, doc>: Delete.
10623 <info>: New.
10624 (core_target::open): Rename to ...
10625 (core_target_open): ... this. Adjust.
10626 * ctf.c (ctf_target_info): New.
10627 (ctf_target) <shortname, longname, doc>: Delete.
10628 <info>: New.
10629 (ctf_target::open): Rename to ...
10630 (ctf_target_open): ... this.
10631 (_initialize_ctf): Adjust.
10632 * exec.c (exec_target_info): New.
10633 (exec_target) <shortname, longname, doc>: Delete.
10634 <info>: New.
10635 (exec_target::open): Rename to ...
10636 (exec_target_open): ... this.
10637 * gdbcore.h (core_target_open): Declare.
10638 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
10639 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
10640 add_inf_child_target.
10641 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
10642 add_inf_child_target.
10643 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
10644 add_inf_child_target.
10645 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
10646 add_inf_child_target.
10647 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
10648 add_inf_child_target.
10649 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
10650 add_inf_child_target.
10651 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
10652 add_inf_child_target.
10653 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
10654 add_inf_child_target.
10655 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
10656 add_inf_child_target.
10657 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
10658 add_inf_child_target.
10659 * inf-child.c (inf_child_target_info): New.
10660 (inf_child_target::info): New.
10661 (inf_child_open_target): Remove 'target' parameter. Use
10662 get_native_target instead.
10663 (inf_child_target::open): Delete.
10664 (add_inf_child_target): New.
10665 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
10666 Delete.
10667 <info>: New.
10668 (add_inf_child_target): Declare.
10669 (inf_child_open_target): Declare.
10670 * linux-thread-db.c (thread_db_target_info): New.
10671 (thread_db_target) <shortname, longname, doc>: Delete.
10672 <info>: New.
10673 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
10674 add_inf_child_target.
10675 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
10676 add_inf_child_target.
10677 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
10678 add_inf_child_target.
10679 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
10680 add_inf_child_target.
10681 * make-target-delegates (print_class): Adjust.
10682 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
10683 add_inf_child_target.
10684 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
10685 add_inf_child_target.
10686 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
10687 add_inf_child_target.
10688 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
10689 add_inf_child_target.
10690 * nto-procfs.c (nto_native_target_info): New.
10691 (nto_procfs_target_native) <shortname, longname, doc>:
10692 Delete.
10693 <info>: New.
10694 (nto_procfs_target_info): New.
10695 (nto_procfs_target_procfs) <shortname, longname, doc>:
10696 Delete.
10697 <info>: New.
10698 (init_procfs_targets): Adjust.
10699 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
10700 add_inf_child_target.
10701 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
10702 add_inf_child_target.
10703 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
10704 add_inf_child_target.
10705 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
10706 add_inf_child_target.
10707 * ravenscar-thread.c (ravenscar_target_info): New.
10708 (ravenscar_thread_target) <shortname, longname, doc>:
10709 Delete.
10710 <info>: New.
10711 * record-btrace.c (record_btrace_target_info):
10712 (record_btrace_target) <shortname, longname, doc>: Delete.
10713 <info>: New.
10714 (record_btrace_target::open): Rename to ...
10715 (record_btrace_target_open): ... this. Adjust.
10716 * record-full.c (record_longname, record_doc): New.
10717 (record_full_base_target) <shortname, longname, doc>: Delete.
10718 <info>: New.
10719 (record_full_target_info): New.
10720 (record_full_target): <shortname>: Delete.
10721 <info>: New.
10722 (record_full_core_open_1, record_full_open_1): Update comments.
10723 (record_full_base_target::open): Rename to ...
10724 (record_full_open): ... this.
10725 (cmd_record_full_restore): Update.
10726 (_initialize_record_full): Update.
10727 * remote-sim.c (remote_sim_target_info): New.
10728 (gdbsim_target) <shortname, longname, doc>: Delete.
10729 <info>: New.
10730 (gdbsim_target::open): Rename to ...
10731 (gdbsim_target_open): ... this.
10732 (_initialize_remote_sim): Adjust.
10733 * remote.c (remote_doc): New.
10734 (remote_target_info): New.
10735 (remote_target) <shortname, longname, doc>: Delete.
10736 <info>: New.
10737 (extended_remote_target_info): New.
10738 (extended_remote_target) <shortname, longname, doc>: Delete.
10739 <info>: New.
10740 (remote_target::open_1): Make static. Adjust.
10741 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
10742 * s390-linux-nat.c (_initialize_s390_nat): Use
10743 add_inf_child_target.
10744 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
10745 add_inf_child_target.
10746 * sol-thread.c (thread_db_target_info): New.
10747 (sol_thread_target) <shortname, longname, doc>: Delete.
10748 <info>: New.
10749 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
10750 add_inf_child_target.
10751 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
10752 add_inf_child_target.
10753 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
10754 add_inf_child_target.
10755 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
10756 add_inf_child_target.
10757 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
10758 add_inf_child_target.
10759 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
10760 add_inf_child_target.
10761 * spu-linux-nat.c (_initialize_spu_nat): Use
10762 add_inf_child_target.
10763 * spu-multiarch.c (spu_multiarch_target_info): New.
10764 (spu_multiarch_target) <shortname, longname, doc>: Delete.
10765 <info>: New.
10766 * target-delegates.c: Regenerate.
10767 * target.c: Include <unordered_map>.
10768 (target_ops_p): Delete.
10769 (DEF_VEC_P(target_ops_p)): Delete.
10770 (target_factories): New.
10771 (test_target_info): New.
10772 (test_target_ops::info): New.
10773 (open_target): Adjust to use target_factories.
10774 (add_target_with_completer): Rename to ...
10775 (add_target): ... this. Change prototype. Register target_info
10776 and open callback in target_factories. Register target_info in
10777 command context instead of target_ops.
10778 (add_target): Delete old implementation.
10779 (add_deprecated_target_alias): Change prototype. Adjust.
10780 (the_native_target): New.
10781 (set_native_target, get_native_target): New.
10782 (find_default_run_target): Use the_native_target.
10783 (find_attach_target, find_run_target): Simplify.
10784 (target_ops::open): Delete.
10785 (dummy_target_info): New.
10786 (dummy_target::shortname, dummy_target::longname)
10787 (dummy_target::doc): Delete.
10788 (dummy_target::info): New.
10789 (debug_target::shortname, debug_target::longname)
10790 (debug_target::doc): Delete.
10791 (debug_target::info): New.
10792 * target.h (struct target_info): New.
10793 (target_ops::~target_ops): Add comment.
10794 (target_ops::info): New.
10795 (target_ops::shortname, target_ops::longname, target_ops::doc): No
10796 longer virtual. Implement in terms of target_info.
10797 (set_native_target, get_native_target): Declare.
10798 (target_open_ftype): New.
10799 (add_target, add_target_with_completer)
10800 (add_deprecated_target_alias): Change prototype.
10801 (test_target) <shortname, longname, doc>: Delete.
10802 <info>: New.
10803 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
10804 add_inf_child_target.
10805 * tracefile-tfile.c (tfile_target_info): New.
10806 (tfile_target) <shortname, longname, doc>: Delete.
10807 <info>: New.
10808 (tfile_target::open): Rename to ...
10809 (tfile_target_open): ... this.
10810 (_initialize_tracefile_tfile): Adjust.
10811 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
10812 add_inf_child_target.
10813 * windows-nat.c (_initialize_windows_nat): Use
10814 add_inf_child_target.
10815 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
10816 add_inf_child_target.
10817
135340af
PA
108182018-05-02 Pedro Alves <palves@redhat.com>
10819
10820 * linux-nat.h (linux_nat_target) <low_new_thread,
10821 low_delete_thread, low_new_fork, low_forget_process,
10822 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
10823 New virtual methods.
10824 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10825 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
10826 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
10827 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10828 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
10829 Delete.
10830 * linux-fork.c (delete_fork): Adjust to call low method.
10831 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
10832 (linux_nat_new_fork, linux_nat_forget_process_hook)
10833 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
10834 (linux_nat_status_is_event):
10835 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
10836 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
10837 to call low method.
10838 (sigtrap_is_event): Rename to ...
10839 (linux_nat_target::low_status_is_event): ... this.
10840 (linux_nat_set_status_is_event): Delete.
10841 (save_stop_reason, linux_nat_wait_1)
10842 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
10843 low methods.
10844 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10845 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10846 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10847 (linux_nat_set_prepare_to_resume): Delete.
10848 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
10849 low virtual methods.
10850 * amd64-linux-nat.c: Likewise.
10851 * arm-linux-nat.c: Likewise.
10852 * i386-linux-nat.c: Likewise.
10853 * ia64-linux-nat.c: Likewise.
10854 * mips-linux-nat.c: Likewise.
10855 * ppc-linux-nat.c: Likewise.
10856 * s390-linux-nat.c: Likewise.
10857 * sparc64-linux-nat.c: Likewise.
10858 * x86-linux-nat.c: Likewise.
10859 * x86-linux-nat.h: Include "nat/x86-linux.h".
10860 (x86_linux_nat_target) <low_new_fork, low_forget_process,
10861 low_prepare_to_resume, low_new_thread, low_delete_thread>:
10862 Override methods.
10863
57810aa7
PA
108642018-05-02 Pedro Alves <palves@redhat.com>
10865
10866 * target.h (target_ops)
10867 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10868 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
10869 stopped_by_watchpoint, have_continuable_watchpoint,
10870 stopped_data_address, watchpoint_addr_within_range,
10871 can_accel_watchpoint_condition, can_run, thread_alive,
10872 has_all_memory, has_memory, has_stack, has_registers,
10873 has_execution, can_async_p, is_async_p, supports_non_stop,
10874 always_non_stop_p, can_execute_reverse, supports_multi_process,
10875 supports_enable_disable_tracepoint,
10876 supports_disable_randomization, supports_string_tracing,
10877 supports_evaluation_of_breakpoint_conditions,
10878 can_run_breakpoint_commands, filesystem_is_local,
10879 can_download_tracepoint, get_trace_state_variable_value,
10880 set_trace_notes, get_tib_address, use_agent, can_use_agent,
10881 record_is_replaying, record_will_replay,
10882 augmented_libraries_svr4_read>: Adjust to return bool.
10883 * aarch64-linux-nat.c: All implementations adjusted.
10884 * aix-thread.c: All implementations adjusted.
10885 * arm-linux-nat.c: All implementations adjusted.
10886 * breakpoint.c: All implementations adjusted.
10887 * bsd-kvm.c: All implementations adjusted.
10888 * bsd-uthread.c: All implementations adjusted.
10889 * corelow.c: All implementations adjusted.
10890 * ctf.c: All implementations adjusted.
10891 * darwin-nat.c: All implementations adjusted.
10892 * darwin-nat.h: All implementations adjusted.
10893 * exec.c: All implementations adjusted.
10894 * fbsd-nat.c: All implementations adjusted.
10895 * fbsd-nat.h: All implementations adjusted.
10896 * gnu-nat.c: All implementations adjusted.
10897 * gnu-nat.h: All implementations adjusted.
10898 * go32-nat.c: All implementations adjusted.
10899 * ia64-linux-nat.c: All implementations adjusted.
10900 * inf-child.c: All implementations adjusted.
10901 * inf-child.h: All implementations adjusted.
10902 * inf-ptrace.c: All implementations adjusted.
10903 * inf-ptrace.h: All implementations adjusted.
10904 * linux-nat.c: All implementations adjusted.
10905 * linux-nat.h: All implementations adjusted.
10906 * mips-linux-nat.c: All implementations adjusted.
10907 * nto-procfs.c: All implementations adjusted.
10908 * ppc-linux-nat.c: All implementations adjusted.
10909 * procfs.c: All implementations adjusted.
10910 * ravenscar-thread.c: All implementations adjusted.
10911 * record-btrace.c: All implementations adjusted.
10912 * record-full.c: All implementations adjusted.
10913 * remote-sim.c: All implementations adjusted.
10914 * remote.c: All implementations adjusted.
10915 * s390-linux-nat.c: All implementations adjusted.
10916 * sol-thread.c: All implementations adjusted.
10917 * spu-multiarch.c: All implementations adjusted.
10918 * target-delegates.c: All implementations adjusted.
10919 * target.c: All implementations adjusted.
10920 * target.h: All implementations adjusted.
10921 * tracefile-tfile.c: All implementations adjusted.
10922 * tracefile.c: All implementations adjusted.
10923 * tracefile.h: All implementations adjusted.
10924 * windows-nat.c: All implementations adjusted.
10925 * x86-linux-nat.h: All implementations adjusted.
10926 * x86-nat.h: All implementations adjusted.
10927
ad6a4e2d
PA
109282018-05-02 Pedro Alves <palves@redhat.com>
10929
10930 * make-target-delegates (scan_target_h): Don't trim lines here.
10931 Replace sequences of tabs and/or whitespace with a single
10932 whitespace.
10933 (top level, parsing methods): Trim each line before processing it
10934 here.
10935
f6ac5f3d
PA
109362018-05-02 Pedro Alves <palves@redhat.com>
10937 John Baldwin <jhb@freebsd.org>
10938
10939 * target.h (enum strata) <debug_stratum>: New.
10940 (struct target_ops) <all delegation methods>: Replace by C++
10941 virtual methods, and drop "to_" prefix. All references updated
10942 throughout.
10943 <to_shortname, to_longname, to_doc, to_data,
10944 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
10945 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
10946 virtual methods. All references updated throughout.
10947 <can_attach, supports_terminal_ours, can_create_inferior,
10948 get_thread_control_capabilities, attach_no_wait>: New
10949 virtual methods.
10950 <insert_breakpoint, remove_breakpoint>: Now
10951 TARGET_DEFAULT_NORETURN methods.
10952 <info_proc>: Now returns bool.
10953 <to_magic>: Delete.
10954 (OPS_MAGIC): Delete.
10955 (current_target): Delete. All references replaced by references
10956 to ...
10957 (target_stack): ... this. New.
10958 (target_shortname, target_longname): Adjust.
10959 (target_can_run): Now a function declaration.
10960 (default_child_has_all_memory, default_child_has_memory)
10961 (default_child_has_stack, default_child_has_registers)
10962 (default_child_has_execution): Remove target_ops parameter.
10963 (complete_target_initialization): Delete.
10964 (memory_breakpoint_target): New template class.
10965 (test_target_ops): Refactor as a C++ class with virtual methods.
10966 * make-target-delegates (NAME_PART): Tighten.
10967 (POINTER_PART, CP_SYMBOL): New.
10968 (SIMPLE_RETURN_PART): Reimplement.
10969 (VEC_RETURN_PART): Expect less.
10970 (RETURN_PART, VIRTUAL_PART): New.
10971 (METHOD): Adjust to C++ virtual methods.
10972 (scan_target_h): Remove reference to C99.
10973 (dname): Output "target_ops::" prefix.
10974 (write_function_header): Adjust to output a C++ class method.
10975 (write_declaration): New.
10976 (write_delegator): Adjust to output a C++ class method.
10977 (tdname): Output "dummy_target::" prefix.
10978 (write_tdefault, write_debugmethod): Adjust to output a C++ class
10979 method.
10980 (tdefault_names, debug_names): Delete.
10981 (return_types, tdefaults, styles, argtypes_array): New.
10982 (top level): All methods are delegators.
10983 (print_class): New.
10984 (top level): Print dummy_target and debug_target classes.
10985 * target-delegates.c: Regenerate.
10986 * target-debug.h (target_debug_print_enum_info_proc_what)
10987 (target_debug_print_thread_control_capabilities)
10988 (target_debug_print_thread_info_p): New.
10989 * target.c (dummy_target): Delete.
10990 (the_dummy_target, the_debug_target): New.
10991 (target_stack): Now extern.
10992 (set_targetdebug): Push/unpush debug target.
10993 (default_child_has_all_memory, default_child_has_memory)
10994 (default_child_has_stack, default_child_has_registers)
10995 (default_child_has_execution): Remove target_ops parameter.
10996 (complete_target_initialization): Delete.
10997 (add_target_with_completer): No longer call
10998 complete_target_initialization.
10999 (target_supports_terminal_ours): Use regular delegation.
11000 (update_current_target): Delete.
11001 (push_target): No longer check magic number. Don't call
11002 update_current_target.
11003 (unpush_target): Don't call update_current_target.
11004 (target_is_pushed): No longer check magic number.
11005 (target_require_runnable): Skip for all stratums over
11006 process_stratum.
11007 (target_ops::info_proc): New.
11008 (target_info_proc): Use find_target_at and
11009 find_default_run_target.
11010 (target_supports_disable_randomization): Use regular delegation.
11011 (target_get_osdata): Use find_target_at.
11012 (target_ops::open, target_ops::close, target_ops::can_attach)
11013 (target_ops::attach, target_ops::can_create_inferior)
11014 (target_ops::create_inferior, target_ops::can_run)
11015 (target_can_run): New.
11016 (default_fileio_target): Use regular delegation.
11017 (target_ops::fileio_open, target_ops::fileio_pwrite)
11018 (target_ops::fileio_pread, target_ops::fileio_fstat)
11019 (target_ops::fileio_close, target_ops::fileio_unlink)
11020 (target_ops::fileio_readlink): New.
11021 (target_fileio_open_1, target_fileio_unlink)
11022 (target_fileio_readlink): Always call the target method. Handle
11023 FILEIO_ENOSYS.
11024 (return_zero, return_zero_has_execution): Delete.
11025 (init_dummy_target): Delete.
11026 (dummy_target::dummy_target, dummy_target::shortname)
11027 (dummy_target::longname, dummy_target::doc)
11028 (debug_target::debug_target, debug_target::shortname)
11029 (debug_target::longname, debug_target::doc): New.
11030 (target_supports_delete_record): Use regular delegation.
11031 (setup_target_debug): Delete.
11032 (maintenance_print_target_stack): Skip debug_stratum.
11033 (initialize_targets): Instantiate the_dummy_target and
11034 the_debug_target.
11035 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
11036 use target_stack.
11037 (target_auxv_search, fprint_target_auxv): Adjust.
11038 (info_auxv_command): Adjust to use target_stack.
11039 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
11040 * exceptions.c (print_flush): Handle a NULL target_stack.
11041 * regcache.c (target_ops_no_register): Refactor as class with
11042 virtual methods.
11043
11044 * exec.c (exec_target): New class.
11045 (exec_ops): Now an exec_target.
11046 (exec_open, exec_close_1, exec_get_section_table)
11047 (exec_xfer_partial, exec_files_info, exec_has_memory)
11048 (exec_make_note_section): Refactor as exec_target methods.
11049 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
11050 Delete.
11051 (exec_target::find_memory_regions): New.
11052 (_initialize_exec): Don't call init_exec_ops.
11053 * gdbcore.h (exec_file_clear): Delete.
11054
11055 * corefile.c (core_target): Delete.
11056 (core_file_command): Adjust.
11057 * corelow.c (core_target): New class.
11058 (the_core_target): New.
11059 (core_close): Remove target_ops parameter.
11060 (core_close_cleanup): Adjust.
11061 (core_target::close): New.
11062 (core_open, core_detach, get_core_registers, core_files_info)
11063 (core_xfer_partial, core_thread_alive, core_read_description)
11064 (core_pid_to_str, core_thread_name, core_has_memory)
11065 (core_has_stack, core_has_registers, core_info_proc): Rework as
11066 core_target methods.
11067 (ignore, core_remove_breakpoint, init_core_ops): Delete.
11068 (_initialize_corelow): Initialize the_core_target.
11069 * gdbcore.h (core_target): Delete.
11070 (the_core_target): New.
11071
11072 * ctf.c: (ctf_target): New class.
11073 (ctf_ops): Now a ctf_target.
11074 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
11075 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
11076 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
11077 methods.
11078 (init_ctf_ops): Delete.
11079 (_initialize_ctf): Don't call it.
11080 * tracefile-tfile.c (tfile_target): New class.
11081 (tfile_ops): Now a tfile_target.
11082 (tfile_open, tfile_close, tfile_files_info)
11083 (tfile_get_tracepoint_status, tfile_trace_find)
11084 (tfile_fetch_registers, tfile_xfer_partial)
11085 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
11086 Refactor as tfile_target methods.
11087 (tfile_xfer_partial_features): Remove target_ops parameter.
11088 (init_tfile_ops): Delete.
11089 (_initialize_tracefile_tfile): Don't call it.
11090 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
11091 (tracefile_has_stack, tracefile_has_registers)
11092 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
11093 tracefile_target methods.
11094 (init_tracefile_ops): Delete.
11095 (tracefile_target::tracefile_target): New.
11096 * tracefile.h: Include "target.h".
11097 (tracefile_target): New class.
11098 (init_tracefile_ops): Delete.
11099
11100 * spu-multiarch.c (spu_multiarch_target): New class.
11101 (spu_ops): Now a spu_multiarch_target.
11102 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
11103 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
11104 (spu_search_memory, spu_mourn_inferior): Refactor as
11105 spu_multiarch_target methods.
11106 (init_spu_ops): Delete.
11107 (_initialize_spu_multiarch): Remove references to init_spu_ops,
11108 complete_target_initialization.
11109
11110 * ravenscar-thread.c (ravenscar_thread_target): New class.
11111 (ravenscar_ops): Now a ravenscar_thread_target.
11112 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
11113 (ravenscar_thread_alive, ravenscar_pid_to_str)
11114 (ravenscar_fetch_registers, ravenscar_store_registers)
11115 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
11116 (ravenscar_stopped_by_hw_breakpoint)
11117 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
11118 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
11119 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
11120 methods.
11121 (init_ravenscar_thread_ops): Delete.
11122 (_initialize_ravenscar): Remove references to
11123 init_ravenscar_thread_ops and complete_target_initialization.
11124
11125 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
11126 (bsd_uthread_target): New class.
11127 (bsd_uthread_ops): Now a bsd_uthread_target.
11128 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
11129 (bsd_uthread_close, bsd_uthread_mourn_inferior)
11130 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
11131 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
11132 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
11133 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
11134 (bsd_uthread_target): Delete function.
11135 (_initialize_bsd_uthread): Remove reference to
11136 complete_target_initialization.
11137
11138 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
11139 (target_bfd): ... this new class.
11140 (target_bfd_xfer_partial, target_bfd_get_section_table)
11141 (target_bfd_close): Refactor as target_bfd methods.
11142 (target_bfd::~target_bfd): New.
11143 (target_bfd_reopen): Adjust.
11144 (target_bfd::close): New.
11145
11146 * record-btrace.c (record_btrace_target): New class.
11147 (record_btrace_ops): Now a record_btrace_target.
11148 (record_btrace_open, record_btrace_stop_recording)
11149 (record_btrace_disconnect, record_btrace_close)
11150 (record_btrace_async, record_btrace_info)
11151 (record_btrace_insn_history, record_btrace_insn_history_range)
11152 (record_btrace_insn_history_from, record_btrace_call_history)
11153 (record_btrace_call_history_range)
11154 (record_btrace_call_history_from, record_btrace_record_method)
11155 (record_btrace_is_replaying, record_btrace_will_replay)
11156 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
11157 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
11158 (record_btrace_store_registers, record_btrace_prepare_to_store)
11159 (record_btrace_to_get_unwinder)
11160 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
11161 (record_btrace_commit_resume, record_btrace_wait)
11162 (record_btrace_stop, record_btrace_can_execute_reverse)
11163 (record_btrace_stopped_by_sw_breakpoint)
11164 (record_btrace_supports_stopped_by_sw_breakpoint)
11165 (record_btrace_stopped_by_hw_breakpoint)
11166 (record_btrace_supports_stopped_by_hw_breakpoint)
11167 (record_btrace_update_thread_list, record_btrace_thread_alive)
11168 (record_btrace_goto_begin, record_btrace_goto_end)
11169 (record_btrace_goto, record_btrace_stop_replaying_all)
11170 (record_btrace_execution_direction)
11171 (record_btrace_prepare_to_generate_core)
11172 (record_btrace_done_generating_core): Refactor as
11173 record_btrace_target methods.
11174 (init_record_btrace_ops): Delete.
11175 (_initialize_record_btrace): Remove reference to
11176 init_record_btrace_ops.
11177 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
11178 the execution_direction global.
11179 (record_full_base_target, record_full_target)
11180 (record_full_core_target): New classes.
11181 (record_full_ops): Now a record_full_target.
11182 (record_full_core_ops): Now a record_full_core_target.
11183 (record_full_target::detach, record_full_target::disconnect)
11184 (record_full_core_target::disconnect)
11185 (record_full_target::mourn_inferior, record_full_target::kill):
11186 New.
11187 (record_full_open, record_full_close, record_full_async): Refactor
11188 as methods of the record_full_base_target class.
11189 (record_full_resume, record_full_commit_resume): Refactor
11190 as methods of the record_full_target class.
11191 (record_full_wait, record_full_stopped_by_watchpoint)
11192 (record_full_stopped_data_address)
11193 (record_full_stopped_by_sw_breakpoint)
11194 (record_full_supports_stopped_by_sw_breakpoint)
11195 (record_full_stopped_by_hw_breakpoint)
11196 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
11197 methods of the record_full_base_target class.
11198 (record_full_store_registers, record_full_xfer_partial)
11199 (record_full_insert_breakpoint, record_full_remove_breakpoint):
11200 Refactor as methods of the record_full_target class.
11201 (record_full_can_execute_reverse, record_full_get_bookmark)
11202 (record_full_goto_bookmark, record_full_execution_direction)
11203 (record_full_record_method, record_full_info, record_full_delete)
11204 (record_full_is_replaying, record_full_will_replay)
11205 (record_full_goto_begin, record_full_goto_end, record_full_goto)
11206 (record_full_stop_replaying): Refactor as methods of the
11207 record_full_base_target class.
11208 (record_full_core_resume, record_full_core_kill)
11209 (record_full_core_fetch_registers)
11210 (record_full_core_prepare_to_store)
11211 (record_full_core_store_registers, record_full_core_xfer_partial)
11212 (record_full_core_insert_breakpoint)
11213 (record_full_core_remove_breakpoint)
11214 (record_full_core_has_execution): Refactor
11215 as methods of the record_full_core_target class.
11216 (record_full_base_target::supports_delete_record): New.
11217 (init_record_full_ops): Delete.
11218 (init_record_full_core_ops): Delete.
11219 (record_full_save): Refactor as method of the
11220 record_full_base_target class.
11221 (_initialize_record_full): Remove references to
11222 init_record_full_ops and init_record_full_core_ops.
11223
11224 * remote.c (remote_target, extended_remote_target): New classes.
11225 (remote_ops): Now a remote_target.
11226 (extended_remote_ops): Now an extended_remote_target.
11227 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
11228 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
11229 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
11230 (remote_pass_signals, remote_set_syscall_catchpoint)
11231 (remote_program_signals, )
11232 (remote_thread_always_alive): Remove target_ops parameter.
11233 (remote_thread_alive, remote_thread_name)
11234 (remote_update_thread_list, remote_threads_extra_info)
11235 (remote_static_tracepoint_marker_at)
11236 (remote_static_tracepoint_markers_by_strid)
11237 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
11238 (remote_open): Refactor as methods of remote_target.
11239 (extended_remote_open, extended_remote_detach)
11240 (extended_remote_attach, extended_remote_post_attach):
11241 (extended_remote_supports_disable_randomization)
11242 (extended_remote_create_inferior): : Refactor as method of
11243 extended_remote_target.
11244 (remote_set_permissions, remote_open_1, remote_detach)
11245 (remote_follow_fork, remote_follow_exec, remote_disconnect)
11246 (remote_resume, remote_commit_resume, remote_stop)
11247 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
11248 (remote_terminal_ours, remote_wait, remote_fetch_registers)
11249 (remote_prepare_to_store, remote_store_registers)
11250 (remote_flash_erase, remote_flash_done, remote_files_info)
11251 (remote_kill, remote_mourn, remote_insert_breakpoint)
11252 (remote_remove_breakpoint, remote_insert_watchpoint)
11253 (remote_watchpoint_addr_within_range)
11254 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
11255 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
11256 (remote_supports_stopped_by_sw_breakpoint)
11257 (remote_stopped_by_hw_breakpoint)
11258 (remote_supports_stopped_by_hw_breakpoint)
11259 (remote_stopped_by_watchpoint, remote_stopped_data_address)
11260 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
11261 (remote_verify_memory): Refactor as methods of remote_target.
11262 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
11263 parameter.
11264 (remote_xfer_partial, remote_get_memory_xfer_limit)
11265 (remote_search_memory, remote_rcmd, remote_memory_map)
11266 (remote_pid_to_str, remote_get_thread_local_address)
11267 (remote_get_tib_address, remote_read_description): Refactor as
11268 methods of remote_target.
11269 (remote_target::fileio_open, remote_target::fileio_pwrite)
11270 (remote_target::fileio_pread, remote_target::fileio_close): New.
11271 (remote_hostio_readlink, remote_hostio_fstat)
11272 (remote_filesystem_is_local, remote_can_execute_reverse)
11273 (remote_supports_non_stop, remote_supports_disable_randomization)
11274 (remote_supports_multi_process, remote_supports_cond_breakpoints)
11275 (remote_supports_enable_disable_tracepoint)
11276 (remote_supports_string_tracing)
11277 (remote_can_run_breakpoint_commands, remote_trace_init)
11278 (remote_download_tracepoint, remote_can_download_tracepoint)
11279 (remote_download_trace_state_variable, remote_enable_tracepoint)
11280 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
11281 (remote_trace_start, remote_get_trace_status)
11282 (remote_get_tracepoint_status, remote_trace_stop)
11283 (remote_trace_find, remote_get_trace_state_variable_value)
11284 (remote_save_trace_data, remote_get_raw_trace_data)
11285 (remote_set_disconnected_tracing, remote_core_of_thread)
11286 (remote_set_circular_trace_buffer, remote_traceframe_info)
11287 (remote_get_min_fast_tracepoint_insn_len)
11288 (remote_set_trace_buffer_size, remote_set_trace_notes)
11289 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
11290 (remote_disable_btrace, remote_teardown_btrace)
11291 (remote_read_btrace, remote_btrace_conf)
11292 (remote_augmented_libraries_svr4_read, remote_load)
11293 (remote_pid_to_exec_file, remote_can_do_single_step)
11294 (remote_execution_direction, remote_thread_handle_to_thread_info):
11295 Refactor as methods of remote_target.
11296 (init_remote_ops, init_extended_remote_ops): Delete.
11297 (remote_can_async_p, remote_is_async_p, remote_async)
11298 (remote_thread_events, remote_upload_tracepoints)
11299 (remote_upload_trace_state_variables): Refactor as methods of
11300 remote_target.
11301 (_initialize_remote): Remove references to init_remote_ops and
11302 init_extended_remote_ops.
11303
11304 * remote-sim.c (gdbsim_target): New class.
11305 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
11306 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
11307 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
11308 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
11309 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
11310 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
11311 Refactor as methods of gdbsim_target.
11312 (gdbsim_ops): Now a gdbsim_target.
11313 (init_gdbsim_ops): Delete.
11314 (gdbsim_cntrl_c): Adjust.
11315 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
11316
11317 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
11318 (the_amd64_linux_nat_target): New.
11319 (amd64_linux_fetch_inferior_registers)
11320 (amd64_linux_store_inferior_registers): Refactor as methods of
11321 amd64_linux_nat_target.
11322 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
11323 * i386-linux-nat.c: Don't include "linux-nat.h".
11324 (i386_linux_nat_target): New class.
11325 (the_i386_linux_nat_target): New.
11326 (i386_linux_fetch_inferior_registers)
11327 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
11328 as methods of i386_linux_nat_target.
11329 (_initialize_i386_linux_nat): Adjust. Set linux_target.
11330 * inf-child.c (inf_child_ops): Delete.
11331 (inf_child_fetch_inferior_registers)
11332 (inf_child_store_inferior_registers): Delete.
11333 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
11334 methods of inf_child_target.
11335 (inf_child_target::supports_terminal_ours)
11336 (inf_child_target::terminal_init)
11337 (inf_child_target::terminal_inferior)
11338 (inf_child_target::terminal_ours_for_output)
11339 (inf_child_target::terminal_ours, inf_child_target::interrupt)
11340 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
11341 New.
11342 (inf_child_open, inf_child_disconnect, inf_child_close)
11343 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
11344 (inf_child_post_startup_inferior, inf_child_can_run)
11345 (inf_child_pid_to_exec_file): Refactor as methods of
11346 inf_child_target.
11347 (inf_child_follow_fork): Delete.
11348 (inf_child_target::can_create_inferior)
11349 (inf_child_target::can_attach): New.
11350 (inf_child_target::has_all_memory, inf_child_target::has_memory)
11351 (inf_child_target::has_stack, inf_child_target::has_registers)
11352 (inf_child_target::has_execution): New.
11353 (inf_child_fileio_open, inf_child_fileio_pwrite)
11354 (inf_child_fileio_pread, inf_child_fileio_fstat)
11355 (inf_child_fileio_close, inf_child_fileio_unlink)
11356 (inf_child_fileio_readlink, inf_child_use_agent)
11357 (inf_child_can_use_agent): Refactor as methods of
11358 inf_child_target.
11359 (return_zero, inf_child_target): Delete.
11360 (inf_child_target::inf_child_target): New.
11361 * inf-child.h: Include "target.h".
11362 (inf_child_target): Delete function prototype.
11363 (inf_child_target): New class.
11364 (inf_child_open_target, inf_child_mourn_inferior)
11365 (inf_child_maybe_unpush_target): Delete.
11366 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
11367 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
11368 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
11369 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
11370 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
11371 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
11372 (inf_ptrace_wait, inf_ptrace_xfer_partial)
11373 (inf_ptrace_thread_alive, inf_ptrace_files_info)
11374 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
11375 methods of inf_ptrace_target.
11376 (inf_ptrace_target): Delete function.
11377 * inf-ptrace.h: Include "inf-child.h".
11378 (inf_ptrace_target): Delete function declaration.
11379 (inf_ptrace_target): New class.
11380 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
11381 * linux-nat.c (linux_target): New.
11382 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
11383 (linux_nat_target::~linux_nat_target): New.
11384 (linux_child_post_attach, linux_child_post_startup_inferior)
11385 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
11386 (linux_child_remove_fork_catchpoint)
11387 (linux_child_insert_vfork_catchpoint)
11388 (linux_child_remove_vfork_catchpoint)
11389 (linux_child_insert_exec_catchpoint)
11390 (linux_child_remove_exec_catchpoint)
11391 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
11392 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
11393 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
11394 (linux_nat_stopped_data_address)
11395 (linux_nat_stopped_by_sw_breakpoint)
11396 (linux_nat_supports_stopped_by_sw_breakpoint)
11397 (linux_nat_stopped_by_hw_breakpoint)
11398 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
11399 (linux_nat_kill, linux_nat_mourn_inferior)
11400 (linux_nat_xfer_partial, linux_nat_thread_alive)
11401 (linux_nat_update_thread_list, linux_nat_pid_to_str)
11402 (linux_nat_thread_name, linux_child_pid_to_exec_file)
11403 (linux_child_static_tracepoint_markers_by_strid)
11404 (linux_nat_is_async_p, linux_nat_can_async_p)
11405 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
11406 (linux_nat_supports_multi_process)
11407 (linux_nat_supports_disable_randomization, linux_nat_async)
11408 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
11409 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
11410 (linux_nat_fileio_open, linux_nat_fileio_readlink)
11411 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
11412 methods of linux_nat_target.
11413 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
11414 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
11415 parameter.
11416 (check_stopped_by_watchpoint): Adjust.
11417 (linux_xfer_partial): Delete.
11418 (linux_target_install_ops, linux_target, linux_nat_add_target):
11419 Delete.
11420 (linux_nat_target::linux_nat_target): New.
11421 * linux-nat.h: Include "inf-ptrace.h".
11422 (linux_nat_target): New.
11423 (linux_target, linux_target_install_ops, linux_nat_add_target):
11424 Delete function declarations.
11425 (linux_target): Declare global.
11426 * linux-thread-db.c (thread_db_target): New.
11427 (thread_db_target::thread_db_target): New.
11428 (thread_db_ops): Delete.
11429 (the_thread_db_target): New.
11430 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
11431 (thread_db_update_thread_list, thread_db_pid_to_str)
11432 (thread_db_extra_thread_info)
11433 (thread_db_thread_handle_to_thread_info)
11434 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
11435 (thread_db_resume): Refactor as methods of thread_db_target.
11436 (init_thread_db_ops): Delete.
11437 (_initialize_thread_db): Remove reference to init_thread_db_ops.
11438 * x86-linux-nat.c: Don't include "linux-nat.h".
11439 (super_post_startup_inferior): Delete.
11440 (x86_linux_nat_target::~x86_linux_nat_target): New.
11441 (x86_linux_child_post_startup_inferior)
11442 (x86_linux_read_description, x86_linux_enable_btrace)
11443 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
11444 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
11445 methods of x86_linux_nat_target.
11446 (x86_linux_create_target): Delete. Bits folded ...
11447 (x86_linux_add_target): ... here. Now takes a linux_nat_target
11448 pointer.
11449 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
11450 (x86_linux_nat_target): New class.
11451 (x86_linux_create_target): Delete.
11452 (x86_linux_add_target): Now takes a linux_nat_target pointer.
11453 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
11454 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
11455 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
11456 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
11457 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
11458 make extern.
11459 (x86_use_watchpoints): Delete.
11460 * x86-nat.h: Include "breakpoint.h" and "target.h".
11461 (x86_use_watchpoints): Delete.
11462 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
11463 (x86_stopped_by_watchpoint, x86_stopped_data_address)
11464 (x86_insert_watchpoint, x86_remove_watchpoint)
11465 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
11466 (x86_stopped_by_hw_breakpoint): New declarations.
11467 (x86_nat_target): New template class.
11468
11469 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
11470 (the_ppc_linux_nat_target): New.
11471 (ppc_linux_fetch_inferior_registers)
11472 (ppc_linux_can_use_hw_breakpoint)
11473 (ppc_linux_region_ok_for_hw_watchpoint)
11474 (ppc_linux_ranged_break_num_registers)
11475 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
11476 (ppc_linux_insert_mask_watchpoint)
11477 (ppc_linux_remove_mask_watchpoint)
11478 (ppc_linux_can_accel_watchpoint_condition)
11479 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
11480 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
11481 (ppc_linux_watchpoint_addr_within_range)
11482 (ppc_linux_masked_watch_num_registers)
11483 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
11484 (ppc_linux_read_description): Refactor as methods of
11485 ppc_linux_nat_target.
11486 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
11487
11488 * procfs.c (procfs_xfer_partial): Delete forward declaration.
11489 (procfs_target): New class.
11490 (the_procfs_target): New.
11491 (procfs_target): Delete function.
11492 (procfs_auxv_parse, procfs_attach, procfs_detach)
11493 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
11494 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
11495 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
11496 (procfs_create_inferior, procfs_update_thread_list)
11497 (procfs_thread_alive, procfs_pid_to_str)
11498 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
11499 (procfs_stopped_data_address, procfs_insert_watchpoint)
11500 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
11501 (proc_find_memory_regions, procfs_info_proc)
11502 (procfs_make_note_section): Refactor as methods of procfs_target.
11503 (_initialize_procfs): Adjust.
11504 * sol-thread.c (sol_thread_target): New class.
11505 (sol_thread_ops): Now a sol_thread_target.
11506 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
11507 (sol_thread_fetch_registers, sol_thread_store_registers)
11508 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
11509 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
11510 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
11511 (init_sol_thread_ops): Delete.
11512 (_initialize_sol_thread): Adjust. Remove references to
11513 init_sol_thread_ops and complete_target_initialization.
11514
11515 * windows-nat.c (windows_nat_target): New class.
11516 (windows_fetch_inferior_registers)
11517 (windows_store_inferior_registers, windows_resume, windows_wait)
11518 (windows_attach, windows_detach, windows_pid_to_exec_file)
11519 (windows_files_info, windows_create_inferior)
11520 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
11521 (windows_close, windows_pid_to_str, windows_xfer_partial)
11522 (windows_get_tib_address, windows_get_ada_task_ptid)
11523 (windows_thread_name, windows_thread_alive): Refactor as
11524 windows_nat_target methods.
11525 (do_initial_windows_stuff): Adjust.
11526 (windows_target): Delete function.
11527 (_initialize_windows_nat): Adjust.
11528
11529 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
11530 (darwin_mourn_inferior, darwin_kill_inferior)
11531 (darwin_create_inferior, darwin_attach, darwin_detach)
11532 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
11533 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
11534 (darwin_supports_multi_process): Refactor as darwin_nat_target
11535 methods.
11536 (darwin_resume_to, darwin_files_info): Delete.
11537 (_initialize_darwin_inferior): Rename to ...
11538 (_initialize_darwin_nat): ... this. Adjust to C++ification.
11539 * darwin-nat.h: Include "inf-child.h".
11540 (darwin_nat_target): New class.
11541 (darwin_complete_target): Delete.
11542 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
11543 (darwin_target): New.
11544 (i386_darwin_fetch_inferior_registers)
11545 (i386_darwin_store_inferior_registers): Refactor as methods of
11546 darwin_nat_target.
11547 (darwin_complete_target): Delete, with ...
11548 (_initialize_i386_darwin_nat): ... bits factored out here.
11549
11550 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
11551 (the_alpha_linux_nat_target): New.
11552 (alpha_linux_register_u_offset): Refactor as
11553 alpha_linux_nat_target method.
11554 (_initialize_alpha_linux_nat): Adjust.
11555 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
11556 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11557 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
11558 methods of linux_nat_trad_target.
11559 (linux_trad_target): Delete.
11560 * linux-nat-trad.h (linux_trad_target): Delete function.
11561 (linux_nat_trad_target): New class.
11562 * mips-linux-nat.c (mips_linux_nat_target): New class.
11563 (super_fetch_registers, super_store_registers, super_close):
11564 Delete.
11565 (the_mips_linux_nat_target): New.
11566 (mips64_linux_regsets_fetch_registers)
11567 (mips64_linux_regsets_store_registers)
11568 (mips64_linux_fetch_registers, mips64_linux_store_registers)
11569 (mips_linux_register_u_offset, mips_linux_read_description)
11570 (mips_linux_can_use_hw_breakpoint)
11571 (mips_linux_stopped_by_watchpoint)
11572 (mips_linux_stopped_data_address)
11573 (mips_linux_region_ok_for_hw_watchpoint)
11574 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
11575 (mips_linux_close): Refactor as methods of mips_linux_nat.
11576 (_initialize_mips_linux_nat): Adjust to C++ification.
11577
11578 * aix-thread.c (aix_thread_target): New class.
11579 (aix_thread_ops): Now an aix_thread_target.
11580 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
11581 (aix_thread_fetch_registers, aix_thread_store_registers)
11582 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
11583 (aix_thread_thread_alive, aix_thread_pid_to_str)
11584 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
11585 Refactor as methods of aix_thread_target.
11586 (init_aix_thread_ops): Delete.
11587 (_initialize_aix_thread): Remove references to init_aix_thread_ops
11588 and complete_target_initialization.
11589 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
11590 (rs6000_nat_target): New class.
11591 (the_rs6000_nat_target): New.
11592 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
11593 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
11594 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
11595 (super_create_inferior): Delete.
11596 (_initialize_rs6000_nat): Adjust to C++ification.
11597
11598 * arm-linux-nat.c (arm_linux_nat_target): New class.
11599 (the_arm_linux_nat_target): New.
11600 (arm_linux_fetch_inferior_registers)
11601 (arm_linux_store_inferior_registers, arm_linux_read_description)
11602 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
11603 (arm_linux_remove_hw_breakpoint)
11604 (arm_linux_region_ok_for_hw_watchpoint)
11605 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
11606 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
11607 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
11608 arm_linux_nat_target.
11609 (_initialize_arm_linux_nat): Adjust to C++ification.
11610
11611 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
11612 (the_aarch64_linux_nat_target): New.
11613 (aarch64_linux_fetch_inferior_registers)
11614 (aarch64_linux_store_inferior_registers)
11615 (aarch64_linux_child_post_startup_inferior)
11616 (aarch64_linux_read_description)
11617 (aarch64_linux_can_use_hw_breakpoint)
11618 (aarch64_linux_insert_hw_breakpoint)
11619 (aarch64_linux_remove_hw_breakpoint)
11620 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
11621 (aarch64_linux_region_ok_for_hw_watchpoint)
11622 (aarch64_linux_stopped_data_address)
11623 (aarch64_linux_stopped_by_watchpoint)
11624 (aarch64_linux_watchpoint_addr_within_range)
11625 (aarch64_linux_can_do_single_step): Refactor as methods of
11626 aarch64_linux_nat_target.
11627 (super_post_startup_inferior): Delete.
11628 (_initialize_aarch64_linux_nat): Adjust to C++ification.
11629
11630 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
11631 (the_hppa_linux_nat_target): New.
11632 (hppa_linux_fetch_inferior_registers)
11633 (hppa_linux_store_inferior_registers): Refactor as methods of
11634 hppa_linux_nat_target.
11635 (_initialize_hppa_linux_nat): Adjust to C++ification.
11636
11637 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
11638 (the_ia64_linux_nat_target): New.
11639 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
11640 (ia64_linux_stopped_data_address)
11641 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
11642 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
11643 ia64_linux_nat_target methods.
11644 (super_xfer_partial): Delete.
11645 (_initialize_ia64_linux_nat): Adjust to C++ification.
11646
11647 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
11648 (the_m32r_linux_nat_target): New.
11649 (m32r_linux_fetch_inferior_registers)
11650 (m32r_linux_store_inferior_registers): Refactor as
11651 m32r_linux_nat_target methods.
11652 (_initialize_m32r_linux_nat): Adjust to C++ification.
11653
11654 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
11655 (the_m68k_linux_nat_target): New.
11656 (m68k_linux_fetch_inferior_registers)
11657 (m68k_linux_store_inferior_registers): Refactor as
11658 m68k_linux_nat_target methods.
11659 (_initialize_m68k_linux_nat): Adjust to C++ification.
11660
11661 * s390-linux-nat.c (s390_linux_nat_target): New class.
11662 (the_s390_linux_nat_target): New.
11663 (s390_linux_fetch_inferior_registers)
11664 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
11665 (s390_insert_watchpoint, s390_remove_watchpoint)
11666 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
11667 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
11668 (s390_auxv_parse, s390_read_description): Refactor as methods of
11669 s390_linux_nat_target.
11670 (_initialize_s390_nat): Adjust to C++ification.
11671
11672 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
11673 (the_sparc_linux_nat_target): New.
11674 (_initialize_sparc_linux_nat): Adjust to C++ification.
11675 * sparc-nat.c (sparc_fetch_inferior_registers)
11676 (sparc_store_inferior_registers): Remove target_ops parameter.
11677 * sparc-nat.h (sparc_fetch_inferior_registers)
11678 (sparc_store_inferior_registers): Remove target_ops parameter.
11679 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
11680 (the_sparc64_linux_nat_target): New.
11681 (_initialize_sparc64_linux_nat): Adjust to C++ification.
11682
11683 * spu-linux-nat.c (spu_linux_nat_target): New class.
11684 (the_spu_linux_nat_target): New.
11685 (spu_child_post_startup_inferior, spu_child_post_attach)
11686 (spu_child_wait, spu_fetch_inferior_registers)
11687 (spu_store_inferior_registers, spu_xfer_partial)
11688 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
11689 methods.
11690 (_initialize_spu_nat): Adjust to C++ification.
11691
11692 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
11693 (the_tilegx_linux_nat_target): New.
11694 (fetch_inferior_registers, store_inferior_registers):
11695 Refactor as methods.
11696 (_initialize_tile_linux_nat): Adjust to C++ification.
11697
11698 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
11699 (the_xtensa_linux_nat_target): New.
11700 (xtensa_linux_fetch_inferior_registers)
11701 (xtensa_linux_store_inferior_registers): Refactor as
11702 xtensa_linux_nat_target methods.
11703 (_initialize_xtensa_linux_nat): Adjust to C++ification.
11704
11705 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
11706 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
11707 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
11708 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
11709 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
11710 (fbsd_stopped_by_sw_breakpoint)
11711 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
11712 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
11713 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
11714 (fbsd_post_startup_inferior, fbsd_post_attach)
11715 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
11716 (fbsd_set_syscall_catchpoint)
11717 (super_xfer_partial, super_resume, super_wait)
11718 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
11719 (fbsd_handle_debug_trap): Remove target_ops parameter.
11720 (fbsd_nat_add_target): Delete.
11721 * fbsd-nat.h: Include "inf-ptrace.h".
11722 (fbsd_nat_add_target): Delete.
11723 (USE_SIGTRAP_SIGINFO): Define.
11724 (fbsd_nat_target): New class.
11725
11726 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
11727 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
11728 (amd64bsd_target): Delete.
11729 * amd64-bsd-nat.h: New file.
11730 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
11731 "x86-bsd-nat.h".
11732 (amd64_fbsd_nat_target): New class.
11733 (the_amd64_fbsd_nat_target): New.
11734 (amd64fbsd_read_description): Refactor as method of
11735 amd64_fbsd_nat_target.
11736 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11737 (_initialize_amd64fbsd_nat): Adjust to C++ification.
11738 * amd64-nat.h (amd64bsd_target): Delete function declaration.
11739 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
11740 (i386bsd_store_inferior_registers): Remove target_ops parameter.
11741 (i386bsd_target): Delete.
11742 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
11743 (i386bsd_fetch_inferior_registers)
11744 (i386bsd_store_inferior_registers): Declare.
11745 (i386_bsd_nat_target): New class.
11746 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
11747 (the_i386_fbsd_nat_target): New.
11748 (i386fbsd_resume, i386fbsd_read_description): Refactor as
11749 i386_fbsd_nat_target methods.
11750 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11751 (_initialize_i386fbsd_nat): Adjust to C++ification.
11752 * x86-bsd-nat.c (super_mourn_inferior): Delete.
11753 (x86bsd_mourn_inferior, x86bsd_target): Delete.
11754 (_initialize_x86_bsd_nat): Adjust to C++ification.
11755 * x86-bsd-nat.h: Include "x86-nat.h".
11756 (x86bsd_target): Delete declaration.
11757 (x86bsd_nat_target): New class.
11758
11759 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
11760 (the_aarch64_fbsd_nat_target): New.
11761 (aarch64_fbsd_fetch_inferior_registers)
11762 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
11763 aarch64_fbsd_nat_target.
11764 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
11765 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
11766 (the_alpha_bsd_nat_target): New.
11767 (alphabsd_fetch_inferior_registers)
11768 (alphabsd_store_inferior_registers): Refactor as
11769 alpha_bsd_nat_target methods.
11770 (_initialize_alphabsd_nat): Refactor as methods of
11771 alpha_bsd_nat_target.
11772 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
11773 (the_amd64_nbsd_nat_target): New.
11774 (_initialize_amd64nbsd_nat): Adjust to C++ification.
11775 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
11776 (the_amd64_obsd_nat_target): New.
11777 (_initialize_amd64obsd_nat): Adjust to C++ification.
11778 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
11779 (the_arm_fbsd_nat_target): New.
11780 (arm_fbsd_fetch_inferior_registers)
11781 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
11782 (_initialize_arm_fbsd_nat): Refactor as methods of
11783 arm_fbsd_nat_target.
11784 (_initialize_arm_fbsd_nat): Adjust to C++ification.
11785 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
11786 (the_arm_netbsd_nat_target): New.
11787 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
11788 arm_netbsd_nat_target.
11789 (_initialize_arm_netbsd_nat): Adjust to C++ification.
11790 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
11791 (the_hppa_nbsd_nat_target): New.
11792 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
11793 hppa_nbsd_nat_target methods.
11794 (_initialize_hppanbsd_nat): Adjust to C++ification.
11795 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
11796 (the_hppa_obsd_nat_target): New.
11797 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
11798 methods of hppa_obsd_nat_target.
11799 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
11800 add_target.
11801 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
11802 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
11803 add_target.
11804 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
11805 (_initialize_i386obsd_nat): Use add_target.
11806 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
11807 (the_m68k_bsd_nat_target): New.
11808 (m68kbsd_fetch_inferior_registers)
11809 (m68kbsd_store_inferior_registers): Refactor as methods of
11810 m68k_bsd_nat_target.
11811 (_initialize_m68kbsd_nat): Adjust to C++ification.
11812 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
11813 (the_mips_fbsd_nat_target): New.
11814 (mips_fbsd_fetch_inferior_registers)
11815 (mips_fbsd_store_inferior_registers): Refactor as methods of
11816 mips_fbsd_nat_target.
11817 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
11818 add_target.
11819 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
11820 (the_mips_nbsd_nat_target): New.
11821 (mipsnbsd_fetch_inferior_registers)
11822 (mipsnbsd_store_inferior_registers): Refactor as methods of
11823 mips_nbsd_nat_target.
11824 (_initialize_mipsnbsd_nat): Adjust to C++ification.
11825 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
11826 (the_mips64_obsd_nat_target): New.
11827 (mips64obsd_fetch_inferior_registers)
11828 (mips64obsd_store_inferior_registers): Refactor as methods of
11829 mips64_obsd_nat_target.
11830 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
11831 add_target.
11832 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
11833 nbsd_nat_target.
11834 * nbsd-nat.h: Include "inf-ptrace.h".
11835 (nbsd_nat_target): New class.
11836 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
11837 (obsd_wait): Refactor as methods of obsd_nat_target.
11838 (obsd_add_target): Delete.
11839 * obsd-nat.h: Include "inf-ptrace.h".
11840 (obsd_nat_target): New class.
11841 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
11842 (the_ppc_fbsd_nat_target): New.
11843 (ppcfbsd_fetch_inferior_registers)
11844 (ppcfbsd_store_inferior_registers): Refactor as methods of
11845 ppc_fbsd_nat_target.
11846 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
11847 add_target.
11848 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
11849 (the_ppc_nbsd_nat_target): New.
11850 (ppcnbsd_fetch_inferior_registers)
11851 (ppcnbsd_store_inferior_registers): Refactor as methods of
11852 ppc_nbsd_nat_target.
11853 (_initialize_ppcnbsd_nat): Adjust to C++ification.
11854 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
11855 (the_ppc_obsd_nat_target): New.
11856 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
11857 methods of ppc_obsd_nat_target.
11858 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
11859 add_target.
11860 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
11861 (the_sh_nbsd_nat_target): New.
11862 (shnbsd_fetch_inferior_registers)
11863 (shnbsd_store_inferior_registers): Refactor as methods of
11864 sh_nbsd_nat_target.
11865 (_initialize_shnbsd_nat): Adjust to C++ification.
11866 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
11867 (inf_ptrace_xfer_partial): Delete.
11868 (sparc_xfer_partial, sparc_target): Delete.
11869 * sparc-nat.h (sparc_fetch_inferior_registers)
11870 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
11871 (sparc_target): Delete function declaration.
11872 (sparc_target): New template class.
11873 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
11874 (_initialize_sparcnbsd_nat): Adjust to C++ification.
11875 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
11876 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
11877 add_target.
11878 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
11879 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
11880 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
11881 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
11882 add_target.
11883 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
11884 (the_vax_bsd_nat_target): New.
11885 (vaxbsd_fetch_inferior_registers)
11886 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
11887 methods.
11888 (_initialize_vaxbsd_nat): Adjust to C++ification.
11889
11890 * bsd-kvm.c (bsd_kvm_target): New class.
11891 (bsd_kvm_ops): Now a bsd_kvm_target.
11892 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
11893 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
11894 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
11895 bsd_kvm_target.
11896 (bsd_kvm_return_one): Delete.
11897 (bsd_kvm_add_target): Adjust to C++ification.
11898
11899 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
11900 (nto_procfs_target_procfs): New classes.
11901 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
11902 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
11903 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
11904 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
11905 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
11906 (procfs_remove_hw_breakpoint, procfs_resume)
11907 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
11908 (procfs_kill_inferior, procfs_store_registers)
11909 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
11910 as methods of nto_procfs_target.
11911 (nto_procfs_ops): Now an nto_procfs_target_procfs.
11912 (nto_native_ops): Delete.
11913 (procfs_open, procfs_native_open): Delete.
11914 (nto_native_ops): Now an nto_procfs_target_native.
11915 (init_procfs_targets): Adjust to C++ification.
11916 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
11917 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
11918 Refactor as methods of nto_procfs_target.
11919
11920 * go32-nat.c (go32_nat_target): New class.
11921 (the_go32_nat_target): New.
11922 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
11923 (go32_store_registers, go32_xfer_partial, go32_files_info)
11924 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
11925 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
11926 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
11927 (go32_pid_to_str): Refactor as methods of go32_nat_target.
11928 (go32_target): Delete.
11929 (_initialize_go32_nat): Adjust to C++ification.
11930
11931 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
11932 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
11933 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
11934 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
11935 gnu_nat_target.
11936 (gnu_target): Delete.
11937 * gnu-nat.h (gnu_target): Delete.
11938 (gnu_nat_target): New class.
11939 * i386-gnu-nat.c (gnu_base_target): New.
11940 (i386_gnu_nat_target): New class.
11941 (the_i386_gnu_nat_target): New.
11942 (_initialize_i386gnu_nat): Adjust to C++ification.
11943
3fffc070
PA
119442018-05-02 Pedro Alves <palves@redhat.com>
11945
11946 * bfd-target.c (target_bfd_xclose): Rename to ...
11947 (target_bfd_close): ... this.
11948 (target_bfd_reopen): Adjust.
11949 * target.c (target_close): Remove references to to_xclose.
11950 * target.h (target_ops::to_xclose): Delete.
11951 (target_ops::to_close): Update comments.
11952
6798487f
PA
119532018-05-02 Pedro Alves <palves@redhat.com>
11954
11955 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
11956 "linux-nat.h".
11957 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
11958 * inf-ptrace.c (inf_ptrace_register_u_offset)
11959 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11960 (inf_ptrace_store_register, inf_ptrace_store_registers)
11961 (inf_ptrace_trad_target): Move to ...
11962 * linux-nat-trad.c: ... this new file.
11963 * linux-nat-trad.h: New file.
11964 * linux-nat.c (linux_target_install_ops): Make extern.
11965 (linux_trad_target): Delete.
11966 * linux-nat.h (linux_trad_target): Delete declaration.
11967 (linux_target_install_ops): Declare.
11968 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
11969 "linux-nat.h".
11970
c1955e17
PA
119712018-05-02 Pedro Alves <palves@redhat.com>
11972
11973 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11974 procfs_target/add_target here.
11975 * procfs.c (procfs_target): Make static.
11976 (_initialize_procfs): Call add_target here.
11977 * procfs.h (struct target_ops): Remove forward declaration.
11978 (procfs_target): Remove declaration.
11979 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
11980
b5c8fcb1
PA
119812018-05-02 Pedro Alves <palves@redhat.com>
11982
11983 * procfs.c (procfs_stopped_by_watchpoint)
11984 (procfs_insert_watchpoint, procfs_remove_watchpoint)
11985 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
11986 Forward declare.
11987 (procfs_use_watchpoints): Delete, move contents...
11988 (procfs_target): ... here.
11989 * procfs.h (procfs_use_watchpoints): Delete declaration.
11990 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11991 procfs_use_watchpoints.
11992 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
11993 procfs_use_watchpoints.
11994
0489430a
TT
119952018-05-02 Tom Tromey <tom@tromey.com>
11996
11997 PR python/20084:
11998 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
11999 and var_zuinteger_unlimited.
12000 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
12001 and PARAM_ZUINTEGER_UNLIMITED.
12002 (set_parameter_value): Handle var_zuinteger and
12003 var_zuinteger_unlimited.
12004 (add_setshow_generic): Likewise.
12005 (parmpy_init): Likewise.
12006
1632f8ba
DR
120072018-04-28 Dan Robertson <danlrobertson89@gmail.com>
12008
12009 PR rust/23124
12010 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
12011 pointer is not null before dereferencing it.
12012
76761936
TT
120132018-04-30 Tom Tromey <tom@tromey.com>
12014
12015 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
12016 is_mi_like_p.
12017
2d33446d
TT
120182018-04-30 Tom Tromey <tom@tromey.com>
12019
12020 * breakpoint.c (mention): Remove use of is_mi_like_p.
12021 (print_mention_ranged_breakpoint): Likewise.
12022 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
12023 of is_mi_like_p.
12024
f3c6abab
TT
120252018-04-30 Tom Tromey <tom@tromey.com>
12026
12027 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
12028
40c03530
TT
120292018-04-30 Tom Tromey <tom@tromey.com>
12030
12031 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
12032 (info_spu_event_command): Remove some uses of is_mi_like_p.
12033
2038b7fd
TT
120342018-04-30 Tom Tromey <tom@tromey.com>
12035
12036 * python/py-framefilter.c (py_print_single_arg)
12037 (enumerate_locals, py_print_args, py_print_frame): Remove some
12038 uses of is_mi_like_p.
12039
4904c3c6
TT
120402018-04-30 Tom Tromey <tom@tromey.com>
12041
12042 * ui-out.c: Update.
12043 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
12044 * ui-out.h (ui_out::is_mi_like_p): Now const.
12045 (ui_out::do_is_mi_like_p): Now const.
12046 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
12047
7c66fffc
TT
120482018-04-30 Tom Tromey <tom@tromey.com>
12049
12050 * varobj.c (varobj_set_visualizer): Use new_reference.
12051 * python/python.c (gdbpy_decode_line): Use new_reference.
12052 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
12053 new_reference.
12054
bbfa6f00
TT
120552018-04-30 Tom Tromey <tom@tromey.com>
12056
12057 * varobj.c (install_new_value): Use new_reference.
12058 * value.h (value_incref): Return void. Swap intro comment with
12059 value_decref.
12060 * value.c (set_value_parent): Use new_reference.
12061 (value_incref): Return void. Update intro comment.
12062 (release_value): Use new_reference.
12063 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
12064
1831a9f9
TT
120652018-04-30 Tom Tromey <tom@tromey.com>
12066
12067 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
12068 * gdb_bfd.h (new_bfd_ref): Remove.
12069 (gdb_bfd_open): Update comment.
12070 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
12071 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
12072 (gdb_bfd_fdopenr): Use new_reference.
12073 * exec.c (exec_file_attach): Use new_reference.
12074
7c1b5f3d
TT
120752018-04-30 Tom Tromey <tom@tromey.com>
12076
12077 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
12078 method.
12079
e11fb955
TT
120802018-04-30 Tom Tromey <tom@tromey.com>
12081
12082 * jit.c (jit_read_code_entry): Use type_align.
12083 * i386-tdep.c (i386_gdbarch_init): Don't call
12084 set_gdbarch_long_long_align_bit.
12085 * gdbarch.sh: Remove long_long_align_bit.
12086 * gdbarch.c, gdbarch.h: Rebuild.
12087 * arc-tdep.c (arc_type_align): New function.
12088 (arc_gdbarch_init): Use arc_type_align. Don't call
12089 set_gdbarch_long_long_align_bit.
12090
2fff16dd
TT
120912018-04-30 Tom Tromey <tom@tromey.com>
12092
12093 * rust-lang.c (rust_type_alignment): Remove.
12094 (rust_composite_type): Use type_align.
12095
6d7bb824
TT
120962018-04-30 Tom Tromey <tom@tromey.com>
12097
12098 * NEWS: Mention Type.align.
12099 * python/py-type.c (typy_get_alignof): New function.
12100 (type_object_getset): Add "alignof".
12101
007e1530
TT
121022018-04-30 Tom Tromey <tom@tromey.com>
12103
12104 PR exp/17095:
12105 * NEWS: Update.
12106 * std-operator.def (UNOP_ALIGNOF): New operator.
12107 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
12108 New.
12109 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
12110 * c-lang.c (c_op_print_tab): Add alignof.
12111 * c-exp.y (ALIGNOF): New token.
12112 (exp): Add "ALIGNOF" production.
12113 (ident_tokens): Add _Alignof and alignof.
12114
2b4424c3
TT
121152018-04-30 Tom Tromey <tom@tromey.com>
12116
12117 * i386-tdep.c (i386_type_align): New function.
12118 (i386_gdbarch_init): Update.
12119 * gdbarch.sh (type_align): New method.
12120 * gdbarch.c, gdbarch.h: Rebuild.
12121 * arch-utils.h (default_type_align): Declare.
12122 * arch-utils.c (default_type_align): New function.
12123 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
12124 (struct type) <align_log2>: New field.
12125 <instance_flags>: Now a bitfield.
12126 (TYPE_RAW_ALIGN): New macro.
12127 (type_align, type_raw_align, set_type_align): Declare.
12128 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
12129 functions.
12130 * dwarf2read.c (quirk_rust_enum): Set type alignment.
12131 (get_alignment, maybe_set_alignment): New functions.
12132 (read_structure_type, read_enumeration_type, read_array_type)
12133 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
12134 (read_subrange_type, read_base_type): Set type alignment.
12135
d33bc52e
SM
121362018-04-30 Simon Marchi <simon.marchi@ericsson.com>
12137
12138 * dwarf2read.c (read_index_from_section): Use bool.
12139
e28b63a9
FG
121402018-04-29 Fabian Groffen <grobian@gentoo.org>
12141
12142 PR gdb/22950
12143 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
12144 with #ifdef.
12145
cd8c76e4
JR
121462018-04-29 John Reiser <jreiser@BitWagon.com>
12147
12148 PR build/22873
12149 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
12150 last step, and do it atomically.
12151
476d250e
AO
121522018-04-27 Alexandre Oliva <aoliva@redhat.com>
12153
12154 * compile/compile-c-types.c (convert_int, convert_float):
12155 Update for C FE v1.
12156
6873858b
TT
121572018-04-27 Tom Tromey <tom@tromey.com>
12158
12159 PR rust/22545:
12160 * rust-lang.c (rust_inclusive_range_type_p): New function.
12161 (rust_range): Handle inclusive ranges.
12162 (rust_compute_range): Likewise.
12163 * rust-exp.y (struct rust_op) <inclusive>: New field.
12164 (DOTDOTEQ): New constant.
12165 (range_expr): Add "..=" productions.
12166 (operator_tokens): Add "..=" token.
12167 (ast_range): Add "inclusive" parameter.
12168 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
12169 ranges.
12170 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
12171 bounds values.
12172 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
12173 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
12174 Update comments.
12175 * expprint.c (print_subexp_standard): Handle new bounds values.
12176 (dump_subexp_body_standard): Likewise.
12177
632e107b
TT
121782018-04-27 Tom Tromey <tom@tromey.com>
12179
12180 * configure: Rebuild.
12181 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
12182 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
12183 "OVERRIDE".
12184 (class symbol_needs_eval_context): Likewise.
12185 * dwarf2read.c (mock_mapped_index::symbol_name_count)
12186 (mock_mapped_index::symbol_name_at): Use "override". Remove
12187 "virtual".
12188 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
12189 "override".
12190 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
12191 * aarch64-tdep.c (instruction_reader::read): Use "override".
12192 (instruction_reader_test::read): Likewise.
12193 * arm-tdep.c (instruction_reader::read): Use "override".
12194 (instruction_reader_thumb::read): Likewise.
12195
b75abf5b
AK
121962018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
12197
12198 PR remote/9665
12199 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
12200 instead of remote_send.
12201 (remote_send): Remove.
12202
79188d8d
PA
122032018-04-26 Pedro Alves <palves@redhat.com>
12204
12205 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
12206 find_function_start_sal instead of find_pc_line.
12207
f50776aa
PA
122082018-04-26 Pedro Alves <palves@redhat.com>
12209
12210 * breakpoint.c (set_breakpoint_location_function): Handle
12211 mst_data_gnu_ifunc.
12212 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
12213 * elfread.c (elf_symtab_read): Give data symbols with
12214 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
12215 (elf_rel_plt_read): Update comment.
12216 * linespec.c (convert_linespec_to_sals): Handle
12217 mst_data_gnu_ifunc.
12218 (minsym_found): Handle mst_data_gnu_ifunc.
12219 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
12220 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
12221 * parse.c (find_minsym_type_and_address): Handle
12222 mst_data_gnu_ifunc.
12223 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
12224 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
12225 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
12226 comment.
12227 <mst_data_gnu_ifunc>: New enumerator.
12228
20944a6e
PA
122292018-04-26 Pedro Alves <palves@redhat.com>
12230
12231 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
12232 (lookup_minimal_symbol_by_pc_section): ... this. Replace
12233 'want_trampoline' parameter by a lookup_msym_prefer parameter.
12234 Handle it.
12235 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
12236 (lookup_minimal_symbol_by_pc): Adjust.
12237 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
12238 (lookup_solib_trampoline_symbol_by_pc): Adjust.
12239 * minsyms.h (lookup_msym_prefer): New enum.
12240 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
12241 parameter by a lookup_msym_prefer parameter.
12242
1adeb822
PA
122432018-04-26 Pedro Alves <palves@redhat.com>
12244
12245 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
12246 ends in "@plt" instead of looking at the symbol's section.
12247
a0aca7b0
PA
122482018-04-26 Pedro Alves <palves@redhat.com>
12249
12250 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
12251 all references.
12252 (find_pc_partial_function_gnu_ifunc): Rename to ...
12253 (find_pc_partial_function): ... this, and remove references to
12254 'is_gnu_ifunc_p'.
12255 (find_pc_partial_function): Delete old implementation.
12256 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
12257
76af0f26
PA
122582018-04-26 Pedro Alves <palves@redhat.com>
12259
12260 * linespec.c (struct bound_minimal_symbol_search_key): New.
12261 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
12262 skip first line if we found a GNU ifunc minimal symbol by name.
12263 (compare_msymbols): Change parameters to work with a destructured
12264 lhs minsym.
12265 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
12266 functions.
12267
3467ec66
PA
122682018-04-26 Pedro Alves <palves@redhat.com>
12269
12270 * breakpoint.c (set_breakpoint_location_function): Don't resolve
12271 ifunc targets here. Instead, if we have an ifunc minsym, use its
12272 address/name.
12273 (add_location_to_breakpoint): Store the minsym and the objfile in
12274 the breakpoint location.
12275 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
12276 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
12277 Record the minsym in the sal.
12278 * symtab.h (symtab_and_line) <msymbol>: New field.
12279
28f4fa4d
PA
122802018-04-26 Pedro Alves <palves@redhat.com>
12281
12282 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
12283 unless we actually resolved the ifunc.
12284
ca31ab1d
PA
122852018-04-26 Pedro Alves <palves@redhat.com>
12286
12287 * c-exp.y (variable production): Prefer ifunc minsyms over
12288 regular function symbols.
12289 * symtab.c (find_gnu_ifunc): New function.
12290 * minsyms.h (lookup_msym_prefer): New enum.
12291 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
12292 parameter by a lookup_msym_prefer parameter.
12293 * symtab.h (find_gnu_ifunc): New declaration.
12294
8388016d
PA
122952018-04-26 Pedro Alves <palves@redhat.com>
12296
12297 * blockframe.c (find_gnu_ifunc_target_type): New function.
12298 (find_function_type): New.
12299 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
12300 return a value with a memory address.
12301 (eval_call): For calls to GNU ifunc functions, try to find the
12302 type of the target function from the type that the resolver
12303 returns.
12304 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
12305 symbols.
12306 * infcall.c (find_function_return_type): Delete.
12307 (find_function_addr): Add 'function_type' parameter. For calls to
12308 GNU ifunc functions, try to find the type of the target function
12309 from the type that the resolver returns, and return it via
12310 FUNCTION_TYPE.
12311 (call_function_by_hand_dummy): Adjust to use the function type
12312 returned by find_function_addr.
12313 (find_function_addr): Add 'function_type' parameter and move
12314 description here.
12315 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
12316 declarations.
12317
a376e11d
PA
123182018-04-26 Pedro Alves <palves@redhat.com>
12319
12320 * c-exp.y (variable production): Skip finding an alias for ifunc
12321 symbols.
12322
02e169e2
PA
123232018-04-26 Pedro Alves <palves@redhat.com>
12324
12325 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
12326
249b5733
PA
123272018-04-25 Pedro Alves <palves@redhat.com>
12328
12329 * infcmd.c (kill_command): Print the pid as string, not the whole
12330 thread's ptid. Add comment. s/has been killed/killed/ in output
12331 message.
12332 * remote.c (remote_detach_1): Print the pid as string, not the
12333 whole thread's ptid.
12334
f67c0c91
SDJ
123352018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12336 Sergio Durigan Junior <sergiodj@redhat.com>
12337 Pedro Alves <palves@redhat.com>
12338
12339 * infcmd.c (kill_command): Print message when inferior has
12340 been killed.
12341 * inferior.c (print_inferior_events): Remove 'static'. Set as
12342 '1'.
12343 (add_inferior): Improve message printed when
12344 'print_inferior_events' is on.
12345 (exit_inferior): Remove message printed when
12346 'print_inferior_events' is on.
12347 (detach_inferior): Improve message printed when
12348 'print_inferior_events' is on.
12349 (initialize_inferiors): Use 'add_inferior_silent' to set
12350 'current_inferior_'.
12351 * inferior.h (print_inferior_events): Declare here as
12352 'extern'.
12353 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
12354 '[Detaching...]' messages when 'print_inferior_events' is on.
12355 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
12356 as prefix/suffix for messages. Remove periods. Fix erroneous
12357 'Detaching after fork from child...', replace it by '... from
12358 parent...'.
12359 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
12360 prefix/suffix when printing 'Detaching...' messages. Print
12361 them when 'print_inferior_events' is on.
12362 * remote.c (remote_detach_1): Print message when detaching
12363 from inferior and '!is_fork_parent'.
12364
e427af18
TT
123652018-04-24 Tom Tromey <tom@tromey.com>
12366
12367 * cli-out.h: Reindent.
12368
05b1d8d6
TT
123692018-04-24 Tom Tromey <tom@tromey.com>
12370
12371 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
12372 (cli_ui_out::do_field_string): Use fputs_filtered.
12373 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
12374
a95c7dab
TT
123752018-04-23 Tom Tromey <tom@tromey.com>
12376
12377 * guile/scm-frame.c (gdbscm_frame_read_var): Use
12378 gdb::unique_xmalloc_ptr.
12379
458412c3
TT
123802018-04-23 Tom Tromey <tom@tromey.com>
12381
12382 * configure: Rebuild.
12383
db86b02b
RS
123842018-04-22 Rajendra SY <rajendra.sy@gmail.com>
12385
12386 PR gdb/23095
12387 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
12388 prepare_for_testing. Set normal_bp to r_debug_state if target
12389 is bsd.
12390
00aecdcf
PA
123912018-04-21 Pedro Alves <palves@redhat.com>
12392 Rajendra SY <rajendra.sy@gmail.com>
12393
12394 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
12395 * remote.c (extended_remote_attach): In all-stop mode, mark the
12396 thread as executing.
12397
224608c3
PW
123982018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12399
12400 * thread.c (thread_apply_all_command): Fix comment.
12401 (thread_command): Fix comment.
12402
3b74854b
AH
124032018-04-10 Alan Hayward <alan.hayward@arm.com>
12404
12405 * common/tdesc.h (tdesc_create_feature): Remove xml filename
12406 parameter.
12407 * features/aarch64-core.c (create_feature_aarch64_core):
12408 Regenerate.
12409 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
12410 Likewise.
12411 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
12412 Likewise.
12413 * features/i386/32bit-avx512.c
12414 (create_feature_i386_32bit_avx512): Likewise.
12415 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
12416 Likewise.
12417 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
12418 Likewise.
12419 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
12420 Likewise.
12421 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
12422 Likewise.
12423 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
12424 Likewise.
12425 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
12426 Likewise.
12427 * features/i386/64bit-avx512.c
12428 (create_feature_i386_64bit_avx512): Likewise.
12429 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
12430 Likewise.
12431 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
12432 Likewise.
12433 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
12434 Likewise.
12435 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
12436 Likewise.
12437 * features/i386/64bit-segments.c
12438 (create_feature_i386_64bit_segments): Likewise.
12439 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
12440 Likewise.
12441 * features/i386/x32-core.c
12442 (create_feature_i386_x32_core): Likewise.
12443 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
12444 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
12445 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
12446 * target-descriptions.c: In generated code, don't pass xml
12447 filename.
12448
e98577a9
AH
124492018-04-18 Alan Hayward <alan.hayward@arm.com>
12450
12451 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
12452 (print_xml_feature::visit_post): Likewise.
12453 (print_xml_feature::visit): Likewise.
12454 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
12455 (print_xml_feature): Add new class.
12456 * regformats/regdat.sh: Null xmltarget on feature targets.
12457 * target-descriptions.c (struct target_desc): Add xmltarget.
12458 (maintenance_check_tdesc_xml_convert): Add unittest function.
12459 (tdesc_get_features_xml): Add function to get xml.
12460 (maintenance_check_xml_descriptions): Test xml generation.
12461 * xml-tdesc.c (string_read_description_xml): Add function.
12462 * xml-tdesc.h (string_read_description_xml): Add declaration.
12463
ad7fc756
AH
124642018-04-18 Alan Hayward <alan.hayward@arm.com>
12465
12466 * features/Makefile: Add feature marker to targets with new style
12467 target descriptions.
12468 * regformats/aarch64.dat: Regenerate.
12469 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
12470 * regformats/i386/amd64-avx-linux.dat: Likewise.
12471 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
12472 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
12473 * regformats/i386/amd64-linux.dat: Likewise.
12474 * regformats/i386/amd64-mpx-linux.dat: Likewise.
12475 * regformats/i386/amd64.dat: Likewise.
12476 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
12477 * regformats/i386/i386-avx-linux.dat: Likewise.
12478 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
12479 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
12480 * regformats/i386/i386-linux.dat: Likewise.
12481 * regformats/i386/i386-mmx-linux.dat: Likewise.
12482 * regformats/i386/i386-mpx-linux.dat: Likewise.
12483 * regformats/i386/i386.dat: Likewise.
12484 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
12485 * regformats/i386/x32-avx-linux.dat: Likewise.
12486 * regformats/i386/x32-linux.dat: Likewise.
12487 * regformats/tic6x-c62x-linux.dat: Likewise.
12488 * regformats/tic6x-c64x-linux.dat: Likewise.
12489 * regformats/tic6x-c64xp-linux.dat: Likewise.
12490 * regformats/regdat.sh: Parse feature marker.
12491
d278f585
AH
124922018-04-18 Alan Hayward <alan.hayward@arm.com>
12493
12494 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
12495 (tdesc_osabi_name): Likewise.
12496 * target-descriptions.c (tdesc_architecture_name): Add new
12497 function.
12498 (tdesc_osabi_name): Likewise.
12499
eee8a18d
AH
125002018-04-18 Alan Hayward <alan.hayward@arm.com>
12501
12502 * common/tdesc.c (tdesc_predefined_type): Move to here.
12503 (tdesc_named_type): Likewise.
12504 (tdesc_create_vector): Likewise.
12505 (tdesc_create_struct): Likewise.
12506 (tdesc_set_struct_size): Likewise.
12507 (tdesc_create_union): Likewise.
12508 (tdesc_create_flags): Likewise.
12509 (tdesc_create_enum): Likewise.
12510 (tdesc_add_field): Likewise.
12511 (tdesc_add_typed_bitfield): Likewise.
12512 (tdesc_add_bitfield): Likewise.
12513 (tdesc_add_flag): Likewise.
12514 (tdesc_add_enum_value): Likewise.
12515 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
12516 (struct tdesc_type_vector): Likewise.
12517 (struct tdesc_type_field): Likewise.
12518 (struct tdesc_type_with_fields): Likewise.
12519 (tdesc_create_enum): Add declaration.
12520 (tdesc_add_typed_bitfield): Likewise.
12521 (tdesc_add_enum_value): Likewise.
12522 * target-descriptions.c (tdesc_type_field): Move from here.
12523 (tdesc_type_builtin): Likewise.
12524 (tdesc_type_vector): Likewise.
12525 (tdesc_type_with_fields): Likewise.
12526 (tdesc_predefined_types): Likewise.
12527 (tdesc_named_type): Likewise.
12528 (tdesc_create_vector): Likewise.
12529 (tdesc_create_struct): Likewise.
12530 (tdesc_set_struct_size): Likewise.
12531 (tdesc_create_union): Likewise.
12532 (tdesc_create_flags): Likewise.
12533 (tdesc_create_enum): Likewise.
12534 (tdesc_add_field): Likewise.
12535 (tdesc_add_typed_bitfield): Likewise.
12536 (tdesc_add_bitfield): Likewise.
12537 (tdesc_add_flag): Likewise.
12538 (tdesc_add_enum_value): Likewise.
12539 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
12540 (tdesc_add_typed_bitfield): Likewise.
12541 (tdesc_add_enum_value): Likewise.
12542
82ec9bc7
AH
125432018-04-18 Alan Hayward <alan.hayward@arm.com>
12544
12545 * common/tdesc.c (tdesc_feature::accept): Move to here.
12546 (tdesc_feature::operator==): Likewise.
12547 (tdesc_create_reg): Likewise.
12548 * common/tdesc.h (tdesc_type_kind): Likewise.
12549 (struct tdesc_type): Likewise.
12550 (struct tdesc_feature): Likewise.
12551 * regformats/regdat.sh: Create a feature.
12552 * target-descriptions.c (tdesc_type_kind): Move from here.
12553 (tdesc_type): Likewise.
12554 (tdesc_type_up): Likewise.
12555 (tdesc_feature): Likewise.
12556 (tdesc_create_reg): Likewise.
12557
ea3e7d71
AH
125582018-04-18 Alan Hayward <alan.hayward@arm.com>
12559
12560 * Makefile.in: Add arch/tdesc.c
12561 * common/tdesc.c: New file.
12562 * common/tdesc.h (tdesc_element_visitor): Move to here.
12563 (tdesc_element): Likewise.
12564 (tdesc_reg): Likewise.
12565 (tdesc_reg_up): Likewise.
12566 * regformats/regdef.h (reg): Add offset to constructors.
12567 * target-descriptions.c (tdesc_element_visitor): Move from here.
12568 (tdesc_element): Likewise.
12569 (tdesc_reg): Likewise.
12570 (tdesc_reg_up): Likewise.
12571
bedda9ac
TT
125722018-04-17 Tom Tromey <tom@tromey.com>
12573
12574 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
12575 discriminant field.
12576
a037790e
TT
125772018-04-17 Tom Tromey <tom@tromey.com>
12578
12579 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
12580
c7dcbf88
AA
125812018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
12582
12583 * symtab.c (print_symbol_info): Skip printing filename and line
12584 number when `last' is NULL.
12585 (symtab_symbol_info): Use empty string instead of NULL for first
12586 invocation of print_symbol_info.
12587 (rbreak_command): Pass NULL to `last' parameter of
12588 print_symbol_info.
12589
07d28c77
SM
125902018-04-16 Simon Marchi <simon.marchi@ericsson.com>
12591
12592 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
12593 instead of nullptr.
12594
8a3de5e1
PA
125952018-04-16 Pedro Alves <palves@redhat.com>
12596
12597 * MAINTAINERS (sh): Remove.
12598 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
12599 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
12600 (ALLDEPFILES): Remove sh64-tdep.c.
12601 * NEWS: Mentions that support for SH-5/SH64 is removed.
12602 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
12603 (sh*-*-openbsd*): Ditto.
12604 (sh64-*-elf*): Remove.
12605 (sh*): Remove.
12606 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
12607 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
12608 * sh-tdep.c: No longer include "sh64-tdep.h".
12609 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
12610 * sh64-tdep.c, sh64-tdep.h: Remove files.
12611
a2a79012
PA
126122018-04-16 Pedro Alves <palves@redhat.com>
12613
12614 * MAINTAINERS: Remove m88k.
12615 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
12616 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
12617 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
12618 * NEWS: Mention that support for m88k was removed.
12619 * configure.host (m88*-*-*): Remove support.
12620 * configure.nat (m88k-*-*): Remove support.
12621 * configure.tgt (m88*-*-openbsd*): Remove.
12622 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
12623
eda4efb1
SM
126242018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
12625
12626 * configure.tgt (x86_tobjs): New variable.
12627 (amd64_tobjs, i386_tobjs): Use it.
12628
b744723f
AA
126292018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12630
12631 * symtab.c (print_symbol_info): Precede the symbol definition by
12632 the line number when available.
12633 * NEWS: Advertise this enhancement.
12634
4a4495d6
MM
126352018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12636
12637 * NEWS (New options): announce set/show record btrace cpu.
12638 * btrace.c: Include record-btrace.h.
12639 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
12640 the vendor is unknown.
12641 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
12642 Maybe overwrite the btrace configuration's cpu.
12643 (btrace_compute_ftrace): Add cpu parameter. Update callers.
12644 (btrace_fetch): Add cpu parameter. Update callers.
12645 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
12646 Maybe overwrite the btrace configuration's cpu. Skip enabling
12647 errata workarounds if the vendor is unknown.
12648 * python/py-record-btrace.c: Include record-btrace.h.
12649 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
12650 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
12651 * record-btrace.c (record_btrace_cpu_state_kind): New.
12652 (record_btrace_cpu): New.
12653 (set_record_btrace_cpu_cmdlist): New.
12654 (record_btrace_get_cpu): New.
12655 (require_btrace_thread, record_btrace_info)
12656 (record_btrace_resume_thread): Call record_btrace_get_cpu.
12657 (cmd_set_record_btrace_cpu_none): New.
12658 (cmd_set_record_btrace_cpu_auto): New.
12659 (cmd_set_record_btrace_cpu): New.
12660 (cmd_show_record_btrace_cpu): New.
12661 (_initialize_record_btrace): Initialize set/show record btrace cpu
12662 commands.
12663 * record-btrace.h (record_btrace_get_cpu): New.
12664
69f90c75
MM
126652018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12666
12667 * record.c (set_record_command): Fix typo in message.
12668
b85310e1
MM
126692018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12670
12671 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
12672
1d509aa6
MM
126732018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12674
12675 * infrun.c (process_event_stop_test): Call
12676 gdbarch_in_indirect_branch_thunk.
12677 * gdbarch.sh (in_indirect_branch_thunk): New.
12678 * gdbarch.c: Regenerated.
12679 * gdbarch.h: Regenerated.
12680 * x86-tdep.h: New.
12681 * x86-tdep.c: New.
12682 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
12683 (HFILES_NO_SRCDIR): Add x86-tdep.h.
12684 (ALLDEPFILES): Add x86-tdep.c.
12685 * arch-utils.h (default_in_indirect_branch_thunk): New.
12686 * arch-utils.c (default_in_indirect_branch_thunk): New.
12687 * i386-tdep: Include x86-tdep.h.
12688 (i386_in_indirect_branch_thunk): New.
12689 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
12690 function.
12691 * amd64-tdep: Include x86-tdep.h.
12692 (amd64_in_indirect_branch_thunk): New.
12693 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
12694
b4be9bfd
JK
126952018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12696
12697 PR gdb/23053
12698 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
12699 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
12700 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
12701 regression.
12702
53d7df28
TT
127032018-04-12 Tom Tromey <tom@tromey.com>
12704
12705 * rust-lang.c (rust_print_struct_def): Remove univariant code.
12706 (rust_evaluate_subexp): Likewise.
12707
70b33f19
PA
127082018-04-12 Pedro Alves <palves@redhat.com>
12709
12710 * procfs.c (procfs_detach): Make forward declaration's prototype
12711 match definition's protototype.
12712 (proc_get_LDT_entry): Remove stale do_cleanups call.
12713
436411b1
PA
127142018-04-12 Pedro Alves <palves@redhat.com>
12715
12716 * target.h (target_ops::to_has_exited): Delete.
12717 (target_has_exited): Delete.
12718 * target-delegates.c: Regenerate.
12719
20db9c52
PA
127202018-04-11 Pedro Alves <palves@redhat.com>
12721
12722 * target.c (fileio_fh_t::t): Add comment.
12723 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12724 (target_fileio_close): Handle a NULL target.
12725 (invalidate_fileio_fh): New.
12726 (target_close): Call it.
12727 * remote.c (remote_hostio_send_command): No longer check whether
12728 remote_desc is open.
12729
5ff79300
PA
127302018-04-11 Pedro Alves <palves@redhat.com>
12731
12732 * target.c (fileio_fh_t): Make it a named struct instead of a
12733 typedef.
12734 (fileio_fh_t::is_closed): New method.
12735 (DEF_VEC_O (fileio_fh_t)): Remove.
12736 (fileio_fhandles): Now a std::vector.
12737 (is_closed_fileio_fh): Delete.
12738 (acquire_fileio_fd): Adjust. Rename parameters.
12739 (release_fileio_fd): Adjust.
12740 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
12741 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12742 (target_fileio_close): Adjust.
12743
6e22e10d
SM
127442018-04-10 Simon Marchi <simon.marchi@ericsson.com>
12745
12746 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
12747 index.
12748
731f534f
PA
127492018-04-10 Pedro Alves <palves@redhat.com>
12750
12751 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
12752 (scoped_finish_thread_state): New class.
12753 * infcmd.c (run_command_1): Use it instead of finish_thread_state
12754 cleanup.
12755 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
12756 (fetch_inferior_event, normal_stop): Likewise.
12757 * thread.c (finish_thread_state_cleanup): Delete.
12758
d5f4488f
SM
127592018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12760 Pedro Alves <palves@redhat.com>
12761
12762 * value.c: Include "selftest.h" and "common/array-view.h".
12763 (struct range) <operator ==>: New.
12764 (test_ranges_contain): New.
12765 (check_ranges_vector): New.
12766 (test_insert_into_bit_range_vector): New.
12767 (_initialize_values): Register selftests.
12768 * common/array-view.h (operator==, operator!=): New.
12769
b24531ed
SM
127702018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12771
12772 * common/gdb_vecs.h (unordered_remove): Add overload that takes
12773 an iterator.
12774 * inline-frame.c: Include <algorithm>.
12775 (struct inline_state): Add constructor.
12776 (inline_state_s): Remove.
12777 (DEF_VEC_O(inline_state_s)): Remove.
12778 (inline_states): Change type to std::vector.
12779 (find_inline_frame_state): Adjust to std::vector.
12780 (allocate_inline_frame_state): Remove.
12781 (clear_inline_frame_state): Adjust to std::vector.
12782 (skip_inline_frames): Adjust to std::vector.
12783
c252925c
SM
127842018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12785
12786 * tracepoint.h (struct trace_state_variable): Add constructor.
12787 <name>: Change type to std::string.
12788 * tracepoint.c (tsv_s): Remove.
12789 (DEF_VEC_O(tsv_s)): Remove.
12790 (tvariables): Change to std::vector.
12791 (create_trace_state_variable): Adjust to std::vector.
12792 (find_trace_state_variable): Likewise.
12793 (find_trace_state_variable_by_number): Likewise.
12794 (delete_trace_state_variable): Likewise.
12795 (trace_variable_command): Adjust to std::string.
12796 (delete_trace_variable_command): Likewise.
12797 (tvariables_info_1): Adjust to std::vector.
12798 (save_trace_state_variables): Likewise.
12799 (start_tracing): Likewise.
12800 (merge_uploaded_trace_state_variables): Adjust to std::vector
12801 and std::string.
12802 * target.h (struct target_ops)
12803 <to_download_trace_state_variable>: Pass reference to
12804 trace_state_variable.
12805 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
12806 * target-delegates.c: Re-generate.
12807 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
12808 (mi_tsv_deleted): Likewise.
12809 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
12810 * remote.c (remote_download_trace_state_variable): Change
12811 pointer to reference and adjust.
12812 * make-target-delegates (parse_argtypes): Handle references.
12813 (write_function_header): Likewise.
12814 (munge_type): Likewise.
12815
c9638d26
SM
128162018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12817
12818 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12819 string_view-selftests.c.
12820 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
12821 testsuite.
12822 * unittests/basic_string_view/cons/char/1.cc: Likewise.
12823 * unittests/basic_string_view/cons/char/2.cc: Likewise.
12824 * unittests/basic_string_view/cons/char/3.cc: Likewise.
12825 * unittests/basic_string_view/element_access/char/1.cc:
12826 Likewise.
12827 * unittests/basic_string_view/element_access/char/empty.cc:
12828 Likewise.
12829 * unittests/basic_string_view/element_access/char/front_back.cc:
12830 Likewise.
12831 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
12832 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
12833 Likewise.
12834 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
12835 Likewise.
12836 * unittests/basic_string_view/modifiers/swap/char/1.cc:
12837 Likewise.
12838 * unittests/basic_string_view/operations/compare/char/1.cc:
12839 Likewise.
12840 * unittests/basic_string_view/operations/compare/char/13650.cc:
12841 Likewise.
12842 * unittests/basic_string_view/operations/copy/char/1.cc:
12843 Likewise.
12844 * unittests/basic_string_view/operations/data/char/1.cc:
12845 Likewise.
12846 * unittests/basic_string_view/operations/find/char/1.cc:
12847 Likewise.
12848 * unittests/basic_string_view/operations/find/char/2.cc:
12849 Likewise.
12850 * unittests/basic_string_view/operations/find/char/3.cc:
12851 Likewise.
12852 * unittests/basic_string_view/operations/find/char/4.cc:
12853 Likewise.
12854 * unittests/basic_string_view/operations/rfind/char/1.cc:
12855 Likewise.
12856 * unittests/basic_string_view/operations/rfind/char/2.cc:
12857 Likewise.
12858 * unittests/basic_string_view/operations/rfind/char/3.cc:
12859 Likewise.
12860 * unittests/basic_string_view/operations/substr/char/1.cc:
12861 Likewise.
12862 * unittests/basic_string_view/operators/char/2.cc: Likewise.
12863 * unittests/string_view-selftests.c: New file.
12864
fdc11678
SM
128652018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12866
12867 * unittests/basic_string_view/capacity/1.cc: New file.
12868 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
12869 * unittests/basic_string_view/cons/char/1.cc: New file.
12870 * unittests/basic_string_view/cons/char/2.cc: New file.
12871 * unittests/basic_string_view/cons/char/3.cc: New file.
12872 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
12873 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
12874 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
12875 * unittests/basic_string_view/element_access/char/1.cc: New file.
12876 * unittests/basic_string_view/element_access/char/2.cc: New file.
12877 * unittests/basic_string_view/element_access/char/empty.cc: New file.
12878 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
12879 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
12880 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
12881 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
12882 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
12883 * unittests/basic_string_view/include.cc: New file.
12884 * unittests/basic_string_view/inserters/char/1.cc: New file.
12885 * unittests/basic_string_view/inserters/char/2.cc: New file.
12886 * unittests/basic_string_view/inserters/char/3.cc: New file.
12887 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
12888 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
12889 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
12890 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
12891 * unittests/basic_string_view/literals/types.cc: New file.
12892 * unittests/basic_string_view/literals/values.cc: New file.
12893 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
12894 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
12895 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
12896 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
12897 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
12898 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
12899 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
12900 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
12901 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
12902 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
12903 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
12904 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
12905 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
12906 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
12907 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
12908 * unittests/basic_string_view/operations/data/char/1.cc: New file.
12909 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
12910 * unittests/basic_string_view/operations/find/char/1.cc: New file.
12911 * unittests/basic_string_view/operations/find/char/2.cc: New file.
12912 * unittests/basic_string_view/operations/find/char/3.cc: New file.
12913 * unittests/basic_string_view/operations/find/char/4.cc: New file.
12914 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
12915 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
12916 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
12917 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
12918 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
12919 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
12920 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
12921 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
12922 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
12923 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
12924 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
12925 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
12926 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
12927 * unittests/basic_string_view/operators/char/2.cc: New file.
12928 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
12929 * unittests/basic_string_view/range_access/char/1.cc: New file.
12930 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
12931 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
12932 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
12933 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
12934 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
12935 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
12936 * unittests/basic_string_view/requirements/typedefs.cc: New file.
12937 * unittests/basic_string_view/typedefs.cc: New file.
12938 * unittests/basic_string_view/types/1.cc: New file.
12939
8345c4a2
SM
129402018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12941
12942 * common/gdb_string_view.h: Remove libstdc++ implementation
12943 details, adjust to gdb reality.
12944 * common/gdb_string_view.tcc: Likewise.
12945 * cli/cli-script.c (struct string_view): Remove.
12946 (user_args) <m_args>: Change element type to gdb::string_view.
12947 (user_args::insert_args): Adjust.
12948
7adcdf08
SM
129492018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12950
12951 * common/gdb_string_view.h: New file.
12952 * common/gdb_string_view.tcc: New file.
12953
41260ac2
SM
129542018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12955
12956 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
12957 * configure: Re-generate.
12958
0bee6dd4
PA
129592018-04-09 Pedro Alves <palves@redhat.com>
12960
12961 * gdbarch.sh: Include "observable.h" instead of "observer.h".
12962 (set_target_gdbarch): Call
12963 gdb::observers::architecture_changed.notify instead of
12964 observer_notify_architecture_changed.
12965
6f14adc5
SM
129662018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12967
12968 * tracepoint.c (struct current_traceframe_cleanup): Remove.
12969 (do_restore_current_traceframe_cleanup): Remove.
12970 (restore_current_traceframe_cleanup_dtor): Remove.
12971 (make_cleanup_restore_current_traceframe): Remove.
12972 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
12973 New.
12974 * tracepoint.h (struct scoped_restore_current_traceframe): New.
12975 * infrun.c (fetch_inferior_event): Use
12976 scoped_restore_current_traceframe.
12977
b2bdb8cf
SM
129782018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12979
12980 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
12981 Remove.
12982 <n_allocated_type_units>: Remove.
12983 <all_type_units>: Change to std::vector.
12984 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12985 to std::vector change.
12986 (dwarf2_per_objfile::get_cutu): Likewise.
12987 (dwarf2_per_objfile::get_tu): Likewise.
12988 (create_signatured_type_table_from_index): Likewise.
12989 (create_signatured_type_table_from_debug_names): Likewise.
12990 (dw2_symtab_iter_next): Likewise.
12991 (dw2_print_stats): Likewise.
12992 (dw2_expand_all_symtabs): Likewise.
12993 (dw2_expand_marked_cus): Likewise.
12994 (dw2_debug_names_iterator::next): Likewise.
12995 (dwarf2_initialize_objfile): Likewise.
12996 (add_signatured_type_cu_to_table): Likewise.
12997 (create_all_type_units): Likewise.
12998 (add_type_unit): Likewise.
12999 (struct tu_abbrev_offset): Add constructor.
13000 (build_type_psymtabs_1): Adjust to std::vector change.
13001 (print_tu_stats): Likewise.
13002 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
13003 (write_debug_names): Likewise.
13004
b76e467d
SM
130052018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13006
13007 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
13008 Make an std::vector.
13009 <n_comp_units>: Remove.
13010 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
13011 to std::vector change.
13012 (dwarf2_per_objfile::get_cutu): Likewise.
13013 (dwarf2_per_objfile::get_cu): Likewise.
13014 (create_cus_from_index): Likewise.
13015 (create_addrmap_from_index): Likewise.
13016 (create_addrmap_from_aranges): Likewise.
13017 (dwarf2_read_index): Likewise.
13018 (dw2_find_last_source_symtab): Likewise.
13019 (dw2_map_symtabs_matching_filename): Likewise.
13020 (dw2_symtab_iter_next): Likewise.
13021 (dw2_print_stats): Likewise.
13022 (dw2_expand_all_symtabs): Likewise.
13023 (dw2_expand_symtabs_with_fullname): Likewise.
13024 (dw2_expand_marked_cus): Likewise.
13025 (dw2_map_symbol_filenames): Likewise.
13026 (create_cus_from_debug_names): Likewise.
13027 (dwarf2_read_debug_names): Likewise.
13028 (dw2_debug_names_iterator::next): Likewise.
13029 (dwarf2_initialize_objfile): Likewise.
13030 (set_partial_user): Likewise.
13031 (dwarf2_build_psymtabs_hard): Likewise.
13032 (read_comp_units_from_section): Remove arguments, adjust to
13033 std::vector change.
13034 (create_all_comp_units): Adjust to std::vector and
13035 read_comp_units_from_section changes.
13036 (dwarf2_find_containing_comp_unit): Adjust to std::vector
13037 change.
13038 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
13039 (psyms_seen_size): Likewise.
13040 (write_gdbindex): Likewise.
13041 (write_debug_names): Likewise.
13042
12359b5e
SM
130432018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13044
13045 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
13046 with dwarf2_per_objfile.
13047 (create_cus_from_index): Likewise.
13048 (create_signatured_type_table_from_index): Likewise.
13049 (dwarf2_read_index): Likewise.
13050 (dwarf2_initialize_objfile): Likewise.
13051 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
13052 per_cu rather than get_dwarf2_per_objfile.
13053
ff4c9fec
SM
130542018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13055
13056 * dwarf2read.h (struct signatured_type): Forward declare.
13057 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
13058 New methods.
13059 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
13060 (dw2_get_cutu): ...this.
13061 (dwarf2_per_objfile::get_cu): Rename from...
13062 (dw2_get_cu): ...this.
13063 (dwarf2_per_objfile::get_tu): New.
13064 (create_addrmap_from_index): Adjust.
13065 (create_addrmap_from_aranges): Adjust.
13066 (dw2_find_last_source_symtab): Adjust.
13067 (dw2_map_symtabs_matching_filename): Adjust.
13068 (dw2_symtab_iter_next): Adjust.
13069 (dw2_print_stats): Adjust.
13070 (dw2_expand_all_symtabs): Adjust.
13071 (dw2_expand_symtabs_with_fullname): Adjust.
13072 (dw2_expand_marked_cus): Adjust.
13073 (dw_expand_symtabs_matching_file_matcher): Adjust.
13074 (dw2_map_symbol_filenames): Adjust.
13075 (dw2_debug_names_iterator::next): Adjust.
13076 (dwarf2_initialize_objfile): Adjust.
13077 (set_partial_user): Adjust.
13078 (dwarf2_build_psymtabs_hard): Adjust.
13079
5ca3fcb6
SM
130802018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13081
13082 * dwarf2read.c (create_signatured_type_table_from_debug_names):
13083 Remove unused variables.
13084 (dw2_map_symtabs_matching_filename): Likewise.
13085 (dwarf2_record_block_ranges): Likewise.
13086 (dwarf2_read_addr_index): Likewise.
13087 (follow_die_offset): Likewise.
13088
b2e586e8
SM
130892018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13090
13091 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
13092 to symbol_file_add_main.
13093
7c4e78cf
SM
130942018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13095
13096 PR mi/22299
13097 * mi/mi-console.c (do_fputc_async_safe): New.
13098 (mi_console_file::write_async_safe): New.
13099 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
13100 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
13101 New.
13102 * ui-file.c (ui_file::putstrn): Adjust call to
13103 fputstrn_unfiltered.
13104 * utils.c (printchar): Replace do_fputs and do_fprintf
13105 parameters by do_fputc.
13106 (fputstr_filtered): Adjust call to printchar.
13107 (fputstr_unfiltered): Likewise.
13108 (fputstrn_filtered): Likewise.
13109 (fputstrn_unfiltered): Add do_fputc parameter, pass to
13110 printchar.
13111 * utils.h (do_fputc_ftype): New typedef.
13112 (fputstrn_unfiltered): Add do_fputc parameter.
13113
5dc026d3
SM
131142018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13115
13116 * regformats/i386/i386-avx.dat: Remove.
13117
c912f608
SM
131182018-04-07 Simon Marchi <simon.marchi@ericsson.com>
13119
13120 PR gdb/22979
13121 * amd64-tdep.c (amd64_none_init_abi): New function.
13122 (amd64_x32_none_init_abi): New function.
13123 (_initialize_amd64_tdep): Register handlers for x86-64 and
13124 x64_32 with GDB_OSABI_NONE.
13125 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
13126 GDB_OSABI_NONE osabi.
13127
26540402
SM
131282018-04-07 Simon Marchi <simon.marchi@ericsson.com>
13129
13130 PR gdb/22980
13131 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
13132 GDB_OSABI_NONE.
13133 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
13134 * osabi.c (gdb_osabi_names): Add "unknown" entry.
13135
9018be22
SM
131362018-04-07 Simon Marchi <simon.marchi@ericsson.com>
13137
13138 * common/byte-vector.h (char_vector): New type.
13139 * target.h (target_read_alloc): Return
13140 gdb::optional<byte_vector>.
13141 (target_read_stralloc): Return gdb::optional<char_vector>.
13142 (target_get_osdata): Return gdb::optional<char_vector>.
13143 * target.c (target_read_alloc_1): Templatize. Replacement
13144 manual memory management with vector.
13145 (target_read_alloc): Change return type, adjust.
13146 (target_read_stralloc): Change return type, adjust.
13147 (target_get_osdata): Change return type, adjust.
13148 * auxv.c (struct auxv_info) <length>: Remove.
13149 <data>: Change type to gdb::optional<byte_vector>.
13150 (auxv_inferior_data_cleanup): Free auxv_info with delete.
13151 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
13152 (target_auxv_search): Adjust.
13153 (fprint_target_auxv): Adjust.
13154 * avr-tdep.c (avr_io_reg_read_command): Adjust.
13155 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
13156 (linux_make_corefile_notes): Adjust.
13157 * osdata.c (get_osdata): Adjust.
13158 * remote.c (remote_get_threads_with_qxfer): Adjust.
13159 (remote_memory_map): Adjust.
13160 (remote_traceframe_info): Adjust.
13161 (btrace_read_config): Adjust.
13162 (remote_read_btrace): Adjust.
13163 (remote_pid_to_exec_file): Adjust.
13164 * solib-aix.c (solib_aix_get_library_list): Adjust.
13165 * solib-dsbt.c (decode_loadmap): Don't free buf.
13166 (dsbt_get_initial_loadmaps): Adjust.
13167 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
13168 * solib-target.c (solib_target_current_sos): Adjust.
13169 * tracepoint.c (sdata_make_value): Adjust.
13170 * xml-support.c (xinclude_start_include): Adjust.
13171 (xml_fetch_content_from_file): Adjust.
13172 * xml-support.h (xml_fetch_another): Change return type.
13173 (xml_fetch_content_from_file): Change return type.
13174 * xml-syscall.c (xml_init_syscalls_info): Adjust.
13175 * xml-tdesc.c (file_read_description_xml): Adjust.
13176 (fetch_available_features_from_target): Change return type.
13177 (target_fetch_description_xml): Adjust.
13178 (target_read_description_xml): Adjust.
13179
14c88955
TT
131802018-04-06 Tom Tromey <tom@tromey.com>
13181
13182 * value.c (~value): Update.
13183 (struct value) <contents>: Now unique_xmalloc_ptr.
13184 (value_contents_bits_eq, allocate_value_contents)
13185 (value_contents_raw, value_contents_all_raw)
13186 (value_contents_for_printing, value_contents_for_printing_const)
13187 (set_value_enclosing_type): Update.
13188
0c7e6dd8
TT
131892018-04-06 Tom Tromey <tom@tromey.com>
13190
13191 * value.c (range_s): Remove typedef, VEC.
13192 (struct range): Add operator<.
13193 (range_lessthan): Remove.
13194 (ranges_contain): Change type.
13195 (~value): Update.
13196 (struct value) <unavailable, optimized_out>: Now std::vector.
13197 (value_entirely_available)
13198 (value_entirely_covered_by_range_vector)
13199 (value_entirely_unavailable, value_entirely_optimized_out):
13200 Update.
13201 (insert_into_bit_range_vector): Change argument type.
13202 (find_first_range_overlap): Likewise.
13203 (struct ranges_and_idx, value_contents_bits_eq)
13204 (require_not_optimized_out, require_available): Update.
13205 (ranges_copy_adjusted): Change argument types.
13206 (value_optimized_out, value_copy, value_fetch_lazy): Update.
13207
2c8331b9
TT
132082018-04-06 Tom Tromey <tom@tromey.com>
13209
13210 * value.c (~value): Update.
13211 (struct value) <parent>: Now a value_ref_ptr.
13212 (value_parent, set_value_parent, value_address, value_copy):
13213 Update.
13214
466ce3ae
TT
132152018-04-06 Tom Tromey <tom@tromey.com>
13216
13217 * value.c (struct value): Add constructor, destructor, and member
13218 initializers.
13219 (allocate_value_lazy, value_decref): Update.
13220
062d818d
TT
132212018-04-06 Tom Tromey <tom@tromey.com>
13222
13223 * value.c (struct value) <released, next>: Remove.
13224 (all_values): Now a std::vector.
13225 (allocate_value_lazy): Update.
13226 (value_next): Remove.
13227 (value_mark, value_free_to_mark, release_value)
13228 (value_release_to_mark): Update.
13229
a6535de1
TT
132302018-04-06 Tom Tromey <tom@tromey.com>
13231
13232 * value.h (fetch_subexp_value, value_release_to_mark): Update.
13233 (free_value_chain): Remove.
13234 * value.c (free_value_chain): Remove.
13235 (value_release_to_mark): Return a std::vector.
13236 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
13237 std::vector.
13238 (check_condition): Update.
13239 * eval.c (fetch_subexp_value): Change "val_chain" to a
13240 std::vector.
13241 * breakpoint.c (update_watchpoint): Update.
13242 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
13243
b5621201
TT
132442018-04-06 Tom Tromey <tom@tromey.com>
13245
13246 * value.h (free_all_values): Remove.
13247 * value.c (free_all_values): Remove.
13248
4d0266a0
TT
132492018-04-06 Tom Tromey <tom@tromey.com>
13250
13251 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
13252 (value_history_chain, value_history_count): Remove.
13253 (value_history): New global.
13254 (record_latest_value, access_value_history, show_values)
13255 (preserve_values): Update.
13256
b4d61099
TT
132572018-04-06 Tom Tromey <tom@tromey.com>
13258
13259 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
13260 * varobj.c (varobj_set_display_format, varobj_set_value)
13261 (install_default_visualizer, construct_visualizer)
13262 (install_new_value, ~varobj, varobj_get_value_type)
13263 (my_value_of_variable, varobj_editable_p): Update.
13264 * c-varobj.c (c_describe_child, c_value_of_variable)
13265 (cplus_number_of_children, cplus_describe_child): Update.
13266 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
13267 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
13268 (ada_value_of_variable, ada_value_is_changeable_p): Update.
13269
9b558729
TT
132702018-04-06 Tom Tromey <tom@tromey.com>
13271
13272 * printcmd.c (last_examine_address): Change type to
13273 value_ref_ptr.
13274 (do_examine, x_command): Update.
13275
850645cf
TT
132762018-04-06 Tom Tromey <tom@tromey.com>
13277
13278 * value.c (release_value): Update.
13279 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
13280 (struct bpstats) <val>: Now a value_ref_ptr.
13281 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
13282 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
13283 (~watchpoint, print_it_watchpoint, watch_command_1)
13284 (invalidate_bp_value_on_memory_change): Update.
13285
22bc8444
TT
132862018-04-06 Tom Tromey <tom@tromey.com>
13287
13288 * varobj.c (varobj_clear_saved_item)
13289 (update_dynamic_varobj_children, install_new_value, ~varobj):
13290 Update.
13291 * value.h (value_incref): Move declaration earlier.
13292 (value_decref): Rename from value_free.
13293 (struct value_ref_policy): New.
13294 (value_ref_ptr): New typedef.
13295 (struct value_deleter): Remove.
13296 (gdb_value_up): Remove typedef.
13297 (release_value): Change return type.
13298 (release_value_or_incref): Remove.
13299 * value.c (set_value_parent): Update.
13300 (value_incref): Change return type.
13301 (value_decref): Rename from value_free.
13302 (value_free_to_mark, free_all_values, free_value_chain): Update.
13303 (release_value): Return value_ref_ptr.
13304 (release_value_or_incref): Remove.
13305 (record_latest_value, set_internalvar, clear_internalvar):
13306 Update.
13307 * stack.c (info_frame_command): Don't call value_free.
13308 * python/py-value.c (valpy_dealloc, valpy_new)
13309 (value_to_value_object): Update.
13310 * printcmd.c (do_examine): Update.
13311 * opencl-lang.c (lval_func_free_closure): Update.
13312 * mi/mi-main.c (register_changed_p): Don't call value_free.
13313 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
13314 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
13315 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
13316 value_free.
13317 * guile/scm-value.c (vlscm_free_value_smob)
13318 (vlscm_scm_from_value): Update.
13319 * frame.c (frame_register_unwind, frame_unwind_register_signed)
13320 (frame_unwind_register_unsigned, get_frame_register_bytes)
13321 (put_frame_register_bytes): Don't call value_free.
13322 * findvar.c (address_from_register): Don't call value_free.
13323 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
13324 * dwarf2loc.c (entry_data_value_free_closure)
13325 (value_of_dwarf_reg_entry, free_pieced_value_closure)
13326 (dwarf2_evaluate_loc_desc_full): Update.
13327 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
13328 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
13329 (~watchpoint, watch_command_1)
13330 (invalidate_bp_value_on_memory_change): Update.
13331 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
13332
7f8a5d38
SM
133332018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
13334
13335 PR gdb/23022
13336 * warning.m4: Add -Wno-error=deprecated-register.
13337 * configure: Re-generate.
13338
8a76bd3b
TT
133392018-04-05 Tom Tromey <tom@tromey.com>
13340
13341 * linespec.h: Remove include of "vec.h".
13342
8e8d776e
TT
133432018-04-05 Tom Tromey <tom@tromey.com>
13344
13345 * linespec.c (typep): Remove typedef.
13346 (find_methods, find_superclass_methods): Take a std::vector.
13347 (find_method): Use std::vector.
13348
9b2f8581
TT
133492018-04-05 Tom Tromey <tom@tromey.com>
13350
13351 * utils.c (compare_strings): Remove.
13352 * utils.h (compare_strings): Remove.
13353 * objc-lang.h (find_imps): Update.
13354 * objc-lang.c (find_methods): Take a std::vector.
13355 (uniquify_strings, find_imps): Likewise.
13356 * linespec.c (find_methods): Take a std::vector.
13357 (decode_objc): Use std::vector.
13358 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
13359 a std::vector.
13360 (find_method, find_function_symbols): Use std::vector.
13361
459a2e4c
TT
133622018-04-05 Tom Tromey <tom@tromey.com>
13363
13364 * completer.c (completion_tracker::completion_tracker): Remove
13365 cast.
13366 (completion_tracker::discard_completions): Likewise.
13367 * breakpoint.c (ambiguous_names_p): Remove cast.
13368 * ada-lang.c (_initialize_ada_language): Remove cast.
13369 * utils.h (streq): Update.
13370 (streq_hash): Add new declaration.
13371 * utils.c (streq): Return bool.
13372 (streq_hash): New function.
13373
9be2c17a
TT
133742018-04-05 Tom Tromey <tom@tromey.com>
13375
13376 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
13377 Remove a string copy.
13378
f73c6ece
TT
133792018-04-05 Tom Tromey <tom@tromey.com>
13380
13381 * linespec.c (filter_results): Use std::vector.
13382 (decode_line_2, decode_line_full): Update.
13383
53a0f8a2
TT
133842018-04-05 Tom Tromey <tom@tromey.com>
13385
13386 * linespec.c (canonical_to_fullform): Return std::string.
13387 (filter_results): Update.
13388 (struct decode_line_2_item): Add constructor.
13389 <fullform, displayform>: Now std::string.
13390 (decode_line_2_compare_items): Now a std::sort comparator.
13391 (decode_line_2): Update.
13392
a5b5adf5
TT
133932018-04-05 Tom Tromey <tom@tromey.com>
13394
13395 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
13396 (unexpected_linespec_error): Update.
13397 (linespec_parse_basic, parse_linespec): Update.
13398
6a307fc5
TT
133992018-04-05 Tom Tromey <tom@tromey.com>
13400
13401 * linespec.c (linespec_parse_basic): Reindent.
13402
41c1efc6
TT
134032018-04-05 Tom Tromey <tom@tromey.com>
13404
13405 * minsyms.h (iterate_over_minimal_symbols): Update.
13406 * minsyms.c (iterate_over_minimal_symbols): Take a
13407 gdb::function_view.
13408 * linespec.c (struct collect_minsyms): Remove.
13409 (compare_msyms): Now a std::sort comparator.
13410 (add_minsym): Add parameters.
13411 (search_minsyms_for_name): Update. Use std::vector.
13412
c5edbf3d
TT
134132018-04-03 Tom Tromey <tom@tromey.com>
13414
13415 * mipsread.c (read_alphacoff_dynamic_symtab): Use
13416 gdb::byte_vector.
13417
b39efc48
WP
134182018-04-02 Weimin Pan <weimin.pan@oracle.com>
13419
13420 * MAINTAINERS (Write After Approval): Add Weimin Pan.
13421
121ad66c 134222018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
13423
13424 PR gdb/16959
13425 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
13426 printing static type.
13427
09473be8
TT
134282018-04-01 Tom Tromey <tom@tromey.com>
13429
13430 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
13431 (rs6000_xfer_shared_libraries): Update.
13432
ec1f2d91
SM
134332018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13434
13435 * common/gdb_vecs.h (char_ptr): Remove.
13436 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
13437
d8611974
SM
134382018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
13439
13440 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
13441 with std::vector.
13442 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
13443
a18ba4e4
SM
134442018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
13445
13446 * tracepoint.h (struct uploaded_tp): Initialize fields.
13447 <actions, step_actions, cmd_strings>: Change type to
13448 std::vector<char *>.
13449 * tracepoint.c (get_uploaded_tp): Allocate with new.
13450 (free_uploaded_tps): Free with delete.
13451 (parse_tracepoint_definition): Adjust to std::vector change.
13452 * breakpoint.c (read_uploaded_action): Likewise.
13453 (create_tracepoint_from_upload): Likewise.
13454 * ctf.c (ctf_write_uploaded_tp): Likewise.
13455 (SET_ARRAY_FIELD): Likewise.
13456 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
13457
a7961323
TT
134582018-03-30 Tom Tromey <tom@tromey.com>
13459
13460 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
13461 std::unique_ptr.
13462 (svr4_keep_data_in_core): Update.
13463 (svr4_read_so_list): Update.
13464
e83e4e24
TT
134652018-03-30 Tom Tromey <tom@tromey.com>
13466
13467 * windows-nat.c (handle_output_debug_string, handle_exception):
13468 Update.
13469 * target.h (target_read_string): Update.
13470 * target.c (target_read_string): Change "string" to
13471 unique_xmalloc_ptr.
13472 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
13473 Update.
13474 * solib-frv.c (frv_current_sos): Update.
13475 * solib-dsbt.c (dsbt_current_sos): Update.
13476 * solib-darwin.c (darwin_current_sos): Update.
13477 * linux-thread-db.c (inferior_has_bug): Update.
13478 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
13479 Update. Remove alloca.
13480 * ada-lang.c (ada_main_name): Update.
13481
263db9a1
TT
134822018-03-30 Tom Tromey <tom@tromey.com>
13483
13484 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
13485 (struct dwo_file_deleter): New.
13486 (dwo_file_up): New typedef.
13487 (open_and_init_dwo_file): Use dwo_file_up.
13488 (free_dwo_file_cleanup): Remove.
13489
5dafb3d1
TT
134902018-03-30 Tom Tromey <tom@tromey.com>
13491
13492 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
13493 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
13494
11ed8cad
TT
134952018-03-30 Tom Tromey <tom@tromey.com>
13496
13497 * dwarf2read.c (class free_cached_comp_units): New class.
13498 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
13499 (free_cached_comp_units): Remove function.
13500
9ae79dac
TT
135012018-03-30 Tom Tromey <tom@tromey.com>
13502
13503 * utils.h (make_cleanup_unpush_target): Remove.
13504 * inf-ptrace.c (struct target_unpusher): New.
13505 (target_unpush_up) New typedef.
13506 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
13507 target_unpush_up.
13508 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
13509
5aa89276
TT
135102018-03-27 Tom Tromey <tom@tromey.com>
13511
13512 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
13513
1dbeed45
TT
135142018-03-27 Pedro Alves <palves@redhat.com>
13515 Tom Tromey <tom@tromey.com>
13516
13517 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
13518 destructor. Now a class.
13519 (gdb_readline_wrapper_cleanup): Remove function.
13520 (gdb_readline_wrapper): Remove cleanups.
13521
c819b2c0
TT
135222018-03-27 Tom Tromey <tom@tromey.com>
13523
13524 * typeprint.h (struct type_print_options) <local_typedefs,
13525 global_typedefs>: Remove "struct" keyword.
13526 (class typedef_hash_table): New class.
13527 (recursively_update_typedef_hash, add_template_parameters)
13528 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
13529 (find_typedef_in_hash): Don't declare.
13530 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
13531 (typedef_hash_table::recursively_update): Rename from
13532 recursively_update_typedef_hash. Now a member.
13533 (typedef_hash_table::add_template_parameters): Rename from
13534 add_template_parameters. Now a member.
13535 (typedef_hash_table::typedef_hash_table): Now a constructor;
13536 rename from create_typedef_hash.
13537 (typedef_hash_table::~typedef_hash_table): Now a destructor;
13538 rename from free_typedef_hash.
13539 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
13540 (do_free_global_table): Remove.
13541 (typedef_hash_table::typedef_hash_table): New constructor; renamed
13542 from copy_type_recursive.
13543 (create_global_typedef_table): Remove.
13544 (typedef_hash_table::find_global_typedef): Now a member of
13545 typedef_hash_table.
13546 (typedef_hash_table::find_typedef): Rename from
13547 find_typedef_in_hash; now a member.
13548 (whatis_exp): Update.
13549 * extension.h (struct ext_lang_type_printers): Add constructor and
13550 destructor.
13551 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
13552 declare.
13553 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
13554 Now a constructor; rename from start_ext_lang_type_printers.
13555 (ext_lang_type_printers): Now a destructor; rename from
13556 free_ext_lang_type_printers.
13557 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
13558 Update.
13559 (c_type_print_base_struct_union): Update. Remove cleanups.
13560
608219fb
TT
135612018-03-27 Tom Tromey <tom@tromey.com>
13562
13563 * dwarf-index-write.c: Include <cmath>.
13564
3fcded8f
JB
135652018-03-27 Joel Brobecker <brobecker@adacore.com>
13566
13567 * NEWS: Add entry describing new "set|show varsize-limit" command.
13568 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
13569 command.
13570 * printcmd.c (_initialize_printcmd): Add "set var" alias of
13571 "set variable".
13572
cd4fb1b2
SM
135732018-03-27 Simon Marchi <simon.marchi@ericsson.com>
13574
13575 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
13576 dwarf-index-write.c
13577 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
13578 * dwarf-index-common.c: New file.
13579 * dwarf-index-common.h: New file.
13580 * dwarf-index-write.c: New file.
13581 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
13582 (struct dwarf2_section_info): Move from here.
13583 (dwarf2_section_info_def): Likewise.
13584 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
13585 (offset_type): Likewise.
13586 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
13587 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
13588 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
13589 (byte_swap): Likewise.
13590 (MAYBE_SWAP): Likewise.
13591 (dwarf2_per_cu_ptr): Likewise.
13592 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
13593 (struct tu_stats): Likewise.
13594 (struct dwarf2_per_objfile): Likewise.
13595 (struct dwarf2_per_cu_data): Likewise.
13596 (struct signatured_type): Likewise.
13597 (sig_type_ptr): Likewise.
13598 (DEF_VEC_P (sig_type_ptr)): Likewise.
13599 (INDEX4_SUFFIX): Likewise.
13600 (INDEX5_SUFFIX): Likewise.
13601 (DEBUG_STR_SUFFIX): Likewise.
13602 (dwarf2_read_section): Make non-static.
13603 (mapped_index_string_hash): Move from here.
13604 (dwarf5_djb_hash): Likewise.
13605 (file_write): Likewise.
13606 (class data_buf): Likewise.
13607 (struct symtab_index_entry): Likewise.
13608 (struct mapped_symtab): Likewise.
13609 (find_slot): Likewise.
13610 (hash_expand): Likewise.
13611 (add_index_entry): Likewise.
13612 (uniquify_cu_indices): Likewise.
13613 (class c_str_view): Likewise.
13614 (class c_str_view_hasher): Likewise.
13615 (class vector_hasher): Likewise.
13616 (write_hash_table): Likewise.
13617 (psym_index_map): Likewise.
13618 (struct addrmap_index_data): Likewise.
13619 (add_address_entry): Likewise.
13620 (add_address_entry_worker): Likewise.
13621 (write_address_map): Likewise.
13622 (symbol_kind): Likewise.
13623 (write_psymbols): Likewise.
13624 (struct signatured_type_index_data): Likewise.
13625 (write_one_signatured_type): Likewise.
13626 (recursively_count_psymbols): Likewise.
13627 (recursively_write_psymbols): Likewise.
13628 (class debug_names): Likewise.
13629 (check_dwarf64_offsets): Likewise.
13630 (psyms_seen_size): Likewise.
13631 (write_gdbindex): Likewise.
13632 (write_debug_names): Likewise.
13633 (assert_file_size): Likewise.
13634 (write_psymtabs_to_index): Likewise.
13635 (save_gdb_index_command): Likewise.
13636 (_initialize_dwarf2_read): Don't register the "save gdb-index"
13637 command.
13638 * dwarf2read.h: New file.
13639
59cc4834
JB
136402018-03-27 Joel Brobecker <brobecker@adacore.com>
13641
13642 PR gdb/22670
13643 * dwarf2read.c (dwarf2_physname): Do not return the demangled
13644 symbol name if the CU's language stores symbol names in linkage
13645 format.
13646 * language.h (struct language_defn)
13647 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
13648 all instances of this struct.
13649
67501539
TT
136502018-03-26 Tom Tromey <tom@tromey.com>
13651
13652 * stack.c (backtrace_command_1): Remove verbose code.
13653
76c939ac
TT
136542018-03-26 Tom Tromey <tom@tromey.com>
13655
13656 * python/py-framefilter.c (py_print_type): Don't catch
13657 exceptions. Return void.
13658 (py_print_value): Likewise.
13659 (py_print_single_arg): Likewise.
13660 (enumerate_args): Don't catch exceptions.
13661 (py_print_args): Likewise.
13662 (py_print_frame): Likewise.
13663 (gdbpy_apply_frame_filter): Catch exceptions here.
13664
9507b29c
TT
136652018-03-26 Tom Tromey <tom@tromey.com>
13666
13667 * stack.c (_initialize_stack): Remove trailing newlines from help
13668 text. Add "Usage" line to "backtrace" help.
13669
eb68e487
TT
136702018-03-26 Tom Tromey <tom@tromey.com>
13671
13672 PR python/16486:
13673 * python/py-framefilter.c (py_print_args): Call wrap_hint.
13674
1f111921
TT
136752018-03-26 Tom Tromey <tom@tromey.com>
13676
13677 * python/py-framefilter.c (py_print_single_arg): Return
13678 EXT_LANG_BT_ERROR from catch.
13679
fb7eb8b5
TT
136802018-03-26 Tom Tromey <tom@tromey.com>
13681
13682 PR backtrace/15584:
13683 * stack.c (backtrace_command_1): Move some code into no-filters
13684 "if".
13685
4ca59a9f
TT
136862018-03-26 Tom Tromey <tom@tromey.com>
13687
13688 * python/py-framefilter.c (throw_quit_or_print_exception): New
13689 function.
13690 (gdbpy_apply_frame_filter): Use it.
13691
92256134
TT
136922018-03-26 Tom Tromey <tom@tromey.com>
13693
13694 PR cli/17716:
13695 * python/py-framefilter.c (py_print_type, py_print_value)
13696 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
13697 RETURN_MASK_ERROR.
13698
7a630bc2
TT
136992018-03-26 Tom Tromey <tom@tromey.com>
13700
13701 * python/py-framefilter.c (enumerate_args): Use
13702 gdb::unique_xmalloc_ptr.
13703
63283d4a
TT
137042018-03-26 Tom Tromey <tom@tromey.com>
13705
13706 * python/py-framefilter.c (py_print_frame): Return
13707 EXT_LANG_BT_OK.
13708 (gdbpy_apply_frame_filter): Update comment.
13709 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
13710 Remove.
13711 <EXT_LANG_BT_NO_FILTERS>: Change value.
13712
978d6c75
TT
137132018-03-26 Tom Tromey <tom@tromey.com>
13714
13715 PR backtrace/15582:
13716 * stack.c (backtrace_command): Parse "hide" argument.
13717 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
13718 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
13719 constant.
13720
1cf7e640
TT
137212018-03-26 Tom Tromey <tom@tromey.com>
13722
13723 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
13724 add "flags".
13725 (backtrace_command): Remove "fulltrace", add "flags".
13726
ea3b0687
TT
137272018-03-26 Tom Tromey <tom@tromey.com>
13728
13729 * stack.c (backtrace_command): Rewrite command line parsing.
13730
9f034d75
SM
137312018-03-26 Simon Marchi <simon.marchi@ericsson.com>
13732
13733 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
13734
ce1459e5
SM
137352018-03-26 Simon Marchi <simon.marchi@ericsson.com>
13736
13737 * filename-seen-cache.h: Add include guard.
13738
4f7ae6f5
KS
137392018-03-26 Keith Seitz <keiths@redhat.com>
13740
13741 * symfile.c (place_section): Remove "struct" from section_addr_info
13742 in comment.
13743 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
13744 "struct" keyword from section_addr_info.
13745
5cd3e386
AH
137462018-03-26 Alan Hayward <alan.hayward@arm.com>
13747
13748 * regformats/regdef.h (reg): Add constructors.
13749
3e5ef9a4
PA
137502018-03-25 Pedro Alves <palves@redhat.com>
13751
13752 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
13753 if then/else bodies in var_func_name extraction.
13754
c88d2fcc 137552018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
13756
13757 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
13758 lookup_minimal_symbol() to find symbol entry.
13759 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
13760
b7fee5a3
KS
137612018-03-23 Keith Seitz <keiths@redhat.com>
13762
13763 PR c++/22968
13764 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
13765 nested type definitions for C++, too.
13766
2cc9b304
TT
137672018-03-23 Tom Tromey <tom@tromey.com>
13768
13769 * machoread.c (struct oso_el): Add a constructor. Don't define as
13770 a typedef.
13771 (macho_register_oso): Remove.
13772 (macho_symtab_read): Take a std::vector.
13773 (oso_el_compare_name): Now a std::sort comparator.
13774 (macho_symfile_read_all_oso): Take a std::vector.
13775 (macho_symfile_read): Use std::vector. Remove cleanups.
13776
a2b2bc12
TT
137772018-03-22 Tom Tromey <tom@tromey.com>
13778
13779 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
13780 (record_full_goto_bookmark): Use std::string.
13781
7a8f494c
PFC
137822018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13783
13784 PR tdep/18295
13785 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
13786 a single mask.
13787
dd6d677f
PFC
137882018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13789
13790 * rs6000-tdep.c (store_insn_p): New function.
13791 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
13792 and cr_reg to their unshifted values. Use store_insn_p to
13793 match LR saves using either R1 or fdata->alloca_reg. Use
13794 store_insn_p to match CR saves. Set alloca_reg_offset
13795 when alloca_reg and framep are set. Remove lr_reg shift
13796 when assigning to fdata->lr_register.
13797
26d6cec4
AA
137982018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
13799
13800 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
13801 command line args instead of emitting a warning.
13802
5d9310c4
SM
138032018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13804
13805 * tracepoint.h (struct static_tracepoint_marker): Initialize
13806 fields, define default constructor, move constructor and move
13807 assignment, disable the rest.
13808 <str_id, extra>: Make std::string.
13809 (release_static_tracepoint_marker): Remove.
13810 (free_current_marker): Remove.
13811 * tracepoint.c (free_current_marker): Remove.
13812 (parse_static_tracepoint_marker_definition): Adjust to
13813 std::string, use new hex2str overload.
13814 (release_static_tracepoint_marker): Remove.
13815 (print_one_static_tracepoint_marker): Get marker by reference
13816 and adjust to std::string.
13817 (info_static_tracepoint_markers_command): Adjust to std::vector
13818 changes
13819 * target.h (static_tracepoint_marker_p): Remove typedef.
13820 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
13821 (struct target_ops) <to_static_tracepoint_marker_at>: Return
13822 bool.
13823 <to_static_tracepoint_markers_by_strid>: Return std::vector.
13824 * target-debug.h
13825 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
13826 (target_debug_print_std_vector_static_tracepoint_marker): New.
13827 (target_debug_print_struct_static_tracepoint_marker_p): Rename
13828 to...
13829 (target_debug_print_static_tracepoint_marker_p): ... this.
13830 * target-delegates.c: Re-generate.
13831 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
13832 Make std::string.
13833 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
13834 (decode_static_tracepoint_spec): Adjust to std::vector.
13835 (tracepoint_print_one_detail): Adjust to std::string.
13836 (strace_marker_decode_location): Adjust to std::string.
13837 (update_static_tracepoint): Adjust to std::string, remove call
13838 to release_static_tracepoint_marker.
13839 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
13840 Adjust to std::vector.
13841 * remote.c (remote_static_tracepoint_marker_at): Return bool.
13842 (remote_static_tracepoint_markers_by_strid): Adjust to
13843 std::vector.
13844 * common/rsp-low.h (hex2str): New overload with explicit count
13845 of bytes.
13846 * common/rsp-low.c (hex2str): New overload with explicit count
13847 of bytes.
13848 * unittests/rsp-low-selftests.c (test_hex2str): New function.
13849 (_initialize_rsp_low_selftests): Add test_hex2str test.
13850 * unittests/tracepoint-selftests.c
13851 (test_parse_static_tracepoint_marker_definition): Adjust to
13852 std::string.
13853
62c222b6
SM
138542018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13855
13856 * tracepoint.c (parse_static_tracepoint_marker_definition):
13857 Consider case where the definition is followed by more
13858 definitions.
13859 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13860 tracepoint-selftests.c.
13861 * unittests/tracepoint-selftests.c: New.
13862
7eb2418f
PFC
138632018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13864
13865 * MAINTAINERS (Write After Approval): Add Pedro Franco de
13866 Carvalho.
13867
7cbe16e9
SR
138682018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13869
3d6b3b82 13870 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 13871
4ee89e90
SR
138722018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13873
3d6b3b82 13874 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 13875
92630041
TT
138762018-03-19 Tom Tromey <tom@tromey.com>
13877
13878 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
13879 "IDENT" production.
13880
76727919
TT
138812018-03-19 Pedro Alves <palves@redhat.com>
13882 Tom Tromey <tom@tromey.com>
13883
13884 * unittests/observable-selftests.c: New file.
13885 * common/observable.h: New file.
13886 * observable.h: New file.
13887 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
13888 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
13889 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
13890 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
13891 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
13892 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
13893 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
13894 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
13895 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
13896 python/py-breakpoint.c, python/py-finishbreakpoint.c,
13897 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
13898 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
13899 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
13900 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
13901 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
13902 tui/tui-interp.c, valops.c: Update all users.
13903 * tui/tui-hooks.c (tui_bp_created_observer)
13904 (tui_bp_deleted_observer, tui_bp_modified_observer)
13905 (tui_inferior_exit_observer, tui_before_prompt_observer)
13906 (tui_normal_stop_observer, tui_register_changed_observer):
13907 Remove.
13908 (tui_observers_token): New global.
13909 (attach_or_detach, tui_attach_detach_observers): New functions.
13910 (tui_install_hooks, tui_remove_hooks): Use
13911 tui_attach_detach_observers.
13912 * record-btrace.c (record_btrace_thread_observer): Remove.
13913 (record_btrace_thread_observer_token): New global.
13914 * observer.sh: Remove.
13915 * observer.c: Rename to observable.c.
13916 * observable.c (namespace gdb_observers): Define new objects.
13917 (observer_debug): Move into gdb_observers namespace.
13918 (struct observer, struct observer_list, xalloc_observer_list_node)
13919 (xfree_observer_list_node, generic_observer_attach)
13920 (generic_observer_detach, generic_observer_notify): Remove.
13921 (_initialize_observer): Update.
13922 Don't include observer.inc.
13923 * Makefile.in (generated_files): Remove observer.h, observer.inc.
13924 (clean mostlyclean): Likewise.
13925 (observer.h, observer.inc): Remove targets.
13926 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
13927 (COMMON_SFILES): Use observable.c, not observer.c.
13928 * .gitignore: Remove observer.h.
13929
1cb1f3da
TT
139302018-03-18 Tom Tromey <tom@tromey.com>
13931
13932 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
13933 gdb::def_vector.
13934 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
13935
a06ab151
TT
139362018-03-17 Tom Tromey <tom@tromey.com>
13937
13938 * auto-load.c (auto_load_objfile_script_1): Use std::string.
13939
770623f7
TT
139402018-03-17 Tom Tromey <tom@tromey.com>
13941
13942 * target.c (class scoped_target_fd): New.
13943 (target_fileio_close_cleanup): Remove.
13944 (target_fileio_read_alloc_1): Use scoped_target_fd.
13945
39be3c7e
SM
139462018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
13947
13948 * silent-rules.mk: New.
13949 * Makefile.in: Include silent-rules.mk
13950 (srcdir, VPATH, top_srcdir): Move up.
13951 (COMPILE): Add ECHO_CXX.
13952 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
13953 (init.c): Add ECHO_INIT_C.
13954 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
13955 (version.c): Add ECHO_GEN.
13956 (printcmd.o): Add ECHO_CXX.
13957 (target-float.o): Add ECHO_CXX.
13958 (ada-exp.o): Add ECHO_CXX.
13959 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
13960 (insight$(EXEEXT)): Add ECHO_CXXLD.
13961 * gnulib/configure.ac: Add AM_SILENT_RULES.
13962 * gnulib/aclocal.m4: Re-generate.
13963 * gnulib/configure: Re-generate.
13964 * gnulib/import/Makefile.in: Re-generate.
13965
37e136b1
TT
139662018-03-16 Tom Tromey <tom@tromey.com>
13967
13968 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
13969 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
13970 * utils.c (do_free_section_addr_info)
13971 (make_cleanup_free_section_addr_info): Remove.
13972 * symfile.h (struct other_sections): Add constructor.
13973 (struct section_addr_info): Remove.
13974 (section_addr_info): New typedef.
13975 (struct sym_fns) <sym_offsets>: Change type of parameter.
13976 (build_section_addr_info_from_objfile)
13977 (relative_addr_info_to_section_offsets, addr_info_make_relative)
13978 (default_symfile_offsets, symbol_file_add)
13979 (symbol_file_add_from_bfd)
13980 (build_section_addr_info_from_section_table): Update.
13981 (alloc_section_addr_info, free_section_addr_info): Don't declare.
13982 * symfile.c (alloc_section_addr_info): Remove.
13983 (build_section_addr_info_from_section_table): Change return type.
13984 Update.
13985 (build_section_addr_info_from_bfd)
13986 (build_section_addr_info_from_objfile): Likewise.
13987 (free_section_addr_info): Remove.
13988 (relative_addr_info_to_section_offsets): Change type of "addrs".
13989 (addrs_section_compar): Now a std::sort comparator.
13990 (addrs_section_sort): Change return type.
13991 (addr_info_make_relative): Change type of "addrs". Update.
13992 (default_symfile_offsets, syms_from_objfile_1)
13993 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
13994 (symbol_file_add_separate): Update.
13995 (symbol_file_add): Change type of "addrs". Update.
13996 (add_symbol_file_command): Update. Remove cleanups.
13997 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
13998 cleanups.
13999 * symfile-debug.c (debug_sym_offsets): Change type of "info".
14000 * solib.c (solib_read_symbols): Update.
14001 * objfiles.c (objfile_relocate): Update. Remove cleanups.
14002 * machoread.c (macho_symfile_offsets): Update.
14003 * jit.c (jit_bfd_try_read_symtab): Update.
14004
03afa6ef
SM
140052018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
14006
14007 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14008 unittests/utils-selftests.c.
14009 * unittests/utils-selftests.c: New file.
14010
3ae9ce5d
TT
140112018-03-14 Tom Tromey <tom@tromey.com>
14012
14013 PR cli/14977:
14014 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
14015 for NULL.
14016
b8c2339b
TT
140172018-03-14 Tom Tromey <tom@tromey.com>
14018
14019 PR cli/19918:
14020 * printcmd.c (printf_pointer): Allow "-" in format.
14021
80ae639d
TT
140222018-03-14 Tom Tromey <tom@tromey.com>
14023
14024 * printcmd.c (_initialize_printcmd): Add usage to printf.
14025
0d671d99
YQ
140262018-03-14 Yao Qi <qiyao@sourceware.org>
14027
14028 * MAINTAINERS: Update my email address.
14029
b577b6af
TT
140302018-03-13 Tom Tromey <tom@tromey.com>
14031
14032 * machoread.c (macho_check_dsym): Change filenamep to a
14033 std::string*.
14034 (macho_symfile_read): Update.
14035 * symfile.c (load_command): Use std::string.
14036
89a3b63e
AB
140372018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
14038
14039 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
14040 to error message string.
14041 (riscv_register_name): Use xsnprintf instead of sprintf.
14042 (riscv_insn::fetch_instruction): Use gdb_assert instead of
14043 internal_error.
14044 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
14045 error.
14046 (riscv_push_dummy_call): Likewise.
14047
984c7238
TT
140482018-03-12 Tom Tromey <tom@tromey.com>
14049
14050 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
14051 Use gdb::byte_vector.
14052 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
14053
933522d1
YQ
140542018-03-12 Yao Qi <yao.qi@linaro.org>
14055
14056 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
14057 parameter type to readable_regcache.
14058 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
14059 the declaration.
14060
be2daae6
TT
140612018-03-11 Tom Tromey <tom@tromey.com>
14062
14063 * dwarf2read.c (struct nextfield): Add initializers.
14064 (struct nextfnfield): Remove.
14065 (struct fnfieldlist): Add initializers. Remove "length" and
14066 "head", use std::vector.
14067 (struct decl_field_list): Remove.
14068 (struct field_info): Add initializers.
14069 <fields, baseclasses>: Now std::vector.
14070 <nbaseclasses, nfnfields, typedef_field_list_count,
14071 nested_types_list_count>: Remove.
14072 (dwarf2_add_field, dwarf2_add_type_defn)
14073 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
14074 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
14075 (process_structure_scope): Update.
14076
484cf504
TT
140772018-03-11 Tom Tromey <tom@tromey.com>
14078
14079 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
14080 for use by std::sort.
14081 (build_type_psymtabs_1): Use std::vector.
14082
9bd8e0b0
EZ
140832018-03-09 Eli Zaretskii <eliz@gnu.org>
14084
14085 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
14086 and LIBMPFR in the printed configuration.
14087
5dc1a704
TT
140882018-03-08 Tom Tromey <tom@tromey.com>
14089
14090 * source.c (get_filename_and_charpos): Use scoped_fd.
14091 * nto-procfs.c (procfs_open_1): Use scoped_fd.
14092 (procfs_pidlist): Likewise.
14093 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
14094 (iterate_over_mappings): Likewise.
14095
fdf07f3a
TT
140962018-03-08 Tom Tromey <tom@tromey.com>
14097
14098 * infcall.c (struct call_return_meta_info)
14099 <stack_temporaries_enabled>: Remove.
14100 (get_call_return_value, call_function_by_hand_dummy): Update.
14101 * thread.c (disable_thread_stack_temporaries): Remove.
14102 (enable_thread_stack_temporaries): Remove.
14103 (thread_stack_temporaries_enabled_p): Return bool.
14104 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
14105 (get_last_thread_stack_temporary): Update.
14106 * eval.c (evaluate_subexp): Update.
14107 * gdbthread.h (class enable_thread_stack_temporaries): Now a
14108 class, not a function.
14109 (value_ptr, value_vec): Remove typedefs.
14110 (class thread_info) <stack_temporaries_enabled>: Now bool.
14111 <stack_temporaries>: Now a std::vector.
14112 (thread_stack_temporaries_enabled_p)
14113 (value_in_thread_stack_temporaries): Return bool.
14114
567a3e54
SM
141152018-03-08 Simon Marchi <simon.marchi@ericsson.com>
14116
14117 * remote.c (putpkt_binary): Fix omitted bytes reporting.
14118 (getpkt_or_notif_sane_1): Likewise.
14119
00b40057
SM
141202018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
14121
14122 * build-id.c (build_id_to_debug_bfd): Use std::string.
14123
a8dbfd58
SM
141242018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
14125
14126 * build-id.c (find_separate_debug_file_by_buildid): Return
14127 std::string.
14128 * build-id.h (find_separate_debug_file_by_buildid): Return
14129 std::string.
14130 * coffread.c (coff_symfile_read): Adjust to std::string.
14131 * elfread.c (elf_symfile_read): Adjust to std::string.
14132 * symfile.c (separate_debug_file_exists): Change parameter to
14133 std::string.
14134 (find_separate_debug_file): Return std::string.
14135 (find_separate_debug_file_by_debuglink): Return std::string.
14136 * symfile.h (find_separate_debug_file_by_debuglink): Return
14137 std::string.
14138
e6a58aa8
SM
141392018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
14140
14141 * common/xml-utils.c (xml_escape_text): Move code to...
14142 (xml_escape_text_append): ... this new function.
14143 * common/xml-utils.h (xml_escape_text_append): New declaration.
14144 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
14145 New function.
14146 (_initialize_xml_utils): register test_xml_escape_text_append as
14147 a selftest.
14148
4ef0bef6
AH
141492018-03-07 Alan Hayward <alan.hayward@arm.com>
14150
14151 * defs.h: Remove MAX_REGISTER_SIZE.
14152 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
14153 asserts.
14154 * python/py-unwind.c (pyuw_sniffer): Likewise.
14155
e0d3522b
TT
141562018-03-07 Tom Tromey <tom@tromey.com>
14157
14158 * linux-tdep.c (linux_info_proc): Update.
14159 * target.h (struct target_ops) <to_fileio_readlink>: Return
14160 optional<string>.
14161 (target_fileio_readlink): Return optional<string>.
14162 * remote.c (remote_hostio_readlink): Return optional<string>.
14163 * inf-child.c (inf_child_fileio_readlink): Return
14164 optional<string>.
14165 * target.c (target_fileio_readlink): Return optional<string>.
14166
ea005f31
AB
141672018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
14168
14169 * regcache.c (cooked_read_test): Add riscv to the list of
14170 architectures that have a save_reggroup.
14171
e95a97d4
AA
141722018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
14173
14174 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
14175 value is not a dynamic class object.
14176
d8344f3d
TT
141772018-03-06 Tom Tromey <tom@tromey.com>
14178
14179 * rust-exp.y: Formatting fixes.
14180
9add17f2
AB
141812018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14182
14183 * riscv-tdep.c (riscv_register_name): Remove target description
14184 support.
14185 (riscv_gdbarch_init): Remove target description check.
14186
c9486dfe
AB
141872018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14188
14189 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
14190 comment.
14191 * riscv-tdep.h: Likewise.
14192
d74aff3d
AB
141932018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14194
14195 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
14196 (riscv_pseudo_register_write): Delete.
14197 (riscv_gdbarch_init): Remove all use of pseudo registers.
14198
7ea78b59
SM
141992018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14200
14201 * record-btrace.c (btrace_print_lines): Replace cleanup
14202 parameter with RAII equivalents.
14203 (btrace_insn_history): Replace cleanup with RAII equivalents.
14204 * ui-out.h (make_cleanup_ui_out_list_begin_end,
14205 make_cleanup_ui_out_tuple_begin_end): Remove.
14206 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
14207 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
14208 make_cleanup_ui_out_list_begin_end): Remove.
14209
53127008
SM
142102018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14211
14212 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
14213 parameter types to std::vector. Use bool.
14214 (record_btrace_wait): Replace VEC(tp_t) with
14215 std::vector<thread_info *>.
14216 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
14217
228f1508
SM
142182018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14219
14220 * record-btrace.c (record_btrace_disable_callback): Remove.
14221 (struct scoped_btrace_disable): New.
14222 (record_btrace_open): Use scoped_btrace_disable.
14223
b2970c23
AB
142242018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14225
14226 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
14227 reading values from registers.
14228
fb294655
AB
142292018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14230
14231 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
14232 where appropriate.
14233
cab5bb9d
AB
142342018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14235
14236 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
14237 change parameter type. Use GDB's print functions, and use
14238 core_addr_to_string where appropriate.
14239 (riscv_push_dummy_call): Use core_addr_to_string where
14240 appropriate, update call to riscv_print_arg_location, and reindent
14241 a few lines.
14242 (riscv_return_value): Update call to riscv_print_arg_location.
14243
dbbb1059
AB
142442018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14245 Tim Newsome <tim@sifive.com>
14246 Albert Ou <a0u@eecs.berkeley.edu>
14247 Darius Rad <darius@bluespec.com>
14248
14249 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
14250 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
14251 (ALLDEPFILES): Add riscv-tdep.c
14252 * configure.tgt: Add riscv support.
14253 * riscv-tdep.c: New file.
14254 * riscv-tdep.h: New file.
14255 * NEWS: Mention new target.
14256 * MAINTAINERS: Add entry for riscv.
14257
5dc43913
AB
142582018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14259
14260 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
14261 fields within aggregates.
14262
3dea1ef7
SM
142632018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
14264
14265 * record-btrace.c (btrace_print_lines): Change type of flags to
14266 gdb_disassembly_flags.
14267
7efba073
JB
142682018-03-04 John Baldwin <jhb@FreeBSD.org>
14269
14270 * fbsd-nat.c: Include "inf-ptrace.h".
14271 (USE_SIGTRAP_SIGINFO): Conditionally define.
14272 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
14273 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
14274 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
14275 function.
14276 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
14277 Likewise.
14278 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
14279 Likewise.
14280 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
14281 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
14282 "supports_stopped_by_hw_breakpoint" target methods.
14283
386a8676
JB
142842018-03-04 John Baldwin <jhb@FreeBSD.org>
14285
14286 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
14287 * fbsd-nat.c (debug_fbsd_nat): New variable.
14288 (show_fbsd_nat_debug): New function.
14289 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
14290 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
14291
12279366
JB
142922018-03-04 John Baldwin <jhb@FreeBSD.org>
14293
14294 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
14295 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
14296 prototype.
14297 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
14298 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
14299 method.
14300
54693cf5
SM
143012018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14302
14303 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
14304 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
14305
ccb2231c
SM
143062018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14307
14308 * charset.c (struct charset_vector): New.
14309 (charsets): Change type to charset_vector.
14310 (find_charset_names): Adjust.
14311 (add_one): Adjust.
14312 (_initialize_charset): Adjust.
14313
6fb16ce6
SM
143142018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14315
14316 * progspace.h (struct program_space) <deleted_solibs>: Change
14317 type to std::vector<std::string>.
14318 * progspace.c (clear_program_space_solib_cache): Adjust.
14319 * breakpoint.c (print_solib_event): Adjust.
14320 (check_status_catch_solib): Adjust.
14321 * solib.c (update_solib_list): Adjust.
14322 * ui-out.h (class ui_out) <field_string>: New overload.
14323 * ui-out.c (ui_out::field_string): New overload.
14324
564b1e3f
SM
143252018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14326
14327 * progspace.h (struct program_space): Add constructor and
14328 destructor, initialize fields.
14329 (add_program_space): Remove.
14330 * progspace.c (add_program_space): Rename to...
14331 (program_space::program_space): ... this.
14332 (release_program_space): Rename to...
14333 (program_space::~program_space): ... this.
14334 (delete_program_space): Use delete to delete program_space.
14335 (initialize_progspace): Use new to allocate program_space.
14336 * inferior.c (add_inferior_with_spaces): Likewise.
14337 (clone_inferior_command): Likewise.
14338 * infrun.c (follow_fork_inferior): Likewise.
14339 (handle_vfork_child_exec_or_exit): Likewise.
14340
e80aaf61
SM
143412018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14342
14343 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
14344 (delim_string_to_char_ptr_vec): Return std::vector of
14345 gdb::unique_xmalloc_ptr.
14346 (dirnames_to_char_ptr_vec_append): Take std::vector of
14347 gdb::unique_xmalloc_ptr.
14348 (dirnames_to_char_ptr_vec): Return std::vector of
14349 gdb::unique_xmalloc_ptr.
14350 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
14351 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
14352 (delim_string_to_char_ptr_vec): Return an std::vector of
14353 gdb::unique_xmalloc_ptr, adjust the code.
14354 (dirnames_to_char_ptr_vec_append): Take an std::vector of
14355 gdb::unique_xmalloc_ptr, adjust the code.
14356 (dirnames_to_char_ptr_vec): Return an std::vector of
14357 gdb::unique_xmalloc_ptr, adjust the code.
14358 * auto-load.c (auto_load_safe_path_vec): Change type to
14359 std::vector of gdb::unique_xmalloc_ptr.
14360 (auto_load_expand_dir_vars): Return an std::vector of
14361 gdb::unique_xmalloc_ptr, adjust the code.
14362 (auto_load_safe_path_vec_update): Adjust.
14363 (filename_is_in_auto_load_safe_path_vec): Adjust.
14364 (auto_load_objfile_script_1): Adjust.
14365 * build-id.c (build_id_to_debug_bfd): Adjust.
14366 * linux-thread-db.c (thread_db_load_search): Adjust.
14367 * source.c (add_path): Adjust.
14368 (openp): Adjust.
14369 * symfile.c (find_separate_debug_file): Adjust.
14370 * utils.c (do_free_char_ptr_vec): Remove.
14371 (make_cleanup_free_char_ptr_vec): Remove.
14372
ab818ade
SDJ
143732018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
14374
14375 PR gdb/22907
14376 * common/pathstuff.c: Conditionally include "<windows.h>".
14377
e1e6f073
GS
143782018-03-01 Georg Sauthoff <mail@georg.so>
14379
14380 PR gdb/22888
14381 * gcore.in: Quote variables and switch interpreter to bash.
14382
c7b15a66
TT
143832018-03-01 Tom Tromey <tom@tromey.com>
14384
14385 * dwarf2read.c (alloc_discriminant_info): Fix default_index
14386 assertion. Add assertion for discriminant_index.
14387 (quirk_rust_enum): Use correct base type name in univariant case.
14388
0cb7c7b0
SM
143892018-03-01 Simon Marchi <simon.marchi@ericsson.com>
14390
14391 * record.c (get_call_history_modifiers): Return a
14392 record_print_flags.
14393 (cmd_record_call_history): Adjust.
14394 * record-btrace.c (record_btrace_call_history): Adjust.
14395 (record_btrace_call_history_range): Adjust.
14396 (record_btrace_call_history_from): Adjust.
14397 * target-debug.h (target_debug_print_record_print_flags): New.
14398 * target-delegates.c: Re-generate.
14399 * target.c (target_call_history): Change flags type.
14400 (target_call_history_from): Likewise.
14401 (target_call_history_range): Likewise.
14402 * target.h (struct target_ops) <target_call_history>: Likewise.
14403 (target_call_history_from): Likewise.
14404 (target_call_history_range): Likewise.
14405
25e3c82c
SDJ
144062018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
14407 Simon Marchi <simon.marchi@polymtl.ca>
14408
14409 * common/common-utils.c: Include "sys/stat.h".
14410 (is_regular_file): Move here from "source.c"; change return
14411 type to "bool".
14412 * common/common-utils.h (is_regular_file): New prototype.
14413 * common/pathstuff.c (contains_dir_separator): New function.
14414 * common/pathstuff.h (contains_dir_separator): New prototype.
14415 * source.c: Don't include "sys/stat.h".
14416 (is_regular_file): Move to "common/common-utils.c".
14417
b4987c95
SDJ
144182018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
14419
14420 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
14421 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
14422 * auto-load.c: Include "common/pathstuff.h".
14423 * common/common-def.h (current_directory): Move here.
14424 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
14425 function.
14426 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
14427 prototype.
14428 * common/pathstuff.c: New file.
14429 * common/pathstuff.h: New file.
14430 * compile/compile.c: Include "common/pathstuff.h".
14431 * defs.h (current_directory): Move to "common/common-defs.h".
14432 * dwarf2read.c: Include "common/pathstuff.h".
14433 * exec.c: Likewise.
14434 * guile/scm-safe-call.c: Likewise.
14435 * linux-thread-db.c: Likewise.
14436 * main.c: Likewise.
14437 * nto-tdep.c: Likewise.
14438 * objfiles.c: Likewise.
14439 * source.c: Likewise.
14440 * symtab.c: Likewise.
14441 * utils.c: Include "common/pathstuff.h".
14442 (gdb_realpath): Move to "common/pathstuff.c".
14443 (gdb_realpath_keepfile): Likewise.
14444 (gdb_abspath): Likewise.
14445 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
14446 (gdb_realpath_keepfile): Likewise.
14447 (gdb_abspath): Likewise.
14448
f169cfdc
JB
144492018-02-28 John Baldwin <jhb@FreeBSD.org>
14450
14451 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
14452 wildcard process pid for super_resume for kernels with a
14453 specific bug.
14454
e05cac70
PM
144552018-02-27 Phil Muldoon <pmuldoon@redhat.com>
14456
14457 * compile/compile.c (get_args): Add additional comments
14458 explaining function.
14459
55089490
TT
144602018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
14461 Tom Tromey <tom@tromey.com>
14462
14463 * target.h (memory_write_request_s): Remove typedef. Don't define
14464 VEC.
14465 (target_write_memory_blocks): Change argument to std::vector.
14466 (struct memory_write_request): Add constructor.
14467 * target-memory.c (compare_block_starting_address): Return bool.
14468 Change argument types.
14469 (claim_memory): Change arguments to use std::vector.
14470 (split_regular_and_flash_blocks, blocks_to_erase)
14471 (compute_garbled_blocks): Likewise.
14472 (cleanup_request_data, cleanup_write_requests_vector): Remove.
14473 (target_write_memory_blocks): Change argument to std::vector.
14474 * symfile.c (struct load_section_data): Add constructor and
14475 destructor. Use std::vector for "requests".
14476 (struct load_progress_data): Add initializers.
14477 (load_section_callback): Update. Use "new".
14478 (clear_memory_write_data): Remove.
14479 (generic_load): Update.
14480
0c305b61
AH
144812018-02-27 Alan Hayward <alan.hayward@arm.com>
14482
14483 * arch/aarch64.h: Use common/tdesc.h.
14484
c5196c92
MR
144852018-02-26 Maciej W. Rozycki <macro@mips.com>
14486
14487 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
14488 architecture with a 64-bit ABI.
14489
37c33887
MR
144902018-02-26 Maciej W. Rozycki <macro@mips.com>
14491
14492 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
14493 ahead of target description loading.
14494
d4dd3282
TT
144952018-02-26 Tom Tromey <tom@tromey.com>
14496
14497 * stack.c (backtrace_command_1): Update.
14498 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
14499 of "flags".
14500 * python/py-framefilter.c (py_print_frame)
14501 (gdbpy_apply_frame_filter): Change type of "flags".
14502 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
14503 of "flags".
14504 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
14505 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
14506 * extension.h (enum frame_filter_flag): Rename from
14507 frame_filter_flags.
14508 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
14509 (apply_ext_lang_frame_filter): Change type of "flags".
14510 * extension.c (apply_ext_lang_frame_filter): Change type of
14511 "flags".
14512 * extension-priv.h (struct extension_language_ops)
14513 <apply_frame_filter>: Change type of "flags".
14514
6893c19a
TT
145152018-02-26 Tom Tromey <tom@tromey.com>
14516
14517 PR python/16497:
14518 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
14519 off-by-one in py_end computation.
14520 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
14521 PRINT_MORE_FRAMES.
14522 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
14523 constant.
14524
2ddeaf8a
TT
145252018-02-26 Tom Tromey <tom@tromey.com>
14526
14527 * dwarf2read.c (struct variant_field): New.
14528 (struct nextfield) <variant>: New field.
14529 (dwarf2_add_field): Handle DW_TAG_variant_part.
14530 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
14531 discriminated union.
14532 (read_structure_type): Handle DW_TAG_variant_part.
14533 (handle_struct_member_die): New function, extracted from
14534 process_structure_scope. Handle DW_TAG_variant.
14535 (process_structure_scope): Handle discriminated unions. Call
14536 handle_struct_member_die.
14537
c9317f21
TT
145382018-02-26 Tom Tromey <tom@tromey.com>
14539
14540 * rust-lang.h (rust_last_path_segment): Declare.
14541 * rust-lang.c (rust_last_path_segment): Now public. Change
14542 contract.
14543 (struct disr_info): Remove.
14544 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
14545 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
14546 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
14547 (rust_enum_p, rust_enum_variant): New function.
14548 (rust_underscore_fields): Remove "offset" parameter.
14549 (rust_print_enum): New function.
14550 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
14551 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
14552 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
14553 enums.
14554 (rust_internal_print_type): New function, from rust_print_type.
14555 Remove enum code.
14556 (rust_print_type): Call rust_internal_print_type.
14557 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
14558 Update enum handling.
14559 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
14560 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
14561 (rust_union_quirks): New functions.
14562 (process_full_comp_unit, process_full_type_unit): Call
14563 rust_union_quirks.
14564 (process_structure_scope): Update rust_unions if necessary.
14565
7c22600a
TT
145662018-02-26 Tom Tromey <tom@tromey.com>
14567
14568 * value.h (value_union_variant): Declare.
14569 * valops.c (value_union_variant): New function.
14570 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
14571 (struct discriminant_info): New.
14572 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
14573 enumerator.
14574 (struct main_type) <flag_discriminated_union>: New field.
14575
15ce8941
TT
145762018-02-26 Tom Tromey <tom@tromey.com>
14577
14578 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14579 unittests/unpack-selftests.c.
14580 * unittests/unpack-selftests.c: New file.
14581 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
14582
48fbe735
YQ
145832018-02-26 Yao Qi <yao.qi@linaro.org>
14584
14585 * dwarf2read.c (struct partial_die_info) <read>: New method.
14586 (read_partial_die): Remove the declaration.
14587 (load_partial_dies): Update.
14588 (partial_die_info::partial_die_info):
14589 (read_partial_die): Change it to partial_die_info::read.
14590
52356b79
YQ
145912018-02-26 Yao Qi <yao.qi@linaro.org>
14592
14593 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
14594 (fixup_partial_die): Remove declaration.
14595 (scan_partial_symbols): Update.
14596 (partial_die_parent_scope): Likewise.
14597 (partial_die_full_name): Likewise.
14598 (fixup_partial_die): Change it to partial_die_info::fixup.
14599
35cc7ed7
YQ
146002018-02-26 Yao Qi <yao.qi@linaro.org>
14601
14602 * dwarf2read.c (read_partial_die): Update the declaration.
14603 (load_partial_dies): Caller update.
14604 (read_partial_die): Remove one argument abbrev_len.
14605
6f06d47b
YQ
146062018-02-26 Yao Qi <yao.qi@linaro.org>
14607
14608 * dwarf2read.c (struct partial_die_info): Add ctor, delete
14609 assignment operator.
14610 (load_partial_dies): Use ctor and copy ctor.
14611 (read_partial_die): Update.
14612 (dwarf2_cu::find_partial_die): Use ctor.
14613
d590ff25
YQ
146142018-02-26 Yao Qi <yao.qi@linaro.org>
14615
14616 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
14617 (find_partial_die_in_comp_unit): Change it to
14618 dwarf2_cu::find_partial_die.
14619 (find_partial_die): Update.
14620
fd0a254f
YQ
146212018-02-26 Yao Qi <yao.qi@linaro.org>
14622
14623 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
14624 is NULL.
14625
cd9983dd
YQ
146262018-02-26 Yao Qi <yao.qi@linaro.org>
14627
14628 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
14629
f46cd62a
AH
146302018-02-26 Alan Hayward <alan.hayward@arm.com>
14631
14632 * arch/amd64.h: Use common/tdesc.h.
14633 * arch/i386.c: Likewise.
14634 * arch/i386.h: Likewise.
14635 * arch/tic6x.c: Likewise.
14636 * arch/tdesc.h: Move file from here...
14637 * common/tdesc.h: ...to here.
14638 * features/aarch64-core.c: Regenerate.
14639 * features/aarch64-fpu.c: Regenerate.
14640 * features/i386/32bit-avx.c: Regenerate.
14641 * features/i386/32bit-avx512.c: Regenerate.
14642 * features/i386/32bit-core.c: Regenerate.
14643 * features/i386/32bit-linux.c: Regenerate.
14644 * features/i386/32bit-mpx.c: Regenerate.
14645 * features/i386/32bit-pkeys.c: Regenerate.
14646 * features/i386/32bit-sse.c: Regenerate.
14647 * features/i386/64bit-avx.c: Regenerate.
14648 * features/i386/64bit-avx512.c: Regenerate.
14649 * features/i386/64bit-core.c: Regenerate.
14650 * features/i386/64bit-linux.c: Regenerate.
14651 * features/i386/64bit-mpx.c: Regenerate.
14652 * features/i386/64bit-pkeys.c: Regenerate.
14653 * features/i386/64bit-segments.c: Regenerate.
14654 * features/i386/64bit-sse.c: Regenerate.
14655 * features/i386/x32-core.c: Regenerate.
14656 * features/tic6x-c6xp.c: Regenerate.
14657 * features/tic6x-core.c: Regenerate.
14658 * features/tic6x-gp.c: Regenerate.
14659 * target-descriptions.c: Use common/tdesc.h.
14660 * target-descriptions.h: Likewise.
14661
9b292f68
TT
146622018-02-24 Tom Tromey <tom@tromey.com>
14663
14664 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
14665 (try_thread_db_load_from_dir, thread_db_load_search): Use
14666 std::string.
14667 (info_auto_load_libthread_db_compare): Return bool. Change
14668 argument types.
14669 (info_auto_load_libthread_db): Use std::vector, std::string.
14670 Remove cleanups.
14671
281d762b
TT
146722018-02-24 Tom Tromey <tom@tromey.com>
14673
14674 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
14675 std::string.
14676 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
14677 std::string*.
14678 * gdbarch.c: Rebuild.
14679 * gdbarch.h: Rebuild.
14680 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
14681 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
14682 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
14683 std::string*.
14684
9d8780f0
SM
146852018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
14686
14687 * gdbtypes.h (sect_offset): Change type to uint64_t.
14688 (sect_offset_str): New function.
14689 * dwarf2read.c (create_addrmap_from_aranges): Use
14690 sect_offset_str.
14691 (error_check_comp_unit_head): Likewise.
14692 (create_debug_type_hash_table): Likewise.
14693 (read_cutu_die_from_dwo): Likewise.
14694 (init_cutu_and_read_dies): Likewise.
14695 (init_cutu_and_read_dies_no_follow): Likewise.
14696 (process_psymtab_comp_unit_reader): Likewise.
14697 (partial_die_parent_scope): Likewise.
14698 (peek_die_abbrev): Likewise.
14699 (process_queue): Likewise.
14700 (dwarf2_physname): Likewise.
14701 (read_namespace_alias): Likewise.
14702 (read_import_statement): Likewise.
14703 (create_dwo_cu_reader): Likewise.
14704 (create_cus_hash_table): Likewise.
14705 (lookup_dwo_cutu): Likewise.
14706 (inherit_abstract_dies): Likewise.
14707 (read_func_scope): Likewise.
14708 (read_call_site_scope): Likewise.
14709 (dwarf2_add_member_fn): Likewise.
14710 (read_common_block): Likewise.
14711 (read_module_type): Likewise.
14712 (read_typedef): Likewise.
14713 (read_subrange_type): Likewise.
14714 (load_partial_dies): Likewise.
14715 (read_partial_die): Likewise.
14716 (find_partial_die): Likewise.
14717 (read_str_index): Likewise.
14718 (dwarf2_string_attr): Likewise.
14719 (build_error_marker_type): Likewise.
14720 (lookup_die_type): Likewise.
14721 (dump_die_shallow): Likewise.
14722 (follow_die_ref): Likewise.
14723 (dwarf2_fetch_die_loc_sect_off): Likewise.
14724 (dwarf2_fetch_constant_bytes): Likewise.
14725 (follow_die_sig): Likewise.
14726 (get_signatured_type): Likewise.
14727 (get_DW_AT_signature_type): Likewise.
14728 (dwarf2_find_containing_comp_unit): Likewise.
14729 (set_die_type): Likewise.
14730
8ec57239
JB
147312018-02-21 John Baldwin <jhb@FreeBSD.org>
14732
14733 * arch/aarch64.c: Include "common-defs.h".
14734 * arch/amd64.c: Likewise.
14735 * arch/i386.c: Likewise.
14736
3eac2b65
TT
147372018-02-21 Tom Tromey <tom@tromey.com>
14738
14739 * value.h: (extract_field_op): Update.
14740 * eval.c (extract_field_op): Return a const char *.
14741 * expression.h (parse_expression_for_completion): Update.
14742 * completer.c (complete_expression): Update.
14743 (add_struct_fields): Make fieldname const.
14744 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
14745 (mark_completion_tag, parse_exp_in_context_1): Update.
14746 (parse_expression_for_completion): Change "name" to
14747 unique_xmalloc_ptr*.
14748
6ccb583f
TT
147492018-02-21 Tom Tromey <tom@tromey.com>
14750
14751 * infcall.c (call_function_by_hand_dummy): Use std::vector.
14752
c113ed0c
YQ
147532018-02-21 Yao Qi <yao.qi@linaro.org>
14754
14755 * avr-tdep.c (avr_read_pc): Change parameter type to
14756 readable_regcache.
14757 * gdbarch.sh (read_pc): Likewise.
14758 * gdbarch.c: Re-generated.
14759 * gdbarch.h: Re-generated.
14760 * hppa-tdep.c (hppa_read_pc): Change parameter type to
14761 readable_regcache.
14762 * ia64-tdep.c (ia64_read_pc): Likewise.
14763 * mips-tdep.c (mips_read_pc): Likewise.
14764 * spu-tdep.c (spu_read_pc): Likewise.
14765
4c74fe6b
YQ
147662018-02-21 Yao Qi <yao.qi@linaro.org>
14767
14768 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
14769 * regcache-dump.c: New file.
14770 * regcache.c: Move register_dump to regcache-dump.c.
14771 (maintenance_print_registers): Likewise.
14772 (maintenance_print_raw_registers): Likewise.
14773 (maintenance_print_cooked_registers): Likewise.
14774 (maintenance_print_register_groups): Likewise.
14775 (maintenance_print_remote_registers): Likewise.
14776 (_initialize_regcache): Likewise.
14777 * regcache.h (register_dump): Moved from regcache.c.
14778
796bb026
YQ
147792018-02-21 Yao Qi <yao.qi@linaro.org>
14780
14781 * regcache.c (regcache::regcache): Update.
14782 (regcache::invalidate): Move it to detached_regcache::invalidate.
14783 (get_thread_arch_aspace_regcache): Update.
14784 (regcache::raw_update): Update.
14785 (regcache::cooked_read): Remove some code.
14786 (regcache::cooked_read_value): Likewise.
14787 (regcache::raw_write): Remove assert on m_readonly_p.
14788 (regcache::raw_supply_integer): Move it to
14789 detached_regcache::raw_supply_integer.
14790 (regcache::raw_supply_zeroed): Likewise.
14791 * regcache.h (detached_regcache) <raw_supply_integer>: New
14792 declaration.
14793 <raw_supply_zeroed, invalidate>: Likewise.
14794 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
14795 <invalidate>: Likewise.
14796 <m_readonly_p>: Removed.
14797
215c69dc
YQ
147982018-02-21 Yao Qi <yao.qi@linaro.org>
14799
14800 * infcmd.c (get_return_value): Let stop_regs point to
14801 get_current_regcache.
14802 * regcache.c (regcache::regcache): Remove.
14803 (register_dump_reg_buffer): New class.
14804 (regcache_print): Adjust.
14805 * regcache.h (regcache): Remove constructors.
14806
f3384e66
YQ
148072018-02-21 Yao Qi <yao.qi@linaro.org>
14808
14809 * regcache.c (class register_dump): New class.
14810 (register_dump_regcache, register_dump_none): New class.
14811 (register_dump_remote, register_dump_groups): New class.
14812 (regcache_print): Update.
14813 * regcache.h (regcache_dump_what): Move it to regcache.c.
14814 (regcache) <dump>: Remove.
14815
c8ec2f33
YQ
148162018-02-21 Yao Qi <yao.qi@linaro.org>
14817
14818 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
14819 reg_buffer_rw *.
14820 (jit_unwind_reg_set_impl): Call raw_supply.
14821 (jit_frame_sniffer): Use reg_buffer_rw.
14822 * record-full.c (record_full_core_regbuf): Change its type.
14823 (record_full_core_open_1): Use reg_buffer_rw.
14824 (record_full_close): Likewise.
14825 (record_full_core_fetch_registers): Use regcache->raw_supply.
14826 (record_full_core_store_registers): Likewise.
14827 * regcache.c (regcache::get_register_status): Move it to
14828 reg_buffer.
14829 (regcache_raw_set_cached_value): Remove.
14830 (regcache::raw_set_cached_value): Remove.
14831 (regcache::raw_write): Call raw_supply.
14832 (regcache::raw_supply): Move it to reg_buffer_rw.
14833 * regcache.h (regcache_raw_set_cached_value): Remove.
14834 (reg_buffer_rw): New class.
14835
daf6667d
YQ
148362018-02-21 Yao Qi <yao.qi@linaro.org>
14837
14838 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
14839 readonly_detached_regcache.
14840 (dummy_frame_prev_register): Use regcache->cooked_read.
14841 * frame.c (frame_save_as_regcache): Change return type.
14842 (frame_pop): Update.
14843 * frame.h (frame_save_as_regcache): Update declaration.
14844 * inferior.h (get_infcall_suspend_state_regcache): Update
14845 declaration.
14846 * infrun.c (infcall_suspend_state) <registers>: use
14847 readonly_detached_regcache.
14848 (save_infcall_suspend_state): Don't use regcache_dup.
14849 (get_infcall_suspend_state_regcache): Change return type.
14850 * linux-fork.c (struct fork_info) <savedregs>: Change to
14851 readonly_detached_regcache.
14852 <pc>: New field.
14853 (fork_save_infrun_state): Don't use regcache_dup.
14854 (info_checkpoints_command): Adjust.
14855 * mi/mi-main.c (register_changed_p): Update declaration.
14856 (mi_cmd_data_list_changed_registers): Use
14857 readonly_detached_regcache.
14858 (register_changed_p): Change parameter type to
14859 readonly_detached_regcache.
14860 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
14861 readonly_detached_regcache.
14862 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
14863 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
14864 New.
14865 (regcache::save): Move it to reg_buffer.
14866 (regcache::restore): Change parameter type.
14867 (regcache_dup): Remove.
14868 * regcache.h (reg_buffer) <save>: New method.
14869 (readonly_detached_regcache): New class.
14870 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
14871 readonly_detached_regcache.
14872 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
14873
fc5b8736
YQ
148742018-02-21 Yao Qi <yao.qi@linaro.org>
14875
14876 * frame.c (frame_save_as_regcache): Use regcache method save.
14877 (frame_pop): Use regcache method restore.
14878 * infrun.c (restore_infcall_suspend_state): Likewise.
14879 * linux-fork.c (fork_load_infrun_state): Likewise.
14880 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
14881 save.
14882 * regcache.c (regcache_save): Remove.
14883 (regcache::restore): More asserts.
14884 (regcache_cpy): Remove.
14885 * regcache.h (regcache_save): Remove the declaration.
14886 (regcache::restore): Move from private to public.
14887 Remove the friend declaration of regcache_cpy.
14888 (regcache_cpy): Remove declaration.
14889
849d0ba8
YQ
148902018-02-21 Yao Qi <yao.qi@linaro.org>
14891
14892 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
14893 parameter type to 'readable_regcache *'.
14894 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14895 * arm-tdep.c (arm_neon_quad_read): Likewise.
14896 (arm_pseudo_read): Likewise.
14897 * avr-tdep.c (avr_pseudo_register_read): Likewise.
14898 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14899 * frv-tdep.c (frv_pseudo_register_read): Likewise.
14900 * gdbarch.c: Re-generated.
14901 * gdbarch.h: Re-generated.
14902 * gdbarch.sh (pseudo_register_read): Change parameter type to
14903 'readable_regcache *'.
14904 (pseudo_register_read_value): Likewise.
14905 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
14906 (h8300_pseudo_register_read): Likewise.
14907 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
14908 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14909 (i386_pseudo_register_read_into_value): Likewise.
14910 (i386_pseudo_register_read_value): Likewise.
14911 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
14912 declaration.
14913 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
14914 * m32c-tdep.c (m32c_raw_read): Likewise.
14915 (m32c_read_flg): Likewise.
14916 (m32c_banked_register): Likewise.
14917 (m32c_banked_read): Likewise.
14918 (m32c_sb_read): Likewise.
14919 (m32c_part_read): Likewise.
14920 (m32c_cat_read): Likewise.
14921 (m32c_r3r2r1r0_read): Likewise.
14922 (m32c_pseudo_register_read): Likewise.
14923 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14924 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14925 (mep_pseudo_cr64_read): Likewise.
14926 (mep_pseudo_register_read): Likewise.
14927 * mips-tdep.c (mips_pseudo_register_read): Likewise.
14928 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14929 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14930 * regcache.c (regcache::raw_read): Move it to readable_regcache.
14931 (regcache::cooked_read): Likewise.
14932 (regcache::cooked_read_value): Likewise.
14933 (regcache_cooked_read_signed):
14934 (regcache::cooked_read): Likewise.
14935 * regcache.h (readable_regcache): New class.
14936 (regcache): Inherit readable_regcache. Move some methods to
14937 readable_regcache.
14938 * rl78-tdep.c (rl78_pseudo_register_read): Change
14939 parameter type to 'readable_regcache *'.
14940 * rs6000-tdep.c (do_regcache_raw_read): Remove.
14941 (e500_pseudo_register_read): Change parameter type to
14942 'readable_regcache *'.
14943 (dfp_pseudo_register_read): Likewise.
14944 (vsx_pseudo_register_read): Likewise.
14945 (efpr_pseudo_register_read): Likewise.
14946 * s390-tdep.c (s390_pseudo_register_read): Likewise.
14947 * sh-tdep.c (sh_pseudo_register_read): Likewise.
14948 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
14949 (sh64_pseudo_register_read): Likewise.
14950 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14951 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14952 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14953 (spu_pseudo_register_read): Likewise.
14954 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14955 (xtensa_pseudo_register_read): Likewise.
14956
31716595
YQ
149572018-02-21 Yao Qi <yao.qi@linaro.org>
14958
14959 * regcache.c (regcache::regcache): Call reg_buffer ctor.
14960 (regcache::arch): Move it to reg_buffer::arch.
14961 (regcache::register_buffer): Likewise.
14962 (regcache::assert_regnum): Likewise.
14963 (regcache::num_raw_registers): Likewise.
14964 * regcache.h (reg_buffer): New class.
14965 (regcache): Inherit reg_buffer.
14966
7104e59b
SM
149672018-02-20 Simon Marchi <simon.marchi@ericsson.com>
14968
14969 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
14970 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
14971
2d8adcbd
MM
149722018-02-20 Markus Metzger <markus.t.metzger@intel.com>
14973
14974 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
14975
b5884fa7
AH
149762018-02-19 Alan Hayward <alan.hayward@arm.com>
14977
14978 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
14979 (SFILES): Remove common/*.c files.
14980 (COMMON_OBS): Remove some *.o files built from common/*.c files.
14981 * common/common.host: Add common reference.
14982 * configure.ac: Likewise.
14983 * configure: Regenerate.
14984
fd90ace4
YQ
149852018-02-16 Yao Qi <yao.qi@linaro.org>
14986
14987 * block.c (block_namespace_info): Inherit allocate_on_obstack.
14988 (block_initialize_namespace): Use new.
14989 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
14990 (dwarf2_free_objfile): Use delete.
14991 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
14992 (copy_type_recursive): Use new.
14993 * gdb_obstack.h (allocate_on_obstack): New.
14994
85046ae2
YQ
149952018-02-15 Yao Qi <yao.qi@linaro.org>
14996
14997 PR gdb/22849
14998 * inferior.c (exit_inferior_1): Reset inf->control.
14999
355c559b
JB
150002018-02-15 Joel Brobecker <brobecker@adacore.com>
15001
15002 * ada-lang.c (ada_to_fixed_value_create): Delete advance
15003 declaration.
15004
980548fd
PA
150052018-02-14 Pedro Alves <palves@redhat.com>
15006
15007 * frame-unwind.c (frame_unwind_try_unwinder): Always call
15008 frame_cleanup_after_sniffer on exception.
15009
692d6f97
TT
150102018-02-14 Tom Tromey <tom@tromey.com>
15011
15012 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
15013 const.
15014 (solib_bfd_open): Make pathname const.
15015 * solib.c (solib_bfd_open): Make pathname const.
15016 * solib-spu.c (spu_bfd_fopen): Make name const.
15017 (spu_bfd_open): Make pathname const.
15018 * solib-darwin.c (darwin_bfd_open): Make pathname const.
15019 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
15020
e0cc99a6
TT
150212018-02-14 Tom Tromey <tom@tromey.com>
15022
15023 * symfile.c (symfile_bfd_open): Update.
15024 * source.h (openp, source_full_path_of, find_and_open_source):
15025 Change argument type to unique_xmalloc_ptr.
15026 * source.c (openp): Take a unique_xmalloc_ptr.
15027 (source_full_path_of, find_and_open_source): Likewise.
15028 (open_source_file, symtab_to_fullname): Update.
15029 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
15030 unique_xmalloc_ptr.
15031 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
15032 (exec_file_find): Update.
15033 * psymtab.c (psymtab_to_fullname): Update.
15034 * nto-tdep.h (nto_find_and_open_solib): Update.
15035 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
15036 unique_xmalloc_ptr.
15037 * exec.c (exec_file_attach): Update.
15038 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
15039 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
15040
b46a8d7c
TT
150412018-02-14 Tom Tromey <tom@tromey.com>
15042
15043 * solib.c: Include source.h.
15044 * nto-tdep.c: Include source.h.
15045 * mi/mi-cmd-env.c: Include source.h.
15046 * infcmd.c: Include source.h.
15047 * exec.c: Include source.h.
15048 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
15049 (add_path, directory_switch, source_path, init_source_path): Move
15050 declarations...
15051 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
15052 (add_path, directory_switch, source_path, init_source_path):
15053 ...here.
15054
797bc1cb
TT
150552018-02-14 Tom Tromey <tom@tromey.com>
15056
15057 * solist.h (exec_file_find, solib_find): Return
15058 unique_xmalloc_ptr.
15059 (solib_bfd_fopen): Take a const char *.
15060 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
15061 (exec_file_find, solib_find): Likewise.
15062 (solib_bfd_fopen): Do not take ownership of "pathname".
15063 (solib_bfd_open): Use unique_xmalloc_ptr.
15064 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
15065 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
15066 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
15067 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
15068
f98b2e33
JB
150692018-02-14 Joel Brobecker <brobecker@adacore.com>
15070
15071 * ada-lang.c (name_match_type_from_name): Remove reference to
15072 ada_name_for_lookup in function's documentation.
15073 * ada-lang.h (ada_name_for_lookup): Delete declaration.
15074
24b9144d
SM
150752018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
15076
15077 * defs.h (enum openp_flags): New enum.
15078 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
15079 Move to enum openp_flags.
15080 (openp_flags): New enum flags.
15081 (openp): Change parameter type to openp_flags.
15082 * source.c (openp): Change parameter type to openp_flags.
15083 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
15084 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
15085
387cd15b
SM
150862018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
15087
15088 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
15089 per-command.
15090
b303c6f6
AB
150912018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
15092
15093 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
15094 into...
15095 (class dwarf2_queue_guard): ...the destructor of this new class.
15096 (dw2_do_instantiate_symtab): Create instance of the new class
15097 dwarf2_queue_guard, remove cleanup.
15098
9c3630e9
TT
150992018-02-09 Tom Tromey <tom@tromey.com>
15100
15101 * source.c (find_source_lines): Don't reference past the end of
15102 the vector.
15103
c4e12631
MM
151042018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15105
15106 * remote.c (remote_btrace_maybe_reopen): Change error message.
15107 * btrace.c (btrace_enable): Likewise.
15108 (parse_xml_btrace): Likewise.
15109 (parse_xml_btrace_conf): Likewise.
15110
88711fbf
MM
151112018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15112
15113 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
15114 (linux_enable_pt, linux_enable_bts): Call
15115 diagnose_perf_event_open_fail.
15116
17ad2a4f
MM
151172018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15118
15119 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
15120 Remove parameter and change return type. Update callers. Move it.
15121 (linux_enable_bts, linux_enable_pt): Improve error message.
15122 (linux_enable_pt): Remove zero buffer size check.
15123 (linux_enable_btrace): Improve error messages. Remove NULL return
15124 check.
15125
de6242d3
MM
151262018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15127
15128 * btrace.c (btrace_enable): Remove target_supports_btrace call.
15129 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
15130 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
15131 (linux_supports_pt, linux_supports_btrace): Remove.
15132 (linux_enable_bts): Call cpu_supports_bts.
15133 * nat/linux-btrace.h (linux_supports_btrace): Remove.
15134 * remote.c (remote_supports_btrace): Remove.
15135 (init_remote_ops): Remove remote_supports_btrace.
15136 * target-delegates.c: Regenerated.
15137 * target.c (target_supports_btrace): Remove.
15138 * target.h (target_ops) <to_supports_btrace>: Remove
15139 (target_supports_btrace): Remove.
15140 * x86-linux-nat.c (x86_linux_create_target): Remove
15141 linux_supports_btrace.
15142
9ee23a85
MM
151432018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15144
15145 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
15146 btrace failed.
15147 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
15148 exception and use message in own exception.
15149
5c3284c1
MM
151502018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15151
15152 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
15153 (perf_event_pt_event_type): Use gdb_file_up.
15154 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
15155 scoped_fd, and scoped_mmap.
15156
84696f37
MM
151572018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15158
15159 * common/scoped_mmap.h: New.
15160 * unittests/scoped_mmap-selftest.c: New.
15161 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15162 unittests/scoped_mmap-selftest.c.
15163
ea4a0888
MM
151642018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15165
15166 * common/scoped_fd.h: New.
15167 * unittests/scoped_fd-selftest.c: New.
15168 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15169 unittests/scoped_fd-selftest.c.
15170
869e8290
TT
151712018-02-09 Tom Tromey <tom@tromey.com>
15172
15173 * auto-load.c (auto_load_section_scripts): Use
15174 gdb::unique_xmalloc_ptr.
15175
a37a2ae7
TT
151762018-02-09 Tom Tromey <tom@tromey.com>
15177
15178 * auto-load.c (execute_script_contents): Use std::string.
15179
4e725347
JB
151802018-02-09 Joel Brobecker <brobecker@adacore.com>
15181
15182 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
15183 Python function, rather than a new command.
15184
9a897d43
TT
151852018-02-08 Tom Tromey <tom@tromey.com>
15186
15187 * solib.c (solib_find_1): Use std::string.
15188 (solib_bfd_fopen): Use unique_xmalloc_ptr.
15189
58ef3771
TT
151902018-02-08 Tom Tromey <tom@tromey.com>
15191
15192 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
15193
a9abc434
TT
151942018-02-08 Tom Tromey <tom@tromey.com>
15195
15196 * source.c (find_source_lines): Use gdb::def_vector.
15197
84f27c6f
TT
151982018-02-08 Tom Tromey <tom@tromey.com>
15199
15200 * macrocmd.c (struct temporary_macro_definition): New.
15201 (macro_define_command): Use temporary_macro_definition. Remove
15202 cleanups.
15203 (free_macro_definition_ptr): Remove.
15204
0354904b
TT
152052018-02-08 Tom Tromey <tom@tromey.com>
15206
15207 * macroexp.c (maybe_expand): Use std::string.
15208
1739cf24
TT
152092018-02-08 Tom Tromey <tom@tromey.com>
15210
15211 * macroexp.c (struct macro_buffer): Add initializers for some
15212 members.
15213 (init_buffer, init_shared_buffer, free_buffer)
15214 (free_buffer_return_text): Remove.
15215 (macro_buffer): New constructors.
15216 (~macro_buffer): New destructor.
15217 (macro_buffer::set_shared): New method.
15218 (macro_buffer::resize_buffer, macro_buffer::appendc)
15219 (macro_buffer::appendmem): Now methods, not free functions.
15220 (set_token, append_tokens_without_splicing, stringify)
15221 (macro_stringify): Update.
15222 (gather_arguments): Change return type. Remove argc_p argument,
15223 add args_ptr argument. Use std::vector.
15224 (substitute_args): Remove argc argument. Accept std::vector.
15225 (expand): Update. Use std::vector.
15226 (scan, macro_expand, macro_expand_next): Update.
15227
f6c2623e
TT
152282018-02-08 Tom Tromey <tom@tromey.com>
15229
15230 * symtab.c (default_collect_symbol_completion_matches_break_on):
15231 Use unique_xmalloc_ptr.
15232 * macroscope.h: (sal_macro_scope, user_macro_scope)
15233 (default_macro_scope): Return unique_xmalloc_ptr.
15234 * macroscope.c (sal_macro_scope, user_macro_scope)
15235 (default_macro_scope): Return unique_xmalloc_ptr.
15236 * macroexp.h (macro_expand, macro_expand_once): Return
15237 unique_xmalloc_ptr.
15238 * macroexp.c (macro_expand, macro_expand_once): Return
15239 unique_xmalloc_ptr.
15240 * macrocmd.c (macro_expand_command, macro_expand_once_command)
15241 (info_macro_command, info_macros_command): Use
15242 unique_xmalloc_ptr.
15243 * compile/compile-c-support.c (write_macro_definitions): Use
15244 unique_xmalloc_ptr.
15245 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
15246
c2e0e465
SM
152472018-02-07 Simon Marchi <simon.marchi@ericsson.com>
15248
15249 * value.c (value_static_field): Assign field type instead of
15250 containing type when returning an optimized out value.
15251
3f8c94b4
YQ
152522018-02-06 Yao Qi <yao.qi@linaro.org>
15253
15254 * ft32-tdep.c (ft32_read_pc): Remove.
15255 (ft32_write_pc): Remove.
15256 (ft32_gdbarch_init): Update.
15257 * m32r-tdep.c (m32r_read_pc): Remove.
15258 (m32r_gdbarch_init): Update.
15259 * mep-tdep.c (mep_read_pc): Remove.
15260 (mep_gdbarch_init): Update.
15261 * microblaze-tdep.c (microblaze_write_pc): Remove.
15262 (microblaze_gdbarch_init): Update.
15263 * mn10300-tdep.c (mn10300_read_pc): Remove.
15264 (mn10300_write_pc): Remove.
15265 (mn10300_gdbarch_init): Update.
15266 * moxie-tdep.c (moxie_read_pc): Remove.
15267 (moxie_write_pc): Remove.
15268 (moxie_gdbarch_init): Update.
15269
bca65a23
YQ
152702018-02-06 Yao Qi <yao.qi@linaro.org>
15271
15272 * expprint.c (print_subexp_standard): Handle
15273 OP_F77_UNDETERMINED_ARGLIST.
15274 (dump_subexp_body_standard): Likewise.
15275
583e3f90 152762018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 15277
583e3f90
YQ
15278 * target-descriptions.c (tdesc_element_visitor) Add empty
15279 implementations.
b8df6ca7
AH
15280 (tdesc_type): Move make_gdb_type from here.
15281 (tdesc_type_builtin): Likewise.
15282 (tdesc_type_vector): Likewise.
15283 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
15284 (make_gdb_type_struct): Move from tdesc_type_with_fields.
15285 (make_gdb_type_union): Likewise.
15286 (make_gdb_type_flags): Likewise.
15287 (make_gdb_type_enum): Likewise.
15288 (make_gdb_type): New function.
15289 (tdesc_register_type): Use static make_gdb_type.
15290
e813d34a
RK
152912018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
15292
15293 * infcmd.c (default_print_one_register_info): Align natural-format
15294 column values consistently one under another.
15295 (pad_to_column): New function.
15296
0eb876f5
JB
152972018-02-05 Joel Brobecker <brobecker@adacore.com>
15298
15299 * dwarf2read.c (dwarf2_physname): Move commment.
15300
0625771b
LS
153012018-02-01 Leszek Swirski <leszeks@google.com>
15302
15303 * varobj.c (varobj_formatted_print_options): Allow recursive
15304 pretty printing if pretty printing is enabled.
15305
59498c30
LS
153062018-02-01 Leszek Swirski <leszeks@google.com>
15307
15308 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
15309 names after a structop as a filename.
15310
2d9e6acb
YQ
153112018-02-01 Yao Qi <yao.qi@linaro.org>
15312
15313 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
15314 (arm_record_coproc_data_proc): Likewise.
15315
df95a9cf
YQ
153162018-02-01 Yao Qi <yao.qi@linaro.org>
15317
15318 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
15319
07e5f5cf
NP
153202018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
15321
15322 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
15323 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
15324
3045b475
PA
153252018-01-31 Pedro Alves <palves@redhat.com>
15326
15327 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
15328 * inflow.c (child_terminal_save_inferior): Wrap reference to
15329 tcgetpgrp in HAVE_TERMIOS_H.
15330 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
15331 _WIN32.
15332 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
15333 always iterate over all inferiors.
15334 (gdbsim_cntrl_c): Adjust.
15335 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
15336
929b5ad4
JB
153372018-01-31 Joel Brobecker <brobecker@adacore.com>
15338
15339 * gdbtypes.c (lookup_array_range_type): Make sure the array's
15340 index type is objfile-owned if the element type is as well.
15341
29236ca2
JB
153422018-01-31 Joel Brobecker <brobecker@adacore.com>
15343
15344 GDB 8.1 released.
15345
c81e8879
PR
153462018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
15347
15348 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
15349 "features/s390x-linux64.c".
15350 (_initialize_s390_linux_tdep): Remove initialization of tdescs
15351 s390_linux32 and s390x_linux64.
15352 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
15353 default tdesc.
15354 * s390-tdep.c: Include "features/s390-linux32.c" and
15355 "features/s390x-linux64.c".
15356 (s390_tdesc_valid): Add check for tdesc_has_registers.
15357 (s390_gdbarch_init): Make sure there is always a valid tdesc.
15358 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
15359 tdesc_s390x_linux64.
15360 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
15361 tdesc_s390x_linux64 to...
15362 * s390-tdep.h: ...here.
15363
e671cd59
PA
153642018-01-30 Pedro Alves <palves@redhat.com>
15365
15366 PR gdb/13211
15367 * config.in, configure: Regenerate.
15368 * configure.ac: Check for getpgid.
15369 * go32-nat.c (go32_pass_ctrlc): New.
15370 (go32_target): Install it.
15371 * inf-child.c (inf_child_target): Install
15372 child_terminal_save_inferior, child_pass_ctrlc and
15373 child_interrupt.
15374 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
15375 (inf_ptrace_target): No longer install it.
15376 * infcmd.c (interrupt_target_1): Adjust.
15377 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
15378 (child_interrupt): Declare.
15379 (inferior::terminal_state): New.
15380 * inflow.c (struct terminal_info): Update comments.
15381 (inferior_process_group): Delete.
15382 (terminal_is_ours): Delete.
15383 (gdb_tty_state): New.
15384 (child_terminal_init): Adjust.
15385 (is_gdb_terminal, sharing_input_terminal_1)
15386 (sharing_input_terminal): New functions.
15387 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
15388 Set the process's actual process group in the foreground if
15389 possible. Handle is_ours_for_output/is_ours distinction. Don't
15390 mark terminal as the inferior's if not sharing GDB's terminal.
15391 Don't check attach_flag.
15392 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
15393 pass down a target_terminal_state.
15394 (child_terminal_save_inferior): New, factored out from ...
15395 (child_terminal_ours_1): ... this. Handle
15396 target_terminal_state::is_ours_for_output.
15397 (child_interrupt, child_pass_ctrlc): New.
15398 (inflow_inferior_exit): Clear the inferior's terminal_state.
15399 (copy_terminal_info): Copy the inferior's terminal state.
15400 (_initialize_inflow): Remove reference to terminal_is_ours.
15401 * inflow.h (inferior_process_group): Delete.
15402 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
15403 * procfs.c (procfs_target): Don't install procfs_interrupt.
15404 (procfs_interrupt): Delete.
15405 * remote.c (remote_serial_quit_handler): Adjust.
15406 (remote_interrupt): Remove ptid parameter. Adjust.
15407 * target-delegates.c: Regenerate.
15408 * target.c: Include "terminal.h".
15409 (target_terminal::terminal_state): Rename to ...
15410 (target_terminal::m_terminal_state): ... this.
15411 (target_terminal::init): Adjust.
15412 (target_terminal::inferior): Adjust to per-inferior
15413 terminal_state.
15414 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
15415 (target_terminal::ours, target_terminal::ours_for_output): Use
15416 target_terminal_is_ours_kind.
15417 (target_interrupt): Remove ptid parameter. Adjust.
15418 (default_target_pass_ctrlc): Adjust.
15419 * target.h (target_ops::to_terminal_save_inferior): New field.
15420 (target_ops::to_interrupt): Remove ptid_t parameter.
15421 (target_interrupt): Remove ptid_t parameter. Update comment.
15422 (target_pass_ctrlc): Update comment.
15423 * target/target.h (target_terminal_state): New scoped enum,
15424 factored out of ...
15425 (target_terminal::terminal_state): ... here.
15426 (target_terminal::inferior): Update comments.
15427 (target_terminal::restore_inferior): New.
15428 (target_terminal::is_inferior, target_terminal::is_ours)
15429 (target_terminal::is_ours_for_output): Adjust.
15430 (target_terminal::scoped_restore_terminal_state): Adjust to
15431 rename, and call restore_inferior() instead of inferior().
15432 (target_terminal::scoped_restore_terminal_state::m_state): Change
15433 type.
15434 (target_terminal::terminal_state): Rename to ...
15435 (target_terminal::m_terminal_state): ... this and change type.
15436
9c3a5d93
PA
154372018-01-30 Pedro Alves <palves@redhat.com>
15438
15439 * linux-nat.c (wait_for_signal): New function.
15440 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
15441 directly.
15442 (async_terminal_is_ours)
15443 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
15444 (linux_nat_add_target): Don't override
15445 to_terminal_inferior/to_terminal_ours.
15446
69ab5edb
SDJ
154472018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
15448
15449 * remote.c (remote_follow_fork): Don't call "detach_inferior".
15450
fc8e7e75
SM
154512018-01-28 Simon Marchi <simon.marchi@ericsson.com>
15452
15453 * dwarf2read.c (free_dwo_files): Add forward-declaration.
15454 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
15455 dwarf2_per_objfile_free here.
15456 (dwarf2_per_objfile_free): Remove.
15457 (_initialize_dwarf2_read): Don't register
15458 dwarf2_per_objfile_free as a registry cleanup.
15459
b2a426e2
EZ
154602018-01-27 Eli Zaretskii <eliz@gnu.org>
15461
15462 Avoid compilation errors in MinGW native builds
15463
15464 The error is triggered by including python-internal.h, and the
15465 error message is:
15466
15467 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
15468 from build-gnulib/import/math.h:27,
15469 from d:/usr/Python26/include/pyport.h:235,
15470 from d:/usr/Python26/include/Python.h:58,
15471 from python/python-internal.h:94,
15472 from python/py-arch.c:24:
15473 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
15474 using ::hypot;
15475 ^~~~~
15476
15477 This happens because Python headers define 'hypot' to expand t
15478 '_hypot' in the Windows builds.
15479 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
15480 'hypoth'. This avoids a compilation error.
15481
0bdd8eac
AH
154822018-01-26 Alan Hayward <alan.hayward@arm.com>
15483
15484 * MAINTAINERS (Write After Approval): Fix ordering.
15485
56ae9dc3
AH
154862018-01-26 Alan Hayward <alan.hayward@arm.com>
15487
15488 * MAINTAINERS (Write After Approval): Add Alan Hayward.
15489
7433498b
AM
154902018-01-26 Alan Modra <amodra@gmail.com>
15491
15492 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
15493 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
15494 Remove nop. Make const. Comment.
15495 (powerpc32_plt_stub_so_2): New.
15496 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
15497 Correct count. Update uses.
15498 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
15499 Move common code reading PLT entry word. Correct
15500 powerpc32_plt_stub PLT address calculation.
15501 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
15502 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
15503 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
15504 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
15505 (ppc64_standard_linkage8): Likewise.
15506 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
15507 Correct insns description.
15508 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
15509
0f59d5fc
PA
155102018-01-24 Pedro Alves <palves@redhat.com>
15511
15512 GCC PR libstdc++/83906
15513 * gdbtypes.c (operator==(const dynamic_prop &,
15514 const dynamic_prop &)): New.
15515 (operator==(const range_bounds &, const range_bounds &)): New.
15516 (check_types_equal): Use them instead of memcmp.
15517 * gdbtypes.h (operator==(const dynamic_prop &,
15518 const dynamic_prop &)): Declare.
15519 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
15520 (operator==(const range_bounds &, const range_bounds &)): Declare.
15521 (operator!=(const range_bounds &, const range_bounds &)): Declare.
15522
ef8914a4
PR
155232018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15524
15525 * s390-linux-tdep.c (s390_record_address_mask)
15526 (s390_record_calc_disp_common, s390_record_calc_disp)
15527 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
15528 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
15529 (s390_process_record): Move to s390-tdep.c.
15530 (s390_linux_init_abi_any): Adjust.
15531 * s390-tdep.c (s390_record_address_mask)
15532 (s390_record_calc_disp_common, s390_record_calc_disp)
15533 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
15534 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
15535 (s390_process_record): Moved from s390-linux-tdep.c
15536 (s390_gdbarch_init): Adjust.
15537
d6e58945
PR
155382018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15539
15540 * s390-linux-nat.c (s390-tdep.h): New include.
15541 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
15542 (HFILES_NO_SRCDIR): Add s390-tdep.h.
15543 (ALLDEPFILES): Add s390-tdep.c.
15544 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
15545 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
15546 * s390-tdep.h: ...this. New file.
15547 * s390-linux-tdep.c (s390-tdep.h): New include.
15548 (_initialize_s390_tdep): Rename to...
15549 (_initialize_s390_linux_tdep): ...this and adjust.
15550 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
15551 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
15552 s390-tdep.h.
15553 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
15554 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
15555 (s390_is_partial_instruction, s390_software_single_step)
15556 (is_non_branch_ril, s390_displaced_step_copy_insn)
15557 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
15558 (s390_prologue_data, s390_addr, s390_store, s390_load)
15559 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
15560 (s390_register_call_saved, s390_guess_tracepoint_registers)
15561 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
15562 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
15563 (s390_pseudo_register_name, s390_pseudo_register_type)
15564 (s390_pseudo_register_read, s390_pseudo_register_write)
15565 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
15566 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
15567 (s390_addr_bits_remove, s390_address_class_type_flags)
15568 (s390_address_class_type_flags_to_name)
15569 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
15570 (s390_function_arg_float, s390_function_arg_vector)
15571 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
15572 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
15573 (s390_frame_align, s390_register_return_value, s390_return_value)
15574 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
15575 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
15576 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
15577 (s390_trad_frame_prev_register, s390_unwind_cache)
15578 (s390_prologue_frame_unwind_cache)
15579 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
15580 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
15581 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
15582 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
15583 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
15584 (s390_frame_base_address, s390_local_base_address)
15585 (s390_frame_base, s390_gcc_target_options)
15586 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
15587 (s390_validate_reg_range, s390_tdesc_valid)
15588 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
15589 * s390-tdep.c: ...this. New file.
15590
9c0b896e
PR
155912018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15592
15593 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
15594 (s390_process_record, s390_gdbarch_tdep_alloc)
15595 (s390_linux_init_abi_any): Use/set new hook.
15596
7042632b
PR
155972018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15598
15599 * s390-linux-tdep.c (osabi.h): New include.
15600 (s390_linux_init_abi_31, s390_linux_init_abi_64)
15601 (s390_linux_init_abi_any): New functions.
15602 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
15603
650f5e13
PR
156042018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15605
15606 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
15607 tdesc_has_registers check
15608
47c9317e
PR
156092018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15610
15611 * s390-linux-tdep.c (s390_tdesc_valid): New function.
15612 (s390_validate_reg_range): New macro.
15613 (s390_gdbarch_init): Adjust.
15614
095085d8
PR
156152018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15616
15617 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
15618 (s390_gdbarch_tdep_alloc): Adjust.
15619 (s390_gdbarch_init): Adjust.
15620
ab9bcc67
PR
156212018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15622
15623 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
15624 <have_tdb>: Change type to bool.
15625 (s390_gdbarch_tdep_alloc): Adjust.
15626 (s390_gdbarch_init): Adjust.
15627
21f6f5ff
PR
156282018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15629
15630 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
15631 (gdbarch_tdep) <have_upper, have_vx>: New fields.
15632 (s390_gdbarch_tdep_alloc): New function.
15633 (s390_gdbarch_init): Allocate tdep at start and use its fields
15634 instead of separate variables.
15635
0eb97953
PR
156362018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15637
15638 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
15639 when looking for cached gdbarch and add comment for remaining.
15640
5c319bb2
PA
156412018-01-22 Pedro Alves <palves@redhat.com>
15642 Sergio Durigan Junior <sergiodj@redhat.com>
15643
15644 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
15645 case.
15646
d65ce302
MR
156472018-01-22 Maciej W. Rozycki <macro@mips.com>
15648
15649 * MAINTAINERS: Update my company e-mail address.
15650
ec7a5fcb
YQ
156512018-01-22 Yao Qi <yao.qi@linaro.org>
15652
15653 * regcache.c (cooked_write_test): New function.
15654 (_initialize_regcache): Register the test.
15655
11f57cb6
YQ
156562018-01-22 Yao Qi <yao.qi@linaro.org>
15657
15658 * ia64-tdep.c (ia64_pseudo_register_read): Call
15659 regcache->cooked_read instead of regcache_cooked_read_unsigned.
15660 * m32c-tdep.c (m32c_cat_read): Likewise.
15661 (m32c_r3r2r1r0_read): Likewise.
15662 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
15663 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
15664
03f50fc8
YQ
156652018-01-22 Yao Qi <yao.qi@linaro.org>
15666
15667 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
15668 method raw_read instead of regcache_raw_read.
15669 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
15670 * arm-tdep.c (arm_neon_quad_read): Likewise.
15671 * avr-tdep.c (avr_pseudo_register_read): Likewise.
15672 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
15673 * frv-tdep.c (frv_pseudo_register_read): Likewise.
15674 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
15675 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
15676 (i386_pseudo_register_read_into_value): Likewise.
15677 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
15678 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
15679 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
15680 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
15681 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
15682 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
15683 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
15684 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
15685 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
15686
dc711524
YQ
156872018-01-22 Yao Qi <yao.qi@linaro.org>
15688
15689 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
15690 * configure.tgt: Remove target mt.
15691 * mt-tdep.c: Remove.
15692 * regcache.c (cooked_read_test): Remove the check for mt.
15693
3f5a868b
YQ
156942018-01-22 Yao Qi <yao.qi@linaro.org>
15695
15696 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
15697 instead of gdbarch_pseudo_register_read_value.
15698
de4cb04a
JB
156992018-01-22 Joel Brobecker <brobecker@adacore.com>
15700
15701 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
15702 language is Ada.
15703
a9e40818
JB
157042018-01-22 Joel Brobecker <brobecker@adacore.com>
15705
15706 * linespec.c (create_sals_line_offset): Remove code that preserved
15707 the symtab_and_line's line number.
15708
e707fc44
AB
157092018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15710
15711 * varobj.c (varobj_create): Don't set valid_block when creating a
15712 floating varobj.
15713
03d0bf7b
AB
157142018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15715
15716 * varobj.c (varobj_create): Remove out of date comment.
15717
ae451627
AB
157182018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15719
15720 PR mi/20395
15721 * ada-exp.y (write_var_from_sym): Pass extra parameter when
15722 updating innermost block.
15723 * parse.c (innermost_block_tracker::update): Take extra type
15724 parameter, and check types match before updating innermost block.
15725 (write_dollar_variable): Update innermost block for registers.
15726 * parser-defs.h (enum innermost_block_tracker_type): New enum.
15727 (innermost_block_tracker::innermost_block_tracker): Initialise
15728 m_types member.
15729 (innermost_block_tracker::reset): Take type parameter.
15730 (innermost_block_tracker::update): Take type parameter, and pass
15731 type through as needed.
15732 (innermost_block_tracker::m_types): New member.
15733 * varobj.c (varobj_create): Pass type when reseting innermost
15734 block.
15735
aee1fcdf
AB
157362018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15737
15738 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
15739 * ada-lang.c (resolve_subexp): Likewise.
15740 * breakpoint.c (set_breakpoint_condition) Likewise.
15741 (watch_command_1) Likewise.
15742 * c-exp.y (variable): Likewise.
15743 * d-exp.y (PrimaryExpression): Likewise.
15744 * f-exp.y (variable): Likewise.
15745 * go-exp.y (variable): Likewise.
15746 * m2-exp.y (variable): Likewise.
15747 * objfiles.c (objfile::~objfile): Likewise.
15748 * p-exp.y (variable): Likewise.
15749 * parse.c (innermost_block): Change type.
15750 * parser-defs.h (class innermost_block_tracker): New.
15751 (innermost_block): Change to innermost_block_tracker.
15752 * printcmd.c (display_command): Switch to innermost_block API.
15753 (do_one_display): Likewise.
15754 * rust-exp.y (do_one_display): Likewise.
15755 * symfile.c (clear_symtab_users): Likewise.
15756 * varobj.c (varobj_create): Switch to innermost_block API, replace
15757 use of innermost_block with block stored on varobj object.
15758
396af9a1
AB
157592018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15760
15761 * expression.h (innermost_block): Remove declaration.
15762 * varobj.c: Add 'parser-defs.h' include.
15763
fcfcc376
TT
157642018-01-19 Tom Tromey <tom@tromey.com>
15765
15766 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
15767 symbols in the static and global blocks.
15768
5a6c3296
JC
157692018-01-19 James Clarke <jrtc27@jrtc27.com>
15770
15771 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
15772 gdb_ptrace.h, and move including gdb_wait.h ...
15773 * nat/linux-ptrace.h: ... to here.
15774
bc09b0c1
SM
157752018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15776
15777 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
15778 inf_ptrace_detach_success.
15779 (inf_ptrace_detach_success): Add inferior parameter, use it
15780 instead of inferior_ptid, pass it to detach_inferior.
15781 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
15782 parameter.
15783 * inferior.c (detach_inferior): Add overload that takes an
15784 inferior object.
15785 * inferior.h (detach_inferior): Likewise.
15786 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
15787 use inferior_ptid, adjust call to inf_ptrace_detach_success.
15788 * linux-thread-db.c (thread_db_detach): Use inf parameter.
15789
6e1e1966
SM
157902018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15791
15792 * target.h (struct target_ops) <to_detach>: Add inferior
15793 parameter.
15794 (target_detach): Likewise.
15795 * target.c (dispose_inferior): Pass inferior down.
15796 (target_detach): Pass inferior down. Assert that it is equal to
15797 the current inferior.
15798 * aix-thread.c (aix_thread_detach): Pass inferior down.
15799 * corefile.c (core_file_command): Pass current_inferior() down.
15800 * corelow.c (core_detach): Add inferior parameter.
15801 * darwin-nat.c (darwin_detach): Likewise.
15802 * gnu-nat.c (gnu_detach): Likewise.
15803 * inf-ptrace.c (inf_ptrace_detach): Likewise.
15804 * infcmd.c (detach_command): Pass current_inferior() down to
15805 target_detach.
15806 * infrun.c (follow_fork_inferior): Pass parent_inf to
15807 target_detach.
15808 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
15809 target_detach.
15810 * linux-nat.c (linux_nat_detach): Add inferior parameter.
15811 * linux-thread-db.c (thread_db_detach): Likewise.
15812 * nto-procfs.c (procfs_detach): Likewise.
15813 * procfs.c (procfs_detach): Likewise.
15814 * record.c (record_detach): Likewise.
15815 * record.h (struct inferior): Forward-declare.
15816 (record_detach): Add inferior parameter.
15817 * remote-sim.c (gdbsim_detach): Likewise.
15818 * remote.c (remote_detach_1): Likewise.
15819 (remote_detach): Likewise.
15820 (extended_remote_detach): Likewise.
15821 * sol-thread.c (sol_thread_detach): Likewise.
15822 * target-debug.h (target_debug_print_inferior_p): New macro.
15823 * target-delegates.c: Re-generate.
15824 * top.c (kill_or_detach): Pass inferior down to target_detach.
15825 * windows-nat.c (windows_detach): Add inferior parameter.
15826
6bd6f3b6
SM
158272018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15828
15829 * target.h (struct target_ops) <to_detach>: Remove args
15830 parameter.
15831 (target_detach): Likewise.
15832 * target.c (dispose_inferior): Adjust.
15833 (target_detach): Remove args parameter, adjust.
15834 * aix-thread.c (aix_thread_detach): Adjust.
15835 * corefile.c (core_file_command): Adjust.
15836 * corelow.c (core_detach): Adjust.
15837 * darwin-nat.c (darwin_detach): Adjust.
15838 * gnu-nat.c (gnu_detach): Adjust.
15839 * inf-ptrace.c (inf_ptrace_detach): Adjust.
15840 * infcmd.c (detach_command): Adjust
15841 * infrun.c (follow_fork_inferior): Adjust.
15842 (handle_vfork_child_exec_or_exit): Adjust.
15843 * linux-fork.c (linux_fork_detach): Remove args parameter.
15844 * linux-fork.h (linux_fork_detach): Likewise.
15845 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
15846 * linux-thread-db.c (thread_db_detach): Likewise.
15847 * nto-procfs.c (procfs_detach): Likewise.
15848 * procfs.c (procfs_detach): Likewise.
15849 (do_detach): Remove signo parameter.
15850 * record.c (record_detach): Remove args parameter.
15851 * record.h (record_detach): Likewise.
15852 * remote-sim.c (gdbsim_detach): Likewise.
15853 * remote.c (remote_detach_1): Likewise.
15854 (remote_detach): Likewise.
15855 (extended_remote_detach): Likewise.
15856 * sol-thread.c (sol_thread_detach): Likewise.
15857 * target-delegates.c: Re-generate.
15858 * top.c (struct qt_args) <args>: Remove field.
15859 (kill_or_detach): Don't pass args.
15860 (quit_force): Don't set args.
15861 * windows-nat.c (windows_detach): Remove args parameter.
15862
88af8ea8
YQ
158632018-01-19 Yao Qi <yao.qi@linaro.org>
15864
15865 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
15866 (arm_linux_init_abi): Install it.
15867
dea445b9
YQ
158682018-01-19 Yao Qi <yao.qi@linaro.org>
15869
15870 * osabi.c (gdb_osabi_names): Extend the regexp for
15871 arm-linux-gnueabihf.
15872
4a17f768
YQ
158732018-01-18 Yao Qi <yao.qi@linaro.org>
15874
15875 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
15876 m_abbrevs.
15877 (abbrev_table::add_abbrev): Update.
15878 (abbrev_table::lookup_abbrev): Update.
15879
d679c21a
YQ
158802018-01-18 Yao Qi <yao.qi@linaro.org>
15881
15882 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
15883
7d937cad
SDJ
158842018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15885
15886 * compile/compile.c (compile_to_object): Convert "triplet_rx"
15887 to "std::string".
15888
9e14690d
TT
158892018-01-17 Tom Tromey <tom@tromey.com>
15890
15891 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
15892
50a82047
TT
158932018-01-17 Tom Tromey <tom@tromey.com>
15894
15895 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
15896 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
15897 (create_array_type_with_stride): Update.
15898 * dwarf2read.c (set_die_type): Update.
15899
c89b44cd
TT
159002018-01-17 Tom Tromey <tom@tromey.com>
15901
15902 * dwarf2read.c (delayed_method_info): Remove typedef.
15903 (dwarf2_cu::method_info): Now a std::vector.
15904 (add_to_method_list): Update.
15905 (free_delayed_list): Remove.
15906 (compute_delayed_physnames): Update.
15907 (process_full_comp_unit, process_full_type_unit): Clear the method
15908 list. Remove cleanups.
15909 (psymtab_include_file_name): Add name_holder parameter. Use
15910 unique_xmalloc_ptr.
15911 (dwarf_decode_lines): Update.
15912
fcd3b13d
SM
159132018-01-17 Tom Tromey <tom@tromey.com>
15914 Simon Marchi <simon.marchi@ericsson.com>
15915
15916 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
15917 (dwarf2_per_objfile::free_cached_comp_units)
15918 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15919 (init_cutu_and_read_dies_no_follow): Update.
15920 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
15921 (dwarf2_cu::~dwarf2_cu): New.
15922 (free_heap_comp_unit, free_stack_comp_unit): Remove.
15923 (age_cached_comp_units, free_one_cached_comp_unit): Update.
15924
685af9cd
TT
159252018-01-17 Tom Tromey <tom@tromey.com>
15926 Simon Marchi <simon.marchi@ericsson.com>
15927
15928 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
15929 (struct die_reader_specs) <abbrev_table>: New member.
15930 (struct abbrev_table): Add constructor.
15931 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
15932 <abbrev_obstack>: Now an auto_obstack.
15933 (abbrev_table_up): New typedef.
15934 (init_cu_die_reader): Add abbrev_table parameter.
15935 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
15936 Add result_dwo_abbrev_table.
15937 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15938 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
15939 Update.
15940 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
15941 parameter.
15942 (skip_children): Update.
15943 (abbrev_table::alloc_abbrev): Rename from
15944 abbrev_table_alloc_abbrev.
15945 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
15946 (abbrev_table::lookup_abbrev): Rename from
15947 abbrev_table_lookup_abbrev.
15948 (abbrev_table_read_table): Return abbrev_table_up.
15949 (abbrev_table_free, abbrev_table_free_cleanup)
15950 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
15951 (load_partial_dies): Update.
15952
5e2db402
TT
159532018-01-17 Tom Tromey <tom@tromey.com>
15954
15955 * dwarf2read.c (dwarf2_compute_name): Update comment.
15956 (read_func_scope, read_variable): Update.
15957 (new_symbol): Remove.
15958 (new_symbol_full): Rename to new_symbol.
15959
ee7f689e 159602018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
15961
15962 PR gdb/16577
15963 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
15964 a warning instead of throwing an error, set section size to 0 and return
15965 NULL.
15966 * gdb_bfd.h (gdb_bfd_map_section): Update description.
15967
4d9b86e1
SM
159682018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15969
15970 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
15971 std::string.
15972 (linux_ptrace_attach_fail_reason_string): Likewise.
15973 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
15974 Likewise.
15975 (linux_ptrace_attach_fail_reason_string): Likewise.
15976 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
15977
a7b2d0fb
SM
159782018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15979
15980 * linux-nat.c (linux_nat_attach): Remove xstrdup.
15981
f517c180
EA
159822018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
15983
15984 PR gdb/21559
15985 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
15986 checking for fs_base/gs_base fields in struct user_regs_struct.
15987 * configure: Regenerate.
15988
7045b1ca
YQ
159892018-01-17 Yao Qi <yao.qi@linaro.org>
15990
15991 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
15992 function.
15993 (aarch64_linux_init_abi): Install it to gdbarch hook
15994 gcc_target_options.
15995
db422fb2
PA
159962018-01-15 Pedro Alves <palves@redhat.com>
15997
15998 * common/signals-state-save-restore.c
15999 (save_original_signals_state): Fix typos.
16000
ba643918
SDJ
160012017-01-12 Tom Tromey <tom@tromey.com>
16002 Sergio Durigan Junior <sergiodj@redhat.com>
16003
16004 * Makefile.in (install-only): Install gdb-add-index.
16005
906b4aac
JB
160062018-01-12 John Baldwin <jhb@FreeBSD.org>
16007
16008 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
16009
bdf2a94a
AA
160102018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
16011
16012 * infrun.c (keep_going_pass_signal): Clear step-over info when
16013 insert_breakpoints fails.
16014
71d378ae
PA
160152018-01-11 Pedro Alves <palves@redhat.com>
16016
16017 PR gdb/22583
16018 * infrun.c (resume): Rename to ...
16019 (resume_1): ... this.
16020 (resume): Reimplement as wrapper around resume_1.
16021
3cada740
PA
160222018-01-11 Pedro Alves <palves@redhat.com>
16023
16024 PR remote/22597
16025 * remote.c (remote_parse_stop_reply): Default to the last-set
16026 general thread instead of to 'magic_null_ptid'.
16027
618daa93
PA
160282018-01-10 Pedro Alves <palves@redhat.com>
16029
16030 * language.h (language_get_symbol_name_matcher): Rename ...
16031 (get_symbol_name_matcher): ... this.
16032 * language.c (language_get_symbol_name_matcher): Ditto.
16033 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
16034 callers adjusted.
16035
c63d3e8d
PA
160362018-01-10 Pedro Alves <palves@redhat.com>
16037
16038 PR gdb/22670
16039 * dwarf2read.c
16040 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
16041 Adjust to use language_get_symbol_name_matcher instead of
16042 language_defn::la_get_symbol_name_matcher.
16043 * language.c (language_get_symbol_name_matcher): If in Ada mode
16044 and the lookup name is a verbatim match, return Ada's matcher.
16045 * language.h (language_get_symbol_name_matcher): Adjust comment.
16046 (ada_lookup_name_info::verbatim_p):: New method.
16047
d4c2a405
PA
160482018-01-10 Pedro Alves <palves@redhat.com>
16049
16050 PR gdb/22670
16051 * ada-lang.c (ada_collect_symbol_completion_matches): If the
16052 minsym's language is language_auto or language_cplus, pass down
16053 language_ada instead.
16054 * symtab.c (compare_symbol_name): Don't frob symbol language here.
16055
8825213e
PA
160562018-01-10 Pedro Alves <palves@redhat.com>
16057
16058 PR gdb/22670
16059 * minsyms.c (linkage_name_str): New function.
16060 (iterate_over_minimal_symbols): Use it.
16061
2d97a5d9
JB
160622018-01-09 John Baldwin <jhb@FreeBSD.org>
16063
16064 * NEWS: Document that 'info proc' now works on FreeBSD.
16065
92fce24d
JB
160662018-01-09 John Baldwin <jhb@FreeBSD.org>
16067
16068 * configure.ac: Check for kinfo_getfile in libutil.
16069 * configure: Regenerate.
16070 * config.in: Regenerate.
16071 * fbsd-nat.c: Include "fbsd-tdep.h".
16072 (fbsd_fetch_cmdline): New.
16073 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
16074 rather than calling error.
16075 (fbsd_info_proc): New.
16076 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
16077 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
16078 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
16079
262f62f5
JB
160802018-01-09 John Baldwin <jhb@FreeBSD.org>
16081
16082 * fbsd-nat.c (struct free_deleter): Remove.
16083 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
16084
b999e203
JB
160852018-01-09 John Baldwin <jhb@FreeBSD.org>
16086
16087 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
16088 NULL for an empty pathname.
16089
d2176225
JB
160902018-01-09 John Baldwin <jhb@FreeBSD.org>
16091
16092 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
16093 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
16094 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
16095 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
16096 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
16097 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
16098 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
16099 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
16100 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
16101 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
16102 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
16103 (fbsd_core_fetch_timeval, fbsd_print_sigset)
16104 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
16105 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
16106 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
16107
9c4ac400
ST
161082018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
16109
16110 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
16111 (gnu_xfer_auxv): New function.
16112 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
16113 TARGET_OBJECT_AUXV.
16114
1e5ded6c
YQ
161152018-01-08 Yao Qi <yao.qi@linaro.org>
16116 Simon Marchi <simon.marchi@ericsson.com>
16117
16118 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
16119 common/selftest.c.
16120 (COMMON_OBS): Remove selftest.o.
16121 * configure.ac: Append selftest-arch.c and common/selftest.c to
16122 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
16123 * configure: Re-generated.
16124 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
16125 GDB_SELF_TEST.
16126 (maintenance_info_selftests): Likewise.
16127
04bafb1e
XR
161282018-01-08 Xavier Roirand <roirand@adacore.com>
16129
16130 * ada-valprint.c (val_print_packed_array_elements): Use
16131 proper number of elements when printing an array indexed
16132 by an enumeration type.
16133
518817b3
SM
161342018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16135
16136 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
16137 (dw2_get_file_names_reader): Adjust.
16138 (lookup_dwo_signatured_type): Adjust.
16139 (lookup_dwp_signatured_type): Adjust.
16140 (lookup_signatured_type): Adjust.
16141 (create_type_unit_group): Adjust.
16142 (get_type_unit_group): Adjust.
16143 (process_psymtab_comp_unit_reader): Adjust.
16144 (build_type_psymtabs_reader): Adjust.
16145 (scan_partial_symbols): Adjust.
16146 (add_partial_symbol): Adjust.
16147 (add_partial_subprogram): Adjust.
16148 (peek_die_abbrev): Adjust.
16149 (fixup_go_packaging): Adjust.
16150 (process_imported_unit_die): Adjust.
16151 (dwarf2_compute_name): Adjust.
16152 (dwarf2_physname): Adjust.
16153 (read_import_statement): Adjust.
16154 (handle_DW_AT_stmt_list): Adjust.
16155 (read_file_scope): Adjust.
16156 (read_func_scope): Adjust.
16157 (read_lexical_block_scope): Adjust.
16158 (read_call_site_scope): Adjust.
16159 (read_variable): Adjust.
16160 (dwarf2_rnglists_process): Adjust.
16161 (dwarf2_ranges_process): Adjust.
16162 (dwarf2_ranges_read): Adjust.
16163 (dwarf2_get_pc_bounds): Adjust.
16164 (dwarf2_record_block_ranges): Adjust.
16165 (dwarf2_add_field): Adjust.
16166 (dwarf2_add_member_fn): Adjust.
16167 (read_structure_type): Adjust.
16168 (process_structure_scope): Adjust.
16169 (read_enumeration_type): Adjust.
16170 (read_array_type): Adjust.
16171 (mark_common_block_symbol_computed): Adjust.
16172 (read_common_block): Adjust.
16173 (read_namespace_type): Adjust.
16174 (read_namespace): Adjust.
16175 (read_module_type): Adjust.
16176 (read_tag_pointer_type): Adjust.
16177 (read_tag_ptr_to_member_type): Adjust.
16178 (read_tag_string_type): Adjust.
16179 (read_subroutine_type): Adjust.
16180 (read_typedef): Adjust.
16181 (read_base_type): Adjust.
16182 (attr_to_dynamic_prop): Adjust.
16183 (read_subrange_type): Adjust.
16184 (read_unspecified_type): Adjust.
16185 (dwarf2_read_abbrevs): Adjust.
16186 (load_partial_dies): Adjust.
16187 (read_partial_die): Adjust.
16188 (find_partial_die): Adjust.
16189 (guess_partial_die_structure_name): Adjust.
16190 (fixup_partial_die): Adjust.
16191 (read_attribute_value): Adjust.
16192 (read_addr_index): Adjust.
16193 (read_addr_index_from_leb128): Adjust.
16194 (read_str_index): Adjust.
16195 (dwarf2_string_attr): Adjust.
16196 (get_debug_line_section): Adjust.
16197 (dwarf_decode_line_header): Adjust.
16198 (lnp_state_machine::check_line_address): Adjust.
16199 (dwarf_decode_lines_1): Adjust.
16200 (dwarf_decode_lines): Adjust.
16201 (dwarf2_start_symtab): Adjust.
16202 (var_decode_location): Adjust.
16203 (new_symbol_full): Adjust.
16204 (dwarf2_const_value_data): Adjust.
16205 (dwarf2_const_value_attr): Adjust.
16206 (dwarf2_const_value): Adjust.
16207 (die_type): Adjust.
16208 (die_containing_type): Adjust.
16209 (build_error_marker_type): Adjust.
16210 (lookup_die_type): Adjust.
16211 (guess_full_die_structure_name): Adjust.
16212 (anonymous_struct_prefix): Adjust.
16213 (determine_prefix): Adjust.
16214 (dwarf2_name): Adjust.
16215 (follow_die_ref_or_sig): Adjust.
16216 (follow_die_offset): Adjust.
16217 (follow_die_ref): Adjust.
16218 (follow_die_sig_1): Adjust.
16219 (follow_die_sig): Adjust.
16220 (get_signatured_type): Adjust.
16221 (get_DW_AT_signature_type): Adjust.
16222 (decode_locdesc): Adjust.
16223 (dwarf_decode_macros): Adjust.
16224 (cu_debug_loc_section): Adjust.
16225 (fill_in_loclist_baton): Adjust.
16226 (dwarf2_symbol_mark_computed): Adjust.
16227 (init_one_comp_unit): Don't assign
16228 dwarf2_cu::dwarf2_per_objfile.
16229 (set_die_type): Adjust.
16230
ed2dc618
SM
162312018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16232
16233 * dwarf2read.c (struct mapped_debug_names): Add constructor.
16234 <dwarf2_per_objfile>: New field.
16235 (dwarf2_per_objfile): Remove global.
16236 (get_dwarf2_per_objfile): New function.
16237 (set_dwarf2_per_objfile): New function.
16238 (dwarf2_build_psymtabs_hard): Change objfile parameter to
16239 dwarf2_per_objfile.
16240 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
16241 (read_abbrev_offset): Likewise.
16242 (read_indirect_string): Likewise.
16243 (read_indirect_line_string): Likewise.
16244 (read_indirect_string_at_offset): Likewise.
16245 (read_indirect_string_from_dwz): Likewise.
16246 (dwarf2_find_containing_comp_unit): Change objfile parameter to
16247 dwarf2_per_objfile.
16248 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
16249 (create_all_comp_units): Change objfile parameter to
16250 dwarf2_per_objfile.
16251 (create_all_type_units): Likewise.
16252 (process_queue): Add dwarf2_per_objfile parameter.
16253 (read_and_check_comp_unit_head): Likewise.
16254 (lookup_dwo_unit_in_dwp): Likewise.
16255 (get_dwp_file): Likewise.
16256 (process_cu_includes): Likewise.
16257 (struct free_dwo_file_cleanup_data): New struct.
16258 (dwarf2_has_info): Use get_dwarf2_per_objfile and
16259 set_dwarf2_per_objfile.
16260 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
16261 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
16262 context, adjust calls.
16263 (dw2_instantiate_symtab): Likewise.
16264 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
16265 (dw2_get_cu): Likewise.
16266 (create_cu_from_index_list): Change objfile parameter to
16267 dwarf2_per_objfile.
16268 (create_cus_from_index_list): Get dwarf2_per_objfile from
16269 context, adjust calls.
16270 (create_cus_from_index): Likewise.
16271 (create_signatured_type_table_from_index): Change objfile
16272 parameter to dwarf2_per_objfile.
16273 (create_signatured_type_table_from_debug_names): Change objfile
16274 parameter to dwarf2_per_objfile.
16275 (create_addrmap_from_index): Likewise.
16276 (create_addrmap_from_aranges): Likewise.
16277 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
16278 (dw2_setup): Remove.
16279 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
16280 context.
16281 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
16282 get_dwarf2_per_objfile.
16283 (dw2_forget_cached_source_info): Likewise.
16284 (dw2_map_symtabs_matching_filename): Likewise.
16285 (struct dw2_symtab_iterator) <index>: Remove.
16286 <dwarf2_per_objfile>: New field.
16287 (dw2_symtab_iter_init): Replace index parameter with
16288 dwarf2_per_objfile.
16289 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
16290 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
16291 (dw2_print_stats): Likewise.
16292 (dw2_dump): Likewise.
16293 (dw2_expand_symtabs_for_function): Likewise.
16294 (dw2_expand_all_symtabs): Likewise.
16295 (dw2_expand_symtabs_with_fullname): Likewise.
16296 (dw2_expand_marked_cus): Replace index and objfile parameters
16297 with dwarf2_per_objfile.
16298 (dw_expand_symtabs_matching_file_matcher): Add
16299 dwarf2_per_objfile parameter and adjust calls.
16300 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
16301 adjust calls.
16302 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
16303 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
16304 adjust calls.
16305 (create_cus_from_debug_names_list): Replace objfile parameter
16306 with dwarf2_per_objfile and adjust calls.
16307 (create_cus_from_debug_names): Likewise.
16308 (dwarf2_read_debug_names): Likewise.
16309 (mapped_debug_names::namei_to_name): Adjust call.
16310 (dw2_debug_names_iterator::next): Likewise.
16311 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
16312 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
16313 (dw2_debug_names_dump): Likewise.
16314 (dw2_debug_names_expand_symtabs_for_function): Likewise.
16315 (dw2_debug_names_expand_symtabs_matching): Likewise.
16316 (dwarf2_initialize_objfile): Likewise.
16317 (dwarf2_build_psymtabs): Likewise.
16318 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
16319 this_cu.
16320 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
16321 (read_and_check_comp_unit_head): Likewise.
16322 (read_abbrev_offset): Likewise.
16323 (create_debug_type_hash_table): Likewise.
16324 (create_debug_types_hash_table): Likewise.
16325 (create_all_type_units): Replace objfile parameter with
16326 dwarf2_per_objfile.
16327 (add_type_unit): Add dwarf2_per_objfile parameter.
16328 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
16329 with dwarf2_per_objfile.
16330 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
16331 (lookup_dwp_signatured_type): Likewise.
16332 (lookup_signatured_type): Likewise.
16333 (read_cutu_die_from_dwo): Likewise.
16334 (init_tu_and_read_dwo_dies): Likewise.
16335 (init_cutu_and_read_dies): Likewise.
16336 (init_cutu_and_read_dies_no_follow): Likewise.
16337 (allocate_type_unit_groups_table): Add objfile parameter.
16338 (create_type_unit_group): Use dwarf2_per_objfile from cu.
16339 (get_type_unit_group): Likewise.
16340 (process_psymtab_comp_unit): Update call.
16341 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
16342 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
16343 (print_tu_stats): Likewise.
16344 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
16345 in void* parameter.
16346 (build_type_psymtabs): Change objfile parameter to
16347 dwarf2_per_objfile.
16348 (process_skeletonless_type_unit): Use dwarf2_per_objfile
16349 passed in void* parameter.
16350 (process_skeletonless_type_units): Change objfile parameter to
16351 dwarf2_per_objfile.
16352 (set_partial_user): Likewise.
16353 (dwarf2_build_psymtabs_hard): Likewise.
16354 (read_comp_units_from_section): Likewise.
16355 (create_all_comp_units): Likewise.
16356 (scan_partial_symbols): Update calls.
16357 (add_partial_symbol): Likewise.
16358 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
16359 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
16360 (process_queue): Add dwarf2_per_objfile parameter.
16361 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
16362 (compute_compunit_symtab_includes): Likewise.
16363 (process_cu_includes): Add dwarf2_per_objfile parameter.
16364 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
16365 (process_full_type_unit): Likewise.
16366 (process_imported_unit_die): Update call.
16367 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
16368 (read_file_scope): Likewise.
16369 (allocate_dwo_file_hash_table): Add objfile parameter.
16370 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
16371 (create_cus_hash_table): Likewise.
16372 (create_dwp_hash_table): Likewise.
16373 (create_dwo_unit_in_dwp_v1): Likewise.
16374 (create_dwp_v2_section): Likewise.
16375 (create_dwo_unit_in_dwp_v2): Likewise.
16376 (lookup_dwo_unit_in_dwp): Likewise.
16377 (try_open_dwop_file): Likewise.
16378 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
16379 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
16380 cleanup to include a reference to dwarf2_per_objfile.
16381 (open_dwp_file): Add dwarf2_per_objfile parameter.
16382 (open_and_init_dwp_file): Likewise.
16383 (get_dwp_file): Likewise.
16384 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
16385 (queue_and_load_all_dwo_tus): Update call.
16386 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
16387 data.
16388 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
16389 (dwarf2_ranges_process): Likewise.
16390 (dwarf2_get_pc_bounds): Likewise.
16391 (mark_common_block_symbol_computed): Likewise.
16392 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
16393 (dwarf2_read_abbrevs): Update call.
16394 (read_partial_die): Use dwarf2_per_objfile from cu.
16395 (find_partial_die): Likewise.
16396 (fixup_partial_die): Likewise.
16397 (read_attribute_value): Likewise.
16398 (read_indirect_string_at_offset_from): Add objfile parameter.
16399 (read_indirect_string_at_offset): Add dwarf2_per_objfile
16400 parameter.
16401 (read_indirect_string_from_dwz): Add objfile parameter.
16402 (read_indirect_string): Add objfile parameter.
16403 (read_addr_index_1): Add dwarf2_per_objfile parameter.
16404 (read_addr_index): Use dwarf2_per_objfile from cu.
16405 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
16406 call dw2_setup.
16407 (read_str_index): Use dwarf2_per_objfile from cu.
16408 (get_debug_line_section): Likewise.
16409 (read_formatted_entries): Add dwarf2_per_objfile parameter.
16410 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
16411 (new_symbol_full): Use dwarf2_per_objfile from cu.
16412 (build_error_marker_type): Likewise.
16413 (lookup_die_type): Likewise.
16414 (determine_prefix): Likewise.
16415 (follow_die_offset): Likewise.
16416 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
16417 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
16418 (dwarf2_fetch_die_type_sect_off): Likewise.
16419 (dwarf2_get_die_type): Likewise.
16420 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
16421 (get_signatured_type): Likewise.
16422 (get_DW_AT_signature_type): Likewise.
16423 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
16424 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
16425 (cu_debug_loc_section): Likewise.
16426 (fill_in_loclist_baton): Likewise.
16427 (dwarf2_symbol_mark_computed): Likewise.
16428 (dwarf2_find_containing_comp_unit): Change objfile parameter to
16429 dwarf2_per_objfile.
16430 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
16431 parameter.
16432 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
16433 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
16434 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
16435 (set_die_type): Use dwarf2_free_objfile from cu.
16436 (get_die_type_at_offset): Likewise.
16437 (dwarf2_per_objfile_free): Don't assign global variable.
16438 (debug_names) <constructor>: Add dwarf2_per_objfile
16439 parameter, update m_debugstrlookup construction.
16440 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
16441 parameter.
16442 <m_dwarf2_per_objfile>: New field.
16443 <lookup>: Use m_dwarf2_per_objfile.
16444 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
16445 (psyms_seen_size): Likewise.
16446 (write_gdbindex): Replace objfile parameter with
16447 dwarf2_per_objfile.
16448 (write_debug_names): Likewise.
16449 (write_psymtabs_to_index): Likewise.
16450 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
16451 calls.
16452
e3b94546
SM
164532018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16454
16455 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
16456 <dwarf2_per_objfile>: New field.
16457 (struct dwarf2_per_cu_data) <objfile>: Remove.
16458 <dwarf2_per_objfile>: New field.
16459 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
16460 of objfile.
16461 (create_signatured_type_table_from_index): Likewise.
16462 (create_debug_type_hash_table): Likewise.
16463 (fill_in_sig_entry_from_dwo_entry): Likewise.
16464 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
16465 (create_type_unit_group): Assign dwarf2_per_objfile instead of
16466 objfile.
16467 (create_partial_symtab): Access objfile through
16468 dwarf2_per_objfile.
16469 (process_psymtab_comp_unit_reader): Likewise.
16470 (read_comp_units_from_section): Likewise.
16471 (scan_partial_symbols): Likewise.
16472 (add_partial_symbol): Likewise.
16473 (add_partial_subprogram): Likewise.
16474 (peek_die_abbrev): Likewise.
16475 (fixup_go_packaging): Likewise.
16476 (process_full_comp_unit): Likewise.
16477 (process_full_type_unit): Likewise.
16478 (process_imported_unit_die): Likewise.
16479 (dwarf2_compute_name): Likewise.
16480 (dwarf2_physname): Likewise.
16481 (read_import_statement): Likewise.
16482 (create_cus_hash_table): Assign dwarf2_physname instead of
16483 objfile.
16484 (read_func_scope): Access objfile through dwarf2_per_objfile.
16485 (read_lexical_block_scope): Likewise.
16486 (read_call_site_scope): Likewise.
16487 (read_variable): Likewise.
16488 (dwarf2_rnglists_process): Likewise.
16489 (dwarf2_ranges_process): Likewise.
16490 (dwarf2_ranges_read): Likewise.
16491 (dwarf2_record_block_ranges): Likewise.
16492 (dwarf2_add_field): Likewise.
16493 (dwarf2_add_member_fn): Likewise.
16494 (read_structure_type): Likewise.
16495 (process_structure_scope): Likewise.
16496 (read_enumeration_type): Likewise.
16497 (read_array_type): Likewise.
16498 (read_common_block): Likewise.
16499 (read_namespace_type): Likewise.
16500 (read_namespace): Likewise.
16501 (read_module_type): Likewise.
16502 (read_tag_pointer_type): Likewise.
16503 (read_tag_ptr_to_member_type): Likewise.
16504 (read_tag_string_type): Likewise.
16505 (read_subroutine_type): Likewise.
16506 (read_typedef): Likewise.
16507 (read_base_type): Likewise.
16508 (attr_to_dynamic_prop): Likewise.
16509 (read_subrange_type): Likewise.
16510 (read_unspecified_type): Likewise.
16511 (load_partial_dies): Likewise.
16512 (read_partial_die): Likewise.
16513 (find_partial_die): Likewise.
16514 (guess_partial_die_structure_name): Likewise.
16515 (fixup_partial_die): Likewise.
16516 (read_attribute_value): Likewise.
16517 (read_addr_index_from_leb128): Likewise.
16518 (dwarf2_read_addr_index): Likewise.
16519 (dwarf2_string_attr): Likewise.
16520 (lnp_state_machine::check_line_address): Likewise.
16521 (dwarf_decode_lines_1): Likewise.
16522 (dwarf_decode_lines): Likewise.
16523 (dwarf2_start_symtab): Likewise.
16524 (var_decode_location): Likewise.
16525 (new_symbol_full): Likewise.
16526 (dwarf2_const_value_data): Likewise.
16527 (dwarf2_const_value_attr): Likewise.
16528 (dwarf2_const_value): Likewise.
16529 (die_type): Likewise.
16530 (die_containing_type): Likewise.
16531 (lookup_die_type): Likewise.
16532 (guess_full_die_structure_name): Likewise.
16533 (anonymous_struct_prefix): Likewise.
16534 (dwarf2_name): Likewise.
16535 (follow_die_ref_or_sig): Likewise.
16536 (follow_die_offset): Likewise.
16537 (follow_die_ref): Likewise.
16538 (dwarf2_fetch_die_loc_sect_off): Likewise.
16539 (dwarf2_fetch_constant_bytes): Likewise.
16540 (dwarf2_fetch_die_type_sect_off): Likewise.
16541 (dwarf2_get_die_type): Likewise.
16542 (follow_die_sig): Likewise.
16543 (decode_locdesc): Likewise.
16544 (dwarf2_per_cu_objfile): Likewise.
16545 (dwarf2_per_cu_text_offset): Likewise.
16546 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
16547 objfile.
16548 (set_die_type): Access objfile through
16549 dwarf2_per_objfile.
16550
b01ba14d
SM
165512018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16552
16553 * valprint.c (converted_character_d): Remove typedef.
16554 (DEF_VEC_O (converted_character_d)): Remove.
16555 (count_next_character): Use std::vector.
16556 (print_converted_chars_to_obstack): Likewise.
16557 (generic_printstr): Likewise.
16558
4d0fdd9b
SM
165592018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16560
16561 * xml-support.h (struct gdb_xml_value): Add constructor.
16562 <value>: Change type to unique_xmalloc_ptr.
16563 (gdb_xml_value_s): Remove typedef.
16564 (DEF_VEC_O (gdb_xml_value_s)): Remove.
16565 (gdb_xml_element_start_handler): Change parameter type to
16566 std::vector.
16567 (xml_find_attribute): Likewise.
16568 * xml-support.c (xml_find_attribute): Change parameter type to
16569 std::vector and adjust.
16570 (gdb_xml_values_cleanup): Remove.
16571 (gdb_xml_parser::start_element): Adjust to std::vector.
16572 (xinclude_start_include): Change paraeter type to std::vector
16573 and adjust.
16574 * btrace.c (check_xml_btrace_version): Likewise.
16575 (parse_xml_btrace_block): Likewise.
16576 (parse_xml_btrace_pt_config_cpu): Likewise.
16577 (parse_xml_btrace_pt): Likewise.
16578 (parse_xml_btrace_conf_bts): Likewise.
16579 (parse_xml_btrace_conf_pt): Likewise.
16580 * memory-map.c (memory_map_start_memory): Likewise.
16581 (memory_map_start_property): Likewise.
16582 * osdata.c (osdata_start_osdata): Likewise.
16583 (osdata_start_item): Likewise.
16584 (osdata_start_column): Likewise.
16585 * remote.c (start_thread): Likewise.
16586 * solib-aix.c (library_list_start_library): Likewise.
16587 (library_list_start_list): Likewise.
16588 * solib-svr4.c (library_list_start_library): Likewise.
16589 (svr4_library_list_start_list): Likewise.
16590 * solib-target.c (library_list_start_segment): Likewise.
16591 (library_list_start_section): Likewise.
16592 (library_list_start_library): Likewise.
16593 (library_list_start_list): Likewise.
16594 * tracepoint.c (traceframe_info_start_memory): Likewise.
16595 (traceframe_info_start_tvar): Likewise.
16596 * xml-syscall.c (syscall_start_syscall): Likewise.
16597 * xml-tdesc.c (tdesc_start_target): Likewise.
16598 (tdesc_start_feature): Likewise.
16599 (tdesc_start_reg): Likewise.
16600 (tdesc_start_union): Likewise.
16601 (tdesc_start_struct): Likewise.
16602 (tdesc_start_flags): Likewise.
16603 (tdesc_start_enum): Likewise.
16604 (tdesc_start_field): Likewise.
16605 (tdesc_start_enum_value): Likewise.
16606 (tdesc_start_vector): Likewise.
16607
f979c73f
SM
166082018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16609
16610 * extension.h (struct xmethod_worker) <clone>: Remove.
16611 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
16612 Remove.
16613 (python_xmethod_worker::clone): Remove.
16614 * valops.c (find_overload_match): Use std::move instead of
16615 clone.
16616
ba18742c
SM
166172018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16618
16619 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
16620 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
16621 <free_xmethod_worker_data>: Remove.
16622 <get_matching_xmethod_workers>: Chance VEC to std::vector.
16623 <get_xmethod_arg_types>: Remove.
16624 <get_xmethod_result_type>: Remove.
16625 <invoke_xmethod>: Remove.
16626 * extension.c (new_xmethod_worker): Remove.
16627 (clone_xmethod_worker): Remove.
16628 (get_matching_xmethod_workers): Return void, pass std::vector by
16629 pointer.
16630 (get_xmethod_arg_types): Rename to...
16631 (xmethod_worker::get_arg_types): ... this, and adjust.
16632 (get_xmethod_result_type): Rename to...
16633 (xmethod_worker::get_result_type): ... this, and adjust.
16634 (invoke_xmethod): Remove.
16635 (free_xmethod_worker): Remove.
16636 (free_xmethod_worker_vec): Remove.
16637 * extension.h (enum ext_lang_rc): Move here from
16638 extension-priv.h.
16639 (struct xmethod_worker): Add constructor and destructor.
16640 <data>: Remove.
16641 <value>: Remove.
16642 <invoke, clone, do_get_result_type, do_get_arg_types>: New
16643 virtual pure methods.
16644 <get_arg_types, get_result_type>: New methods.
16645 (xmethod_worker_ptr): Remove typedef.
16646 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
16647 (xmethod_worker_vec): Remove typedef.
16648 (xmethod_worker_up): New typedef.
16649 (invoke_xmethod): Remove.
16650 (clone_xmethod_worker): Remove.
16651 (free_xmethod_worker): Remove.
16652 (free_xmethod_worker_vec): Remove.
16653 (get_xmethod_arg_types): Remove.
16654 (get_xmethod_result_type): Remove.
16655 * valops.c (find_method_list): Use std::vector, don't use
16656 intermediate vector.
16657 (value_find_oload_method_list): Use std::vector.
16658 (find_overload_match): Use std::vector.
16659 (find_oload_champ): Use std::vector.
16660 * value.c (value_free): Use operator delete.
16661 (value_of_xmethod): Rename to...
16662 (value_from_xmethod): ... this. Don't assign
16663 xmethod_worker::value, take rvalue-reference.
16664 (result_type_of_xmethod): Adjust.
16665 (call_xmethod): Adjust.
16666 * value.h: Include extension.h.
16667 (struct xmethod_worker): Don't forward-declare.
16668 (value_of_xmethod): Rename to...
16669 (value_from_xmethod): ... this, take rvalue-reference.
16670 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
16671 (struct python_xmethod_worker): ... this, add constructor and
16672 destructor.
16673 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
16674 (gdbpy_free_xmethod_worker_data): Rename to...
16675 (python_xmethod_worker::~python_xmethod_worker): ... this and
16676 adjust.
16677 (gdbpy_clone_xmethod_worker_data): Rename to...
16678 (python_xmethod_worker::clone): ... this and adjust.
16679 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
16680 temporary vector.
16681 (gdbpy_get_xmethod_arg_types): Rename to...
16682 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
16683 (gdbpy_get_xmethod_result_type): Rename to...
16684 (python_xmethod_worker::do_get_result_type): ... this and
16685 adjust.
16686 (gdbpy_invoke_xmethod): Rename to...
16687 (python_xmethod_worker::invoke): ... this and adjust.
16688 (new_python_xmethod_worker): Rename to...
16689 (python_xmethod_worker::python_xmethod_worker): ... this and
16690 adjust.
16691 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
16692 Remove.
16693 (gdbpy_free_xmethod_worker_data): Remove.
16694 (gdbpy_get_matching_xmethod_workers): Use std::vector.
16695 (gdbpy_get_xmethod_arg_types): Remove.
16696 (gdbpy_get_xmethod_result_type): Remove.
16697 (gdbpy_invoke_xmethod): Remove.
16698 * python/python.c (python_extension_ops): Remove obsolete
16699 callbacks.
16700
e379cee6
PA
167012018-01-05 Pedro Alves <palves@redhat.com>
16702
16703 PR gdb/18653
16704 * common/signals-state-save-restore.c
16705 (save_original_signals_state): New parameter 'quiet'. Warn if we
16706 find a custom handler preinstalled, instead of internal erroring.
16707 But only warn if !quiet.
16708 * common/signals-state-save-restore.h
16709 (save_original_signals_state): New parameter 'quiet'.
16710 * main.c (captured_main_1): Move save_original_signals_state call
16711 after option handling, and pass QUIET.
16712
a655456c
PA
167132018-01-05 Pedro Alves <palves@redhat.com>
16714
16715 * spu-tdep.c (spu_catch_start): Pass
16716 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
16717
de63c46b
PA
167182018-01-05 Pedro Alves <palves@redhat.com>
16719
16720 PR gdb/22670
16721 * ada-lang.c (literal_symbol_name_matcher): New function.
16722 (ada_get_symbol_name_matcher): Use it for
16723 symbol_name_match_type::SEARCH_NAME.
16724 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
16725 it down instead of assuming symbol_name_match_type::FULL.
16726 * block.h (block_lookup_symbol): New parameter 'match_type'.
16727 * c-valprint.c (print_unpacked_pointer): Use
16728 lookup_symbol_search_name instead of lookup_symbol.
16729 * compile/compile-object-load.c (get_out_value_type): Pass down
16730 symbol_name_match_type::SEARCH_NAME.
16731 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
16732 symbol_name_match_type::FULL.
16733 * cp-support.c (cp_get_symbol_name_matcher): Handle
16734 symbol_name_match_type::SEARCH_NAME.
16735 * infrun.c (insert_exception_resume_breakpoint): Use
16736 lookup_symbol_search_name.
16737 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
16738 * psymtab.c (maintenance_check_psymtabs): Use
16739 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
16740 * stack.c (print_frame_args): Use lookup_symbol_search_name and
16741 SYMBOL_SEARCH_NAME.
16742 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
16743 if symbol_name_match_type::SEARCH_NAME.
16744 (lookup_symbol_in_language): Pass down
16745 symbol_name_match_type::FULL.
16746 (lookup_symbol_search_name): New.
16747 (lookup_language_this): Pass down
16748 symbol_name_match_type::SEARCH_NAME.
16749 (lookup_symbol_aux, lookup_local_symbol): New parameter
16750 'match_type'. Pass it down.
16751 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
16752 (lookup_symbol_search_name): New declaration.
16753 (lookup_symbol_in_block): New 'match_type' parameter.
16754
f98fc17b
PA
167552018-01-05 Pedro Alves <palves@redhat.com>
16756
16757 PR gdb/22670
16758 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
16759 ada_lookup_symbol.
16760 (ada_lookup_symbol): Reimplement in terms of
16761 ada_lookup_symbol_list, bits factored out from
16762 ada_lookup_encoded_symbol.
16763
342f8240
JB
167642018-01-05 Joel Brobecker <brobecker@adacore.com>
16765
16766 * ada-exp.y (write_object_renaming): When subscripting an array
16767 using a symbol as the index, pass the block in call to
16768 ada_lookup_encoded_symbol when looking that symbol up.
16769
7150d33c
JG
167702018-01-05 Jerome Guitton <guitton@adacore.com>
16771
16772 * ada-lang.c (ada_array_length): Use ada_index_type instead of
16773 TYPE_INDEX_TYPE.
16774
cc0e770c
JB
167752018-01-05 Joel Brobecker <brobecker@adacore.com>
16776
16777 * ada-lang.c (ada_to_fixed_value_create): Add handling of
16778 the case where VALUE_LVAL (val0) is not lval_memory.
16779
f79da888 167802018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
16781
16782 * ada-valprint.c (print_optional_low_bound): Handle
16783 character-indexed array printing like boolean-indexed array
16784 printing.
16785
cd385f94
JB
167862018-01-05 Joel Brobecker <brobecker@adacore.com>
16787
16788 * NEWS: Create a new section for the next release branch.
16789 Rename the section of the current branch, now that it has
16790 been cut.
16791
09aca949
JB
167922018-01-05 Joel Brobecker <brobecker@adacore.com>
16793
16794 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
16795 * version.in: Bump version to 8.1.50.DATE-git.
16796
9f757bf7
XR
167972018-01-03 Xavier Roirand <roirand@adacore.com>
16798
16799 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
16800 Add field.
16801 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
16802 Add field.
16803 (default_exception_support_info) <catch_handlers_sym>: Add field.
16804 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
16805 (ada_exception_name_addr_1): Add "catch handlers" handling.
16806 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
16807 Update all callers.
16808 (create_excep_cond_exprs) <ex>: Add parameter.
16809 (re_set_exception): Update create_excep_cond_exprs call.
16810 (print_it_exception, print_one_exception, print_mention_exception)
16811 (print_recreate_exception): Add "catch handler" handling.
16812 (allocate_location_catch_handlers, re_set_catch_handlers)
16813 (check_status_catch_handlers, print_it_catch_handlers)
16814 (print_one_catch_handlers, print_mention_catch_handlers)
16815 (print_recreate_catch_handlers): New function.
16816 (catch_handlers_breakpoint_ops): New variable.
16817 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
16818 Add parameter. Add "catch handler" handling.
16819 (ada_exception_sym_name, ada_exception_breakpoint_ops):
16820 Add "catch handler" handling.
16821 (ada_exception_catchpoint_cond_string): Add "catch handler"
16822 handling.
16823 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
16824 call.
16825 (catch_ada_handlers_command): New function.
16826 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
16827 operations structure.
16828 (_initialize_ada_language): Add "catch handlers" command entry.
16829 * NEWS: Document "catch handlers" feature.
16830
9fe561ab
JB
168312018-01-02 Joel Brobecker <brobecker@adacore.com>
16832
16833 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
16834 account when creating the array type of the slice.
16835 (ada_value_slice): Likewise.
16836
a405673c
JB
168372018-01-02 Joel Brobecker <brobecker@adacore.com>
16838
16839 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
16840 New enum value.
16841 (create_array_type_with_stride): Add byte_stride_prop parameter.
16842 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
16843 New parameter. Update all callers in this file.
16844 (array_type_has_dynamic_stride): New function.
16845 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
16846 of arrays with dynamic byte strides.
16847 * dwarf2read.c (read_array_type): Add support for dynamic
16848 DW_AT_byte_stride attributes.
16849
74a2f8ff
JB
168502018-01-02 Joel Brobecker <brobecker@adacore.com>
16851
16852 * dwarf2read.c (read_unspecified_type): Treat
16853 DW_TAG_enumeration_type DIEs from Ada units as stubs.
16854
e2882c85
JB
168552018-01-01 Joel Brobecker <brobecker@adacore.com>
16856
16857 Update copyright year range in all GDB files.
16858
5e70ee09 168592018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
1690bb24
JB
16860
16861 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
16862 and gdb/testsuite/gdb.base/step-line.c.
16863
0f0c98a8
JB
168642018-01-01 Joel Brobecker <brobecker@adacore.com>
16865
16866 * copyright.py (main): Dump the contents of
16867 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
16868 even if BY_HAND is empty.
16869
82e1e79a
JB
168702018-01-01 Joel Brobecker <brobecker@adacore.com>
16871
16872 * top.c (print_gdb_version): Update Copyright year in version
16873 message.
16874
053f54e5 168752018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 16876
053f54e5 16877 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 16878
053f54e5 16879For older changes see ChangeLog-2017.
c906108c
SS
16880\f
16881Local Variables:
16882mode: change-log
16883left-margin: 8
16884fill-column: 74
16885version-control: never
57da7796 16886coding: utf-8
c906108c 16887End:
This page took 3.109656 seconds and 4 git commands to generate.