Change get_syscalls_by_group to append to an existing vector of integers.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4794efbf
JB
12018-12-13 John Baldwin <jhb@FreeBSD.org>
2
3 * break-catch-syscall.c (catch_syscall_split_args): Pass 'result'
4 to get_syscalls_by_group.
5 * xml-syscall.c [!HAVE_LIBEXPAT] (get_syscalls_by_group): Return
6 false.
7 [HAVE_LIBEXPAT] (xml_list_syscalls_by_group): Append syscall
8 numbers to an existing vector of integers and return a bool.
9 (get_syscalls_by_group): Accept pointer to vector of integers
10 and change return type to bool.
11 * xml-syscall.h (get_syscalls_by_group): Likewise.
12
b7c8601a
JW
132018-12-13 Jim Wilson <jimw@sifive.com>
14
15 * riscv-tdep.c (riscv_print_one_register_info): For MSTATUS, add
16 comment for SD field, and correct xlen calculation. For MISA, add
17 comment for MXL field, add call to register_size, and correct base
18 calculation.
19
66ac1ae9
SH
202018-12-13 Stafford Horne <shorne@gmail.com>
21
22 * NEWS(New targets): Add or1k*-*-linux*.
23
c8749e58
PW
242018-12-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
25
26 * nat/linux-osdata.c (linux_xfer_osdata_info_os_types): Forward
27 declare on one line to fix ARI warning.
28
6bf78e29
AB
292018-12-12 Andrew Burgess <andrew.burgess@embecosm.com>
30
31 * infrun.c (infcall_suspend_state::infcall_suspend_state): New.
32 (infcall_suspend_state::registers): New.
33 (infcall_suspend_state::restore): New.
34 (infcall_suspend_state::thread_suspend): Rename to...
35 (infcall_suspend_state::m_thread_suspend): ...this.
36 (infcall_suspend_state::registers): Rename to...
37 (infcall_suspend_state::m_registers): ...this.
38 (infcall_suspend_state::siginfo_gdbarch): Rename to...
39 (infcall_suspend_state::m_siginfo_gdbarch): ...this.
40 (infcall_suspend_state::siginfo_data): Rename to...
41 (infcall_suspend_state::m_siginfo_data): ...this.
42 (save_infcall_suspend_state): Rewrite to use infcall_suspend_state
43 constructor.
44 (restore_infcall_suspend_state): Rewrite to use
45 infcall_suspend_state::restore method.
46 (get_infcall_suspend_state_regcache): Use
47 infcall_suspend_state::registers method.
48
4de3d8d0
AB
492018-12-12 Andrew Burgess <andrew.burgess@embecosm.com>
50
51 * riscv-tdep.c (riscv_call_arg_scalar_float): Unnamed (variadic)
52 arguments are passed in integer registers.
53 (riscv_call_arg_complex_float): Likewise.
54
750b258e
PW
552018-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
56
57 * nat/linux-osdata.c (common_getter): New function.
58 (struct osdata_type): Change getter to take_snapshot.
59 Add LONGEST len_avail and struct buffer buffer.
60 Change all elements in the initializer.
61 Add an element for the list of types.
62 (linux_xfer_osdata_info_os_types): New function.
63 (linux_common_xfer_osdata): Use common_getter for the list of types.
64 Replace getter call by common_getter.
65 (linux_xfer_osdata_cpus): Remove args READBUF, OFFSET, LEN.
66 Add arg BUFFER. Only keep the code that adds data in BUFFER.
67 (linux_xfer_osdata_fds): Likewise.
68 (linux_xfer_osdata_modules): Likewise.
69 (linux_xfer_osdata_msg): Likewise.
70 (linux_xfer_osdata_processes): Likewise.
71 (linux_xfer_osdata_processgroups): Likewise.
72 (linux_xfer_osdata_sem): Likewise.
73 (linux_xfer_osdata_shm): Likewise.
74 (linux_xfer_osdata_isockets): Likewise.
75 (linux_xfer_osdata_threads): Likewise.
76
9f375018 772018-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
326b0c12
PW
78
79 * nat/linux-osdata.c: Removed various trailing spaces.
80
69cb2952
AB
812018-12-10 Andrew Burgess <andrew.burgess@embecosm.com>
82
83 * riscv-tdep.c (riscv_register_name): Fix ARI warning by removing
84 leading whitespace before #include line.
85
2578ecb1
SM
862018-12-08 Simon Marchi <simon.marchi@ericsson.com>
87 Дилян Палаузов <dilyan.palauzov@aegee.org>
88
89 PR gdb/23950
90 * configure.ac: Search for tgetent in libtinfow.
91 * configure: Re-generate.
92
a2419b98
PW
932018-12-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
94
95 * linux-thread-db.c (struct thread_db_info): Add td_ta_delete_p.
96 (thread_db_err_str): Forward declare.
97 (delete_thread_db_info): Call td_ta_delete_p if available.
98 (try_thread_db_load_1): Acquire td_ta_delete address.
99 * nat/gdb_thread_db.h (td_ta_delete_ftype): Declare.
100
73e8dc90
PA
1012018-12-08 Pedro Alves <palves@redhat.com>
102
103 * source.c (forward_search_command): Rename to ...
104 (search_command_helper): ... this. Add 'forward' parameter.
105 Tweak to use a gdb::def_vector<char> instead of a xrealloc'ed
106 buffer. Handle backward searches too.
107 (forward_search_command, reverse_search_command): Reimplement by
108 calling search_command_helper.
109
d9c859da
AB
1102018-12-07 Andrew Burgess <andrew.burgess@embecosm.com>
111
112 * .dir-locals.el: Copy most of the settings from c-mode over to
113 c++-mode.
114
42e151bf
SH
1152018-12-08 Stafford Horne <shorne@gmail.com>
116
117 * Makefile.in (ALL_TARGET_OBS): Add or1k-linux-tdep.o.
118 * configure.tgt: Add or1k*-*-linux*.
119 * or1k-linux-tdep.c: New file.
120 * or1k-tdep.c (or1k_gdbarch_init): Call gdbarch_init_osabi.
121
8bebfcda
PA
1222018-12-07 Pedro Alves <palves@redhat.com>
123
124 * dwarf2read.c (get_gdb_index_contents_from_section): Use
125 gdb::make_array_view.
126
4a811000
PW
1272018-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
128
129 * language.c (_initialize_language): Fix leak by assigning
130 a static string to language. Same for range and case_sensitive,
131 even if no leak is detected for these variables.
132
2861ee4f
JB
1332018-12-05 John Baldwin <jhb@FreeBSD.org>
134
135 * configure: Re-generate.
136 * configure.ac: Use separate sed expressions to escape variables
137 in auto-load directories.
138
90af0679
AB
1392018-12-05 Andrew Burgess <andrew.burgess@embecosm.com>
140
141 * riscv-tdep.c (riscv_features_from_gdbarch_info): New function.
142 (riscv_find_default_target_description): Use new function to
143 extract feature from gdbarch_info.
144 (riscv_gdbarch_init): Add error checks for xlen and flen between
145 target description and bfd headers. Be smarter about when we
146 think the hardware floating point abi should be used.
147
754e3168
AH
1482018-12-05 Alan Hayward <alan.hayward@arm.com>
149
150 * nat/aarch64-linux-hw-point.c
151 (aarch64_linux_any_set_debug_regs_state): New function.
152 * nat/aarch64-linux-hw-point.h
153 (aarch64_linux_any_set_debug_regs_state): New declaration.
154 * nat/aarch64-linux.c (aarch64_linux_new_thread): Check if any
155 BPs or WPs are set.
156
93579f6f
JB
1572018-11-30 John Baldwin <jhb@FreeBSD.org>
158
159 * common/filestuff.c [HAVE_KINFO_GETFILE]: Include headers.
160 (fdwalk) [HAVE_KINFO_GETFILE]: Use kinfo_getfile.
161
4717cec4
SM
1622018-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
163 Simon Marchi <simon.marchi@ericsson.com>
164
165 * linespec.c (symtab_vector_up): Remove.
166 (symtabs_from_filename): Change return type to std::vector.
167 (collect_symtabs_from_filename): Likewise.
168 (create_sals_line_offset): Assign return value of
169 collect_symtabs_from_filename to *ls->file_symtabs.
170 (convert_explicit_location_to_linespec): Remove call to release.
171 (parse_linespec): Likewise.
172 (symtab_collector) <symtab_collector>: Remove initialization of
173 m_symtabs.
174 <release_symtabs>: Change return type to std::vector<symtab *>.
175 <operator ()>: Adjust.
176
f8eb6a9e
JB
1772018-11-30 John Baldwin <jhb@FreeBSD.org>
178
179 * fbsd-nat.c [__FreeBSD_version >= 700009] (USE_SIGINFO): Macro
180 defined.
181 (union sigval32, struct siginfo32, fbsd_siginfo_size)
182 (fbsd_convert_siginfo): Make conditional on USE_SIGINFO instead
183 of KERN_PROC_AUXV and PT_LWPINFO.
184 (fbsd_nat_target::xfer_partial): Define method unconditionally.
185 Make TARGET_OBJECT_SIGNAL_INFO conditional on USE_SIGINFO.
186 Make TARGET_OBJECT_AUXV conditional on KERN_PROC_AUXV.
187 Make TARGET_OBJECT_FREEBSD_VMMAP and
188 TARGET_OBJECT_FREEBSD_PS_STRINGS conditional on KERN_PROC_VMMAP
189 and KERN_PROC_PS_STRINGS.
190 * fbsd-nat.h: Include <sys/proc.h>.
191 (fbsd_nat_target::xfer_partial): Declare method unconditionally.
192
92528b67
AB
1932018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
194
195 * riscv-linux-nat.c: Add 'inferior.h' and 'target-descriptions.h'
196 header files.
197 (riscv_linux_nat_target::read_description): New method.
198
63449436
AB
1992018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
200
201 * arch/riscv.h (riscv_gdbarch_features::hash): New method.
202 * arch/riscv.c (struct riscv_gdbarch_features_hasher): New.
203 (riscv_tdesc_cache): New global.
204 (riscv_create_target_description): Look in the cache before
205 creating a new target description.
206
65a4b373
AB
2072018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
208
209 * arch/riscv.h (riscv_gdb_features::operator==): New.
210 (riscv_gdb_features::operator!=): New.
211 * riscv-tdep.c (riscv_gdbarch_init): Make use of the inequality
212 operator.
213
0ff80bf7
AB
2142018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
215
216 * arch/riscv.h (riscv_create_target_description): Make return type
217 const.
218 * arch/riscv.c (riscv_create_target_description): Likewise.
219 * riscv-tdep.c (riscv_find_default_target_description): Likewise.
220
81fbbaf9
SDJ
2212018-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
222 Keith Seitz <keiths@redhat.com>
223 Tom Tromey <tom@tromey.com>
224 Sergio Durigan Junior <sergiodj@redhat.com>
225
226 https://bugzilla.redhat.com/show_bug.cgi?id=1613614
227 * dwarf2read.c (dwarf2_find_containing_comp_unit): Add
228 'mid_cu->length' to '*cu_off' when checking if 'sect_off' is
229 inside the CU.
230
66b4deae
PA
2312018-11-30 Pedro Alves <palves@redhat.com>
232
233 * aix-thread.c (aix_thread_target) <aix_thread_target>: Delete.
234 <stratum>: New override.
235 * bfd-target.c (aix_thread_target) <aix_thread_target>: Delete.
236 <stratum>: New override.
237 * bsd-uthread.c (bsd_uthread_target) <bsd_uthread_target>: Delete.
238 <stratum>: New override.
239 * exec.c (exec_target) <exec_target>: Delete.
240 <stratum>: New override.
241 * gdbarch-selftests.c (register_to_value_test): Adjust to use the
242 stratum method instead of the to_stratum field.
243 * linux-thread-db.c (thread_db_target) <thread_db_target>: Delete.
244 <stratum>: New override.
245 (thread_db_target::thread_db_target): Delete.
246 * make-target-delegates (print_class): Don't print a ctor
247 declaration. Print a stratum method override declaration.
248 * process-stratum-target.h (process_stratum_target)
249 <process_stratum_target>: Delete.
250 <stratum>: New override.
251 * ravenscar-thread.c (ravenscar_thread_target)
252 <ravenscar_thread_target>: Delete.
253 <stratum>: New override.
254 * record-btrace.c (record_btrace_target)
255 <record_btrace_target>: Delete.
256 <stratum>: New override.
257 * record-full.c (record_full_base_target)
258 <record_full_base_target>: Delete.
259 <stratum>: New override.
260 * record.c (record_disconnect, record_detach)
261 (record_mourn_inferior, record_kill): Adjust to use the stratum
262 method instead of the to_stratum field.
263 * regcache.c (cooked_read_test, cooked_write_test): Likewise.
264 * sol-thread.c (sol_thread_target)
265 <sol_thread_target>: Delete.
266 <stratum>: New override.
267 * spu-multiarch.c (spu_multiarch_target)
268 <spu_multiarch_target>: Delete.
269 <stratum>: New override.
270 * target-delegates.c: Regenerate.
271 * target.c (target_stack::push, target_stack::unpush)
272 (pop_all_targets_above, pop_all_targets_at_and_above)
273 (info_target_command, target_require_runnable)
274 (target_stack::find_beneath): Adjust to use the stratum method
275 instead of the to_stratum field.
276 (dummy_target::dummy_target): Delete.
277 (dummy_target::stratum): New.
278 (debug_target::debug_target): Delete.
279 (debug_target::stratum): New.
280 (maintenance_print_target_stack): Adjust to use the stratum method
281 instead of the to_stratum field.
282 * target.h (struct target_ops) <stratum>: New method.
283 <to_stratum>: Delete.
284 <is_pushed>: Adjust to use the stratum method
285 instead of the to_stratum field.
286
f3d11a9a
PA
2872018-11-30 Pedro Alves <palves@redhat.com>
288
289 * corelow.c (core_target) <has_all_memory, has_execution>: New
290 overrides.
291 * inf-child.c (inf_child_target::has_all_memory)
292 (inf_child_target::has_memory, inf_child_target::has_stack)
293 (inf_child_target::has_registers)
294 (inf_child_target::has_execution): Delete.
295 * inf-child.h (inf_child_target) <has_all_memory, has_memory,
296 has_stack, has_registers, has_execution>: Delete.
297 * process-stratum-target.c
298 (process_stratum_target::has_all_memory)
299 (process_stratum_target::has_memory)
300 (process_stratum_target::has_stack)
301 (process_stratum_target::has_registers)
302 (process_stratum_target::has_execution): New.
303 * process-stratum-target.h (process_stratum_target)
304 <has_all_memory, has_memory, has_stack, has_registers,
305 has_execution>: New method overrides.
306 * ravenscar-thread.c (ravenscar_thread_target) <has_all_memory,
307 has_memory, has_stack, has_registers, has_execution>: Delete.
308 * remote-sim.c (gdbsim_target) <has_stack, has_registers,
309 has_execution>: Delete.
310 * remote.c (remote_target) <has_all_memory, has_memory, has_stack,
311 has_registers, has_execution>: Delete.
312 * target.c (default_child_has_all_memory)
313 (default_child_has_memory, default_child_has_stack)
314 (default_child_has_registers, default_child_has_execution):
315 Delete.
316 * target.h (default_child_has_all_memory)
317 (default_child_has_memory, default_child_has_stack)
318 (default_child_has_registers, default_child_has_execution):
319 Delete.
320 * tracefile.h (tracefile_target) <has_execution>: New override.
321
3b3dac9b
PA
3222018-11-30 Pedro Alves <palves@redhat.com>
323
324 * Makefile.in (COMMON_SFILES): Add process-stratum-target.c.
325 * bsd-kvm.c: Include "process-stratum-target.h".
326 (bsd_kvm_target): Now inherits from process_stratum_target.
327 (bsd_kvm_target::bsd_kvm_target): Default it.
328 * corelow.c: Include "process-stratum-target.h".
329 (core_target): Now inherits from process_stratum_target.
330 (core_target::core_target): Don't set to_stratum here.
331 * inf-child.c (inf_child_target::inf_child_target): Delete.
332 * inf-child.h: Include "process-stratum-target.h".
333 (inf_child_target): Inherit from process_stratum_target.
334 (inf_child_target) <inf_child_target>: Default it.
335 <can_async_p, supports_non_stop, supports_disable_randomization>:
336 Delete overrides.
337 * process-stratum-target.c: New file.
338 * process-stratum-target.h: New file.
339 * remote-sim.c: Include "process-stratum-target.h".
340 (gdbsim_target): Inherit from process_stratum_target.
341 <gdbsim_target>: Default it.
342 * remote.c: Include "process-stratum-target.h".
343 (remote_target): Inherit from process_stratum_target.
344 <remote_target>: Default it.
345 * target.c (default_thread_address_space)
346 (default_thread_architecture): Delete.
347 * target.h (target_ops) <thread_architecture>: Now returns NULL by
348 default.
349 <thread_address_space>: Ditto.
350 * test-target.h: Include "process-stratum-target.h" instead of
351 "target.h".
352 (test_target_ops): Inherit from process_stratum_target.
353 <test_target_ops>: Default it.
354 * tracefile.c (tracefile_target::tracefile_target): Delete.
355 * tracefile.h: Include "process-stratum-target.h".
356 (tracefile_target): Inherit from process_stratum_target.
357 <tracefile_target>: Default it.
358 * target-delegates.c: Regenerate.
359
c180496d
PA
3602018-11-30 Pedro Alves <palves@redhat.com>
361
362 * Makefile.in (COMMON_SFILES): Add test-target.c.
363 * gdbarch-selftests.c: Include "test-target.h".
364 * regcache.c: Include "test-target.h".
365 * target.c (test_target_info, test_target_ops::info): Move to ...
366 * test-target.c: ... this new file.
367 * target.h (test_target_ops): Move to ...
368 * test-target.h: ... this new file.
369
95b1f9ac
PW
3702018-11-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
371
372 * source.c (forward_search_command): Fix leak by using
373 xrealloc even for the first allocation in the loop, as buf
374 is static.
375
e61667ef
RS
3762018-11-29 Rajendra SY <rajendra.sy@gmail.com>
377
378 PR gdb/23093
379 * gdb/fbsd-tdep.c (fbsd_gdb_signal_from_target)
380 (fbsd_gdb_signal_to_target): New.
381 (fbsd_init_abi): Install gdbarch "signal_from_target" and
382 "signal_to_target" methods.
383
3d5500e9
TT
3842018-11-29 Tom Tromey <tom@tromey.com>
385
386 * valarith.c (value_x_unop): Don't set argvec[3].
387
ed2df75c
SM
3882018-11-26 Simon Marchi <simon.marchi@ericsson.com>
389
390 PR gdb/23917
391 * sparc-linux-nat.c (sparc_linux_nat_target): Remove extraneous
392 semicolon.
393
24bce9bb
PA
3942018-11-26 Pedro Alves <palves@redhat.com>
395
396 * procfs.c (procfs_notice_thread): Replace uses of
397 in_thread_list/is_exited with find_thread_ptid/THREAD_EXITED.
398 * sol-thread.c (sol_thread_target::wait)
399 (sol_update_thread_list_callback): Likewise.
400
b5b12e1d
TT
4012018-11-25 Tom Tromey <tom@tromey.com>
402
403 * ui-out.c (ui_out::field_fmt): Remove comment.
404 * tui/tui-out.c (tui_ui_out::do_field_fmt): Remove comment.
405 * mi/mi-out.c (mi_ui_out::do_field_fmt): Remove comment.
406
54460946
PW
4072018-11-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
408
409 * source.c (open_source_file): Leak fixed in '8e6a5953e1d Fix 4K
410 leak in open_source_file' has been partially undone by '2179fbc36d23
411 Return scoped_fd from open_source_file'. Re-add the transfer of
412 current s->fullname to the unique_xmalloc_ptr fullname given
413 to find_and_open_source.
414
6af05e64
PA
4152018-11-23 Pedro Alves <palves@redhat.com>
416
417 * gdbthread.h (enum thread_state): Move comments here.
418 (is_running, is_stopped, is_exited): Remove declarations.
419
08036331
PA
4202018-11-22 Pedro Alves <palves@redhat.com>
421
422 * Makefile.in (COMMON_SFILES): Add thread-iter.c.
423 * breakpoint.c (breakpoints_should_be_inserted_now): Replace
424 ALL_NON_EXITED_THREADS with all_non_exited_threads.
425 (print_one_breakpoint_location): Replace ALL_INFERIORS with
426 all_inferiors.
427 * bsd-kvm.c: Include inferior.h.
428 * btrace.c (btrace_free_objfile): Replace ALL_NON_EXITED_THREADS
429 with all_non_exited_threads.
430 * common/filtered-iterator.h: New.
431 * common/safe-iterator.h: New.
432 * corelow.c (core_target_open): Don't call init_thread_list here.
433 * darwin-nat.c (thread_info_from_private_thread_info): Replace
434 ALL_THREADS with all_threads.
435 * fbsd-nat.c (fbsd_nat_target::resume): Replace
436 ALL_NON_EXITED_THREADS with inf->non_exited_threads.
437 * fbsd-tdep.c (fbsd_make_corefile_notes): Replace
438 ALL_NON_EXITED_THREADS with inf->non_exited_threads.
439 * fork-child.c (postfork_hook): Don't call init_thread_list here.
440 * gdbarch-selftests.c (register_to_value_test): Adjust.
441 * gdbthread.h: Don't include "inferior.h" here.
442 (struct inferior): Forward declare.
443 (enum step_over_calls_kind): Moved here from inferior.h.
444 (thread_info::deletable): Definition moved to thread.c.
445 (find_thread_ptid (inferior *, ptid_t)): Declare.
446 (ALL_THREADS, ALL_THREADS_BY_INFERIOR, ALL_THREADS_SAFE): Delete.
447 Include "thread-iter.h".
448 (all_threads, all_non_exited_threads, all_threads_safe): New.
449 (any_thread_p): Declare.
450 (thread_list): Delete.
451 * infcmd.c (signal_command): Replace ALL_NON_EXITED_THREADS with
452 all_non_exited_threads.
453 (proceed_after_attach_callback): Delete.
454 (proceed_after_attach): Take an inferior pointer instead of an
455 integer PID. Adjust to use range-for.
456 (attach_post_wait): Pass down inferior pointer instead of pid.
457 Use range-for instead of ALL_NON_EXITED_THREADS.
458 (detach_command): Remove init_thread_list call.
459 * inferior-iter.h: New.
460 * inferior.c (struct delete_thread_of_inferior_arg): Delete.
461 (delete_thread_of_inferior): Delete.
462 (delete_inferior, exit_inferior_1): Use range-for with
463 inf->threads_safe() instead of iterate_over_threads.
464 (inferior_appeared): Call init_thread_list here.
465 (discard_all_inferiors): Use all_non_exited_inferiors.
466 (find_inferior_id, find_inferior_pid): Use all_inferiors.
467 (iterate_over_inferiors): Use all_inferiors_safe.
468 (have_inferiors, number_of_live_inferiors): Use
469 all_non_exited_inferiors.
470 (number_of_inferiors): Use all_inferiors and std::distance.
471 (print_inferior): Use all_inferiors.
472 * inferior.h: Include gdbthread.h.
473 (enum step_over_calls_kind): Moved to gdbthread.h.
474 (struct inferior) <thread_list>: New field.
475 <threads, non_exited_threads, threads_safe>: New methods.
476 (ALL_INFERIORS): Delete.
477 Include "inferior-iter.h".
478 (ALL_NON_EXITED_INFERIORS): Delete.
479 (all_inferiors_safe, all_inferiors, all_non_exited_inferiors): New
480 functions.
481 * inflow.c (child_interrupt, child_pass_ctrlc): Replace
482 ALL_NON_EXITED_THREADS with all_non_exited_threads.
483 * infrun.c (follow_exec): Use all_threads_safe.
484 (clear_proceed_status, proceed): Use all_non_exited_threads.
485 (init_wait_for_inferior): Don't clear inline frame state here.
486 (infrun_thread_stop_requested, for_each_just_stopped_thread): Use
487 all_threads instead of ALL_NON_EXITED_THREADS.
488 (random_pending_event_thread): Use all_non_exited_threads instead
489 of ALL_NON_EXITED_THREADS. Use a lambda for repeated code.
490 (clean_up_just_stopped_threads_fsms): Use all_non_exited_threads
491 instead of ALL_NON_EXITED_THREADS.
492 (handle_no_resumed): Use all_non_exited_threads instead of
493 ALL_NON_EXITED_THREADS. Use all_inferiors instead of
494 ALL_INFERIORS.
495 (restart_threads, switch_back_to_stepped_thread): Use
496 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
497 * linux-nat.c (check_zombie_leaders): Replace ALL_INFERIORS with
498 all_inferiors.
499 (kill_unfollowed_fork_children): Use inf->non_exited_threads
500 instead of ALL_NON_EXITED_THREADS.
501 * linux-tdep.c (linux_make_corefile_notes): Use
502 inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
503 * linux-thread-db.c (thread_db_target::update_thread_list):
504 Replace ALL_INFERIORS with all_inferiors.
505 (thread_db_target::thread_handle_to_thread_info): Use
506 inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
507 * mi/mi-interp.c (multiple_inferiors_p): New.
508 (mi_on_resume_1): Simplify using all_non_exited_threads and
509 multiple_inferiors_p.
510 * mi/mi-main.c (mi_cmd_thread_list_ids): Use all_non_exited_threads
511 instead of ALL_NON_EXITED_THREADS.
512 * nto-procfs.c (nto_procfs_target::open): Don't call
513 init_thread_list here.
514 * record-btrace.c (record_btrace_target_open)
515 (record_btrace_target::stop_recording)
516 (record_btrace_target::close)
517 (record_btrace_target::record_is_replaying)
518 (record_btrace_target::resume, record_btrace_target::wait)
519 (record_btrace_target::record_stop_replaying): Use
520 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
521 * record-full.c (record_full_wait_1): Use all_non_exited_threads
522 instead of ALL_NON_EXITED_THREADS.
523 * regcache.c (cooked_read_test): Remove reference to global
524 thread_list.
525 * remote-sim.c (gdbsim_target::create_inferior): Don't call
526 init_thread_list here.
527 * remote.c (remote_target::update_thread_list): Use
528 all_threads_safe instead of ALL_NON_EXITED_THREADS.
529 (remote_target::process_initial_stop_replies): Replace
530 ALL_INFERIORS with all_non_exited_inferiors and use
531 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
532 (remote_target::open_1): Don't call init_thread_list here.
533 (remote_target::append_pending_thread_resumptions)
534 (remote_target::remote_resume_with_hc): Use all_non_exited_threads
535 instead of ALL_NON_EXITED_THREADS.
536 (remote_target::commit_resume)
537 (remote_target::remove_new_fork_children): Replace ALL_INFERIORS
538 with all_non_exited_inferiors and use all_non_exited_threads
539 instead of ALL_NON_EXITED_THREADS.
540 (remote_target::kill_new_fork_children): Use
541 all_non_exited_threads instead of ALL_NON_EXITED_THREADS. Remove
542 init_thread_list and init_wait_for_inferior calls.
543 (remote_target::remote_btrace_maybe_reopen)
544 (remote_target::thread_handle_to_thread_info): Use
545 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
546 * target.c (target_terminal::restore_inferior)
547 (target_terminal_is_ours_kind): Replace ALL_INFERIORS with
548 all_non_exited_inferiors.
549 * thread-iter.c: New file.
550 * thread-iter.h: New file.
551 * thread.c: Include "inline-frame.h".
552 (thread_list): Delete.
553 (clear_thread_inferior_resources): Call clear_inline_frame_state.
554 (init_thread_list): Use all_threads_safe instead of
555 ALL_THREADS_SAFE. Adjust to per-inferior thread lists.
556 (new_thread): Adjust to per-inferior thread lists.
557 (add_thread_silent): Pass inferior to find_thread_ptid.
558 (thread_info::deletable): New, moved from the header.
559 (delete_thread_1): Adjust to per-inferior thread lists.
560 (find_thread_global_id): Use inf->threads().
561 (find_thread_ptid): Use find_inferior_ptid and pass inferior to
562 find_thread_ptid.
563 (find_thread_ptid(inferior*, ptid_t)): New overload.
564 (iterate_over_threads): Use all_threads_safe.
565 (any_thread_p): New.
566 (thread_count): Use all_threads and std::distance.
567 (live_threads_count): Use all_non_exited_threads and
568 std::distance.
569 (valid_global_thread_id): Use all_threads.
570 (in_thread_list): Use find_thread_ptid.
571 (first_thread_of_inferior): Adjust to per-inferior thread lists.
572 (any_thread_of_inferior, any_live_thread_of_inferior): Use
573 inf->non_exited_threads().
574 (prune_threads, delete_exited_threads): Use all_threads_safe.
575 (thread_change_ptid): Pass inferior pointer to find_thread_ptid.
576 (set_resumed, set_running): Use all_non_exited_threads.
577 (is_thread_state, is_stopped, is_exited, is_running)
578 (is_executing): Delete.
579 (set_executing, set_stop_requested, finish_thread_state): Use
580 all_non_exited_threads.
581 (print_thread_info_1): Use all_inferiors and all_threads.
582 (thread_apply_all_command): Use all_non_exited_threads.
583 (thread_find_command): Use all_threads.
584 (update_threads_executing): Use all_non_exited_threads.
585 * tid-parse.c (parse_thread_id): Use inf->threads.
586 * x86-bsd-nat.c (x86bsd_dr_set): Use inf->non_exited_threads ().
587
c4c17fb0
PA
5882018-11-22 Pedro Alves <palves@redhat.com>
589
590 * infrun.c (follow_exec) <set follow-exec new>: Add thread and
591 switch to it before calling into try_open_exec_file.
592
151bb4a5
PA
5932018-11-22 Pedro Alves <palves@redhat.com>
594
595 * cli/cli-interp.c (cli_on_user_selected_context_changed): Use
596 inferior_thread instead of find_thread_ptid, and only when
597 inferior_ptid is not null_ptid.
598 * inferior.c (add_inferior): Don't include target_pid_to_str
599 output when the inferior is not started.
600 * python/py-inferior.c (python_on_normal_stop): Don't use
601 find_thread_ptid.
602 (tui_on_user_selected_context_changed): Use inferior_thread
603 instead of find_thread_ptid, and only when inferior_ptid is not
604 null_ptid.
605
1c97054b
BF
6062018-11-21 Benno Fünfstück <benno.fuenfstueck@gmail.com>
607
608 PR python/23714
609 * gdb/python/python.c (execute_gdb_command): Call
610 prevent_dont_repeat earlier to avoid affecting dont_repeat.
611
b5ffee31
AB
6122018-11-21 Andrew Burgess <andrew.burgess@embecosm.com>
613
614 * Makefile.in (ALL_TARGET_OBS): Add arch/riscv.o.
615 (HFILES_NO_SRCDIR): Add arch/riscv.h.
616 * arch/riscv.c: New file.
617 * arch/riscv.h: New file.
618 * configure.tgt: Add cpu_obs list of riscv, move riscv-tdep.o into
619 this list, and add arch/riscv.o.
620 * features/Makefile: Add riscv features.
621 * features/riscv/32bit-cpu.c: New file.
622 * features/riscv/32bit-cpu.xml: New file.
623 * features/riscv/32bit-csr.c: New file.
624 * features/riscv/32bit-csr.xml: New file.
625 * features/riscv/32bit-fpu.c: New file.
626 * features/riscv/32bit-fpu.xml: New file.
627 * features/riscv/64bit-cpu.c: New file.
628 * features/riscv/64bit-cpu.xml: New file.
629 * features/riscv/64bit-csr.c: New file.
630 * features/riscv/64bit-csr.xml: New file.
631 * features/riscv/64bit-fpu.c: New file.
632 * features/riscv/64bit-fpu.xml: New file.
633 * features/riscv/rebuild-csr-xml.sh: New file.
634 * riscv-tdep.c: Add 'arch/riscv.h' include.
635 (riscv_gdb_reg_names): Delete.
636 (csr_reggroup): New global.
637 (struct riscv_register_alias): Delete.
638 (struct riscv_register_feature): New structure.
639 (riscv_register_aliases): Delete.
640 (riscv_xreg_feature): New global.
641 (riscv_freg_feature): New global.
642 (riscv_virtual_feature): New global.
643 (riscv_csr_feature): New global.
644 (riscv_create_csr_aliases): New function.
645 (riscv_read_misa_reg): Delete.
646 (riscv_has_feature): Delete.
647 (riscv_isa_xlen): Simplify, just return cached xlen.
648 (riscv_isa_flen): Simplify, just return cached flen.
649 (riscv_has_fp_abi): Update for changes in struct gdbarch_tdep.
650 (riscv_register_name): Update to make use of tdesc_register_name.
651 Look up xreg and freg names in the new globals riscv_xreg_feature
652 and riscv_freg_feature. Don't supply csr aliases here.
653 (riscv_fpreg_q_type): Delete.
654 (riscv_register_type): Use tdesc_register_type in almost all
655 cases, override the returned type in a few specific cases only.
656 (riscv_print_one_register_info): Handle errors reading registers.
657 (riscv_register_reggroup_p): Use tdesc_register_in_reggroup_p for
658 registers that are otherwise unknown to GDB. Also check the
659 csr_reggroup.
660 (riscv_print_registers_info): Remove assert about upper register
661 number, and use gdbarch_register_reggroup_p instead of
662 short-cutting.
663 (riscv_find_default_target_description): New function.
664 (riscv_check_tdesc_feature): New function.
665 (riscv_add_reggroups): New function.
666 (riscv_setup_register_aliases): New function.
667 (riscv_init_reggroups): New function.
668 (_initialize_riscv_tdep): Add calls to setup CSR aliases, and
669 setup register groups. Register new riscv debug variable.
670 * riscv-tdep.h: Add 'arch/riscv.h' include.
671 (struct gdbarch_tdep): Remove abi union, and add
672 riscv_gdbarch_features field. Remove cached quad floating point
673 type, and provide initialisation for double type field.
674 * target-descriptions.c (maint_print_c_tdesc_cmd): Add riscv to
675 the list of targets using the feature based target descriptions.
676 * NEWS: Mention target description support.
677
38139a96
PA
6782018-11-21 Pedro Alves <palves@redhat.com>
679
680 * valops.c (find_method_list, value_find_oload_method_list)
681 (find_overload_match, find_oload_champ): Rename parameters and
682 locals.
683
85cca2bc
PA
6842018-11-21 Pedro Alves <palves@redhat.com>
685
686 * valops.c (find_method_list): Replace pointer and length
687 parameters with an gdb::array_view. Adjust.
688 (value_find_oload_method_list): Likewise.
689 (find_overload_match): Use gdb::array_view for methods list.
690 Adjust to find_oload_champ interface change.
691 (find_oload_champ): 'xm_worker_vec' parameter now a pointer/array.
692 'num_fns' parameter now a size_t. Eliminate 'fn_count' local.
693
82ceee50
PA
6942018-11-21 Pedro Alves <palves@redhat.com>
695
696 * gdbtypes.c (compare_badness): Change type of parameters to const
697 reference. Adjust to badness_vector being a std::vector now.
698 (rank_function): Adjust to badness_vector being a std::vector now.
699 * gdbtypes.h (badness_vector): Now a typedef to std::vector.
700 (LENGTH_MATCH): Delete.
701 (compare_badness): Change type of parameters to const reference.
702 (rank_function): Return a badness_vector by value now.
703 (find_overload_match): Adjust to badness_vector being a
704 std::vector now. Remove cleanups.
705 (find_oload_champ_namespace): 'oload_champ_bv' parameter now a
706 badness_vector pointer.
707 (find_oload_champ_namespace_loop): 'oload_champ_bv' parameter now
708 a badness_vector pointer. Adjust to badness_vector being a
709 std::vector now. Remove cleanups.
710 (find_oload_champ): 'oload_champ_bv' parameter now
711 a badness_vector pointer. Adjust to badness_vector being a
712 std::vector now. Remove cleanups.
713
0891c3cc
PA
7142018-11-21 Pedro Alves <palves@redhat.com>
715
716 * cp-support.c (sym_return_val_size, sym_return_val_index)
717 (sym_return_val): Delete.
718 (overload_list_add_symbol): Add std::vector parameter. Adjust to
719 add to the vector.
720 (make_symbol_overload_list): Adjust to return a std::vector
721 instead of maintaining a global open coded vector.
722 (make_symbol_overload_list_block): Add std::vector parameter.
723 (make_symbol_overload_list_block): Rename to ...
724 (add_symbol_overload_list_block): ... this and add std::vector
725 parameter.
726 (make_symbol_overload_list_namespace): Rename to ...
727 (add_symbol_overload_list_namespace): ... this and add std::vector
728 parameter.
729 (make_symbol_overload_list_adl_namespace): Rename to ...
730 (add_symbol_overload_list_adl_namespace): ... this and add
731 std::vector parameter.
732 (make_symbol_overload_list_adl): Delete.
733 (add_symbol_overload_list_adl): New.
734 (make_symbol_overload_list_using): Rename to ...
735 (add_symbol_overload_list_using): ... this and add std::vector
736 parameter.
737 (make_symbol_overload_list_qualified): Rename to ...
738 (add_symbol_overload_list_qualified): ... this and add std::vector
739 parameter.
740 * cp-support.h: Include "common/array-view.h" and <vector>.
741 (make_symbol_overload_list): Change return type to std::vector.
742 (make_symbol_overload_list_adl): Delete declaration.
743 (add_symbol_overload_list_adl): New declaration.
744 * valops.c (find_overload_match): Local 'oload_syms' now a
745 std::vector.
746 (find_oload_champ_namespace): 'oload_syms' parameter now a
747 std::vector pointer.
748 (find_oload_champ_namespace_loop): 'oload_syms' parameter now a
749 std::vector pointer. Adjust to new make_symbol_overload_list
750 interface.
751
6b1747cd
PA
7522018-11-21 Pedro Alves <palves@redhat.com>
753
754 * common/array-view.h (array_view::splice(size_type, size_t)): New.
755 (array_view::splice(size_type)): New.
756 * eval.c (eval_call, evaluate_funcall): Adjust to use array_view.
757 * extension.c (xmethod_worker::get_arg_types): Adjust to return an
758 std::vector.
759 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
760 * extension.h: Include "common/array-view.h".
761 (xmethod_worker::invoke): Adjust to use gdb::array_view.
762 (xmethod_worker::get_arg_types): Adjust to return an std::vector.
763 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
764 (xmethod_worker::do_get_arg_types): Adjust to use std::vector.
765 (xmethod_worker::do_get_result_type): Adjust to use
766 gdb::array_view.
767 * gdbtypes.c (rank_function): Adjust to use gdb::array_view.
768 * gdbtypes.h: Include "common/array-view.h".
769 (rank_function): Adjust to use gdb::array_view.
770 * python/py-xmethods.c (python_xmethod_worker::invoke)
771 (python_xmethod_worker::do_get_arg_types)
772 (python_xmethod_worker::do_get_result_type)
773 (python_xmethod_worker::invoke): Adjust to new interfaces.
774 * valarith.c (value_user_defined_cpp_op, value_user_defined_op)
775 (value_x_binop, value_x_unop): Adjust to use gdb::array_view.
776 * valops.c (find_overload_match, find_oload_champ_namespace)
777 (find_oload_champ_namespace_loop, find_oload_champ): Adjust to use
778 gdb:array_view and the new xmethod_worker interfaces.
779 * value.c (result_type_of_xmethod, call_xmethod): Adjust to use
780 gdb::array_view.
781 * value.h (find_overload_match, result_type_of_xmethod)
782 (call_xmethod): Adjust to use gdb::array_view.
783 * unittests/array-view-selftests.c: Add slicing tests.
784
e71585ff
PA
7852018-11-21 Pedro Alves <palves@redhat.com>
786
787 * ada-lang.c (ada_evaluate_subexp): Adjust to pass an array_view.
788 * common/array-view.h (make_array_view): New.
789 * compile/compile-object-run.c (compile_object_run): Adjust to
790 pass an array_view.
791 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust.
792 * eval.c (eval_call): Adjust to pass an array_view.
793 (evaluate_subexp_standard): Adjust to pass an array_view.
794 * gcore.c (call_target_sbrk): Adjust to pass an array_view.
795 * guile/scm-value.c (gdbscm_value_call): Likewise.
796 * infcall.c (push_dummy_code): Replace pointer + size parameters
797 with an array_view parameter.
798 (call_function_by_hand, call_function_by_hand_dummy): Likewise and
799 adjust.
800 * infcall.h: Include "common/array-view.h".
801 (call_function_by_hand, call_function_by_hand_dummy): Replace
802 pointer + size parameters with an array_view parameter.
803 * linux-fork.c (inferior_call_waitpid): Adjust to use array_view.
804 * linux-tdep.c (linux_infcall_mmap): Likewise.
805 * objc-lang.c (lookup_objc_class, lookup_child_selector)
806 (value_nsstring, print_object_command): Likewise.
807 * python/py-value.c (valpy_call): Likewise.
808 * rust-lang.c (rust_evaluate_funcall): Likewise.
809 * spu-tdep.c (flush_ea_cache): Likewise.
810 * valarith.c (value_x_binop, value_x_unop): Likewise.
811 * valops.c (value_allocate_space_in_inferior): Likewise.
812 * unittests/array-view-selftests.c (run_tests): Add
813 gdb::make_array_view test.
814
d63095c4
AB
8152018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
816
817 * cli-out.c (cli_ui_out::do_field_int): Use string_printf rather
818 than a fixed size buffer.
819
1871a62d
AB
8202018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
821
822 * breakpoint.c (print_one_breakpoint_location): Reduce whitespace,
823 and remove insertion of extra spaces in GDB's output.
824 * cli-out.c (cli_ui_out::do_field_fmt): Update header comment.
825 Layout field into a temporary buffer, and then output it as a
826 string field.
827
604c4ca9
PW
8282018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
829
830 * NEWS: Document the language choice done by
831 'info [types|functions|variables]|rbreak'.
832
43d397ca
PW
8332018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
834
835 * symtab.c (treg_matches_sym_type_name): Use
836 scoped_switch_to_sym_language_if_auto instead of local logic.
837 (print_symbol_info): Use scoped_switch_to_sym_language_if_auto
838 to switch to SYM language when language mode is auto.
839
9e6a1ab6
PW
8402018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
841
842 * language.h (scoped_switch_to_sym_language_if_auto): New class.
843
a8462bbf
PW
8442018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
845
846 * symtab.c (search_symbols): Properly check absence of type regexp
847 before entering the loop scanning the minimal symbols.
848
4399bce9 8492018-11-20 John Darrington <john@darrington.wattle.id.au>
c3247a98
JD
850
851 * s12z-tdep.c (s12z_extract_return_value): New function.
852 (inv_reg_perm) New array.
853 (s12z_return_value): Populate readbuf if non-null.
854
970d89d8
EZ
8552018-11-20 Eli Zaretskii <eliz@gnu.org>
856
857 * common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode
858 with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater
859 to MinGW fixed by Gnulib.
2fa1b319 860 (O_NOINHERIT): Define if not defined.
970d89d8 861
4399bce9 8622018-11-19 John Darrington <john@darrington.wattle.id.au>
7b5227d1 863
4399bce9 864 * s12z-tdep.c (s12z_frame_cache): Add an assertion.
7b5227d1 865
dbe4e654
SM
8662018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
867
868 * infrun.c (displaced_step_inferior_state) <next>: Remove.
869
0614ef69
TT
8702018-11-19 Tom Tromey <tom@tromey.com>
871
872 * source.c (get_filename_and_charpos): Return void.
873
261f6f79
SM
8742018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
875
876 * skip.c (_initialize_step_skip): Fix "info skip" help.
877
73fc52c4
TT
8782018-11-16 Tom Tromey <tom@tromey.com>
879
880 PR rust/23625:
881 * rust-lang.c (rust_internal_print_type): Handle TYPE_CODE_PTR.
882
39a36629
SM
8832018-11-19 Simon Marchi <simon.marchi@ericsson.com>
884
885 * infrun.c (displaced_step_inferior_states): Change type to
886 std::forward_list.
887 (get_displaced_stepping_state): Adjust.
888 (displaced_step_in_progress_any_inferior): Adjust.
889 (add_displaced_stepping_state): Adjust.
890 (remove_displaced_stepping_state): Adjust.
891
c2a6c5da
TT
8922018-11-18 Tom Tromey <tom@tromey.com>
893
894 PR build/23814:
895 * target-delegates.c: Rebuild.
896 * ia64-linux-nat.c (class ia64_linux_nat_target)
897 <have_steppable_watchpoint>: Use override. Return true, not 1.
898 (ia64_linux_nat_target::can_use_hw_breakpoint): Rename. Remove
899 "self" argument.
900 (ia64_linux_nat_target::low_new_thread): Rename.
901 (class ia64_linux_nat_target) <read_description>: Don't declare.
902 * target.h (struct target_ops) <have_steppable_watchpoint>: Return
903 bool.
904
38a72da0
AH
9052018-11-16 Alan Hayward <alan.hayward@arm.com>
906
907 PR gdb/22736:
908 * aarch64-tdep.c (aarch64_push_dummy_call): Remove
909 lang_struct_return code.
910
cf84fa6b
AH
9112018-11-16 Alan Hayward <alan.hayward@arm.com>
912
913 * aarch64-tdep.c (aarch64_push_dummy_call): Replace arg with
914 return_method.
915 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
916 * amd64-tdep.c (amd64_push_arguments): Likewise.
917 (amd64_push_dummy_call): Likewise.
918 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
919 * arc-tdep.c (arc_push_dummy_call): Likewise.
920 * arm-tdep.c (arm_push_dummy_call): Likewise.
921 * avr-tdep.c (avr_push_dummy_call): Likewise.
922 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
923 * cris-tdep.c (cris_push_dummy_call): Likewise.
924 * csky-tdep.c (csky_push_dummy_call): Likewise.
925 * frv-tdep.c (frv_push_dummy_call): Likewise.
926 * gdbarch.c: Regenerate.
927 * gdbarch.h: Regenerate.
928 * gdbarch.sh (gdbarch_push_dummy_call): Replace arg with
929 return_method.
930 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
931 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
932 (hppa64_push_dummy_call): Likewise.
933 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
934 * i386-tdep.c (i386_push_dummy_call): Likewise.
935 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
936 * infcall.c (call_function_by_hand_dummy): Likewise.
937 * iq2000-tdep.c (iq2000_push_dummy_call): Likewise.
938 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
939 * m32c-tdep.c (m32c_push_dummy_call): Likewise.
940 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
941 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
942 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
943 * mep-tdep.c (mep_push_dummy_call): Likewise.
944 * mips-tdep.c (mips_eabi_push_dummy_call): Likewise.
945 (mips_n32n64_push_dummy_call): Likewise.
946 (mips_o32_push_dummy_call): Likewise.
947 (mips_o64_push_dummy_call): Likewise.
948 * mn10300-tdep.c (mn10300_push_dummy_call): Likewise.
949 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
950 * nds32-tdep.c (nds32_push_dummy_call): Likewise.
951 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
952 * or1k-tdep.c (or1k_push_dummy_call): Likewise.
953 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
954 (ppc64_sysv_abi_push_dummy_call): Likewise.
955 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Likewise.
956 (ppc64_sysv_abi_push_dummy_call): Likewise.
957 * riscv-tdep.c (riscv_push_dummy_call): Likewise.
958 * rl78-tdep.c (rl78_push_dummy_call): Likewise.
959 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
960 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
961 * rx-tdep.c (rx_push_dummy_call): Likewise.
962 * s390-tdep.c (s390_push_dummy_call): Likewise.
963 * score-tdep.c (score_push_dummy_call): Likewise.
964 * sh-tdep.c (sh_push_dummy_call_fpu): Likewise.
965 (sh_push_dummy_call_nofpu): Likewise.
966 * sparc-tdep.c (sparc32_store_arguments): Likewise.
967 (sparc32_push_dummy_call): Likewise.
968 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
969 (sparc64_push_dummy_call): Likewise.
970 * spu-tdep.c (spu_push_dummy_call): Likewise.
971 * tic6x-tdep.c (tic6x_push_dummy_call): Likewise.
972 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
973 * v850-tdep.c (v850_push_dummy_call): Likewise.
974 * vax-tdep.c (vax_push_dummy_call): Likewise.
975 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
976 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
977
c5ac5cbb
AH
9782018-11-16 Alan Hayward <alan.hayward@arm.com>
979
980 * gdbarch.sh (enum function_call_return_method): Add enum.
981 * gdbarch.h: Regenerate.
982 * infcall.c (call_function_by_hand_dummy): Replace vars with enum.
983
f9db0c4c
JB
9842018-11-15 Joel Brobecker <brobecker@adacore.com>
985
986 * unittests/copy_bitwise-selftests.c: New file.
987 * utils.c (selftests::bits_to_str, selftests::check_copy_bitwise)
988 (selftests::copy_bitwise_tests): Delete, moving this code to
989 unittests/copy_bitwise-selftests.c instead.
990 (_initialize_utils): Do not register copy_bitwise tests.
991 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
992 unittests/copy_bitwise-selftests.c.
993
a99bc3d2
JB
9942018-11-14 Joel Brobecker <brobecker@adacore.com>
995
996 * ada-lang.c (move_bits): Delete. Update all callers to use
997 copy_bitwise instead.
998 * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str)
999 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
1000 Move from here to utils.c.
1001 (_initialize_dwarf2loc): Remove call to register copy_bitwise
1002 selftests.
1003 * utils.h (copy_bitwise): Add declaration.
1004 * utils.c (copy_bitwise, bits_to_str::bits_to_str)
1005 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
1006 Moved here from dwarf2loc.c.
1007 (_initialize_utils): Register copy_bitwise selftests.
1008
174f8ac8
JW
10092018-11-14 Jim Wilson <jimw@sifive.com>
1010
8b2d40cb
JW
1011 * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed.
1012 (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment,
1013 then increment next_regnum if odd.
1014 (riscv_arg_location): New arg is_unnamed. Set ainfo->is_unnamed.
1015 (riscv_push_dummy_call): New local ftype. Call check_typedef to set
1016 function type. Pass new arg to riscv_arg_location based on function
1017 type.
1018 (riscv_return_value): Pass new arg to riscv_arg_location.
1019
ef2de9e7
JW
1020 * riscv-tdep.c (BIGGEST_ALIGNMENT): New.
1021 (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min
1022 of TYPE_LENGTH and BIGGEST_ALIGNMENT.
1023
174f8ac8
JW
1024 * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when
1025 setting len. New local align, set to max of arg align and xlen,
1026 and pass to first riscv_assign_stack_location call.
1027
53a89d6e
SM
10282018-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1029
1030 * skip.c (complete_skip_number): New function.
1031 (_initialize_step_skip): Add completers to some skip commands.
1032
eefce37f
TT
10332018-11-09 Tom Tromey <tom@tromey.com>
1034
1035 * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC.
1036 (struct remote_g_packet_data): Derive from allocate_on_obstack.
1037 <guesses>: Now a std::vector.
1038 (remote_g_packet_data_init, register_remote_g_packet_guess):
1039 Update.
1040 (remote_read_description_p): Update. Return bool.
1041 (remote_target::read_description): Update.
1042 (struct remote_g_packet_guess): Add constructor.
1043
2179fbc3
TT
10442018-11-09 Tom Tromey <tom@tromey.com>
1045
1046 * common/scoped_fd.h (class scoped_fd): Add move constructor and
1047 move assignment operator.
1048 * psymtab.c (psymtab_to_fullname): Update.
1049 * source.h (open_source_file): Return scoped_fd.
1050 (find_and_open_source): Likewise.
1051 * source.c (open_source_file): Return scoped_fd.
1052 (get_filename_and_charpos): Update.
1053 (print_source_lines_base): Update. Use scoped_fd::to_file.
1054 (forward_search_command): Likewise.
1055 (reverse_search_command): Likewise.
1056 (find_and_open_source): Return scoped_fd.
1057 * tui/tui-source.c (tui_set_source_content): Update. Use
1058 gdb_file_up.
1059
9c122c7f
JB
10602018-11-09 John Baldwin <jhb@FreeBSD.org>
1061
1062 * minsyms.c (minimal_symbol_reader::install): Fix unsigned
1063 overflow.
1064
5d762de0
HAQ
10652018-11-09 Hafiz Abid Qadeer <abidh@codesourcery.com>
1066
1067 * configure: Regenerate.
1068
9325300d
TV
10692018-11-09 Tom de Vries <tdevries@suse.de>
1070
1071 * symtab.c (symbol_set_names): Call symbol_find_demangled_name
1072 unconditionally, to set the language of the symbol. Manage freeing
1073 returned pointer using gdb::unique_xmalloc_ptr.
1074
9c710e11
TT
10752018-11-08 Tom Tromey <tom@tromey.com>
1076
1077 * record.c (require_record_target): Upper-case "<TAB>".
1078
3c6618cd
TT
10792018-11-08 Tom Tromey <tom@tromey.com>
1080
1081 * python/lib/gdb/command/pretty_printers.py
1082 (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
1083
20f0d60d
TT
10842018-11-08 Tom Tromey <tom@tromey.com>
1085
1086 PR gdb/23555:
1087 PR gdb/23838:
1088 * target.h (target_supports_terminal_ours): Return bool.
1089 * target.c (target_supports_terminal_ours): Handle case where
1090 current_top_target returns nullptr. Return bool.
1091
d4718d5c
JB
10922018-11-08 Joel Brobecker <brobecker@adacore.com>
1093
1094 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1):
1095 return the correct count for potential HFAs.
1096
b5420128
JB
10972018-11-08 Jan Beulich <jbeulich@suse.com>
1098
1099 * i387-tdep.c (i387_supply_xsave): Split handling of
1100 X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
1101 (i387_collect_xsave): Likewise.
1102
17cf2897
AB
11032018-11-08 Andrew Burgess <andrew.burgess@embecosm.com>
1104
1105 * riscv-tdep.c (riscv_insn::decode): Update header comment.
1106 (riscv_frame_this_id): Catch errors thrown while building the
1107 frame cache, leave the frame id as the default, which is the outer
1108 frame id.
1109
76136aed
JB
11102018-11-07 Joel Brobecker <brobecker@adacore.com>
1111
1112 * ada-lang.c (read_atcb): Only set task_info->called_task if
1113 task_info->state == Entry_Caller_Sleep.
1114 (print_ada_task_info): Do not check task_info->state before
1115 checking task_info->called_task.
1116 (info_task): Likewise.
1117
07deea26
JB
11182018-11-07 Joel Brobecker <brobecker@adacore.com>
1119
1120 * ada-tasks.c (read_atcb): Clear task_info before computing
1121 the value of each of its fields.
1122
35ee2dc2
AB
11232018-11-07 Andrew Burgess <andrew.burgess@embecosm.com>
1124
1125 * dwarf2read.c (dwarf2_init_integer_type): Check for name being
1126 NULL before dereferencing it.
1127
31aceee8
TV
11282018-11-06 Tom de Vries <tdevries@suse.de>
1129
1130 * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
1131 program headers.
1132
f11acc5e
MF
11332018-11-06 Max Filippov <jcmvbkbc@gmail.com>
1134
1135 * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
1136 so that it applies to uclinux as well.
1137
9e237747
MM
11382018-11-06 Marius Muench <marius.muench@eurecom.fr>
1139
1140 * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
1141 when on AAPCS.
1142
bcecc11d
JB
11432018-11-06 John Baldwin <jhb@FreeBSD.org>
1144
1145 * riscv-fbsd-nat.c (getregs_supplies): Return true for
1146 RISCV_CSR_SSTATUS_REGNUM.
1147
bb20ccab
PW
11482018-11-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1149
1150 * source.c (open_source_file): Fix leak by transferring the
1151 current s->fullname to the unique_xmalloc_ptr fullname given
1152 to find_and_open_source.
1153
a31abe80
TT
11542018-11-04 Tom Tromey <tom@tromey.com>
1155
1156 * varobj.c (install_default_visualizer): Update.
1157 * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
1158 Return gdbpy_ref.
1159 * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
1160 (find_pretty_printer_from_progspace)
1161 (find_pretty_printer_from_gdb, find_pretty_printer)
1162 (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
1163 (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
1164 Update.
1165
833d985d
TT
11662018-11-04 Tom Tromey <tom@tromey.com>
1167
1168 * python/python.c (gdbpy_parameter_value): Update.
1169 * python/python-internal.h (python_string_to_unicode)
1170 (python_string_to_target_python_string)
1171 (host_string_to_python_string): Return gdbpy_ref.
1172 * python/py-utils.c (python_string_to_unicode)
1173 (unicode_to_encoded_python_string)
1174 (unicode_to_target_python_string)
1175 (python_string_to_target_string)
1176 (python_string_to_target_python_string): Return gdbpy_ref.
1177 (python_string_to_host_string): Update.
1178 (host_string_to_python_string): Return gdbpy_ref.
1179 * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
1180 (stpy_fullname): Update.
1181 * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
1182 Update.
1183 * python/py-prettyprint.c (print_string_repr): Update.
1184 * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
1185 (objfpy_get_build_id): Update.
1186 * python/py-breakpoint.c (bppy_get_location)
1187 (bppy_get_expression, bppy_get_condition, bppy_get_commands):
1188 Update.
1189
12dfa12a
TT
11902018-11-04 Tom Tromey <tom@tromey.com>
1191
1192 * python/python-internal.h (gdb_py_object_from_longest)
1193 (gdb_py_object_from_ulongest): Return gdbpy_ref.
1194 * python/py-value.c (valpy_int): Update.
1195 * python/py-utils.c (gdb_py_object_from_longest): Return
1196 gdbpy_ref.
1197 (gdb_py_object_from_ulongest): Likewise.
1198 * python/py-type.c (typy_get_alignof): Update.
1199 * python/py-linetable.c (ltpy_get_all_source_lines)
1200 (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
1201 * python/py-block.c (blpy_get_start, blpy_get_end): Update.
1202
470678d7
PW
12032018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1204
1205 * ada-lang.c (_initialize_ada_language): Fix typo.
1206
814fa4f6
PW
12072018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1208
1209 * language.c (type): Remove.
1210 (_initialize_language): Remove assignment to type.
1211
3c6dd3d1 12122018-11-02 Joel Brobecker <brobecker@adacore.com>
e8bf1ce4
JB
1213
1214 * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
1215 * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
1216 (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
1217 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
1218 (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
1219 (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
1220 * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
1221 and aarch64-ravenscar-thread.o.
1222 * NEWS: Add entry documenting Ravenscar tasking support
1223 on AArch64 ELF.
1224
d54cfd76
PW
12252018-11-02 Matthew Malcomson <matthew.malcomson@arm.com>
1226
1227 * symtab.c (info_functions_command): Initialize quiet flag.
1228 * stack.c (info_args_command): Likewise.
1229
3ba2ee38
JW
12302018-11-01 Jim Wilson <jimw@sifive.com>
1231
1232 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
1233 Set if pcptr if unaligned. Return 2 if unaligned_p true. Update
1234 debugging messages.
1235
e2b7af72
JB
12362018-11-01 Joel Brobecker <brobecker@adacore.com>
1237
1238 * ada-lang.c (ada_watch_location_expression): New function.
1239 (ada_language_defn): Set la_watch_location_expression to
1240 ada_watch_location_expression.
1241
8b578f9c
JB
12422018-11-01 Joel Brobecker <brobecker@adacore.com>
1243
1244 * print-utils.c (int_string): Remove unnecessary trailing spaces.
1245
1cc62f2e
JB
12462018-11-01 Joel Brobecker <brobecker@adacore.com>
1247
1248 * rs6000-tdep.c (skip_prologue): Fix potential negative left
1249 shifting.
1250
e1c3a373
JG
12512018-11-01 Jerome Guitton <guitton@adacore.com>
1252 Joel Brobecker <brobecker@adacore.com>
1253
1254 * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
1255 * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
1256 * arm-pikeos-tdep.c: New file.
1257 * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
1258 embedded system.
1259 * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
1260
e8d8cce6
SM
12612018-11-01 Simon Marchi <simon.marchi@ericsson.com>
1262
1263 * common/pathstuff.c (get_standard_temp_dir): New.
1264 * common/pathstuff.h (get_standard_temp_dir): New.
1265 * config.in: Re-generate.
1266 * configure: Re-generate.
1267 * configure.ac: Don't check for mkdtemp.
1268 * gnulib/aclocal-m4-deps.mk: Re-generate.
1269 * gnulib/aclocal.m4: Re-generate.
1270 * gnulib/config.in: Re-generate.
1271 * gnulib/configure: Re-generate.
1272 * gnulib/import/Makefile.am: Re-generate.
1273 * gnulib/import/Makefile.in: Re-generate.
1274 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1275 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1276 * gnulib/import/m4/mkdtemp.m4: New file.
1277 * gnulib/import/mkdtemp.c: New file.
1278 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
1279 Add mkdtemp module.
1280 * unittests/mkdir-recursive-selftests.c (test): Use
1281 get_standard_temp_dir.
1282 (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
1283 ifdef.
1284 * compile/compile.c (get_compile_file_tempdir): Likewise.
1285
cdcda965
SM
12862018-11-01 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1287
1288 * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1289 (SIG_FRAME_LR_OFFSET64): New define.
1290 (SIG_FRAME_FP_OFFSET64): New define.
1291 (aix_sighandle_frame_cache): New Function.
1292 (aix_sighandle_frame_this_id): New Function.
1293 (aix_sighandle_frame_prev_register): New Function.
1294 (aix_sighandle_frame_sniffer): New Function.
1295 (aix_sighandle_frame_unwind): New global variable.
1296 (rs6000_aix_init_osabi): Install new frame unwinder.
1297
656efb5e
SDJ
12982018-10-31 Sergio Durigan Junior <sergiodj@redhat.com>
1299
1300 PR gdb/23835
1301 * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
1302 already defined.
1303
64f57f3d
PFC
13042018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1305
1306 * ppc-linux-nat.c: Include nat/linux-ptrace.h.
1307
eb77c9df
AB
13082018-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1309
1310 * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
1311 (producer_is_icc): New function.
1312 (check_producer): Set producer_is_icc field on dwarf2_cu.
1313 (dwarf2_init_integer_type): New function.
1314 (read_base_type): Call dwarf2_init_integer_type instead of
1315 init_integer_type in all cases.
1316 (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
1317 * valprint.c (maybe_negate_by_bytes): Add an assertion that the
1318 LEN is greater than 0.
1319
4d5d1049
TT
13202018-10-30 Tom Tromey <tom@tromey.com>
1321
1322 * main.c (captured_main_1): Check return value of bfd_init.
1323
fd332753
SDJ
13242018-10-29 Sergio Durigan Junior <sergiodj@redhat.com>
1325
1326 * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
1327 Adjust comments.
1328
30a7953d
RO
13292018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1330
1331 * procfs.c: Include common/pathstuff.h.
1332
a3d72268
AB
13332018-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
1334
1335 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1336 Add missing braces. No functional change.
1337
cd948f5b
PW
13382018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1339
1340 * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
1341 to report a bad option and fix indentation.
1342 * demangle.c (demangle_command): Use report_unrecognized_option_error
1343 to report a bad option and correctly report the bad option.
1344
b50a8b9a
TT
13452018-10-27 Tom Tromey <tom@tromey.com>
1346
1347 PR cli/23364:
1348 * darwin-nat.c (copied_shell): New global.
1349 (may_have_sip): Rename from should_disable_startup_with_shell.
1350 (copy_shell_to_cache, maybe_cache_shell): New functions.
1351 (darwin_nat_target::create_inferior): Update. Use
1352 copied_shell.
1353
36033ef5
TT
13542018-10-27 Tom Tromey <tom@tromey.com>
1355
1356 * unittests/scoped_fd-selftests.c (test_to_file): New function.
1357 (run_tests): Call test_to_file.
1358 * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
1359 temporary files.
1360 * common/scoped_fd.h (scoped_fd::to_file): New method.
1361
b3279b60
TT
13622018-10-27 Tom Tromey <tom@tromey.com>
1363
1364 * unittests/scoped_mmap-selftests.c (test_normal): Use
1365 gdb_mkostemp_cloexec.
1366 * unittests/scoped_fd-selftests.c (test_destroy, test_release):
1367 Use gdb_mkostemp_cloexec.
1368 * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
1369 gnulib/config.in, gnulib/configure,
1370 gnulib/import/Makefile.am, gnulib/import/Makefile.in,
1371 gnulib/import/m4/gnulib-cache.m4,
1372 gnulib/import/m4/gnulib-comp.m4: Update.
1373 * gnulib/import/m4/mkostemp.m4: New file.
1374 * gnulib/import/m4/mkstemp.m4: Remove.
1375 * gnulib/import/mkostemp.c: New file.
1376 * gnulib/import/mkstemp.m4: Remove.
1377 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
1378 mkstemp, add mkostemp. Apply new patch.
1379 * gnulib/import/stdlib.in.h: Apply patch.
1380 * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
1381 New file.
1382 * dwarf-index-write.c (write_psymtabs_to_index): Use
1383 gdb_mkostemp_cloexec.
1384 * common/filestuff.h (gdb_mkostemp_cloexec): New function.
1385
e418a61a
TT
13862018-10-27 Tom Tromey <tom@tromey.com>
1387
1388 * unittests/mkdir-recursive-selftests.c: New file.
1389 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1390 unittests/mkdir-recursive-selftests.c.
1391 * dwarf-index-cache.c (mkdir_recursive): Move to
1392 common/filestuff.c.
1393 (index_cache::store): Check return value of mkdir_recursive.
1394 (create_dir_and_check, test_mkdir_recursive): Move to new file.
1395 (_initialize_index_cache): Don't register test.
1396 * common/filestuff.h (mkdir_recursive): Declare.
1397 * common/filestuff.c (mkdir_recursive): Move from
1398 dwarf-index-cache.c. Return bool.
1399
29be4d9d
TT
14002018-10-27 Tom Tromey <tom@tromey.com>
1401
1402 * dwarf-index-write.c (write_psymtabs_to_index): Move
1403 make_temp_filename to common/pathstuff.c.
1404 * common/pathstuff.h (make_temp_filename): Declare.
1405 * common/pathstuff.c (make_temp_filename): New function, moved
1406 from dwarf-index-write.c.
1407
974e6844
TT
14082018-10-27 Tom Tromey <tom@tromey.com>
1409
1410 * procfs.c (procfs_target::create_inferior): Use get_shell.
1411 * cli/cli-cmds.c (shell_escape): Use get_shell.
1412 * windows-nat.c (windows_nat_target::create_inferior): Use
1413 get_shell.
1414 * common/pathstuff.c (get_shell): New function.
1415 * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
1416 (fork_inferior): Use get_shell.
1417 * common/pathstuff.h (get_shell): Declare.
1418
e0a7911f
PW
14192018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1420
1421 * NEWS: Mention changes to 'info [args|functions|locals|variables]'
1422
12615cba
PW
14232018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1424
1425 * stack.c (print_variable_and_value_data): Add preg and treg.
1426 (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
1427 and update callers.
1428 (print_frame_arg_vars): Likewise.
1429 (prepare_reg): New function.
1430 (info_locals_command): Extract info print args and use them.
1431 (info_args_command): Likewise.
1432 (_initialize_stack): Modify on-line help.
1433 * symtab.c (treg_matches_sym_type_name): New function.
1434 (search_symbols): New arg t_regexp.
1435 (symtab_symbol_info): New args quiet, regexp, t_regexp.
1436 (info_variables_command): Extract info print args and use them.
1437 (info_functions_command): Likewise.
1438 (info_types_command): Update call to symtab_symbol_info.
1439 (_initialize_symtab): Modify on-line help.
1440 * symtab.h (treg_matches_sym_type_name): New function.
1441 (search_symbols): New t_regexp arg.
1442
0d4cad90
PW
14432018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1444
1445 * cli-utils.c (extract_arg_maybe_quoted): New function.
1446 (extract_info_print_args): New function.
1447 (info_print_args_help): New function.
1448 (report_unrecognized_option_error): New function.
1449 * cli-utils.h (extract_arg_maybe_quoted): New function.
1450 (extract_info_print_args): New function.
1451 (info_print_args_help): New function.
1452 (report_unrecognized_option_error): New function.
1453
4c39bc03
TT
14542018-10-26 Tom Tromey <tom@tromey.com>
1455
1456 * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
1457 (compute_compunit_symtab_includes): Update.
1458 * symtab.h: (symtab_ptr): Remove typedef. Don't define a VEC.
1459 (compunit_symtab_ptr): Likewise.
1460
fd2b4de5
JB
14612018-10-26 John Baldwin <jhb@FreeBSD.org>
1462
1463 * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
1464 default_print_auxv_entry for specific tag values.
1465
d7ded98f
JB
14662018-10-26 John Baldwin <jhb@FreeBSD.org>
1467
1468 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
1469
8a613826
JW
14702018-10-26 Jim Wilson <jimw@sifive.com>
1471
77c6f5fc
JW
1472 * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
1473 (riscv_linux_sigframe_init): Declare.
1474 (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
1475 (riscv_linux_sigframe): New.
1476 (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
1477 (riscv_linux_sigframe_init): Define.
1478 (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
1479
8a613826
JW
1480 * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
1481 (riscv_isa_flen): Likewise. Drop static.
1482 * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
1483 (riscv_isa_flen): Likewise. Declare.
1484
8d619c01
EBM
14852018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1486 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1487
1488 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
1489 (tdesc_powerpc_isa207_htm_vsx64l): Declare.
1490 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
1491 (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
1492 (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
1493 (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
1494 (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
1495 Define.
1496 (struct ppc_linux_features) <htm>: New field.
1497 (ppc_linux_no_features): Add initializer for htm field.
1498 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1499 new tdescs.
1500 * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
1501 (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
1502 (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
1503 Define if not already defined.
1504 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
1505 and rs6000/powerpc-isa207-htm-vsx64l.
1506 (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
1507 rs6000/powerpc-isa207-htm-vsx64l.xml.
1508 * features/rs6000/power-htm-spr.xml: New file.
1509 * features/rs6000/power-htm-core.xml: New file.
1510 * features/rs6000/power64-htm-core.xml: New file.
1511 * features/rs6000/power-htm-fpu.xml: New file.
1512 * features/rs6000/power-htm-altivec.xml: New file.
1513 * features/rs6000/power-htm-vsx.xml: New file.
1514 * features/rs6000/power-htm-ppr.xml: New file.
1515 * features/rs6000/power-htm-dscr.xml: New file.
1516 * features/rs6000/power-htm-tar.xml: New file.
1517 * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
1518 * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
1519 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
1520 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
1521 * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
1522 * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
1523 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1524 fetch_regset with HTM regsets.
1525 (store_register, store_ppc_registers): Call store_regset with HTM
1526 regsets.
1527 (ppc_linux_nat_target::read_description): Set htm field in the
1528 features struct if needed.
1529 * ppc-linux-tdep.c: Include
1530 features/rs6000/powerpc-isa207-htm-vsx32l.c and
1531 features/rs6000/powerpc-isa207-htm-vsx64l.c.
1532 (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
1533 (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
1534 (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
1535 (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
1536 (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
1537 (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
1538 (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
1539 (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
1540 (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
1541 (ppc32_linux_ctarregset): New globals.
1542 (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
1543 (ppc_linux_collect_core_cpgrregset): New function.
1544 (ppc_linux_iterate_over_regset_sections): Call back with the htm
1545 regsets.
1546 (ppc_linux_core_read_description): Check if the tm spr section is
1547 present and set htm in the features struct.
1548 (_initialize_ppc_linux_tdep): Call
1549 initialize_tdesc_powerpc_isa207_htm_vsx32l and
1550 initialize_tdesc_powerpc_isa207_htm_vsx64l.
1551 * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
1552 Declare.
1553 (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
1554 (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
1555 (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
1556 * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
1557 New fields.
1558 <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
1559 Likewise.
1560 <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
1561 <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
1562 (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
1563 New enum fields.
1564 <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
1565 <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
1566 <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
1567 <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
1568 <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
1569 <PPC_CTAR_REGNUM>: Likewise.
1570 (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
1571 (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
1572 * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
1573 (IS_CEFP_PSEUDOREG): Define.
1574 (rs6000_register_name): Hide the upper halves of checkpointed VSX
1575 registers. Return names for the checkpointed DFP, VSX, and EFP
1576 pseudo registers.
1577 (rs6000_pseudo_register_type): Remove initial assert and raise an
1578 internal error in the else clause instead. Return types for the
1579 checkpointed DFP, VSX, and EFP pseudo registers.
1580 (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
1581 checkpointed DFP pseudo registers.
1582 (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
1583 checkpointed VSX pseudo registers.
1584 (efp_pseudo_register_read, efp_pseudo_register_write): Rename
1585 from efpr_pseudo_register_read and
1586 efpr_pseudo_register_write. Handle checkpointed EFP pseudo
1587 registers.
1588 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
1589 Handle checkpointed DFP, VSX, and EFP registers.
1590 (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
1591 (efp_ax_pseudo_register_collect): New functions.
1592 (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
1593 register logic to new functions. Handle checkpointed DFP, VSX,
1594 and EFP pseudo registers.
1595 (rs6000_gdbarch_init): Look for and validate the htm features.
1596 Include checkpointed DFP, VSX and EFP pseudo-registers.
1597 * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
1598 HTM registers.
1599
81ab84fd
PFC
16002018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1601
1602 * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
1603 without altivec or fpu.
1604
232bfb86
EBM
16052018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1606 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1607
1608 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
1609 (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
1610 * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
1611 Define if not already defined.
1612 * features/rs6000/power-ebb.xml: New file.
1613 * features/rs6000/power-linux-pmu.xml: New file.
1614 * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
1615 features.
1616 * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
1617 * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
1618 * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
1619 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
1620 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
1621 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1622 fetch_regset with ebb and pmu regsets.
1623 (store_register, store_ppc_registers): Call store_regset with ebb
1624 and pmu regsets.
1625 (ppc_linux_nat_target::read_description): Set isa207 field in the
1626 features struct if ebb and pmu are avaiable.
1627 * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
1628 (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
1629 (ppc_linux_iterate_over_regset_sections): Call back with the ebb
1630 and pmu regsets.
1631 (ppc_linux_core_read_description): Check if the pmu section is
1632 present and set isa207 in the features struct.
1633 * ppc-linux-tdep.h (ppc32_linux_ebbregset)
1634 (ppc32_linux_pmuregset): Declare.
1635 * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
1636 <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
1637 <ppc_sier_regnum>: New field.
1638 (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
1639 New enum values.
1640 <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
1641 values.
1642 <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
1643 (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
1644 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
1645 ebb and pmu features.
1646
f2cf6173
EBM
16472018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1648 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1649
1650 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
1651 (tdesc_powerpc_isa207_vsx64l): Declare.
1652 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
1653 (struct ppc_linux_features) <isa207>: New field.
1654 (ppc_linux_no_features): Add initializer for isa207 field.
1655 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1656 new tdescs.
1657 * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
1658 (NT_PPC_TAR): Define if not already defined.
1659 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
1660 rs6000/powerpc-isa207-vsx64l.
1661 (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
1662 rs6000/powerpc-isa207-vsx64l.xml.
1663 * features/rs6000/power-tar.xml: New file.
1664 * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
1665 * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
1666 * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
1667 * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
1668 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
1669 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
1670 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1671 fetch_regset with the TAR regset.
1672 (store_register, store_ppc_registers): Call store_regset with the
1673 TAR regset.
1674 (ppc_linux_nat_target::read_description): Set isa207 field in the
1675 features struct if needed.
1676 * ppc-linux-tdep.c: Include
1677 features/rs6000/powerpc-isa207-vsx32l.c and
1678 features/rs6000/powerpc-isa207-vsx64l.c.
1679 (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
1680 (ppc_linux_iterate_over_regset_sections): Call back with the tar
1681 regset.
1682 (ppc_linux_core_read_description): Check if the tar section is
1683 present and set isa207 in the features struct.
1684 (_initialize_ppc_linux_tdep): Call
1685 initialize_tdesc_powerpc_isa207_vsx32l and
1686 initialize_tdesc_powerpc_isa207_vsx64l.
1687 * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
1688 * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
1689 (enum) <PPC_TAR_REGNUM>: New enum value.
1690 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
1691 feature.
1692 (ppc_process_record_op31): Record changes to TAR.
1693
7ca18ed6
EBM
16942018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1695 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1696
1697 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
1698 (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
1699 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
1700 (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
1701 (struct ppc_linux_features) <ppr_dscr>: New field.
1702 (ppc_linux_no_features): Add initializer for ppr_dscr field.
1703 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1704 new tdescs.
1705 * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
1706 Define if not already defined.
1707 * features/Makefile (WHICH): Add
1708 rs6000/powerpc-isa205-ppr-dscr-vsx32l and
1709 rs6000/powerpc-isa205-ppr-dscr-vsx64l.
1710 (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
1711 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
1712 * features/rs6000/power-dscr.xml: New file.
1713 * features/rs6000/power-ppr.xml: New file.
1714 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
1715 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
1716 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
1717 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
1718 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
1719 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
1720 * ppc-linux-nat.c: Include <sys/uio.h>.
1721 (fetch_regset, store_regset, check_regset): New functions.
1722 (fetch_register, fetch_ppc_registers): Call fetch_regset with
1723 DSCR and PPR regsets.
1724 (store_register, store_ppc_registers): Call store_regset with
1725 DSCR and PPR regsets.
1726 (ppc_linux_get_hwcap2): New function.
1727 (ppc_linux_nat_target::read_description): Call
1728 ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
1729 features struct if needed.
1730 * ppc-linux-tdep.c: Include
1731 features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
1732 features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
1733 (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
1734 (ppc32_linux_dscrregset): New globals.
1735 (ppc_linux_iterate_over_regset_sections): Call back with the ppr
1736 and dscr regsets.
1737 (ppc_linux_core_read_description): Check if the ppr and dscr
1738 sections are present and set ppr_dscr in the features struct.
1739 (_initialize_ppc_linux_tdep): Call
1740 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
1741 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
1742 * ppc-linux-tdep.h (ppc32_linux_pprregset)
1743 (ppc32_linux_dscrregset): Declare.
1744 * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
1745 <ppc_dscr_regnum>: New field.
1746 (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
1747 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
1748 and dscr features.
1749 (ppc_process_record_op31): Record changes to PPR and DSCR.
1750
93b4691f
PFC
17512018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1752
1753 * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
1754 second initializer line for the have_* variables. Initialize
1755 have_fpu to 0 instead of 1.
1756
71733a7b
PFC
17572018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1758
1759 * arch/ppc-linux-common.c (ppc_linux_match_description):
1760 Parenthesize tdesc assignements and indent them properly.
1761
3d907528
PFC
17622018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1763
1764 * ppc-linux-nat.c (fetch_register): Change if statement to else
1765 if.
1766 (store_register): Likewise.
1767
500f01a0
PFC
17682018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1769
1770 * rs6000-tdep.c: Remove reggroups.h include.
1771 (rs6000_pseudo_register_reggroup_p): Remove.
1772 (rs6000_gdbarch_init): Remove call to
1773 set_tdesc_pseudo_register_reggroup_p.
1774
7ed29001
PFC
17752018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1776
1777 * reggroups.c (default_register_reggroup_p): Return true for
1778 decfloat registers and float_reggroup.
1779
5c849b22
PFC
17802018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1781
1782 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
1783 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
1784 ppc_linux_collect_vrregset by regcache_collect_regset.
1785
afde3032
PFC
17862018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1787
1788 * linux-tdep.c (linux_collect_regset_section_cb): Use
1789 std::vector<gdb_byte> instead of char * and malloc for buf.
1790 Remove xfree.
1791
b9718991
SM
17922018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1793
1794 * xcoffread.c (read_xcoff_symtab): Pass deduced language to
1795 symtab_start instead of always using language_unknown.
1796
0b0eff8b
AB
17972018-10-26 Andrew Burgess <andrew.burgess@embecosm.com>
1798
1799 * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
1800 READ_P parameter, catch and ignore register access errors from
1801 either the old or new MISA location.
1802 (riscv_has_feature): Update call to riscv_read_misa_reg.
1803
b352ceb6
AB
18042018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1805
1806 * python/py-function.c (convert_values_to_python): Return
1807 gdbpy_ref<>. Add header comment.
1808 (fnpy_call): Adjust.
1809
50db9ef4
AB
18102018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1811
1812 * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
1813 (cmdpy_completer_handle_brkchars): Adjust.
1814 (cmdpy_completer): Adjust.
1815
ee67fd7f
AB
18162018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1817
1818 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1819 Pass correct regnum to raw_supply_zeroed.
1820
bea556ab
HAQ
18212018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com>
1822
1823 * regcache.c (cooked_read_test): Add CSKY to the list of
1824 architectures with a save_reggroup
1825
35ed81d4
SM
18262018-10-23 Simon Marchi <simon.marchi@polymtl.ca>
1827
1828 PR gdb/23368
1829 * infrun.c (follow_exec): In the follow_exec_mode_new case,
1830 transfer terminal state from old new new inferior.
1831 * terminal.h (swap_terminal_info): New function.
1832 * inflow.c (swap_terminal_info): New function.
1833
79b8d3b0
TT
18342018-10-23 Tom Tromey <tom@tromey.com>
1835
1836 * record-btrace.c (get_thread_current_frame_id): Rename from
1837 get_thread_current_frame. Return a frame_id.
1838 (record_btrace_start_replaying): Update.
1839
420ecd9c
AB
18402018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1841
1842 * riscv-tdep.c (riscv_register_name): Use the user-friendly names
1843 for CSRs.
1844
5a77b1b4
JB
18452018-10-23 Joel Brobecker <brobecker@adacore.com>
1846
1847 * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
1848 have_nonsteppable_watchpoint attribute to 1.
1849
0dbfcfff
AB
18502018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1851
1852 * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
1853 register names.
1854 (struct register_alias): Rename to...
1855 (struct riscv_register_alias): ...this, and update comment.
1856 (riscv_register_aliases): Update type, and alias names. Remove
1857 CSR names from this list.
1858 (riscv_register_name): Use riscv_gdb_reg_names for int and float
1859 register names. Add an extra assertion.
1860 (riscv_is_regnum_a_named_csr): New function.
1861 (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
1862
32641fa9
JD
18632018-10-23 John Darrington <john@darrington.wattle.id.au>
1864
1865 * configure.tgt: Add configuration for s12z.
1866 * s12z-tdep.c: New file.
1867 * NEWS: Mention new target.
1868
270b9329
JW
18692018-10-22 Jim Wilson <jimw@sifive.com>
1870
3399f1b3
JW
1871 * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
1872 FP reg smaller than FP reg size, and fill with -1 instead of 0.
1873
270b9329
JW
1874 * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
1875 (riscv_register_type): Use them.
1876 (riscv_print_one_register_info): Handle union of floats same as float.
1877 * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
1878 riscv_fpreg_q_type fields.
1879
f6efe3f8
SM
18802018-10-21 Simon Marchi <simon.marchi@ericsson.com>
1881
1882 * gdbarch.sh (gdbarch_num_cooked_regs): New.
1883 * gdbarch.h: Re-generate.
1884 * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
1885 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1886 * eval.c (evaluate_subexp_standard): Likewise.
1887 * findvar.c (value_of_register): Likewise.
1888 (value_of_register_lazy): Likewise.
1889 (address_from_register): Likewise.
1890 * frame.c (get_frame_register_bytes): Likewise.
1891 * gdbarch-selftests.c (register_to_value_test): Likewise.
1892 * h8300-tdep.c (h8300_register_type): Likewise.
1893 * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
1894 (i386_svr4_reg_to_regnum): Likewise.
1895 * infcmd.c (default_print_registers_info): Likewise.
1896 (registers_info): Likewise.
1897 (print_vector_info): Likewise.
1898 (default_print_float_info): Likewise.
1899 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1900 * mdebugread.c (mdebug_reg_to_regnum): Likewise.
1901 * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
1902 (mi_cmd_data_list_changed_registers): Likewise.
1903 (mi_cmd_data_list_register_values): Likewise.
1904 (mi_cmd_data_write_register_values): Likewise.
1905 (mi_cmd_trace_frame_collected): Likewise.
1906 * mips-tdep.c (print_gp_register_row): Likewise.
1907 (mips_print_registers_info): Likewise.
1908 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
1909 * regcache.c (init_regcache_descr): Likewise.
1910 (register_size): Likewise.
1911 (register_dump::dump): Likewise.
1912 (cooked_read_test): Likewise.
1913 (cooked_write_test): Likewise.
1914 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1915 (rs6000_gdbarch_init): Likewise.
1916 * stabsread.c (stab_reg_to_regnum): Likewise.
1917 * stack.c (info_frame_command): Likewise.
1918 * target-descriptions.c (tdesc_register_name): Likewise.
1919 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1920 * tui/tui-regs.c (tui_show_register_group): Likewise.
1921 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1922 (user_reg_map_regnum_to_name): Likewise.
1923 (value_of_user_reg): Likewise.
1924 (maintenance_print_user_registers): Likewise.
1925 * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
1926 (xtensa_register_name): Likewise.
1927 (xtensa_register_type): Likewise.
1928 (xtensa_reg_to_regnum): Likewise.
1929 (xtensa_pseudo_register_read): Likewise.
1930 (xtensa_pseudo_register_write): Likewise.
1931
925047fe
SM
19322018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1933
1934 * amd64-tdep.c (amd64_pseudo_register_read_value): Use
1935 correctly-sized buffer with raw_read.
1936 (amd64_pseudo_register_write): Use correctly-sized buffer for
1937 raw_read/raw_write.
1938
4051d2d6
PW
19392018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1940
1941 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
1942 in add_prefix_cmd of set print type.
1943
7806cea7
TT
19442018-10-19 Tom Tromey <tom@tromey.com>
1945
1946 PR tui/18388:
1947 * NEWS: Mention tabset deprecation.
1948 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
1949 (update_tab_width): New function.
1950 (tui_set_tab_width, tui_show_tab_width): New functions.
1951 (tui_set_tab_width_command): Use update_tab_width.
1952 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
1953 Add new "set tui tab-width" command.
1954 * tui/tui-source.c (tui_set_source_content): Update.
1955 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1956 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
1957 Don't declare.
1958 (tui_tab_width): Declare.
1959 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
1960 (tui_set_default_tab_len): Remove.
1961
84371624
TT
19622018-10-19 Tom Tromey <tom@tromey.com>
1963
1964 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
1965 (key_is_backspace, tui_getc): Don't declare.
1966 * tui/tui-io.c (key_is_start_sequence): Now static.
1967 (key_is_end_sequence, key_is_backspace): Remove.
1968 (tui_getc): Now static.
1969
22ad8107
TT
19702018-10-19 Tom Tromey <tom@tromey.com>
1971
1972 * symfile.c (reread_symbols): Clear "static_links".
1973
74b3c713
AH
19742018-10-19 Alan Hayward <alan.hayward@arm.com>
1975
1976 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
1977 define.
1978 (aarch64_linux_sigframe_init): Extra boundary checks.
1979
0667c506
AA
19802018-10-19 Andreas Arnez <arnez@linux.ibm.com>
1981
1982 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
1983 the possibly non-existent tdesc type 'vec128', but the type of raw
1984 register v16 instead.
1985
ba543ca5
GB
19862018-10-19 Gary Benson <gbenson@redhat.com>
1987
1988 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
1989
94c18618
SDJ
19902018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
1991
1992 PR cli/23785
1993 * cli/cli-dump.c (restore_binary_file): Check if "file" is
1994 NULL.
1995
89eb3c54
PK
19962018-10-17 Paul Koning <paul_koning@dell.com>
1997
1998 * charset.c (convert_between_encodings): Fix unsigned overflow.
1999
6f3b1098
JB
20002018-10-17 John Baldwin <jhb@FreeBSD.org>
2001
2002 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
2003 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
2004 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
2005 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
2006 New functions.
2007 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
2008 and fbsd_info_proc_mappings_header.
2009 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
2010 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
2011 New.
2012
d500b4f2
JB
20132018-10-17 Joel Brobecker <brobecker@adacore.com>
2014
2015 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
2016 Solaris Maintainer.
2017
63a33118
TT
20182018-10-15 Tom Tromey <tom@tromey.com>
2019
2020 * tui/tui.c (strcat_to_buf): Remove casts.
2021 * tui/tui-winsource.c (tui_show_source_line)
2022 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
2023 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
2024 * tui/tui-windata.c (tui_first_data_item_displayed)
2025 (tui_delete_data_content_windows, tui_erase_data_content)
2026 (tui_display_all_data, tui_display_data_from)
2027 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
2028 * tui/tui-win.c (tui_set_win_height)
2029 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
2030 casts.
2031 * tui/tui-win.c (tui_resize_all): Remove casts.
2032 (tui_scroll_backward_command, tui_set_focus)
2033 (tui_set_tab_width_command): Likewise.
2034 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
2035 * tui/tui-regs.c (tui_show_register_group): Remove cast.
2036 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
2037 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
2038 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
2039 Remove casts.
2040
933e62b1
SM
20412018-10-15 Simon Marchi <simon.marchi@ericsson.com>
2042
2043 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
2044 AArch64/ARM maintainer.
2045
fbe61a36
GB
20462018-10-11 Gary Benson <gbenson@redhat.com>
2047
2048 * interps.h (interp::m_name): Make private and mutable.
2049 * interps.c (interp::~interp): Free m_name.
2050
8ecfd7bd
SDJ
20512018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2052 Simon Marchi <simark@simark.ca>
2053
2054 * README (`configure' options): Add documentation for new
2055 "--enable-unit-tests" option.
2056 * acinclude.m4: Include "selftest.m4".
2057 * configure: Regenerate.
2058 * configure.ac: Use "GDB_AC_SELFTEST".
2059 * maint.c (maintenance_selftest): Update message informing
2060 that selftests have been disabled.
2061 (maintenance_info_selftests): Likewise.
2062 * selftest.m4: New file.
2063
33b031ce
GB
20642018-10-10 Gary Benson <gbenson@redhat.com>
2065
2066 * remote.c (remote_target::remote_send_printf): Add
2067 missing va_end found by Coverity.
2068
2cb2ba9a
MM
20692018-10-10 Markus Metzger <markus.t.metzger@intel.com>
2070
2071 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
2072
eff98030
TT
20732018-10-09 Tom Tromey <tom@tromey.com>
2074
2075 * configure: Rebuild.
2076 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
2077 * NEWS: Update --enable-ubsan documentation.
2078
04fd5eed
GB
20792018-10-09 Gary Benson <gbenson@redhat.com>
2080
2081 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
2082 found by Coverity.
2083
a0c3048e
TT
20842018-10-08 Tom Tromey <tom@tromey.com>
2085
2086 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
2087 variable.
2088 (riscv_fbsd_init_abi): Likewise.
2089
a51bb70c
WP
20902018-10-08 Weimin Pan <weimin.pan@oracle.com>
2091 * valops.c (value_struct_elt_for_reference): Rename local variable
2092 to work around the shadowing a previous local warning.
2093
74792ff7
JB
20942018-10-08 John Baldwin <jhb@FreeBSD.org>
2095
2096 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
2097 * NEWS: Mention new FreeBSD/riscv native configuration.
2098 * configure.host: Add riscv*-*-freebsd*.
2099 * configure.nat: Likewise.
2100 * riscv-fbsd-nat.c: New file.
2101
ed65e20b
JB
21022018-10-08 John Baldwin <jhb@FreeBSD.org>
2103
2104 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
2105 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
2106 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
2107 * NEWS: Mention new FreeBSD/riscv target.
2108 * configure.tgt: Add riscv*-*-freebsd*.
2109 * riscv-fbsd-tdep.c: New file.
2110 * riscv-fbsd-tdep.h: New file.
2111
498f7407
JB
21122018-10-08 John Baldwin <jhb@FreeBSD.org>
2113
2114 * regcache.h (struct regcache_map_entry): Note that this type can
2115 be used with traditional frame caches.
2116 * trad-frame.c (trad_frame_set_reg_regmap): New.
2117 * trad-frame.h (trad_frame_set_reg_regmap): New.
2118
9f6b697b
WP
21192018-10-08 Weimin Pan <weimin.pan@oracle.com>
2120
2121 PR c++/16841
2122 * valops.c (get_virtual_base_offset): New function.
2123 (value_struct_elt_for_reference): Use it to get virtual base offset
2124 and add it in calculating class member address.
2125
4399bce9 21262018-10-08 John Darrington <john@darrington.wattle.id.au>
c258c396 2127
4399bce9
PA
2128 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
2129 (check_producer): Check if the producer is codewarrior.
2130 (producer_is_codewarrior): New function.
2131 (lnp_state_machine::record_line): Ignore is_stmt flag for records
2132 produced by codewarrior.
2133 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
c258c396 2134
add5ded5
TT
21352018-10-06 Tom Tromey <tom@tromey.com>
2136
2137 PR python/19399:
2138 * python/py-inferior.c: Add "architecture" entry.
2139 (infpy_architecture): New function.
2140
51e78fc5
TT
21412018-10-06 Tom Tromey <tom@tromey.com>
2142
2143 PR python/21765:
2144 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
2145 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
2146 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
2147 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
2148
a8a5dbca
TT
21492018-10-06 Tom Tromey <tom@tromey.com>
2150
2151 PR build/17077:
2152 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
2153 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
2154 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
2155 #include.
2156
2a8be203
TT
21572018-10-06 Tom Tromey <tom@tromey.com>
2158
2159 * python/py-breakpoint.c (bppy_get_location): Handle a
2160 bp_breakpoint without a location.
2161
2fb009bb
TT
21622018-10-06 Tom Tromey <tom@tromey.com>
2163
2164 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
2165 (_RegEx): Reformat help text.
2166 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
2167 (AnyCallerIs, AnyCallerMatches): Reformat help text.
2168 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
2169 text.
2170 * python/lib/gdb/command/xmethods.py (InfoXMethod)
2171 (EnableXMethod, DisableXMethod): Remove help indentation.
2172 Capitalize meta-syntactic variables.
2173 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
2174 (EnableUnwinder, DisableUnwinder): Remove help indentation.
2175 Capitalize meta-syntactic variables.
2176 * python/lib/gdb/command/explore.py (ExploreCommand)
2177 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
2178 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
2179 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
2180 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
2181 Remove help indentation.
2182 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
2183 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
2184 (DisableFrameFilter, SetFrameFilterPriority)
2185 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
2186
7a956928
TT
21872018-10-06 Tom Tromey <tom@tromey.com>
2188
2189 PR tui/28819:
2190 * tui/tui-io.c (gdb_wgetch): New function.
2191 (tui_mld_getc, tui_getc): Use it.
2192
f8740dc5
TT
21932018-10-05 Tom Tromey <tom@tromey.com>
2194
2195 * sol-thread.c (sol_thread_target::wait): Rename inner
2196 "save_ptid".
2197
96643e35
TT
21982018-10-04 Tom Tromey <tom@tromey.com>
2199
2200 * configure: Rebuild.
2201 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
2202
d951f98b
TT
22032018-10-04 Tom Tromey <tom@tromey.com>
2204
2205 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
2206 declaration of "block".
2207
b8c88847
TT
22082018-10-04 Tom Tromey <tom@tromey.com>
2209
2210 * common/filestuff.c (fdwalk): Remove inner declaration of
2211 "result".
2212
ef789dc4
TT
22132018-10-04 Tom Tromey <tom@tromey.com>
2214
2215 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
2216 "structs_addr" and hoist declaration.
2217
3fba72f7
TT
22182018-10-04 Tom Tromey <tom@tromey.com>
2219
2220 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
2221 variable "size".
2222
795afcbb
TT
22232018-10-04 Tom Tromey <tom@tromey.com>
2224
2225 * mdebugread.c (parse_partial_symbols): Use std::string.
2226
b926417a
TT
22272018-10-04 Tom Tromey <tom@tromey.com>
2228
2229 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
2230 * p-valprint.c (pascal_val_print): Split inner "i" variable.
2231 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
2232 header.
2233 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
2234 more inner scope.
2235 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
2236 * varobj.c (varobj_update): Rename inner "newobj",
2237 "type_changed".
2238 * valprint.c (generic_emit_char): Rename inner "buf".
2239 * valops.c (find_overload_match): Rename inner "temp".
2240 (value_struct_elt_for_reference): Declare "v" in more inner
2241 scope.
2242 * v850-tdep.c (v850_push_dummy_call): Rename "len".
2243 * unittests/array-view-selftests.c (run_tests): Rename inner
2244 "vec".
2245 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
2246 header.
2247 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
2248 "tsv" in more inner scope.
2249 (print_one_static_tracepoint_marker): Rename inner
2250 "tuple_emitter".
2251 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
2252 (tic6x_push_dummy_call): Don't redeclare "addr".
2253 * target-float.c: Declare "dto" lower.
2254 * symtab.c (lookup_local_symbol): Rename inner "sym".
2255 (find_pc_sect_line): Rename inner "pc".
2256 * stack.c (print_frame): Don't redeclare "gdbarch".
2257 (return_command): Rename inner "gdbarch".
2258 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
2259 "sp".
2260 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
2261 header.
2262 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
2263 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
2264 scope.
2265 * remote.c (remote_target::update_thread_list): Don't redeclare
2266 "tp".
2267 (remote_target::process_initial_stop_replies): Rename inner
2268 "thread".
2269 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
2270 (remote_target::wait_as): Don't redeclare "stop_reply".
2271 (remote_target::get_thread_local_address): Rename inner
2272 "result".
2273 (remote_target::get_tib_address): Likewise.
2274
2275 * regcache.c (cooked_read_test): Rename "regnum".
2276 * record-btrace.c (cmd_record_btrace_start): Rename inner
2277 "exception".
2278 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
2279 loop header.
2280 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
2281 header.
2282 (ppu2spu_sniffer): Rename inner "buf".
2283 * parse.c (operator_check_standard): Rename inner "type",
2284 "objfile".
2285 * p-valprint.c (pascal_val_print): Introduce new scope for
2286 "low_bound", "high_bound".
2287 * p-exp.y (yylex): Declare "i" in loop header.
2288 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
2289 Lower declaration of "s".
2290 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
2291 header.
2292 (nios2_push_dummy_call): Rename "len".
2293 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
2294 "buf".
2295 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
2296 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
2297 (linux_xfer_osdata_modules): Likewise.
2298 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
2299 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
2300 (mips_o64_push_dummy_call): Likewise.
2301 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
2302 "op".
2303 * mi/mi-main.c (list_available_thread_groups): Rename inner
2304 "tuple_emitter".
2305 (mi_cmd_data_read_memory): Rename inner "opts".
2306 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
2307 "tuple_emitter".
2308 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
2309 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
2310 more inner scope.
2311 (parse_partial_symbols): Rename inner "pst", "p", "name"
2312 * main.c (captured_main_1): Rename inner "i"s.
2313 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
2314 "oso2".
2315 * linux-tdep.c (linux_info_proc): Rename inner "filename".
2316 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
2317 * infrun.c (handle_no_resumed): Don't redeclare "thread".
2318 (handle_signal_stop): Rename inner "gdbarch".
2319 (handle_command): Declare "signum" in loop header.
2320 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
2321 "status".
2322 (examine_prologue): Rename inner "sol" and "sof".
2323 (ia64_extract_return_value): Rename inner "val". Declare another
2324 "val" in a more inner scope.
2325 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
2326 inner scope.
2327 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
2328 "except".
2329 * findvar.c (default_read_var_value): Don't redeclare "addr".
2330 * f-exp.y (yylex): Declare "i" in loop header.
2331 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
2332 Rename inner "type", "expect_type".
2333 (evaluate_subexp_for_sizeof): Rename inner "pc".
2334 * elfread.c (elf_symfile_read): Rename inner "abfd".
2335 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
2336 "bytes_read".
2337 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
2338 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
2339 (dwarf_decode_line_header): Rename inner "lh".
2340 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
2341 "offset". Declare "i" in loop header.
2342 (disassemble_dwarf_expression): Rename inner "addr_size".
2343 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
2344 inner "result".
2345 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
2346 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
2347 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
2348 "inner_list_emitter".
2349 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
2350 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
2351 declaration in a block.
2352 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
2353 * cp-valprint.c (cp_print_value_fields): Don't redeclare
2354 "obstack_final_size".
2355 * cp-support.c (inspect_type): Declare "i" in loop header.
2356 * compile/compile.c (compile_instance::insert_symbol_error):
2357 Rename inner "e".
2358 * common/agent.c (agent_run_command): Remove inner "ret"
2359 declaration.
2360 * coffread.c (coff_symfile_read): Rename inner "name".
2361 (coff_symfile_read): Rename inner "abfd".
2362 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
2363 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
2364 "high".
2365 * c-exp.y (lex_one_token): Move "len" declaration lower.
2366 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
2367 "gdbarch".
2368 (create_exception_master_breakpoint): Likewise. Don't redeclare
2369 "b".
2370 (watch_command_1): Declare "mark" later.
2371 (clear_command): Don't shadow "a" or "b".
2372 (delete_command): Rename inner "b".
2373 (delete_trace_command): Likewise.
2374 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
2375 "op".
2376 (arm_gdbarch_init): Remove inner "e_flags".
2377 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
2378 "offset" in inner blocks.
2379
1f88d0c8
SM
23802018-10-04 Simon Marchi <simon.marchi@ericsson.com>
2381
2382 * dwarf-index-write.c (file_write): Don't write if the vector is
2383 empty.
2384
5c4481cc
TV
23852018-10-05 Tom de Vries <tdevries@suse.de>
2386
2387 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
2388 PyArg_ParseTuple call.
2389
96b1ad86
TV
23902018-10-05 Tom de Vries <tdevries@suse.de>
2391
2392 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
2393 PyArg_ParseTuple call.
2394
d2f7dcb2
JB
23952018-10-04 Joel Brobecker <brobecker@adacore.com>
2396
2397 * psymtab.c (recursively_search_psymtabs): Reformat parameters
2398 to avoid exceeding 80 characters per line limit.
2399
5ca8c39f
TT
24002018-10-04 Tom Tromey <tom@tromey.com>
2401
2402 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2403 (reread_symbols): Update.
2404 * complaints.h (clear_complaints): Remove argument.
2405 * complaints.c (enum complaint_series): Remove.
2406 (series): Remove global.
2407 (complaint_internal): Update.
2408 (clear_complaints): Remove argument.
2409
e79497a1
TT
24102018-10-04 Tom Tromey <tom@tromey.com>
2411
2412 * symfile.c (symbol_file_add_with_addrs): Do not print "no
2413 debugging symbols" message if there is a separate debug objfile.
2414
3453e7e4
TT
24152018-10-04 Tom Tromey <tom@tromey.com>
2416
2417 PR cli/19551:
2418 * symfile.c (symbol_file_add_with_addrs): Update output.
2419 * psymtab.c (require_partial_symbols): Update output.
2420
6afcf761
TT
24212018-10-04 Tom Tromey <tom@tromey.com>
2422
2423 PR cli/22234:
2424 * complaints.c: Emit \n.
2425
22068491
TT
24262018-10-04 Tom Tromey <tom@tromey.com>
2427
2428 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
2429 (separate_debug_file_exists, find_separate_debug_file)
2430 (add_symbol_file_command, reread_symbols, allocate_symtab)
2431 (allocate_compunit_symtab): Use filtered printing, not
2432 unfiltered.
2433 * psymtab.c (require_partial_symbols, dump_psymtab)
2434 (allocate_psymtab): Use filtered printing, not unfiltered.
2435
9fdd7193
TT
24362018-10-04 Tom Tromey <tom@tromey.com>
2437
2438 * complaints.c (complaint_internal): Correctly check complaint
2439 count.
2440
3f2cf4dc
TT
24412018-10-04 Tom Tromey <tom@tromey.com>
2442
2443 * complaints.h (struct complaints): Remove declaration.
2444 * complaints.c (clear_complaints): Remove an unused variable.
2445
4f9bdf7f
RO
24462018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2447
2448 * MAINTAINERS (Write After Approval): Add self.
2449
875e5398
TT
24502018-10-03 Tom Tromey <tom@tromey.com>
2451
2452 * guile/scm-value.c (gdbscm_value_to_string): Initialize
2453 "buffer_contents".
2454 * coffread.c (coff_symtab_read): Initialize "newobj".
2455
8634679f
SM
24562018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
2457
2458 * dwarf2read.c (read_func_scope): Remove struct keyword in
2459 range-based for.
2460
f35d5ade
TT
24612018-10-03 Tom Tromey <tom@tromey.com>
2462
2463 * README: Mention --enable-ubsan.
2464 * NEWS: Mention --enable-ubsan.
2465 * acinclude.m4: Include sanitize.m4.
2466 * configure: Rebuild.
2467 * configure.ac: Call AM_GDB_UBSAN.
2468 * sanitize.m4: New file.
2469
1dffa580
TT
24702018-10-03 Tom Tromey <tom@tromey.com>
2471
2472 * expression.h (enum exp_opcode): Use uint8_t as base type.
2473 * expprint.c (op_name): Handle invalid opcodes.
2474
5e70ee09
TT
24752018-10-03 Tom Tromey <tom@tromey.com>
2476
2477 * parse.c (prefixify_expression): Add assert.
2478 (parse_exp_in_context_1): Throw exception if the expression is
2479 empty.
2480
4dd1b460
TT
24812018-10-03 Tom Tromey <tom@tromey.com>
2482
2483 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
2484
20562150
TT
24852018-10-03 Tom Tromey <tom@tromey.com>
2486
2487 * c-exp.y (parse_number): Work in unsigned. Remove casts.
2488
d359392f
TT
24892018-10-03 Tom Tromey <tom@tromey.com>
2490
2491 * dwarf2read.c (read_subrange_type): Make "negative_mask"
2492 unsigned.
2493
0101665f
TT
24942018-10-03 Tom Tromey <tom@tromey.com>
2495
2496 * findvar.c (extract_integer): Do work in an unsigned type.
2497
ad69edbb
TT
24982018-10-03 Tom Tromey <tom@tromey.com>
2499
2500 * common/enum-flags.h (enum_flags::operator~): Add static assert.
2501 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
2502 base type.
2503 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
2504 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
2505 type.
2506 * c-lang.h (enum c_string_type_values): Use unsigned as base
2507 type.
2508 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
2509
780942fc
TT
25102018-10-03 Tom Tromey <tom@tromey.com>
2511
2512 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
2513 <~dwarf2_frame_state_reg_info>: Update.
2514 <dwarf2_frame_state_reg_info>: Update.
2515 <alloc_regs>: Add assertion. Update.
2516 <reg>: Now a std::vector.
2517 <num_regs>: Remove.
2518 <swap>: Update.
2519 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
2520 (execute_cfa_program_test, dwarf2_frame_cache): Update.
2521
10657c04
TT
25222018-10-03 Tom Tromey <tom@tromey.com>
2523
2524 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
2525
34c0fc00
PW
25262018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2527
2528 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
2529
2398abf8
TT
25302018-10-02 Tom Tromey <tom@tromey.com>
2531
2532 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
2533
4399bce9 25342018-10-02 John Darrington <john@darrington.wattle.id.au>
c1168a2f
JD
2535
2536 * NEWS: Mention changed commands.
2537 * ser-uds.c: New file.
2538 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
2539 * configure: Regenerate.
2540 * Makefile.in: Add new file.
2541 * serial.c (serial_open): Check if filename is a socket
4399bce9 2542 and lookup the appropriate interface accordingly.
c1168a2f 2543
05c71722
AH
25442018-10-01 Alan Hayward <alan.hayward@arm.com>
2545
2546 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
2547 define.
2548 (AARCH64_EXTRA_MAGIC): Likewise.
2549 (AARCH64_FPSIMD_MAGIC): Likewise.
2550 (AARCH64_SVE_MAGIC): Likewise.
2551 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
2552 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
2553 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
2554 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
2555 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
2556 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
2557 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
2558 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
2559 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
2560 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
2561 (read_aarch64_ctx): Add function.
2562 (aarch64_linux_sigframe_init): Detect FP registers.
2563
c74e7cb9
AH
25642018-10-01 Alan Hayward <alan.hayward@arm.com>
2565
2566 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
2567 (AARCH64_D0_REGNUM): Likewise.
2568 (AARCH64_S0_REGNUM): Likewise.
2569 (AARCH64_H0_REGNUM): Likewise.
2570 (AARCH64_B0_REGNUM): Likewise.
2571 (AARCH64_SVE_V0_REGNUM): Likewise.
2572 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
2573 (AARCH64_D0_REGNUM): Likewise.
2574 (AARCH64_S0_REGNUM): Likewise.
2575 (AARCH64_H0_REGNUM): Likewise.
2576 (AARCH64_B0_REGNUM): Likewise.
2577 (AARCH64_SVE_V0_REGNUM): Likewise.
2578
12b164e9
GB
25792018-10-01 Gary Benson <gbenson@redhat.com>
2580
2581 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
2582 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
2583 prfpregset_t instead of gdb_prfpregset_t.
2584 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
2585 * configure, config.in: Rebuild.
2586
7c619dbd
GB
25872018-10-01 Gary Benson <gbenson@redhat.com>
2588
2589 * common/gdb_proc_service.h: New file, factored out from...
2590 * gdb_proc_service.h: Moved common code to the above file.
2591 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
2592
358ffcf2
GB
25932018-10-01 Gary Benson <gbenson@redhat.com>
2594
2595 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
2596 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
2597
43b7e92b
GB
25982018-10-01 Gary Benson <gbenson@redhat.com>
2599
2600 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
2601 (AC_CHECK_HEADERS): Check for linux/elf.h.
2602 * configure, config.in: Rebuild.
2603 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
2604 doesn't define elf_fpregset_t.
2605
3795e814
GB
26062018-10-01 Gary Benson <gbenson@redhat.com>
2607
2608 * gdb_proc_service.h: Whitespace change.
2609
4176f14d
TT
26102018-10-01 Tom Tromey <tom@tromey.com>
2611
2612 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
2613 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
2614 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
2615
a95746f9
TT
26162018-10-01 Tom Tromey <tom@tromey.com>
2617
2618 * README: Minor change.
2619
dd203782
PA
26202018-09-30 Pedro Alves <palves@redhat.com>
2621
2622 * darwin-nat-info.c (darwin_debug_regions_recurse)
2623 (info_mach_exceptions_command): Remove unused local variables.
2624 * darwin-nat.c (darwin_decode_notify_message)
2625 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
2626 (darwin_stop_inferior, darwin_setup_exceptions)
2627 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
2628 (darwin_nat_target::attach, darwin_nat_target::detach)
2629 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
2630 local variables.
2631 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
2632 variables.
2633
c82a2e6f
TT
26342018-09-29 Tom Tromey <tom@tromey.com>
2635
2636 * README: Remove some leftover text.
2637
7f0bd420
TT
26382018-09-29 Tom Tromey <tom@tromey.com>
2639
2640 * PROBLEMS: Rewrite.
2641 * README: Update.
2642
f37bc8b1
JB
26432018-09-28 John Baldwin <jhb@FreeBSD.org>
2644
2645 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
2646 case with explicit breakpoint kind.
2647 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
2648 'additional_info' and related logic.
2649 (riscv_debug_breakpoints): New variable.
2650 (riscv_breakpoint_kind_from_pc): Use the length of the existing
2651 instruction to determine the breakpoint kind.
2652 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
2653 flag. Update description of 'set/show riscv
2654 use-compressed-breakpoints' flag.
2655
f67ffa6a
AB
26562018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
2657
2658 (NEWS): Mention changes to frame related commands.
2659 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
2660 (add_prefix_cmd_suppress_notification): New function.
2661 (add_com_suppress_notification): Call
2662 add_cmd_suppress_notification.
2663 * command.h (add_cmd_suppress_notification): Declare.
2664 (add_prefix_cmd_suppress_notification): Declare.
2665 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
2666 (parse_frame_specification): Moved from stack.c, with
2667 simplification to handle a single argument.
2668 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
2669 switch to the selected frame. Add a header comment.
2670 * stack.c: Remove 'safe-ctype.h' include.
2671 (find_frame_for_function): Add declaration.
2672 (find_frame_for_address): New function.
2673 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
2674 (frame_selection_by_function_completer): New function.
2675 (info_frame_command): Rename to...
2676 (info_frame_command_core): ...this, and update parameter types.
2677 (select_frame_command): Rename to...
2678 (select_frame_command_core): ...this, and update parameter types.
2679 (frame_command): Rename to...
2680 (frame_command_core): ...this, and update parameter types.
2681 (class frame_command_helper): New class to wrap implementations of
2682 frame related sub-commands.
2683 (frame_apply_cmd_list): New static global.
2684 (frame_cmd_list): Make static.
2685 (select_frame_cmd_list): New global for sub-commands.
2686 (info_frame_cmd_list): New global for sub-commands.
2687 (_initialize_stack): Register sub-commands for 'frame',
2688 'select-frame', and 'info frame'. Update 'frame apply' commands
2689 to use frame_apply_cmd_list. Move function local static
2690 frame_apply_list to file static frame_apply_cmd_list for
2691 consistency.
2692 * stack.h (select_frame_command): Delete declarationn.
2693 (select_frame_for_mi): Declare new function.
2694
d354055e
AB
26952018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
2696
2697 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
2698 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
2699 and NOP.
2700
85392414
SM
27012018-09-26 Simon Marchi <simon.marchi@ericsson.com>
2702
2703 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
2704
896ee098
TT
27052018-09-26 Tom Tromey <tom@tromey.com>
2706
2707 * valops.c (auto_abandon): Remove dead code.
2708
57dbb3af
TT
27092018-09-26 Tom Tromey <tom@tromey.com>
2710
2711 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
2712
b5a9bfbe
TT
27132018-09-24 Tom Tromey <tom@tromey.com>
2714
2715 * common/pathstuff.c (get_standard_cache_dir): Make
2716 "xdg_cache_home" and "home" const.
2717 * top.c (init_history): Make "tmpenv" const.
2718 * main.c (get_init_files): Make "homedir" const.
2719
ae778caf
TT
27202018-09-23 Tom Tromey <tom@tromey.com>
2721
2722 PR python/18852:
2723 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
2724
2b4ad2fe
TT
27252018-09-23 Tom Tromey <tom@tromey.com>
2726
2727 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
2728 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
2729 * python/python-internal.h (gdbpy_handle_exception): Declare.
2730 * python/py-utils.c (gdbpy_handle_exception): New function.
2731
fd3ba736
TT
27322018-09-23 Tom Tromey <tom@tromey.com>
2733
2734 PR python/17284:
2735 * python/py-type.c (typy_template_argument): Check for negative
2736 argument number.
2737
39a24317
TT
27382018-09-23 Tom Tromey <tom@tromey.com>
2739
2740 PR python/14062:
2741 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
2742
f5769a2c
TT
27432018-09-23 Tom Tromey <tom@tromey.com>
2744
2745 PR python/18170:
2746 * python/py-value.c (valpy_int): Allow conversion from pointer
2747 type.
2748
1c1e54f6
TT
27492018-09-23 Tom Tromey <tom@tromey.com>
2750
2751 PR python/20126:
2752 * python/py-value.c (valpy_int): Respect type sign.
2753
fb4fa946
TT
27542018-09-23 Tom Tromey <tom@tromey.com>
2755
2756 PR python/18352;
2757 * python/py-value.c (valpy_float): Allow conversions from int or
2758 char.
2759 (valpy_int, valpy_long): Allow conversions from float.
2760
65773341
TT
27612018-09-23 Tom Tromey <tom@tromey.com>
2762
2763 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
2764 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
2765
1db88d22
RO
27662018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2767
2768 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
2769 __sighndlr.
2770 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
2771
a44294f5
JT
27722018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
2773
2774 * windows-nat.c (windows_nat_target::wait): Remove a spurious
2775 target_terminal::ours().
2776
0c0a40e0
SM
27772018-09-23 Simon Marchi <simon.marchi@ericsson.com>
2778
2779 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
2780 of vl to ULONGEST.
2781
4daf1902
YS
27822018-09-21 Yacov Simhony <ysimhony@gmail.com>
2783
2784 * breakpoint.c (update_inserted_breakpoint_locations): Remove
2785 redundant condition.
2786
c475f569
RO
27872018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2788
2789 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
2790
2791 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
2792 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
2793 * sol-thread.c (ps_pdmodel): Don't guard definition.
2794
2795 * procfs.c: Fix formatting.
2796
2797 * procfs.c (sysset_t_alloc): Remove.
2798 (create_procinfo): Use XNEW instead of sysset_t_alloc.
2799 (procfs_debug_inferior): Likewise.
2800 (procfs_set_exec_trap): Likewise.
2801 (proc_set_traced_sysentry): Don't allocate argp dynamically.
2802 (proc_set_traced_sysexit): Likewise.
2803
2804 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
2805 (dead_procinfo): Likewise.
2806 (proc_warn): Likewise.
2807 (proc_error): Likewise.
2808 (proc_get_LDT_entry): Likewise.
2809 (do_attach): Likewise.
2810 (procfs_target::pid_to_str): Likewise.
2811 (iterate_over_mappings): Likewise.
2812
2813 * procfs.c (create_procinfo): Fix ARI warning.
2814 (proc_get_status): Likewise.
2815 (proc_stop_process): Likewise.
2816 (proc_run_process): Likewise.
2817 (proc_kill): Likewise.
2818 (proc_get_LDT_entry): Likewise.
2819 (procfs_find_LDT_entry): Likewise.
2820 (proc_update_threads): Likewise.
2821 (proc_iterate_over_threads): Likewise.
2822 (do_attach): Likewise.
2823 (procfs_xfer_memory): Likewise.
2824 (invalidate_cache): Likewise.
2825 (procfs_target::resume): Likewise.
2826 (procfs_init_inferior): Likewise.
2827 (procfs_set_exec_trap): Likewise.
2828 (procfs_target::thread_alive): Likewise.
2829 (procfs_target::pid_to_exec_file): Likewise.
2830 (iterate_over_mappings): Likewise.
2831 (procfs_target::make_corefile_notes): Likewise.
2832 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
2833
2834 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
2835 (procfs_find_LDT_entry): Likewise.
2836 * sol-thread.c (ps_lgetLDT): Likewise.
2837
4206c05e
RO
28382018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2839
2840 PR tdep/17903
2841 * procfs.c (procfs_target): Declare pid_to_exec_file.
2842 (procfs_target::pid_to_exec_file): New.
2843
3d282ac3
RO
28442018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2845
2846 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
2847 renaming.
2848 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
2849 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
2850
8c93fae6
RO
28512018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2852
2853 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
2854 (supply_fpregset, fill_fpregset): Move ...
2855 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
2856 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
2857 Remove references to ioctl-based procfs.
2858 Include <sys/reg.h>.
2859 Remove PR_MODEL_NATIVE guards.
2860 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
2861 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
2862
79b32f4a
XR
28632018-09-19 Xavier Roirand <roirand@adacore.com>
2864
2865 PR gdb/20981:
2866 * solib-darwin.c (darwin_get_dyld_bfd): New function.
2867 (darwin_solib_get_all_image_info_addr_at_init): Update call.
2868 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
2869
07147793
JB
28702018-09-19 John Baldwin <jhb@FreeBSD.org>
2871
2872 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
2873 (fbsd_print_sockaddr_in6): Likewise.
2874
23be8da7
RB
28752018-09-19 Richard Bunt <richard.bunt@arm.com>
2876 Chris January <chris.january@arm.com>
2877
2878 * eval.c (skip_undetermined_arglist): Skip argument list helper.
2879 (evaluate_subexp_standard): Return a dummy type when
2880 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
2881 OP_F77_UNDETERMINED_ARGLIST case.
2882 * expression.h (enum noside): Update comment.
2883
7307a73a
RO
28842018-09-19 George Vasick <george.vasick@oracle.com>
2885
2886 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
2887
13db92d3
RO
28882018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
2889 April Chin <april.chin@oracle.com>
2890 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2891
2892 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
2893 uint_t lwpid_t.
2894 (create_procinfo): Print pids in /proc without leading zeros.
2895
3d50f170
SL
28962018-09-18 Sandra Loosemore <sandra@codesourcery.com>
2897
2898 * nios2-tdep.c (nios2_gcc_target_options): New.
2899 (nios2_gdb_arch_init): Install new hook.
2900
b567ca63
SM
29012018-09-18 Simon Marchi <simon.marchi@ericsson.com>
2902
2903 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
2904 New file.
2905 * update-gnulib.sh: Apply patch.
2906 * configure: Re-generate.
2907
73f1bd76
JB
29082018-09-18 John Baldwin <jhb@FreeBSD.org>
2909
2910 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
2911 description. Make "info proc" command descriptions more
2912 consistent.
2913
8b113111
JB
29142018-09-18 John Baldwin <jhb@FreeBSD.org>
2915
2916 * NEWS: Mention 'info proc files' command.
2917
7e69672e
JB
29182018-09-18 John Baldwin <jhb@FreeBSD.org>
2919
2920 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
2921 descriptors for IP_FILES and IP_ALL.
2922
57c2a98a
JB
29232018-09-18 John Baldwin <jhb@FreeBSD.org>
2924
2925 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
2926 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
2927 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
2928 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
2929 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
2930 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
2931 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
2932 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
2933 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
2934 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
2935 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
2936 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
2937 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
2938 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
2939 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
2940 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
2941 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
2942 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
2943 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
2944 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
2945 (struct fbsd_sockaddr_un): New types.
2946 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
2947 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
2948 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
2949 (fbsd_core_info_proc_files): New functions.
2950 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
2951 IP_ALL.
2952 * fbsd-tdep.h (fbsd_info_proc_files_header)
2953 (fbsd_info_proc_files_entry): New.
2954
e98ee8c4
JB
29552018-09-18 John Baldwin <jhb@FreeBSD.org>
2956
2957 * defs.h (enum info_proc_what) [IP_FILES]: New value.
2958 * infcmd.c (info_proc_cmd_files): New function.
2959 (_initialize_infcmd): Register 'info proc files' command.
2960
725e2999
JB
29612018-09-18 John Baldwin <jhb@FreeBSD.org>
2962
2963 * gnulib/aclocal-m4-deps.mk: Re-generate.
2964 * gnulib/aclocal.m4: Re-generate.
2965 * gnulib/config.in: Re-generate.
2966 * gnulib/configure: Re-generate.
2967 * gnulib/import/Makefile.am: Re-generate.
2968 * gnulib/import/Makefile.in: Re-generate.
2969 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2970 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2971 * gnulib/import/arpa_inet.in.h: New file.
2972 * gnulib/import/inet_ntop.c: New file.
2973 * gnulib/import/m4/arpa_inet_h.m4: New file.
2974 * gnulib/import/m4/inet_ntop.m4: New file.
2975 * gnulib/import/m4/netinet_in_h.m4: New file.
2976 * gnulib/import/m4/socklen.m4: New file.
2977 * gnulib/import/m4/sockpfaf.m4: New file.
2978 * gnulib/import/m4/stdalign.m4: New file.
2979 * gnulib/import/m4/sys_uio_h.m4: New file.
2980 * gnulib/import/netinet_in.in.h: New file.
2981 * gnulib/import/stdalign.in.h: New file.
2982 * gnulib/import/sys_socket.c: New file.
2983 * gnulib/import/sys_socket.in.h: New file.
2984 * gnulib/import/sys_uio.in.h: New file.
2985 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
2986 module.
2987
2afffa7f
JB
29882018-09-18 John Baldwin <jhb@FreeBSD.org>
2989
2990 * gnulib/aclocal-m4-deps.mk: New file.
2991 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
2992 deterministically.
2993
9f235e09
JB
29942018-09-18 John Baldwin <jhb@FreeBSD.org>
2995
2996 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
2997 KVE_PATH.
2998
40f03055
TT
29992018-09-18 Tom Tromey <tom@tromey.com>
3000
3001 * compile/compile-object-load.c (struct
3002 link_hash_table_cleanup_data): Add constructor and destructor.
3003 Use DISABLE_COPY_AND_ASSIGN.
3004 (~link_hash_table_cleanup_data): Rename from
3005 link_hash_table_free. Now a destructor.
3006 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
3007
c9e0a7e3
TT
30082018-09-18 Tom Tromey <tom@tromey.com>
3009
3010 * compile/compile-object-run.c (do_module_cleanup): Use delete.
3011 * compile/compile-object-load.c (struct munmap_list): Move to
3012 header file.
3013 (munmap_list::add): Rename from munmap_list_add; rewrite.
3014 (munmap_list::~munmap_list): Rename from munmap_list_free.
3015 (munmap_listp_free_cleanup): Remove.
3016 (compile_object_load): Update.
3017 * compile/compile-object-load.h (struct munmap_list): Move from
3018 compile-object-load.c. Rewrite.
3019
3ff2c72e
AH
30202018-09-18 Alan Hayward <alan.hayward@arm.com>
3021
3022 * aarch64-tdep.c (pass_in_v): Use register size.
3023 (aarch64_extract_return_value): Likewise.
3024 (aarch64_store_return_value): Likewise.
3025
206c1947
RO
30262018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3027
3028 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
3029 rlim_t.
3030
6eb5dbce
PW
30312018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3032
3033 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
3034 Fix short help line.
3035
ae292b3a
TT
30362018-09-17 Tom Tromey <tom@tromey.com>
3037
3038 PR python/20445:
3039 * configure: Rebuild.
3040 * configure.ac: Conditionally use -DNDEBUG for Python.
3041
da658607
TT
30422018-09-17 Tom Tromey <tom@tromey.com>
3043
3044 * configure: Rebuild.
3045 * configure.ac: Use gmp as a library dependency when checking for
3046 mpfr.
3047
d35da542
PA
30482018-09-17 Pedro Alves <palves@redhat.com>
3049
3050 * python/py-inferior.c (find_inferior_object): Delete.
3051
461464f2
SM
30522018-09-17 Simon Marchi <simon.marchi@ericsson.com>
3053
3054 * compile/compile-cplus-types.c
3055 (compile_cplus_instance::enter_scope): Don't use new_scope after
3056 std::move.
3057
e6cd1dc1
TT
30582018-09-17 Tom Tromey <tom@tromey.com>
3059
3060 * common/pathstuff.c (get_standard_cache_dir): Use
3061 ~/Library/Caches on macOS.
3062 * common/pathstuff.h (get_standard_cache_dir): Update comment.
3063
8588b356
SM
30642018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
3065
3066 PR python/23669
3067 * breakpoint.c (commands_cmd_element): New.
3068 (_initialize_breakpoint): Assign commands_cmd_element.
3069 * breakpoint.h (commands_cmd_element): New.
3070 * cli/cli-script.c (while_cmd_element, if_command,
3071 define_cmd_element): New.
3072 (command_name_equals): Remove.
3073 (process_next_line): Compare commands by pointer, not by name.
3074 (_initialize_cli_script): Assign the various cmd_list_element
3075 variables.
3076 * compile/compile.c (compile_cmd_element): New.
3077 (_initialize_compile): Assign compile_cmd_element.
3078 * compile/compile.h (compile_cmd_element): New.
3079 * guile/guile.c (guile_cmd_element): New.
3080 (install_gdb_commands): Assign guile_cmd_element.
3081 * guile/guile.h (guile_cmd_element): New.
3082 * python/python.c (python_cmd_element): New.
3083 (_initialize_python): Assign python_cmd_element.
3084 * python/python.h (python_cmd_element): New.
3085 * tracepoint.c (while_stepping_cmd_element): New.
3086 (_initialize_tracepoint): Assign while_stepping_cmd_element.
3087 * tracepoint.h (while_stepping_cmd_element): New.
3088
cb524840
TT
30892018-09-17 Tom Tromey <tom@tromey.com>
3090
3091 * infrun.c (save_infcall_suspend_state): Return
3092 infcall_suspend_state_up.
3093 (save_infcall_control_state): Return infcall_control_state_up.
3094 * inferior.h (save_infcall_suspend_state)
3095 (save_infcall_control_state): Declare later. Return unique
3096 pointers.
3097
2d844eaf
TT
30982018-09-17 Tom Tromey <tom@tromey.com>
3099
3100 * infrun.c (struct stop_context): Declare constructor,
3101 destructor, "changed" method.
3102 (stop_context::stop_context): Rename from save_stop_context.
3103 (stop_context::~stop_context): Rename from
3104 release_stop_context_cleanup.
3105 (normal_stop): Update.
3106 (stop_context::changed): Rename from stop_context_changed. Return
3107 bool.
3108
c7c4d3fa
TT
31092018-09-17 Tom Tromey <tom@tromey.com>
3110
3111 * inferior.h (struct infcall_suspend_state_deleter): New.
3112 (infcall_suspend_state_up): New typedef.
3113 (struct infcall_control_state_deleter): New.
3114 (infcall_control_state_up): New typedef.
3115 (make_cleanup_restore_infcall_suspend_state)
3116 (make_cleanup_restore_infcall_control_state): Don't declare.
3117 * infcall.c (call_function_by_hand_dummy): Update.
3118 * infrun.c (do_restore_infcall_suspend_state_cleanup)
3119 (make_cleanup_restore_infcall_suspend_state): Remove.
3120 (do_restore_infcall_control_state_cleanup)
3121 (make_cleanup_restore_infcall_control_state): Remove.
3122
ee841dd8
TT
31232018-09-17 Tom Tromey <tom@tromey.com>
3124
3125 * gdbthread.h (struct thread_control_state): Add initializer.
3126 (class thread_info) <control>: Remove initializer.
3127 * inferior.h (struct inferior_control_state): Add initializer.
3128 (class inferior) <control>: Remove initializer.
3129 (exit_inferior_1): Update.
3130 * infrun.c (struct infcall_control_state): Add constructors.
3131 (save_infcall_control_state): Use new.
3132 (restore_infcall_control_state, discard_infcall_control_state):
3133 Use delete.
3134
117f580a
TT
31352018-09-17 Tom Tromey <tom@tromey.com>
3136
3137 * infrun.c (struct infcall_suspend_state) <registers>: Now a
3138 unique_ptr.
3139 <siginfo_data>: Now a unique_xmalloc_ptr.
3140 (save_infcall_suspend_state, restore_infcall_suspend_state)
3141 (discard_infcall_suspend_state)
3142 (get_infcall_suspend_state_regcache): Update.
3143
dd848631
TT
31442018-09-17 Tom Tromey <tom@tromey.com>
3145
3146 * gdbthread.h (struct thread_suspend_state): Add initializers.
3147 (class thread_info) <suspend>: Remove initializer.
3148 * infrun.c (struct infcall_suspend_state): Add initializers.
3149 (save_infcall_suspend_state): Use new.
3150 (discard_infcall_suspend_state): Use delete.
3151
1a338907
TT
31522018-09-16 Tom Tromey <tom@tromey.com>
3153
3154 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
3155 Remove.
3156 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
3157 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
3158 (py_varobj_iter_new): Likewise.
3159 (py_varobj_get_iterator): Use gdbpy_ref.
3160
4a137fec
TT
31612018-09-16 Tom Tromey <tom@tromey.com>
3162
3163 * python/py-threadevent.c (py_get_event_thread): Simplify.
3164 * python/py-inferior.c (infpy_thread_from_thread_handle):
3165 Return immediately after calling thread_to_thread_object. Use
3166 Py_RETURN_NONE.
3167 (thread_to_thread_object): Set the exception on a NULL return.
3168
8ff03f0b
SM
31692018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3170
3171 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
3172
94c8b725
TT
31732018-09-16 Tom Tromey <tom@tromey.com>
3174
3175 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
3176 Remove.
3177
db1337cc
TT
31782018-09-16 Tom Tromey <tom@tromey.com>
3179
3180 * python/python-internal.h (thread_to_thread_object): Change
3181 return type.
3182 * python/py-inferior.c (thread_to_thread_object): Return a new
3183 reference.
3184 (infpy_thread_from_thread_handle): Update.
3185 * python/py-infthread.c (gdbpy_selected_thread): Update.
3186 * python/py-stopevent.c (create_stop_event_object): Update.
3187 * python/py-threadevent.c (py_get_event_thread): Return a new
3188 reference.
3189 (py_get_event_thread): Update.
3190 * python/py-event.h (py_get_event_thread): Change return type.
3191 * python/py-continueevent.c (create_continue_event_object):
3192 Update.
3193
0a9db5ad
TT
31942018-09-16 Tom Tromey <tom@tromey.com>
3195
3196 * python/py-progspace.c (pspy_get_objfiles): Update.
3197 * python/python-internal.h (objfile_to_objfile_object): Change
3198 return type.
3199 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3200 Update.
3201 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
3202 Update.
3203 * python/python.c (gdbpy_get_current_objfile): Update.
3204 (gdbpy_objfiles): Update.
3205 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
3206 Update.
3207 (objfile_to_objfile_object): Return a new reference.
3208 * python/py-symtab.c (stpy_get_objfile): Update.
3209 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
3210 Update.
3211
3c7aa307
TT
32122018-09-16 Tom Tromey <tom@tromey.com>
3213
3214 * python/py-inferior.c (infpy_get_progspace): Update.
3215 * python/python-internal.h (pspace_to_pspace_object): Change
3216 return type.
3217 * python/py-newobjfileevent.c
3218 (create_clear_objfiles_event_object): Update.
3219 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
3220 Update.
3221 * python/python.c (gdbpy_get_current_progspace): Update.
3222 (gdbpy_progspaces): Update.
3223 * python/py-progspace.c (pspace_to_pspace_object): Return a new
3224 reference.
3225 * python/py-objfile.c (objfpy_get_progspace): Update.
3226 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
3227 Update.
3228
8743a9cd
TT
32292018-09-16 Tom Tromey <tom@tromey.com>
3230
3231 * python/lib/gdb/__init__.py (current_progspace, objfiles)
3232 (solib_name, block_for_pc, find_pc_line): New functions.
3233 (execute_unwinders): Update.
3234 * python/py-block.c (gdbpy_block_for_pc): Remove.
3235 * python/py-inferior.c (infpy_get_progspace): New function.
3236 (inferior_object_getset) <progspace>: Add.
3237 * python/py-progspace.c (pspy_objfiles): Rewrite.
3238 (pspy_solib_name, pspy_block_for_pc)
3239 (pspy_find_pc_line, pspy_is_valid): New functions.
3240 (progspace_object_methods): Add entries for solib_name,
3241 block_for_pc, find_pc_line, is_valid.
3242 * python/python-internal.h (gdbpy_block_for_pc)
3243 (build_objfiles_list): Don't declare.
3244 * python/python.c: Don't include solib.h.
3245 (gdbpy_solib_name, gdbpy_find_pc_line)
3246 (gdbpy_get_current_progspace, build_objfiles_list)
3247 (gdbpy_objfiles): Remove.
3248 (GdbMethods) <current_progspace, objfiles, block_for_pc,
3249 solib_name, find_pc_line>: Remove entries.
3250
65e65158
TT
32512018-09-16 Tom Tromey <tom@tromey.com>
3252
3253 * top.c (new_ui_command): Use GNU style for metasyntactic
3254 variables.
3255 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
3256 variables.
3257 * maint.c (maintenance_translate_address): Remove "<>" around
3258 text.
3259 * interps.c (interpreter_exec_cmd): Use GNU style for
3260 metasyntactic variables.
3261 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
3262 metasyntactic variables.
3263 * tracepoint.c (tfind_range_command): Use GNU style for
3264 metasyntactic variables.
3265 (tfind_outside_command): Likewise.
3266 (_initialize_tracepoint): Likewise.
3267 * remote.c (extended_remote_target::create_inferior): Use GNU
3268 style for metasyntactic variables.
3269 * sparc64-tdep.c (adi_examine_command): Use GNU style for
3270 metasyntactic variables.
3271 (adi_assign_command): Likewise.
3272
f4bab6ff
TT
32732018-09-16 Tom Tromey <tom@tromey.com>
3274
3275 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
3276 metasyntactic variables. Print message if no disassembler options
3277 are available.
3278
cbaaa0ca
TT
32792018-09-15 Tom Tromey <tom@tromey.com>
3280
3281 * infcmd.c (get_inferior_args): Return const char *.
3282 * inferior.h (get_inferior_args): Return type now const.
3283 * linux-tdep.c (linux_fill_prpsinfo): Update.
3284 * procfs.c (procfs_target::make_corefile_notes): Update.
3285
a3a6aef4
TT
32862018-09-07 Tom Tromey <tom@tromey.com>
3287
3288 * python/python.c (execute_gdb_command): Call bpstat_do_actions
3289 inside the TRY.
3290
f70e088f
SL
32912018-09-14 Sandra Loosemore <sandra@codesourcery.com>
3292
3293 * nios2-tdep.c (nios2_type_align): New.
3294 (nios2_gdb_arch_init): Install type_align hook.
3295
2fabdf33
AB
32962018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3297
3298 * eval.c (fake_method::fake_method): Call xzalloc directly for a
3299 type that is neither object file owned, nor gdbarch owned.
3300 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
3301 gdbarch is non-NULL.
3302 (alloc_type_instance): Allocate non-objfile owned types on the
3303 gdbarch obstack.
3304 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
3305 using TYPE_ALLOC to ensure memory is allocated on the correct
3306 obstack.
3307 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
3308 obstack, or the gdbarch obstack.
3309 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
3310
b4b08fa2
TT
33112018-09-14 Tom Tromey <tom@tromey.com>
3312
3313 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
3314 block.
3315
87b240d4
TT
33162018-09-14 Tom Tromey <tom@tromey.com>
3317
3318 * nat/fork-inferior.c (get_startup_shell): Remove "static".
3319
7d221512
TT
33202018-09-13 Tom Tromey <tom@tromey.com>
3321
3322 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
3323 static.
3324
97e67fc6
TT
33252018-09-13 Tom Tromey <tom@tromey.com>
3326
3327 * exec.c (try_open_exec_file): Use std::string.
3328
803c08d0
TT
33292018-09-13 Tom Tromey <tom@tromey.com>
3330
3331 * utils.h (gdb_bfd_errmsg): Return std::string.
3332 * exec.c (exec_file_attach): Update.
3333 * compile/compile-object-load.c (compile_object_load): Update.
3334 * utils.c (gdb_bfd_errmsg): Return std::string.
3335
5b4cbbe3
TT
33362018-09-13 Tom Tromey <tom@tromey.com>
3337
3338 * procfs.c (struct procinfo_deleter): New.
3339 (procinfo_up): New typedef.
3340 (do_destroy_procinfo_cleanup): Remove.
3341 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
3342
db68fbe2
TT
33432018-09-13 Tom Tromey <tom@tromey.com>
3344
3345 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
3346
0ae1a321
SM
33472018-09-13 Simon Marchi <simon.marchi@ericsson.com>
33482018-09-13 Tom Tromey <tom@tromey.com>
3349
3350 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
3351 (pspy_get_objfiles): New function.
3352 (progspace_object_methods): New.
3353 (pspace_object_type): Add tp_methods callback.
3354 * python/python-internal.h (build_objfiles_list): New
3355 declaration.
3356 * python/python.c (build_objfiles_list): New function.
3357 (gdbpy_objfiles): Implement using build_objfiles_list.
3358 * NEWS: Mention the Progspace.objfiles method.
3359
a40bf0c2
SM
33602018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3361
3362 * python/py-inferior.c (infpy_get_progspace): New function.
3363 (inferior_object_getset): Add progspace property.
3364 * NEWS: Mention the new property.
3365
4a3fe98f
TT
33662018-09-13 Tom Tromey <tom@tromey.com>
3367
3368 PR rust/23650:
3369 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
3370
098b2108
TT
33712018-09-13 Tom Tromey <tom@tromey.com>
3372
3373 PR rust/23626:
3374 * rust-lang.c (rust_enum_variant): Now static.
3375 (rust_empty_enum_p): New function.
3376 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
3377 Handle empty enum.
3378
1256af7d
SM
33792018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3380
3381 * python/py-inferior.c (infpy_repr): New.
3382 (inferior_object_type): Register infpy_repr.
3383 * python/py-objfile.c (objfpy_repr): New.
3384 (objfile_object_type): Register objfpy_repr.
3385
f117a62c
JB
33862018-09-12 John Baldwin <jhb@FreeBSD.org>
3387
3388 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
3389
88f22c34
JB
33902018-09-12 John Baldwin <jhb@FreeBSD.org>
3391
3392 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
3393 typo.
3394
3c025cfe
SDJ
33952018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
3396
3397 * common/common-utils.c: Don't include '<sys/stat.h>'.
3398 (is_regular_file): Move to...
3399 * common/filestuff.c (is_regular_file): ... here.
3400 * common/common-utils.h (is_regular_file): Move to...
3401 * common/filestuff.h (is_regular_file): ... here.
3402
3e68067f
SM
34032018-09-12 Simon Marchi <simon.marchi@ericsson.com>
3404
3405 * skip.c (debug_skip): New variable.
3406 (skiplist_entry::do_skip_file_p): Add debug output.
3407 (skiplist_entry::do_skip_gfile_p): Likewise.
3408 (skiplist_entry::skip_function_p): Likewise.
3409 (_initialize_step_skip): Create debug command.
3410 * NEWS: Mention set/show debug skip.
3411
d6be54ef
XR
34122018-09-11 Xavier Roirand <roirand@adacore.com>
3413
3414 * darwin-nat.c (should_disable_startup_with_shell):
3415 New function.
3416 (darwin_nat_target::create_inferior): Add call.
3417
de1ec836
XR
34182018-09-11 Xavier Roirand <roirand@adacore.com>
3419
3420 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
3421 inf_port, msg_state>: Initialize.
3422 (struct darwin_thread_info) <signaled, single_step>: Change
3423 type and initialize.
3424 (struct darwin_thread_info) <event>: Initialize.
3425
e2fc52e7
SDJ
34262018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3427
3428 PR gdb/23555
3429 PR gdb/23558
3430 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
3431 guesses.
3432
5e8754f9
SDJ
34332018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3434
3435 Revert:
3436 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
3437
3438 PR gdb/23555
3439 PR gdb/23558
3440 * gnulib/aclocal.m4: Regenerate.
3441 * gnulib/config.in: Regenerate.
3442 * gnulib/configure: Regenerate.
3443 * gnulib/import/Makefile.am: Update.
3444 * gnulib/import/Makefile.in: Update.
3445 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3446 * gnulib/import/_Noreturn.h: ... this.
3447 * gnulib/import/alloca.in.h: Update.
3448 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3449 * gnulib/import/arg-nonnull.h: ... this.
3450 * gnulib/import/assure.h: Update.
3451 * gnulib/import/at-func.c: Update.
3452 * gnulib/import/basename-lgpl.c: Update.
3453 * gnulib/import/extra/snippet/c++defs.h: Rename to...
3454 * gnulib/import/c++defs.h: ... this.
3455 * gnulib/import/canonicalize-lgpl.c: Update.
3456 * gnulib/import/cdefs.h: Update.
3457 * gnulib/import/chdir-long.c: Update.
3458 * gnulib/import/chdir-long.h: Update.
3459 * gnulib/import/cloexec.c: Update.
3460 * gnulib/import/cloexec.h: Update.
3461 * gnulib/import/close.c: Update.
3462 * gnulib/import/closedir.c: Update.
3463 * gnulib/import/config.charset: Update.
3464 * gnulib/import/dirent-private.h: Update.
3465 * gnulib/import/dirent.in.h: Update.
3466 * gnulib/import/dirfd.c: Update.
3467 * gnulib/import/dirname-lgpl.c: Update.
3468 * gnulib/import/dirname.h: Update.
3469 * gnulib/import/dosname.h: Update.
3470 * gnulib/import/dup-safer-flag.c: Update.
3471 * gnulib/import/dup-safer.c: Update.
3472 * gnulib/import/dup.c: Update.
3473 * gnulib/import/dup2.c: Update.
3474 * gnulib/import/errno.in.h: Update.
3475 * gnulib/import/error.c: Update.
3476 * gnulib/import/error.h: Update.
3477 * gnulib/import/exitfail.c: Update.
3478 * gnulib/import/exitfail.h: Update.
3479 * gnulib/import/extra/update-copyright: Update.
3480 * gnulib/import/fchdir.c: Update.
3481 * gnulib/import/fcntl.c: Update.
3482 * gnulib/import/fcntl.in.h: Update.
3483 * gnulib/import/fd-hook.c: Update.
3484 * gnulib/import/fd-hook.h: Update.
3485 * gnulib/import/fd-safer-flag.c: Update.
3486 * gnulib/import/fd-safer.c: Update.
3487 * gnulib/import/fdopendir.c: Update.
3488 * gnulib/import/filename.h: Update.
3489 * gnulib/import/filenamecat-lgpl.c: Update.
3490 * gnulib/import/filenamecat.h: Update.
3491 * gnulib/import/flexmember.h: Update.
3492 * gnulib/import/float+.h: Update.
3493 * gnulib/import/float.c: Update.
3494 * gnulib/import/float.in.h: Update.
3495 * gnulib/import/fnmatch.c: Update.
3496 * gnulib/import/fnmatch.in.h: Update.
3497 * gnulib/import/fnmatch_loop.c: Update.
3498 * gnulib/import/fpucw.h: Update.
3499 * gnulib/import/frexp.c: Update.
3500 * gnulib/import/frexpl.c: Update.
3501 * gnulib/import/fstat.c: Update.
3502 * gnulib/import/fstatat.c: Update.
3503 * gnulib/import/getcwd-lgpl.c: Update.
3504 * gnulib/import/getcwd.c: Update.
3505 * gnulib/import/getdtablesize.c: Update.
3506 * gnulib/import/getlogin_r.c: Update.
3507 * gnulib/import/getprogname.c: Update.
3508 * gnulib/import/getprogname.h: Update.
3509 * gnulib/import/gettext.h: Update.
3510 * gnulib/import/gettimeofday.c: Update.
3511 * gnulib/import/glob-libc.h: Update.
3512 * gnulib/import/glob.c: Update.
3513 * gnulib/import/glob.in.h: Update.
3514 * gnulib/import/glob_internal.h: Update.
3515 * gnulib/import/glob_pattern_p.c: Update.
3516 * gnulib/import/globfree.c: Update.
3517 * gnulib/import/hard-locale.c: Update.
3518 * gnulib/import/hard-locale.h: Update.
3519 * gnulib/import/intprops.h: Update.
3520 * gnulib/import/inttypes.in.h: Update.
3521 * gnulib/import/isnan.c: Update.
3522 * gnulib/import/isnand-nolibm.h: Update.
3523 * gnulib/import/isnand.c: Update.
3524 * gnulib/import/isnanl-nolibm.h: Update.
3525 * gnulib/import/isnanl.c: Update.
3526 * gnulib/import/itold.c: Update.
3527 * gnulib/import/libc-config.h: Update.
3528 * gnulib/import/limits.in.h: Update.
3529 * gnulib/import/localcharset.c: Update.
3530 * gnulib/import/localcharset.h: Update.
3531 * gnulib/import/localtime-buffer.c: Update.
3532 * gnulib/import/localtime-buffer.h: Update.
3533 * gnulib/import/lstat.c: Update.
3534 * gnulib/import/m4/00gnulib.m4: Update.
3535 * gnulib/import/m4/__inline.m4: Update.
3536 * gnulib/import/m4/absolute-header.m4: Update.
3537 * gnulib/import/m4/alloca.m4: Update.
3538 * gnulib/import/m4/builtin-expect.m4: Update.
3539 * gnulib/import/m4/canonicalize.m4: Update.
3540 * gnulib/import/m4/chdir-long.m4: Update.
3541 * gnulib/import/m4/close.m4: Update.
3542 * gnulib/import/m4/closedir.m4: Update.
3543 * gnulib/import/m4/configmake.m4: Update.
3544 * gnulib/import/m4/d-ino.m4: Update.
3545 * gnulib/import/m4/d-type.m4: Update.
3546 * gnulib/import/m4/dirent_h.m4: Update.
3547 * gnulib/import/m4/dirfd.m4: Update.
3548 * gnulib/import/m4/dirname.m4: Update.
3549 * gnulib/import/m4/double-slash-root.m4: Update.
3550 * gnulib/import/m4/dup.m4: Update.
3551 * gnulib/import/m4/dup2.m4: Update.
3552 * gnulib/import/m4/eealloc.m4: Update.
3553 * gnulib/import/m4/environ.m4: Update.
3554 * gnulib/import/m4/errno_h.m4: Update.
3555 * gnulib/import/m4/error.m4: Update.
3556 * gnulib/import/m4/exponentd.m4: Update.
3557 * gnulib/import/m4/exponentl.m4: Update.
3558 * gnulib/import/m4/extensions.m4: Update.
3559 * gnulib/import/m4/extern-inline.m4: Update.
3560 * gnulib/import/m4/fchdir.m4: Update.
3561 * gnulib/import/m4/fcntl-o.m4: Update.
3562 * gnulib/import/m4/fcntl.m4: Update.
3563 * gnulib/import/m4/fcntl_h.m4: Update.
3564 * gnulib/import/m4/fdopendir.m4: Update.
3565 * gnulib/import/m4/filenamecat.m4: Update.
3566 * gnulib/import/m4/flexmember.m4: Update.
3567 * gnulib/import/m4/float_h.m4: Update.
3568 * gnulib/import/m4/fnmatch.m4: Update.
3569 * gnulib/import/m4/fnmatch_h.m4: Update.
3570 * gnulib/import/m4/fpieee.m4: Update.
3571 * gnulib/import/m4/frexp.m4: Update.
3572 * gnulib/import/m4/frexpl.m4: Update.
3573 * gnulib/import/m4/fstat.m4: Update.
3574 * gnulib/import/m4/fstatat.m4: Update.
3575 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3576 * gnulib/import/m4/getcwd-path-max.m4: Update.
3577 * gnulib/import/m4/getcwd.m4: Update.
3578 * gnulib/import/m4/getdtablesize.m4: Update.
3579 * gnulib/import/m4/getlogin.m4: Update.
3580 * gnulib/import/m4/getlogin_r.m4: Update.
3581 * gnulib/import/m4/getpagesize.m4: Update.
3582 * gnulib/import/m4/getprogname.m4: Update.
3583 * gnulib/import/m4/gettimeofday.m4: Update.
3584 * gnulib/import/m4/glibc21.m4: Update.
3585 * gnulib/import/m4/glob.m4: Update.
3586 * gnulib/import/m4/glob_h.m4: Update.
3587 * gnulib/import/m4/gnulib-cache.m4: Update.
3588 * gnulib/import/m4/gnulib-common.m4: Update.
3589 * gnulib/import/m4/gnulib-comp.m4: Update.
3590 * gnulib/import/m4/gnulib-tool.m4: Update.
3591 * gnulib/import/m4/hard-locale.m4: Update.
3592 * gnulib/import/m4/include_next.m4: Update.
3593 * gnulib/import/m4/inttypes-pri.m4: Update.
3594 * gnulib/import/m4/inttypes.m4: Update.
3595 * gnulib/import/m4/isnand.m4: Update.
3596 * gnulib/import/m4/isnanl.m4: Update.
3597 * gnulib/import/m4/largefile.m4: Update.
3598 * gnulib/import/m4/limits-h.m4: Update.
3599 * gnulib/import/m4/localcharset.m4: Update.
3600 * gnulib/import/m4/locale-fr.m4: Update.
3601 * gnulib/import/m4/locale-ja.m4: Update.
3602 * gnulib/import/m4/locale-zh.m4: Update.
3603 * gnulib/import/m4/localtime-buffer.m4: Update.
3604 * gnulib/import/m4/longlong.m4: Update.
3605 * gnulib/import/m4/lstat.m4: Update.
3606 * gnulib/import/m4/malloc.m4: Update.
3607 * gnulib/import/m4/malloca.m4: Update.
3608 * gnulib/import/m4/math_h.m4: Update.
3609 * gnulib/import/m4/mbrtowc.m4: Update.
3610 * gnulib/import/m4/mbsinit.m4: Update.
3611 * gnulib/import/m4/mbsrtowcs.m4: Update.
3612 * gnulib/import/m4/mbstate_t.m4: Update.
3613 * gnulib/import/m4/memchr.m4: Update.
3614 * gnulib/import/m4/memmem.m4: Update.
3615 * gnulib/import/m4/mempcpy.m4: Update.
3616 * gnulib/import/m4/memrchr.m4: Update.
3617 * gnulib/import/m4/mkdir.m4: Update.
3618 * gnulib/import/m4/mkstemp.m4: Update.
3619 * gnulib/import/m4/mmap-anon.m4: Update.
3620 * gnulib/import/m4/mode_t.m4: Update.
3621 * gnulib/import/m4/msvc-inval.m4: Update.
3622 * gnulib/import/m4/msvc-nothrow.m4: Update.
3623 * gnulib/import/m4/multiarch.m4: Update.
3624 * gnulib/import/m4/nocrash.m4: Update.
3625 * gnulib/import/m4/off_t.m4: Update.
3626 * gnulib/import/m4/onceonly.m4: Update.
3627 * gnulib/import/m4/open-cloexec.m4: Update.
3628 * gnulib/import/m4/open.m4: Update.
3629 * gnulib/import/m4/openat.m4: Update.
3630 * gnulib/import/m4/opendir.m4: Update.
3631 * gnulib/import/m4/pathmax.m4: Update.
3632 * gnulib/import/m4/rawmemchr.m4: Update.
3633 * gnulib/import/m4/readdir.m4: Update.
3634 * gnulib/import/m4/readlink.m4: Update.
3635 * gnulib/import/m4/realloc.m4: Update.
3636 * gnulib/import/m4/rename.m4: Update.
3637 * gnulib/import/m4/rewinddir.m4: Update.
3638 * gnulib/import/m4/rmdir.m4: Update.
3639 * gnulib/import/m4/save-cwd.m4: Update.
3640 * gnulib/import/m4/secure_getenv.m4: Update.
3641 * gnulib/import/m4/setenv.m4: Update.
3642 * gnulib/import/m4/signal_h.m4: Update.
3643 * gnulib/import/m4/ssize_t.m4: Update.
3644 * gnulib/import/m4/stat-time.m4: Update.
3645 * gnulib/import/m4/stat.m4: Update.
3646 * gnulib/import/m4/std-gnu11.m4: Update.
3647 * gnulib/import/m4/stdbool.m4: Update.
3648 * gnulib/import/m4/stddef_h.m4: Update.
3649 * gnulib/import/m4/stdint.m4: Update.
3650 * gnulib/import/m4/stdio_h.m4: Update.
3651 * gnulib/import/m4/stdlib_h.m4: Update.
3652 * gnulib/import/m4/strchrnul.m4: Update.
3653 * gnulib/import/m4/strdup.m4: Update.
3654 * gnulib/import/m4/strerror.m4: Update.
3655 * gnulib/import/m4/string_h.m4: Update.
3656 * gnulib/import/m4/strstr.m4: Update.
3657 * gnulib/import/m4/strtok_r.m4: Update.
3658 * gnulib/import/m4/sys_socket_h.m4: Update.
3659 * gnulib/import/m4/sys_stat_h.m4: Update.
3660 * gnulib/import/m4/sys_time_h.m4: Update.
3661 * gnulib/import/m4/sys_types_h.m4: Update.
3662 * gnulib/import/m4/tempname.m4: Update.
3663 * gnulib/import/m4/time_h.m4: Update.
3664 * gnulib/import/m4/unistd-safer.m4: Update.
3665 * gnulib/import/m4/unistd_h.m4: Update.
3666 * gnulib/import/m4/warn-on-use.m4: Update.
3667 * gnulib/import/m4/wchar_h.m4: Update.
3668 * gnulib/import/m4/wchar_t.m4: Update.
3669 * gnulib/import/m4/wctype_h.m4: Update.
3670 * gnulib/import/m4/wint_t.m4: Update.
3671 * gnulib/import/malloc.c: Update.
3672 * gnulib/import/malloc/scratch_buffer.h: Update.
3673 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3674 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3675 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3676 * gnulib/import/malloca.c: Update.
3677 * gnulib/import/malloca.h: Update.
3678 * gnulib/import/malloca.valgrind: Update.
3679 * gnulib/import/math.in.h: Update.
3680 * gnulib/import/mbrtowc.c: Update.
3681 * gnulib/import/mbsinit.c: Update.
3682 * gnulib/import/mbsrtowcs-impl.h: Update.
3683 * gnulib/import/mbsrtowcs-state.c: Update.
3684 * gnulib/import/mbsrtowcs.c: Update.
3685 * gnulib/import/memchr.c: Update.
3686 * gnulib/import/memmem.c: Update.
3687 * gnulib/import/mempcpy.c: Update.
3688 * gnulib/import/memrchr.c: Update.
3689 * gnulib/import/mkdir.c: Update.
3690 * gnulib/import/mkstemp.c: Update.
3691 * gnulib/import/msvc-inval.c: Update.
3692 * gnulib/import/msvc-inval.h: Update.
3693 * gnulib/import/msvc-nothrow.c: Update.
3694 * gnulib/import/msvc-nothrow.h: Update.
3695 * gnulib/import/open.c: Update.
3696 * gnulib/import/openat-die.c: Update.
3697 * gnulib/import/openat-priv.h: Update.
3698 * gnulib/import/openat-proc.c: Update.
3699 * gnulib/import/openat.c: Update.
3700 * gnulib/import/openat.h: Update.
3701 * gnulib/import/opendir.c: Update.
3702 * gnulib/import/pathmax.h: Update.
3703 * gnulib/import/pipe-safer.c: Update.
3704 * gnulib/import/rawmemchr.c: Update.
3705 * gnulib/import/readdir.c: Update.
3706 * gnulib/import/readlink.c: Update.
3707 * gnulib/import/realloc.c: Update.
3708 * gnulib/import/ref-add.sin: Update.
3709 * gnulib/import/ref-del.sin: Update.
3710 * gnulib/import/rename.c: Update.
3711 * gnulib/import/rewinddir.c: Update.
3712 * gnulib/import/rmdir.c: Update.
3713 * gnulib/import/same-inode.h: Update.
3714 * gnulib/import/save-cwd.c: Update.
3715 * gnulib/import/save-cwd.h: Update.
3716 * gnulib/import/scratch_buffer.h: Update.
3717 * gnulib/import/secure_getenv.c: Update.
3718 * gnulib/import/setenv.c: Update.
3719 * gnulib/import/signal.in.h: Update.
3720 * gnulib/import/stat-time.c: Update.
3721 * gnulib/import/stat-time.h: Update.
3722 * gnulib/import/stat-w32.c: Update.
3723 * gnulib/import/stat-w32.h: Update.
3724 * gnulib/import/stat.c: Update.
3725 * gnulib/import/stdbool.in.h: Update.
3726 * gnulib/import/stddef.in.h: Update.
3727 * gnulib/import/stdint.in.h: Update.
3728 * gnulib/import/stdio.in.h: Update.
3729 * gnulib/import/stdlib.in.h: Update.
3730 * gnulib/import/str-two-way.h: Update.
3731 * gnulib/import/strchrnul.c: Update.
3732 * gnulib/import/strdup.c: Update.
3733 * gnulib/import/streq.h: Update.
3734 * gnulib/import/strerror-override.c: Update.
3735 * gnulib/import/strerror-override.h: Update.
3736 * gnulib/import/strerror.c: Update.
3737 * gnulib/import/string.in.h: Update.
3738 * gnulib/import/stripslash.c: Update.
3739 * gnulib/import/strnlen1.c: Update.
3740 * gnulib/import/strnlen1.h: Update.
3741 * gnulib/import/strstr.c: Update.
3742 * gnulib/import/strtok_r.c: Update.
3743 * gnulib/import/sys_stat.in.h: Update.
3744 * gnulib/import/sys_time.in.h: Update.
3745 * gnulib/import/sys_types.in.h: Update.
3746 * gnulib/import/tempname.c: Update.
3747 * gnulib/import/tempname.h: Update.
3748 * gnulib/import/time.in.h: Update.
3749 * gnulib/import/unistd--.h: Update.
3750 * gnulib/import/unistd-safer.h: Update.
3751 * gnulib/import/unistd.in.h: Update.
3752 * gnulib/import/unsetenv.c: Update.
3753 * gnulib/import/verify.h: Update.
3754 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3755 * gnulib/import/wchar.in.h: Update.
3756 * gnulib/import/wctype.in.h: Update.
3757 * gnulib/import/xalloc-oversized.h: Update.
3758 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3759 "53e2c179f26a890fa6685af4b6c1397ee370433b".
3760
8ec23583
SM
37612018-09-10 Simon Marchi <simon.marchi@ericsson.com>
3762
3763 * record-btrace.c (get_thread_current_frame): Remove
3764 old_inferior_ptid.
3765
1f5d1570
JG
37662018-09-10 Jerome Guitton <guitton@adacore.com>
3767
3768 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
3769 with check_tag to 1 if and only if the type is tagged and the
3770 component being searched cannot been found in the current
3771 view. Otherwise, always call ada_to_fixed_type with
3772 check_tag to 0.
3773
d91e9ea8
XR
37742018-09-10 Xavier Roirand <roirand@adacore.com>
3775
3776 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
3777 declaration.
3778 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
3779 * ada-varobj.c (ada_varobj_get_number_of_children,
3780 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
3781
cc330e39
XR
37822018-09-10 Xavier Roirand <roirand@adacore.com>
3783
3784 * ada-valprint.c (ada_value_print): Use type instead of
3785 enclosing type.
3786
b9c50e9a
XR
37872018-09-10 Xavier Roirand <roirand@adacore.com>
3788
3789 * ada-lang.c (ada_value_subscript): Handle case when parameter is
3790 an array of access to unconstrained array.
3791
736ade86
XR
37922018-09-10 Xavier Roirand <roirand@adacore.com>
3793
3794 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
3795 (ada_check_typedef): Use it.
3796
2963898f
XR
37972018-09-10 Xavier Roirand <roirand@adacore.com>
3798
3799 * ada-varobj.c (ada_varobj_describe_struct_child)
3800 (ada_varobj_describe_child): Handle union case like struct one.
3801
a154931e
TT
38022018-09-10 Tom Tromey <tom@tromey.com>
3803
3804 PR python/18380:
3805 * python/python.c (_initialize_python): Make example in "python"
3806 help work in Python 3.
3807
23c4651c
EZ
38082018-09-10 Eli Zaretskii <eliz@gnu.org>
3809
3810 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
3811 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
3812 $(EXEEXT) to the script, as it is not a program.
3813
a5c5eda7
SM
38142018-09-09 Simon Marchi <simon.marchi@ericsson.com>
3815
3816 * python/py-prettyprint.c (pretty_print_one_value): Return
3817 gdbpy_ref<>.
3818 (print_string_repr): Adjust.
3819 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
3820 * python/python-internal.h (apply_varobj_pretty_printer): Return
3821 gdbpy_ref<>.
3822 * varobj.c (varobj_value_get_print_value): Adjust.
3823
332cf4c9
TT
38242018-09-08 Tom Tromey <tom@tromey.com>
3825
3826 PR python/16047:
3827 * python/py-prettyprint.c (pretty_print_one_value): Check for
3828 to_string method.
3829
424da6cf
JB
38302018-09-08 Joel Brobecker <brobecker@adacore.com>
3831
3832 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
3833 replace_operator_with_call.
3834
95f39a5b
JB
38352018-09-08 Joel Brobecker <brobecker@adacore.com>
3836
3837 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
3838
16b9eb7b
JB
38392018-09-08 Joel Brobecker <brobecker@adacore.com>
3840
3841 * ada-typeprint.c (print_range): Print the bounds using TYPE
3842 rather than its TYPE_TARGET_TYPE.
3843
d8ce9127
JB
38442018-09-08 Joel Brobecker <brobecker@adacore.com>
3845
3846 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
3847 call to ada_to_fixed_value_create.
3848
0d81f350
JG
38492018-09-08 Jerome Guitton <guitton@adacore.com>
3850
3851 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
3852
57aff202
JB
38532018-09-08 Joel Brobecker <brobecker@adacore.com>
3854
3855 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
3856 by calls to error.
3857
fb44b1a7
JB
38582018-09-08 Joel Brobecker <brobecker@adacore.com>
3859
3860 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
3861 Move update of loop variable "fi".
3862
2a62dfa9
JB
38632018-09-08 Joel Brobecker <brobecker@adacore.com>
3864
3865 * ada-lang.c (value_assign_to_component): In the case of
3866 big-endian targets, extract the bits of the given VAL
3867 using an src_offset of zero if container is not a scalar.
3868
739ab2e9
SS
38692018-09-06 Simon Ser <contact@emersion.fr>
3870
3871 PR gdb/23105
3872 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
3873 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3874 * fbsd-tdep.c (fbsd_make_note_desc): New.
3875 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
3876 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
3877 * target.h (enum target_object) Add FreeBSD-specific
3878 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3879
d82b3862
SM
38802018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3881
3882 * compile/compile-c.h (generate_c_for_variable_locations):
3883 Change reference to pointer.
3884 * compile/compile-c-support.c (compile_program) <compute>:
3885 Likewise.
3886 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
3887 (generate_c_for_for_one_variable): Likewise
3888 (generate_c_for_variable_locations): Likewise
3889 * compile/compile-c-types.c (compile_c_instance::convert_type):
3890 Likewise
3891 * compile/compile-cplus-symbols.c (convert_one_symbol):
3892 std::move the scope passed to enter_scope.
3893 * compile/compile-cplus-types.c
3894 (compile_cplus_instance::enter_scope): Make parameter
3895 rvalue-reference.
3896 (compile_cplus_instance::new_scope): Change reference to
3897 pointer.
3898 (compile_cplus_instance::convert_type): Likewise
3899 (compile_cplus_convert_typedef): std::move the scope passed to
3900 enter_scope.
3901 (compile_cplus_convert_struct_or_union): Likewise.
3902 (compile_cplus_convert_enum): Likewise.
3903 (compile_cplus_convert_namespace): Likewise.
3904 * compile/compile-cplus.h (compile_cplus_instance)
3905 <enter_scope>: Make parameter rvalue-reference.
3906 * compile/compile-internal.h (compile_instance)
3907 <get_cached_type>: Likewise
3908 * compile/compile-loc2c.c (push): Likewise
3909 (pushf): Likewise
3910 (unary): Likewise
3911 (binary): Likewise
3912 (print_label): Likewise
3913 (pushf_register_address): Likewise
3914 (pushf_register): Likewise
3915 (do_compile_dwarf_expr_to_c): Likewise
3916 (compile_dwarf_expr_to_c): Likewise
3917 (compile_dwarf_bounds_to_c): Likewise
3918 * compile/compile.c (compile_instance::get_cached_type):
3919 Likewise
3920 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
3921 (compile_dwarf_bounds_to_c): Likewise
3922 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
3923 (dwarf2_compile_property_to_c): Likewise
3924 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
3925 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3926 Likewise
3927
cc5a5ae5
SM
39282018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3929
3930 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
3931 * tui/tui-data.c (init_content_element): Don't initialize it.
3932
137be540
SM
39332018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3934
3935 * tui/tui-data.h (struct tui_win_info)
3936 <detail::opaque>: Remove.
3937 * tui/tui-data.c (init_win_info): Remove assignment.
3938
f1628857
TT
39392018-09-05 Tom Tromey <tom@tromey.com>
3940
3941 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
3942 -Wformat-nonliteral.
3943 * target-float.c (host_float_ops<T>::to_string)
3944 (host_float_ops<T>::from_string): Use
3945 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3946 * configure: Rebuild.
3947
af39b1c2
SM
39482018-09-05 Simon Marchi <simon.marchi@ericsson.com>
3949
3950 * printcmd.c (printf_c_string): Use
3951 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3952 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
3953
081bca4d
TT
39542018-09-05 Tom Tromey <tom@tromey.com>
3955
3956 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
3957
e4a62c65
TV
39582018-09-05 Tom de Vries <tdevries@suse.de>
3959
3960 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
3961 with resolve_abstract_p == true.
3962 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
3963 defaulting to false. Propagate resolve_abstract_p to
3964 dwarf2_fetch_die_loc_sect_off.
3965 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
3966 parameter, defaulting to false.
3967 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
3968 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
3969 parameter.
3970 * dwarf2read.h (struct die_info): Forward-declare.
3971 (die_info_ptr): New typedef.
3972 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
3973
2b69821e
JB
39742018-09-05 Joel Brobecker <brobecker@adacore.com>
3975
3976 GDB 8.2 released.
3977
fcc9b044
SDJ
39782018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3979 Pedro Alves <palves@redhat.com>
3980
3981 * gnulib/Makefile.in (aclocal_m4_deps): Move to
3982 "aclocal-m4-deps.mk". Include file here.
3983 $(srcdir)/aclocal.m4: Add "configure.ac".
3984 * gnulib/aclocal-m4-deps.mk: New file.
3985 * gnulib/update-gnulib.sh: Automatically update
3986 "aclocal-m4-deps.mk".
3987
d53d5436
TT
39882018-09-04 Tom Tromey <tom@tromey.com>
3989
3990 * configure: Rebuild.
3991 * configure.ac: Remove multi-ice code.
3992
8dc9fd87
TT
39932018-09-04 Tom Tromey <tom@tromey.com>
3994
3995 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
3996 (ada-exp.o): Update.
3997
3322c5d9
TT
39982018-09-04 Tom Tromey <tom@tromey.com>
3999
4000 * Makefile.in (printcmd.o, target-float.o): Remove.
4001 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
4002
ba2bf2aa
TT
40032018-09-04 Tom Tromey <tom@tromey.com>
4004
4005 * gnulib/Makefile.in: Remove obsolete comment.
4006 * Makefile.in: Remove obsolete comment.
4007
6c9d681b
AB
40082018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
4009
4010 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
4011 line with '+'.
4012
78a3b0fa
AB
40132018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4014
4015 * riscv-tdep.c: Add 'prologue-value.h' include.
4016 (struct riscv_unwind_cache): New struct.
4017 (riscv_debug_unwinder): New global.
4018 (riscv_scan_prologue): Update arguments, capture register details
4019 from prologue scan.
4020 (riscv_skip_prologue): Reformat arguments line, move end of
4021 prologue calculation into riscv_scan_prologue.
4022 (riscv_frame_cache): Update return type, create
4023 riscv_unwind_cache, scan the prologue, and fill in remaining cache
4024 details.
4025 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
4026 (riscv_frame_prev_register): Use the trad_frame within the
4027 riscv_unwind_cache.
4028 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
4029 flag.
4030
23e60e7a
AB
40312018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4032
4033 * trad-frame.h (trad_frame_set_realreg): Declare.
4034 (trad_frame_set_addr): Declare.
4035 * trad-frame.c (trad_frame_set_realreg): Define new function.
4036 (trad_frame_set_addr): Define new function.
4037 (trad_frame_set_reg_realreg): Use new function.
4038 (trad_frame_set_reg_addr): Use new function.
4039
5c889512
KS
40402018-09-01 Keith Seitz <keiths@redhat.com>
4041
4042 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
4043 pulongest instead of "%lld".
4044 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
4045 ATTRIBUTE_UNUSED.
4046
c8c81635
TT
40472018-08-31 Tom Tromey <tom@tromey.com>
4048
4049 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
4050 variant part type.
4051
0c888588
PA
40522018-08-31 Pedro Alves <palves@redhat.com>
4053
4054 * gdbarch.h: Regenerate.
4055
7ea65f08
PA
40562018-08-31 Pedro Alves <palves@redhat.com>
4057
4058 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
4059 * target.h (Hardware watchpoint interfaces): Describe
4060 continuable/steppable/non-steppable watchpoints.
4061 * gdbarch.h, gdbarch.c: Regenerate.
4062
7eb65faf
PA
40632018-08-31 Pedro Alves <palves@redhat.com>
4064
4065 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
4066 Delete.
4067 * s390-linux-nat.c
4068 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
4069 * target.h (target_ops::have_continuable_watchpoint): Delete.
4070 (target_have_continuable_watchpoint): Delete.
4071 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
4072 * target-delegates.c: Regenerate.
4073
dab999b1
SDJ
40742018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4075
4076 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
4077 the files present in "gnulib/import/m4/".
4078
ff3a05b3
AB
40792018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
4080
4081 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
4082 c.sw, c.swsp, and c.sdsp.
4083
0b3f9efc
AB
40842018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
4085
4086 * riscv-tdep.c (struct riscv_inferior_data): Delete.
4087 (riscv_read_misa_reg): Don't cache value read into inferior data.
4088 (riscv_new_inferior_data): Delete.
4089 (riscv_inferior_data_cleanup): Delete.
4090 (riscv_inferior_data): Delete.
4091 (riscv_invalidate_inferior_data): Delete.
4092 (_initialize_riscv_tdep): Remove initialisation of inferior data.
4093
a0dc02a6
SM
40942018-08-30 Simon Marchi <simon.marchi@ericsson.com>
4095
4096 * compile/compile-cplus-types.c
4097 (compile_cplus_instance::leave_scope): Take the address of scope
4098 object.
4099 (compile_cplus_instance::convert_qualified_base): Compare quals
4100 to 0.
4101
fdad7678
KS
41022018-08-30 Keith Seitz <keiths@redhat.com>
4103
4104 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
4105 Use "%s" and host_address_to_string instead of "%p" in printf.
4106
078a0207
KS
41072018-08-29 Keith Seitz <keiths@redhat.com>
4108
4109 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
4110 and compile-cplus-types.c.
4111 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
4112 * c-lang.c (cplus_language_defn): Set C++ compile functions.
4113 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
4114 Declare.
4115 * compile/compile-c-support.c: Include compile-cplus.h.
4116 (load_libcompile): Templatize.
4117 (get_compile_context): "New" function.
4118 (c_get_compile_context): Use get_compile_context.
4119 (cplus_get_compile_context): New function.
4120 (cplus_push_user_expression, cplus_pop_user_expression)
4121 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
4122 (cplus_compute_program): Define new structs/functions.
4123 * compile/compile-cplus-symmbols.c: New file.
4124 * compile/compile-cplus-types.c: New file.
4125 * compile/compile-cplus.h: New file.
4126 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
4127 Declare.
4128 * compile/compile-object-load.c (get_out_value_type): Use
4129 strncmp_iw when comparing symbol names.
4130 (compile_object_load): Add mst_bss and mst_data.
4131 * compile/compile.c (_initialize_compile): Remove
4132 -Wno-implicit-function-declaration from `compile_args'.
4133 * compile/gcc-cp-plugin.h: New file.
4134 * NEWS: Mention C++ compile support and new debug options.
4135
fcaad03c
KS
41362018-08-29 Keith Seitz <keiths@redhat.com>
4137
4138 * linespec.c (collect_info::add_symbol): Make virtual.
4139 (struct symbol_searcher_collect_info): New struct.
4140 (symbol_searcher::find_all_symbols): New method.
4141 * symtab.h (class symbol_searcher): New class.
4142
7e41c8db
KS
41432018-08-29 Keith Seitz <keiths@redhat.com>
4144
4145 * linespec.c (struct linespec) <function_symbols, label_symbols>:
4146 Change to vector of block_symbol. Update all users.
4147 (struct collect_info) <symbols>: Likewise.
4148 (collect_info::add_symbol): Take block_symbol as argument.
4149 Update all callers.
4150 (decode_compound_collector) <m_symbols>: Change type to vector
4151 of block_symbol. Update all users.
4152 (decode_compound_collector::operator ()): Change parameter type
4153 to block_symbol.
4154 (find_method, find_function_symbols, find_linespec_symbols)
4155 (find_label_symbols_in_block, find_label_symbols): Change symbol
4156 vectors to block_symbol vectors.
4157 * symtab.h (symbol_found_callback_ftype): Change parameter type to
4158 block_symbol.
4159
63e8c3da
KS
41602018-08-29 Keith Seitz <keiths@redhat.com>
4161
4162 * linespec.c (symbolp): Remove typedef and VEC definitions.
4163 (bound_minimal_symbol_d): Likewise.
4164
4dedf84d
KS
41652018-08-29 Keith Seitz <keiths@redhat.com>
4166
4167 * linespec.c (decode_compound_collector::decode_compound_collector):
4168 Remove initialization for `m_symtabs'.
4169 (decode_compound_collector::release_symbols): Change return type
4170 to std::vector. Update all callers.
4171 (class decode_compound_collector) <m_symbols>: Change type to
4172 std::vector.
4173 (lookup_prefix_sym): Change return type to std::vector. Update all
4174 callers.
4175 (compare_symbols): Remove.
4176 (std_compare_symbols): Rename to `compare_symbols'.
4177 (find_method): Change `sym_classes' parameter to std::vector.
4178 Update all callers. Use std::sort to sort sym_classes.
4179 (find_linespec_symbols): Remove cleanup.
4180
c2a031c5
KS
41812018-08-29 Keith Seitz <keiths@redhat.com>
4182
4183 * linespec.c (struct linespec) <minimal_symbols>: Change type to
4184 std::vector. Update all users.
4185 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
4186 (struct collect_info) <minimal_symbols>: Likewise.
4187 (compare_msymbols): Return bool. Change parameters to const
4188 bound_minimal_symbol references.
4189 (find_method, find_function_symbols, find_linespec_symbols): Change
4190 `minsyms' parameter to std::vector. Update all callers.
4191
3553eadc
KS
41922018-08-29 Keith Seitz <keiths@redhat.com>
4193
4194 * linespec.c (struct linespec) <label_symbols>: Change type to
4195 std::vector. Update all users.
4196 (find_label_symbols_in_block): Change `result' parameter to
4197 std::vector. Update all callers.
4198 (find_label_symbols): Return std::vector. Update all callers.
4199
7243d011
KS
42002018-08-29 Keith Seitz <keiths@redhat.com>
4201
4202 * linespec.c (struct linespec) <function_symbols>: Change type to
4203 std::vector. Update all users.
4204 (struct collect_info) <function_symbols>: Likewise.
4205 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
4206 (std_compare_symbols): New function.
4207 (find_method, find_function_symbols, find_linespec_symbols)
4208 (find_label_symbols_in_block): Change `symbols' parameter to
4209 std::vector. Update all callers.
4210 (find_label_symbols): Likewise for `function_symbols' and
4211 `label_funcs_ret'.
4212
2a908241
KS
42132018-08-29 Keith Seitz <keiths@redhat.com>
4214
4215 * linespec.c (symtab_vector_up): Define.
4216 (struct linespec) <file_symtabs>: Change type to std::vector *.
4217 Update all uses.
4218 (struct collect_info) <file_symtabs>: Likewise.
4219 (collect_symtabs_from_filename): Return symtab_vector_up.
4220 Update all callers.
4221 (decode_objc): Remove cleanup.
4222 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
4223 (symtab_collector::release_symtabs): Return symtab_vector_up.
4224 Update all callers.
4225 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
4226 Update all users.
4227 (collect_symtabs_from_filename, symtabs_from_filename): Return
4228 symtab_vector_up. Update all callers.
4229
f6c4e3e8
TT
42302018-08-29 Tom Tromey <tom@tromey.com>
4231
4232 * csky-tdep.c (csky_analyze_prologue): Use
4233 core_addr_to_string_nz.
4234
73c13fe6
TT
42352018-08-29 Tom Tromey <tom@tromey.com>
4236
4237 * windows-nat.c (struct xlate_exception) <them>: Change type to
4238 DWORD.
4239 (xlate): Fix formatting. Remove last entry.
4240 (struct xlate_exception, xlate): Comment out.
4241 (windows_nat_target::resume): Use ranged for.
4242
4d3928d7
JW
42432018-08-29 Jim Wilson <jimw@sifive.com>
4244
4245 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
4246 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
4247 of NT_PRFPREG.
4248 (riscv_linux_nat_target::store_registers): Likewise.
4249
7a6dbc2f
SDJ
42502018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
4251
4252 PR gdb/23555
4253 PR gdb/23558
4254 * gnulib/aclocal.m4: Regenerate.
4255 * gnulib/config.in: Regenerate.
4256 * gnulib/configure: Regenerate.
4257 * gnulib/import/Makefile.am: Update.
4258 * gnulib/import/Makefile.in: Update.
4259 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
4260 * gnulib/import/_Noreturn.h: ... this.
4261 * gnulib/import/alloca.in.h: Update.
4262 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
4263 * gnulib/import/arg-nonnull.h: ... this.
4264 * gnulib/import/assure.h: Update.
4265 * gnulib/import/at-func.c: Update.
4266 * gnulib/import/basename-lgpl.c: Update.
4267 * gnulib/import/extra/snippet/c++defs.h: Rename to...
4268 * gnulib/import/c++defs.h: ... this.
4269 * gnulib/import/canonicalize-lgpl.c: Update.
4270 * gnulib/import/cdefs.h: Update.
4271 * gnulib/import/chdir-long.c: Update.
4272 * gnulib/import/chdir-long.h: Update.
4273 * gnulib/import/cloexec.c: Update.
4274 * gnulib/import/cloexec.h: Update.
4275 * gnulib/import/close.c: Update.
4276 * gnulib/import/closedir.c: Update.
4277 * gnulib/import/config.charset: Update.
4278 * gnulib/import/dirent-private.h: Update.
4279 * gnulib/import/dirent.in.h: Update.
4280 * gnulib/import/dirfd.c: Update.
4281 * gnulib/import/dirname-lgpl.c: Update.
4282 * gnulib/import/dirname.h: Update.
4283 * gnulib/import/dosname.h: Update.
4284 * gnulib/import/dup-safer-flag.c: Update.
4285 * gnulib/import/dup-safer.c: Update.
4286 * gnulib/import/dup.c: Update.
4287 * gnulib/import/dup2.c: Update.
4288 * gnulib/import/errno.in.h: Update.
4289 * gnulib/import/error.c: Update.
4290 * gnulib/import/error.h: Update.
4291 * gnulib/import/exitfail.c: Update.
4292 * gnulib/import/exitfail.h: Update.
4293 * gnulib/import/extra/update-copyright: Update.
4294 * gnulib/import/fchdir.c: Update.
4295 * gnulib/import/fcntl.c: Update.
4296 * gnulib/import/fcntl.in.h: Update.
4297 * gnulib/import/fd-hook.c: Update.
4298 * gnulib/import/fd-hook.h: Update.
4299 * gnulib/import/fd-safer-flag.c: Update.
4300 * gnulib/import/fd-safer.c: Update.
4301 * gnulib/import/fdopendir.c: Update.
4302 * gnulib/import/filename.h: Update.
4303 * gnulib/import/filenamecat-lgpl.c: Update.
4304 * gnulib/import/filenamecat.h: Update.
4305 * gnulib/import/flexmember.h: Update.
4306 * gnulib/import/float+.h: Update.
4307 * gnulib/import/float.c: Update.
4308 * gnulib/import/float.in.h: Update.
4309 * gnulib/import/fnmatch.c: Update.
4310 * gnulib/import/fnmatch.in.h: Update.
4311 * gnulib/import/fnmatch_loop.c: Update.
4312 * gnulib/import/fpucw.h: Update.
4313 * gnulib/import/frexp.c: Update.
4314 * gnulib/import/frexpl.c: Update.
4315 * gnulib/import/fstat.c: Update.
4316 * gnulib/import/fstatat.c: Update.
4317 * gnulib/import/getcwd-lgpl.c: Update.
4318 * gnulib/import/getcwd.c: Update.
4319 * gnulib/import/getdtablesize.c: Update.
4320 * gnulib/import/getlogin_r.c: Update.
4321 * gnulib/import/getprogname.c: Update.
4322 * gnulib/import/getprogname.h: Update.
4323 * gnulib/import/gettext.h: Update.
4324 * gnulib/import/gettimeofday.c: Update.
4325 * gnulib/import/glob-libc.h: Update.
4326 * gnulib/import/glob.c: Update.
4327 * gnulib/import/glob.in.h: Update.
4328 * gnulib/import/glob_internal.h: Update.
4329 * gnulib/import/glob_pattern_p.c: Update.
4330 * gnulib/import/globfree.c: Update.
4331 * gnulib/import/hard-locale.c: Update.
4332 * gnulib/import/hard-locale.h: Update.
4333 * gnulib/import/intprops.h: Update.
4334 * gnulib/import/inttypes.in.h: Update.
4335 * gnulib/import/isnan.c: Update.
4336 * gnulib/import/isnand-nolibm.h: Update.
4337 * gnulib/import/isnand.c: Update.
4338 * gnulib/import/isnanl-nolibm.h: Update.
4339 * gnulib/import/isnanl.c: Update.
4340 * gnulib/import/itold.c: Update.
4341 * gnulib/import/libc-config.h: Update.
4342 * gnulib/import/limits.in.h: Update.
4343 * gnulib/import/localcharset.c: Update.
4344 * gnulib/import/localcharset.h: Update.
4345 * gnulib/import/localtime-buffer.c: Update.
4346 * gnulib/import/localtime-buffer.h: Update.
4347 * gnulib/import/lstat.c: Update.
4348 * gnulib/import/m4/00gnulib.m4: Update.
4349 * gnulib/import/m4/__inline.m4: Update.
4350 * gnulib/import/m4/absolute-header.m4: Update.
4351 * gnulib/import/m4/alloca.m4: Update.
4352 * gnulib/import/m4/builtin-expect.m4: Update.
4353 * gnulib/import/m4/canonicalize.m4: Update.
4354 * gnulib/import/m4/chdir-long.m4: Update.
4355 * gnulib/import/m4/close.m4: Update.
4356 * gnulib/import/m4/closedir.m4: Update.
4357 * gnulib/import/m4/configmake.m4: Update.
4358 * gnulib/import/m4/d-ino.m4: Update.
4359 * gnulib/import/m4/d-type.m4: Update.
4360 * gnulib/import/m4/dirent_h.m4: Update.
4361 * gnulib/import/m4/dirfd.m4: Update.
4362 * gnulib/import/m4/dirname.m4: Update.
4363 * gnulib/import/m4/double-slash-root.m4: Update.
4364 * gnulib/import/m4/dup.m4: Update.
4365 * gnulib/import/m4/dup2.m4: Update.
4366 * gnulib/import/m4/eealloc.m4: Update.
4367 * gnulib/import/m4/environ.m4: Update.
4368 * gnulib/import/m4/errno_h.m4: Update.
4369 * gnulib/import/m4/error.m4: Update.
4370 * gnulib/import/m4/exponentd.m4: Update.
4371 * gnulib/import/m4/exponentl.m4: Update.
4372 * gnulib/import/m4/extensions.m4: Update.
4373 * gnulib/import/m4/extern-inline.m4: Update.
4374 * gnulib/import/m4/fchdir.m4: Update.
4375 * gnulib/import/m4/fcntl-o.m4: Update.
4376 * gnulib/import/m4/fcntl.m4: Update.
4377 * gnulib/import/m4/fcntl_h.m4: Update.
4378 * gnulib/import/m4/fdopendir.m4: Update.
4379 * gnulib/import/m4/filenamecat.m4: Update.
4380 * gnulib/import/m4/flexmember.m4: Update.
4381 * gnulib/import/m4/float_h.m4: Update.
4382 * gnulib/import/m4/fnmatch.m4: Update.
4383 * gnulib/import/m4/fnmatch_h.m4: Update.
4384 * gnulib/import/m4/fpieee.m4: Update.
4385 * gnulib/import/m4/frexp.m4: Update.
4386 * gnulib/import/m4/frexpl.m4: Update.
4387 * gnulib/import/m4/fstat.m4: Update.
4388 * gnulib/import/m4/fstatat.m4: Update.
4389 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
4390 * gnulib/import/m4/getcwd-path-max.m4: Update.
4391 * gnulib/import/m4/getcwd.m4: Update.
4392 * gnulib/import/m4/getdtablesize.m4: Update.
4393 * gnulib/import/m4/getlogin.m4: Update.
4394 * gnulib/import/m4/getlogin_r.m4: Update.
4395 * gnulib/import/m4/getpagesize.m4: Update.
4396 * gnulib/import/m4/getprogname.m4: Update.
4397 * gnulib/import/m4/gettimeofday.m4: Update.
4398 * gnulib/import/m4/glibc21.m4: Update.
4399 * gnulib/import/m4/glob.m4: Update.
4400 * gnulib/import/m4/glob_h.m4: Update.
4401 * gnulib/import/m4/gnulib-cache.m4: Update.
4402 * gnulib/import/m4/gnulib-common.m4: Update.
4403 * gnulib/import/m4/gnulib-comp.m4: Update.
4404 * gnulib/import/m4/gnulib-tool.m4: Update.
4405 * gnulib/import/m4/hard-locale.m4: Update.
4406 * gnulib/import/m4/include_next.m4: Update.
4407 * gnulib/import/m4/inttypes-pri.m4: Update.
4408 * gnulib/import/m4/inttypes.m4: Update.
4409 * gnulib/import/m4/isnand.m4: Update.
4410 * gnulib/import/m4/isnanl.m4: Update.
4411 * gnulib/import/m4/largefile.m4: Update.
4412 * gnulib/import/m4/limits-h.m4: Update.
4413 * gnulib/import/m4/localcharset.m4: Update.
4414 * gnulib/import/m4/locale-fr.m4: Update.
4415 * gnulib/import/m4/locale-ja.m4: Update.
4416 * gnulib/import/m4/locale-zh.m4: Update.
4417 * gnulib/import/m4/localtime-buffer.m4: Update.
4418 * gnulib/import/m4/longlong.m4: Update.
4419 * gnulib/import/m4/lstat.m4: Update.
4420 * gnulib/import/m4/malloc.m4: Update.
4421 * gnulib/import/m4/malloca.m4: Update.
4422 * gnulib/import/m4/math_h.m4: Update.
4423 * gnulib/import/m4/mbrtowc.m4: Update.
4424 * gnulib/import/m4/mbsinit.m4: Update.
4425 * gnulib/import/m4/mbsrtowcs.m4: Update.
4426 * gnulib/import/m4/mbstate_t.m4: Update.
4427 * gnulib/import/m4/memchr.m4: Update.
4428 * gnulib/import/m4/memmem.m4: Update.
4429 * gnulib/import/m4/mempcpy.m4: Update.
4430 * gnulib/import/m4/memrchr.m4: Update.
4431 * gnulib/import/m4/mkdir.m4: Update.
4432 * gnulib/import/m4/mkstemp.m4: Update.
4433 * gnulib/import/m4/mmap-anon.m4: Update.
4434 * gnulib/import/m4/mode_t.m4: Update.
4435 * gnulib/import/m4/msvc-inval.m4: Update.
4436 * gnulib/import/m4/msvc-nothrow.m4: Update.
4437 * gnulib/import/m4/multiarch.m4: Update.
4438 * gnulib/import/m4/nocrash.m4: Update.
4439 * gnulib/import/m4/off_t.m4: Update.
4440 * gnulib/import/m4/onceonly.m4: Update.
4441 * gnulib/import/m4/open-cloexec.m4: Update.
4442 * gnulib/import/m4/open.m4: Update.
4443 * gnulib/import/m4/openat.m4: Update.
4444 * gnulib/import/m4/opendir.m4: Update.
4445 * gnulib/import/m4/pathmax.m4: Update.
4446 * gnulib/import/m4/rawmemchr.m4: Update.
4447 * gnulib/import/m4/readdir.m4: Update.
4448 * gnulib/import/m4/readlink.m4: Update.
4449 * gnulib/import/m4/realloc.m4: Update.
4450 * gnulib/import/m4/rename.m4: Update.
4451 * gnulib/import/m4/rewinddir.m4: Update.
4452 * gnulib/import/m4/rmdir.m4: Update.
4453 * gnulib/import/m4/save-cwd.m4: Update.
4454 * gnulib/import/m4/secure_getenv.m4: Update.
4455 * gnulib/import/m4/setenv.m4: Update.
4456 * gnulib/import/m4/signal_h.m4: Update.
4457 * gnulib/import/m4/ssize_t.m4: Update.
4458 * gnulib/import/m4/stat-time.m4: Update.
4459 * gnulib/import/m4/stat.m4: Update.
4460 * gnulib/import/m4/std-gnu11.m4: Update.
4461 * gnulib/import/m4/stdbool.m4: Update.
4462 * gnulib/import/m4/stddef_h.m4: Update.
4463 * gnulib/import/m4/stdint.m4: Update.
4464 * gnulib/import/m4/stdio_h.m4: Update.
4465 * gnulib/import/m4/stdlib_h.m4: Update.
4466 * gnulib/import/m4/strchrnul.m4: Update.
4467 * gnulib/import/m4/strdup.m4: Update.
4468 * gnulib/import/m4/strerror.m4: Update.
4469 * gnulib/import/m4/string_h.m4: Update.
4470 * gnulib/import/m4/strstr.m4: Update.
4471 * gnulib/import/m4/strtok_r.m4: Update.
4472 * gnulib/import/m4/sys_socket_h.m4: Update.
4473 * gnulib/import/m4/sys_stat_h.m4: Update.
4474 * gnulib/import/m4/sys_time_h.m4: Update.
4475 * gnulib/import/m4/sys_types_h.m4: Update.
4476 * gnulib/import/m4/tempname.m4: Update.
4477 * gnulib/import/m4/time_h.m4: Update.
4478 * gnulib/import/m4/unistd-safer.m4: Update.
4479 * gnulib/import/m4/unistd_h.m4: Update.
4480 * gnulib/import/m4/warn-on-use.m4: Update.
4481 * gnulib/import/m4/wchar_h.m4: Update.
4482 * gnulib/import/m4/wchar_t.m4: Update.
4483 * gnulib/import/m4/wctype_h.m4: Update.
4484 * gnulib/import/m4/wint_t.m4: Update.
4485 * gnulib/import/malloc.c: Update.
4486 * gnulib/import/malloc/scratch_buffer.h: Update.
4487 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
4488 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
4489 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
4490 * gnulib/import/malloca.c: Update.
4491 * gnulib/import/malloca.h: Update.
4492 * gnulib/import/malloca.valgrind: Update.
4493 * gnulib/import/math.in.h: Update.
4494 * gnulib/import/mbrtowc.c: Update.
4495 * gnulib/import/mbsinit.c: Update.
4496 * gnulib/import/mbsrtowcs-impl.h: Update.
4497 * gnulib/import/mbsrtowcs-state.c: Update.
4498 * gnulib/import/mbsrtowcs.c: Update.
4499 * gnulib/import/memchr.c: Update.
4500 * gnulib/import/memmem.c: Update.
4501 * gnulib/import/mempcpy.c: Update.
4502 * gnulib/import/memrchr.c: Update.
4503 * gnulib/import/mkdir.c: Update.
4504 * gnulib/import/mkstemp.c: Update.
4505 * gnulib/import/msvc-inval.c: Update.
4506 * gnulib/import/msvc-inval.h: Update.
4507 * gnulib/import/msvc-nothrow.c: Update.
4508 * gnulib/import/msvc-nothrow.h: Update.
4509 * gnulib/import/open.c: Update.
4510 * gnulib/import/openat-die.c: Update.
4511 * gnulib/import/openat-priv.h: Update.
4512 * gnulib/import/openat-proc.c: Update.
4513 * gnulib/import/openat.c: Update.
4514 * gnulib/import/openat.h: Update.
4515 * gnulib/import/opendir.c: Update.
4516 * gnulib/import/pathmax.h: Update.
4517 * gnulib/import/pipe-safer.c: Update.
4518 * gnulib/import/rawmemchr.c: Update.
4519 * gnulib/import/readdir.c: Update.
4520 * gnulib/import/readlink.c: Update.
4521 * gnulib/import/realloc.c: Update.
4522 * gnulib/import/ref-add.sin: Update.
4523 * gnulib/import/ref-del.sin: Update.
4524 * gnulib/import/rename.c: Update.
4525 * gnulib/import/rewinddir.c: Update.
4526 * gnulib/import/rmdir.c: Update.
4527 * gnulib/import/same-inode.h: Update.
4528 * gnulib/import/save-cwd.c: Update.
4529 * gnulib/import/save-cwd.h: Update.
4530 * gnulib/import/scratch_buffer.h: Update.
4531 * gnulib/import/secure_getenv.c: Update.
4532 * gnulib/import/setenv.c: Update.
4533 * gnulib/import/signal.in.h: Update.
4534 * gnulib/import/stat-time.c: Update.
4535 * gnulib/import/stat-time.h: Update.
4536 * gnulib/import/stat-w32.c: Update.
4537 * gnulib/import/stat-w32.h: Update.
4538 * gnulib/import/stat.c: Update.
4539 * gnulib/import/stdbool.in.h: Update.
4540 * gnulib/import/stddef.in.h: Update.
4541 * gnulib/import/stdint.in.h: Update.
4542 * gnulib/import/stdio.in.h: Update.
4543 * gnulib/import/stdlib.in.h: Update.
4544 * gnulib/import/str-two-way.h: Update.
4545 * gnulib/import/strchrnul.c: Update.
4546 * gnulib/import/strdup.c: Update.
4547 * gnulib/import/streq.h: Update.
4548 * gnulib/import/strerror-override.c: Update.
4549 * gnulib/import/strerror-override.h: Update.
4550 * gnulib/import/strerror.c: Update.
4551 * gnulib/import/string.in.h: Update.
4552 * gnulib/import/stripslash.c: Update.
4553 * gnulib/import/strnlen1.c: Update.
4554 * gnulib/import/strnlen1.h: Update.
4555 * gnulib/import/strstr.c: Update.
4556 * gnulib/import/strtok_r.c: Update.
4557 * gnulib/import/sys_stat.in.h: Update.
4558 * gnulib/import/sys_time.in.h: Update.
4559 * gnulib/import/sys_types.in.h: Update.
4560 * gnulib/import/tempname.c: Update.
4561 * gnulib/import/tempname.h: Update.
4562 * gnulib/import/time.in.h: Update.
4563 * gnulib/import/unistd--.h: Update.
4564 * gnulib/import/unistd-safer.h: Update.
4565 * gnulib/import/unistd.in.h: Update.
4566 * gnulib/import/unsetenv.c: Update.
4567 * gnulib/import/verify.h: Update.
4568 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4569 * gnulib/import/wchar.in.h: Update.
4570 * gnulib/import/wctype.in.h: Update.
4571 * gnulib/import/xalloc-oversized.h: Update.
4572 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4573 "53e2c179f26a890fa6685af4b6c1397ee370433b".
4574
b0f492b9
GB
45752018-08-16 Gary Benson <gbenson@redhat.com>
4576
4577 PR gdb/13000:
4578 * gdb/main.c (captured_main_1): Exit with nonzero status
4579 in batch mode if the last command to be executed failed.
4580 * NEWS: Mention the above.
4581
2362e7f7
SM
45822018-08-29 Simon Marchi <simon.marchi@ericsson.com>
4583
4584 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
4585 end of warning message.
4586
4f4aedeb
AH
45872018-08-29 Alan Hayward <alan.hayward@arm.com>
4588
4589 PR gdb/22943:
4590 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
4591 (aarch64_extract_return_value): Use
4592 aapcs_is_vfp_call_or_return_candidate.
4593 (aarch64_return_in_memory): Likewise.
4594 (aarch64_store_return_value): Likewise.
4595
0e745c60
AH
45962018-08-29 Alan Hayward <alan.hayward@arm.com>
4597
4598 * aarch64-tdep.c
4599 (aapcs_is_vfp_call_or_return_candidate): Make static
4600 (pass_in_v_or_stack): Remove function.
4601 (pass_in_v_vfp_candidate): New function.
4602 (aarch64_push_dummy_call): Check for float register candidates.
4603
ea92689a
AH
46042018-08-29 Alan Hayward <alan.hayward@arm.com>
4605
4606 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
4607 (aapcs_is_vfp_call_or_return_candidate_1): New function.
4608 (aapcs_is_vfp_call_or_return_candidate): Likewise.
4609
ad202fcc
SM
46102018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4611
4612 PR build/23399
4613 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
4614 (struct ipa_sym_addresses): Rename to...
4615 (struct ipa_sym_addresses_common): ... this.
4616 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
4617
5fe3f3e4
TT
46182018-08-28 Tom Tromey <tom@tromey.com>
4619
4620 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4621 (token_fifo): Now a std::vector.
4622 (yylex, c_parse): Update.
4623 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4624 (token_fifo): Now a std::vector.
4625 (yylex, d_parse): Update.
4626 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4627 (token_fifo): Now a std::vector.
4628 (yylex, go_parse): Update.
4629
858d8004
SM
46302018-08-28 Simon Marchi <simon.marchi@ericsson.com>
4631
4632 * parser-defs.h (struct type_stack) <elements>: Change type to
4633 std::vector<union type_stack_elt>.
4634 <depth, size>: Remove.
4635 * parse.c (parse_exp_in_context_1): Adjust.
4636 (type_stack_reserve): Remove.
4637 (check_type_stack_depth): Remove.
4638 (insert_into_type_stack): Adjust to std::vector.
4639 (insert_type): Likewise.
4640 (push_type): Likewise.
4641 (push_type_int): Likewise.
4642 (insert_type_address_space): Likewise.
4643 (pop_type): Likewise.
4644 (pop_type_int): Likewise.
4645 (pop_typelist): Likewise.
4646 (pop_type_stack): Likewise.
4647 (append_type_stack): Likewise.
4648 (push_type_stack): Likewise.
4649 (get_type_stack): Likewise.
4650 (type_stack_cleanup): Likewise.
4651 (push_typelist): Likewise.
4652 (follow_types): Likewise.
4653 (_initialize_parse): Likewise.
4654
416a69af
HAQ
46552018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
4656
4657 * NEWS: Mention csky target.
4658
9d24df82
HAQ
46592018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
4660 Hafiz Abid Qadeer <abidh@codesourcery.com>
4661 Don Breazeal <donb@codesourcery.com>
4662
4663 * csky-linux-tdep.c: New file.
4664 * csky-tdep.c: Likewise.
4665 * csky-tdep.h: Likewise.
4666 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
4667 csky-tdep.o.
4668 (HFILES_NO_SRCDIR): Add csky-tdep.h.
4669 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
4670 * configure.tgt: Add csky support.
4671
3bf9c013
JV
46722018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
4673
4674 * python/py-framefilter.c (py_print_frame): Print frame architecture
4675 when printing on an MI output.
4676
d3d8724a
TT
46772018-08-27 Tom Tromey <tom@tromey.com>
4678
4679 PR build/23087:
4680 * configure: Rebuild.
4681 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
4682
1885053b
TT
46832018-08-27 Tom Tromey <tom@tromey.com>
4684
4685 * aarch64-linux-tdep.c
4686 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
4687 casts to int.
4688
8406672e
TT
46892018-08-27 Tom Tromey <tom@tromey.com>
4690
4691 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
4692 unsigned.
4693 (ppc64_standard_linkage1, ppc64_standard_linkage2)
4694 (ppc64_standard_linkage3, ppc64_standard_linkage4)
4695 (ppc64_standard_linkage5, ppc64_standard_linkage6)
4696 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
4697 unsigned.
4698
ec40cf90
TT
46992018-08-27 Tom Tromey <tom@tromey.com>
4700
4701 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
4702 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
4703
7bc02706
TT
47042018-08-27 Tom Tromey <tom@tromey.com>
4705
4706 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
4707 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
4708 ULONGEST_MAX.
4709 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
4710 ULONGEST_MAX.
4711 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
4712 ULONGEST_MAX.
4713 * sparc-linux-tdep.c (sparc32_linux_sigframe)
4714 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
4715 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
4716 ULONGEST_MAX.
4717 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
4718 (ppc64_linux_sigaction_tramp_frame)
4719 (ppc32_linux_sighandler_tramp_frame)
4720 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4721 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
4722 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
4723 * mn10300-linux-tdep.c (am33_linux_sigframe)
4724 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
4725 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
4726 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4727 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4728 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
4729 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
4730 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
4731 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
4732 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
4733 * microblaze-linux-tdep.c
4734 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4735 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
4736 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
4737 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
4738 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
4739 * common/common-types.h (ULONGEST_MAX): New define.
4740 (CORE_ADDR_MAX): Fix formatting.
4741 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
4742 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
4743 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
4744 (arm_linux_rt_sigreturn_tramp_frame)
4745 (arm_eabi_linux_sigreturn_tramp_frame)
4746 (arm_eabi_linux_rt_sigreturn_tramp_frame)
4747 (thumb2_eabi_linux_sigreturn_tramp_frame)
4748 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
4749 (arm_linux_restart_syscall_tramp_frame)
4750 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
4751 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
4752 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
4753 ULONGEST_MAX.
4754 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
4755
70ab8ccd
TT
47562018-08-27 Tom Tromey <tom@tromey.com>
4757
4758 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
4759 CORE_ADDR_MAX.
4760 * mips-tdep.c (mips_deal_with_atomic_sequence)
4761 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
4762 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
4763 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
4764 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
4765 CORE_ADDR_MAX.
4766 * aarch64-tdep.c (aarch64_software_single_step): Use
4767 CORE_ADDR_MAX.
4768
896a7aa6
TT
47692018-08-27 Tom Tromey <tom@tromey.com>
4770
4771 * linespec.c (complete_linespec_component): Add cast to "char".
4772 * completer.c (completion_tracker::build_completion_result): Add
4773 cast to "char".
4774
dd33d41d
SM
47752018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4776
4777 * solist.h (struct solist, struct target_so_ops): Fix
4778 indentation.
4779
c645cda4
SM
47802018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4781
4782 * ada-tasks.c (ada_task_info_s): Remove typedef.
4783 (DEF_VEC_O(ada_task_info_s)): Remove.
4784 (struct ada_tasks_inferior_data): Initialize fields.
4785 <task_list>: Make an std::vector.
4786 (get_ada_tasks_inferior_data): Allocate with new.
4787 (ada_get_task_number): Adjust.
4788 (get_task_number_from_id): Likewise.
4789 (valid_task_id): Likewise.
4790 (ada_get_task_info_from_ptid): Likewise.
4791 (iterate_over_live_ada_tasks): Likewise.
4792 (add_ada_task): Likewise.
4793 (read_known_tasks): Likewise.
4794 (ada_build_task_list): Likewise.
4795 (print_ada_task_info): Likewise.
4796 (info_task): Likewise.
4797 (task_command_1): Likewise.
4798
39e7af3e
SM
47992018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4800
4801 * ada-lang.c (add_angle_brackets): Return std::string.
4802
bbbbbcee
SM
48032018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
4804
4805 * python/py-threadevent.c (py_get_event_thread): Initialize
4806 pythread.
4807
d98fc15b
PA
48082018-08-24 Pedro Alves <palves@redhat.com>
4809
4810 * python/py-bpevent.c (create_breakpoint_event_object): Use
4811 copy-initialization.
4812 * python/py-continueevent.c (emit_continue_event): Use
4813 copy-initialization.
4814 * python/py-exitedevent.c (create_exited_event_object): Return a
4815 gdbpy_ref<>.
4816 (emit_exited_event): Use copy-initialization.
4817 * python/py-inferior.c (python_new_inferior)
4818 (python_inferior_deleted, add_thread_object): Use
4819 copy-initialization.
4820 * python/py-infevents.c (create_inferior_call_event_object)
4821 (create_register_changed_event_object)
4822 (create_memory_changed_event_object): Return a gdbpy_ref<>.
4823 (emit_inferior_call_event, emit_memory_changed_event)
4824 (emit_register_changed_event): Use copy-initialization.
4825 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4826 Return a gdbpy_ref<>.
4827 (emit_new_objfile_event): Use copy-initialization.
4828 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
4829 (emit_clear_objfiles_event): Use copy-initialization.
4830 * python/py-signalevent.c (create_signal_event_object): Use
4831 copy-initialization.
4832 * python/py-threadevent.c (create_thread_event_object): Use
4833 copy-initialization.
4834
da3c8738
PA
48352018-08-24 Pedro Alves <palves@redhat.com>
4836 Simon Marchi <simon.marchi@ericsson.com>
4837
4838 PR gdb/23379
4839 * python/py-continueevent.c: Include "gdbthread.h".
4840 (create_continue_event_object): Add intro comment. Add 'ptid'
4841 parameter. Use it to find thread to pass to
4842 create_thread_event_object.
4843 (emit_continue_event): Pass PTID down to
4844 create_continue_event_object.
4845 * python/py-event.h (py_get_event_thread): Declare.
4846 (create_thread_event_object): Remove default from 'thread'
4847 parameter.
4848 * python/py-stopevent.c (create_stop_event_object): Use
4849 py_get_event_thread.
4850 * python/py-threadevent.c (get_event_thread): Rename to ...
4851 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
4852 and use it to find the thread.
4853 (create_thread_event_object): Assert that THREAD isn't null.
4854 Don't find the event thread here.
4855
26457a9c
KB
48562018-08-23 Kevin Buettner <kevinb@redhat.com>
4857
4858 * block.h (blockrange, blockranges): New struct declarations.
4859 (struct block): Add new field named `ranges'.
4860 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
4861 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
4862 macros for accessing ranges in struct block.
4863 (make_blockranges): New declaration.
4864 block.c (make_blockranges): New function.
2d5f09ec
KB
4865 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
4866 for block.
fc811edd
KB
4867 * symtab.h (find_pc_partial_function): Add new parameter `block'.
4868 * blockframe.c (cache_pc_function_block): New static global.
4869 (clear_pc_function_cache): Clear cache_pc_function_block.
4870 (find_pc_partial_function): Move comment to symtab.h. Add
4871 support for non-contiguous blocks.
e9480230
KB
4872 * cli/cli-cmds.c (block.h): Include.
4873 (print_disassembly): Handle printing of non-contiguous blocks.
4874 (disassemble_current_function): Likewise.
4875 (disassemble_command): Likewise.
26457a9c 4876
2b1ffcfd
KB
4877 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
4878 BLOCK_START.
4879 * blockframe.c (get_pc_function_start): Likewise.
4880 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
4881 (gcc_symbol_address): Likewise.
4882 * compile/compile-object-run.c (compile_object_run): Likewise.
4883 * compile/compile.c (get_expr_block_and_pc): Likewise.
4884 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
4885 (func_addr_to_tail_call_list): Likewise.
4886 * findvar.c (default_read_var_value): Likewise.
4887 * inline-frame.c (inline_frame_this_id): Likewise.
4888 (skip-inline_frames): Likewise.
4889 * infcmd.c (until_next_command): Likewise.
4890 * linespec.c (convert_linespec_to_sals): Likewise.
4891 * parse.c (parse_exp_in_context_1): Likewise.
4892 * printcmd.c (build_address_symbolic): likewise.
4893 (info_address_command): Likewise.
4894 symtab.c (find_function_start_sal): Likewise.
4895 (skip_prologue_sal): Likewise.
4896 (find_function_alias_target): Likewise.
4897 (find_gnu_ifunc): Likewise.
4898 * stack.c (find_frame_funname): Likewise.
4899 * symtab.c (fixup_symbol_section): Likewise.
4900 (find_function_start_sal): Likewise.
4901 (skip_prologue_sal): Likewsie.
4902 (find_function_alias_target): Likewise.
4903 (find_gnu_ifunc): Likewise.
4904 * tracepoint.c (info_scope_command): Likewise.
4905 * value.c (value_fn_field): Likewise.
4906
9644dc3a
KB
4907 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
4908 in place of find_pc_partial_function.
4909 * blockframe.c (find_function_entry_range_from_pc): New function.
4910 * symtab.h (find_function_entry_range_from_pc): Declare and document.
4911 * objfiles.c (objfile_relocate1): Relocate start and end addresses
4912 for each range in a block.
4913
4914
12a0d0f6
XR
49152018-08-23 Xavier Roirand <roirand@adacore.com>
4916
4917 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
4918 incrementation.
4919
d1012b8e
SM
49202018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4921
4922 * solib-svr4.c (read_program_headers_from_bfd): Return
4923 gdb::optional<gdb::byte_vector>.
4924 (svr4_exec_displacement): Adjust.
4925
17658d46
SM
49262018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4927
4928 * solib-svr4.c (read_program_header): Return
4929 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
4930 (find_program_interpreter): Return
4931 gdb::optional<gdb::byte_vector>.
4932 (scan_dyntag_auxv): Adjust.
4933 (enable_break): Adjust.
4934 (svr4_exec_displacement): Adjust.
4935
ae739fe7
SM
49362018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4937
4938 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
4939 * inf-child.c (inf_child_target::terminal_save_inferior): New.
4940
467dc1e2
SM
49412018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4942
4943 * guile/scm-string.c (gdbscm_scm_from_printf): Use
4944 string_vprintf.
4945 * guile/scm-utils.c (gdbscm_printf): Likewise.
4946 * serial.c (serial_printf): Likewise.
4947 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
4948
6d52907e
JV
49492018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
4950
4951 * stack.c (print_frame): Print frame architecture when printing on
4952 an MI output.
4953 * NEWS: Mention new "arch" attribute in frame output.
4954
9758a8f8
AH
49552018-08-21 Alan Hayward <alan.hayward@arm.com>
4956
4957 * arch/aarch64.h (aarch64_regnum): Update comment.
4958
1461bdac
AH
49592018-08-21 Alan Hayward <alan.hayward@arm.com>
4960
4961 * NEWS: Add SVE to 8.2 section.
4962
4895f384
PA
49632018-08-21 Pedro Alves <palves@redhat.com>
4964
4965 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
4966 out from gdbscm_parse_function_args.
4967 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
4968 gdbscm_parse_function_args_1.
4969
a4497d2f
SM
49702018-08-21 Simon Marchi <simon.marchi@ericsson.com>
4971
4972 PR gdb/17816
4973 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
4974 operator.
4975
c44deb73
SM
49762018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
4977
4978 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
4979
be2d111a
MS
49802018-08-19 Michael Spang <spang@google.com>
4981
4982 PR gdb/11786
4983 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
4984 for PT_TLS segments.
4985
a6b786da
KB
49862018-08-18 Kevin Buettner <kevinb@redhat.com>
4987
4988 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
4989 dwarf_variable_value.
4990 * dwarf2-frame.c (class dwarf_expr_executor):
4991 Add override for dwarf_variable_value.
4992 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
4993 (class symbol_needs_eval_context): Likewise.
4994 (indirect_synthetic_pointer): Add forward declaration.
4995 (sect_variable_value): New function.
4996 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
4997 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
4998 for DW_OP_GNU_variable_value.
4999
89fbedf3
TT
50002018-08-16 Tom Tromey <tom@tromey.com>
5001
5002 * top.c (read_command_file): Update.
5003 (command_line_input): Remove "repeat" argument.
5004 * ada-lang.c (get_selections): Update.
5005 * linespec.c (decode_line_2): Update.
5006 * defs.h (command_line_input): Remove argument.
5007 * cli/cli-script.c (read_next_line): Update.
5008 * python/py-gdb-readline.c: Update.
5009
12582533
TT
50102018-08-17 Tom Tromey <tom@tromey.com>
5011
5012 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
5013 command_line_input.
5014
49514353
TT
50152018-08-15 Tom Tromey <tom@tromey.com>
5016
5017 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
5018
26fb3983
JV
50192018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
5020
5021 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
5022 If used, use find_pc_partial_function to find address range
5023 to disassemble.
5024 * mi/mi-main.c (mi_cmd_list_features): Report
5025 "data-disassemble-a-option" feature.
5026 * NEWS: Mention new -data-disassemble option -a.
5027
a97b53dd
TT
50282018-08-13 Tom Tromey <tom@tromey.com>
5029
5030 * common/common-defs.h (_FORTIFY_SOURCE): Define.
5031
0c76e06d
AH
50322018-08-13 Alan Hayward <alan.hayward@arm.com>
5033
5034 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
5035 (aarch64_linux_collect_sve_regset): Likewise.
5036 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
5037 * regcache.h (regcache_map_entry_size): New function.
5038
b7fd65b9
AH
50392018-08-13 Alan Hayward <alan.hayward@arm.com>
5040
5041 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
5042 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
5043 (SVE_HEADER_VL_LENGTH): Likewise.
5044 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
5045 (SVE_HEADER_FLAGS_LENGTH): Likewise.
5046 (SVE_HEADER_RESERVED_LENGTH): Likewise.
5047 (SVE_HEADER_SIZE_OFFSET): Likewise.
5048 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
5049 (SVE_HEADER_VL_OFFSET): Likewise.
5050 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
5051 (SVE_HEADER_FLAGS_OFFSET): Likewise.
5052 (SVE_HEADER_RESERVED_OFFSET): Likewise.
5053 (SVE_HEADER_SIZE): Likewise.
5054 (aarch64_linux_core_read_vq): Add function.
5055 (aarch64_linux_core_read_description): Check for SVE section.
5056
a616bb94
AH
50572018-08-13 Alan Hayward <alan.hayward@arm.com>
5058
5059 * aarch64-fbsd-tdep.c
5060 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
5061 collect_size.
5062 * aarch64-linux-tdep.c
5063 (aarch64_linux_iterate_over_regset_sections): Likewise.
5064 * alpha-linux-tdep.c
5065 (alpha_linux_iterate_over_regset_sections):
5066 * alpha-nbsd-tdep.c
5067 (alphanbsd_iterate_over_regset_sections): Likewise.
5068 * amd64-fbsd-tdep.c
5069 (amd64fbsd_iterate_over_regset_sections): Likewise.
5070 * amd64-linux-tdep.c
5071 (amd64_linux_iterate_over_regset_sections): Likewise.
5072 * arm-bsd-tdep.c
5073 (armbsd_iterate_over_regset_sections): Likewise.
5074 * arm-fbsd-tdep.c
5075 (arm_fbsd_iterate_over_regset_sections): Likewise.
5076 * arm-linux-tdep.c
5077 (arm_linux_iterate_over_regset_sections): Likewise.
5078 * corelow.c (get_core_registers_cb): Likewise.
5079 (core_target::fetch_registers): Likewise.
5080 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
5081 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
5082 * gdbarch.h (void): Regenerate.
5083 * gdbarch.sh: Add supply_size and collect_size.
5084 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
5085 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
5086 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
5087 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
5088 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
5089 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
5090 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
5091 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
5092 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
5093 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
5094 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
5095 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
5096 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
5097 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
4399bce9
PA
5098 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections):
5099 Likewise.
a616bb94
AH
5100 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
5101 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
5102 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
5103 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
5104 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
5105 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
4399bce9
PA
5106 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections):
5107 Likewise.
a616bb94
AH
5108 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
5109 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
5110 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
5111 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
5112 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
5113 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
5114 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
5115 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
5116
a9925d4f
SM
51172018-08-10 Simon Marchi <simon.marchi@ericsson.com>
5118
5119 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
5120 with string_printf.
5121
ad3a68e9
KS
51222018-08-10 Keith Seitz <keiths@redhat.com>
5123
5124 * compile/compile-c-support.c (add_code_header, add_code_footer):
5125 Move into policy class.
5126 (c_push_user_expression, pop_user_expression_nop)
5127 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
5128 (compile_program): New host class.
5129 (c_compile_program): New typedef.
5130 (c_compute_porgram): Use c_compile_program.
5131
0cfbf430
KS
51322018-08-10 Keith Seitz <keiths@redhat.com>
5133
5134 * compile/compile-internal.h (compile_instance::~compile_instance):
5135 Remove calls to htab_delete.
5136 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
5137 * compile.c (compile_instance::compile_instance): Initialize
5138 htab unique pointers.
5139 (compile_instance::get_cached_type, compile_instance::insert_type)
5140 (compile_instance::error_symbol_once): Update for unique_ptr.
5141
946d3d10
KS
51422018-08-10 Keith Seitz <keiths@redhat.com>
5143
5144 * compile/compile-c-symbols.c (struct symbol_error)
5145 (hash_symbol_error, eq_symbol_error, del_symbol_error)
5146 (compile_instance::insert_symbol_error)
5147 (compile_instance::error_symbol_once): Move to ...
5148 * compile/compile.c: ... here.
5149
9cdfd9a2
KS
51502018-08-10 Keith Seitz <keiths@redhat.com>
5151
5152 * compile/compile-c-support.c (c_get_compile_context): Use `new'
5153 instead of `new_compile_instance'.
5154 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
5155 Update description.
5156 If the symbol error map is not initialized, create it.
5157 (generate_c_for_for_one_symbol): Do not check/initialize
5158 the symbol error map.
5159 * compile/compile-c-types.c (compile_c_instance): Make a class.
5160 Update all callers.
5161 (compile_instance::compile_instance): Initialize the type cache.
5162 (get_cached_type): New function.
5163 (insert_type): Update description.
5164 (compile_c_instance::m_default_cflags): Define.
5165 (convert_type): Update description. Use get_cached_type.
5166 (delete_instance): Moved to destructor.
5167 (new_compile_instance): Moved to constructor.
5168 * compile/compile-c.h (compile_c_instance): Make class inheriting
5169 from compile_instance.
5170 <base>: Remove field.
5171 <type_map, symbol_err_map>: Move to base class.
5172 <c_plugin>: Rename to `m_plugin' and remove pointer type.
5173 * compile/compile-internal.h (compile_instance): Make class.
5174 <type_map_t, symbol_err_map_t>: Define.
5175 <fe>: Rename to `m_gcc_fe'.
5176 <scope, block, gcc_target_options>: Add `m_' prefix.
5177 <m_type_map, m_symbol_err_map>: New fields, moved from
5178 compile_c_instance.
5179 <destroy>: Remove.
5180 (convert_type, new_compile_instance): Remove.
5181 * compile/compile.c (cleanup_compile_instance): Remove.
5182 (compile_to_object): Use unique_ptr to eliminate cleanups.
5183 (compile_instance::set_print_callback, compile_instance::version)
5184 (compile_instance::set_verbose)
5185 (compile_instance::set_driver_filename)
5186 (compile_instance::set_triplet_regexp)
5187 (compile_instance::set_arguments)
5188 (compile_instance::set_source_file)
5189 (compile_instance::compile): Define.
5190
18cdc6d8
KS
51912018-08-10 Keith Seitz <keiths@redhat.com>
5192
5193 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
5194 * compile/compile-c-types.c: Define GCC_METHODN macros and include
5195 gcc-c-fe.def to define C plugin.
5196 (delete_instance): Delete `c_plugin'.
5197 (new_compile_instance): Initialize `c_plugin'.
5198 * compile/compile-c.h: Include gcc_c_plugin.h.
5199 (struct compile_c_instance) <c_plugin>: New member.
5200 * gcc-c-plugin.h: New file.
5201 Update all callers with API change.
5202
b7dc48b4
KS
52032018-08-10 Keith Seitz <keiths@redhat.com>
5204
5205 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
5206 (HFILES_NO_SRCDIR): ... to here.
5207 Add compile-internal.h and compile-c.h.
5208 * compile/compile-c-support.c: Include compile-c.h.
5209 * compile/compile-c-symbols.c: Include compile-c.h.
5210 (generate_c_for_variable_locations): Update comment.
5211 * compile/compile-c-types.c: Include compile-c.h.
5212 * compile/compile-c.h: New file -- moved C language declarations
5213 from other files here.
5214 * compile/compile-internal.h: Do not include hashtab.h or
5215 common/enum-flags.h.
5216 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
5217 (gcc_convert_symbol, gcc_symbol_address)
5218 (generate_c_for_variable_locations, c_get_mode_for_size)
5219 (c_get_range_decl_name): Definitions moved to compile-c.h.
5220 * compile/compile-loc2c.c: Include compile-c.h.
5221
6f36b6d2
KS
52222018-08-10 Keith Seitz <keiths@redhat.com>
5223
5224 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
5225 (c_symbol_substitution_name): ... this.
5226 Update all callers.
5227
bd923e51
KS
52282018-08-10 Keith Seitz <keiths@redhat.com>
5229
5230 * compile/compile-c-support.c (c_compute_program): Use
5231 unique_xmalloc_ptr to eliminate cleanup.
5232 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
5233 Return a unique_xmalloc_ptr and eliminate cleanup.
5234 * compile/compile-internal.h (generate_c_for_variable_locations):
5235 Return unique_xmalloc_ptr and update description.
5236
dbd534fe
AH
52372018-08-10 Alan Hayward <alan.hayward@arm.com>
5238
5239 * corelow.c (core_target::get_core_register_section): Rename
5240 min_size to section_min_size.
5241
90ad3654
JW
52422018-08-09 Jim Wilson <jimw@sifive.com>
5243
52a187f8
JW
5244 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
5245 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
5246 * NEWS: Mention new GNU/Linux RISC-V target.
5247 * configure.host: Add riscv*-*-linux*.
5248 * configure.nat: Add riscv*.
5249 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 5250 * riscv-linux-nat.c: New file.
90ad3654
JW
5251 * riscv-linux-tdep.c: New file.
5252
aff4e175
AB
52532018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
5254
5255 * infrun.c (resume): Make static, add forward declaration.
5256 (proceed): Update header comment.
5257 * infrun.h (resume): Delete declaration.
5258
06ab9219
TT
52592018-08-09 Tom Tromey <tom@tromey.com>
5260
5261 * riscv-tdep.h: Minor formatting fixes.
5262
83c8d318
SM
52632018-08-09 Simon Marchi <simon.marchi@ericsson.com>
5264
5265 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
5266 * dwarf-index-cache.c (create_dir_and_check): Likewise.
5267 (test_mkdir_recursive): Likewise.
5268 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
5269
5ff2bbae
AB
52702018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
5271
5272 * valarith.c (value_subscripted_rvalue): If an array is not in
5273 memory, and we don't know the upper bound, then we can't know that
5274 the requested element exists or not.
5275
fdbac7d8
SM
52762018-08-08 Simon Marchi <simon.marchi@ericsson.com>
5277
5278 * target.c (str_comma_list_concat_elem): Fix typo in comment.
5279 (target_options_to_string): Add comment.
5280
83202f7a
TT
52812018-08-08 Tom Tromey <tom@tromey.com>
5282
5283 * unittests/scoped_mmap-selftests.c: Check result of "write".
5284
411baa47
JW
52852018-08-08 Jim Wilson <jimw@sifive.com>
5286
5c720ed8
JW
5287 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
5288 (decode_register_index_short): New.
5289 (decode_j_type_insn, decode_cj_type_insn): New.
5290 (decode_b_type_insn, decode_cb_type_insn): New.
5291 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
5292 local xlen. Check xlen when decoding ambiguous compressed insns. In
5293 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
5294 is_c_sw_insn instead of is_sw_insn.
5295 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
5296 (riscv_software_single_step): New.
5297 * riscv-tdep.h (riscv_software_single_step): Declare.
5298
411baa47
JW
5299 * riscv-tdep.c (riscv_isa_xlen): Drop static.
5300 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
5301
9d4a934c
AB
53022018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
5303
5304 PR gdb/18050:
5305 * target.c (dispose_inferior): Don't dispose of inferiors that are
5306 already killed.
5307
ff36536c
SN
53082018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
5309
5310 * remote.c (remote_target::download_tracepoint): Change char* to
5311 const char*.
5312
09ce46f2
SM
53132018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5314
5315 * target.h (target_options_to_string): Return an std::string.
5316 * target.c (str_comma_list_concat_elem): Return void, use
5317 std::string.
5318 (do_option): Likewise.
5319 (target_options_to_string): Return an std::string.
5320 * linux-nat.c (linux_nat_target::wait): Adjust.
5321 * target-debug.h (target_debug_print_options): Adjust.
5322
9c612964
TT
53232018-08-07 Tom Tromey <tom@tromey.com>
5324
5325 * Makefile.in (CPPFLAGS): New variable.
5326 (INTERNAL_CPPFLAGS): Use it.
5327
7d11235d
SM
53282018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5329
5330 * NEWS: Mention the index cache.
5331
87d6a7aa
SM
53322018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5333
5334 * common/pathstuff.h (get_standard_cache_dir): New.
5335 * common/pathstuff.c (get_standard_cache_dir): New.
5336 * build-id.h (build_id_to_string): New.
5337 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
5338 DEBUG_STR_SUFFIX): Move to here.
5339 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
5340 DEBUG_STR_SUFFIX): Move from there.
5341 (write_psymtabs_to_index): Make non-static, add basename
5342 parameter. Write to temporary files, rename when done.
5343 (save_gdb_index_command): Adjust call to
5344 write_psymtabs_to_index.
5345 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
5346 field.
5347 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
5348 (get_gdb_index_contents_from_cache): New.
5349 (get_gdb_index_contents_from_cache_dwz): New.
5350 (dwarf2_initialize_objfile): Read index from cache.
5351 (dwarf2_build_psymtabs): Save to index.
5352 * dwarf-index-cache.h: New file.
5353 * dwarf-index-cache.c: New file.
5354 * dwarf-index-write.h: New file.
5355
8a99096f
SM
53562018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5357
5358 * gnulib/aclocal.m4: Re-generate.
5359 * gnulib/config.in: Re-generate.
5360 * gnulib/configure: Re-generate.
5361 * gnulib/import/Makefile.am: Re-generate.
5362 * gnulib/import/Makefile.in: Re-generate.
5363 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
5364 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
5365 * gnulib/import/m4/mkdir.m4: New file.
5366 * gnulib/import/mkdir.c: New file.
5367 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
5368 module.
5369
5c831bb1
SM
53702018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5371
5372 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
5373 * common/scoped_mmap.c: New file.
5374 * common/scoped_mmap.h (destroy): New method.
5375 (~scoped_mmap, reset): Use destroy.
5376 (scoped_mmap): New move constructor.
5377 (mmap_file): New declaration.
5378 * unittests/scoped_mmap-selftests.c (test_normal,
5379 test_invalid_filename, run_tests): New functions.
5380 (_initialize_scoped_mmap_selftests): Register selftest.
5381
4485a1c1
SM
53822018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5383
5384 * dwarf2read.c (read_gdb_index_from_section): Rename to...
5385 (read_gdb_index_from_buffer): ... this. Remove section
5386 parameter, add buffer parameter.
5387 (get_gdb_index_contents_ftype,
5388 get_gdb_index_contents_dwz_ftype): New typedefs.
5389 (dwarf2_read_gdb_index): Add callback parameters to get the
5390 index contents.
5391 (get_gdb_index_contents_from_section): New.
5392 (dwarf2_initialize_objfile): Update call to
5393 dwarf2_read_gdb_index.
5394
528e1572
SM
53952018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5396
5397 * common/filestuff.h (gdb_fopen_cloexec): New overload.
5398 (gdb_open_cloexec): Likewise.
5399 * nat/linux-osdata.c (command_from_pid): Use string_printf.
5400 (commandline_from_pid): Likewise.
5401 (linux_xfer_osdata_threads): Likewise.
5402 (linux_xfer_osdata_fds): Likewise.
5403 * ada-lang.c (is_package_name): Likewise.
5404 * auxv.c (procfs_xfer_auxv): Likewise.
5405 * breakpoint.c (print_one_breakpoint_location): Use
5406 uiout::field_fmt.
5407 (print_one_catch_solib): Use string_printf.
5408 * coff-pe-read.c (add_pe_exported_sym): Likewise.
5409 (add_pe_forwarded_sym): Likewise.
5410 * dwarf2read.c (create_type_unit_group): Likewise.
5411 (build_error_marker_type): Likewise.
5412 * infcall.c (get_function_name): Likewise.
5413 * valprint.c (print_converted_chars_to_obstack): Likewise.
5414 * xtensa-tdep.c (xtensa_register_type): Likewise.
5415
a7f25a84
SM
54162018-08-06 Simon Marchi <simon.marchi@ericsson.com>
5417
5418 * remote.c (remote_target::download_tracepoint): Fix format
5419 string errors.
5420
296956be
PFC
54212018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5422
5423 * tracefile.c: Include common/byte-vector.h.
5424 (trace_save): Change type of buf to gdb::byte_vector. Initialize
5425 with trace_regblock_size if needed. Update uses of buf.
5426
a04b9d62
PFC
54272018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5428
5429 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
5430 std::vector<unsigned char>.
5431 * tracepoint.c (collection_list::collection_list): Remove
5432 m_regs_mask initializer from initializer list. Resize
5433 m_regs_mask using the largest remote register number.
5434 (collection_list::add_remote_register): Remove size check on
5435 m_regs_mask. Use at to access element.
5436 (collection_list::stringify): Change type of temp_buf to
5437 gdb::char_vector. Update uses of temp_buf. Resize if needed to
5438 stringify the register mask. Use pack_hex_byte for the register
5439 mask.
5440
4277c4b8
PFC
54412018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5442
5443 * tracepoint.h (class collection_list) <add_register>: Remove.
5444 <add_remote_register, add_ax_registers, add_local_register>:
5445 Declare.
5446 <add_memrange>: Add scope parameter.
5447 * tracepoint.c (encode_actions_1): Likewise.
5448 (collection_list::add_register): Rename to ...
5449 (collection_list::add_remote_register): ... this. Update
5450 comment.
5451 (collection_list::add_ax_registers, add_local_register): New
5452 methods.
5453 (collection_list::add_memrange): Add scope parameter. Call
5454 add_local_register instead of add_register.
5455 (finalize_tracepoint_aexpr): New function.
5456 (collection_list::collect_symbol): Update calls to add_memrange.
5457 Call add_local_register instead of add_register. Call
5458 add_ax_registers. Call finalize_tracepoint_aexpr.
5459 (encode_actions_1): Get remote regnos for $reg action. Call
5460 add_remote_register, add_ax_registers, and add_local_register.
5461 Update call to add_memrange. Call finalize_tracepoint_aexpr.
5462 (validate_actionline): Call finalize_tracepoint_aexpr.
5463
3df3a985
PFC
54642018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5465
5466 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
5467 Replace array buf with gdb::char_vector buf, of size
5468 get_remote_packet_size (). Replace references to buf and
5469 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
5470 and xsnprintf with snprintf. Raise errors if the buffer is too
5471 small.
5472
aa6f3694
PFC
54732018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5474
5475 * remote.c (remote_target::download_tracepoint): Fix the has_more
5476 predicate in the QTDP action list iteration.
5477
05abfc39
PFC
54782018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5479
5480 * remote.c (remote_target::download_tracepoint): Fix indentation
5481 in for block.
5482
821a2682
RO
54832018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5484
5485 * proc-api.c (_initialize_proc_api): Remove c, unused.
5486 * procfs.c (procfs_init_inferior): Remove signals, unused.
5487 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
5488 unused.
5489
95347337
AB
54902018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
5491 Andrew Burgess <andrew.burgess@embecosm.com>
5492
5493 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
5494 'W_STOPCODE (0)' as this could be ambiguous.
5495
425699f5
SDJ
54962018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
5497
5498 * ser-tcp.c (net_open): Fix thinko when deciding whether to
5499 disable TCP's Nagle algorithm (use "ai_protocol" instead of
5500 "ai_socktype").
5501
3e1d3d8c
TT
55022018-08-02 Tom Tromey <tom@tromey.com>
5503
5504 PR symtab/16842.
5505 * dwarf2read.c (read_func_scope): Set symtab on template parameter
5506 symbols.
5507 (process_structure_scope): Likewise.
5508
15843549
XR
55092018-08-02 Xavier Roirand <roirand@adacore.com>
5510
5511 PR gdb/22629:
4399bce9
PA
5512 * darwin-nat.c (darwin_kill_inferior): Fix handling of
5513 kill inferior.
15843549 5514
b5bddbbb
TT
55152018-08-02 Tom Tromey <tom@tromey.com>
5516
5517 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
5518 (darwin_suspend_inferior, darwin_resume_inferior)
5519 (darwin_decode_notify_message, darwin_resume_inferior_threads)
5520 (darwin_check_new_threads): Check result of get_darwin_inferior.
5521
f61cfa07
JB
55222018-07-31 Joel Brobecker <brobecker@adacore.com>
5523
5524 GDB 8.1.1 released.
5525
5abe0f0c
JV
55262018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
5527
5528 * varobj.c (varobj_get_path_expr_parent): Report an error if
5529 parent is a dynamic varobj.
5530
472fa5ee
SM
55312018-07-31 Simon Marchi <simon.marchi@ericsson.com>
5532
5533 * gnulib/aclocal.m4: Re-generate.
5534 * gnulib/config.in: Re-generate.
5535 * gnulib/configure: Re-generate.
5536 * gnulib/import/Makefile.in: Re-generate.
5537 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
5538 * gnulib/import/m4/onceonly.m4: Re-generate.
5539
1c28969e
SM
55402018-07-31 Simon Marchi <simon.marchi@ericsson.com>
5541
5542 * target-descriptions.c (struct xml_test_tdesc): New.
5543 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
5544 (record_xml_tdesc): Update.
5545 (maintenance_check_xml_descriptions): Update.
5546 * target-descriptions.h (record_xml_tdesc): Update comment.
5547
c8f2dc0d
AB
55482018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
5549
5550 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
5551 checking array bounds are defined.
5552
463c08d1
TT
55532018-07-30 Tom Tromey <tom@tromey.com>
5554
5555 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
5556 irreflexivity violation.
5557
dba7455e
TT
55582018-07-30 Tom Tromey <tom@tromey.com>
5559
5560 * cli/cli-decode.c (lookup_cmd): Remove lint code.
5561 * value.c (unpack_long): Remove lint code.
5562 * valops.c (value_ind): Remove lint code.
5563 * valarith.c (value_x_binop, value_x_unop, value_equal)
5564 (value_pos): Remove lint code.
5565
37cc0cae
TV
55662018-07-28 Tom de Vries <tdevries@suse.de>
5567
5568 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
5569 with undefined upper bound as <optimized out>.
5570
129eb0f1
SDJ
55712018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
5572
5573 * gcore.in: Rename variable "name" to "prefix". Expand
5574 "usage" text.
5575
6af79d7b
JT
55762018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
5577
5578 * windows-nat.c (windows_nat_target::create_inferior): Update to
5579 call close() in global namespace.
5580
79748972
TT
55812018-07-26 Tom Tromey <tom@tromey.com>
5582
5583 * dwarf-index-write.c (add_address_entry): Don't add objfile
5584 offsets.
5585 * dbxread.c (find_stab_function): Rename from
5586 find_stab_function_addr. Return a bound_minimal_symbol.
5587 (read_dbx_symtab): Use raw_text_low, raw_text_high.
5588 Don't add objfile offsets.
5589 (end_psymtab): Use raw_text_low, raw_text_high,
5590 MSYMBOL_VALUE_RAW_ADDRESS.
5591 (read_ofile_symtab): Update.
5592 (process_one_symbol): Update.
5593 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
5594 offsets.
5595 (dw2_relocate): Remove.
5596 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
5597 searching addrmap.
5598 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
5599 Update.
5600 (process_psymtab_comp_unit_reader, add_partial_symbol)
5601 (add_partial_subprogram, dwarf2_ranges_read): Update.
5602 (load_partial_dies): Update.
5603 (add_address_entry): Don't add objfile offsets.
5604 (dwarf2_build_include_psymtabs): Update.
5605 (create_addrmap_from_aranges): Don't add objfile offsets.
5606 (dw2_find_pc_sect_compunit_symtab): Update.
5607 * mdebugread.c (parse_symbol): Don't add objfile offsets.
5608 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
5609 Update.
5610 (parse_partial_symbols): Don't add objfile offsets. Use
5611 raw_text_low, raw_text_high. Update.
5612 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
5613 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
5614 or call 'relocate' quick function. Clear psymbol_map.
5615 * psympriv.h (struct partial_symbol) <address>: Add section
5616 offset.
5617 <set_unrelocated_address>: Rename from set_address.
5618 <raw_text_low, raw_text_high>: New methods.
5619 <text_low, text_high>: Add objfile parameter.
5620 (add_psymbol_to_bcache): Add 'section' parameter. Call
5621 set_unrelocated_address.
5622 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5623 (find_pc_psymbol): Update.
5624 (fixup_psymbol_section, relocate_psymtabs): Remove.
5625 (dump_psymtab, psym_functions): Update.
5626 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
5627 parameter.
5628 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5629 (start_psymtab_common): Update.
5630 * symfile-debug.c (debug_qf_relocate): Remove.
5631 (debug_sym_quick_functions): Update.
5632 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
5633 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
5634 Update.
5635
52948f01
TT
56362018-07-26 Tom Tromey <tromey@redhat.com>
5637
5638 * dbxread.c (end_psymtab): Use text_high_valid and
5639 text_low_valid.
5640 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
5641 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
5642 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5643 Update comment.
5644 <text_low_valid, text_high_valid>: New fields.
5645 <set_text_low, set_text_high>: Update.
5646 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
5647
4ae976d1
TT
56482018-07-26 Tom Tromey <tom@tromey.com>
5649
5650 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
5651 Update.
5652 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
5653 textlow and texthigh fields.
5654 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
5655 Update.
5656 * mdebugread.c (parse_lines, parse_partial_symbols)
5657 (psymtab_to_symtab_1): Update.
5658 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5659 Rename fields. Update comment. Now private.
5660 <text_low, text_high, set_text_low, set_text_high>: New methods.
5661 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5662 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
5663 (start_psymtab_common, maintenance_info_psymtabs)
5664 (maintenance_check_psymtabs): Update.
5665 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
5666 texthigh fields.
5667 (scan_xcoff_symtab): Update.
5668
02e9e7f7
TT
56692018-07-26 Tom Tromey <tromey@redhat.com>
5670
5671 * psympriv.h (struct partial_symbol) <unrelocated_address,
5672 address, set_address>: New methods.
5673 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
5674 (fixup_psymbol_section, relocate_psymtabs): Update.
5675 (print_partial_symbols): Add 'objfile' parameter. Update.
5676 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
5677 Update.
5678
8a6d4234
TT
56792018-07-26 Tom Tromey <tom@tromey.com>
5680
5681 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5682 (debug_names::write_psymbols): Update.
5683 * psympriv.h (struct partial_symbol): Derive from
5684 general_symbol_info.
5685 <obj_section>: New method.
5686 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
5687 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5688 (find_pc_sect_psymbol, fixup_psymbol_section)
5689 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
5690 (print_partial_symbols, recursively_search_psymtabs)
5691 (compare_psymbols, psymbol_hash, psymbol_compare)
5692 (add_psymbol_to_bcache, maintenance_check_psymtabs)
5693 (psymbol_name_matches, psym_fill_psymbol_map): Update.
5694
08994e1d
TT
56952018-07-26 Tom Tromey <tromey@redhat.com>
5696
5697 * dbxread.c (end_psymtab): Remove dead code.
5698
3c3bb058
AB
56992018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
5700
5701 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
5702 DWARF unwinders are disabled.
5703 * dwarf2-frame.c: Add dwarf2read.h include.
5704 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
5705 disabled.
5706 (dwarf2_frame_unwinders_enabled_p): Define.
5707 (show_dwarf_unwinders_enabled_p): New function.
5708 (_initialize_dwarf2_frame): Register switch to control DWARF
5709 unwinder use.
5710 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
5711 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
5712 (show_dwarf_cmdlist): Remove static keyword.
5713 * dwarf2read.h (set_dwarf_cmdlist): Declare.
5714 (show_dwarf_cmdlist): Declare.
5715 * NEWS: Document new feature.
5716
9e7f3bbb
TV
57172018-07-26 Tom de Vries <tdevries@suse.de>
5718
5719 PR breakpoints/23366
5720 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
5721
506f5c41
TV
57222018-07-26 Tom de Vries <tdevries@suse.de>
5723
5724 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
5725 DW_AT_count can't be translated to a dynamic prop.
5726
16f808ec
TV
57272018-07-25 Tom de Vries <tdevries@suse.de>
5728
5729 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
5730 try/catch.
5731
d7154a8d
JV
57322018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
5733
5734 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
5735
a45389f6
JB
57362018-07-25 Joel Brobecker <brobecker@adacore.com>
5737
5738 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
5739
380618d6
KS
57402018-07-24 Keith Seitz <keiths@redhat.comt
5741
5742 PR symtab/23010
5743 * dwarf2read.c (dw2_add_symbol_to_list): New function.
5744 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
5745 instead of add_symbol_to_list.
5746 (read_file_scope): Call prepare_one_comp_unit before reading
5747 any other DIEs.
5748
4b17aefe
SM
57492018-07-24 Simon Marchi <simon.marchi@ericsson.com>
5750
5751 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
5752
29d17e47
TT
57532018-07-24 Tom Tromey <tom@tromey.com>
5754
5755 * utils.c (malloc, realloc, free): Don't declare.
5756 * configure, config.in: Rebuild.
5757 * configure.ac: Don't check for declarations of free, malloc, or
5758 realloc.
5759
cf4088a9
SM
57602018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5761
5762 * aarch64-linux-nat.c
5763 (aarch64_linux_nat_target::stopped_data_address): Remove unused
5764 variable.
5765 * arm-linux-nat.c (fetch_regs): Likewise.
5766 (store_regs): Likewise.
5767 (fetch_vfp_regs): Likewise.
5768 (store_vfp_regs): Likewise.
5769 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
5770 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
5771 (arm_linux_nat_target::insert_watchpoint): Likewise.
5772 (arm_linux_nat_target::remove_watchpoint): Likewise.
5773 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
5774 Likewise.
5775 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
5776 Likewise.
5777 * ppc-linux-nat.c (fetch_register): Likewise.
5778 (fetch_all_gp_regs): Likewise.
5779 (fetch_ppc_registers): Likewise.
5780 (store_all_gp_regs): Likewise.
5781 (store_ppc_registers): Likewise.
5782 (hwdebug_insert_point): Likewise.
5783 (can_use_watchpoint_cond_accel): Likewise.
5784 * remote-sim.c (gdb_os_write_stdout): Likewise.
5785
a0de763e
TT
57862018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5787 Tom Tromey <tom@tromey.com>
5788
5789 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
5790 test for it.
5791 * configure: Rebuild.
5792
3b20124b
TT
57932018-07-22 Tom Tromey <tom@tromey.com>
5794
5795 * regformats/regdat.sh: Define xmltarget_${name} inside
5796 #ifndef IN_PROCESS_AGENT.
5797
8c8807f4
TT
57982018-07-22 Tom Tromey <tom@tromey.com>
5799
5800 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
5801
c486b610
TT
58022018-07-22 Tom Tromey <tom@tromey.com>
5803
5804 * symfile.c (reread_symbols): Notify iter, not objfile.
5805
494f80a9
TT
58062018-07-22 Tom Tromey <tom@tromey.com>
5807
5808 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
5809 Use arch_ops.
5810 (ravenscar_thread_target::prepare_to_store): Likewise.
5811
c51f6a54
TT
58122018-07-22 Tom Tromey <tom@tromey.com>
5813
5814 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
5815 unused variable. Call value_fetch_lazy when needed.
5816 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5817 Remove unused variable. Call value_fetch_lazy when needed.
5818
374fd1fd
TT
58192018-07-22 Tom Tromey <tom@tromey.com>
5820
5821 * m32c-tdep.c (mark_dma): Return void.
5822 (make_regs): Remove unused declarations.
5823
d5e9a511
TT
58242018-07-22 Tom Tromey <tom@tromey.com>
5825
5826 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
5827 cmdscm_get_valid_command_smob_arg_unsafe for effect.
5828 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
5829 bkscm_get_valid_block_smob_arg_unsafe for effect.
5830
996d693a
TT
58312018-07-22 Tom Tromey <tom@tromey.com>
5832
5833 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
5834 value_type.
5835
15766370
TT
58362018-07-22 Tom Tromey <tom@tromey.com>
5837
5838 * windows-nat.c (saved_context): Conditionally define.
5839 * remote.c (remote_target::remote_btrace_maybe_reopen):
5840 Conditionally declare "warned".
5841 * inflow.c (sigquit_ours): Conditionally define.
5842 (new_tty): Move "tty" declaration inside #if.
5843 * guile/guile.c (guile_datadir): Conditionally define.
5844 * charset.c (set_be_le_names): Move some declarations inside #if.
5845 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
5846 #if.
5847 (parse_xml_btrace_conf): Likewise.
5848
f4e80e13
TT
58492018-07-22 Tom Tromey <tom@tromey.com>
5850
5851 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
5852
8d49165d
TT
58532018-07-22 Tom Tromey <tom@tromey.com>
5854
5855 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
5856 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
5857 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
5858 * buildsym-legacy.c (get_macro_table): Remove unused variable.
5859 * stack.c (frame_apply_level_command): Remove unused variable.
5860 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
5861 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
5862 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
5863 unused variable.
5864 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
5865 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
5866 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
5867 variable.
5868 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
5869 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
5870 variable.
5871 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
5872 Remove unused variable.
5873 * cli/cli-script.c (recurse_read_control_structure): Remove unused
5874 variable.
5875 * common/tdesc.c (print_xml_feature::visit): Remove unused
5876 variable.
5877 * compile/compile-object-load.c (store_regs): Remove unused
5878 variables.
5879 * complaints.c (clear_complaints): Remove unused variable.
5880 * corelow.c (core_target_open): Remove unused variable.
5881 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
5882 variable.
5883 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
5884 variable.
5885 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
5886 variable.
5887 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
5888 variable.
5889 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
5890 variable.
5891 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
5892 variable.
5893 * ia64-tdep.c (examine_prologue): Remove unused variable.
5894 * infcall.c (run_inferior_call): Remove unused variable.
5895 * inferior.c (exit_inferior): Remove unused variable.
5896 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
5897 * linespec.c (decode_line_2): Remove unused variable.
5898 * linux-nat.c (super_close): Remove.
5899 * linux-tdep.c (linux_info_proc): Remove unused variable.
5900 * mi/mi-main.c (mi_execute_command): Remove unused variable.
5901 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
5902 Remove unused variable.
5903 * parse.c (find_minsym_type_and_address): Remove unused variable.
5904 * printcmd.c (info_symbol_command, printf_floating): Remove unused
5905 variable.
5906 * python/py-breakpoint.c (bppy_set_commands): Remove unused
5907 variable.
5908 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
5909 variables.
5910 * record-btrace.c (record_btrace_target::store_registers): Remove
5911 unused variable.
5912 (cmd_show_record_btrace_cpu): Remove unused variable.
5913 * riscv-tdep.c (riscv_register_reggroup_p)
5914 (riscv_push_dummy_call, riscv_return_value): Remove unused
5915 variable.
5916 * rust-exp.y (literal): Remove unused variable.
5917 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
5918 unused variable.
5919 <STRUCTOP_ANONYMOUS>: Likewise.
5920 * s390-linux-tdep.c (s390_linux_init_abi_31)
5921 (s390_linux_init_abi_64): Remove unused variable.
5922 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
5923 (file_select_thread, net_windows_open, _initialize_ser_windows):
5924 Remove unused variables.
5925 * symtab.c (find_pc_sect_line): Remove unused variable.
5926 * target-memory.c (compute_garbled_blocks): Remove unused
5927 variable.
5928 (target_write_memory_blocks): Remove unused variable.
5929 * target.c (target_stack::unpush): Remove unused variables.
5930 * tracepoint.c (start_tracing, all_tracepoint_actions)
5931 (merge_uploaded_trace_state_variables)
5932 (print_one_static_tracepoint_marker): Remove unused variable.
5933 * unittests/basic_string_view/element_access/char/1.cc (test01):
5934 Remove unused variable.
5935 * windows-nat.c (windows_continue, windows_add_all_dlls)
5936 (do_initial_windows_stuff, windows_nat_target::create_inferior):
5937 Remove unused variables.
5938
17cbafdb
SM
59392018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5940
5941 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
5942 attr_profile in HAVE_ELF.
5943 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
5944 HAVE_ELF.
5945
0ee6c332
SM
59462018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
5947
5948 * frame.c (frame_register_unwind): Change parameter name.
5949 (frame_unwind_register): Likewise.
5950 (frame_unwind_register_value): Likewise.
5951 (frame_unwind_register_signed): Likewise.
5952 (frame_unwind_register_unsigned): Likewise.
5953 * frame.h (frame_register_unwind): Likewise.
5954 (frame_unwind_register): Likewise.
5955 (frame_unwind_register_value): Likewise.
5956 (frame_unwind_register_signed): Likewise.
5957 (frame_unwind_register_unsigned): Likewise.
5958 (frame_unwind_arch): Likewise.
5959
e2e31f10
MR
59602018-07-20 Maciej W. Rozycki <macro@mips.com>
5961
5962 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
5963 ISA maintenance.
5964
2d389915
MR
59652018-07-20 Maciej W. Rozycki <macro@mips.com>
5966
5967 * mips-linux-nat.c (mips_linux_nat_target::read_description):
5968 Call `get_ptrace_pid' rather than extracting the ptrace PID by
5969 hand.
5970
cbb09508
KS
59712018-07-20 Keith Seitz <keiths@redhat.com>
5972
5973 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
5974 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
5975 m_compunit_symtab, m_language>: Add "m_" prefix.
5976 Update all uses.
5977 * buildsym.c: Update all uses.
5978
bfe2e011
TT
59792018-07-20 Tom Tromey <tom@tromey.com>
5980
5981 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
5982 * buildsym.h (record_line_ftype): Remove typedef.
5983
0e6f3061
TT
59842018-07-20 Tom Tromey <tom@tromey.com>
5985
5986 * buildsym-legacy.h (augment_type_symtab): Don't declare.
5987 (end_expandable_symtab): Likewise.
5988 (end_symtab_get_static_block): Likewise.
5989 (end_symtab_from_static_block): Likewise.
5990 * buildsym-legacy.c (augment_type_symtab): Remove.
5991 (end_expandable_symtab): Remove.
5992 (end_symtab_get_static_block): Remove.
5993 (end_symtab_from_static_block): Remove.
5994
804d2729
TT
59952018-07-20 Tom Tromey <tom@tromey.com>
5996
5997 * dwarf2read.c: Include buildsym.h.
5998 (struct dwarf2_cu) <builder>: New method.
5999 (fixup_go_packaging): Update.
6000 (process_full_comp_unit, process_full_type_unit): Update. Don't
6001 use scoped_free_pendings.
6002 (using_directives): Add "cu" parameter, remove "language".
6003 (read_import_statement, setup_type_unit_groups, )
6004 (read_func_scope, read_lexical_block_scope)
6005 (dwarf2_record_block_ranges, read_namespace): Update.
6006 (lnp_state_machine::lnp_state_machine): Add cu parameter.
6007 (lnp_state_machine::handle_end_sequence): Update.
6008 (class lnp_state_machine) <m_cu>: New member.
6009 <m_record_line_callback>: Remove.
6010 <m_currently_recording_lines>: New member.
6011 (lnp_state_machine::handle_set_file): Update.
6012 (noop_record_line): Remove.
6013 (dwarf_record_line_p): Add cu parameter.
6014 (dwarf_record_line_1, dwarf_finish_line): Likewise.
6015 (lnp_state_machine::record_line)
6016 (lnp_state_machine::lnp_state_machine)
6017 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6018 (dwarf_decode_lines): Update.
6019 (dwarf2_start_subfile): Add cu parameter.
6020 (dwarf2_start_symtab, new_symbol): Update.
6021 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
6022 Remove dwarf2_per_objfile parameter.
6023 (dwarf_decode_macros): Update.
6024
80e649fc
TT
60252018-07-20 Tom Tromey <tom@tromey.com>
6026
6027 * stabsread.c (define_symbol): Update.
6028 * buildsym-legacy.h (get_buildsym_compunit): Declare.
6029 * dwarf2read.c (new_symbol): Update.
6030 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
6031 * cp-namespace.c: Include buildsym.h.
6032 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
6033 * buildsym-legacy.c (get_buildsym_compunit): New function.
6034
0baae8db
TT
60352018-07-20 Tom Tromey <tom@tromey.com>
6036
6037 * xcoffread.c: Include buildsym-legacy.h.
6038 * windows-nat.c: Include buildsym-legacy.h.
6039 * stabsread.c: Include buildsym-legacy.h.
6040 * mdebugread.c: Include buildsym-legacy.h.
6041 * buildsym-legacy.h: New file.
6042 * buildsym-legacy.c: New file, from buildsym.c.
6043 * go32-nat.c: Include buildsym-legacy.h.
6044 * dwarf2read.c: Include buildsym-legacy.h.
6045 * dbxread.c: Include buildsym-legacy.h.
6046 * cp-namespace.c: Include buildsym-legacy.h.
6047 * coffread.c: Include buildsym-legacy.h.
6048 * buildsym.h: Move some contents to buildsym-legacy.h.
6049 * buildsym.c: Include buildsym-legacy.h. Move many functions to
6050 buildsym-legacy.c.
6051 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
6052
ab209f6f
TT
60532018-07-20 Tom Tromey <tom@tromey.com>
6054
6055 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
6056 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
6057 (buildsym_compunit::buildsym_compunit)
6058 (buildsym_compunit::~buildsym_compunit)
6059 (buildsym_compunit::get_macro_table): Define.
6060
74c72eac
TT
60612018-07-20 Tom Tromey <tom@tromey.com>
6062
6063 * buildsym.c (reset_symtab_globals): Remove.
6064 (buildsym_compunit::end_symtab_from_static_block): Update.
6065 (buildsym_compunit::augment_type_symtab): Update.
6066 (end_symtab_from_static_block): Call free_buildsym_compunit.
6067 (augment_type_symtab, end_symtab, end_expandable_symtab):
6068 Likewise.
6069
da6580e5
TT
60702018-07-20 Tom Tromey <tom@tromey.com>
6071
6072 * arch-utils.c: Do not include buildsym.h.
6073 * mipsread.c: Do not include buildsym.h.
6074 * machoread.c: Do not include buildsym.h.
6075 * elfread.c: Do not include buildsym.h.
6076
4a2125f5
TT
60772018-07-20 Tom Tromey <tom@tromey.com>
6078
6079 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
6080 initialization.
6081 (buildsym_compunit): Add new constructor.
6082 (struct buildsym_compunit) <get_last_source_file, finish_block,
6083 record_block_range, start_subfile, patch_subfile_names,
6084 push_subfile, pop_subfile, record_line, get_compunit_symtab,
6085 set_last_source_start_addr, get_last_source_start_addr,
6086 get_local_using_directives, set_local_using_directives,
6087 get_global_using_directives, outermost_context_p,
6088 get_current_context_stack, get_context_stack_depth,
6089 get_current_subfile, get_local_symbols, get_file_symbols,
6090 get_global_symbols, record_debugformat, record_producer,
6091 push_context, pop_context, end_symtab_get_static_block,
6092 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
6093 New public methods.
6094 <record_pending_block, finish_block_internal, make_blockvector,
6095 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
6096 private methods.
6097 Update all users.
6098
60992018-05-22 Tom Tromey <tom@tromey.com>
6100
6101 * buildsym.c (record_pending_block): Move earlier. Remove objfile
6102 parameter.
6103 (finish_block_internal): Update.
6104
6b213a47
TT
61052018-07-20 Tom Tromey <tom@tromey.com>
6106
6107 * buildsym.c (record_pending_block): Move earlier. Remove objfile
6108 parameter.
6109 (finish_block_internal): Update.
6110
b80a981d
TT
61112018-07-20 Tom Tromey <tom@tromey.com>
6112
6113 * buildsym.h (EXTERN): Don't define or undef.
6114 * buildsym.c (EXTERN): Don't define.
6115
ddb70602
TT
61162018-07-20 Tom Tromey <tom@tromey.com>
6117
6118 * buildsym.c: Remove TODO comment.
6119
b37dd3bc
TT
61202018-07-20 Tom Tromey <tom@tromey.com>
6121
6122 * coffread.c (coff_symtab_read): Update.
6123 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6124 (xcoff_new_init): Update.
6125 * mipsread.c (mipscoff_new_init): Update.
6126 * mdebugread.c (mdebug_build_psymtabs): Update.
6127 * elfread.c (elf_new_init): Update.
6128 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
6129 Update.
6130 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
6131 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6132 (stabsect_build_psymtabs): Update.
6133 * buildsym.h (buildsym_init): Don't declare.
6134 * buildsym.c: Update comment.
6135 (prepare_for_building): Remove.
6136 (start_symtab, restart_symtab): Update.
6137 (reset_symtab_globals): Update comment.
6138 (buildsym_init): Remove.
6139
e148f09d
TT
61402018-07-20 Tom Tromey <tom@tromey.com>
6141
6142 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
6143 * stabsread.c (patch_block_stabs, define_symbol, read_type)
6144 (read_enum_type, common_block_start, common_block_end)
6145 (cleanup_undefined_types_1, finish_global_stabs): Update.
6146 * mdebugread.c (psymtab_to_symtab_1): Update.
6147 * dwarf2read.c (fixup_go_packaging, read_func_scope)
6148 (read_lexical_block_scope, new_symbol): Update.
6149 * dbxread.c (process_one_symbol): Update.
6150 * coffread.c (coff_symtab_read, process_coff_symbol)
6151 (coff_read_enum_type): Update.
6152 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
6153 declare.
6154 (get_local_symbols, get_file_symbols, get_global_symbols): New
6155 functions.
6156 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
6157 m_global_symbols.
6158 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
6159 (~scoped_free_pendings): Update.
6160 (finish_block, prepare_for_building, reset_symtab_globals)
6161 (end_symtab_get_static_block, end_symtab_with_blockvector)
6162 (augment_type_symtab, push_context): Update.
6163 (get_local_symbols, get_file_symbols, get_global_symbols): New
6164 functions.
6165 (buildsym_init): Update.
6166
93b8bea4
TT
61672018-07-20 Tom Tromey <tom@tromey.com>
6168
6169 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
6170 (process_full_type_unit): Likewise.
6171 (dwarf2_start_symtab): Set list_in_scope.
6172
f62f6af5
TT
61732018-07-20 Tom Tromey <tom@tromey.com>
6174
6175 * dwarf2read.c (process_psymtab_comp_unit_reader)
6176 (build_type_psymtabs_reader): Do not set list_in_scope.
6177
1d376700
TT
61782018-07-20 Tom Tromey <tom@tromey.com>
6179
6180 * buildsym.c (free_pendings): Remove.
6181 (add_symbol_to_list, scoped_free_pendings)
6182 (finish_block_internal, buildsym_init): Update.
6183
c233e9c6
TT
61842018-07-20 Tom Tromey <tom@tromey.com>
6185
6186 * xcoffread.c (read_xcoff_symtab): Update.
6187 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
6188 Update.
6189 * dbxread.c (process_one_symbol): Update.
6190 * coffread.c (coff_symtab_read): Update.
6191 * buildsym.h (finish_block): Update.
6192 * buildsym.c (finish_block): Remove "listhead" argument.
6193 (end_symtab_get_static_block): Update.
6194
5ac04550
TT
61952018-07-20 Tom Tromey <tom@tromey.com>
6196
6197 * buildsym.h (class scoped_free_pendings): Remove constructor.
6198 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
6199 method.
6200 <m_pending_block_obstack, m_pending_blocks>: New members.
6201 (pending_block_obstack, pending_blocks): Remove.
6202 (scoped_free_pendings::scoped_free_pendings): Default.
6203 (~scoped_free_pendings): Update.
6204 (free_pending_blocks): Remove.
6205 (finish_block_internal, record_pending_block, make_blockvector)
6206 (end_symtab_get_static_block, augment_type_symtab, push_context)
6207 (buildsym_init): Update.
6208
7ea05a7b
TT
62092018-07-20 Tom Tromey <tom@tromey.com>
6210
6211 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
6212 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
6213 members.
6214 (pending_addrmap, pending_addrmap_obstack)
6215 (pending_addrmap_interesting): Remove.
6216 (scoped_free_pendings, record_block_range, make_blockvector)
6217 (prepare_for_building, reset_symtab_globals, buildsym_init):
6218 Update.
6219
3c65e5b3
TT
62202018-07-20 Tom Tromey <tom@tromey.com>
6221
6222 * xcoffread.c (process_linenos): Update.
6223 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
6224 * mdebugread.c (psymtab_to_symtab_1): Update.
6225 * dwarf2read.c (setup_type_unit_groups)
6226 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
6227 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
6228 * dbxread.c (process_one_symbol): Update.
6229 * coffread.c (coff_symtab_read, enter_linenos)
6230 (process_coff_symbol): Update.
6231 * buildsym.h (current_subfile): Don't declare.
6232 (get_current_subfile): Declare.
6233 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
6234 member.
6235 (start_subfile, free_buildsym_compunit, push_subfile)
6236 (prepare_for_building, start_symtab): Update.
6237 (get_current_subfile): New function.
6238
a60f3166
TT
62392018-07-20 Tom Tromey <tom@tromey.com>
6240
6241 * coffread.c (coff_symtab_read): Update.
6242 * xcoffread.c (read_xcoff_symtab): Update.
6243 * dwarf2read.c (new_symbol): Update.
6244 (read_func_scope, read_lexical_block_scope): Update.
6245 * dbxread.c (process_one_symbol): Update.
6246 * buildsym.h (context_stack, context_stack_depth): Don't declare.
6247 (outermost_context_p): Remove macro.
6248 (outermost_context_p, get_current_context_stack)
6249 (get_context_stack_depth): Declare.
6250 (pop_context): Return struct context_stack.
6251 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
6252 member.
6253 (context_stack_size): Remove.
6254 (INITIAL_CONTEXT_STACK_SIZE): Remove.
6255 (prepare_for_building, end_symtab_get_static_block)
6256 (augment_type_symtab, push_context): Update.
6257 (pop_context): Return struct context_stack.
6258 (outermost_context_p, get_current_context_stack)
6259 (get_context_stack_depth): New functions.
6260 (buildsym_init): Update.
6261
56ba65a0
TT
62622018-07-20 Tom Tromey <tom@tromey.com>
6263
6264 * rust-exp.y: Now a pure parser. Update all rules.
6265 (%union): Move earlier.
6266 (current_parser, work_obstack): Remove globals.
6267 (rust_parser, ~rust_parser): Update.
6268 (class rust_parser) <copy_name, concat3, crate_name, super_name,
6269 lex_character, lex_number, lex_string, lex_identifier,
6270 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
6271 convert_name, convert_params_to_expression,
6272 convert_ast_to_expression, ast_basic_type, ast_operation,
6273 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
6274 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
6275 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
6276 ast_array_type, ast_slice_type, ast_reference_type,
6277 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
6278 (rust_parse): Update.
6279 (rustyyerror, rustyylex): Add parser parameter.
6280 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
6281 (rust_lex_stringish_test, rust_lex_test_sequence)
6282 (rust_lex_test_trailing_dot, rust_lex_test_completion)
6283 (rust_lex_test_push_back, rust_lex_tests): Update.
6284
4c693332
PA
62852018-07-19 Pedro Alves <palves@redhat.com>
6286
6287 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
6288 gdb::unique_xmalloc_ptr.
6289 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
6290 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
6291 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
6292 copy-initialization.
6293 * guile/scm-pretty-print.c (ppscm_print_children): Use
6294 gdb::unique_xmalloc_ptr instead of cleanups.
6295 (gdbscm_apply_val_pretty_printer): Remove cleanups.
6296 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
6297 gdb::unique_xmalloc_ptr.
6298 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
6299 Adjust to use gdb::unique_xmalloc_ptr.
6300 * guile/scm-utils.c (extract_arg): Adjust.
6301 * guile/scm-value.c (gdbscm_value_field): Adjust to use
6302 gdb::unique_xmalloc_ptr instead of a cleanup.
6303
4581dc82
TT
63042018-07-19 Tom Tromey <tom@tromey.com>
6305
6306 * utils.c (do_value_free_to_mark)
6307 (make_cleanup_value_free_to_mark): Remove.
6308 * utils.h (make_cleanup_value_free_to_mark): Remove.
6309
43cc6c3a
PA
63102018-07-19 Pedro Alves <palves@redhat.com>
6311
6312 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
6313 forwarding reference.
6314
3a5f2a48
PA
63152018-07-18 Pedro Alves <palves@redhat.com>
6316
6317 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
6318 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
6319 cleanup.
6320
557e56be
PA
63212018-07-18 Pedro Alves <palves@redhat.com>
6322
6323 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
6324 exceptions.
6325 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
6326 (gdbscm_wrap): New.
6327 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
6328 directly instead of a cleanup.
6329 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
6330 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
6331 (vlscm_binop_gdbthrow): New, factored out from ...
6332 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
6333 (vlscm_rich_compare): Use gdbscm_wrap.
6334 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
6335 instead of a cleanup.
6336 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
6337 cleanup.
6338 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
6339 Use xfree directly instead of a cleanup.
6340 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
6341 Adjust to use gdbscm_wrap and scoped_value_mark.
6342 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
6343 (gdbscm_value_address, gdbscm_value_dereference)
6344 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
6345 scoped_value_mark.
6346 (gdbscm_value_dynamic_type): Use scoped_value_mark.
6347 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
6348 scoped_value_mark.
6349 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
6350 gdbscm_wrap and scoped_value_mark.
6351 (gdbscm_value_to_string): Use xfree directly instead of a
6352 cleanup. Move 'buffer' unique_ptr to TRY scope.
6353 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
6354 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
6355 scoped_value_mark.
6356 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
6357 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
6358 scoped_value_mark.
6359 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
6360 gdbscm_wrap.
6361
42dc7699
TV
63622018-07-18 Tom de Vries <tdevries@suse.de>
6363
6364 * findvar.c (default_read_var_value): Also resolve dynamic type for
6365 LOC_OPTIMIZED_OUT vars.
6366
6592ceed
MR
63672018-07-18 Maciej W. Rozycki <macro@mips.com>
6368
6369 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
6370 decoding.
6371
c6c6149a
TT
63722018-07-17 Tom Tromey <tom@tromey.com>
6373
6374 * guile/scm-param.c (pascm_set_func, pascm_show_func)
6375 (compute_enum_list, pascm_set_param_value_x)
6376 (gdbscm_parameter_value): Update.
6377 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
6378 (gdbscm_scm_to_host_string): Update.
6379 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
6380 Update.
6381 * guile/scm-cmd.c (cmdscm_add_completion): Update.
6382 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
6383 * guile/scm-string.c (gdbscm_scm_to_string): Return
6384 unique_xmalloc_ptr.
6385 (gdbscm_scm_to_host_string): Likewise.
6386
a1a31cb8
TT
63872018-07-17 Tom Tromey <tom@tromey.com>
6388
6389 * guile/guile.c (gdbscm_eval_from_control_command): Update.
6390 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
6391 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
6392 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
6393 unique_xmalloc_ptr.
6394
15bf3002
TT
63952018-07-17 Tom Tromey <tom@tromey.com>
6396
6397 * guile/scm-param.c (pascm_signal_setshow_error): Update.
6398 * guile/guile-internal.h (gdbscm_exception_message_to_string):
6399 Update.
6400 * guile/scm-cmd.c (cmdscm_function): Update.
6401 * guile/scm-pretty-print.c
6402 (ppscm_print_exception_unless_memory_error): Update.
6403 * guile/scm-exception.c (gdbscm_exception_message_to_string):
6404 Return unique_xmalloc_ptr.
6405
7eb1a66c
TT
64062018-07-17 Tom Tromey <tom@tromey.com>
6407
6408 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
6409 Use string_printf.
6410
ce73f310
JW
64112018-07-17 Jim Wilson <jimw@sifive.com>
6412
27724bad
JW
6413 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
6414 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
6415 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
6416 unecessary braces after EF_RISCV_RVC test. Delete call to
6417 set_gdbarch_decr_pc_after_break.
6418
ce73f310
JW
6419 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
6420 RISCV_LAST_FP_REGNUM + 1.
6421 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
6422
056dec39
TT
64232018-07-17 Tom Tromey <tom@tromey.com>
6424
6425 * configure.ac: Remove --disable-gdbcli.
6426 * configure: Rebuild.
6427 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
6428 (SUBDIR_CLI_CFLAGS): Remove.
6429 (SFILES): Use SUBDIR_CLI_SRCS.
6430 (COMMON_OBS): Use SUBDIR_CLI_OBS.
6431
4735f0ed
TT
64322018-07-17 Tom Tromey <tom@tromey.com>
6433
6434 PR gdb/18624:
6435 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
6436
117a0e99
JW
64372018-07-16 Jim Wilson <jimw@sifive.com>
6438
6439 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
6440
8a67aaa8
SM
64412018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6442
6443 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
6444 variable.
6445 (libunwind_frame_sniffer): Likewise.
6446 (libunwind_frame_prev_register): Likewise.
6447 (libunwind_sigtramp_frame_sniffer): Likewise.
6448 * ia64-tdep.c (ia64_access_reg): Likewise.
6449 (ia64_access_rse_reg): Likewise.
6450 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
6451 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
6452
ec74dcd8
SM
64532018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6454
6455 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
6456
a700e753
SM
64572018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6458
6459 * remote-sim.c (gdbsim_target::close,
6460 gdbsim_target::mourn_inferior): Remove unused variables.
6461
8b411ff8
SM
64622018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
6463
6464 * ia64-tdep.c (ktab_buf): New global.
6465 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
6466 (get_kernel_table): Adjust.
6467
edb0470b
TT
64682018-07-16 Tom Tromey <tom@tromey.com>
6469
6470 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
6471 * dwarf2read.c (using_directives, new_symbol): Use
6472 outermost_context_p.
6473 * dbxread.c (process_one_symbol): Use outermost_context_p.
6474 * coffread.c (coff_symtab_read): Use outermost_context_p.
6475
6cccc9a8
TT
64762018-07-16 Tom Tromey <tom@tromey.com>
6477
6478 * dwarf2read.c (using_directives, read_func_scope)
6479 (read_lexical_block_scope): Update.
6480 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6481 * buildsym.h (local_using_directives, global_using_directives):
6482 Don't declare.
6483 (get_local_using_directives, set_local_using_directives)
6484 (get_global_using_directives): Declare.
6485 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
6486 m_global_using_directives>: New members.
6487 (finish_block_internal, prepare_for_building)
6488 (reset_symtab_globals, end_symtab_get_static_block)
6489 (push_context): Update.
6490 (get_local_using_directives, set_local_using_directives)
6491 (get_global_using_directives): New functions.
6492 (buildsym_init): Update.
6493
652788a7
TT
64942018-07-16 Tom Tromey <tom@tromey.com>
6495
6496 * xcoffread.c (xcoff_initial_scan): Don't call
6497 free_pending_blocks.
6498 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
6499 * buildsym.h (class scoped_free_pendings): Add constructor.
6500 (free_pending_blocks): Don't declare.
6501 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
6502 (free_pending_blocks): Now static.
6503
8419ee53
TT
65042018-07-16 Tom Tromey <tom@tromey.com>
6505
6506 * buildsym.h (push_subfile, pop_subfile): Update declarations.
6507 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
6508 member.
6509 (struct subfile_stack): Remove.
6510 (subfile_stack): Remove.
6511 (push_subfile, pop_subfile, buildsym_init): Update.
6512
ccdac490
TT
65132018-07-16 Tom Tromey <tom@tromey.com>
6514
6515 * buildsym.c (push_subfile): Use gdb_assert.
6516 (pop_subfile): Use gdb_assert.
6517
43130d6f
TT
65182018-07-16 Tom Tromey <tom@tromey.com>
6519
6520 * buildsym.h (merge_symbol_lists): Remove.
6521 * buildsym.c (merge_symbol_lists): Remove.
6522
77d6f1aa
TT
65232018-07-16 Tom Tromey <tom@tromey.com>
6524
6525 * stabsread.c (scan_file_globals): Update comment.
6526 * stabsread.h (scan_file_globals): Move from buildsym.h.
6527 * buildsym.h (scan_file_globals): Move to stabsread.h.
6528
2c722d18
TT
65292018-07-16 Tom Tromey <tom@tromey.com>
6530
6531 * xcoffread.c (xcoff_new_init): Update.
6532 * mipsread.c (mipscoff_new_init): Update.
6533 * mdebugread.c (mdebug_build_psymtabs): Update.
6534 * elfread.c (elf_new_init): Update.
6535 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
6536 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
6537 * buildsym.h (buildsym_new_init): Don't declare.
6538 * buildsym.c (buildsym_new_init): Remove.
6539
5985ac61
TT
65402018-07-16 Tom Tromey <tom@tromey.com>
6541
6542 * stabsread.h (within_function): Move from buildsym.h.
6543 * stabsread.c (start_stabs): Clear within_function.
6544 * coffread.c (coff_start_symtab): Clear within_function.
6545 * buildsym.h (within_function): Move to stabsread.h.
6546 * buildsym.c (prepare_for_building): Update.
6547
6b84eeb2
TT
65482018-07-16 Tom Tromey <tom@tromey.com>
6549
6550 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
6551 * dwarf2read.c (dwarf2_start_symtab): Don't set
6552 processing_gcc_compilation.
6553 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
6554
2150c3ef
TT
65552018-07-16 Tom Tromey <tom@tromey.com>
6556
6557 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
6558 (next_symbol_text_func): Move from buildsym.h.
6559 * stabsread.c (hashname): Move from buildsym.c.
6560 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
6561 (next_symbol_text_func, hashname): Move to stabsread.h.
6562 * buildsym.c: Don't include bcache.h
6563 (hashname): Move to stasbread.c.
6564
0ec44fc0
TT
65652018-07-16 Tom Tromey <tom@tromey.com>
6566
6567 * buildsym.h (context_stack_size): Don't declare.
6568 * buildsym.c (context_stack_size): New global.
6569
81cc346d
TT
65702018-07-16 Tom Tromey <tom@tromey.com>
6571
6572 * dbxread.c (processing_acc_compilation): New global.
6573 * buildsym.h (processing_acc_compilation): Don't declare.
6574
2c99ee5c
TT
65752018-07-16 Tom Tromey <tom@tromey.com>
6576
6577 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
6578 * dbxread.c (read_ofile_symtab): Update.
6579 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
6580 * buildsym.h (last_source_start_addr): Remove.
6581 (set_last_source_start_addr, get_last_source_start_addr):
6582 Declare.
6583 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
6584 parameter.
6585 (struct buildsym_compunit) <m_last_source_start_addr>: New
6586 member.
6587 (prepare_for_building): Remove start_addr parameter.
6588 (start_symtab, restart_symtab, end_symtab_get_static_block)
6589 (end_symtab_with_blockvector): Update.
6590 (set_last_source_start_addr, get_last_source_start_addr): New
6591 functions.
6592
530fedbc
TT
65932018-07-16 Tom Tromey <tom@tromey.com>
6594
6595 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
6596 member.
6597 (have_line_numbers): Remove.
6598 (record_line, prepare_for_building, end_symtab_get_static_block)
6599 (augment_type_symtab): Update.
6600
6a976300
TT
66012018-07-16 Tom Tromey <tom@tromey.com>
6602
6603 * buildsym.c (~buildsym_compunit): Free the macro table.
6604 (struct buildsym_compunit) <get_macro_table, release_macros>: New
6605 methods.
6606 <m_pending_macros>: New member.
6607 (pending_macros): Remove.
6608 (~scoped_free_pendings, get_macro_table, prepare_for_building)
6609 (reset_symtab_globals, end_symtab_get_static_block)
6610 (end_symtab_with_blockvector, augment_type_symtab)
6611 (buildsym_init): Update.
6612
c0015d44
TT
66132018-07-16 Tom Tromey <tom@tromey.com>
6614
6615 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
6616 parameter.
6617 (buildsym_compunit::set_last_source_file): New method.
6618 <m_last_source_file>: New member.
6619 (prepare_for_building): Remove "name" parameter.
6620 (start_symtab, restart_symtab, reset_symtab_globals): Update.
6621 (last_source_file): Remove.
6622 (set_last_source_file, get_last_source_file): Update.
6623
e62cca7c
TT
66242018-07-16 Tom Tromey <tom@tromey.com>
6625
6626 * buildsym.c (prepare_for_building): Add assert.
6627
905eb0e2
TT
66282018-07-16 Tom Tromey <tom@tromey.com>
6629
6630 * buildsym.c (~buildsym_compunit): Update.
6631 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
6632 (start_subfile, patch_subfile_names)
6633 (end_symtab_with_blockvector): Update.
6634
b248663f
TT
66352018-07-16 Tom Tromey <tom@tromey.com>
6636
6637 * buildsym.c (struct buildsym_compunit): Add constructor,
6638 destructor, initializers.
6639 (start_buildsym_compunit): Remove.
6640 (free_buildsym_compunit): Use "delete".
6641 (start_symtab, restart_symtab): Use "new".
6642
ff27d073
SM
66432018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
6644
6645 * symfile.c (set_objfile_default_section_offset): Remove struct
6646 keyword.
6647
6a15ecf5
SH
66482018-07-14 Stafford Horne <shorne@gmail.com>
6649
6650 * (Responsible Maintainers): Add myself as or1k maintainer.
6651
027a4c30
TT
66522018-07-13 Tom Tromey <tom@tromey.com>
6653
6654 * symfile.c (set_objfile_default_section_offset): Use extra braces
6655 around initializer.
6656
5c1eda30
AA
66572018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6658
6659 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
6660 non-branching basr.
6661
bc7b042b
PW
66622018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6663
6664 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6665 unittests/cli-utils-selftests.c
6666 * unittests/cli-utils-selftests.c: New file.
6667
a14c4daa
PW
66682018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6669
6670 * NEWS: Mention new commands. Mention change to 'thread apply'.
6671
1fe75df7
PW
66722018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6673
6674 * thread.c (thr_try_catch_cmd): New function.
6675 (thread_apply_all_command): Handle qcs flags.
6676 (thread_apply_command): Handle qcs flags.
6677 (taas_command): New function.
6678 (tfaas_command): New function.
6679 (_initialize_thread): Update to setup the new commands 'taas
6680 and 'tfaas'. Change doc string for 'thread apply'.
6681
6a70eb7d
PW
66822018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6683
6684 * stack.c: (trailing_outermost_frame): New function, mostly
6685 extracted from backtrace_command_1.
6686 (leading_innermost_frame): New function.
6687 (backtrace_command_1): Update to call trailing_outermost_frame.
6688 (frame_apply_command_count): New function.
6689 (frame_apply_level_command): New function.
6690 (frame_apply_all_command): New function.
6691 (frame_apply_command): New function.
6692 (faas_command): New function.
6693 (frame_cmd_list): New variable.
6694 (_initialize_stack): Update to setup the new commands 'frame apply'
6695 and 'faas'.
6696
529c08b2
PW
66972018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6698
6699 * cli-utils.c (number_or_range_parser::get_number): Only handle
6700 numbers or convenience var as numbers.
6701 (parse_flags): New function.
6702 (parse_flags_qcs): New function.
6703 (number_or_range_parser::finished): Ensure parsing end is detected
6704 before end of string.
6705 * cli-utils.h (parse_flags): New function.
6706 (parse_flags_qcs): New function.
6707 (number_or_range_parser): Remove m_finished bool.
6708 (number_or_range_parser::skip_range): Set m_in_range to false.
6709
64b58472
SDJ
67102018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
6711
6712 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
6713 on Windows.
6714
c7ab0aef
SDJ
67152018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6716 Jan Kratochvil <jan.kratochvil@redhat.com>
6717 Paul Fertser <fercerpav@gmail.com>
6718 Tsutomu Seki <sekiriki@gmail.com>
6719 Pedro Alves <palves@redhat.com>
6720
6721 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6722 'unittests/parse-connection-spec-selftests.c'.
6723 (COMMON_SFILES): Add 'common/netstuff.c'.
6724 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
6725 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
6726 * common/netstuff.c: New file.
6727 * common/netstuff.h: New file.
6728 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
6729 (wait_for_connect): Update comment. New parameter
6730 'gdb::optional<int> sock' instead of 'struct serial *scb'.
6731 Use 'sock' directly instead of 'scb->fd'.
6732 (try_connect): New function, with code from 'net_open'.
6733 (net_open): Rewrite main loop to deal with multiple
6734 sockets/addresses. Handle IPv6-style hostnames; implement
6735 support for IPv6 connections.
6736 * unittests/parse-connection-spec-selftests.c: New file.
6737
4c7333b3
PA
67382018-07-11 Pedro Alves <palves@redhat.com>
6739
6740 PR gdb/23377
6741 * remote.c (remote_target::remote_detach_pid): Call
6742 set_current_process.
6743
a6f88f6e
PA
67442018-07-11 Pedro Alves <palves@redhat.com>
6745
6746 * h8300-tdep.c (h8300_gdbarch_init): Remove
6747 set_gdbarch_ecoff_reg_to_regnum calls.
6748
16ff70dd
SDJ
67492018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6750
6751 PR c++/23373
6752 * c-typeprint.c (c_type_print_base_struct_union): Don't print
6753 offsets/sizes for static members of a class/struct.
6754
12863263
AH
67552018-07-11 Alan Hayward <alan.hayward@arm.com>
6756
6757 * target-descriptions.c (tdesc_register_bitsize): Rename.
6758 * target-descriptions.h (tdesc_register_bitsize): Likewise.
6759 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
6760 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
6761
1123588c
TT
67622018-07-10 Tom Tromey <tom@tromey.com>
6763
6764 * breakpoint.c (moribund_locations): Now static and a
6765 std::vector.
6766 (breakpoint_init_inferior, moribund_breakpoint_here_p)
6767 (build_bpstat_chain, update_global_location_list)
6768 (breakpoint_retire_moribund): Update.
6769 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
6770 VEC.
6771
8c49aa89
AB
67722018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6773
6774 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
6775 (riscv_register_reggroup_p): Use new function, remove unneeded
6776 parenthesis.
6777 (riscv_push_dummy_call): Extend assert to compare against xlen or
6778 flen based on register type.
6779
42ecac17
AB
67802018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6781
6782 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
6783
055303e2
AB
67842018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6785
6786 * remote.c (show_hardware_watchpoint_limit): New function.
6787 (show_hardware_watchpoint_length_limit): New function.
6788 (show_hardware_breakpoint_limit): New function.
6789 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
6790 where appropriate, update help text.
6791
8fd32c1c
TT
67922018-07-09 Tom Tromey <tom@tromey.com>
6793
6794 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
6795 (CLIBS): Don't mention NAT_CLIBS.
6796
31278b51
TT
67972018-07-09 Tom Tromey <tom@tromey.com>
6798
6799 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
6800 (LIBGDB_OBS, clean mostlyclean): Update.
6801 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
6802
e5fd1493
TT
68032018-07-09 Tom Tromey <tom@tromey.com>
6804
6805 * Makefile.in (%.c: %.y): Use ECHO_YACC.
6806 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
6807 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
6808
981e0c0c
TT
68092018-07-09 Tom Tromey <tom@tromey.com>
6810
6811 * Makefile.in (ALLDEPFILES): Remove exec.c.
6812 (COMMON_OBS): Remove exec.o.
6813 (COMMON_SFILES): Add exec.c.
6814
14ccceb2
TT
68152018-07-09 Tom Tromey <tom@tromey.com>
6816
6817 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
6818
5d3c3a68
TT
68192018-07-09 Tom Tromey <tom@tromey.com>
6820
6821 * Makefile.in (clean mostlyclean): Remove stamp-version.
6822 (version.c): Depend on stamp-version.
6823 (stamp-version): New rule, from version.c rule.
6824
1998086d
TT
68252018-07-09 Tom Tromey <tom@tromey.com>
6826
6827 * Makefile.in (init.c): Depend on stamp-init.
6828 (stamp-init): New rule, from init.c rule.
6829 (clean mostlyclean): Remove stamp-init.
6830
4c754949
TT
68312018-07-09 Tom Tromey <tom@tromey.com>
6832
6833 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
6834 SUBDIR_GCC_COMPILE_SRCS.
6835
6497f1dd
TT
68362018-07-09 Tom Tromey <tom@tromey.com>
6837
6838 * Makefile.in (init.c): Remove some unused sed rules.
6839
97a34db9
TT
68402018-07-09 Tom Tromey <tom@tromey.com>
6841
6842 * Makefile.in (TSOBS): Remove.
6843 (INIT_FILES): Update.
6844 (LIBGDB_OBS): Update.
6845 (COMMON_SFILES): Add inflow.c.
6846 (SFILES): Remove inflow.c.
6847
25289ac1
JK
68482018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6849
6850 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
6851
e83f4d97
SM
68522018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
6853
4869c585
SM
6854 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
6855 get_saveloc_name, is_signal_frame_name, step_name,
6856 init_remote_name, create_addr_space_name,
6857 destroy_addr_space_name, search_unwind_table_name,
6858 find_dyn_list_name): Constify.
e83f4d97 6859
6821842f
SM
68602018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
6861
6862 * darwin-nat.c (darwin_pthread_kill): New function.
6863 (darwin_resume_thread): Use darwin_pthread_kill.
6864
c530603c
TV
68652018-07-05 Tom de Vries <tdevries@suse.de>
6866
6867 * macroexp.c (macro_buffer) <operator=>: New member function.
6868
a7d0f0f0
TT
68692018-07-04 Tom Tromey <tom@tromey.com>
6870
6871 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
6872
6242c6a6
SM
68732018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
6874
6875 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
6876 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
6877 * maint.c: Likewise.
6878 * top.c: Likewise.
6879
4e5b2f89
JB
68802018-07-04 Joel Brobecker <brobecker@adacore.com>
6881
6882 * NEWS: Create a new section for the next release branch.
6883 Rename the section of the current branch, now that it has
6884 been cut.
6885
538ccc4a
JB
68862018-07-04 Joel Brobecker <brobecker@adacore.com>
6887
6888 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
6889 * version.in: Bump version to 8.2.50.DATE-git.
6890
1b919490
VB
68912018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6892 Pedro Alves <palves@redhat.com>
6893
6894 * linux-nat.c (linux_init_ptrace): Rename to ...
6895 (linux_init_ptrace_procfs): ... this. Call
6896 linux_proc_init_warnings.
6897 (linux_nat_target::post_attach)
6898 (linux_nat_target::post_startup_inferior): Adjust.
6899 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
6900 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
6901
1ea5da02
TV
69022018-07-04 Tom de Vries <tdevries@suse.de>
6903
6904 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
6905 check ...
6906 (read_comp_unit_head): ... here.
6907
f51e0e20
TT
69082018-07-03 Tom Tromey <tom@tromey.com>
6909
6910 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
6911 (stop_tracing, tstatus_command)
6912 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
6913 (print_one_static_tracepoint_marker): Update.
6914 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
6915 std::vector.
6916 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
6917 VEC.
6918 (all_tracepoints, static_tracepoints_here): Return std::vector.
6919
d7e15655
TT
69202018-07-03 Tom Tromey <tom@tromey.com>
6921
6922 * common/ptid.c (ptid_equal): Remove.
6923 * common/ptid.h (ptid_equal): Don't declare.
6924 * ada-tasks.c: Update.
6925 * breakpoint.c: Update.
6926 * common/agent.c: Update.
6927 * corelow.c: Update.
6928 * darwin-nat-info.c: Update.
6929 * darwin-nat.c: Update.
6930 * dcache.c: Update.
6931 * dtrace-probe.c: Update.
6932 * dummy-frame.c: Update.
6933 * fbsd-nat.c: Update.
6934 * frame.c: Update.
6935 * gdbthread.h: Update.
6936 * gnu-nat.c: Update.
6937 * go32-nat.c: Update.
6938 * inf-loop.c: Update.
6939 * inf-ptrace.c: Update.
6940 * infcall.c: Update.
6941 * infcmd.c: Update.
6942 * inflow.c: Update.
6943 * infrun.c: Update.
6944 * linux-fork.c: Update.
6945 * linux-nat.c: Update.
6946 * linux-thread-db.c: Update.
6947 * mi/mi-cmd-var.c: Update.
6948 * mi/mi-interp.c: Update.
6949 * mi/mi-main.c: Update.
6950 * nto-procfs.c: Update.
6951 * ppc-linux-tdep.c: Update.
6952 * procfs.c: Update.
6953 * python/py-inferior.c: Update.
6954 * python/py-record-btrace.c: Update.
6955 * python/py-record.c: Update.
6956 * ravenscar-thread.c: Update.
6957 * regcache.c: Update.
6958 * remote-sim.c: Update.
6959 * remote.c: Update.
6960 * sol-thread.c: Update.
6961 * solib.c: Update.
6962 * target.c: Update.
6963 * tui/tui-stack.c: Update.
6964 * varobj.c: Update.
6965 * windows-nat.c: Update.
6966 * windows-tdep.c: Update.
6967
26a57c92
TT
69682018-07-03 Tom Tromey <tom@tromey.com>
6969
6970 * common/ptid.c (ptid_match): Remove.
6971 * common/ptid.h (ptid_match): Don't declare.
6972 * fbsd-nat.c: Update.
6973 * infcmd.c: Update.
6974 * infrun.c: Update.
6975 * linux-nat.c: Update.
6976 * record-btrace.c: Update.
6977 * regcache.c: Update.
6978 * remote.c: Update.
6979
d2a107e3
TT
69802018-07-03 Tom Tromey <tom@tromey.com>
6981
6982 * common/ptid.c (ptid_tid_p): Remove.
6983 * common/ptid.h (ptid_tid_p): Don't declare.
6984 * sol-thread.c: Update.
6985
15a9e13e
TT
69862018-07-03 Tom Tromey <tom@tromey.com>
6987
6988 * common/ptid.c (ptid_lwp_p): Remove.
6989 * common/ptid.h (ptid_lwp_p): Don't declare.
6990 * fbsd-nat.c: Update.
6991 * linux-nat.c: Update.
6992 * nat/linux-procfs.c: Update.
6993 * nat/x86-linux-dregs.c: Update.
6994 * sol-thread.c: Update.
6995
0e998d96
TT
69962018-07-03 Tom Tromey <tom@tromey.com>
6997
6998 * common/ptid.c (ptid_is_pid): Remove.
6999 * common/ptid.h (ptid_is_pid): Don't declare.
7000 * infrun.c: Update.
7001 * linux-nat.c: Update.
7002 * mi/mi-interp.c: Update.
7003 * remote.c: Update.
7004 * thread.c: Update.
7005
cc6bcb54
TT
70062018-07-03 Tom Tromey <tom@tromey.com>
7007
7008 * common/ptid.c (ptid_get_tid): Remove.
7009 * common/ptid.h (ptid_get_tid): Don't declare.
7010 * ada-tasks.c: Update.
7011 * aix-thread.c: Update.
7012 * bsd-uthread.c: Update.
7013 * darwin-nat.c: Update.
7014 * fbsd-nat.c: Update.
7015 * i386-darwin-nat.c: Update.
7016 * infrun.c: Update.
7017 * linux-tdep.c: Update.
7018 * nto-procfs.c: Update.
7019 * ppc-ravenscar-thread.c: Update.
7020 * python/py-infthread.c: Update.
7021 * ravenscar-thread.c: Update.
7022 * sol-thread.c: Update.
7023 * sparc-ravenscar-thread.c: Update.
7024 * windows-nat.c: Update.
7025
e38504b3
TT
70262018-07-03 Tom Tromey <tom@tromey.com>
7027
7028 * common/ptid.c (ptid_get_lwp): Remove.
7029 * common/ptid.h (ptid_get_lwp): Don't declare.
7030 * aarch64-linux-nat.c: Update.
7031 * ada-tasks.c: Update.
7032 * aix-thread.c: Update.
7033 * amd64-linux-nat.c: Update.
7034 * arm-linux-nat.c: Update.
7035 * corelow.c: Update.
7036 * fbsd-nat.c: Update.
7037 * fbsd-tdep.c: Update.
7038 * gnu-nat.c: Update.
7039 * i386-cygwin-tdep.c: Update.
7040 * i386-gnu-nat.c: Update.
7041 * i386-linux-nat.c: Update.
7042 * ia64-linux-nat.c: Update.
7043 * inf-ptrace.c: Update.
7044 * infrun.c: Update.
7045 * linux-fork.c: Update.
7046 * linux-nat.c: Update.
7047 * linux-tdep.c: Update.
7048 * linux-thread-db.c: Update.
7049 * mips-linux-nat.c: Update.
7050 * nat/aarch64-linux-hw-point.c: Update.
7051 * nat/aarch64-linux.c: Update.
7052 * nat/linux-btrace.c: Update.
7053 * nat/linux-osdata.c: Update.
7054 * nat/linux-procfs.c: Update.
7055 * nat/x86-linux-dregs.c: Update.
7056 * obsd-nat.c: Update.
7057 * ppc-fbsd-nat.c: Update.
7058 * ppc-linux-nat.c: Update.
7059 * procfs.c: Update.
7060 * python/py-infthread.c: Update.
7061 * ravenscar-thread.c: Update.
7062 * remote.c: Update.
7063 * s390-linux-nat.c: Update.
7064 * sol-thread.c: Update.
7065 * sol2-tdep.c: Update.
7066 * spu-linux-nat.c: Update.
7067 * x86-linux-nat.c: Update.
7068 * xtensa-linux-nat.c: Update.
7069
e99b03dc
TT
70702018-07-03 Tom Tromey <tom@tromey.com>
7071
7072 * common/ptid.c (ptid_get_pid): Remove.
7073 * common/ptid.h (ptid_get_pid): Don't declare.
7074 * aarch64-linux-nat.c: Update.
7075 * ada-lang.c: Update.
7076 * aix-thread.c: Update.
7077 * alpha-bsd-nat.c: Update.
7078 * amd64-fbsd-nat.c: Update.
7079 * amd64-linux-nat.c: Update.
7080 * arm-linux-nat.c: Update.
7081 * arm-nbsd-nat.c: Update.
7082 * auxv.c: Update.
7083 * break-catch-syscall.c: Update.
7084 * breakpoint.c: Update.
7085 * bsd-uthread.c: Update.
7086 * corelow.c: Update.
7087 * ctf.c: Update.
7088 * darwin-nat.c: Update.
7089 * fbsd-nat.c: Update.
7090 * fbsd-tdep.c: Update.
7091 * gcore.c: Update.
7092 * gnu-nat.c: Update.
7093 * hppa-nbsd-nat.c: Update.
7094 * hppa-obsd-nat.c: Update.
7095 * i386-fbsd-nat.c: Update.
7096 * ia64-linux-nat.c: Update.
7097 * inf-ptrace.c: Update.
7098 * infcmd.c: Update.
7099 * inferior.c: Update.
7100 * inferior.h: Update.
7101 * inflow.c: Update.
7102 * infrun.c: Update.
7103 * linux-fork.c: Update.
7104 * linux-nat.c: Update.
7105 * linux-tdep.c: Update.
7106 * linux-thread-db.c: Update.
7107 * m68k-bsd-nat.c: Update.
7108 * mi/mi-interp.c: Update.
7109 * mi/mi-main.c: Update.
7110 * mips-linux-nat.c: Update.
7111 * mips-nbsd-nat.c: Update.
7112 * mips64-obsd-nat.c: Update.
7113 * nat/aarch64-linux-hw-point.c: Update.
7114 * nat/aarch64-linux.c: Update.
7115 * nat/linux-btrace.c: Update.
7116 * nat/linux-osdata.c: Update.
7117 * nat/linux-procfs.c: Update.
7118 * nat/x86-linux-dregs.c: Update.
7119 * nto-procfs.c: Update.
7120 * obsd-nat.c: Update.
7121 * ppc-linux-nat.c: Update.
7122 * ppc-nbsd-nat.c: Update.
7123 * ppc-obsd-nat.c: Update.
7124 * proc-service.c: Update.
7125 * procfs.c: Update.
7126 * python/py-inferior.c: Update.
7127 * python/py-infthread.c: Update.
7128 * ravenscar-thread.c: Update.
7129 * record.c: Update.
7130 * remote-sim.c: Update.
7131 * remote.c: Update.
7132 * rs6000-nat.c: Update.
7133 * s390-linux-nat.c: Update.
7134 * sh-nbsd-nat.c: Update.
7135 * sol-thread.c: Update.
7136 * sparc-nat.c: Update.
7137 * sparc64-tdep.c: Update.
7138 * spu-linux-nat.c: Update.
7139 * spu-tdep.c: Update.
7140 * target-debug.h: Update.
7141 * target.c: Update.
7142 * thread.c: Update.
7143 * tid-parse.c: Update.
7144 * tracefile-tfile.c: Update.
7145 * vax-bsd-nat.c: Update.
7146 * windows-nat.c: Update.
7147 * x86-linux-nat.c: Update.
7148 * x86-nat.c: Update.
7149
f2907e49
TT
71502018-07-03 Tom Tromey <tom@tromey.com>
7151
7152 * common/ptid.c (pid_to_ptid): Remove.
7153 * common/ptid.h (pid_to_ptid): Don't declare.
7154 * aix-thread.c: Update.
7155 * arm-linux-nat.c: Update.
7156 * common/ptid.c: Update.
7157 * common/ptid.h: Update.
7158 * corelow.c: Update.
7159 * ctf.c: Update.
7160 * darwin-nat.c: Update.
7161 * fbsd-nat.c: Update.
7162 * fork-child.c: Update.
7163 * gnu-nat.c: Update.
7164 * go32-nat.c: Update.
7165 * inf-ptrace.c: Update.
7166 * infcmd.c: Update.
7167 * inferior.c: Update.
7168 * infrun.c: Update.
7169 * linux-fork.c: Update.
7170 * linux-nat.c: Update.
7171 * nat/aarch64-linux-hw-point.c: Update.
7172 * nat/fork-inferior.c: Update.
7173 * nat/x86-linux-dregs.c: Update.
7174 * nto-procfs.c: Update.
7175 * obsd-nat.c: Update.
7176 * procfs.c: Update.
7177 * progspace.c: Update.
7178 * remote.c: Update.
7179 * rs6000-nat.c: Update.
7180 * s390-linux-nat.c: Update.
7181 * sol-thread.c: Update.
7182 * spu-linux-nat.c: Update.
7183 * target.c: Update.
7184 * top.c: Update.
7185 * tracefile-tfile.c: Update.
7186 * windows-nat.c: Update.
7187
fd79271b
TT
71882018-07-03 Tom Tromey <tom@tromey.com>
7189
7190 * common/ptid.h (ptid_build): Don't declare.
7191 * common/ptid.c (ptid_build): Remove.
7192 * aix-thread.c: Update.
7193 * bsd-kvm.c: Update.
7194 * bsd-uthread.c: Update.
7195 * common/agent.c: Update.
7196 * common/ptid.c: Update.
7197 * common/ptid.h: Update.
7198 * corelow.c: Update.
7199 * darwin-nat.c: Update.
7200 * fbsd-nat.c: Update.
7201 * gnu-nat.c: Update.
7202 * linux-fork.c: Update.
7203 * linux-nat.c: Update.
7204 * linux-thread-db.c: Update.
7205 * nat/linux-osdata.c: Update.
7206 * nat/linux-procfs.c: Update.
7207 * nto-procfs.c: Update.
7208 * obsd-nat.c: Update.
7209 * proc-service.c: Update.
7210 * procfs.c: Update.
7211 * ravenscar-thread.c: Update.
7212 * remote-sim.c: Update.
7213 * remote.c: Update.
7214 * sol-thread.c: Update.
7215 * target.c: Update.
7216 * windows-nat.c: Update.
7217
057302ce
TT
72182018-07-03 Tom Tromey <tom@tromey.com>
7219
7220 * infrun.c (follow_exec): Use exit_inferior_silent.
7221 * inferior.c (exit_inferior_num_silent): Remove.
7222 * inferior.h (exit_inferior_num_silent): Don't declare.
7223
a50c11c6
TT
72242018-07-03 Tom Tromey <tom@tromey.com>
7225
7226 PR cli/23340:
7227 * darwin-nat.c (darwin_attach_pid): Reset inferior and
7228 inferior_ptid on error.
7229
471b9d15
MR
72302018-07-02 Maciej W. Rozycki <macro@mips.com>
7231 Simon Marchi <simon.marchi@polymtl.ca>
7232
7233 PR tdep/8282
7234 * disasm.h (gdb_disassembler): Add
7235 `m_disassembler_options_holder'. member
7236 * disasm.c (get_all_disassembler_options): New function.
7237 (gdb_disassembler::gdb_disassembler): Use it.
7238 (gdb_buffered_insn_length_init_dis): Likewise.
7239 (gdb_buffered_insn_length): Adjust accordingly.
7240 (set_disassembler_options): Handle options with arguments.
7241 (show_disassembler_options_sfunc): Likewise. Add a leading new
7242 line if showing options with descriptions.
7243 (disassembler_options_completer): Adapt to using the
7244 `disasm_options_and_args_t' structure.
7245 * mips-tdep.c (mips_disassembler_options): New variable.
7246 (mips_disassembler_options_o32): Likewise.
7247 (mips_disassembler_options_n32): Likewise.
7248 (mips_disassembler_options_n64): Likewise.
7249 (gdb_print_insn_mips): Don't set `disassembler_options'.
7250 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
7251 functions.
7252 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
7253 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
7254 `gdbarch_disassembler_options_implicit' and
7255 `gdbarch_valid_disassembler_options'.
7256 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
7257 `disasm_options_and_args_t' structure.
7258 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
7259 method.
7260 (valid_disassembler_options): Switch from `disasm_options_t' to
7261 the `disasm_options_and_args_t' structure.
7262 * NEWS: Document `set disassembler-options' support for the MIPS
7263 target.
7264 * gdbarch.h: Regenerate.
7265 * gdbarch.c: Regenerate.
7266
41823f29
SH
72672018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
7268
7269 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
7270
41206e32
JB
72712018-06-29 Joel Brobecker <brobecker@adacore.com>
7272
7273 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
7274 parameter in call to amd64_target_description.
7275 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
7276 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
7277 (amd64fbsd_init_abi): Likewise.
7278 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7279 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7280 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7281 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
7282
de52b960
PA
72832018-06-29 Pedro Alves <palves@redhat.com>
7284
7285 * gdb/amd64-tdep.h (amd64_create_target_description): Add
7286 "segments" parameter.
7287 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
7288 (_initialize_amd64_tdep): Update call to
7289 amd64_create_target_description.
7290 (amd64_target_description): Add "segments" parameter. Adjust
7291 the implementation to use it.
7292 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
7293 call to amd64_create_target_description.
7294 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
7295 * gdb/arch/amd64.h (amd64_create_target_description): Add
7296 "segments" register.
7297 * gdb/arch/amd64.c (amd64_create_target_description): Add
7298 "segments" parameter. Call create_feature_i386_64bit_segments
7299 only if SEGMENTS is true.
7300 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
7301 call to amd64_create_target_description.
7302
75acb486
PA
73032018-06-29 Pedro Alves <palves@redhat.com>
7304
7305 * thread.c (thread_target_id_str): New, factored out from ...
7306 (print_thread_info_1): ... here. Use it to compute the max
7307 "Target Id" column width.
7308
c76a8ea3
PA
73092018-06-29 Pedro Alves <palves@redhat.com>
7310
7311 * remote.c (remote_target::extra_thread_info): Delete
7312 'display_buf' and 'n' locals. from the cache, regardless of
7313 packet mechanims is in use. Use cache for qThreadExtra and qP
7314 methods too.
7315
cd2bb709
PA
73162018-06-29 Pedro Alves <palves@redhat.com>
7317
7318 * blockframe.c (find_pc_sect_containing_function): New function.
7319 * breakpoint.c (print_breakpoint_location): Don't call
7320 find_pc_sect_function.
7321 * linespec.c (create_sals_line_offset): Record the location's
7322 symbol in the sal.
7323 * linespec.c (convert_address_location_to_sals): Fill in sal's
7324 symbol with find_pc_sect_containing_function.
7325 * symtab.c (find_function_start_sal): Rename to ...
7326 (find_function_start_sal_1): ... this.
7327 (find_function_start_sal): Reimplement as wrapper around
7328 find_function_start_sal_1, and use
7329 find_pc_sect_containing_function to fill in the sal's symbol.
7330 (find_function_start_sal(symbol*, bool)): Adjust.
7331 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
7332 comments.
7333 (find_pc_sect_containing_function): Declare.
7334
991ff292
PA
73352018-06-29 Pedro Alves <palves@redhat.com>
7336
7337 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
7338 true if the the location has no symbol.
7339
44cee4fd
TT
73402018-06-28 Tom Tromey <tom@tromey.com>
7341
7342 * NEWS: Mention --enable-codesign.
7343 * silent-rules.mk (ECHO_SIGN): New variable.
7344 * configure.ac: Add --enable-codesign.
7345 * configure: Rebuild.
7346 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
7347 (gdb$(EXEEXT)): Optionally invoke codesign.
7348
f2ffa92b
PA
73492018-06-28 Pedro Alves <palves@redhat.com>
7350
7351 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
7352 comments.
7353 (switch_to_thread_no_regs): Adjust comment.
7354 * infcmd.c (stop_pc): Delete.
7355 (post_create_inferior, info_program_command): Replace references
7356 to stop_pc with references to thread_info->suspend.stop_pc.
7357 * inferior.h (stop_pc): Delete declaration.
7358 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
7359 (handle_inferior_event_1, handle_signal_stop)
7360 (process_event_stop_test, keep_going_stepped_thread)
7361 (handle_step_into_function, handle_step_into_function_backward)
7362 (print_stop_location): Replace references to stop_pc with
7363 references to thread_info->suspend.stop_pc.
7364 (struct infcall_suspend_state) <stop_pc>: Delete field.
7365 (save_infcall_suspend_state, restore_infcall_suspend_state):
7366 Remove references to inf_stat->stop_pc.
7367 * linux-fork.c (fork_load_infrun_state): Likewise.
7368 * record-btrace.c (record_btrace_set_replay): Likewise.
7369 * record-full.c (record_full_goto_entry): Likewise.
7370 * remote.c (print_one_stopped_thread): Likewise.
7371 * target.c (target_resume): Extend comment.
7372 * thread.c (set_executing_thread): New.
7373 (set_executing): Use it.
7374 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
7375 Remove references to stop_pc.
7376
ecdc3a72
PA
73772018-06-28 Pedro Alves <palves@redhat.com>
7378
7379 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
7380 Moving fetching stop_pc until after ecs->event_thread is refreshed.
7381
d95d3aef
TT
73822018-06-28 Tom Tromey <tom@tromey.com>
7383
7384 * coffread.c (coff_symfile_finish): Update.
7385 * xcoffread.c (xcoff_symfile_finish): Update.
7386 * elfread.c (elf_symfile_finish): Update.
7387 * symfile.h (dwarf2_free_objfile): Don't declare.
7388 * dwarf2read.c (_initialize_dwarf2_read): Use
7389 register_objfile_data_with_cleanup.
7390 (dwarf2_free_objfile): Now static. Change signature.
7391
291f9a96
PT
73922018-06-28 Petr Tesarik <ptesarik@suse.cz>
7393
7394 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
7395 option "-o" to add-symbol-file-load to add an offset to each
7396 section's load address.
7397 * symfile.c (set_objfile_default_section_offset): New function.
7398
d81a3eaf
PT
73992018-06-28 Petr Tesarik <ptesarik@suse.cz>
7400
7401 * symfile.c (add_symbol_file_command): Make sure that sections
7402 with the same name are sorted in the same order.
7403
ed6dfe51
PT
74042018-06-28 Petr Tesarik <ptesarik@suse.cz>
7405
7406 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
7407 require the second argument. If omitted, load sections at the
7408 addresses specified in the file.
7409
d4d429d5
PT
74102018-06-28 Petr Tesarik <ptesarik@suse.cz>
7411
7412 * symfile.c (symbol_file_command, symbol_file_add_main_1)
7413 (_initialize_symfile): Add option "-o" to symbol-file to add an
7414 offset to each section of the symbol file.
7415
39b27ab6
PT
74162018-06-28 Petr Tesarik <ptesarik@suse.cz>
7417
7418 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
7419
41827fc3
TT
74202018-06-27 Tom Tromey <tom@tromey.com>
7421
7422 * stack.c (_initialize_stack): Update "func" help text.
7423
0c6aef22
TT
74242018-06-27 Tom Tromey <tom@tromey.com>
7425
7426 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
7427 std::vector.
7428 (unwind_infopy_str, pyuw_create_unwind_info)
7429 (unwind_infopy_add_saved_register, pyuw_sniffer)
7430 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
7431 Update.
7432 (struct saved_reg): Add constructor.
7433 <value>: Now a gdbpy_ref<>.
7434
63177289
TT
74352018-06-27 Tom Tromey <tom@tromey.com>
7436
7437 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
7438
e76f78a0
SM
74392018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7440
7441 * gdb-gdb.py.in: Format using autopep8.
7442
9a14af7b
SM
74432018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7444
7445 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
7446 (type_lookup_function): Recognize CORE_ADDR values.
7447
189366cd
SM
74482018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7449
7450 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
7451 print tag_name.
7452
68ad5fb9
SM
74532018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7454
7455 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
7456 <__lt__>: Add.
7457
141ec9f6
SM
74582018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7459
7460 * gdb-gdb.py: Move to...
7461 * gdb-gdb.py.in: ... here.
7462 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
7463 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
7464 dependencies.
7465 (distclean): Remove gdb-gdb.py when cleaning.
7466 (gdb-gdb.py, gdb-gdb.gdb): New rules.
7467 * configure: Re-generate.
7468
4c4e7ad4
PA
74692018-06-27 Pedro Alves <palves@redhat.com>
7470
7471 * proc-service.c (get_ps_regcache): New.
7472 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7473 (ps_lsetfpregs): Use it.
7474
7ab6656f
OJ
74752018-06-27 Omair Javaid <omair.javaid@linaro.org>
7476
7477 PR gdb/21695
4399bce9
PA
7478 * dwarf2read.c (lnp_state_machine::check_line_address): Update
7479 declaration.
7ab6656f
OJ
7480 (dwarf_decode_lines_1): Adjust.
7481
bd583225
SM
74822018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7483
7484 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
7485 override.
7486 <info_proc>: Likewise.
7487
9a325b7b
JB
74882018-06-26 Joel Brobecker <brobecker@adacore.com>
7489
7490 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
7491 to windows_fetch_one_register, and only handle the case of
7492 fetching one register. Move the code that reloads the context
7493 and iterates over all registers if R is negative to...
7494 (windows_nat_target::fetch_registers): ... here.
7495 (do_windows_store_inferior_registers): Rename to
7496 windows_store_one_register, and only handle the case of storing
7497 one register. Move the code that handles the case where r is
7498 negative to...
7499 (windows_nat_target::store_registers) ... here.
7500
a33ccfc7
TT
75012018-06-26 Tom Tromey <tom@tromey.com>
7502
7503 PR rust/22574:
7504 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
7505 * rust-lang.c (rust_print_struct_def): Add podata parameter.
7506 Update.
7507 (rust_internal_print_type): Add podata parameter.
7508 (rust_print_type): Update.
7509
e0c547d1
TT
75102018-06-26 Tom Tromey <tom@tromey.com>
7511
7512 * typeprint.h (struct print_offset_data) <update, finish,
7513 maybe_print_hole>: New methods.
7514 <indentation>: New constant.
7515 * typeprint.c (print_offset_data::indentation): Define.
7516 (print_offset_data::maybe_print_hole, print_offset_data::update)
7517 (print_offset_data::finish): Move from c-typeprint.c and rename.
7518 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
7519 (print_spaces_filtered_with_print_options): Update.
7520 (c_print_type_union_field_offset, maybe_print_hole)
7521 (c_print_type_struct_field_offset): Move to typeprint.c and
7522 rename.
7523 (c_type_print_base_struct_union): Update.
7524
75cbc781
PA
75252018-06-25 Pedro Alves <palves@redhat.com>
7526
7527 * gdbthread.h (thread_info_ref, delete_thread)
7528 (delete_thread_silent, first_thread_of_inferior)
7529 (any_thread_of_inferior, switch_to_thread)
7530 (enable_thread_stack_temporaries)
7531 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7532 (get_last_thread_stack_temporary)
7533 (value_in_thread_stack_temporaries, can_access_registers_thread):
7534 Spell out "struct thread_info" instead of just "thread_info".
7535 * inferior.h (notice_new_inferior): Likewise.
7536
b7a08269
PA
75372018-06-25 Pedro Alves <palves@redhat.com>
7538
7539 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
7540 pass thread_info pointer to delete_thread.
7541 (windows_nat_target::detach): Pass inferior pointer to
7542 detach_inferior.
7543 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
7544 delete_thread.
7545 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
7546 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
7547 and pass a thread_info pointer to delete_thread.
7548 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
7549 pass thread_info pointer to delete_thread.
7550 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
7551 delete_thread_silent call.
7552 * procfs.c (procfs_target::detach): Pass inferior pointer to
7553 detach_inferior.
7554 (procfs_target::wait): Pass thread_info pointer to delete_thread.
7555 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
7556 delete_thread_silent call.
7557 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
7558 pass thread_info pointer to delete_thread.
7559 (windows_nat_target::detach): Pass inferior pointer to
7560 delete_inferior.
7561
8e7767e3
AH
75622018-06-22 Alan Hayward <alan.hayward@arm.com>
7563
7564 * regcache.c (readable_regcache::read_part): Fix asserts.
7565 (reg_buffer::raw_collect_part): New function.
7566 (regcache::write_part): Fix asserts.
7567 (reg_buffer::raw_supply_part): New function.
7568 (regcache::transfer_regset_register): New helper function.
7569 (regcache::transfer_regset): Call new functions.
7570 (regcache_supply_regset): Use gdb_byte*.
7571 (regcache::supply_regset): Likewise.
7572 (regcache_collect_regset): Likewise.
7573 (regcache::collect_regset): Likewise.
7574 * regcache.h (reg_buffer::raw_collect_part): New declaration.
7575 (reg_buffer::raw_supply_part): Likewise.
7576 (regcache::transfer_regset_register): Likewise.
7577 (regcache::transfer_regset): Use gdb_byte*.
7578
bfd60e34
AH
75792018-06-22 Alan Hayward <alan.hayward@arm.com>
7580
7581 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
7582
00431a78
PA
75832018-06-21 Pedro Alves <palves@redhat.com>
7584
7585 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
7586 instead of a ptid_t. All callers adjusted.
7587 * ada-tasks.c (ada_get_task_number): Likewise. All callers
7588 adjusted.
7589 (print_ada_task_info, display_current_task_id, task_command_1):
7590 Adjust.
7591 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
7592 inferior_thread.
7593 (breakpoint_kind): Adjust.
7594 (remove_breakpoints_pid): Rename to ...
7595 (remove_breakpoints_inf): ... this. Adjust to take an inferior
7596 pointer. All callers adjusted.
7597 (bpstat_clear_actions): Use inferior_thread.
7598 (get_bpstat_thread): New.
7599 (bpstat_do_actions): Use it.
7600 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
7601 to take a thread_info pointer. All callers adjusted.
7602 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
7603 (breakpoint_re_set_thread): Use inferior_thread.
7604 * breakpoint.h (struct inferior): Forward declare.
7605 (bpstat_stop_status): Update.
7606 (remove_breakpoints_pid): Delete.
7607 (remove_breakpoints_inf): New.
7608 * bsd-uthread.c (bsd_uthread_target::wait)
7609 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
7610 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
7611 (maint_btrace_packet_history_cmd)
7612 (maint_btrace_clear_packet_history_cmd): Adjust.
7613 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
7614 inferior_thread.
7615 * cli/cli-interp.c: Include "inferior.h".
7616 * common/refcounted-object.h (struct
7617 refcounted_object_ref_policy): New.
7618 * compile/compile-object-load.c: Include gdbthread.h.
7619 (store_regs): Use inferior_thread.
7620 * corelow.c (core_target::close): Use current_inferior.
7621 (core_target_open): Adjust to use first_thread_of_inferior and use
7622 the current inferior.
7623 * ctf.c (ctf_target::close): Adjust to use current_inferior.
7624 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
7625 <thread>: ... this new field. All references adjusted.
7626 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
7627 Take a thread_info pointer instead of a ptid_t.
7628 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
7629 (dummy_frame_discard, register_dummy_frame_dtor): Take a
7630 thread_info pointer instead of a ptid_t.
7631 * elfread.c: Include "inferior.h".
7632 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
7633 Use inferior_thread.
7634 * eval.c (evaluate_subexp): Likewise.
7635 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
7636 inferior_thread.
7637 * gdb_proc_service.h (struct thread_info): Forward declare.
7638 (struct ps_prochandle) <ptid>: Delete, replaced by ...
7639 <thread>: ... this new field. All references adjusted.
7640 * gdbarch.h, gdbarch.c: Regenerate.
7641 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
7642 'thread' parameter. All implementations and callers adjusted.
7643 * gdbthread.h (thread_info) <set_running>: New method.
7644 (delete_thread, delete_thread_silent): Take a thread_info pointer
7645 instead of a ptid.
7646 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
7647 (first_thread_of_process): Delete, replaced by ...
7648 (first_thread_of_inferior): ... this new function. All callers
7649 adjusted.
7650 (any_live_thread_of_process): Delete, replaced by ...
7651 (any_live_thread_of_inferior): ... this new function. All callers
7652 adjusted.
7653 (switch_to_thread, switch_to_no_thread): Declare.
7654 (is_executing): Delete.
7655 (enable_thread_stack_temporaries): Update comment.
7656 <enable_thread_stack_temporaries>: Take a thread_info pointer
7657 instead of a ptid_t. Incref the thread.
7658 <~enable_thread_stack_temporaries>: Decref the thread.
7659 <m_ptid>: Delete
7660 <m_thr>: New.
7661 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7662 (get_last_thread_stack_temporary)
7663 (value_in_thread_stack_temporaries, can_access_registers_thread):
7664 Take a thread_info pointer instead of a ptid_t. All callers
7665 adjusted.
7666 * infcall.c (get_call_return_value): Use inferior_thread.
7667 (run_inferior_call): Work with thread pointers instead of ptid_t.
7668 (call_function_by_hand_dummy): Work with thread pointers instead
7669 of ptid_t. Use thread_info_ref.
7670 * infcmd.c (proceed_thread_callback): Access thread's state
7671 directly.
7672 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
7673 access thread's state directly.
7674 (continue_command): Use inferior_thread.
7675 (info_program_command): Use find_thread_ptid and access thread
7676 state directly.
7677 (proceed_after_attach_callback): Use thread state directly.
7678 (notice_new_inferior): Take a thread_info pointer instead of a
7679 ptid_t. All callers adjusted.
7680 (exit_inferior): Take an inferior pointer instead of a pid. All
7681 callers adjusted.
7682 (exit_inferior_silent): New.
7683 (detach_inferior): Delete.
7684 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
7685 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
7686 (detach_inferior_command, kill_inferior_command): Use
7687 find_inferior_id instead of valid_gdb_inferior_id and
7688 gdb_inferior_id_to_pid.
7689 (inferior_command): Use inferior and thread pointers.
7690 * inferior.h (struct thread_info): Forward declare.
7691 (notice_new_inferior): Take a thread_info pointer instead of a
7692 ptid_t. All callers adjusted.
7693 (detach_inferior): Delete declaration.
7694 (exit_inferior, exit_inferior_silent): Take an inferior pointer
7695 instead of a pid. All callers adjusted.
7696 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
7697 (valid_gdb_inferior_id): Delete.
7698 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
7699 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
7700 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
7701 ...
7702 <inf>: ... this new field.
7703 <step_ptid>: Delete, replaced by ...
7704 <step_thread>: ... this new field.
7705 (get_displaced_stepping_state): Take an inferior pointer instead
7706 of a pid. All callers adjusted.
7707 (displaced_step_in_progress_any_inferior): Adjust.
7708 (displaced_step_in_progress_thread): Take a thread pointer instead
7709 of a ptid_t. All callers adjusted.
7710 (displaced_step_in_progress, add_displaced_stepping_state): Take
7711 an inferior pointer instead of a pid. All callers adjusted.
7712 (get_displaced_step_closure_by_addr): Adjust.
7713 (remove_displaced_stepping_state): Take an inferior pointer
7714 instead of a pid. All callers adjusted.
7715 (displaced_step_prepare_throw, displaced_step_prepare)
7716 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
7717 All callers adjusted.
7718 (start_step_over): Adjust.
7719 (infrun_thread_ptid_changed): Remove bit updating ptids in the
7720 displaced step queue.
7721 (do_target_resume): Adjust.
7722 (fetch_inferior_event): Use inferior_thread.
7723 (context_switch, get_inferior_stop_soon): Take an
7724 execution_control_state pointer instead of a ptid_t. All callers
7725 adjusted.
7726 (switch_to_thread_cleanup): Delete.
7727 (stop_all_threads): Use scoped_restore_current_thread.
7728 * inline-frame.c: Include "gdbthread.h".
7729 (inline_state) <inline_state>: Take a thread pointer instead of a
7730 ptid_t. All callers adjusted.
7731 <ptid>: Delete, replaced by ...
7732 <thread>: ... this new field.
7733 (find_inline_frame_state): Take a thread pointer instead of a
7734 ptid_t. All callers adjusted.
7735 (skip_inline_frames, step_into_inline_frame)
7736 (inline_skipped_frames, inline_skipped_symbol): Take a thread
7737 pointer instead of a ptid_t. All callers adjusted.
7738 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
7739 (inline_skipped_frames, inline_skipped_symbol): Likewise.
7740 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
7741 pointers directly.
7742 * linux-nat.c (get_detach_signal): Likewise.
7743 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
7744 (thread_db_notice_clone): Adjust.
7745 (thread_db_find_new_threads_silently)
7746 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
7747 a thread pointer instead of a ptid_t. All callers adjusted.
7748 * mi/mi-cmd-var.c: Include "inferior.h".
7749 (mi_cmd_var_update_iter): Update to use thread pointers.
7750 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
7751 inferior directly.
7752 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
7753 out to ...
7754 (mi_output_running): ... this new function.
7755 (mi_on_resume_1): Adjust to use it.
7756 (mi_user_selected_context_changed): Adjust to use inferior_thread.
7757 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
7758 directly.
7759 (interrupt_thread_callback): : Adjust to use thread and inferior
7760 pointers.
7761 * proc-service.c: Include "gdbthread.h".
7762 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
7763 * progspace-and-thread.c: Include "inferior.h".
7764 * progspace.c: Include "inferior.h".
7765 * python/py-exitedevent.c (create_exited_event_object): Adjust to
7766 hold a reference to an inferior_object.
7767 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
7768 inferior_thread.
7769 * python/py-inferior.c (struct inferior_object): Give the type a
7770 tag name instead of a typedef.
7771 (python_on_normal_stop): No need to check if the current thread is
7772 listed.
7773 (inferior_to_inferior_object): Change return type to
7774 inferior_object. All callers adjusted.
7775 (find_thread_object): Delete, bits factored out to ...
7776 (thread_to_thread_object): ... this new function.
7777 * python/py-infthread.c (create_thread_object): Use
7778 inferior_to_inferior_object.
7779 (thpy_is_stopped): Use thread pointer directly.
7780 (gdbpy_selected_thread): Use inferior_thread.
7781 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
7782 field, replaced with ...
7783 <thread>: ... this new field. All users adjusted.
7784 (btpy_insn_or_gap_new): Drop const.
7785 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
7786 callers adjusted.
7787 * python/py-record.c: Include "gdbthread.h".
7788 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7789 a ptid_t. All callers adjusted.
7790 (gdbpy_current_recording): Use inferior_thread.
7791 * python/py-record.h (recpy_record_object) <ptid>: Delete
7792 field, replaced with ...
7793 <thread>: ... this new field. All users adjusted.
7794 (recpy_element_object) <ptid>: Delete
7795 field, replaced with ...
7796 <thread>: ... this new field. All users adjusted.
7797 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7798 a ptid_t. All callers adjusted.
7799 * python/py-threadevent.c: Include "gdbthread.h".
7800 (get_event_thread): Use thread_to_thread_object.
7801 * python/python-internal.h (struct inferior_object): Forward
7802 declare.
7803 (find_thread_object, find_inferior_object): Delete declarations.
7804 (thread_to_thread_object, inferior_to_inferior_object): New
7805 declarations.
7806 * record-btrace.c: Include "inferior.h".
7807 (require_btrace_thread): Use inferior_thread.
7808 (record_btrace_frame_sniffer)
7809 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
7810 (get_thread_current_frame): Use scoped_restore_current_thread and
7811 switch_to_thread.
7812 (get_thread_current_frame): Use thread pointer directly.
7813 (record_btrace_replay_at_breakpoint): Use thread's inferior
7814 pointer directly.
7815 * record-full.c: Include "inferior.h".
7816 * regcache.c: Include "gdbthread.h".
7817 (get_thread_arch_regcache): Use the inferior's address space
7818 directly.
7819 (get_thread_regcache, registers_changed_thread): New.
7820 * regcache.h (get_thread_regcache(thread_info *thread)): New
7821 overload.
7822 (registers_changed_thread): New.
7823 (remote_target) <remote_detach_1>: Swap order of parameters.
7824 (remote_add_thread): <remote_add_thread>: Return the new thread.
7825 (get_remote_thread_info(ptid_t)): New overload.
7826 (remote_target::remote_notice_new_inferior): Use thread pointers
7827 directly.
7828 (remote_target::process_initial_stop_replies): Use
7829 thread_info::set_running.
7830 (remote_target::remote_detach_1, remote_target::detach)
7831 (extended_remote_target::detach): Adjust.
7832 * stack.c (frame_show_address): Use inferior_thread.
7833 * target-debug.h (target_debug_print_thread_info_pp): New.
7834 * target-delegates.c: Regenerate.
7835 * target.c (default_thread_address_space): Delete.
7836 (memory_xfer_partial_1): Use current_inferior.
7837 (target_detach): Use current_inferior.
7838 (target_thread_address_space): Delete.
7839 (generic_mourn_inferior): Use current_inferior.
7840 * target.h (struct target_ops) <thread_address_space>: Delete.
7841 (target_thread_address_space): Delete.
7842 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
7843 pointers directly.
7844 (delete_thread_1, delete_thread, delete_thread_silent): Take a
7845 thread pointer instead of a ptid_t. Adjust all callers.
7846 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
7847 (first_thread_of_process): Delete, replaced by ...
7848 (first_thread_of_inferior): ... this new function. All callers
7849 adjusted.
7850 (any_thread_of_process): Rename to ...
7851 (any_thread_of_inferior): ... this, and take an inferior pointer.
7852 (any_live_thread_of_process): Rename to ...
7853 (any_live_thread_of_inferior): ... this, and take an inferior
7854 pointer.
7855 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7856 (value_in_thread_stack_temporaries)
7857 (get_last_thread_stack_temporary): Take a thread pointer instead
7858 of a ptid_t. Adjust all callers.
7859 (thread_info::set_running): New.
7860 (validate_registers_access): Use inferior_thread.
7861 (can_access_registers_ptid): Rename to ...
7862 (can_access_registers_thread): ... this, and take a thread
7863 pointer.
7864 (print_thread_info_1): Adjust to compare thread pointers instead
7865 of ptids.
7866 (switch_to_no_thread, switch_to_thread): Make extern.
7867 (scoped_restore_current_thread::~scoped_restore_current_thread):
7868 Use m_thread pointer directly.
7869 (scoped_restore_current_thread::scoped_restore_current_thread):
7870 Use inferior_thread.
7871 (thread_command): Use thread pointer directly.
7872 (thread_num_make_value_helper): Use inferior_thread.
7873 * top.c (execute_command): Use inferior_thread.
7874 * tui/tui-interp.c: Include "inferior.h".
7875 * varobj.c (varobj_create): Use inferior_thread.
7876 (value_of_root_1): Use find_thread_global_id instead of
7877 global_thread_id_to_ptid.
7878
33bab475
AH
78792018-06-21 Alan Hayward <alan.hayward@arm.com>
7880
4399bce9
PA
7881 * regcache.c (readable_regcache::read_part): Avoid memcpy when
7882 possible.
7883 (regcache::write_part): Likewise.
7884 (readable_regcache::cooked_read_part): Update comment.
7885 (readable_regcache::cooked_write_part): Likewise.
7886 * regcache.h: (readable_regcache::read_part): Likewise.
7887 (regcache::write_part): Likewise.
33bab475 7888
8363f9d5
RB
78892018-06-21 Richard Bunt <richard.bunt@arm.com>
7890 Dirk Schubert <dirk.schubert@arm.com>
7891
7892 * aarch64-linux-nat.c (post_attach): New.
7893 (aarch64_linux_nat_target::post_attach): Override post_attach to
7894 record the number of hardware debug registers.
7895
0d0b0ea2
TT
78962018-06-20 Tom Tromey <tom@tromey.com>
7897
7898 * python/py-param.c (add_setshow_generic): Make parameters const.
7899 (parmpy_init): Update.
7900
302abd6e
SM
79012018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
7902
7903 * regcache.h (regcache_cooked_read_ftype): Rename to...
7904 (register_read_ftype): ...this, change type to function_view.
7905 (class reg_buffer) <save>: Remove src parameter.
7906 (readonly_detached_regcache) <readonly_detached_regcache>: Make
7907 parameter non-const in first overload. Remove src parameter in
7908 second overload.
7909 * regcache.c (do_cooked_read): Remove.
7910 (readonly_detached_regcache::readonly_detached_regcache): Make
7911 parameter non-const, adjust call to other constructor.
7912 (reg_buffer::save): Remove src parameter.
7913 * frame.c (do_frame_register_read): Remove.
7914 (frame_save_as_regcache): Use lambda function.
7915 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
7916 parameter to ppu2spu_data *.
7917 (ppu2spu_sniffer): Use lambda function.
7918
19f3f25f
SM
79192018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
7920
7921 * record-full.c (record_full_target::insert_breakpoint): Remove
7922 "struct" keyword, add const.
7923
d0ac1c44
SM
79242018-06-19 Simon Marchi <simon.marchi@ericsson.com>
7925
7926 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
7927 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
7928 * configure.ac: Remove AC_PREREQ, add missing quoting.
7929 * gnulib/configure.ac: Modernize usage of
7930 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
7931 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
7932 (AUTOMAKE_VERSION): Bump to 1.15.1.
7933 * configure: Re-generate.
7934 * config.in: Re-generate.
7935 * aclocal.m4: Re-generate.
7936 * gnulib/aclocal.m4: Re-generate.
7937 * gnulib/config.in: Re-generate.
7938 * gnulib/configure: Re-generate.
7939 * gnulib/import/Makefile.in: Re-generate.
7940
6ae50267
PA
79412018-06-19 Pedro Alves <palves@redhat.com>
7942
7943 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
7944 (lookup_minimal_symbol_by_pc_section): ... here with
7945 gdb_assert_not_reached added.
7946
61b04dd0
PA
79472018-06-19 Pedro Alves <palves@redhat.com>
7948
7949 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
7950 parameter with a block parameter. Compare location's block symbol
7951 with the frame's block instead of addresses.
7952 (skip_inline_frames): Pass the current block instead of the
7953 frame's address. Break out as soon as we determine the frame
7954 should not be skipped.
7955
f709fabb
TT
79562018-06-18 Tom Tromey <tom@tromey.com>
7957
7958 * solib-aix.c (solib_aix_get_section_offsets): Return
7959 unique_xmalloc_ptr.
7960 (solib_aix_solib_create_inferior_hook): Update.
7961
668eb2f0
TT
79622018-06-18 Tom Tromey <tom@tromey.com>
7963
7964 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
7965
309822ca
TT
79662018-06-18 Tom Tromey <tom@tromey.com>
7967
7968 * solib-frv.c (frv_relocate_main_executable): Use
7969 unique_xmalloc_ptr.
7970 * solib-dsbt.c (dsbt_relocate_main_executable): Use
7971 unique_xmalloc_ptr.
7972
06424eac
TT
79732018-06-18 Tom Tromey <tom@tromey.com>
7974
7975 * objfiles.h (inhibit_section_map_updates): Update.
7976 (resume_section_map_updates, resume_section_map_updates_cleanup):
7977 Remove.
7978 * solib-svr4.c (svr4_handle_solib_event): Update.
7979 * objfiles.c (inhibit_section_map_updates): Return
7980 scoped_restore_tmpl<int>.
7981 (resume_section_map_updates, resume_section_map_updates_cleanup):
7982 Remove.
7983
b4be9fad
TT
79842018-06-18 Tom Tromey <tom@tromey.com>
7985
7986 * valprint.h (read_string): Update.
7987 * valprint.c (read_string): Change type of "buffer".
7988 (val_print_string): Update.
7989 * python/py-value.c (valpy_string): Update.
7990 * language.h (struct language_defn) <la_get_string>: Change
7991 type of "buffer".
7992 (default_get_string, c_get_string): Update.
7993 * language.c (default_get_string): Change type of "buffer".
7994 * guile/scm-value.c (gdbscm_value_to_string): Update.
7995 * c-lang.c (c_get_string): Change type of "buffer".
7996
3f0dbd67
TT
79972018-06-18 Tom Tromey <tom@tromey.com>
7998
7999 * ser-mingw.c (struct pipe_state_destroyer): New.
8000 (pipe_state_up): New typedef.
8001 (cleanup_pipe_state): Remove.
8002 (pipe_windows_open): Use pipe_state_up. Don't release argv.
8003
69d340c6
TT
80042018-06-18 Tom Tromey <tom@tromey.com>
8005
8006 * rust-lang.h (rust_yyerror): Don't declare.
8007 * rust-lang.c (rust_language_defn): Update.
8008 * rust-exp.y (yyerror): Now static.
8009 * parse.c (parse_exp_in_context_1): Update.
8010 * p-lang.h (p_yyerror): Don't declare.
8011 * p-lang.c (p_language_defn): Update.
8012 * p-exp.y (yyerror): Now static.
8013 * opencl-lang.c (opencl_language_defn): Update.
8014 * objc-lang.c (objc_language_defn): Update.
8015 * m2-lang.h (m2_yyerror): Don't declare.
8016 * m2-lang.c (m2_language_defn): Update.
8017 * m2-exp.y (yyerror): Now static.
8018 * language.h (struct language_defn) <la_error>: Remove.
8019 * language.c (unk_lang_error): Remove.
8020 (unknown_language_defn, auto_language_defn): Remove.
8021 * go-lang.h (go_yyerror): Don't declare.
8022 * go-lang.c (go_language_defn): Update.
8023 * go-exp.y (yyerror): Now static.
8024 * f-lang.h (f_yyerror): Don't declare.
8025 * f-lang.c (f_language_defn): Update.
8026 * f-exp.y (yyerror): Now static.
8027 * d-lang.h (d_yyerror): Don't declare.
8028 * d-lang.c (d_language_defn): Update.
8029 * d-exp.y (yyerror): Now static.
8030 * c-lang.h (c_yyerror): Don't declare.
8031 * c-lang.c (c_language_defn, cplus_language_defn)
8032 (asm_language_defn, minimal_language_defn): Update.
8033 * c-exp.y (yyerror): Now static.
8034 * ada-lang.h (ada_yyerror): Don't declare.
8035 * ada-lang.c (ada_language_defn): Update.
8036 * ada-exp.y (yyerror): Now static.
8037
e9902bfc
AH
80382018-06-18 Alan Hayward <alan.hayward@arm.com>
8039
8040 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
8041 (store_sveregs_to_thread): Likewise.
8042 (aarch64_linux_fetch_inferior_registers): Check for SVE.
8043 (aarch64_linux_store_inferior_registers): Likewise.
8044 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
8045 function.
8046 (aarch64_sve_regs_copy_to_regcache): Likewise.
8047 (aarch64_sve_regs_copy_from_regcache): Likewise.
8048 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
8049 declaration.
8050 (aarch64_sve_regs_copy_to_regcache): Likewise.
8051 (aarch64_sve_regs_copy_from_regcache): Likewise.
8052 (sve_context): Structure from Linux headers.
8053 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
8054 (SVE_SIG_ZREG_SIZE): Likewise.
8055 (SVE_SIG_PREG_SIZE): Likewise.
8056 (SVE_SIG_FFR_SIZE): Likewise.
8057 (SVE_SIG_REGS_OFFSET): Likewise.
8058 (SVE_SIG_ZREGS_OFFSET): Likewise.
8059 (SVE_SIG_ZREG_OFFSET): Likewise.
8060 (SVE_SIG_ZREGS_SIZE): Likewise.
8061 (SVE_SIG_PREGS_OFFSET): Likewise.
8062 (SVE_SIG_PREG_OFFSET): Likewise.
8063 (SVE_SIG_PREGS_SIZE): Likewise.
8064 (SVE_SIG_FFR_OFFSET): Likewise.
8065 (SVE_SIG_REGS_SIZE): Likewise.
8066 (SVE_SIG_CONTEXT_SIZE): Likewise.
8067 (SVE_PT_REGS_MASK): Likewise.
8068 (SVE_PT_REGS_FPSIMD): Likewise.
8069 (SVE_PT_REGS_SVE): Likewise.
8070 (SVE_PT_VL_INHERIT): Likewise.
8071 (SVE_PT_VL_ONEXEC): Likewise.
8072 (SVE_PT_REGS_OFFSET): Likewise.
8073 (SVE_PT_FPSIMD_OFFSET): Likewise.
8074 (SVE_PT_FPSIMD_SIZE): Likewise.
8075 (SVE_PT_SVE_ZREG_SIZE): Likewise.
8076 (SVE_PT_SVE_PREG_SIZE): Likewise.
8077 (SVE_PT_SVE_FFR_SIZE): Likewise.
8078 (SVE_PT_SVE_FPSR_SIZE): Likewise.
8079 (SVE_PT_SVE_FPCR_SIZE): Likewise.
8080 (__SVE_SIG_TO_PT): Likewise.
8081 (SVE_PT_SVE_OFFSET): Likewise.
8082 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
8083 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
8084 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
8085 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
8086 (SVE_PT_SVE_PREG_OFFSET): Likewise.
8087 (SVE_PT_SVE_PREGS_SIZE): Likewise.
8088 (SVE_PT_SVE_FFR_OFFSET): Likewise.
8089 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
8090 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
8091 (SVE_PT_SVE_SIZE): Likewise.
8092 (SVE_PT_SIZE): Likewise.
8093 (HAS_SVE_STATE): New define.
8094
17a1cc89
AH
80952018-06-18 Alan Hayward <alan.hayward@arm.com>
8096
8097 * nat/aarch64-sve-linux-sigcontext.h: New file.
8098 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
8099 new files.
8100 (SVE_VQ_MIN): Likewise.
8101 (SVE_VQ_MAX): Likewise.
8102 (SVE_VL_MIN): Likewise.
8103 (SVE_VL_MAX): Likewise.
8104 (SVE_NUM_ZREGS): Likewise.
8105 (SVE_NUM_PREGS): Likewise.
8106 (sve_vl_valid): Likewise.
8107 (struct user_sve_header): Likewise.
8108
7010835a
AB
81092018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8110 Richard Bunt <Richard.Bunt@arm.com>
8111
8112 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
8113 was requested by GDB.
8114
479b3ef4
TV
81152018-06-15 Tom de Vries <tdevries@suse.de>
8116
8117 * MAINTAINERS (Write After Approval): Add Tom de Vries.
8118
8199b8f4
SM
81192018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
8120
8121 * gnulib/update-gnulib.sh: Print expected versions of
8122 autoconf/aclocal.
8123
55c748a1
SM
81242018-06-14 Simon Marchi <simon.marchi@ericsson.com>
8125
8126 * arch-utils.c (default_type_align): Use type_length_units.
8127 * gdbtypes.c (type_align): Use type_length_units.
8128
87a8eca7
PW
81292018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8130
8131 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
8132 of 'define' command.
8133
5d9a0608
TV
81342018-06-14 Tom de Vries <tdevries@suse.de>
8135
8136 PR cli/22573
8137 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
8138 get_no_prettyformat_print_options.
8139
ab89b5a5
SM
81402018-06-13 Simon Marchi <simon.marchi@ericsson.com>
8141
8142 * sparc-nat.h: Include target.h.
8143 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
8144 <fetch_registers>: Remove this argument in function call.
8145 <store_registers>: Remove this argument in function call, remove
8146 extra semicolon.
8147 <low_forget_process>: Call sparc64_forget_process instead of
8148 sparc_forget_process.
8149
62c808ae
RO
81502018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8151
8152 * procfs.c (_initialize_procfs): Use add_inf_child_target.
8153 (procfs_target::make_corefile_notes): Adjust to new
8154 target_read_alloc return type.
8155
1840d81a
AB
81562018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8157 Stephen Roberts <stephen.roberts@arm.com>
8158
8159 PR gdb/22882
8160 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
8161 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
8162 Move should_notify_stop local into more inner scope.
8163
9516f85a
AB
81642018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8165 Stephen Roberts <stephen.roberts@arm.com>
8166
8167 PR gdb/22882
8168 * infrun.c (resume_1): Add call to mark_async_event_handler.
8169
defd2172
AB
81702018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8171
8172 * infrun.c (do_target_wait): Change old version of $pc printed.
8173
7b23e087
SM
81742018-06-11 Simon Marchi <simon.marchi@ericsson.com>
8175
8176 * dwarf2read.c (read_index_from_section): Rename to...
8177 (read_gdb_index_from_section): ... this, update all callers.
8178 (dwarf2_read_index): Rename to...
8179 (dwarf2_read_gdb_index): ... this, update all callers.
8180
69c67a0b
JDA
81812018-06-11 John David Anglin <danglin@gcc.gnu.org>
8182
4399bce9 8183 * hppa-linux-nat.c
69c67a0b
JDA
8184 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
8185 hppa_linux_nat_target::fetch_registers.
8186
65d4cada
AH
81872018-06-11 Alan Hayward <alan.hayward@arm.com>
8188
8189 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
8190 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
8191 (AARCH64_DWARF_SVE_FFR): Likewise.
8192 (AARCH64_DWARF_SVE_P0): Likewise.
8193 (AARCH64_DWARF_SVE_Z0): Likewise.
8194
f868386e
AH
81952018-06-11 Alan Hayward <alan.hayward@arm.com>
8196
8197 * common/common-regcache.h (raw_compare): New function.
8198 * regcache.c (regcache::raw_compare): Likewise.
8199 * regcache.h (regcache::raw_compare): New declaration.
8200
9c861883
AH
82012018-06-11 Alan Hayward <alan.hayward@arm.com>
8202
8203 * common/common-regcache.h (reg_buffer_common): New structure.
8204 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
8205 (reg_buffer::raw_supply): Likewise.
8206 (reg_buffer::raw_supply_integer): Likewise.
8207 (reg_buffer::raw_supply_zeroed): Likewise.
8208 (reg_buffer::raw_collect): Likewise.
8209 (reg_buffer::raw_collect_integer): Likewise.
8210 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
8211 (reg_buffer::raw_supply): Likewise.
8212 (reg_buffer::raw_supply_integer): Likewise.
8213 (reg_buffer::raw_supply_zeroed): Likewise.
8214 (reg_buffer::raw_collect): Likewise.
8215 (reg_buffer::raw_collect_integer): Likewise.
8216
953edf2b
TT
82172018-06-10 Tom Tromey <tom@tromey.com>
8218
8219 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
8220 (class remote_state) <stop_reply_queue>: Now std::vector.
8221 (remote_state::~remote_state)
8222 (remote_target::stop_reply_queue_length): Update.
8223 (struct queue_iter_param, remove_child_of_pending_fork)
8224 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
8225 (check_pending_event_prevents_wildcard_vcont_callback)
8226 (remove_stop_reply_for_inferior)
8227 (remove_stop_reply_of_remote_state)
8228 (remote_notif_remove_once_on_match)
8229 (stop_reply_match_ptid_and_ws)
8230 (remote_kill_child_of_pending_fork): Remove.
8231 (remote_target::remove_new_fork_children)
8232 (remote_target::check_pending_events_prevent_wildcard_vcont)
8233 (remote_target::discard_pending_stop_replies)
8234 (remote_target::discard_pending_stop_replies_in_queue)
8235 (remote_target::remote_notif_remove_queued_reply)
8236 (remote_target::queued_stop_reply)
8237 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
8238 (remote_target::wait, remote_target::kill_new_fork_children)
8239 (remote_target::async): Update.
8240
1ddbba9d
TT
82412018-06-10 Tom Tromey <tom@tromey.com>
8242
8243 * record-full.c (record_full_arch_list_cleanups): Remove.
8244 (record_full_message): Use try/catch.
8245 (record_full_wait_cleanups): Remove.
8246 (record_full_wait_1): Use try/catch.
8247 (record_full_restore): Likewise.
8248
219605fd
TT
82492018-06-10 Tom Tromey <tom@tromey.com>
8250
8251 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
8252 declare VEC. Add constructor.
8253 <in_target_beneath>: Now bool.
8254 (record_full_breakpoints): Now a std::vector, static.
8255 (record_full_sync_record_breakpoints)
8256 (record_full_init_record_breakpoints)
8257 (record_full_target::insert_breakpoint)
8258 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
8259
71b73764
SM
82602018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8261
8262 * dwarf2read.c (process_cu_includes): Remove struct keyword.
8263 * serial.c (serial_interface_lookup): Remove struct keyword.
8264
4360561f
TT
82652018-06-10 Tom Tromey <tom@tromey.com>
8266
8267 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
8268 method.
8269 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
8270 a method.
8271 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
8272 method.
8273 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
8274 "beneath" as a method.
8275 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
8276 Use "beneath" as a method.
8277
d14b92bf
TT
82782018-06-10 Tom Tromey <tom@tromey.com>
8279
8280 * tracefile.c (struct trace_file_writer_deleter): New.
8281 <operator()>: Rename from trace_file_writer_xfree.
8282 (trace_file_writer_up): New typedef.
8283 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
8284
835dcf92
SM
82852018-06-09 Simon Marchi <simon.marchi@ericsson.com>
8286
8287 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
8288 <m_registers, m_register_status>: Change type to
8289 std::unique_ptr.
8290 * regcache.c (reg_buffer::reg_buffer): Use new instead of
8291 XCNEWVEC.
8292
aac0d564
SM
82932018-06-09 Simon Marchi <simon.marchi@ericsson.com>
8294
8295 * common/common-regcache.h (enum register_status): Add
8296 underlying type "signed char".
8297 * regcache.h (reg_buffer) <m_register_status>: Change type to
8298 register_status *.
8299 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
8300 register_status instead of signed char.
8301 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
8302 (reg_buffer::get_register_status): Remove cast.
8303 (readable_regcache::raw_read): Remove cast.
8304 (readable_regcache::cooked_read): Remove cast.
8305
77ad7394
TT
83062018-06-09 Tom Tromey <tom@tromey.com>
8307
8308 * source.c (reverse_search_command, forward_search_command): Use
8309 scoped_fd.
8310
191cca63
TT
83112018-06-09 Tom Tromey <tom@tromey.com>
8312
8313 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
8314 (serial_ops_list): Now static, std::vector.
8315 (serial_interface_lookup, serial_add_interface): Update.
8316
c5d0225d
TT
83172018-06-09 Tom Tromey <tom@tromey.com>
8318
8319 * dwarf2read.c (process_cu_includes): Update.
8320 (process_full_comp_unit): Update.
8321 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
8322 std::vector.
8323
aeab5128
PK
83242018-06-08 Paul Koning <paul_koning@dell.com>
8325
8326 PR gdb/23252
8327
8328 * python/python.c (do_start_initialization):
8329 Avoid call to internal Python API.
8330 (init__gdb_module): New function.
8331
5045b3d7
GB
83322018-06-08 Gary Benson <gbenson@redhat.com>
8333
8334 * linux-thread-db.c (valprint.h): New include.
8335 (struct check_thread_db_info): New structure.
8336 (check_thread_db_on_load, tdb_testinfo): New static globals.
8337 (check_thread_db, check_thread_db_callback): New functions.
8338 (try_thread_db_load_1): Run integrity checks if requested.
8339 (maintenance_check_libthread_db): New function.
8340 (_initialize_thread_db): Register "maint check libthread-db"
8341 and "maint set/show check-libthread-db".
8342 * NEWS: Mention the above new commands.
8343
2f4f025f
TT
83442018-06-08 Tom Tromey <tom@tromey.com>
8345
8346 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
8347 now a method.
8348
343b0027
TT
83492018-06-08 Tom Tromey <tom@tromey.com>
8350
8351 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
8352
8dcc53b3
TT
83532018-06-08 Tom Tromey <tom@tromey.com>
8354
8355 * common/btrace-common.h (struct btrace_data): Add constructor,
8356 destructor, move assignment operator.
8357 <empty, clear, fini>: New methods.
8358 <format>: Initialize.
8359 (btrace_data_init, btrace_data_fini, btrace_data_clear)
8360 (btrace_data_empty): Don't declare.
8361 * common/btrace-common.c (btrace_data_init): Remove.
8362 (btrace_data::fini): Rename from btrace_data_fini.
8363 (btrace_data::empty): Rename from btrace_data_empty.
8364 (btrace_data::clear): Rename from btrace_data_clear. Return
8365 bool.
8366 * btrace.h (make_cleanup_btrace_data): Don't declare.
8367 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
8368 (parse_xml_btrace): Update.
8369 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
8370 (maint_btrace_clear_packet_history_cmd): Update.
8371
a1740ee1
PA
83722018-06-07 Pedro Alves <palves@redhat.com>
8373
8374 * target.h (target_ops) <beneath>: Now a method. All references
8375 updated.
8376 (class target_stack): New.
8377 * target.c (g_target_stack): New.
8378 (g_current_top_target): Delete.
8379 (current_top_target): Get the top target out of g_target_stack.
8380 (target_stack::push, target_stack::unpush): New.
8381 (push_target, unpush_target): Reimplement.
8382 (target_is_pushed): Reimplement in terms of g_target_stack.
8383 (target_ops::beneath, target_stack::find_beneath): New.
8384
d6ca69cd
PA
83852018-06-07 Pedro Alves <palves@redhat.com>
8386
8387 * target.h (find_target_beneath): Delete declaration.
8388 * target.c (find_target_beneath): Delete definition.
8389 * aix-thread.c: All callers of find_target_beneath adjusted to
8390 call target_ops::beneath instead.
8391 * bsd-uthread.c: Likewise.
8392 * linux-thread-db.c: Likewise.
8393 * ravenscar-thread.c: Likewise.
8394 * sol-thread.c: Likewise.
8395 * spu-multiarch.c: Likewise.
8396
b6a8c27b
PA
83972018-06-07 Pedro Alves <palves@redhat.com>
8398
8399 * target.h (target_ops) <beneath>: Now a method. All references
8400 updated.
8401 (target_ops) <m_beneath>: New.
8402 * target.c (target_ops::beneath): New.
8403 * corelow.c: Adjust all references to target_ops::beneath.
8404 * linux-thread-db.c: Likewise.
8405 * make-target-delegates: Likewise.
8406 * record-btrace.c: Likewise.
8407 * record-full.c: Likewise.
8408 * remote.c: Likewise.
8409 * target.c: Likewise.
8410 * target-delegates.c: Regenerate.
8411
8b88a78e
PA
84122018-06-07 Pedro Alves <palves@redhat.com>
8413
8414 * target.h (target_stack): Delete.
8415 (current_top_target): Declare function.
8416 * target.c (target_stack): Delete.
8417 (g_current_top_target): New.
8418 (current_top_target): New function.
8419 * auxv.c: Use current_top_target instead of target_stack
8420 throughout.
8421 * avr-tdep.c: Likewise.
8422 * breakpoint.c: Likewise.
8423 * corefile.c: Likewise.
8424 * elfread.c: Likewise.
8425 * eval.c: Likewise.
8426 * exceptions.c: Likewise.
8427 * frame.c: Likewise.
8428 * gdbarch-selftests.c: Likewise.
8429 * gnu-v3-abi.c: Likewise.
8430 * ia64-tdep.c: Likewise.
8431 * ia64-vms-tdep.c: Likewise.
8432 * infcall.c: Likewise.
8433 * infcmd.c: Likewise.
8434 * infrun.c: Likewise.
8435 * linespec.c: Likewise.
8436 * linux-tdep.c: Likewise.
8437 * minsyms.c: Likewise.
8438 * ppc-linux-nat.c: Likewise.
8439 * ppc-linux-tdep.c: Likewise.
8440 * procfs.c: Likewise.
8441 * regcache.c: Likewise.
8442 * remote.c: Likewise.
8443 * rs6000-tdep.c: Likewise.
8444 * s390-linux-nat.c: Likewise.
8445 * s390-tdep.c: Likewise.
8446 * solib-aix.c: Likewise.
8447 * solib-darwin.c: Likewise.
8448 * solib-dsbt.c: Likewise.
8449 * solib-spu.c: Likewise.
8450 * solib-svr4.c: Likewise.
8451 * solib-target.c: Likewise.
8452 * sparc-tdep.c: Likewise.
8453 * sparc64-tdep.c: Likewise.
8454 * spu-tdep.c: Likewise.
8455 * symfile.c: Likewise.
8456 * symtab.c: Likewise.
8457 * target-descriptions.c: Likewise.
8458 * target-memory.c: Likewise.
8459 * target.c: Likewise.
8460 * target.h: Likewise.
8461 * tracefile-tfile.c: Likewise.
8462 * tracepoint.c: Likewise.
8463 * valops.c: Likewise.
8464 * valprint.c: Likewise.
8465 * value.c: Likewise.
8466 * windows-tdep.c: Likewise.
8467 * mi/mi-main.c: Likewise.
8468
c7110220
TT
84692018-06-07 Tom Tromey <tom@tromey.com>
8470
8471 * valprint.h (build_address_symbolic): Declare.
8472 * printcmd.c (print_address_symbolic): Update.
8473 (build_address_symbolic): Change "name" and "filename" to
8474 std::string.
8475 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
8476 Update.
8477 * defs.h (build_address_symbolic): Remove declaration.
8478
63bad7b6
AH
84792018-06-07 Alan Hayward <alan.hayward@arm.com>
8480
8481 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
8482 (aarch64_vnv_type): Add function.
8483 (aarch64_pseudo_register_name): Add V regs for SVE.
8484 (aarch64_pseudo_register_type): Likewise.
8485 (aarch64_pseudo_register_reggroup_p): Likewise.
8486 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
8487 (aarch64_pseudo_read_value): Add V regs for SVE.
8488 (aarch64_pseudo_write_2): Use V0 offset for SVE
8489 (aarch64_pseudo_write): Add V regs for SVE.
8490 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
8491
13e3c608
SDJ
84922018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
8493
8494 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
8495 (sve_vl_from_vq): Likewise.
8496
c61b06a1
TT
84972018-06-05 Tom Tromey <tom@tromey.com>
8498
8499 * cli/cli-cmds.c (show_version): Update.
8500 * top.c (print_gdb_version): Add "interactive" parameter.
8501 Update.
8502 * main.c (captured_main_1): Update.
8503 * top.h (print_gdb_version): Add "interactive" parameter and a
8504 comment.
8505
115f7325
DM
85062018-06-05 David Malcolm <dmalcolm@redhat.com>
8507
8508 * common/enum-flags.h: Add trailing semicolon to example in
8509 comment.
8510
eb6af809
TT
85112018-06-05 Tom Tromey <tom@tromey.com>
8512
8513 PR cli/12326:
8514 * NEWS: Add entry about pager.
8515 * utils.c (pagination_disabled_for_command): New global.
8516 (prompt_for_continue): Allow "c" response to prompt.
8517 (reinitialize_more_filter): Clear
8518 pagination_disabled_for_command.
8519 (fputs_maybe_filtered): Check pagination_disabled_for_command.
8520
54d343a2
TT
85212018-06-04 Tom Tromey <tom@tromey.com>
8522
8523 * ada-lang.h (ada_lookup_symbol_list): Update.
8524 * ada-lang.c (resolve_subexp): Update.
8525 (symbols_are_identical_enums): Change type of syms. Remove nsyms
8526 parameter.
8527 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
8528 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
8529 results parameter to std::vector.
8530 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
8531 Update.
8532 * ada-exp.y (block_lookup): Update.
8533 (select_possible_type_sym): Change type of syms. Remove nsyms
8534 parameter.
8535 (write_var_or_type, write_name_assoc): Update.
8536
178d6a63
JB
85372018-06-04 Joel Brobecker <brobecker@adacore.com>
8538
8539 * windows-nat.c (windows_nat_target::xfer_partial): Return
8540 TARGET_XFER_E_IO if we need to delegate to the target beneath
8541 but BENEATH is NULL.
8542
baf00c2d
SM
85432018-06-04 Simon Marchi <simon.marchi@ericsson.com>
8544
8545 * Makefile.in (config.status): Add configure.nat as a
8546 dependency.
8547
214b073c
TT
85482018-06-04 Tom Tromey <tom@tromey.com>
8549
8550 * cp-name-parser.y (cpname_state): Add method declarations.
8551 (HANDLE_QUAL): Update.
8552 (cpname_state::d_grab, cpname_state::fill_comp)
8553 (cpname_state::make_operator, cpname_state::make_dtor)
8554 (cpname_state::make_builtin_type, cpname_state::make_name)
8555 (cpname_state::d_qualify, cpname_state::d_int_type)
8556 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
8557 (%union): Move earlier.
8558
62b74cb8
AH
85592018-06-04 Alan Hayward <alan.hayward@arm.com>
8560
8561 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
8562
3c5cd5c3
AH
85632018-06-04 Alan Hayward <alan.hayward@arm.com>
8564
8565 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
8566 (aarch64_pseudo_write_1): Likewise.
8567 (aarch64_pseudo_read_value): Use helper.
8568 (aarch64_pseudo_write): Likewise.
8569
59f413d5
PA
85702018-06-04 Pedro Alves <palves@redhat.com>
8571
8572 * darwin-nat.c (darwin_ops): Delete.
8573 (darwin_attach_pid): Use get_native_target.
8574
1332a140
AH
85752018-06-04 Alan Hayward <alan.hayward@arm.com>
8576
8577 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
8578 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
8579
ba2d2bb2
AH
85802018-06-04 Alan Hayward <alan.hayward@arm.com>
8581
8582 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
8583 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
8584 (aarch64_gdbarch_init): Check for SVE.
8585 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
8586
85872018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
8588
8589 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
8590 * aarch64-tdep.h (aarch64_read_description): Likewise.
8591 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8592 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8593 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
8594 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
8595 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
8596
41c60b4b
SM
85972018-06-02 Simon Marchi <simon.marchi@ericsson.com>
8598
8599 * value.c (value_fetch_lazy_bitfield): New.
8600 (value_fetch_lazy_memory): New.
8601 (value_fetch_lazy_register): New.
8602 (value_fetch_lazy): Factor out to smaller functions.
8603
7b640f72
TT
86042018-06-01 Tom Tromey <tom@tromey.com>
8605
8606 * cp-name-parser.y (backslashable, represented): Now const.
8607
98e69eb3
TT
86082018-06-01 Tom Tromey <tom@tromey.com>
8609
8610 * cp-name-parser.y: Include parser-defs.h.
8611 (parser_fprintf): Remove declaration.
8612
49265499
TT
86132018-06-01 Tom Tromey <tom@tromey.com>
8614
8615 * cp-name-parser.y: Use %pure-parser, %lex-param, and
8616 %parse-param.
8617 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
8618 (global_result): Remove globals.
8619 (struct cpname_state): New.
8620 (yyparse): Don't declare.
8621 (yylex, yyerror): Move declarations after %union.
8622 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
8623 (make_name): Add state parameter.
8624 Update all callers.
8625 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
8626 parameter.
8627 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
8628 Update.
8629 (yylex): Add lvalp, state parameters.
8630 (yyerror): Add state parameter.
8631 (cp_demangled_name_to_comp): Update.
8632
55b6c984
TT
86332018-06-01 Tom Tromey <tom@tromey.com>
8634
8635 * cp-name-parser.y (parser_fprintf): Declare.
8636 (GDB_YY_REMAP_PREFIX): Define.
8637 Include yy-remap.h. Don't redefine yy* identifiers.
8638
3513a6bb
TT
86392018-06-01 Tom Tromey <tom@tromey.com>
8640
8641 * python/py-type.c (typy_legacy_template_argument): Update.
8642 * cp-support.h (cp_demangled_name_to_comp): Update.
8643 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
8644 parameter to be a "std::string *".
8645 (main): Update.
8646
e9cb46ab
L
86472018-06-01 H.J. Lu <hongjiu.lu@intel.com>
8648
8649 * ada-lex.l: Include "diagnostics.h" instead of
8650 "common/diagnostics.h".
8651 * unittests/environ-selftests.c: Likewise.
8652 * common/diagnostics.h: Moved to ../include.
8653
8e817061
JB
86542018-06-01 Joel Brobecker <brobecker@adacore.com>
8655
8656 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
8657 to language_mode_manual while calling breakpoint_re_set_one.
8658
a737d952
TT
86592018-06-01 Tom Tromey <tom@tromey.com>
8660
8661 * valops.c (value_cast_structs, destructor_name_p): Update.
8662 * symtab.c (gdb_mangle_name): Update.
8663 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
8664 Update.
8665 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
8666 (pascal_object_print_value_fields, pascal_object_print_value):
8667 Update.
8668 * p-typeprint.c (pascal_type_print_derivation_info): Update.
8669 * linespec.c (find_methods): Update.
8670 * gdbtypes.h (type_name_no_tag): Remove.
8671 (type_name_or_error): Rename from type_name_no_tag_or_error.
8672 * gdbtypes.c (type_name_no_tag): Remove.
8673 (type_name_or_error): Rename from type_name_no_tag_or_error.
8674 (lookup_struct_elt_type, check_typedef): Update.
8675 * expprint.c (print_subexp_standard): Update.
8676 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
8677 * d-namespace.c (d_lookup_nested_symbol): Update.
8678 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
8679 (cp_print_class_member): Update.
8680 * cp-namespace.c (cp_lookup_nested_symbol): Update.
8681 * completer.c (add_struct_fields): Update.
8682 * c-typeprint.c (cp_type_print_derivation_info)
8683 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
8684 Update.
8685 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
8686 (ada_prefer_type, ada_is_exception_sym): Update.
8687
e86ca25f
TT
86882018-06-01 Tom Tromey <tom@tromey.com>
8689
8690 * valops.c (enum_constant_from_type, value_namespace_elt)
8691 (value_maybe_namespace_elt): Update.
8692 * valarith.c (find_size_for_pointer_math): Update.
8693 * target-descriptions.c (make_gdb_type): Update.
8694 * symmisc.c (print_symbol): Update.
8695 * stabsread.c (define_symbol, read_type)
8696 (complain_about_struct_wipeout, add_undefined_type)
8697 (cleanup_undefined_types_1): Update.
8698 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
8699 (rust_range_type_p, val_print_struct, rust_print_struct_def)
8700 (rust_internal_print_type, rust_composite_type)
8701 (rust_evaluate_funcall, rust_evaluate_subexp)
8702 (rust_inclusive_range_type_p): Update.
8703 * python/py-type.c (typy_get_tag): Update.
8704 * p-typeprint.c (pascal_type_print_base): Update.
8705 * mdebugread.c (parse_symbol, parse_type): Update.
8706 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
8707 Update.
8708 * guile/scm-type.c (gdbscm_type_tag): Update.
8709 * go-lang.c (sixg_string_p): Update.
8710 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
8711 Update.
8712 * gdbtypes.h (struct main_type) <tag_name>: Remove.
8713 (TYPE_TAG_NAME): Remove.
8714 * gdbtypes.c (type_name_no_tag): Simplify.
8715 (check_typedef, check_types_equal, recursive_dump_type)
8716 (copy_type_recursive, arch_composite_type): Update.
8717 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
8718 in summary mode when needed.
8719 * eval.c (evaluate_funcall): Update.
8720 * dwarf2read.c (fixup_go_packaging, read_structure_type)
8721 (process_structure_scope, read_enumeration_type)
8722 (read_namespace_type, read_module_type, determine_prefix): Update.
8723 * cp-support.c (inspect_type): Update.
8724 * coffread.c (process_coff_symbol, decode_base_type): Update.
8725 * c-varobj.c (c_is_path_expr_parent): Update.
8726 * c-typeprint.c (c_type_print_base_struct_union): Update.
8727 (c_type_print_base_1): Update. Print struct/class/union/enum in
8728 summary when using C language.
8729 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
8730 (gen_maybe_namespace_elt): Update.
8731 * ada-lang.c (ada_type_name): Simplify.
8732 (empty_record, ada_template_to_fixed_record_type_1)
8733 (template_to_static_fixed_type)
8734 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
8735
c1ec8cea
TT
87362018-06-01 Tom Tromey <tom@tromey.com>
8737
8738 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
8739 c_print_type.
8740 * c-typeprint.c (c_print_type_1): Add "language" parameter.
8741 (c_print_type): Update.
8742 (c_print_type): New overload.
8743 (c_type_print_varspec_prefix, c_type_print_args)
8744 (c_type_print_varspec_suffix, c_print_type_no_offsets)
8745 (c_type_print_base_struct_union, c_type_print_base_1)
8746 (cp_type_print_method_args): Add "language" parameter.
8747 (c_type_print_base): Update.
8748 * c-lang.h (c_print_type): Add new overload.
8749
bc8453a7
TT
87502018-06-01 Tom Tromey <tom@tromey.com>
8751
8752 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
8753 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
8754
739e8682
AH
87552018-06-01 Alan Hayward <alan.hayward@arm.com>
8756
8757 * aarch64-tdep.c (aarch64_sve_register_names): New const
8758 var.
8759 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
8760 (AARCH64_SVE_Z_REGS_NUM): New define.
8761 (AARCH64_SVE_P_REGS_NUM): Likewise.
8762 (AARCH64_SVE_NUM_REGS): Likewise.
8763
8a60efe7
UB
87642018-05-31 Uros Bizjak <ubizjak@gmail.com>
8765
8766 * nat/linux-ptrace.h [__alpha__]
8767 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
8768 definitions.
8769
4b2dfa9d
MR
87702018-05-31 Maciej W. Rozycki <macro@mips.com>
8771
8772 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
8773 the endianness selected.
8774 * NEWS: Document `set endian auto' mode operation update.
8775
122394f1
AH
87762018-05-31 Alan Hayward <alan.hayward@arm.com>
8777
8778 * Makefile.in: Add new header.
8779 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
8780 (sve_vl_from_vg): Likewise.
8781 (sve_vq_from_vl): Likewise.
8782 (sve_vl_from_vq): Likewise.
8783 (sve_vq_from_vg): Likewise.
8784 (sve_vg_from_vq): Likewise.
8785 * configure.nat: Add new c file.
8786 * nat/aarch64-sve-linux-ptrace.c: New file.
8787 * nat/aarch64-sve-linux-ptrace.h: New file.
8788
95228a0d
AH
87892018-05-31 Alan Hayward <alan.hayward@arm.com>
8790
8791 * aarch64-linux-nat.c (aarch64_linux_read_description):
8792 Add parmeter zero.
8793 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8794 Likewise.
8795 * aarch64-tdep.c (tdesc_aarch64_list): Add.
8796 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
8797 (aarch64_gdbarch_init): Add parmeter zero.
8798 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
8799 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
8800 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
8801 parmeter.
8802 * doc/gdb.texinfo: Describe SVE feature
8803 * features/aarch64-sve.c: New file.
8804
5969f0db
OJ
88052018-05-31 Omair Javaid <omair.javaid@linaro.org>
8806
8807 PR gdb/23210
8808 * gdbarch.sh (significant_addr_bit): Default to zero when
8809 not set by target architecture.
8810 * gdbarch.c: Re-generated.
8811 * utils.c (address_significant): Update.
8812
61367c61
JB
88132018-05-30 Joel Brobecker <brobecker@adacore.com>
8814
8815 * stack.c (func_command): Remove trailing newline in call to error.
8816
34a79281
SM
88172018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8818
8819 * regcache.h (regcache_raw_collect): Remove, update callers to
8820 use regcache::raw_collect.
8821 * regcache.c (regcache_raw_collect): Remove.
8822
73e1c03f
SM
88232018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8824
8825 * regcache.h (regcache_raw_supply): Remove, update callers to
8826 use detached_regcache::raw_supply.
8827 * regcache.c (regcache_raw_supply): Remove.
8828
e4c4a59b
SM
88292018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8830
8831 * regcache.h (regcache_cooked_write_part): Remove, update
8832 callers to use regcache::cooked_write_part.
8833 * regcache.c (regcache_cooked_write_part): Remove.
8834
73bb0000
SM
88352018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8836
8837 * regcache.h (regcache_cooked_read_part): Remove, update callers
8838 to use readable_regcache::cooked_read_part.
8839 * regcache.c (regcache_cooked_read_part): Remove.
8840
46a45e9d
SM
88412018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8842
8843 * regcache.h (regcache_cooked_read_value): Remove, update
8844 callers to use readable_regcache::cooked_read_value.
8845 * regcache.c (regcache_cooked_read_value): Remove.
8846
b66f5587
SM
88472018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8848
8849 * regcache.h (regcache_cooked_write): Remove, update callers to
8850 use regcache::cooked_write.
8851 * regcache.c (regcache_cooked_write): Remove.
8852
6aa7d724
SM
88532018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8854
8855 * regcache.h (regcache_invalidate): Remove, update callers to
8856 use detached_regcache::invalidate instead.
8857 * regcache.c (regcache_invalidate): Remove.
8858
4f0420fd
SM
88592018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8860
8861 * regcache.h (regcache_raw_write_part): Remove, update callers
8862 to use regcache::raw_write_part instead.
8863 * regcache.c (regcache_raw_write_part): Remove.
8864
502fe83e
SM
88652018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8866
8867 * regcache.h (regcache_raw_read_part): Remove, update callers to
8868 use readable_regcache::raw_read_part instead.
8869 * regcache.c (regcache_raw_read_part): Remove.
8870
dca08e1f
SM
88712018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8872
8873 * regcache.h (regcache_cooked_read): Remove, update callers to
8874 use readable_regcache::cooked_read instead.
8875 * regcache.c (regcache_cooked_read): Remove.
8876
10eaee5f
SM
88772018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8878
8879 * regcache.h (regcache_raw_write): Remove, update callers to use
8880 regcache::raw_write instead.
8881 * regcache.c (regcache_raw_write): Remove.
8882
0b883586
SM
88832018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8884
8885 * regcache.h (regcache_raw_read): Remove, update callers to use
8886 readable_regcache::raw_read instead.
8887 * regcache.c (regcache_raw_read): Remove.
8888
0b47d985
SM
88892018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8890
8891 * regcache.h (regcache_raw_update): Remove, update callers to
8892 use readable_regcache::raw_update instead.
8893 * regcache.c (regcache_raw_update): Remove.
8894
0ec9f114
SM
88952018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8896
8897 * regcache.h (regcache_register_status): Remove, update callers
8898 to use reg_buffer::get_register_status directly instead.
8899 * regcache.c (regcache_register_status): Remove.
8900
222312d3
SM
89012018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8902
8903 * regcache.h (regcache_get_ptid): Remove, update all callers to
8904 call regcache::ptid instead.
8905 * regcache.c (regcache_get_ptid): Remove.
8906
fdbe37e3
SM
89072018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8908
8909 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
8910
f7c6f423
PA
89112018-05-30 Pedro Alves <palves@redhat.com>
8912
8913 * common/common-exceptions.h (exception_rethrow): Use
8914 ATTRIBUTE_NORETURN.
8915
52941706
SM
89162018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
8917
8918 * breakpoint.c (print_solib_event, check_status_catch_solib):
8919 Remove struct keyword in range-based for loops.
8920 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
8921 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
8922 Likewise.
8923 * linespec.c (find_superclass_methods, search_minsyms_for_name):
8924 Likewise.
8925 * symfile.c (addr_info_make_relative): Likewise.
8926 * thread.c (value_in_thread_stack_temporaries): Likewise.
8927
bf2977b5
WP
89282018-06-12 Weimin Pan <weimin.pan@oracle.com>
8929
8930 PR gdb/16841
8931 * valops.c (value_struct_elt_for_reference): Call check_typedef on
8932 aggregate type to get its real type before accessing it.
8933
64cc34d8
WP
89342018-05-29 Weimin Pan <weimin.pan@oracle.com>
8935
8936 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
8937 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
8938 * coff-pe-read.c (add_pe_forwarded_sym): Replace
8939 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
8940 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
8941 * jit.c (jit_breakpoint_re_set_internal): Likewise.
8942 * printcmd.c (info_address_command): Likewise.
8943
e7ec8713
TT
89442018-05-29 Tom Tromey <tom@tromey.com>
8945
8946 * windows-nat.c (handle_exception): Update fall-through comment.
8947
bcb430e4
TT
89482018-05-29 Tom Tromey <tom@tromey.com>
8949
8950 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
8951 (struct program_space) <added_solibs>: Now a std::vector.
8952 * breakpoint.c (print_solib_event): Update.
8953 (check_status_catch_solib): Update.
8954 * progspace.c (clear_program_space_solib_cache): Update.
8955 * solib.c (update_solib_list): Update.
8956
894882e3
TT
89572018-05-29 Tom Tromey <tom@tromey.com>
8958
8959 * python/py-type.c (typy_richcompare): Update.
8960 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
8961 * gdbtypes.h (types_deeply_equal): Return bool.
8962 (types_equal): Likewise.
8963 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
8964 declare VEC.
8965 (check_types_equal): Change worklist to std::vector. Return
8966 bool.
8967 (struct type_equality_entry): Add constructor.
8968 (compare_maybe_null_strings): Return bool.
8969 (check_types_worklist): Return bool. Change worklist to
8970 std::vector.
8971 (types_deeply_equal): Use std::vector.
8972 (types_equal): Return bool.
8973 (compare_maybe_null_strings): Simplify.
8974
10b2ded4
TT
89752018-05-29 Tom Tromey <tom@tromey.com>
8976
8977 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
8978
4f7deebe
TT
89792018-05-29 Tom Tromey <tom@tromey.com>
8980
8981 * objc-lang.h: Don't include cp-support.h.
8982 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
8983 declare VEC.
8984
b8283aea
TT
89852018-05-27 Tom Tromey <tom@tromey.com>
8986
8987 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
8988
41a883c8
TT
89892018-05-25 Tom Tromey <tom@tromey.com>
8990
8991 * value.c (value::location): Initialize.
8992
bf259e25
TT
89932018-05-25 Tom Tromey <tom@tromey.com>
8994
8995 * dbxread.c (init_bincl_list): Remove.
8996 (bincl_list): Now a std::vector.
8997 (bincls_allocated, next_bincl): Remove.
8998 (free_bincl_list, do_free_bincl_list_cleanup)
8999 (make_cleanup_free_bincl_list): Remove.
9000 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
9001 unique_xmalloc_ptr.
9002 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
9003 (struct header_file_location): Add constructor.
9004 (add_bincl_to_list): Remove.
9005
d525a99b
TT
90062018-05-25 Tom Tromey <tom@tromey.com>
9007
9008 * tui/tui.c (tui_enable): Update.
9009 * mi/mi-interp.c (mi_interp::init): Update.
9010 * interps.h (class interp) <name>: New method.
9011 <m_name>: Rename from name.
9012 (~scoped_restore_interp): Update.
9013 * interps.c (interp::interp): Update.
9014 (interp_add, interp_set, interp_lookup_existing)
9015 (current_interp_named_p): Update.
9016
da505cff
TT
90172018-05-25 Tom Tromey <tom@tromey.com>
9018
9019 * interps.c (interp_name): Remove.
9020 * mi/mi-interp.c (mi_interp::init): Update.
9021 * interps.h (interp_name): Remove.
9022 (~scoped_restore_interp): Update.
9023 * tui/tui.c (tui_enable): Update.
9024
29f94340
TT
90252018-05-25 Tom Tromey <tom@tromey.com>
9026
9027 * utils.c (fputs_maybe_filtered): Update.
9028 * linespec.c (decode_line_full): Update.
9029 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
9030 (mi_print_breakpoint_for_event, mi_solib_loaded)
9031 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
9032 (mi_user_selected_context_changed): Update.
9033 * mi/mi-main.c (mi_execute_command): Update.
9034 * cli/cli-script.c (execute_control_command): Update.
9035 * python/python.c (execute_gdb_command): Update.
9036 * solib.c (info_sharedlibrary_command): Update.
9037 * interps.c (interp_ui_out): Remove.
9038 * interps.h (interp_ui_out): Remove.
9039
716b8bc5
TT
90402018-05-25 Tom Tromey <tom@tromey.com>
9041
9042 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
9043 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
9044 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
9045
753ff9bd
TT
90462018-05-25 Tom Tromey <tom@tromey.com>
9047
9048 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
9049 * interps.c (interp_exec): Use scoped_restore.
9050
5ca3b260
TT
90512018-05-25 Tom Tromey <tom@tromey.com>
9052
9053 * remote.c (remote_target::remote_file_get): Use
9054 gdb::byte_vector.
9055 (remote_target::remote_file_put): Likewise.
9056
3173aa2f
TT
90572018-05-25 Tom Tromey <tom@tromey.com>
9058
9059 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
9060 a std::string.
9061 (get_pe_section_index, add_pe_exported_sym): Update.
9062 (read_pe_exported_syms): Use gdb::def_vector.
9063
09a5e1b5
TT
90642018-05-25 Tom Tromey <tom@tromey.com>
9065
9066 * frame.c (remove_prev_frame): Remove.
9067 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
9068
d8dab6c3
MR
90692018-05-25 Maciej W. Rozycki <macro@mips.com>
9070
9071 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
9072 Remove prototypes.
9073 * mips-linux-nat.c (supply_fpregset): Always call
9074 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
9075 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
9076 `mips_fill_fpregset'.
9077 * mips-linux-tdep.c (mips_supply_fpregset)
9078 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
9079 (mips_fill_fpregset_wrapper): Remove functions.
9080 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
9081 (mips_linux_fpregset): Remove variable.
9082 (mips_linux_iterate_over_regset_sections): Use
9083 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
9084 (mips_linux_o32_sigframe_init): Remove comment.
9085
3c69da40
PA
90862018-05-25 Pedro Alves <palves@redhat.com>
9087
9088 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
9089 (struct readahead_cache, struct packet_reg, struct
9090 remote_arch_state, class remote_state): Move higher up in the
9091 file.
9092 (remote_target::m_remote_state): Now an object instead of a pointer.
9093 (remote_target::get_remote_state): Adjust.
9094
39f0c204
AB
90952018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
9096
9097 * stack.c (select_and_print_frame): Delete.
9098 (struct function_bounds): Move struct within function.
9099 (func_command): Most content moved into new function
9100 find_frame_for_function, use new function, print result, add
9101 function comment.
9102 (find_frame_for_function): New function, now returns a result.
9103
d392224a
PW
91042018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9105
9106 * stack.c (iterate_over_block_arg_vars): Fix comment.
9107 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
9108
45f25d6c
AB
91092018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
9110
9111 PR gdb/23203
9112 * frame.c
9113 (scoped_restore_selected_frame::scoped_restore_selected_frame):
9114 Define.
9115 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
9116 Define.
9117 * frame.h (class scoped_restore_selected_frame): New class.
9118 * stack.c (print_frame_local_vars): Remove catching and rethrowing
9119 of any exception, use scoped_restore_selected_frame to restore the
9120 frame instead.
9121
da05d921
PA
91222018-05-24 Pedro Alves <palves@redhat.com>
9123
9124 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
9125 override.
9126
a8be540e
TT
91272018-05-23 Tom Tromey <tom@tromey.com>
9128
9129 * complaints.c (struct complaints): Remove.
9130 (symfile_complaint_book): Remove.
9131 (series): New global.
9132 (complaint_internal): Update.
9133 (clear_complaints): Update.
9134
ff1cf532
TT
91352018-05-23 Tom Tromey <tom@tromey.com>
9136
9137 * complaints.c (counters): New global.
9138 (struct complain): Remove.
9139 (struct complaints) <root>: Remove.
9140 (complaint_sentinel): Remove.
9141 (symfile_complaint_book): Update.
9142 (find_complaint) Remove.
9143 (complaint_internal, clear_complaints): Update.
9144
7ff88174
TT
91452018-05-23 Tom Tromey <tom@tromey.com>
9146
9147 * complaints.c (struct complain) <file, line>: Remove.
9148 (find_complaint): Remove file, line parameters.
9149 (complaint_internal): Update.
9150
de54e1a5
TT
91512018-05-23 Tom Tromey <tom@tromey.com>
9152
9153 * complaints.c (vcomplaint): Remove.
9154 (complaint_internal) Merge in contents of vcomplaint.
9155
2ac237e5
TT
91562018-05-23 Tom Tromey <tom@tromey.com>
9157
9158 * complaints.c (struct complaints) <explanation>: Remove.
9159 (symfile_explanations): Remove.
9160 (symfile_complaint_book): Update.
9161 (vcomplaint): Update.
9162 (struct explanation): Remove.
9163
b98664d3
TT
91642018-05-23 Tom Tromey <tom@tromey.com>
9165
9166 * complaints.c (symfile_complaints): Remove.
9167 (complaint_internal): Remove "complaints" parameter.
9168 (clear_complaints, vcomplaint): Remove "c" parameter.
9169 (get_complaints): Remove.
9170 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
9171 (dwarf2_debug_line_missing_file_complaint)
9172 (dwarf2_debug_line_missing_end_sequence_complaint)
9173 (dwarf2_complex_location_expr_complaint)
9174 (dwarf2_const_value_length_mismatch_complaint)
9175 (dwarf2_section_buffer_overflow_complaint)
9176 (dwarf2_macro_malformed_definition_complaint)
9177 (dwarf2_invalid_attrib_class_complaint)
9178 (create_addrmap_from_index, dw2_symtab_iter_next)
9179 (dw2_expand_marked_cus)
9180 (dw2_debug_names_iterator::find_vec_in_debug_names)
9181 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
9182 (create_debug_type_hash_table, init_cutu_and_read_dies)
9183 (partial_die_parent_scope, add_partial_enumeration)
9184 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
9185 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
9186 (read_import_statement, read_file_scope, create_dwo_cu_reader)
9187 (create_cus_hash_table, create_dwp_hash_table)
9188 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9189 (dwarf2_rnglists_process, dwarf2_ranges_process)
9190 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
9191 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
9192 (handle_struct_member_die, process_structure_scope)
9193 (read_array_type, read_common_block, read_module_type)
9194 (read_tag_pointer_type, read_typedef, read_base_type)
9195 (read_subrange_type, load_partial_dies, partial_die_info::read)
9196 (partial_die_info::read, partial_die_info::read)
9197 (partial_die_info::read, read_checked_initial_length_and_offset)
9198 (dwarf2_string_attr, read_formatted_entries)
9199 (dwarf_decode_line_header)
9200 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
9201 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
9202 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
9203 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9204 (get_signatured_type, get_DW_AT_signature_type)
9205 (decode_locdesc, file_file_name, consume_improper_spaces)
9206 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
9207 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9208 (dwarf2_symbol_mark_computed, set_die_type)
9209 (read_attribute_value): Update.
9210 * stap-probe.c (handle_stap_probe, get_stap_base_address):
9211 Update.
9212 * dbxread.c (unknown_symtype_complaint)
9213 (lbrac_mismatch_complaint, repeated_header_complaint)
9214 (set_namestring, function_outside_compilation_unit_complaint)
9215 (read_dbx_symtab, process_one_symbol): Update.
9216 * gdbtypes.c (stub_noname_complaint): Update.
9217 * windows-nat.c (handle_unload_dll): Update.
9218 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
9219 (decode_base_type): Update.
9220 * xcoffread.c (bf_notfound_complaint, ef_complaint)
9221 (eb_complaint, record_include_begin, record_include_end)
9222 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
9223 (process_xcoff_symbol, read_symbol)
9224 (function_outside_compilation_unit_complaint)
9225 (scan_xcoff_symtab): Update.
9226 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
9227 * buildsym.c (finish_block_internal, make_blockvector)
9228 (end_symtab_get_static_block, augment_type_symtab): Update.
9229 * dtrace-probe.c (dtrace_process_dof)
9230 (dtrace_static_probe_ops::get_probes): Update.
9231 * complaints.h (struct complaint): Don't declare.
9232 (symfile_complaints): Remove.
9233 (complaint_internal): Remove "complaints" parameter.
9234 (complaint): Likewise.
9235 (clear_complaints): Likewise.
9236 * symfile.c (syms_from_objfile_1, finish_new_objfile)
9237 (reread_symbols): Update.
9238 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
9239 (dwarf2_frame_cache, decode_frame_entry): Update.
9240 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
9241 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9242 (info_selectors_command): Update.
9243 * macrotab.c (macro_include, check_for_redefinition)
9244 (macro_undef): Update.
9245 * objfiles.c (filter_overlapping_sections): Update.
9246 * stabsread.c (invalid_cpp_abbrev_complaint)
9247 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
9248 (define_symbol, error_type, read_type, rs6000_builtin_type)
9249 (stabs_method_name_from_physname, read_member_functions)
9250 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
9251 (attach_fields_to_type, complain_about_struct_wipeout)
9252 (read_range_type, read_args, common_block_start)
9253 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
9254 Update.
9255 * mdebugread.c (index_complaint, unknown_ext_complaint)
9256 (basic_type_complaint, bad_tag_guess_complaint)
9257 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
9258 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
9259 (parse_procedure, parse_lines)
9260 (function_outside_compilation_unit_complaint)
9261 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
9262 (bad_tag_guess_complaint, reg_value_complaint): Update.
9263 * cp-support.c (demangled_name_complaint): Update.
9264 * macroscope.c (sal_macro_scope): Update.
9265 * dwarf-index-write.c (class debug_names): Update.
9266
4e9668d0
TT
92672018-05-23 Tom Tromey <tom@tromey.com>
9268
9269 * complaints.c (clear_complaints): Remove "noisy" parameter.
9270 * complaints.h (clear_complaints): Update.
9271 * symfile.c (syms_from_objfile_1, finish_new_objfile)
9272 (reread_symbols): Update.
9273
43ba33c7
TT
92742018-05-23 Tom Tromey <tom@tromey.com>
9275
9276 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
9277 SUBSEQUENT_MESSAGE.
9278 (vcomplaint, clear_complaints): Update.
9279 (symfile_explanations): Remove some messages.
9280
2b9496b2
TT
92812018-05-23 Tom Tromey <tom@tromey.com>
9282
9283 * complaints.c (internal_complaint): Remove.
9284 * complaints.h (internal_complaint): Remove.
9285
35f1fea3
MR
92862018-05-22 Maciej W. Rozycki <macro@mips.com>
9287
9288 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
9289
6b8edb51
PA
92902018-05-22 Pedro Alves <palves@redhat.com>
9291
9292 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
9293 (remote_fileio_badfd, remote_fileio_return_errno)
9294 (remote_fileio_return_success, remote_fileio_func_open)
9295 (remote_fileio_func_open, remote_fileio_func_close)
9296 (remote_fileio_func_read, remote_fileio_func_write)
9297 (remote_fileio_func_lseek, remote_fileio_func_rename)
9298 (remote_fileio_func_unlink, remote_fileio_func_stat)
9299 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
9300 (remote_fileio_func_isatty, remote_fileio_func_system): Add
9301 remote_target parameter.
9302 (remote_fio_func_map) <func>: Add remote_target parameter.
9303 (do_remote_fileio_request, remote_fileio_request):
9304 * remote-fileio.h (remote_fileio_request):
9305 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
9306 remote_target parameter.
9307 (remote_notif_process, handle_notification): Adjust to pass down
9308 the remote.
9309 (remote_notif_state_allocate): Add remote_target parameter. Save
9310 it.
9311 * remote-notif.h (struct remote_target): Forward declare.
9312 (struct notif_client) <parse, ack, can_get_pending_events>: Add
9313 remote_target parameter.
9314 (struct remote_notif_state) <remote>: New field.
9315 (remote_notif_ack, remote_notif_parse): Add remote_target
9316 parameter.
9317 (remote_notif_state_allocate, remote_notif_state_allocate): Add
9318 remote_target parameter.
9319 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
9320 (threads_listing_context, rmt_thread_action, protocol_feature)
9321 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
9322 (packet_result, struct threads_listing_context, remote_state):
9323 Move definitions and declarations higher up.
9324 (remote_target) <~remote_target>: Declare.
9325 (remote_download_command_source, remote_file_put, remote_file_get)
9326 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
9327 (remote_hostio_pread_vFile, remote_hostio_send_command)
9328 (remote_hostio_set_filesystem, remote_hostio_open)
9329 (remote_hostio_close, remote_hostio_unlink, remote_state)
9330 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
9331 (get_memory_write_packet_size, get_memory_read_packet_size)
9332 (append_pending_thread_resumptions, remote_detach_1)
9333 (append_resumption, remote_resume_with_vcont)
9334 (add_current_inferior_and_thread, wait_ns, wait_as)
9335 (process_stop_reply, remote_notice_new_inferior)
9336 (process_initial_stop_replies, remote_add_thread)
9337 (btrace_sync_conf, remote_btrace_maybe_reopen)
9338 (remove_new_fork_children, kill_new_fork_children)
9339 (discard_pending_stop_replies, stop_reply_queue_length)
9340 (check_pending_events_prevent_wildcard_vcont)
9341 (discard_pending_stop_replies_in_queue, stop_reply)
9342 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
9343 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
9344 (remote_interrupt_as, remote_interrupt_ns)
9345 (remote_get_noisy_reply, remote_query_attached)
9346 (remote_add_inferior, remote_current_thread, get_current_thread)
9347 (set_thread, set_general_thread, set_continue_thread)
9348 (set_general_process, write_ptid)
9349 (remote_unpack_thread_info_response, remote_get_threadinfo)
9350 (parse_threadlist_response, remote_get_threadlist)
9351 (remote_threadlist_iterator, remote_get_threads_with_ql)
9352 (remote_get_threads_with_qxfer)
9353 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
9354 (get_offsets, remote_check_symbols, remote_supported_packet)
9355 (remote_query_supported, remote_packet_size)
9356 (remote_serial_quit_handler, remote_detach_pid)
9357 (remote_vcont_probe, remote_resume_with_hc)
9358 (send_interrupt_sequence, interrupt_query)
9359 (remote_notif_get_pending_events, fetch_register_using_p)
9360 (send_g_packet, process_g_packet, fetch_registers_using_g)
9361 (store_register_using_P, store_registers_using_G)
9362 (set_remote_traceframe, check_binary_download)
9363 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
9364 (remote_xfer_live_readonly_partial, remote_read_bytes)
9365 (remote_send_printf, remote_flash_write, readchar)
9366 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
9367 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
9368 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
9369 (extended_remote_disable_randomization, extended_remote_run)
9370 (send_environment_packet, extended_remote_environment_support)
9371 (extended_remote_set_inferior_cwd, remote_write_qxfer)
9372 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
9373 (packet_command): Now methods of ...
9374 (remote_target): ... this class.
9375 (m_remote_state) <remote_target>: New field.
9376 (struct remote_state) <stop_reply_queue,
9377 remote_async_inferior_event_token, wait_forever_enabled_p>: New
9378 fields.
9379 (remote_state::remote_state): Allocate stop_reply_queue.
9380 (remote_state): Delete global.
9381 (get_remote_state_raw): Delete.
9382 (remote_target::get_remote_state): Allocate m_remote_state on
9383 demand.
9384 (get_current_remote_target): New.
9385 (remote_ops, extended_remote_ops): Delete.
9386 (wait_forever_enabled_p, remote_async_inferior_event_token):
9387 Delete, moved to struct remote_state.
9388 (remote_target::close): Delete self. Destruction bits split to
9389 ...
9390 (remote_target::~remote_target): ... this.
9391 (show_memory_packet_size): Adjust to use
9392 get_current_remote_target.
9393 (struct protocol_feature) <func>: Add remote_target parameter.
9394 All callers adjusted.
9395 (curr_quit_handler_target): New.
9396 (remote_serial_quit_handler): Reimplement.
9397 (remote_target::open_1): Adjust to use get_current_remote_target.
9398 Heap-allocate remote_target/extended_remote_target instances.
9399 (vcont_builder::vcont_builder): Add remote_target parameter, and
9400 save it in m_remote. All callers adjusted.
9401 (vcont_builder::m_remote): New field.
9402 (vcont_builder::restart, vcont_builder::flush)
9403 (vcont_builder::push_action): Use it.
9404 (remote_target::commit_resume): Use it.
9405 (struct queue_iter_param) <remote>: New field.
9406 (remote_target::remove_new_fork_children): Fill in 'remote' field.
9407 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
9408 (check_pending_event_prevents_wildcard_vcont_callback)
9409 (remote_target::check_pending_events_prevent_wildcard_vcont)
9410 (remote_target::discard_pending_stop_replies)
9411 (remote_target::discard_pending_stop_replies_in_queue)
9412 (remote_target::remote_notif_remove_queued_reply): Fill in
9413 'remote' field.
9414 (remote_notif_get_pending_events): New.
9415 (remote_target::readchar, remote_target::remote_serial_write):
9416 Save/restore curr_quit_handler_target.
9417 (putpkt): New.
9418 (kill_new_fork_children): Fill in 'remote' field.
9419 (packet_command): Use get_current_remote_target, defer to
9420 remote_target method of same name.
9421 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
9422 parameter, and save it in m_remote. All callers adjusted.
9423 (scoped_remote_fd::release): Use m_remote.
9424 (scoped_remote_fd::m_remote): New field.
9425 (remote_file_put, remote_file_get, remote_file_delete): Use
9426 get_current_remote_target, defer to remote_target method of same
9427 name.
9428 (remote_btrace_reset): Add remote_state paremeter. Update all
9429 callers.
9430 (remote_async_inferior_event_handler). Pass down 'data'.
9431 (remote_new_objfile): Use get_current_remote_target.
9432 (remote_target::vcont_r_supported): New.
9433 (set_range_stepping): Use get_current_remote_target and
9434 remote_target::vcont_r_supported.
9435 (_initialize_remote): Don't allocate 'remote_state' and
9436 'stop_reply_queue' globals.
9437 * remote.h (struct remote_target): Forward declare.
9438 (getpkt, putpkt, remote_notif_get_pending_events): Add
9439 'remote_target' parameter.
9440
f5db4863
PA
94412018-05-22 Pedro Alves <palves@redhat.com>
9442
9443 * remote.c (vcont_builder): Now a class. Make all data members
9444 private.
9445 (vcont_builder) <vcont_builder, restart, flush, push_action>:
9446 Declare methods.
9447 (vcont_builder_restart): Rename to ...
9448 (vcont_builder::restart): ... this.
9449 (vcont_builder_flush): Rename to ...
9450 (vcont_builder::flush): ... this.
9451 (vcont_builder_push_action): Rename to ...
9452 (vcont_builder::push_action): ... this.
9453 (remote_target::commit_resume): Adjust.
9454
cc0be08f
PA
94552018-05-22 Pedro Alves <palves@redhat.com>
9456
9457 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
9458 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
9459 (get_fixed_memory_packet_size): New.
9460 (get_memory_packet_size): Use it.
9461 (set_memory_packet_size): Don't override the config size with
9462 DEFAULT_MAX_MEMORY_PACKET_SIZE.
9463 (show_memory_packet_size): Use get_fixed_memory_packet_size.
9464 Don't refer to get_memory_packet_size if not connected to a remote
9465 target. Show "(default)" if configured size is 0.
9466
9607784a
PA
94672018-05-22 Pedro Alves <palves@redhat.com>
9468
9469 * remote.c (remote_target::mourn_inferior): Move
9470 discard_pending_stop_replies call here from ...
9471 (_initialize_remote): ... here.
9472
0e9a6b2f
PA
94732018-05-22 Pedro Alves <palves@redhat.com>
9474
9475 * remote.c (compare_section_command): Remove set_general_process
9476 call.
9477
43c3a0e4
PA
94782018-05-22 Pedro Alves <palves@redhat.com>
9479
9480 * remote.c (struct packet_reg, struct remote_arch_state):
9481 Move higher up in the file.
9482 (remote_state) <m_arch_states>: Store remote_arch_state values
9483 instead of remote_arch_state pointers.
9484 (remote_state::get_remote_arch_state): Adjust.
9485
9d6eea31
PA
94862018-05-22 Pedro Alves <palves@redhat.com>
9487
9488 * remote.c: Include <unordered_map>.
9489 (remote_state): Now a class.
9490 (remote_state) <get_remote_arch_state>: Declare method.
9491 <get_remote_arch_state>: New field.
9492 (remote_arch_state) <remote_arch_state>: Declare ctor.
9493 <regs>: Now a unique_ptr.
9494 (remote_gdbarch_data_handle): Delete.
9495 (get_remote_arch_state): Delete.
9496 (remote_state::get_remote_arch_state): New.
9497 (get_remote_state): Adjust to call remote_state's
9498 get_remote_arch_state method.
9499 (init_remote_state): Delete, bits factored out to ...
9500 (remote_arch_state::remote_arch_state): ... this new method.
9501 (get_remote_packet_size, get_memory_packet_size)
9502 (process_g_packet, remote_target::fetch_registers)
9503 (remote_target::prepare_to_store, store_registers_using_G)
9504 (remote_target::store_registers, remote_target::get_trace_status):
9505 Adjust to call remote_state's method.
9506 (_initialize_remote): Remove reference to
9507 remote_gdbarch_data_handle.
9508
dd194f6b
PA
95092018-05-22 Pedro Alves <palves@redhat.com>
9510
9511 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
9512 pread>: New method declarations.
9513 (remote_target::open_1): Adjust.
9514 (readahead_cache_invalidate): Rename to ...
9515 (readahead_cache::invalidate): ... this, and adjust to be a class
9516 method.
9517 (readahead_cache_invalidate_fd): Rename to ...
9518 (readahead_cache::invalidate_fd): ... this, and adjust to be a
9519 class method.
9520 (remote_hostio_pwrite): Adjust.
9521 (remote_hostio_pread_from_cache): Rename to ...
9522 (readahead_cache::pread): ... this, and adjust to be a class
9523 method.
9524 (remote_hostio_close): Adjust.
9525
440b7aec
PA
95262018-05-22 Pedro Alves <palves@redhat.com>
9527
9528 * remote.c (remote_hostio_close_cleanup): Delete.
9529 (class scoped_remote_fd): New.
9530 (remote_file_put, remote_file_get): Use it.
9531
de44f5a7
PA
95322018-05-22 Pedro Alves <palves@redhat.com>
9533
9534 (struct vCont_action_support): Use bool and initialize all fields.
9535 (struct readahead_cache): Initialize all fields.
9536 (remote_state): Use bool and initialize all fields.
9537 (remote_state::remote_state, remote_state::~remote_state): New.
9538 (new_remote_state): Delete.
9539 (_initialize_remote): Use new to allocate remote_state.
9540
b1b60145
PA
95412018-05-22 Pedro Alves <palves@redhat.com>
9542 張俊芝 <zjz@zjz.name>
9543
9544 PR gdb/22973
9545 * c-exp.y: Include "c-support.h".
9546 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
9547 of tolower. Use c_ident_is_alpha to scan names.
9548 * c-lang.c: Include "c-support.h".
9549 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
9550 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
9551 * c-support.h: New file, with bits factored out from ...
9552 * cp-name-parser.y: ... this file.
9553 Include "c-support.h".
9554 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
9555 c-support.h and renamed.
9556 (symbol_end, yylex): Adjust.
9557
0ec848ad
PFC
95582018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9559
9560 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
9561 parameter type to CORE_ADDR.
9562 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
9563 parameter type in declaration to CORE_ADDR.
9564 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
9565 target_auxv_search to get AT_HWCAP and use the result to get the
9566 target description.
9567 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
9568 to CORE_ADDR. Remove the cast of the return value to unsigned
9569 long. Fix error predicate of target_auxv_search.
9570 (ppc_linux_nat_target::read_description): Change the type of the
9571 hwcap variable to CORE_ADDR.
9572
0fb2aaa1
PFC
95732018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9574
9575 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
9576 if the size of fpscr is larger than 32 bits.
9577
2c3305f6
PFC
95782018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9579
9580 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
9581 (ppc32_linux_vsxregmap): New global.
9582 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
9583 regcache_supply_regset, and regcache_collect_regset.
9584 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
9585 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
9586 (fetch_vsx_register, store_vsx_register): Remove.
9587 (fetch_vsx_registers): Add regno parameter. Get regset using
9588 ppc_linux_vsxregset. Use regset to supply registers.
9589 (store_vsx_registers): Add regno parameter. Get regset using
9590 ppc_linux_vsxregset. Use regset to collect registers.
9591 (fetch_register): Call fetch_vsx_registers instead of
9592 fetch_vsx_register.
9593 (store_register): Call store_vsx_registers instead of
9594 store_vsx_register.
9595 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
9596 new regno parameter.
9597 (store_ppc_registers): Call store_vsx_registers with -1 for the
9598 new regno parameter.
9599 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
9600 (ppc_collect_vsxregset): Remove.
9601
1d75a658
PFC
96022018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9603
9604 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
9605 offset fields.
9606 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
9607 for vector register offset fields.
9608 (ppc64_fbsd_reg_offsets): Likewise.
9609 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9610 to vector register offset fields.
9611 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9612 to vector register offset fields.
9613 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
9614 vector register offset fields.
9615 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
9616 initializers for vector register offset fields.
9617 (rs6000_aix64_reg_offsets): Likewise.
9618 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
9619 (ppc_supply_vrregset): Remove.
9620 (ppc_collect_vrregset): Remove.
9621 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
9622 (ppc_linux_vrregset) : New function.
9623 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
9624 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
9625 (ppc32_linux_vrregset): Remove.
9626 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
9627 and use result instead of ppc32_linux_vrregset.
9628 (ppc32_linux_reg_offsets): Remove initializers for vector register
9629 offset fields.
9630 (ppc64_linux_reg_offsets): Likewise.
9631 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
9632 * ppc-linux-nat.c: Include regset.h.
9633 (gdb_vrregset_t): Adjust comment to account for little-endian
9634 mode.
9635 (supply_vrregset, fill_vrregset): Remove.
9636 (fetch_altivec_register, store_altivec_register): Remove.
9637 (fetch_altivec_registers): Add regno parameter. Get regset using
9638 ppc_linux_vrregset. Use regset to supply registers.
9639 (store_altivec_registers): Add regno parameter. Get regset using
9640 ppc_linux_vrregset. Use regset to collect registers.
9641 (fetch_register): Call fetch_altivec_registers instead of
9642 fetch_altivec_register.
9643 (store_register): Call store_altivec_registers instead of
9644 store_altivec_register.
9645 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
9646 the new regno parameter.
9647 (store_ppc_registers): Call store_altivec_registers with -1 for
9648 the new regno parameter.
9649
d078308a
PFC
96502018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9651
9652 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
9653 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
9654 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
9655 (gdb_vrregset_t): Change array type size to
9656 PPC_LINUX_SIZEOF_VRREGSET.
9657 (gdb_vsxregset_t): Change array type size to
9658 PPC_LINUX_SIZEOF_VSXREGSET.
9659 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
9660 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
9661 PPC_LINUX_SIZEOF_VSXREGSET.
9662
2e077f5e
PFC
96632018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9664
9665 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
9666 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
9667 nat/ppc-linux.c.
9668 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
9669 ppc_linux_target_wordsize with tid.
9670 (ppc_linux_nat_target::read_description): Call ppc_linux_target
9671 wordsize with tid.
9672 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
9673 (ppc64_64bit_inferior_p): Add static and inline specifiers.
9674 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
9675 tid parameter. Remove static specifier.
9676 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
9677 (ppc_linux_target_wordsize): New declaration.
9678
bd64614e
PFC
96792018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9680
9681 * arch/ppc-linux-common.c: New file.
9682 * arch/ppc-linux-common.h: New file.
9683 * arch/ppc-linux-tdesc.h: New file.
9684 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
9685 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
9686 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
9687 arch/ppc-linux-tdesc.h.
9688 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
9689 arch/ppc-linux-tdesc.h.
9690 (ppc_linux_nat_target::read_description): Remove target
9691 description matching code. Fill a ppc_linux_features struct and
9692 call ppc_linux_match_description with it. Move comment about ISA
9693 2.05 to ppc-linux-common.c.
9694 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
9695 arch/ppc-linux-tdesc.h.
9696 (ppc_linux_core_read_description): Remove target description
9697 matching code. Fill a ppc_linux_features struct and call
9698 ppc_linux_match_description with it.
9699 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
9700 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
9701 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
9702 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
9703 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
9704 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
9705 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
9706 (tdesc_powerpc_e500l): Remove.
9707
241db429
JB
97082018-05-22 Joel Brobecker <brobecker@adacore.com>
9709
9710 * ada-lang.c (catch_assert_command): Pass empty string instead
9711 of NULL for excep_string argument.
9712
75d74cca
MR
97132018-05-22 Maciej W. Rozycki <macro@mips.com>
9714
9715 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
9716 the width of the requested register exceeds the width of the
9717 `ptrace' data type.
9718
122b53ea
TT
97192018-05-21 Tom Tromey <tom@tromey.com>
9720
9721 * printcmd.c (output_command): Remove.
9722 (output_command_const): Rename to output_command.
9723 * valprint.h (output_command): Rename from output_command_const.
9724 * tracepoint.c (trace_dump_actions): Call output_command.
9725
bc18fbb5
TT
97262018-05-21 Tom Tromey <tom@tromey.com>
9727
9728 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
9729 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
9730 * ada-lang.h (create_ada_exception_catchpoint): Update.
9731 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
9732 std::string.
9733 (create_excep_cond_exprs, ~ada_catchpoint)
9734 (should_stop_exception, print_one_exception)
9735 (print_mention_exception, print_recreate_exception): Update.
9736 (ada_get_next_arg): Remove.
9737 (catch_ada_exception_command_split): Use std::string. Change type
9738 of "excep_string", "cond_string".
9739 (catch_ada_exception_command): Update.
9740 (create_ada_exception_catchpoint): Change type of excep_string.
9741 (ada_exception_sal): Remove excep_string parameter.
9742 (~ada_catchpoint): Remove.
9743
790217f6
TT
97442018-05-21 Tom Tromey <tom@tromey.com>
9745
9746 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
9747 cleanup.
9748
6f46ac85
TT
97492018-05-21 Tom Tromey <tom@tromey.com>
9750
9751 * ada-lang.c (ada_exception_message_1, ada_exception_message):
9752 Return unique_xmalloc_ptr.
9753 (print_it_exception): Update.
9754
15b6611c
TT
97552018-05-21 Tom Tromey <tom@tromey.com>
9756
9757 * tracepoint.c (trace_dump_actions): Use std::string.
9758
c0c9f665
TT
97592018-05-21 Tom Tromey <tom@tromey.com>
9760
9761 * symfile.c (reread_symbols): Use std::string for original_name.
9762
22ca247e
TT
97632018-05-21 Tom Tromey <tom@tromey.com>
9764
9765 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
9766 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
9767 constructor.
9768
184cde75
SM
97692018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
9770
9771 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
9772 instance to...
9773 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
9774 * objfiles.c (get_objfile_bfd_data): Allocate
9775 objfile_per_bfd_storage with obstack_new when allocating on
9776 obstack.
9777
e39db4db
SM
97782018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9779
9780 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
9781 OBSTACK_ZALLOC.
9782 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
9783 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
9784 * mdebugread.c (mdebug_build_psymtabs): Likewise.
9785 (add_pending): Likewise.
9786 (parse_symbol): Likewise.
9787 (parse_partial_symbols): Likewise.
9788 (psymtab_to_symtab_1): Likewise.
9789 (new_psymtab): Likewise.
9790 (elfmdebug_build_psymtabs): Likewise.
9791 * minsyms.c (terminate_minimal_symbol_table): Likewise.
9792 * objfiles.c (get_objfile_bfd_data): Likewise.
9793 (objfile_register_static_link): Likewise.
9794 * psymtab.c (allocate_psymtab): Likewise.
9795 * stabsread.c (read_member_functions): Likewise.
9796 * xcoffread.c (xcoff_end_psymtab): Likewise.
9797
284a0e3c
SM
97982018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9799
9800 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
9801 compiler supports std::is_trivially_constructible.
9802 * common/poison.h: Include obstack.h.
9803 (IsMallocable): Define to is_trivially_constructible if the
9804 compiler supports it, define to true_type otherwise.
9805 (xobnew): New.
9806 (XOBNEW): Redefine.
9807 (xobnewvec): New.
9808 (XOBNEWVEC): Redefine.
9809 * gdb_obstack.h (obstack_zalloc): New.
9810 (OBSTACK_ZALLOC): Redefine.
9811 (obstack_calloc): New.
9812 (OBSTACK_CALLOC): Redefine.
9813 (obstack_new): New.
9814 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
9815 (gdbarch_obstack): New declaration in gdbarch.h, definition in
9816 gdbarch.c.
9817 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
9818 obstack_calloc/obstack_zalloc.
9819 (gdbarch_obstack_zalloc): Remove.
9820 * target-descriptions.c (tdesc_data_init): Use obstack_new.
9821
59f66be3
PW
98222018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9823
9824 * stack.c (backtrace_command_1): Remove useless variable int i.
9825
50c65c2d
PW
98262018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9827
9828 * stack.c (print_frame_info): Fix comment.
9829
7ff8cb8c
TT
98302018-05-18 Tom Tromey <tom@tromey.com>
9831
9832 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
9833 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
9834 (~dwarf2_per_objfile): Update
9835 (dwarf2_get_dwz_file): Use new.
9836 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
9837 unique_ptr.
9838
400174b1
TT
98392018-05-18 Tom Tromey <tom@tromey.com>
9840
9841 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
9842 unique_ptr.
9843 * dwarf2read.c (struct dwp_file): Add constructor and
9844 initializers.
9845 (open_and_init_dwp_file): Return a unique_ptr.
9846 (dwarf2_per_objfile, create_dwp_hash_table)
9847 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
9848 (lookup_dwo_unit_in_dwp): Update.
9849 (open_and_init_dwp_file, get_dwp_file): Update.
9850
3063847f
TT
98512018-05-18 Tom Tromey <tom@tromey.com>
9852
9853 * dwarf2read.c (dwarf2_per_objfile): Update.
9854 (struct mapped_index): Add initializers.
9855 (dwarf2_read_index): Use new.
9856 (dw2_symtab_iter_init): Update.
9857 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
9858 unique_ptr.
9859
d3d02dee
SM
98602018-05-18 Simon Marchi <simon.marchi@ericsson.com>
9861
9862 * dwarf2read.c (mapped_index) <total_size>: Remove.
9863
1d143c36
SM
98642018-05-18 Simon Marchi <simon.marchi@ericsson.com>
9865
9866 * unittests/format_pieces-selftests.c (test_format_specifier):
9867 Add ARI comments.
9868
ce1e8424
TT
98692018-05-18 Tom Tromey <tom@tromey.com>
9870
9871 * c-typeprint.c (maybe_print_hole): New function.
9872 (c_print_type_struct_field_offset): Update.
9873 (c_type_print_base_struct_union): Call maybe_print_hole.
9874
ddfe970e
KS
98752018-05-17 Keith Seitz <keiths@redhat.com>
9876
9877 * breakpoint.c (build_bpstat_chain): New function, moved from
9878 bpstat_stop_status.
9879 (bpstat_stop_status): Add optional parameter, `stop_chain'.
9880 If no stop chain is passed, call build_bpstat_chain to build it.
9881 * breakpoint.h (build_bpstat_chain): Declare.
9882 (bpstat_stop_status): Move documentation here from breakpoint.c.
9883 * infrun.c (handle_signal_stop): Before eliding inlined frames,
9884 build the stop chain and pass it to skip_inline_frames.
9885 Pass this stop chain to bpstat_stop_status.
9886 * inline-frame.c: Include breakpoint.h.
9887 (stopped_by_user_bp_inline_frame): New function.
9888 (skip_inline_frames): Add parameter `stop_chain'.
9889 Move documention to inline-frame.h.
9890 If non-NULL, use stopped_by_user_bp_inline_frame to determine
9891 whether the frame should be elided.
9892 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
9893 Add moved documentation and update for new parameter.
9894
b17992c1
SM
98952018-05-17 Simon Marchi <simon.marchi@ericsson.com>
9896
9897 PR cli/14975
9898 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9899 unittests/format_pieces-selftests.c.
9900 * common/format.h (format_piece) <operator==>: New.
9901 (format_pieces) <operator[]>: Remove.
9902 * common/format.c (format_pieces::format_pieces): Handle \e.
9903 * unittests/format_pieces-selftests.c: New.
9904
58f0c718
TT
99052018-05-17 Tom Tromey <tom@tromey.com>
9906
9907 PR symtab/23010:
9908 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
9909 (dw2_instantiate_symtab): Add skip_partial parameter.
9910 (dw2_find_last_source_symtab, dw2_map_expand_apply)
9911 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
9912 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
9913 (dw2_expand_symtabs_matching_one)
9914 (dw2_find_pc_sect_compunit_symtab)
9915 (dw2_debug_names_lookup_symbol)
9916 (dw2_debug_names_expand_symtabs_for_function): Update.
9917 (init_cutu_and_read_dies): Add skip_partial parameter.
9918 (process_psymtab_comp_unit, build_type_psymtabs_1)
9919 (process_skeletonless_type_unit, load_partial_comp_unit)
9920 (psymtab_to_symtab_1): Update.
9921 (load_full_comp_unit): Add skip_partial parameter.
9922 (process_imported_unit_die, dwarf2_read_addr_index)
9923 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
9924 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
9925 (read_signatured_type): Update.
9926
3e618834
SM
99272018-05-17 Simon Marchi <simon.marchi@ericsson.com>
9928
9929 * value.c (release_value): Remove unused variable.
9930 (record_latest_value): Likewise.
9931 (access_value_history): Likewise.
9932 (preserve_values): Likewise.
9933
fe10fe31
TT
99342018-05-17 Tom Tromey <tom@tromey.com>
9935
9936 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
9937 Initialize.
9938
1d761124
MR
99392018-05-16 Maciej W. Rozycki <macro@mips.com>
9940
9941 PR gdb/22286
9942 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
9943 Also handle registers whose width is not a multiple of
9944 PTRACE_TYPE_RET.
9945 (linux_nat_trad_target::store_register): Likewise.
9946
06333fea
TT
99472018-05-16 Tom Tromey <tom@tromey.com>
9948
9949 * gdbcore.h (core_bfd): Redefine.
9950 * corelow.c (core_target::close): Update.
9951 (core_target_open): Update.
9952 * progspace.h (struct program_space) <cbfd>: Now a
9953 gdb_bfd_ref_ptr.
9954
921222e2
TT
99552018-05-16 Tom Tromey <tom@tromey.com>
9956
9957 PR cli/19551:
9958 * symfile-add-flags.h (enum symfile_add_flags)
9959 <SYMFILE_NOT_FILENAME>: New constant.
9960 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
9961 objfile name from BFD.
9962 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
9963 * minidebug.c (find_separate_debug_file_in_section): Put
9964 ".gnu_debugdata" into BFD's file name.
9965
3acb7083
SM
99662018-05-16 Simon Marchi <simon.marchi@ericsson.com>
9967
9968 * regcache.c (regcache_read_ftype, regcache_write_ftype):
9969 Remove.
9970
561a72d4
TC
99712018-05-15 Tamar Christina <tamar.christina@arm.com>
9972
9973 PR binutils/21446
9974 * aarch64-tdep.c (aarch64_analyze_prologue,
9975 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
9976 Indicate not interested in errors.
9977
4e6ff0e1
MR
99782018-05-15 Maciej W. Rozycki <macro@mips.com>
9979
9980 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
9981 Supply the MIPS_ZERO_REGNUM register.
9982
ea33cd92
MR
99832018-05-15 Maciej W. Rozycki <macro@mips.com>
9984
9985 * mips-tdep.c (mask_address_var): Make variable static.
9986
2d79090e
TT
99872018-05-14 Tom Tromey <tom@tromey.com>
9988
9989 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
9990
cf4912ae
AB
99912018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
9992
9993 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
9994 FXSAVE_ADDR for the mxcsr register.
9995
67e6f569
MF
99962018-05-11 Max Filippov <jcmvbkbc@gmail.com>
9997
9998 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
9999
15244507
PA
100002018-05-11 Pedro Alves <palves@redhat.com>
10001
10002 * corelow.c (core_target) <core_target>: No longer inline.
10003 Initialize m_core_gdbarch, m_core_vec and build the section table
10004 here.
10005 <~core_target>: New.
10006 <core_gdbarch, get_core_register_section>: New methods.
10007 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
10008 factored out from ...
10009 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
10010 (core_ops): Delete.
10011 (sniff_core_bfd): Add gdbarch parameter.
10012 (core_close): Delete, merged into ...
10013 (core_target::close): ... here. Delete self.
10014 (core_close_cleanup): Delete.
10015 (core_target_open): Allocate a core_target on the heap. Use a
10016 unique_ptr instead of a cleanup. Bits moved into the core_target
10017 ctor. Adjust to use core_target methods instead of globals.
10018 (get_core_register_section): Rename to ...
10019 (core_target::get_core_register_section): ... this and adjust.
10020 (struct get_core_registers_cb_data): New.
10021 (get_core_registers_cb): Use it. Use bool.
10022 (core_target::fetch_registers, core_target::files_info)
10023 (core_target::xfer_partial, core_target::read_description)
10024 (core_target::pid_to, core_target::thread_name): Adjust to
10025 reference class fields instead of globals.
10026 * target.h (struct target_ops_deleter, target_ops_up): New.
10027
451953fa
PA
100282018-05-11 Pedro Alves <palves@redhat.com>
10029
10030 * corefile.c (core_file_command): Move to corelow.c.
10031 * corelow.c (the_core_target): Delete.
10032 (core_file_command): Moved from corefile.c. Check exec_bfd
10033 instead of the_core_target. Use target_detach instead of calling
10034 into the_core_target directly.
10035 (maybe_say_no_core_file_now): New.
10036 (core_target::detach): Use it.
10037 (_initialize_corelow): Remove references to the_core_target.
10038 * gdbcore.h (the_core_target): Delete.
10039
e540a5a2 100402018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 10041 Pedro Alves <palves@redhat.com>
e540a5a2
TT
10042
10043 * corefile.c (core_bfd): Remove.
10044 * gdbcore.h (core_bfd): Now a macro.
10045 * progspace.h (struct program_space) <cbfd>: New field.
10046
633cf254
TT
100472018-05-11 Tom Tromey <tom@tromey.com>
10048
10049 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
10050 gdb::def_vector.
10051
1a34f210
TT
100522018-05-10 Tom Tromey <tom@tromey.com>
10053
10054 * configure: Rebuild.
10055 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
10056
190852c8
JB
100572018-05-10 Joel Brobecker <brobecker@adacore.com>
10058
10059 PR server/23158:
10060 * regformats/regdat.sh: Adjust script, following the addition
10061 of the new expedite_regs parameter to init_target_desc.
10062
8727de56
OJ
100632018-05-10 Omair Javaid <omair.javaid@linaro.org>
10064
10065 PR gdb/23127
10066 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
10067 set_gdbarch_significant_addr_bit.
10068 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
10069 set_gdbarch_significant_addr_bit.
10070 * utils.c (address_significant): Update to sign extend addr.
10071
37d9e062
MF
100722018-05-09 Max Filippov <jcmvbkbc@gmail.com>
10073
10074 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
10075 (xtensa_linux_init_abi): Limit tdep->num_regs by
10076 tdep->num_nopriv_regs.
10077 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
10078 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
10079 not initialized.
10080
7402fbca
SM
100812018-05-08 Simon Marchi <simon.marchi@ericsson.com>
10082
10083 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
10084
8ee22052
AB
100852018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10086
10087 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
10088 (I387_MXCSR_INIT_VAL): New constant.
10089 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
10090 buffer if it was supplied by the inferior.
10091 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
10092 (i387_xsave_get_clear_bv): New function.
10093 (i387_supply_xsave): Only read x87 control registers from the
10094 xsave buffer if the feature is enabled, and the state will have
10095 been written, otherwise, provide a suitable default.
10096 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
10097 including x87 control registers. Update control registers if they
10098 have changed from the default value, and mark features as enabled
10099 as required.
10100 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
10101
968ae51b
UW
101022018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
10103
10104 * spu-tdep.c (info_spu_event_command): Fix output formatting.
10105
aff689d3
TT
101062018-05-07 Tom Tromey <tom@tromey.com>
10107
10108 * configure: Rebuild.
10109 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
10110
ce887586
TT
101112018-05-07 Tom Tromey <tom@tromey.com>
10112
10113 PR tdep/20362:
10114 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
10115 bit. Use correct value for VDIV.
10116
85e26832
TT
101172018-05-04 Tom Tromey <tom@tromey.com>
10118
10119 * configure: Rebuild.
10120 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
10121
449b1ac7
TT
101222018-05-04 Tom Tromey <tom@tromey.com>
10123
10124 * linux-record.c (record_linux_system_call) <case
10125 RECORD_SYS_RECVFROM>: Add "break".
10126
15c9ffd6
TT
101272018-05-04 Tom Tromey <tom@tromey.com>
10128
10129 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
10130 Add missing "break".
10131 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
10132 Add missing "break".
10133
e3829d13
TT
101342018-05-04 Tom Tromey <tom@tromey.com>
10135
10136 * rs6000-tdep.c (ppc_process_record_op4)
10137 (ppc_process_record_op63): Add fall-through comment.
10138
da0e1563
TT
101392018-05-04 Tom Tromey <tom@tromey.com>
10140
10141 * i386-tdep.c (i386_process_record): Add fall-through comment.
10142
0019cd49
TT
101432018-05-04 Tom Tromey <tom@tromey.com>
10144
10145 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
10146 comment.
10147
565e0eda
TT
101482018-05-04 Tom Tromey <tom@tromey.com>
10149
10150 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
10151 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
10152 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
10153 comment.
10154 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
10155 comment.
10156 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
10157 comment.
10158
621846f4
TT
101592018-05-04 Tom Tromey <tom@tromey.com>
10160
10161 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
10162
86a73007
TT
101632018-05-04 Tom Tromey <tom@tromey.com>
10164
10165 * s390-tdep.c (s390_process_record): Fix fall-through comments.
10166 * xcoffread.c (scan_xcoff_symtab): Move comment later.
10167 * symfile.c (section_is_mapped): Fix fall-through comment.
10168 * stabsread.c (define_symbol, read_member_functions): Fix
10169 fall-through comment.
10170 * s390-linux-tdep.c (s390_process_record): Fix fall-through
10171 comment.
10172 * remote.c (remote_wait_as): Fix fall-through comment.
10173 * p-exp.y (yylex): Fix fall-through comment.
10174 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
10175 comment.
10176 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
10177 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
10178 * jv-exp.y (yylex): Fix fall-through comment.
10179 * go-exp.y (lex_one_token): Fix fall-through comment.
10180 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
10181 fall-through comment.
10182 * f-exp.y (yylex): Fix fall-through comment.
10183 * dwarf2read.c (process_die): Fix fall-through comments.
10184 * dbxread.c (process_one_symbol): Fix fall-through comment.
10185 * d-exp.y (lex_one_token): Fix fall-through comment.
10186 * cp-name-parser.y (yylex): Fix fall-through comment.
10187 * coffread.c (coff_symtab_read): Fix fall-through comment.
10188 * c-exp.y (lex_one_token): Fix fall-through comment.
10189 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
10190 comment.
10191 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
10192 comment.
10193
56bcdbea
TT
101942018-05-04 Tom Tromey <tom@tromey.com>
10195
10196 PR python/22730:
10197 * NEWS: Mention gdb.execute change.
10198 * gdbcmd.h (execute_control_command): Don't declare.
10199 * python/python.c (execute_gdb_command): Use read_command_lines_1,
10200 execute_control_commands, execute_control_commands_to_string.
10201 * cli/cli-script.h (execute_control_commands)
10202 (execute_control_commands_to_string): Declare.
10203 (execute_control_command): Add from_tty parameter.
10204 * cli/cli-script.c (execute_control_commands)
10205 (execute_control_commands_to_string): New functions.
10206 (execute_user_command): Use execute_control_commands.
10207 (execute_control_command_1): Add "from_tty" parameter. Update.
10208 (execute_control_command): Likewise.
10209
a913fffb
TT
102102018-05-04 Tom Tromey <tom@tromey.com>
10211
10212 PR python/22731:
10213 * NEWS: Mention that breakpoint commands are writable.
10214 * python/py-breakpoint.c (bppy_set_commands): New function.
10215 (breakpoint_object_getset) <"commands">: Use it.
10216
60b3cef2
TT
102172018-05-04 Tom Tromey <tom@tromey.com>
10218
10219 * tracepoint.c (actions_command): Update.
10220 * mi/mi-cmd-break.c (mi_command_line_array)
10221 (mi_command_line_array_cnt, mi_command_line_array_ptr)
10222 (mi_read_next_line): Remove.
10223 (mi_cmd_break_commands): Update.
10224 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
10225 function_view.
10226 * cli/cli-script.c (get_command_line): Update.
10227 (process_next_line): Use function_view. Constify.
10228 (recurse_read_control_structure, read_command_lines)
10229 (read_command_lines_1): Change argument types to function_view.
10230 (do_define_command, document_command): Update.
10231 * breakpoint.h (check_tracepoint_command): Don't declare.
10232 * breakpoint.c (check_tracepoint_command): Remove.
10233 (commands_command_1, create_tracepoint_from_upload): Update.
10234
7a2c85f2
TT
102352018-05-04 Tom Tromey <tom@tromey.com>
10236
10237 PR gdb/11750:
10238 * cli/cli-script.h (enum command_control_type) <define_control>:
10239 New constant.
10240 * cli/cli-script.c (multi_line_command_p): Handle define_control.
10241 (build_command_line, execute_control_command_1)
10242 (process_next_line): Likewise.
10243 (do_define_command): New function, extracted from define_command.
10244 (define_command): Use it.
10245
295dc222
TT
102462018-05-04 Tom Tromey <tom@tromey.com>
10247
10248 * tracepoint.c (actions_command): Update.
10249 * cli/cli-script.h (read_command_lines): Update.
10250 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
10251 (MAX_TMPBUF): Remove define.
10252 (define_command): Use string_printf.
10253 (document_command): Likewise.
10254 * breakpoint.c (commands_command_1): Update.
10255
1263a9d5
TT
102562018-05-04 Tom Tromey <tom@tromey.com>
10257
10258 * top.c (execute_command): Update.
10259 * cli/cli-script.h (print_command_lines): Now varargs.
10260 * cli/cli-script.c (print_command_lines): Now varargs.
10261 (execute_control_command_1) <case while_control, case if_control>:
10262 Update.
10263
12973681
TT
102642018-05-04 Tom Tromey <tom@tromey.com>
10265
10266 * tracepoint.c (all_tracepoint_actions): Rename from
10267 all_tracepoint_actions_and_cleanup. Change return type.
10268 (actions_command, encode_actions_1, encode_actions)
10269 (trace_dump_actions, tdump_command): Update.
10270 * remote.c (remote_download_command_source): Update.
10271 * python/python.c (gdbpy_eval_from_control_command)
10272 (python_command, python_interactive_command): Update.
10273 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10274 * guile/guile.c (guile_command)
10275 (gdbscm_eval_from_control_command, guile_command): Update.
10276 * compile/compile.c (compile_code_command)
10277 (compile_print_command, compile_to_object): Update.
10278 * cli/cli-script.h (struct command_lines_deleter): New.
10279 (counted_command_line): New typedef.
10280 (struct command_line): Add constructor, destructor.
10281 <body_list>: Remove.
10282 <body_list_0, body_list_1>: New members.
10283 (command_line_up): Remove typedef.
10284 (read_command_lines, read_command_lines_1, get_command_line):
10285 Update.
10286 (copy_command_lines): Don't declare.
10287 * cli/cli-script.c (build_command_line): Use "new".
10288 (get_command_line): Return counted_command_line.
10289 (print_command_lines, execute_user_command)
10290 (execute_control_command_1, while_command, if_command): Update.
10291 (realloc_body_list): Remove.
10292 (process_next_line, recurse_read_control_structure): Update.
10293 (read_command_lines, read_command_lines_1): Return counted_command_line.
10294 (free_command_lines): Use "delete".
10295 (copy_command_lines): Remove.
10296 (define_command, document_command, show_user_1): Update.
10297 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
10298 a counted_command_line.
10299 * breakpoint.h (counted_command_line): Remove typedef.
10300 (breakpoint_set_commands): Update.
10301 * breakpoint.c (check_no_tracepoint_commands)
10302 (validate_commands_for_breakpoint): Update.
10303 (breakpoint_set_commands): Change commands to be a
10304 counted_command_line.
10305 (commands_command_1, update_dprintf_command_list)
10306 (create_tracepoint_from_upload): Update.
10307
e2fc72e2
TT
103082018-05-04 Tom Tromey <tom@tromey.com>
10309
10310 * cli/cli-decode.h (cmd_list_element): New constructor.
10311 (~cmd_list_element): New destructor.
10312 (struct cmd_list_element): Add initializers.
10313 * cli/cli-decode.c (do_add_cmd): Use "new".
10314 (delete_cmd): Use "delete".
10315
a3b60e45
JK
103162018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10317 Pedro Alves <palves@redhat.com>
10318
10319 PR breakpoints/19806 and support for PR external/20207.
10320 * NEWS: Mention Aarch64 watchpoint improvements.
10321 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
10322 watchpoints and PR external/20207 watchpoints.
10323 * nat/aarch64-linux-hw-point.c
10324 (kernel_supports_any_contiguous_range): New.
10325 (aarch64_watchpoint_offset): New.
10326 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
10327 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
10328 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
10329 (aarch64_align_watchpoint): New parameters aligned_offset_p and
10330 next_addr_orig_p. Support PR external/20207 watchpoints.
10331 (aarch64_downgrade_regs): New.
10332 (aarch64_dr_state_insert_one_point): New parameters offset and
10333 addr_orig.
10334 (aarch64_dr_state_remove_one_point): Likewise.
10335 (aarch64_handle_breakpoint): Update caller.
10336 (aarch64_handle_aligned_watchpoint): Likewise.
10337 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
10338 aligned_offset.
10339 (aarch64_linux_set_debug_regs): Remove const from state. Call
10340 aarch64_downgrade_regs.
10341 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
10342 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
10343 (DR_CONTROL_MASK): ... this.
10344 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
10345 (unsigned int aarch64_watchpoint_offset): New prototype.
10346 (aarch64_linux_set_debug_regs): Remove const from state.
10347 * utils.c (align_up, align_down): Move to ...
10348 * common/common-utils.c (align_up, align_down): ... here.
10349 * utils.h (align_up, align_down): Move to ...
10350 * common/common-utils.h (align_up, align_down): ... here.
10351
05bc7456
JB
103522018-05-04 Joel Brobecker <brobecker@adacore.com>
10353
10354 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
10355 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
10356 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
10357 Re-implement to match the ABI as summarized in GCC's
10358 gcc/config/sparc/sparc.c. All callers updated.
10359 (sparc32_store_arguments): Remove assertion.
10360
2f433492
TT
103612018-05-04 Tom Tromey <tom@tromey.com>
10362
10363 * printcmd.c: Don't include tui.h.
10364 (decode_format): Use skip_spaces.
10365
9be2ae8f
TT
103662018-05-04 Tom Tromey <tom@tromey.com>
10367
10368 PR gdb/22619:
10369 * printcmd.c (last_count): New global.
10370 (x_command): Use saved count when repeating.
10371
f0b3976b
TT
103722018-05-04 Tom Tromey <tom@tromey.com>
10373
10374 * nto-procfs.c (do_closedir_cleanup): Remove.
10375 (procfs_pidlist): Use gdb_dir_up.
10376 * procfs.c (do_closedir_cleanup): Remove.
10377 (proc_update_threads): Use gdb_dir_up.
10378 * common/filestuff.h (struct gdb_dir_deleter): New.
10379 (gdb_dir_up): New typedef.
10380
862d101a
TT
103812018-05-04 Tom Tromey <tom@tromey.com>
10382
10383 * ada-lang.c (print_mention_exception): Use std::string.
10384
cb7de75e
TT
103852018-05-04 Tom Tromey <tom@tromey.com>
10386
10387 * ada-lang.c (create_excep_cond_exprs): Update.
10388 (ada_exception_catchpoint_cond_string): Use std::string.
10389
49d83361
TT
103902018-05-04 Tom Tromey <tom@tromey.com>
10391
10392 * ada-lang.c (xget_renaming_scope): Return std::string.
10393 (old_renaming_is_invisible): Update.
10394
ade72a34
TT
103952018-05-04 Tom Tromey <tom@tromey.com>
10396
10397 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
10398 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
10399
2be4d7f0
UW
104002018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
10401
10402 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
10403
69b6ecb0
TT
104042018-05-04 Tom Tromey <tom@tromey.com>
10405
10406 * remote.c (remote_query_supported_append): Change type.
10407 (remote_check_symbols): Update.
10408
bf27f0e2
PP
104092018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
10410
10411 PR gdb/11420
10412 * configure.ac: Prepend libpython.
10413 * python/python-config.py: Likewise.
10414 * configure: Regenerate.
10415
4ea17de8
SM
104162018-05-03 Simon Marchi <simon.marchi@ericsson.com>
10417
10418 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
10419
bd732259
PA
104202018-05-03 Pedro Alves <palves@redhat.com>
10421
10422 * s390-linux-nat.c
10423 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
10424 override. Write 'true' instead of '1'.
10425 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
10426 declaration.
10427
d9f719f1
PA
104282018-05-02 Pedro Alves <palves@redhat.com>
10429
10430 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
10431 add_inf_child_target.
10432 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
10433 add_inf_child_target.
10434 * aix-thread.c (aix_thread_target_info): New.
10435 (aix_thread_target) <shortname, longname, doc>: Delete.
10436 <info>: New.
10437 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
10438 add_inf_child_target.
10439 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
10440 add_inf_child_target.
10441 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
10442 add_inf_child_target.
10443 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
10444 add_inf_child_target.
10445 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
10446 add_inf_child_target.
10447 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
10448 add_inf_child_target.
10449 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
10450 add_inf_child_target.
10451 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
10452 add_inf_child_target.
10453 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
10454 add_inf_child_target.
10455 * bfd-target.c (target_bfd_target_info): New.
10456 (target_bfd) <shortname, longname, doc>: Delete.
10457 <info>: New.
10458 * bsd-kvm.c (bsd_kvm_target_info): New.
10459 (bsd_kvm_target) <shortname, longname, doc>: Delete.
10460 <info>: New.
10461 (bsd_kvm_target::open): Rename to ...
10462 (bsd_kvm_target_open): ... this. Adjust.
10463 * bsd-uthread.c (bsd_uthread_target_info): New.
10464 (bsd_uthread_target) <shortname, longname, doc>: Delete.
10465 <info>: New.
10466 * corefile.c (core_file_command): Adjust.
10467 * corelow.c (core_target_info): New.
10468 (core_target) <shortname, longname, doc>: Delete.
10469 <info>: New.
10470 (core_target::open): Rename to ...
10471 (core_target_open): ... this. Adjust.
10472 * ctf.c (ctf_target_info): New.
10473 (ctf_target) <shortname, longname, doc>: Delete.
10474 <info>: New.
10475 (ctf_target::open): Rename to ...
10476 (ctf_target_open): ... this.
10477 (_initialize_ctf): Adjust.
10478 * exec.c (exec_target_info): New.
10479 (exec_target) <shortname, longname, doc>: Delete.
10480 <info>: New.
10481 (exec_target::open): Rename to ...
10482 (exec_target_open): ... this.
10483 * gdbcore.h (core_target_open): Declare.
10484 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
10485 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
10486 add_inf_child_target.
10487 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
10488 add_inf_child_target.
10489 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
10490 add_inf_child_target.
10491 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
10492 add_inf_child_target.
10493 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
10494 add_inf_child_target.
10495 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
10496 add_inf_child_target.
10497 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
10498 add_inf_child_target.
10499 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
10500 add_inf_child_target.
10501 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
10502 add_inf_child_target.
10503 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
10504 add_inf_child_target.
10505 * inf-child.c (inf_child_target_info): New.
10506 (inf_child_target::info): New.
10507 (inf_child_open_target): Remove 'target' parameter. Use
10508 get_native_target instead.
10509 (inf_child_target::open): Delete.
10510 (add_inf_child_target): New.
10511 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
10512 Delete.
10513 <info>: New.
10514 (add_inf_child_target): Declare.
10515 (inf_child_open_target): Declare.
10516 * linux-thread-db.c (thread_db_target_info): New.
10517 (thread_db_target) <shortname, longname, doc>: Delete.
10518 <info>: New.
10519 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
10520 add_inf_child_target.
10521 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
10522 add_inf_child_target.
10523 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
10524 add_inf_child_target.
10525 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
10526 add_inf_child_target.
10527 * make-target-delegates (print_class): Adjust.
10528 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
10529 add_inf_child_target.
10530 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
10531 add_inf_child_target.
10532 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
10533 add_inf_child_target.
10534 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
10535 add_inf_child_target.
10536 * nto-procfs.c (nto_native_target_info): New.
10537 (nto_procfs_target_native) <shortname, longname, doc>:
10538 Delete.
10539 <info>: New.
10540 (nto_procfs_target_info): New.
10541 (nto_procfs_target_procfs) <shortname, longname, doc>:
10542 Delete.
10543 <info>: New.
10544 (init_procfs_targets): Adjust.
10545 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
10546 add_inf_child_target.
10547 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
10548 add_inf_child_target.
10549 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
10550 add_inf_child_target.
10551 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
10552 add_inf_child_target.
10553 * ravenscar-thread.c (ravenscar_target_info): New.
10554 (ravenscar_thread_target) <shortname, longname, doc>:
10555 Delete.
10556 <info>: New.
10557 * record-btrace.c (record_btrace_target_info):
10558 (record_btrace_target) <shortname, longname, doc>: Delete.
10559 <info>: New.
10560 (record_btrace_target::open): Rename to ...
10561 (record_btrace_target_open): ... this. Adjust.
10562 * record-full.c (record_longname, record_doc): New.
10563 (record_full_base_target) <shortname, longname, doc>: Delete.
10564 <info>: New.
10565 (record_full_target_info): New.
10566 (record_full_target): <shortname>: Delete.
10567 <info>: New.
10568 (record_full_core_open_1, record_full_open_1): Update comments.
10569 (record_full_base_target::open): Rename to ...
10570 (record_full_open): ... this.
10571 (cmd_record_full_restore): Update.
10572 (_initialize_record_full): Update.
10573 * remote-sim.c (remote_sim_target_info): New.
10574 (gdbsim_target) <shortname, longname, doc>: Delete.
10575 <info>: New.
10576 (gdbsim_target::open): Rename to ...
10577 (gdbsim_target_open): ... this.
10578 (_initialize_remote_sim): Adjust.
10579 * remote.c (remote_doc): New.
10580 (remote_target_info): New.
10581 (remote_target) <shortname, longname, doc>: Delete.
10582 <info>: New.
10583 (extended_remote_target_info): New.
10584 (extended_remote_target) <shortname, longname, doc>: Delete.
10585 <info>: New.
10586 (remote_target::open_1): Make static. Adjust.
10587 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
10588 * s390-linux-nat.c (_initialize_s390_nat): Use
10589 add_inf_child_target.
10590 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
10591 add_inf_child_target.
10592 * sol-thread.c (thread_db_target_info): New.
10593 (sol_thread_target) <shortname, longname, doc>: Delete.
10594 <info>: New.
10595 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
10596 add_inf_child_target.
10597 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
10598 add_inf_child_target.
10599 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
10600 add_inf_child_target.
10601 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
10602 add_inf_child_target.
10603 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
10604 add_inf_child_target.
10605 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
10606 add_inf_child_target.
10607 * spu-linux-nat.c (_initialize_spu_nat): Use
10608 add_inf_child_target.
10609 * spu-multiarch.c (spu_multiarch_target_info): New.
10610 (spu_multiarch_target) <shortname, longname, doc>: Delete.
10611 <info>: New.
10612 * target-delegates.c: Regenerate.
10613 * target.c: Include <unordered_map>.
10614 (target_ops_p): Delete.
10615 (DEF_VEC_P(target_ops_p)): Delete.
10616 (target_factories): New.
10617 (test_target_info): New.
10618 (test_target_ops::info): New.
10619 (open_target): Adjust to use target_factories.
10620 (add_target_with_completer): Rename to ...
10621 (add_target): ... this. Change prototype. Register target_info
10622 and open callback in target_factories. Register target_info in
10623 command context instead of target_ops.
10624 (add_target): Delete old implementation.
10625 (add_deprecated_target_alias): Change prototype. Adjust.
10626 (the_native_target): New.
10627 (set_native_target, get_native_target): New.
10628 (find_default_run_target): Use the_native_target.
10629 (find_attach_target, find_run_target): Simplify.
10630 (target_ops::open): Delete.
10631 (dummy_target_info): New.
10632 (dummy_target::shortname, dummy_target::longname)
10633 (dummy_target::doc): Delete.
10634 (dummy_target::info): New.
10635 (debug_target::shortname, debug_target::longname)
10636 (debug_target::doc): Delete.
10637 (debug_target::info): New.
10638 * target.h (struct target_info): New.
10639 (target_ops::~target_ops): Add comment.
10640 (target_ops::info): New.
10641 (target_ops::shortname, target_ops::longname, target_ops::doc): No
10642 longer virtual. Implement in terms of target_info.
10643 (set_native_target, get_native_target): Declare.
10644 (target_open_ftype): New.
10645 (add_target, add_target_with_completer)
10646 (add_deprecated_target_alias): Change prototype.
10647 (test_target) <shortname, longname, doc>: Delete.
10648 <info>: New.
10649 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
10650 add_inf_child_target.
10651 * tracefile-tfile.c (tfile_target_info): New.
10652 (tfile_target) <shortname, longname, doc>: Delete.
10653 <info>: New.
10654 (tfile_target::open): Rename to ...
10655 (tfile_target_open): ... this.
10656 (_initialize_tracefile_tfile): Adjust.
10657 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
10658 add_inf_child_target.
10659 * windows-nat.c (_initialize_windows_nat): Use
10660 add_inf_child_target.
10661 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
10662 add_inf_child_target.
10663
135340af
PA
106642018-05-02 Pedro Alves <palves@redhat.com>
10665
10666 * linux-nat.h (linux_nat_target) <low_new_thread,
10667 low_delete_thread, low_new_fork, low_forget_process,
10668 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
10669 New virtual methods.
10670 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10671 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
10672 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
10673 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10674 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
10675 Delete.
10676 * linux-fork.c (delete_fork): Adjust to call low method.
10677 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
10678 (linux_nat_new_fork, linux_nat_forget_process_hook)
10679 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
10680 (linux_nat_status_is_event):
10681 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
10682 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
10683 to call low method.
10684 (sigtrap_is_event): Rename to ...
10685 (linux_nat_target::low_status_is_event): ... this.
10686 (linux_nat_set_status_is_event): Delete.
10687 (save_stop_reason, linux_nat_wait_1)
10688 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
10689 low methods.
10690 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10691 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10692 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10693 (linux_nat_set_prepare_to_resume): Delete.
10694 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
10695 low virtual methods.
10696 * amd64-linux-nat.c: Likewise.
10697 * arm-linux-nat.c: Likewise.
10698 * i386-linux-nat.c: Likewise.
10699 * ia64-linux-nat.c: Likewise.
10700 * mips-linux-nat.c: Likewise.
10701 * ppc-linux-nat.c: Likewise.
10702 * s390-linux-nat.c: Likewise.
10703 * sparc64-linux-nat.c: Likewise.
10704 * x86-linux-nat.c: Likewise.
10705 * x86-linux-nat.h: Include "nat/x86-linux.h".
10706 (x86_linux_nat_target) <low_new_fork, low_forget_process,
10707 low_prepare_to_resume, low_new_thread, low_delete_thread>:
10708 Override methods.
10709
57810aa7
PA
107102018-05-02 Pedro Alves <palves@redhat.com>
10711
10712 * target.h (target_ops)
10713 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10714 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
10715 stopped_by_watchpoint, have_continuable_watchpoint,
10716 stopped_data_address, watchpoint_addr_within_range,
10717 can_accel_watchpoint_condition, can_run, thread_alive,
10718 has_all_memory, has_memory, has_stack, has_registers,
10719 has_execution, can_async_p, is_async_p, supports_non_stop,
10720 always_non_stop_p, can_execute_reverse, supports_multi_process,
10721 supports_enable_disable_tracepoint,
10722 supports_disable_randomization, supports_string_tracing,
10723 supports_evaluation_of_breakpoint_conditions,
10724 can_run_breakpoint_commands, filesystem_is_local,
10725 can_download_tracepoint, get_trace_state_variable_value,
10726 set_trace_notes, get_tib_address, use_agent, can_use_agent,
10727 record_is_replaying, record_will_replay,
10728 augmented_libraries_svr4_read>: Adjust to return bool.
10729 * aarch64-linux-nat.c: All implementations adjusted.
10730 * aix-thread.c: All implementations adjusted.
10731 * arm-linux-nat.c: All implementations adjusted.
10732 * breakpoint.c: All implementations adjusted.
10733 * bsd-kvm.c: All implementations adjusted.
10734 * bsd-uthread.c: All implementations adjusted.
10735 * corelow.c: All implementations adjusted.
10736 * ctf.c: All implementations adjusted.
10737 * darwin-nat.c: All implementations adjusted.
10738 * darwin-nat.h: All implementations adjusted.
10739 * exec.c: All implementations adjusted.
10740 * fbsd-nat.c: All implementations adjusted.
10741 * fbsd-nat.h: All implementations adjusted.
10742 * gnu-nat.c: All implementations adjusted.
10743 * gnu-nat.h: All implementations adjusted.
10744 * go32-nat.c: All implementations adjusted.
10745 * ia64-linux-nat.c: All implementations adjusted.
10746 * inf-child.c: All implementations adjusted.
10747 * inf-child.h: All implementations adjusted.
10748 * inf-ptrace.c: All implementations adjusted.
10749 * inf-ptrace.h: All implementations adjusted.
10750 * linux-nat.c: All implementations adjusted.
10751 * linux-nat.h: All implementations adjusted.
10752 * mips-linux-nat.c: All implementations adjusted.
10753 * nto-procfs.c: All implementations adjusted.
10754 * ppc-linux-nat.c: All implementations adjusted.
10755 * procfs.c: All implementations adjusted.
10756 * ravenscar-thread.c: All implementations adjusted.
10757 * record-btrace.c: All implementations adjusted.
10758 * record-full.c: All implementations adjusted.
10759 * remote-sim.c: All implementations adjusted.
10760 * remote.c: All implementations adjusted.
10761 * s390-linux-nat.c: All implementations adjusted.
10762 * sol-thread.c: All implementations adjusted.
10763 * spu-multiarch.c: All implementations adjusted.
10764 * target-delegates.c: All implementations adjusted.
10765 * target.c: All implementations adjusted.
10766 * target.h: All implementations adjusted.
10767 * tracefile-tfile.c: All implementations adjusted.
10768 * tracefile.c: All implementations adjusted.
10769 * tracefile.h: All implementations adjusted.
10770 * windows-nat.c: All implementations adjusted.
10771 * x86-linux-nat.h: All implementations adjusted.
10772 * x86-nat.h: All implementations adjusted.
10773
ad6a4e2d
PA
107742018-05-02 Pedro Alves <palves@redhat.com>
10775
10776 * make-target-delegates (scan_target_h): Don't trim lines here.
10777 Replace sequences of tabs and/or whitespace with a single
10778 whitespace.
10779 (top level, parsing methods): Trim each line before processing it
10780 here.
10781
f6ac5f3d
PA
107822018-05-02 Pedro Alves <palves@redhat.com>
10783 John Baldwin <jhb@freebsd.org>
10784
10785 * target.h (enum strata) <debug_stratum>: New.
10786 (struct target_ops) <all delegation methods>: Replace by C++
10787 virtual methods, and drop "to_" prefix. All references updated
10788 throughout.
10789 <to_shortname, to_longname, to_doc, to_data,
10790 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
10791 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
10792 virtual methods. All references updated throughout.
10793 <can_attach, supports_terminal_ours, can_create_inferior,
10794 get_thread_control_capabilities, attach_no_wait>: New
10795 virtual methods.
10796 <insert_breakpoint, remove_breakpoint>: Now
10797 TARGET_DEFAULT_NORETURN methods.
10798 <info_proc>: Now returns bool.
10799 <to_magic>: Delete.
10800 (OPS_MAGIC): Delete.
10801 (current_target): Delete. All references replaced by references
10802 to ...
10803 (target_stack): ... this. New.
10804 (target_shortname, target_longname): Adjust.
10805 (target_can_run): Now a function declaration.
10806 (default_child_has_all_memory, default_child_has_memory)
10807 (default_child_has_stack, default_child_has_registers)
10808 (default_child_has_execution): Remove target_ops parameter.
10809 (complete_target_initialization): Delete.
10810 (memory_breakpoint_target): New template class.
10811 (test_target_ops): Refactor as a C++ class with virtual methods.
10812 * make-target-delegates (NAME_PART): Tighten.
10813 (POINTER_PART, CP_SYMBOL): New.
10814 (SIMPLE_RETURN_PART): Reimplement.
10815 (VEC_RETURN_PART): Expect less.
10816 (RETURN_PART, VIRTUAL_PART): New.
10817 (METHOD): Adjust to C++ virtual methods.
10818 (scan_target_h): Remove reference to C99.
10819 (dname): Output "target_ops::" prefix.
10820 (write_function_header): Adjust to output a C++ class method.
10821 (write_declaration): New.
10822 (write_delegator): Adjust to output a C++ class method.
10823 (tdname): Output "dummy_target::" prefix.
10824 (write_tdefault, write_debugmethod): Adjust to output a C++ class
10825 method.
10826 (tdefault_names, debug_names): Delete.
10827 (return_types, tdefaults, styles, argtypes_array): New.
10828 (top level): All methods are delegators.
10829 (print_class): New.
10830 (top level): Print dummy_target and debug_target classes.
10831 * target-delegates.c: Regenerate.
10832 * target-debug.h (target_debug_print_enum_info_proc_what)
10833 (target_debug_print_thread_control_capabilities)
10834 (target_debug_print_thread_info_p): New.
10835 * target.c (dummy_target): Delete.
10836 (the_dummy_target, the_debug_target): New.
10837 (target_stack): Now extern.
10838 (set_targetdebug): Push/unpush debug target.
10839 (default_child_has_all_memory, default_child_has_memory)
10840 (default_child_has_stack, default_child_has_registers)
10841 (default_child_has_execution): Remove target_ops parameter.
10842 (complete_target_initialization): Delete.
10843 (add_target_with_completer): No longer call
10844 complete_target_initialization.
10845 (target_supports_terminal_ours): Use regular delegation.
10846 (update_current_target): Delete.
10847 (push_target): No longer check magic number. Don't call
10848 update_current_target.
10849 (unpush_target): Don't call update_current_target.
10850 (target_is_pushed): No longer check magic number.
10851 (target_require_runnable): Skip for all stratums over
10852 process_stratum.
10853 (target_ops::info_proc): New.
10854 (target_info_proc): Use find_target_at and
10855 find_default_run_target.
10856 (target_supports_disable_randomization): Use regular delegation.
10857 (target_get_osdata): Use find_target_at.
10858 (target_ops::open, target_ops::close, target_ops::can_attach)
10859 (target_ops::attach, target_ops::can_create_inferior)
10860 (target_ops::create_inferior, target_ops::can_run)
10861 (target_can_run): New.
10862 (default_fileio_target): Use regular delegation.
10863 (target_ops::fileio_open, target_ops::fileio_pwrite)
10864 (target_ops::fileio_pread, target_ops::fileio_fstat)
10865 (target_ops::fileio_close, target_ops::fileio_unlink)
10866 (target_ops::fileio_readlink): New.
10867 (target_fileio_open_1, target_fileio_unlink)
10868 (target_fileio_readlink): Always call the target method. Handle
10869 FILEIO_ENOSYS.
10870 (return_zero, return_zero_has_execution): Delete.
10871 (init_dummy_target): Delete.
10872 (dummy_target::dummy_target, dummy_target::shortname)
10873 (dummy_target::longname, dummy_target::doc)
10874 (debug_target::debug_target, debug_target::shortname)
10875 (debug_target::longname, debug_target::doc): New.
10876 (target_supports_delete_record): Use regular delegation.
10877 (setup_target_debug): Delete.
10878 (maintenance_print_target_stack): Skip debug_stratum.
10879 (initialize_targets): Instantiate the_dummy_target and
10880 the_debug_target.
10881 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
10882 use target_stack.
10883 (target_auxv_search, fprint_target_auxv): Adjust.
10884 (info_auxv_command): Adjust to use target_stack.
10885 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
10886 * exceptions.c (print_flush): Handle a NULL target_stack.
10887 * regcache.c (target_ops_no_register): Refactor as class with
10888 virtual methods.
10889
10890 * exec.c (exec_target): New class.
10891 (exec_ops): Now an exec_target.
10892 (exec_open, exec_close_1, exec_get_section_table)
10893 (exec_xfer_partial, exec_files_info, exec_has_memory)
10894 (exec_make_note_section): Refactor as exec_target methods.
10895 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
10896 Delete.
10897 (exec_target::find_memory_regions): New.
10898 (_initialize_exec): Don't call init_exec_ops.
10899 * gdbcore.h (exec_file_clear): Delete.
10900
10901 * corefile.c (core_target): Delete.
10902 (core_file_command): Adjust.
10903 * corelow.c (core_target): New class.
10904 (the_core_target): New.
10905 (core_close): Remove target_ops parameter.
10906 (core_close_cleanup): Adjust.
10907 (core_target::close): New.
10908 (core_open, core_detach, get_core_registers, core_files_info)
10909 (core_xfer_partial, core_thread_alive, core_read_description)
10910 (core_pid_to_str, core_thread_name, core_has_memory)
10911 (core_has_stack, core_has_registers, core_info_proc): Rework as
10912 core_target methods.
10913 (ignore, core_remove_breakpoint, init_core_ops): Delete.
10914 (_initialize_corelow): Initialize the_core_target.
10915 * gdbcore.h (core_target): Delete.
10916 (the_core_target): New.
10917
10918 * ctf.c: (ctf_target): New class.
10919 (ctf_ops): Now a ctf_target.
10920 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
10921 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
10922 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
10923 methods.
10924 (init_ctf_ops): Delete.
10925 (_initialize_ctf): Don't call it.
10926 * tracefile-tfile.c (tfile_target): New class.
10927 (tfile_ops): Now a tfile_target.
10928 (tfile_open, tfile_close, tfile_files_info)
10929 (tfile_get_tracepoint_status, tfile_trace_find)
10930 (tfile_fetch_registers, tfile_xfer_partial)
10931 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
10932 Refactor as tfile_target methods.
10933 (tfile_xfer_partial_features): Remove target_ops parameter.
10934 (init_tfile_ops): Delete.
10935 (_initialize_tracefile_tfile): Don't call it.
10936 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
10937 (tracefile_has_stack, tracefile_has_registers)
10938 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
10939 tracefile_target methods.
10940 (init_tracefile_ops): Delete.
10941 (tracefile_target::tracefile_target): New.
10942 * tracefile.h: Include "target.h".
10943 (tracefile_target): New class.
10944 (init_tracefile_ops): Delete.
10945
10946 * spu-multiarch.c (spu_multiarch_target): New class.
10947 (spu_ops): Now a spu_multiarch_target.
10948 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
10949 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
10950 (spu_search_memory, spu_mourn_inferior): Refactor as
10951 spu_multiarch_target methods.
10952 (init_spu_ops): Delete.
10953 (_initialize_spu_multiarch): Remove references to init_spu_ops,
10954 complete_target_initialization.
10955
10956 * ravenscar-thread.c (ravenscar_thread_target): New class.
10957 (ravenscar_ops): Now a ravenscar_thread_target.
10958 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
10959 (ravenscar_thread_alive, ravenscar_pid_to_str)
10960 (ravenscar_fetch_registers, ravenscar_store_registers)
10961 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
10962 (ravenscar_stopped_by_hw_breakpoint)
10963 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
10964 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
10965 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
10966 methods.
10967 (init_ravenscar_thread_ops): Delete.
10968 (_initialize_ravenscar): Remove references to
10969 init_ravenscar_thread_ops and complete_target_initialization.
10970
10971 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
10972 (bsd_uthread_target): New class.
10973 (bsd_uthread_ops): Now a bsd_uthread_target.
10974 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
10975 (bsd_uthread_close, bsd_uthread_mourn_inferior)
10976 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
10977 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
10978 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
10979 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
10980 (bsd_uthread_target): Delete function.
10981 (_initialize_bsd_uthread): Remove reference to
10982 complete_target_initialization.
10983
10984 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
10985 (target_bfd): ... this new class.
10986 (target_bfd_xfer_partial, target_bfd_get_section_table)
10987 (target_bfd_close): Refactor as target_bfd methods.
10988 (target_bfd::~target_bfd): New.
10989 (target_bfd_reopen): Adjust.
10990 (target_bfd::close): New.
10991
10992 * record-btrace.c (record_btrace_target): New class.
10993 (record_btrace_ops): Now a record_btrace_target.
10994 (record_btrace_open, record_btrace_stop_recording)
10995 (record_btrace_disconnect, record_btrace_close)
10996 (record_btrace_async, record_btrace_info)
10997 (record_btrace_insn_history, record_btrace_insn_history_range)
10998 (record_btrace_insn_history_from, record_btrace_call_history)
10999 (record_btrace_call_history_range)
11000 (record_btrace_call_history_from, record_btrace_record_method)
11001 (record_btrace_is_replaying, record_btrace_will_replay)
11002 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
11003 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
11004 (record_btrace_store_registers, record_btrace_prepare_to_store)
11005 (record_btrace_to_get_unwinder)
11006 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
11007 (record_btrace_commit_resume, record_btrace_wait)
11008 (record_btrace_stop, record_btrace_can_execute_reverse)
11009 (record_btrace_stopped_by_sw_breakpoint)
11010 (record_btrace_supports_stopped_by_sw_breakpoint)
11011 (record_btrace_stopped_by_hw_breakpoint)
11012 (record_btrace_supports_stopped_by_hw_breakpoint)
11013 (record_btrace_update_thread_list, record_btrace_thread_alive)
11014 (record_btrace_goto_begin, record_btrace_goto_end)
11015 (record_btrace_goto, record_btrace_stop_replaying_all)
11016 (record_btrace_execution_direction)
11017 (record_btrace_prepare_to_generate_core)
11018 (record_btrace_done_generating_core): Refactor as
11019 record_btrace_target methods.
11020 (init_record_btrace_ops): Delete.
11021 (_initialize_record_btrace): Remove reference to
11022 init_record_btrace_ops.
11023 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
11024 the execution_direction global.
11025 (record_full_base_target, record_full_target)
11026 (record_full_core_target): New classes.
11027 (record_full_ops): Now a record_full_target.
11028 (record_full_core_ops): Now a record_full_core_target.
11029 (record_full_target::detach, record_full_target::disconnect)
11030 (record_full_core_target::disconnect)
11031 (record_full_target::mourn_inferior, record_full_target::kill):
11032 New.
11033 (record_full_open, record_full_close, record_full_async): Refactor
11034 as methods of the record_full_base_target class.
11035 (record_full_resume, record_full_commit_resume): Refactor
11036 as methods of the record_full_target class.
11037 (record_full_wait, record_full_stopped_by_watchpoint)
11038 (record_full_stopped_data_address)
11039 (record_full_stopped_by_sw_breakpoint)
11040 (record_full_supports_stopped_by_sw_breakpoint)
11041 (record_full_stopped_by_hw_breakpoint)
11042 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
11043 methods of the record_full_base_target class.
11044 (record_full_store_registers, record_full_xfer_partial)
11045 (record_full_insert_breakpoint, record_full_remove_breakpoint):
11046 Refactor as methods of the record_full_target class.
11047 (record_full_can_execute_reverse, record_full_get_bookmark)
11048 (record_full_goto_bookmark, record_full_execution_direction)
11049 (record_full_record_method, record_full_info, record_full_delete)
11050 (record_full_is_replaying, record_full_will_replay)
11051 (record_full_goto_begin, record_full_goto_end, record_full_goto)
11052 (record_full_stop_replaying): Refactor as methods of the
11053 record_full_base_target class.
11054 (record_full_core_resume, record_full_core_kill)
11055 (record_full_core_fetch_registers)
11056 (record_full_core_prepare_to_store)
11057 (record_full_core_store_registers, record_full_core_xfer_partial)
11058 (record_full_core_insert_breakpoint)
11059 (record_full_core_remove_breakpoint)
11060 (record_full_core_has_execution): Refactor
11061 as methods of the record_full_core_target class.
11062 (record_full_base_target::supports_delete_record): New.
11063 (init_record_full_ops): Delete.
11064 (init_record_full_core_ops): Delete.
11065 (record_full_save): Refactor as method of the
11066 record_full_base_target class.
11067 (_initialize_record_full): Remove references to
11068 init_record_full_ops and init_record_full_core_ops.
11069
11070 * remote.c (remote_target, extended_remote_target): New classes.
11071 (remote_ops): Now a remote_target.
11072 (extended_remote_ops): Now an extended_remote_target.
11073 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
11074 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
11075 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
11076 (remote_pass_signals, remote_set_syscall_catchpoint)
11077 (remote_program_signals, )
11078 (remote_thread_always_alive): Remove target_ops parameter.
11079 (remote_thread_alive, remote_thread_name)
11080 (remote_update_thread_list, remote_threads_extra_info)
11081 (remote_static_tracepoint_marker_at)
11082 (remote_static_tracepoint_markers_by_strid)
11083 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
11084 (remote_open): Refactor as methods of remote_target.
11085 (extended_remote_open, extended_remote_detach)
11086 (extended_remote_attach, extended_remote_post_attach):
11087 (extended_remote_supports_disable_randomization)
11088 (extended_remote_create_inferior): : Refactor as method of
11089 extended_remote_target.
11090 (remote_set_permissions, remote_open_1, remote_detach)
11091 (remote_follow_fork, remote_follow_exec, remote_disconnect)
11092 (remote_resume, remote_commit_resume, remote_stop)
11093 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
11094 (remote_terminal_ours, remote_wait, remote_fetch_registers)
11095 (remote_prepare_to_store, remote_store_registers)
11096 (remote_flash_erase, remote_flash_done, remote_files_info)
11097 (remote_kill, remote_mourn, remote_insert_breakpoint)
11098 (remote_remove_breakpoint, remote_insert_watchpoint)
11099 (remote_watchpoint_addr_within_range)
11100 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
11101 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
11102 (remote_supports_stopped_by_sw_breakpoint)
11103 (remote_stopped_by_hw_breakpoint)
11104 (remote_supports_stopped_by_hw_breakpoint)
11105 (remote_stopped_by_watchpoint, remote_stopped_data_address)
11106 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
11107 (remote_verify_memory): Refactor as methods of remote_target.
11108 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
11109 parameter.
11110 (remote_xfer_partial, remote_get_memory_xfer_limit)
11111 (remote_search_memory, remote_rcmd, remote_memory_map)
11112 (remote_pid_to_str, remote_get_thread_local_address)
11113 (remote_get_tib_address, remote_read_description): Refactor as
11114 methods of remote_target.
11115 (remote_target::fileio_open, remote_target::fileio_pwrite)
11116 (remote_target::fileio_pread, remote_target::fileio_close): New.
11117 (remote_hostio_readlink, remote_hostio_fstat)
11118 (remote_filesystem_is_local, remote_can_execute_reverse)
11119 (remote_supports_non_stop, remote_supports_disable_randomization)
11120 (remote_supports_multi_process, remote_supports_cond_breakpoints)
11121 (remote_supports_enable_disable_tracepoint)
11122 (remote_supports_string_tracing)
11123 (remote_can_run_breakpoint_commands, remote_trace_init)
11124 (remote_download_tracepoint, remote_can_download_tracepoint)
11125 (remote_download_trace_state_variable, remote_enable_tracepoint)
11126 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
11127 (remote_trace_start, remote_get_trace_status)
11128 (remote_get_tracepoint_status, remote_trace_stop)
11129 (remote_trace_find, remote_get_trace_state_variable_value)
11130 (remote_save_trace_data, remote_get_raw_trace_data)
11131 (remote_set_disconnected_tracing, remote_core_of_thread)
11132 (remote_set_circular_trace_buffer, remote_traceframe_info)
11133 (remote_get_min_fast_tracepoint_insn_len)
11134 (remote_set_trace_buffer_size, remote_set_trace_notes)
11135 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
11136 (remote_disable_btrace, remote_teardown_btrace)
11137 (remote_read_btrace, remote_btrace_conf)
11138 (remote_augmented_libraries_svr4_read, remote_load)
11139 (remote_pid_to_exec_file, remote_can_do_single_step)
11140 (remote_execution_direction, remote_thread_handle_to_thread_info):
11141 Refactor as methods of remote_target.
11142 (init_remote_ops, init_extended_remote_ops): Delete.
11143 (remote_can_async_p, remote_is_async_p, remote_async)
11144 (remote_thread_events, remote_upload_tracepoints)
11145 (remote_upload_trace_state_variables): Refactor as methods of
11146 remote_target.
11147 (_initialize_remote): Remove references to init_remote_ops and
11148 init_extended_remote_ops.
11149
11150 * remote-sim.c (gdbsim_target): New class.
11151 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
11152 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
11153 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
11154 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
11155 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
11156 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
11157 Refactor as methods of gdbsim_target.
11158 (gdbsim_ops): Now a gdbsim_target.
11159 (init_gdbsim_ops): Delete.
11160 (gdbsim_cntrl_c): Adjust.
11161 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
11162
11163 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
11164 (the_amd64_linux_nat_target): New.
11165 (amd64_linux_fetch_inferior_registers)
11166 (amd64_linux_store_inferior_registers): Refactor as methods of
11167 amd64_linux_nat_target.
11168 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
11169 * i386-linux-nat.c: Don't include "linux-nat.h".
11170 (i386_linux_nat_target): New class.
11171 (the_i386_linux_nat_target): New.
11172 (i386_linux_fetch_inferior_registers)
11173 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
11174 as methods of i386_linux_nat_target.
11175 (_initialize_i386_linux_nat): Adjust. Set linux_target.
11176 * inf-child.c (inf_child_ops): Delete.
11177 (inf_child_fetch_inferior_registers)
11178 (inf_child_store_inferior_registers): Delete.
11179 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
11180 methods of inf_child_target.
11181 (inf_child_target::supports_terminal_ours)
11182 (inf_child_target::terminal_init)
11183 (inf_child_target::terminal_inferior)
11184 (inf_child_target::terminal_ours_for_output)
11185 (inf_child_target::terminal_ours, inf_child_target::interrupt)
11186 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
11187 New.
11188 (inf_child_open, inf_child_disconnect, inf_child_close)
11189 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
11190 (inf_child_post_startup_inferior, inf_child_can_run)
11191 (inf_child_pid_to_exec_file): Refactor as methods of
11192 inf_child_target.
11193 (inf_child_follow_fork): Delete.
11194 (inf_child_target::can_create_inferior)
11195 (inf_child_target::can_attach): New.
11196 (inf_child_target::has_all_memory, inf_child_target::has_memory)
11197 (inf_child_target::has_stack, inf_child_target::has_registers)
11198 (inf_child_target::has_execution): New.
11199 (inf_child_fileio_open, inf_child_fileio_pwrite)
11200 (inf_child_fileio_pread, inf_child_fileio_fstat)
11201 (inf_child_fileio_close, inf_child_fileio_unlink)
11202 (inf_child_fileio_readlink, inf_child_use_agent)
11203 (inf_child_can_use_agent): Refactor as methods of
11204 inf_child_target.
11205 (return_zero, inf_child_target): Delete.
11206 (inf_child_target::inf_child_target): New.
11207 * inf-child.h: Include "target.h".
11208 (inf_child_target): Delete function prototype.
11209 (inf_child_target): New class.
11210 (inf_child_open_target, inf_child_mourn_inferior)
11211 (inf_child_maybe_unpush_target): Delete.
11212 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
11213 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
11214 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
11215 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
11216 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
11217 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
11218 (inf_ptrace_wait, inf_ptrace_xfer_partial)
11219 (inf_ptrace_thread_alive, inf_ptrace_files_info)
11220 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
11221 methods of inf_ptrace_target.
11222 (inf_ptrace_target): Delete function.
11223 * inf-ptrace.h: Include "inf-child.h".
11224 (inf_ptrace_target): Delete function declaration.
11225 (inf_ptrace_target): New class.
11226 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
11227 * linux-nat.c (linux_target): New.
11228 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
11229 (linux_nat_target::~linux_nat_target): New.
11230 (linux_child_post_attach, linux_child_post_startup_inferior)
11231 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
11232 (linux_child_remove_fork_catchpoint)
11233 (linux_child_insert_vfork_catchpoint)
11234 (linux_child_remove_vfork_catchpoint)
11235 (linux_child_insert_exec_catchpoint)
11236 (linux_child_remove_exec_catchpoint)
11237 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
11238 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
11239 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
11240 (linux_nat_stopped_data_address)
11241 (linux_nat_stopped_by_sw_breakpoint)
11242 (linux_nat_supports_stopped_by_sw_breakpoint)
11243 (linux_nat_stopped_by_hw_breakpoint)
11244 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
11245 (linux_nat_kill, linux_nat_mourn_inferior)
11246 (linux_nat_xfer_partial, linux_nat_thread_alive)
11247 (linux_nat_update_thread_list, linux_nat_pid_to_str)
11248 (linux_nat_thread_name, linux_child_pid_to_exec_file)
11249 (linux_child_static_tracepoint_markers_by_strid)
11250 (linux_nat_is_async_p, linux_nat_can_async_p)
11251 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
11252 (linux_nat_supports_multi_process)
11253 (linux_nat_supports_disable_randomization, linux_nat_async)
11254 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
11255 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
11256 (linux_nat_fileio_open, linux_nat_fileio_readlink)
11257 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
11258 methods of linux_nat_target.
11259 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
11260 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
11261 parameter.
11262 (check_stopped_by_watchpoint): Adjust.
11263 (linux_xfer_partial): Delete.
11264 (linux_target_install_ops, linux_target, linux_nat_add_target):
11265 Delete.
11266 (linux_nat_target::linux_nat_target): New.
11267 * linux-nat.h: Include "inf-ptrace.h".
11268 (linux_nat_target): New.
11269 (linux_target, linux_target_install_ops, linux_nat_add_target):
11270 Delete function declarations.
11271 (linux_target): Declare global.
11272 * linux-thread-db.c (thread_db_target): New.
11273 (thread_db_target::thread_db_target): New.
11274 (thread_db_ops): Delete.
11275 (the_thread_db_target): New.
11276 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
11277 (thread_db_update_thread_list, thread_db_pid_to_str)
11278 (thread_db_extra_thread_info)
11279 (thread_db_thread_handle_to_thread_info)
11280 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
11281 (thread_db_resume): Refactor as methods of thread_db_target.
11282 (init_thread_db_ops): Delete.
11283 (_initialize_thread_db): Remove reference to init_thread_db_ops.
11284 * x86-linux-nat.c: Don't include "linux-nat.h".
11285 (super_post_startup_inferior): Delete.
11286 (x86_linux_nat_target::~x86_linux_nat_target): New.
11287 (x86_linux_child_post_startup_inferior)
11288 (x86_linux_read_description, x86_linux_enable_btrace)
11289 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
11290 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
11291 methods of x86_linux_nat_target.
11292 (x86_linux_create_target): Delete. Bits folded ...
11293 (x86_linux_add_target): ... here. Now takes a linux_nat_target
11294 pointer.
11295 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
11296 (x86_linux_nat_target): New class.
11297 (x86_linux_create_target): Delete.
11298 (x86_linux_add_target): Now takes a linux_nat_target pointer.
11299 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
11300 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
11301 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
11302 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
11303 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
11304 make extern.
11305 (x86_use_watchpoints): Delete.
11306 * x86-nat.h: Include "breakpoint.h" and "target.h".
11307 (x86_use_watchpoints): Delete.
11308 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
11309 (x86_stopped_by_watchpoint, x86_stopped_data_address)
11310 (x86_insert_watchpoint, x86_remove_watchpoint)
11311 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
11312 (x86_stopped_by_hw_breakpoint): New declarations.
11313 (x86_nat_target): New template class.
11314
11315 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
11316 (the_ppc_linux_nat_target): New.
11317 (ppc_linux_fetch_inferior_registers)
11318 (ppc_linux_can_use_hw_breakpoint)
11319 (ppc_linux_region_ok_for_hw_watchpoint)
11320 (ppc_linux_ranged_break_num_registers)
11321 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
11322 (ppc_linux_insert_mask_watchpoint)
11323 (ppc_linux_remove_mask_watchpoint)
11324 (ppc_linux_can_accel_watchpoint_condition)
11325 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
11326 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
11327 (ppc_linux_watchpoint_addr_within_range)
11328 (ppc_linux_masked_watch_num_registers)
11329 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
11330 (ppc_linux_read_description): Refactor as methods of
11331 ppc_linux_nat_target.
11332 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
11333
11334 * procfs.c (procfs_xfer_partial): Delete forward declaration.
11335 (procfs_target): New class.
11336 (the_procfs_target): New.
11337 (procfs_target): Delete function.
11338 (procfs_auxv_parse, procfs_attach, procfs_detach)
11339 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
11340 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
11341 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
11342 (procfs_create_inferior, procfs_update_thread_list)
11343 (procfs_thread_alive, procfs_pid_to_str)
11344 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
11345 (procfs_stopped_data_address, procfs_insert_watchpoint)
11346 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
11347 (proc_find_memory_regions, procfs_info_proc)
11348 (procfs_make_note_section): Refactor as methods of procfs_target.
11349 (_initialize_procfs): Adjust.
11350 * sol-thread.c (sol_thread_target): New class.
11351 (sol_thread_ops): Now a sol_thread_target.
11352 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
11353 (sol_thread_fetch_registers, sol_thread_store_registers)
11354 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
11355 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
11356 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
11357 (init_sol_thread_ops): Delete.
11358 (_initialize_sol_thread): Adjust. Remove references to
11359 init_sol_thread_ops and complete_target_initialization.
11360
11361 * windows-nat.c (windows_nat_target): New class.
11362 (windows_fetch_inferior_registers)
11363 (windows_store_inferior_registers, windows_resume, windows_wait)
11364 (windows_attach, windows_detach, windows_pid_to_exec_file)
11365 (windows_files_info, windows_create_inferior)
11366 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
11367 (windows_close, windows_pid_to_str, windows_xfer_partial)
11368 (windows_get_tib_address, windows_get_ada_task_ptid)
11369 (windows_thread_name, windows_thread_alive): Refactor as
11370 windows_nat_target methods.
11371 (do_initial_windows_stuff): Adjust.
11372 (windows_target): Delete function.
11373 (_initialize_windows_nat): Adjust.
11374
11375 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
11376 (darwin_mourn_inferior, darwin_kill_inferior)
11377 (darwin_create_inferior, darwin_attach, darwin_detach)
11378 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
11379 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
11380 (darwin_supports_multi_process): Refactor as darwin_nat_target
11381 methods.
11382 (darwin_resume_to, darwin_files_info): Delete.
11383 (_initialize_darwin_inferior): Rename to ...
11384 (_initialize_darwin_nat): ... this. Adjust to C++ification.
11385 * darwin-nat.h: Include "inf-child.h".
11386 (darwin_nat_target): New class.
11387 (darwin_complete_target): Delete.
11388 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
11389 (darwin_target): New.
11390 (i386_darwin_fetch_inferior_registers)
11391 (i386_darwin_store_inferior_registers): Refactor as methods of
11392 darwin_nat_target.
11393 (darwin_complete_target): Delete, with ...
11394 (_initialize_i386_darwin_nat): ... bits factored out here.
11395
11396 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
11397 (the_alpha_linux_nat_target): New.
11398 (alpha_linux_register_u_offset): Refactor as
11399 alpha_linux_nat_target method.
11400 (_initialize_alpha_linux_nat): Adjust.
11401 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
11402 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11403 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
11404 methods of linux_nat_trad_target.
11405 (linux_trad_target): Delete.
11406 * linux-nat-trad.h (linux_trad_target): Delete function.
11407 (linux_nat_trad_target): New class.
11408 * mips-linux-nat.c (mips_linux_nat_target): New class.
11409 (super_fetch_registers, super_store_registers, super_close):
11410 Delete.
11411 (the_mips_linux_nat_target): New.
11412 (mips64_linux_regsets_fetch_registers)
11413 (mips64_linux_regsets_store_registers)
11414 (mips64_linux_fetch_registers, mips64_linux_store_registers)
11415 (mips_linux_register_u_offset, mips_linux_read_description)
11416 (mips_linux_can_use_hw_breakpoint)
11417 (mips_linux_stopped_by_watchpoint)
11418 (mips_linux_stopped_data_address)
11419 (mips_linux_region_ok_for_hw_watchpoint)
11420 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
11421 (mips_linux_close): Refactor as methods of mips_linux_nat.
11422 (_initialize_mips_linux_nat): Adjust to C++ification.
11423
11424 * aix-thread.c (aix_thread_target): New class.
11425 (aix_thread_ops): Now an aix_thread_target.
11426 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
11427 (aix_thread_fetch_registers, aix_thread_store_registers)
11428 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
11429 (aix_thread_thread_alive, aix_thread_pid_to_str)
11430 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
11431 Refactor as methods of aix_thread_target.
11432 (init_aix_thread_ops): Delete.
11433 (_initialize_aix_thread): Remove references to init_aix_thread_ops
11434 and complete_target_initialization.
11435 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
11436 (rs6000_nat_target): New class.
11437 (the_rs6000_nat_target): New.
11438 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
11439 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
11440 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
11441 (super_create_inferior): Delete.
11442 (_initialize_rs6000_nat): Adjust to C++ification.
11443
11444 * arm-linux-nat.c (arm_linux_nat_target): New class.
11445 (the_arm_linux_nat_target): New.
11446 (arm_linux_fetch_inferior_registers)
11447 (arm_linux_store_inferior_registers, arm_linux_read_description)
11448 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
11449 (arm_linux_remove_hw_breakpoint)
11450 (arm_linux_region_ok_for_hw_watchpoint)
11451 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
11452 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
11453 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
11454 arm_linux_nat_target.
11455 (_initialize_arm_linux_nat): Adjust to C++ification.
11456
11457 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
11458 (the_aarch64_linux_nat_target): New.
11459 (aarch64_linux_fetch_inferior_registers)
11460 (aarch64_linux_store_inferior_registers)
11461 (aarch64_linux_child_post_startup_inferior)
11462 (aarch64_linux_read_description)
11463 (aarch64_linux_can_use_hw_breakpoint)
11464 (aarch64_linux_insert_hw_breakpoint)
11465 (aarch64_linux_remove_hw_breakpoint)
11466 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
11467 (aarch64_linux_region_ok_for_hw_watchpoint)
11468 (aarch64_linux_stopped_data_address)
11469 (aarch64_linux_stopped_by_watchpoint)
11470 (aarch64_linux_watchpoint_addr_within_range)
11471 (aarch64_linux_can_do_single_step): Refactor as methods of
11472 aarch64_linux_nat_target.
11473 (super_post_startup_inferior): Delete.
11474 (_initialize_aarch64_linux_nat): Adjust to C++ification.
11475
11476 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
11477 (the_hppa_linux_nat_target): New.
11478 (hppa_linux_fetch_inferior_registers)
11479 (hppa_linux_store_inferior_registers): Refactor as methods of
11480 hppa_linux_nat_target.
11481 (_initialize_hppa_linux_nat): Adjust to C++ification.
11482
11483 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
11484 (the_ia64_linux_nat_target): New.
11485 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
11486 (ia64_linux_stopped_data_address)
11487 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
11488 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
11489 ia64_linux_nat_target methods.
11490 (super_xfer_partial): Delete.
11491 (_initialize_ia64_linux_nat): Adjust to C++ification.
11492
11493 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
11494 (the_m32r_linux_nat_target): New.
11495 (m32r_linux_fetch_inferior_registers)
11496 (m32r_linux_store_inferior_registers): Refactor as
11497 m32r_linux_nat_target methods.
11498 (_initialize_m32r_linux_nat): Adjust to C++ification.
11499
11500 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
11501 (the_m68k_linux_nat_target): New.
11502 (m68k_linux_fetch_inferior_registers)
11503 (m68k_linux_store_inferior_registers): Refactor as
11504 m68k_linux_nat_target methods.
11505 (_initialize_m68k_linux_nat): Adjust to C++ification.
11506
11507 * s390-linux-nat.c (s390_linux_nat_target): New class.
11508 (the_s390_linux_nat_target): New.
11509 (s390_linux_fetch_inferior_registers)
11510 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
11511 (s390_insert_watchpoint, s390_remove_watchpoint)
11512 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
11513 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
11514 (s390_auxv_parse, s390_read_description): Refactor as methods of
11515 s390_linux_nat_target.
11516 (_initialize_s390_nat): Adjust to C++ification.
11517
11518 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
11519 (the_sparc_linux_nat_target): New.
11520 (_initialize_sparc_linux_nat): Adjust to C++ification.
11521 * sparc-nat.c (sparc_fetch_inferior_registers)
11522 (sparc_store_inferior_registers): Remove target_ops parameter.
11523 * sparc-nat.h (sparc_fetch_inferior_registers)
11524 (sparc_store_inferior_registers): Remove target_ops parameter.
11525 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
11526 (the_sparc64_linux_nat_target): New.
11527 (_initialize_sparc64_linux_nat): Adjust to C++ification.
11528
11529 * spu-linux-nat.c (spu_linux_nat_target): New class.
11530 (the_spu_linux_nat_target): New.
11531 (spu_child_post_startup_inferior, spu_child_post_attach)
11532 (spu_child_wait, spu_fetch_inferior_registers)
11533 (spu_store_inferior_registers, spu_xfer_partial)
11534 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
11535 methods.
11536 (_initialize_spu_nat): Adjust to C++ification.
11537
11538 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
11539 (the_tilegx_linux_nat_target): New.
11540 (fetch_inferior_registers, store_inferior_registers):
11541 Refactor as methods.
11542 (_initialize_tile_linux_nat): Adjust to C++ification.
11543
11544 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
11545 (the_xtensa_linux_nat_target): New.
11546 (xtensa_linux_fetch_inferior_registers)
11547 (xtensa_linux_store_inferior_registers): Refactor as
11548 xtensa_linux_nat_target methods.
11549 (_initialize_xtensa_linux_nat): Adjust to C++ification.
11550
11551 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
11552 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
11553 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
11554 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
11555 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
11556 (fbsd_stopped_by_sw_breakpoint)
11557 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
11558 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
11559 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
11560 (fbsd_post_startup_inferior, fbsd_post_attach)
11561 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
11562 (fbsd_set_syscall_catchpoint)
11563 (super_xfer_partial, super_resume, super_wait)
11564 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
11565 (fbsd_handle_debug_trap): Remove target_ops parameter.
11566 (fbsd_nat_add_target): Delete.
11567 * fbsd-nat.h: Include "inf-ptrace.h".
11568 (fbsd_nat_add_target): Delete.
11569 (USE_SIGTRAP_SIGINFO): Define.
11570 (fbsd_nat_target): New class.
11571
11572 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
11573 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
11574 (amd64bsd_target): Delete.
11575 * amd64-bsd-nat.h: New file.
11576 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
11577 "x86-bsd-nat.h".
11578 (amd64_fbsd_nat_target): New class.
11579 (the_amd64_fbsd_nat_target): New.
11580 (amd64fbsd_read_description): Refactor as method of
11581 amd64_fbsd_nat_target.
11582 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11583 (_initialize_amd64fbsd_nat): Adjust to C++ification.
11584 * amd64-nat.h (amd64bsd_target): Delete function declaration.
11585 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
11586 (i386bsd_store_inferior_registers): Remove target_ops parameter.
11587 (i386bsd_target): Delete.
11588 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
11589 (i386bsd_fetch_inferior_registers)
11590 (i386bsd_store_inferior_registers): Declare.
11591 (i386_bsd_nat_target): New class.
11592 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
11593 (the_i386_fbsd_nat_target): New.
11594 (i386fbsd_resume, i386fbsd_read_description): Refactor as
11595 i386_fbsd_nat_target methods.
11596 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11597 (_initialize_i386fbsd_nat): Adjust to C++ification.
11598 * x86-bsd-nat.c (super_mourn_inferior): Delete.
11599 (x86bsd_mourn_inferior, x86bsd_target): Delete.
11600 (_initialize_x86_bsd_nat): Adjust to C++ification.
11601 * x86-bsd-nat.h: Include "x86-nat.h".
11602 (x86bsd_target): Delete declaration.
11603 (x86bsd_nat_target): New class.
11604
11605 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
11606 (the_aarch64_fbsd_nat_target): New.
11607 (aarch64_fbsd_fetch_inferior_registers)
11608 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
11609 aarch64_fbsd_nat_target.
11610 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
11611 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
11612 (the_alpha_bsd_nat_target): New.
11613 (alphabsd_fetch_inferior_registers)
11614 (alphabsd_store_inferior_registers): Refactor as
11615 alpha_bsd_nat_target methods.
11616 (_initialize_alphabsd_nat): Refactor as methods of
11617 alpha_bsd_nat_target.
11618 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
11619 (the_amd64_nbsd_nat_target): New.
11620 (_initialize_amd64nbsd_nat): Adjust to C++ification.
11621 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
11622 (the_amd64_obsd_nat_target): New.
11623 (_initialize_amd64obsd_nat): Adjust to C++ification.
11624 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
11625 (the_arm_fbsd_nat_target): New.
11626 (arm_fbsd_fetch_inferior_registers)
11627 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
11628 (_initialize_arm_fbsd_nat): Refactor as methods of
11629 arm_fbsd_nat_target.
11630 (_initialize_arm_fbsd_nat): Adjust to C++ification.
11631 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
11632 (the_arm_netbsd_nat_target): New.
11633 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
11634 arm_netbsd_nat_target.
11635 (_initialize_arm_netbsd_nat): Adjust to C++ification.
11636 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
11637 (the_hppa_nbsd_nat_target): New.
11638 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
11639 hppa_nbsd_nat_target methods.
11640 (_initialize_hppanbsd_nat): Adjust to C++ification.
11641 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
11642 (the_hppa_obsd_nat_target): New.
11643 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
11644 methods of hppa_obsd_nat_target.
11645 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
11646 add_target.
11647 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
11648 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
11649 add_target.
11650 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
11651 (_initialize_i386obsd_nat): Use add_target.
11652 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
11653 (the_m68k_bsd_nat_target): New.
11654 (m68kbsd_fetch_inferior_registers)
11655 (m68kbsd_store_inferior_registers): Refactor as methods of
11656 m68k_bsd_nat_target.
11657 (_initialize_m68kbsd_nat): Adjust to C++ification.
11658 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
11659 (the_mips_fbsd_nat_target): New.
11660 (mips_fbsd_fetch_inferior_registers)
11661 (mips_fbsd_store_inferior_registers): Refactor as methods of
11662 mips_fbsd_nat_target.
11663 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
11664 add_target.
11665 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
11666 (the_mips_nbsd_nat_target): New.
11667 (mipsnbsd_fetch_inferior_registers)
11668 (mipsnbsd_store_inferior_registers): Refactor as methods of
11669 mips_nbsd_nat_target.
11670 (_initialize_mipsnbsd_nat): Adjust to C++ification.
11671 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
11672 (the_mips64_obsd_nat_target): New.
11673 (mips64obsd_fetch_inferior_registers)
11674 (mips64obsd_store_inferior_registers): Refactor as methods of
11675 mips64_obsd_nat_target.
11676 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
11677 add_target.
11678 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
11679 nbsd_nat_target.
11680 * nbsd-nat.h: Include "inf-ptrace.h".
11681 (nbsd_nat_target): New class.
11682 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
11683 (obsd_wait): Refactor as methods of obsd_nat_target.
11684 (obsd_add_target): Delete.
11685 * obsd-nat.h: Include "inf-ptrace.h".
11686 (obsd_nat_target): New class.
11687 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
11688 (the_ppc_fbsd_nat_target): New.
11689 (ppcfbsd_fetch_inferior_registers)
11690 (ppcfbsd_store_inferior_registers): Refactor as methods of
11691 ppc_fbsd_nat_target.
11692 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
11693 add_target.
11694 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
11695 (the_ppc_nbsd_nat_target): New.
11696 (ppcnbsd_fetch_inferior_registers)
11697 (ppcnbsd_store_inferior_registers): Refactor as methods of
11698 ppc_nbsd_nat_target.
11699 (_initialize_ppcnbsd_nat): Adjust to C++ification.
11700 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
11701 (the_ppc_obsd_nat_target): New.
11702 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
11703 methods of ppc_obsd_nat_target.
11704 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
11705 add_target.
11706 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
11707 (the_sh_nbsd_nat_target): New.
11708 (shnbsd_fetch_inferior_registers)
11709 (shnbsd_store_inferior_registers): Refactor as methods of
11710 sh_nbsd_nat_target.
11711 (_initialize_shnbsd_nat): Adjust to C++ification.
11712 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
11713 (inf_ptrace_xfer_partial): Delete.
11714 (sparc_xfer_partial, sparc_target): Delete.
11715 * sparc-nat.h (sparc_fetch_inferior_registers)
11716 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
11717 (sparc_target): Delete function declaration.
11718 (sparc_target): New template class.
11719 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
11720 (_initialize_sparcnbsd_nat): Adjust to C++ification.
11721 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
11722 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
11723 add_target.
11724 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
11725 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
11726 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
11727 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
11728 add_target.
11729 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
11730 (the_vax_bsd_nat_target): New.
11731 (vaxbsd_fetch_inferior_registers)
11732 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
11733 methods.
11734 (_initialize_vaxbsd_nat): Adjust to C++ification.
11735
11736 * bsd-kvm.c (bsd_kvm_target): New class.
11737 (bsd_kvm_ops): Now a bsd_kvm_target.
11738 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
11739 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
11740 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
11741 bsd_kvm_target.
11742 (bsd_kvm_return_one): Delete.
11743 (bsd_kvm_add_target): Adjust to C++ification.
11744
11745 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
11746 (nto_procfs_target_procfs): New classes.
11747 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
11748 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
11749 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
11750 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
11751 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
11752 (procfs_remove_hw_breakpoint, procfs_resume)
11753 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
11754 (procfs_kill_inferior, procfs_store_registers)
11755 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
11756 as methods of nto_procfs_target.
11757 (nto_procfs_ops): Now an nto_procfs_target_procfs.
11758 (nto_native_ops): Delete.
11759 (procfs_open, procfs_native_open): Delete.
11760 (nto_native_ops): Now an nto_procfs_target_native.
11761 (init_procfs_targets): Adjust to C++ification.
11762 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
11763 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
11764 Refactor as methods of nto_procfs_target.
11765
11766 * go32-nat.c (go32_nat_target): New class.
11767 (the_go32_nat_target): New.
11768 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
11769 (go32_store_registers, go32_xfer_partial, go32_files_info)
11770 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
11771 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
11772 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
11773 (go32_pid_to_str): Refactor as methods of go32_nat_target.
11774 (go32_target): Delete.
11775 (_initialize_go32_nat): Adjust to C++ification.
11776
11777 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
11778 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
11779 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
11780 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
11781 gnu_nat_target.
11782 (gnu_target): Delete.
11783 * gnu-nat.h (gnu_target): Delete.
11784 (gnu_nat_target): New class.
11785 * i386-gnu-nat.c (gnu_base_target): New.
11786 (i386_gnu_nat_target): New class.
11787 (the_i386_gnu_nat_target): New.
11788 (_initialize_i386gnu_nat): Adjust to C++ification.
11789
3fffc070
PA
117902018-05-02 Pedro Alves <palves@redhat.com>
11791
11792 * bfd-target.c (target_bfd_xclose): Rename to ...
11793 (target_bfd_close): ... this.
11794 (target_bfd_reopen): Adjust.
11795 * target.c (target_close): Remove references to to_xclose.
11796 * target.h (target_ops::to_xclose): Delete.
11797 (target_ops::to_close): Update comments.
11798
6798487f
PA
117992018-05-02 Pedro Alves <palves@redhat.com>
11800
11801 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
11802 "linux-nat.h".
11803 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
11804 * inf-ptrace.c (inf_ptrace_register_u_offset)
11805 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11806 (inf_ptrace_store_register, inf_ptrace_store_registers)
11807 (inf_ptrace_trad_target): Move to ...
11808 * linux-nat-trad.c: ... this new file.
11809 * linux-nat-trad.h: New file.
11810 * linux-nat.c (linux_target_install_ops): Make extern.
11811 (linux_trad_target): Delete.
11812 * linux-nat.h (linux_trad_target): Delete declaration.
11813 (linux_target_install_ops): Declare.
11814 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
11815 "linux-nat.h".
11816
c1955e17
PA
118172018-05-02 Pedro Alves <palves@redhat.com>
11818
11819 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11820 procfs_target/add_target here.
11821 * procfs.c (procfs_target): Make static.
11822 (_initialize_procfs): Call add_target here.
11823 * procfs.h (struct target_ops): Remove forward declaration.
11824 (procfs_target): Remove declaration.
11825 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
11826
b5c8fcb1
PA
118272018-05-02 Pedro Alves <palves@redhat.com>
11828
11829 * procfs.c (procfs_stopped_by_watchpoint)
11830 (procfs_insert_watchpoint, procfs_remove_watchpoint)
11831 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
11832 Forward declare.
11833 (procfs_use_watchpoints): Delete, move contents...
11834 (procfs_target): ... here.
11835 * procfs.h (procfs_use_watchpoints): Delete declaration.
11836 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11837 procfs_use_watchpoints.
11838 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
11839 procfs_use_watchpoints.
11840
0489430a
TT
118412018-05-02 Tom Tromey <tom@tromey.com>
11842
11843 PR python/20084:
11844 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
11845 and var_zuinteger_unlimited.
11846 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
11847 and PARAM_ZUINTEGER_UNLIMITED.
11848 (set_parameter_value): Handle var_zuinteger and
11849 var_zuinteger_unlimited.
11850 (add_setshow_generic): Likewise.
11851 (parmpy_init): Likewise.
11852
1632f8ba
DR
118532018-04-28 Dan Robertson <danlrobertson89@gmail.com>
11854
11855 PR rust/23124
11856 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
11857 pointer is not null before dereferencing it.
11858
76761936
TT
118592018-04-30 Tom Tromey <tom@tromey.com>
11860
11861 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
11862 is_mi_like_p.
11863
2d33446d
TT
118642018-04-30 Tom Tromey <tom@tromey.com>
11865
11866 * breakpoint.c (mention): Remove use of is_mi_like_p.
11867 (print_mention_ranged_breakpoint): Likewise.
11868 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
11869 of is_mi_like_p.
11870
f3c6abab
TT
118712018-04-30 Tom Tromey <tom@tromey.com>
11872
11873 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
11874
40c03530
TT
118752018-04-30 Tom Tromey <tom@tromey.com>
11876
11877 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
11878 (info_spu_event_command): Remove some uses of is_mi_like_p.
11879
2038b7fd
TT
118802018-04-30 Tom Tromey <tom@tromey.com>
11881
11882 * python/py-framefilter.c (py_print_single_arg)
11883 (enumerate_locals, py_print_args, py_print_frame): Remove some
11884 uses of is_mi_like_p.
11885
4904c3c6
TT
118862018-04-30 Tom Tromey <tom@tromey.com>
11887
11888 * ui-out.c: Update.
11889 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
11890 * ui-out.h (ui_out::is_mi_like_p): Now const.
11891 (ui_out::do_is_mi_like_p): Now const.
11892 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
11893
7c66fffc
TT
118942018-04-30 Tom Tromey <tom@tromey.com>
11895
11896 * varobj.c (varobj_set_visualizer): Use new_reference.
11897 * python/python.c (gdbpy_decode_line): Use new_reference.
11898 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
11899 new_reference.
11900
bbfa6f00
TT
119012018-04-30 Tom Tromey <tom@tromey.com>
11902
11903 * varobj.c (install_new_value): Use new_reference.
11904 * value.h (value_incref): Return void. Swap intro comment with
11905 value_decref.
11906 * value.c (set_value_parent): Use new_reference.
11907 (value_incref): Return void. Update intro comment.
11908 (release_value): Use new_reference.
11909 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
11910
1831a9f9
TT
119112018-04-30 Tom Tromey <tom@tromey.com>
11912
11913 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
11914 * gdb_bfd.h (new_bfd_ref): Remove.
11915 (gdb_bfd_open): Update comment.
11916 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11917 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
11918 (gdb_bfd_fdopenr): Use new_reference.
11919 * exec.c (exec_file_attach): Use new_reference.
11920
7c1b5f3d
TT
119212018-04-30 Tom Tromey <tom@tromey.com>
11922
11923 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
11924 method.
11925
e11fb955
TT
119262018-04-30 Tom Tromey <tom@tromey.com>
11927
11928 * jit.c (jit_read_code_entry): Use type_align.
11929 * i386-tdep.c (i386_gdbarch_init): Don't call
11930 set_gdbarch_long_long_align_bit.
11931 * gdbarch.sh: Remove long_long_align_bit.
11932 * gdbarch.c, gdbarch.h: Rebuild.
11933 * arc-tdep.c (arc_type_align): New function.
11934 (arc_gdbarch_init): Use arc_type_align. Don't call
11935 set_gdbarch_long_long_align_bit.
11936
2fff16dd
TT
119372018-04-30 Tom Tromey <tom@tromey.com>
11938
11939 * rust-lang.c (rust_type_alignment): Remove.
11940 (rust_composite_type): Use type_align.
11941
6d7bb824
TT
119422018-04-30 Tom Tromey <tom@tromey.com>
11943
11944 * NEWS: Mention Type.align.
11945 * python/py-type.c (typy_get_alignof): New function.
11946 (type_object_getset): Add "alignof".
11947
007e1530
TT
119482018-04-30 Tom Tromey <tom@tromey.com>
11949
11950 PR exp/17095:
11951 * NEWS: Update.
11952 * std-operator.def (UNOP_ALIGNOF): New operator.
11953 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
11954 New.
11955 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
11956 * c-lang.c (c_op_print_tab): Add alignof.
11957 * c-exp.y (ALIGNOF): New token.
11958 (exp): Add "ALIGNOF" production.
11959 (ident_tokens): Add _Alignof and alignof.
11960
2b4424c3
TT
119612018-04-30 Tom Tromey <tom@tromey.com>
11962
11963 * i386-tdep.c (i386_type_align): New function.
11964 (i386_gdbarch_init): Update.
11965 * gdbarch.sh (type_align): New method.
11966 * gdbarch.c, gdbarch.h: Rebuild.
11967 * arch-utils.h (default_type_align): Declare.
11968 * arch-utils.c (default_type_align): New function.
11969 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
11970 (struct type) <align_log2>: New field.
11971 <instance_flags>: Now a bitfield.
11972 (TYPE_RAW_ALIGN): New macro.
11973 (type_align, type_raw_align, set_type_align): Declare.
11974 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
11975 functions.
11976 * dwarf2read.c (quirk_rust_enum): Set type alignment.
11977 (get_alignment, maybe_set_alignment): New functions.
11978 (read_structure_type, read_enumeration_type, read_array_type)
11979 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
11980 (read_subrange_type, read_base_type): Set type alignment.
11981
d33bc52e
SM
119822018-04-30 Simon Marchi <simon.marchi@ericsson.com>
11983
11984 * dwarf2read.c (read_index_from_section): Use bool.
11985
e28b63a9
FG
119862018-04-29 Fabian Groffen <grobian@gentoo.org>
11987
11988 PR gdb/22950
11989 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
11990 with #ifdef.
11991
cd8c76e4
JR
119922018-04-29 John Reiser <jreiser@BitWagon.com>
11993
11994 PR build/22873
11995 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
11996 last step, and do it atomically.
11997
476d250e
AO
119982018-04-27 Alexandre Oliva <aoliva@redhat.com>
11999
12000 * compile/compile-c-types.c (convert_int, convert_float):
12001 Update for C FE v1.
12002
6873858b
TT
120032018-04-27 Tom Tromey <tom@tromey.com>
12004
12005 PR rust/22545:
12006 * rust-lang.c (rust_inclusive_range_type_p): New function.
12007 (rust_range): Handle inclusive ranges.
12008 (rust_compute_range): Likewise.
12009 * rust-exp.y (struct rust_op) <inclusive>: New field.
12010 (DOTDOTEQ): New constant.
12011 (range_expr): Add "..=" productions.
12012 (operator_tokens): Add "..=" token.
12013 (ast_range): Add "inclusive" parameter.
12014 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
12015 ranges.
12016 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
12017 bounds values.
12018 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
12019 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
12020 Update comments.
12021 * expprint.c (print_subexp_standard): Handle new bounds values.
12022 (dump_subexp_body_standard): Likewise.
12023
632e107b
TT
120242018-04-27 Tom Tromey <tom@tromey.com>
12025
12026 * configure: Rebuild.
12027 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
12028 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
12029 "OVERRIDE".
12030 (class symbol_needs_eval_context): Likewise.
12031 * dwarf2read.c (mock_mapped_index::symbol_name_count)
12032 (mock_mapped_index::symbol_name_at): Use "override". Remove
12033 "virtual".
12034 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
12035 "override".
12036 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
12037 * aarch64-tdep.c (instruction_reader::read): Use "override".
12038 (instruction_reader_test::read): Likewise.
12039 * arm-tdep.c (instruction_reader::read): Use "override".
12040 (instruction_reader_thumb::read): Likewise.
12041
b75abf5b
AK
120422018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
12043
12044 PR remote/9665
12045 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
12046 instead of remote_send.
12047 (remote_send): Remove.
12048
79188d8d
PA
120492018-04-26 Pedro Alves <palves@redhat.com>
12050
12051 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
12052 find_function_start_sal instead of find_pc_line.
12053
f50776aa
PA
120542018-04-26 Pedro Alves <palves@redhat.com>
12055
12056 * breakpoint.c (set_breakpoint_location_function): Handle
12057 mst_data_gnu_ifunc.
12058 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
12059 * elfread.c (elf_symtab_read): Give data symbols with
12060 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
12061 (elf_rel_plt_read): Update comment.
12062 * linespec.c (convert_linespec_to_sals): Handle
12063 mst_data_gnu_ifunc.
12064 (minsym_found): Handle mst_data_gnu_ifunc.
12065 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
12066 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
12067 * parse.c (find_minsym_type_and_address): Handle
12068 mst_data_gnu_ifunc.
12069 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
12070 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
12071 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
12072 comment.
12073 <mst_data_gnu_ifunc>: New enumerator.
12074
20944a6e
PA
120752018-04-26 Pedro Alves <palves@redhat.com>
12076
12077 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
12078 (lookup_minimal_symbol_by_pc_section): ... this. Replace
12079 'want_trampoline' parameter by a lookup_msym_prefer parameter.
12080 Handle it.
12081 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
12082 (lookup_minimal_symbol_by_pc): Adjust.
12083 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
12084 (lookup_solib_trampoline_symbol_by_pc): Adjust.
12085 * minsyms.h (lookup_msym_prefer): New enum.
12086 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
12087 parameter by a lookup_msym_prefer parameter.
12088
1adeb822
PA
120892018-04-26 Pedro Alves <palves@redhat.com>
12090
12091 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
12092 ends in "@plt" instead of looking at the symbol's section.
12093
a0aca7b0
PA
120942018-04-26 Pedro Alves <palves@redhat.com>
12095
12096 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
12097 all references.
12098 (find_pc_partial_function_gnu_ifunc): Rename to ...
12099 (find_pc_partial_function): ... this, and remove references to
12100 'is_gnu_ifunc_p'.
12101 (find_pc_partial_function): Delete old implementation.
12102 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
12103
76af0f26
PA
121042018-04-26 Pedro Alves <palves@redhat.com>
12105
12106 * linespec.c (struct bound_minimal_symbol_search_key): New.
12107 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
12108 skip first line if we found a GNU ifunc minimal symbol by name.
12109 (compare_msymbols): Change parameters to work with a destructured
12110 lhs minsym.
12111 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
12112 functions.
12113
3467ec66
PA
121142018-04-26 Pedro Alves <palves@redhat.com>
12115
12116 * breakpoint.c (set_breakpoint_location_function): Don't resolve
12117 ifunc targets here. Instead, if we have an ifunc minsym, use its
12118 address/name.
12119 (add_location_to_breakpoint): Store the minsym and the objfile in
12120 the breakpoint location.
12121 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
12122 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
12123 Record the minsym in the sal.
12124 * symtab.h (symtab_and_line) <msymbol>: New field.
12125
28f4fa4d
PA
121262018-04-26 Pedro Alves <palves@redhat.com>
12127
12128 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
12129 unless we actually resolved the ifunc.
12130
ca31ab1d
PA
121312018-04-26 Pedro Alves <palves@redhat.com>
12132
12133 * c-exp.y (variable production): Prefer ifunc minsyms over
12134 regular function symbols.
12135 * symtab.c (find_gnu_ifunc): New function.
12136 * minsyms.h (lookup_msym_prefer): New enum.
12137 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
12138 parameter by a lookup_msym_prefer parameter.
12139 * symtab.h (find_gnu_ifunc): New declaration.
12140
8388016d
PA
121412018-04-26 Pedro Alves <palves@redhat.com>
12142
12143 * blockframe.c (find_gnu_ifunc_target_type): New function.
12144 (find_function_type): New.
12145 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
12146 return a value with a memory address.
12147 (eval_call): For calls to GNU ifunc functions, try to find the
12148 type of the target function from the type that the resolver
12149 returns.
12150 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
12151 symbols.
12152 * infcall.c (find_function_return_type): Delete.
12153 (find_function_addr): Add 'function_type' parameter. For calls to
12154 GNU ifunc functions, try to find the type of the target function
12155 from the type that the resolver returns, and return it via
12156 FUNCTION_TYPE.
12157 (call_function_by_hand_dummy): Adjust to use the function type
12158 returned by find_function_addr.
12159 (find_function_addr): Add 'function_type' parameter and move
12160 description here.
12161 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
12162 declarations.
12163
a376e11d
PA
121642018-04-26 Pedro Alves <palves@redhat.com>
12165
12166 * c-exp.y (variable production): Skip finding an alias for ifunc
12167 symbols.
12168
02e169e2
PA
121692018-04-26 Pedro Alves <palves@redhat.com>
12170
12171 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
12172
249b5733
PA
121732018-04-25 Pedro Alves <palves@redhat.com>
12174
12175 * infcmd.c (kill_command): Print the pid as string, not the whole
12176 thread's ptid. Add comment. s/has been killed/killed/ in output
12177 message.
12178 * remote.c (remote_detach_1): Print the pid as string, not the
12179 whole thread's ptid.
12180
f67c0c91
SDJ
121812018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12182 Sergio Durigan Junior <sergiodj@redhat.com>
12183 Pedro Alves <palves@redhat.com>
12184
12185 * infcmd.c (kill_command): Print message when inferior has
12186 been killed.
12187 * inferior.c (print_inferior_events): Remove 'static'. Set as
12188 '1'.
12189 (add_inferior): Improve message printed when
12190 'print_inferior_events' is on.
12191 (exit_inferior): Remove message printed when
12192 'print_inferior_events' is on.
12193 (detach_inferior): Improve message printed when
12194 'print_inferior_events' is on.
12195 (initialize_inferiors): Use 'add_inferior_silent' to set
12196 'current_inferior_'.
12197 * inferior.h (print_inferior_events): Declare here as
12198 'extern'.
12199 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
12200 '[Detaching...]' messages when 'print_inferior_events' is on.
12201 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
12202 as prefix/suffix for messages. Remove periods. Fix erroneous
12203 'Detaching after fork from child...', replace it by '... from
12204 parent...'.
12205 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
12206 prefix/suffix when printing 'Detaching...' messages. Print
12207 them when 'print_inferior_events' is on.
12208 * remote.c (remote_detach_1): Print message when detaching
12209 from inferior and '!is_fork_parent'.
12210
e427af18
TT
122112018-04-24 Tom Tromey <tom@tromey.com>
12212
12213 * cli-out.h: Reindent.
12214
05b1d8d6
TT
122152018-04-24 Tom Tromey <tom@tromey.com>
12216
12217 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
12218 (cli_ui_out::do_field_string): Use fputs_filtered.
12219 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
12220
a95c7dab
TT
122212018-04-23 Tom Tromey <tom@tromey.com>
12222
12223 * guile/scm-frame.c (gdbscm_frame_read_var): Use
12224 gdb::unique_xmalloc_ptr.
12225
458412c3
TT
122262018-04-23 Tom Tromey <tom@tromey.com>
12227
12228 * configure: Rebuild.
12229
db86b02b
RS
122302018-04-22 Rajendra SY <rajendra.sy@gmail.com>
12231
12232 PR gdb/23095
12233 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
12234 prepare_for_testing. Set normal_bp to r_debug_state if target
12235 is bsd.
12236
00aecdcf
PA
122372018-04-21 Pedro Alves <palves@redhat.com>
12238 Rajendra SY <rajendra.sy@gmail.com>
12239
12240 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
12241 * remote.c (extended_remote_attach): In all-stop mode, mark the
12242 thread as executing.
12243
224608c3
PW
122442018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12245
12246 * thread.c (thread_apply_all_command): Fix comment.
12247 (thread_command): Fix comment.
12248
3b74854b
AH
122492018-04-10 Alan Hayward <alan.hayward@arm.com>
12250
12251 * common/tdesc.h (tdesc_create_feature): Remove xml filename
12252 parameter.
12253 * features/aarch64-core.c (create_feature_aarch64_core):
12254 Regenerate.
12255 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
12256 Likewise.
12257 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
12258 Likewise.
12259 * features/i386/32bit-avx512.c
12260 (create_feature_i386_32bit_avx512): Likewise.
12261 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
12262 Likewise.
12263 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
12264 Likewise.
12265 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
12266 Likewise.
12267 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
12268 Likewise.
12269 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
12270 Likewise.
12271 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
12272 Likewise.
12273 * features/i386/64bit-avx512.c
12274 (create_feature_i386_64bit_avx512): Likewise.
12275 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
12276 Likewise.
12277 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
12278 Likewise.
12279 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
12280 Likewise.
12281 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
12282 Likewise.
12283 * features/i386/64bit-segments.c
12284 (create_feature_i386_64bit_segments): Likewise.
12285 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
12286 Likewise.
12287 * features/i386/x32-core.c
12288 (create_feature_i386_x32_core): Likewise.
12289 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
12290 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
12291 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
12292 * target-descriptions.c: In generated code, don't pass xml
12293 filename.
12294
e98577a9
AH
122952018-04-18 Alan Hayward <alan.hayward@arm.com>
12296
12297 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
12298 (print_xml_feature::visit_post): Likewise.
12299 (print_xml_feature::visit): Likewise.
12300 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
12301 (print_xml_feature): Add new class.
12302 * regformats/regdat.sh: Null xmltarget on feature targets.
12303 * target-descriptions.c (struct target_desc): Add xmltarget.
12304 (maintenance_check_tdesc_xml_convert): Add unittest function.
12305 (tdesc_get_features_xml): Add function to get xml.
12306 (maintenance_check_xml_descriptions): Test xml generation.
12307 * xml-tdesc.c (string_read_description_xml): Add function.
12308 * xml-tdesc.h (string_read_description_xml): Add declaration.
12309
ad7fc756
AH
123102018-04-18 Alan Hayward <alan.hayward@arm.com>
12311
12312 * features/Makefile: Add feature marker to targets with new style
12313 target descriptions.
12314 * regformats/aarch64.dat: Regenerate.
12315 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
12316 * regformats/i386/amd64-avx-linux.dat: Likewise.
12317 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
12318 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
12319 * regformats/i386/amd64-linux.dat: Likewise.
12320 * regformats/i386/amd64-mpx-linux.dat: Likewise.
12321 * regformats/i386/amd64.dat: Likewise.
12322 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
12323 * regformats/i386/i386-avx-linux.dat: Likewise.
12324 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
12325 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
12326 * regformats/i386/i386-linux.dat: Likewise.
12327 * regformats/i386/i386-mmx-linux.dat: Likewise.
12328 * regformats/i386/i386-mpx-linux.dat: Likewise.
12329 * regformats/i386/i386.dat: Likewise.
12330 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
12331 * regformats/i386/x32-avx-linux.dat: Likewise.
12332 * regformats/i386/x32-linux.dat: Likewise.
12333 * regformats/tic6x-c62x-linux.dat: Likewise.
12334 * regformats/tic6x-c64x-linux.dat: Likewise.
12335 * regformats/tic6x-c64xp-linux.dat: Likewise.
12336 * regformats/regdat.sh: Parse feature marker.
12337
d278f585
AH
123382018-04-18 Alan Hayward <alan.hayward@arm.com>
12339
12340 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
12341 (tdesc_osabi_name): Likewise.
12342 * target-descriptions.c (tdesc_architecture_name): Add new
12343 function.
12344 (tdesc_osabi_name): Likewise.
12345
eee8a18d
AH
123462018-04-18 Alan Hayward <alan.hayward@arm.com>
12347
12348 * common/tdesc.c (tdesc_predefined_type): Move to here.
12349 (tdesc_named_type): Likewise.
12350 (tdesc_create_vector): Likewise.
12351 (tdesc_create_struct): Likewise.
12352 (tdesc_set_struct_size): Likewise.
12353 (tdesc_create_union): Likewise.
12354 (tdesc_create_flags): Likewise.
12355 (tdesc_create_enum): Likewise.
12356 (tdesc_add_field): Likewise.
12357 (tdesc_add_typed_bitfield): Likewise.
12358 (tdesc_add_bitfield): Likewise.
12359 (tdesc_add_flag): Likewise.
12360 (tdesc_add_enum_value): Likewise.
12361 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
12362 (struct tdesc_type_vector): Likewise.
12363 (struct tdesc_type_field): Likewise.
12364 (struct tdesc_type_with_fields): Likewise.
12365 (tdesc_create_enum): Add declaration.
12366 (tdesc_add_typed_bitfield): Likewise.
12367 (tdesc_add_enum_value): Likewise.
12368 * target-descriptions.c (tdesc_type_field): Move from here.
12369 (tdesc_type_builtin): Likewise.
12370 (tdesc_type_vector): Likewise.
12371 (tdesc_type_with_fields): Likewise.
12372 (tdesc_predefined_types): Likewise.
12373 (tdesc_named_type): Likewise.
12374 (tdesc_create_vector): Likewise.
12375 (tdesc_create_struct): Likewise.
12376 (tdesc_set_struct_size): Likewise.
12377 (tdesc_create_union): Likewise.
12378 (tdesc_create_flags): Likewise.
12379 (tdesc_create_enum): Likewise.
12380 (tdesc_add_field): Likewise.
12381 (tdesc_add_typed_bitfield): Likewise.
12382 (tdesc_add_bitfield): Likewise.
12383 (tdesc_add_flag): Likewise.
12384 (tdesc_add_enum_value): Likewise.
12385 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
12386 (tdesc_add_typed_bitfield): Likewise.
12387 (tdesc_add_enum_value): Likewise.
12388
82ec9bc7
AH
123892018-04-18 Alan Hayward <alan.hayward@arm.com>
12390
12391 * common/tdesc.c (tdesc_feature::accept): Move to here.
12392 (tdesc_feature::operator==): Likewise.
12393 (tdesc_create_reg): Likewise.
12394 * common/tdesc.h (tdesc_type_kind): Likewise.
12395 (struct tdesc_type): Likewise.
12396 (struct tdesc_feature): Likewise.
12397 * regformats/regdat.sh: Create a feature.
12398 * target-descriptions.c (tdesc_type_kind): Move from here.
12399 (tdesc_type): Likewise.
12400 (tdesc_type_up): Likewise.
12401 (tdesc_feature): Likewise.
12402 (tdesc_create_reg): Likewise.
12403
ea3e7d71
AH
124042018-04-18 Alan Hayward <alan.hayward@arm.com>
12405
12406 * Makefile.in: Add arch/tdesc.c
12407 * common/tdesc.c: New file.
12408 * common/tdesc.h (tdesc_element_visitor): Move to here.
12409 (tdesc_element): Likewise.
12410 (tdesc_reg): Likewise.
12411 (tdesc_reg_up): Likewise.
12412 * regformats/regdef.h (reg): Add offset to constructors.
12413 * target-descriptions.c (tdesc_element_visitor): Move from here.
12414 (tdesc_element): Likewise.
12415 (tdesc_reg): Likewise.
12416 (tdesc_reg_up): Likewise.
12417
bedda9ac
TT
124182018-04-17 Tom Tromey <tom@tromey.com>
12419
12420 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
12421 discriminant field.
12422
a037790e
TT
124232018-04-17 Tom Tromey <tom@tromey.com>
12424
12425 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
12426
c7dcbf88
AA
124272018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
12428
12429 * symtab.c (print_symbol_info): Skip printing filename and line
12430 number when `last' is NULL.
12431 (symtab_symbol_info): Use empty string instead of NULL for first
12432 invocation of print_symbol_info.
12433 (rbreak_command): Pass NULL to `last' parameter of
12434 print_symbol_info.
12435
07d28c77
SM
124362018-04-16 Simon Marchi <simon.marchi@ericsson.com>
12437
12438 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
12439 instead of nullptr.
12440
8a3de5e1
PA
124412018-04-16 Pedro Alves <palves@redhat.com>
12442
12443 * MAINTAINERS (sh): Remove.
12444 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
12445 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
12446 (ALLDEPFILES): Remove sh64-tdep.c.
12447 * NEWS: Mentions that support for SH-5/SH64 is removed.
12448 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
12449 (sh*-*-openbsd*): Ditto.
12450 (sh64-*-elf*): Remove.
12451 (sh*): Remove.
12452 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
12453 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
12454 * sh-tdep.c: No longer include "sh64-tdep.h".
12455 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
12456 * sh64-tdep.c, sh64-tdep.h: Remove files.
12457
a2a79012
PA
124582018-04-16 Pedro Alves <palves@redhat.com>
12459
12460 * MAINTAINERS: Remove m88k.
12461 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
12462 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
12463 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
12464 * NEWS: Mention that support for m88k was removed.
12465 * configure.host (m88*-*-*): Remove support.
12466 * configure.nat (m88k-*-*): Remove support.
12467 * configure.tgt (m88*-*-openbsd*): Remove.
12468 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
12469
eda4efb1
SM
124702018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
12471
12472 * configure.tgt (x86_tobjs): New variable.
12473 (amd64_tobjs, i386_tobjs): Use it.
12474
b744723f
AA
124752018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12476
12477 * symtab.c (print_symbol_info): Precede the symbol definition by
12478 the line number when available.
12479 * NEWS: Advertise this enhancement.
12480
4a4495d6
MM
124812018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12482
12483 * NEWS (New options): announce set/show record btrace cpu.
12484 * btrace.c: Include record-btrace.h.
12485 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
12486 the vendor is unknown.
12487 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
12488 Maybe overwrite the btrace configuration's cpu.
12489 (btrace_compute_ftrace): Add cpu parameter. Update callers.
12490 (btrace_fetch): Add cpu parameter. Update callers.
12491 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
12492 Maybe overwrite the btrace configuration's cpu. Skip enabling
12493 errata workarounds if the vendor is unknown.
12494 * python/py-record-btrace.c: Include record-btrace.h.
12495 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
12496 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
12497 * record-btrace.c (record_btrace_cpu_state_kind): New.
12498 (record_btrace_cpu): New.
12499 (set_record_btrace_cpu_cmdlist): New.
12500 (record_btrace_get_cpu): New.
12501 (require_btrace_thread, record_btrace_info)
12502 (record_btrace_resume_thread): Call record_btrace_get_cpu.
12503 (cmd_set_record_btrace_cpu_none): New.
12504 (cmd_set_record_btrace_cpu_auto): New.
12505 (cmd_set_record_btrace_cpu): New.
12506 (cmd_show_record_btrace_cpu): New.
12507 (_initialize_record_btrace): Initialize set/show record btrace cpu
12508 commands.
12509 * record-btrace.h (record_btrace_get_cpu): New.
12510
69f90c75
MM
125112018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12512
12513 * record.c (set_record_command): Fix typo in message.
12514
b85310e1
MM
125152018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12516
12517 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
12518
1d509aa6
MM
125192018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12520
12521 * infrun.c (process_event_stop_test): Call
12522 gdbarch_in_indirect_branch_thunk.
12523 * gdbarch.sh (in_indirect_branch_thunk): New.
12524 * gdbarch.c: Regenerated.
12525 * gdbarch.h: Regenerated.
12526 * x86-tdep.h: New.
12527 * x86-tdep.c: New.
12528 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
12529 (HFILES_NO_SRCDIR): Add x86-tdep.h.
12530 (ALLDEPFILES): Add x86-tdep.c.
12531 * arch-utils.h (default_in_indirect_branch_thunk): New.
12532 * arch-utils.c (default_in_indirect_branch_thunk): New.
12533 * i386-tdep: Include x86-tdep.h.
12534 (i386_in_indirect_branch_thunk): New.
12535 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
12536 function.
12537 * amd64-tdep: Include x86-tdep.h.
12538 (amd64_in_indirect_branch_thunk): New.
12539 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
12540
b4be9bfd
JK
125412018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12542
12543 PR gdb/23053
12544 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
12545 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
12546 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
12547 regression.
12548
53d7df28
TT
125492018-04-12 Tom Tromey <tom@tromey.com>
12550
12551 * rust-lang.c (rust_print_struct_def): Remove univariant code.
12552 (rust_evaluate_subexp): Likewise.
12553
70b33f19
PA
125542018-04-12 Pedro Alves <palves@redhat.com>
12555
12556 * procfs.c (procfs_detach): Make forward declaration's prototype
12557 match definition's protototype.
12558 (proc_get_LDT_entry): Remove stale do_cleanups call.
12559
436411b1
PA
125602018-04-12 Pedro Alves <palves@redhat.com>
12561
12562 * target.h (target_ops::to_has_exited): Delete.
12563 (target_has_exited): Delete.
12564 * target-delegates.c: Regenerate.
12565
20db9c52
PA
125662018-04-11 Pedro Alves <palves@redhat.com>
12567
12568 * target.c (fileio_fh_t::t): Add comment.
12569 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12570 (target_fileio_close): Handle a NULL target.
12571 (invalidate_fileio_fh): New.
12572 (target_close): Call it.
12573 * remote.c (remote_hostio_send_command): No longer check whether
12574 remote_desc is open.
12575
5ff79300
PA
125762018-04-11 Pedro Alves <palves@redhat.com>
12577
12578 * target.c (fileio_fh_t): Make it a named struct instead of a
12579 typedef.
12580 (fileio_fh_t::is_closed): New method.
12581 (DEF_VEC_O (fileio_fh_t)): Remove.
12582 (fileio_fhandles): Now a std::vector.
12583 (is_closed_fileio_fh): Delete.
12584 (acquire_fileio_fd): Adjust. Rename parameters.
12585 (release_fileio_fd): Adjust.
12586 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
12587 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12588 (target_fileio_close): Adjust.
12589
6e22e10d
SM
125902018-04-10 Simon Marchi <simon.marchi@ericsson.com>
12591
12592 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
12593 index.
12594
731f534f
PA
125952018-04-10 Pedro Alves <palves@redhat.com>
12596
12597 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
12598 (scoped_finish_thread_state): New class.
12599 * infcmd.c (run_command_1): Use it instead of finish_thread_state
12600 cleanup.
12601 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
12602 (fetch_inferior_event, normal_stop): Likewise.
12603 * thread.c (finish_thread_state_cleanup): Delete.
12604
d5f4488f
SM
126052018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12606 Pedro Alves <palves@redhat.com>
12607
12608 * value.c: Include "selftest.h" and "common/array-view.h".
12609 (struct range) <operator ==>: New.
12610 (test_ranges_contain): New.
12611 (check_ranges_vector): New.
12612 (test_insert_into_bit_range_vector): New.
12613 (_initialize_values): Register selftests.
12614 * common/array-view.h (operator==, operator!=): New.
12615
b24531ed
SM
126162018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12617
12618 * common/gdb_vecs.h (unordered_remove): Add overload that takes
12619 an iterator.
12620 * inline-frame.c: Include <algorithm>.
12621 (struct inline_state): Add constructor.
12622 (inline_state_s): Remove.
12623 (DEF_VEC_O(inline_state_s)): Remove.
12624 (inline_states): Change type to std::vector.
12625 (find_inline_frame_state): Adjust to std::vector.
12626 (allocate_inline_frame_state): Remove.
12627 (clear_inline_frame_state): Adjust to std::vector.
12628 (skip_inline_frames): Adjust to std::vector.
12629
c252925c
SM
126302018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12631
12632 * tracepoint.h (struct trace_state_variable): Add constructor.
12633 <name>: Change type to std::string.
12634 * tracepoint.c (tsv_s): Remove.
12635 (DEF_VEC_O(tsv_s)): Remove.
12636 (tvariables): Change to std::vector.
12637 (create_trace_state_variable): Adjust to std::vector.
12638 (find_trace_state_variable): Likewise.
12639 (find_trace_state_variable_by_number): Likewise.
12640 (delete_trace_state_variable): Likewise.
12641 (trace_variable_command): Adjust to std::string.
12642 (delete_trace_variable_command): Likewise.
12643 (tvariables_info_1): Adjust to std::vector.
12644 (save_trace_state_variables): Likewise.
12645 (start_tracing): Likewise.
12646 (merge_uploaded_trace_state_variables): Adjust to std::vector
12647 and std::string.
12648 * target.h (struct target_ops)
12649 <to_download_trace_state_variable>: Pass reference to
12650 trace_state_variable.
12651 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
12652 * target-delegates.c: Re-generate.
12653 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
12654 (mi_tsv_deleted): Likewise.
12655 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
12656 * remote.c (remote_download_trace_state_variable): Change
12657 pointer to reference and adjust.
12658 * make-target-delegates (parse_argtypes): Handle references.
12659 (write_function_header): Likewise.
12660 (munge_type): Likewise.
12661
c9638d26
SM
126622018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12663
12664 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12665 string_view-selftests.c.
12666 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
12667 testsuite.
12668 * unittests/basic_string_view/cons/char/1.cc: Likewise.
12669 * unittests/basic_string_view/cons/char/2.cc: Likewise.
12670 * unittests/basic_string_view/cons/char/3.cc: Likewise.
12671 * unittests/basic_string_view/element_access/char/1.cc:
12672 Likewise.
12673 * unittests/basic_string_view/element_access/char/empty.cc:
12674 Likewise.
12675 * unittests/basic_string_view/element_access/char/front_back.cc:
12676 Likewise.
12677 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
12678 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
12679 Likewise.
12680 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
12681 Likewise.
12682 * unittests/basic_string_view/modifiers/swap/char/1.cc:
12683 Likewise.
12684 * unittests/basic_string_view/operations/compare/char/1.cc:
12685 Likewise.
12686 * unittests/basic_string_view/operations/compare/char/13650.cc:
12687 Likewise.
12688 * unittests/basic_string_view/operations/copy/char/1.cc:
12689 Likewise.
12690 * unittests/basic_string_view/operations/data/char/1.cc:
12691 Likewise.
12692 * unittests/basic_string_view/operations/find/char/1.cc:
12693 Likewise.
12694 * unittests/basic_string_view/operations/find/char/2.cc:
12695 Likewise.
12696 * unittests/basic_string_view/operations/find/char/3.cc:
12697 Likewise.
12698 * unittests/basic_string_view/operations/find/char/4.cc:
12699 Likewise.
12700 * unittests/basic_string_view/operations/rfind/char/1.cc:
12701 Likewise.
12702 * unittests/basic_string_view/operations/rfind/char/2.cc:
12703 Likewise.
12704 * unittests/basic_string_view/operations/rfind/char/3.cc:
12705 Likewise.
12706 * unittests/basic_string_view/operations/substr/char/1.cc:
12707 Likewise.
12708 * unittests/basic_string_view/operators/char/2.cc: Likewise.
12709 * unittests/string_view-selftests.c: New file.
12710
fdc11678
SM
127112018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12712
12713 * unittests/basic_string_view/capacity/1.cc: New file.
12714 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
12715 * unittests/basic_string_view/cons/char/1.cc: New file.
12716 * unittests/basic_string_view/cons/char/2.cc: New file.
12717 * unittests/basic_string_view/cons/char/3.cc: New file.
12718 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
12719 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
12720 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
12721 * unittests/basic_string_view/element_access/char/1.cc: New file.
12722 * unittests/basic_string_view/element_access/char/2.cc: New file.
12723 * unittests/basic_string_view/element_access/char/empty.cc: New file.
12724 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
12725 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
12726 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
12727 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
12728 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
12729 * unittests/basic_string_view/include.cc: New file.
12730 * unittests/basic_string_view/inserters/char/1.cc: New file.
12731 * unittests/basic_string_view/inserters/char/2.cc: New file.
12732 * unittests/basic_string_view/inserters/char/3.cc: New file.
12733 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
12734 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
12735 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
12736 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
12737 * unittests/basic_string_view/literals/types.cc: New file.
12738 * unittests/basic_string_view/literals/values.cc: New file.
12739 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
12740 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
12741 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
12742 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
12743 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
12744 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
12745 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
12746 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
12747 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
12748 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
12749 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
12750 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
12751 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
12752 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
12753 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
12754 * unittests/basic_string_view/operations/data/char/1.cc: New file.
12755 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
12756 * unittests/basic_string_view/operations/find/char/1.cc: New file.
12757 * unittests/basic_string_view/operations/find/char/2.cc: New file.
12758 * unittests/basic_string_view/operations/find/char/3.cc: New file.
12759 * unittests/basic_string_view/operations/find/char/4.cc: New file.
12760 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
12761 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
12762 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
12763 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
12764 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
12765 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
12766 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
12767 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
12768 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
12769 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
12770 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
12771 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
12772 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
12773 * unittests/basic_string_view/operators/char/2.cc: New file.
12774 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
12775 * unittests/basic_string_view/range_access/char/1.cc: New file.
12776 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
12777 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
12778 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
12779 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
12780 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
12781 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
12782 * unittests/basic_string_view/requirements/typedefs.cc: New file.
12783 * unittests/basic_string_view/typedefs.cc: New file.
12784 * unittests/basic_string_view/types/1.cc: New file.
12785
8345c4a2
SM
127862018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12787
12788 * common/gdb_string_view.h: Remove libstdc++ implementation
12789 details, adjust to gdb reality.
12790 * common/gdb_string_view.tcc: Likewise.
12791 * cli/cli-script.c (struct string_view): Remove.
12792 (user_args) <m_args>: Change element type to gdb::string_view.
12793 (user_args::insert_args): Adjust.
12794
7adcdf08
SM
127952018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12796
12797 * common/gdb_string_view.h: New file.
12798 * common/gdb_string_view.tcc: New file.
12799
41260ac2
SM
128002018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12801
12802 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
12803 * configure: Re-generate.
12804
0bee6dd4
PA
128052018-04-09 Pedro Alves <palves@redhat.com>
12806
12807 * gdbarch.sh: Include "observable.h" instead of "observer.h".
12808 (set_target_gdbarch): Call
12809 gdb::observers::architecture_changed.notify instead of
12810 observer_notify_architecture_changed.
12811
6f14adc5
SM
128122018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12813
12814 * tracepoint.c (struct current_traceframe_cleanup): Remove.
12815 (do_restore_current_traceframe_cleanup): Remove.
12816 (restore_current_traceframe_cleanup_dtor): Remove.
12817 (make_cleanup_restore_current_traceframe): Remove.
12818 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
12819 New.
12820 * tracepoint.h (struct scoped_restore_current_traceframe): New.
12821 * infrun.c (fetch_inferior_event): Use
12822 scoped_restore_current_traceframe.
12823
b2bdb8cf
SM
128242018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12825
12826 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
12827 Remove.
12828 <n_allocated_type_units>: Remove.
12829 <all_type_units>: Change to std::vector.
12830 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12831 to std::vector change.
12832 (dwarf2_per_objfile::get_cutu): Likewise.
12833 (dwarf2_per_objfile::get_tu): Likewise.
12834 (create_signatured_type_table_from_index): Likewise.
12835 (create_signatured_type_table_from_debug_names): Likewise.
12836 (dw2_symtab_iter_next): Likewise.
12837 (dw2_print_stats): Likewise.
12838 (dw2_expand_all_symtabs): Likewise.
12839 (dw2_expand_marked_cus): Likewise.
12840 (dw2_debug_names_iterator::next): Likewise.
12841 (dwarf2_initialize_objfile): Likewise.
12842 (add_signatured_type_cu_to_table): Likewise.
12843 (create_all_type_units): Likewise.
12844 (add_type_unit): Likewise.
12845 (struct tu_abbrev_offset): Add constructor.
12846 (build_type_psymtabs_1): Adjust to std::vector change.
12847 (print_tu_stats): Likewise.
12848 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12849 (write_debug_names): Likewise.
12850
b76e467d
SM
128512018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12852
12853 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
12854 Make an std::vector.
12855 <n_comp_units>: Remove.
12856 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12857 to std::vector change.
12858 (dwarf2_per_objfile::get_cutu): Likewise.
12859 (dwarf2_per_objfile::get_cu): Likewise.
12860 (create_cus_from_index): Likewise.
12861 (create_addrmap_from_index): Likewise.
12862 (create_addrmap_from_aranges): Likewise.
12863 (dwarf2_read_index): Likewise.
12864 (dw2_find_last_source_symtab): Likewise.
12865 (dw2_map_symtabs_matching_filename): Likewise.
12866 (dw2_symtab_iter_next): Likewise.
12867 (dw2_print_stats): Likewise.
12868 (dw2_expand_all_symtabs): Likewise.
12869 (dw2_expand_symtabs_with_fullname): Likewise.
12870 (dw2_expand_marked_cus): Likewise.
12871 (dw2_map_symbol_filenames): Likewise.
12872 (create_cus_from_debug_names): Likewise.
12873 (dwarf2_read_debug_names): Likewise.
12874 (dw2_debug_names_iterator::next): Likewise.
12875 (dwarf2_initialize_objfile): Likewise.
12876 (set_partial_user): Likewise.
12877 (dwarf2_build_psymtabs_hard): Likewise.
12878 (read_comp_units_from_section): Remove arguments, adjust to
12879 std::vector change.
12880 (create_all_comp_units): Adjust to std::vector and
12881 read_comp_units_from_section changes.
12882 (dwarf2_find_containing_comp_unit): Adjust to std::vector
12883 change.
12884 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12885 (psyms_seen_size): Likewise.
12886 (write_gdbindex): Likewise.
12887 (write_debug_names): Likewise.
12888
12359b5e
SM
128892018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12890
12891 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
12892 with dwarf2_per_objfile.
12893 (create_cus_from_index): Likewise.
12894 (create_signatured_type_table_from_index): Likewise.
12895 (dwarf2_read_index): Likewise.
12896 (dwarf2_initialize_objfile): Likewise.
12897 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
12898 per_cu rather than get_dwarf2_per_objfile.
12899
ff4c9fec
SM
129002018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12901
12902 * dwarf2read.h (struct signatured_type): Forward declare.
12903 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
12904 New methods.
12905 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
12906 (dw2_get_cutu): ...this.
12907 (dwarf2_per_objfile::get_cu): Rename from...
12908 (dw2_get_cu): ...this.
12909 (dwarf2_per_objfile::get_tu): New.
12910 (create_addrmap_from_index): Adjust.
12911 (create_addrmap_from_aranges): Adjust.
12912 (dw2_find_last_source_symtab): Adjust.
12913 (dw2_map_symtabs_matching_filename): Adjust.
12914 (dw2_symtab_iter_next): Adjust.
12915 (dw2_print_stats): Adjust.
12916 (dw2_expand_all_symtabs): Adjust.
12917 (dw2_expand_symtabs_with_fullname): Adjust.
12918 (dw2_expand_marked_cus): Adjust.
12919 (dw_expand_symtabs_matching_file_matcher): Adjust.
12920 (dw2_map_symbol_filenames): Adjust.
12921 (dw2_debug_names_iterator::next): Adjust.
12922 (dwarf2_initialize_objfile): Adjust.
12923 (set_partial_user): Adjust.
12924 (dwarf2_build_psymtabs_hard): Adjust.
12925
5ca3fcb6
SM
129262018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12927
12928 * dwarf2read.c (create_signatured_type_table_from_debug_names):
12929 Remove unused variables.
12930 (dw2_map_symtabs_matching_filename): Likewise.
12931 (dwarf2_record_block_ranges): Likewise.
12932 (dwarf2_read_addr_index): Likewise.
12933 (follow_die_offset): Likewise.
12934
b2e586e8
SM
129352018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12936
12937 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
12938 to symbol_file_add_main.
12939
7c4e78cf
SM
129402018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12941
12942 PR mi/22299
12943 * mi/mi-console.c (do_fputc_async_safe): New.
12944 (mi_console_file::write_async_safe): New.
12945 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
12946 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
12947 New.
12948 * ui-file.c (ui_file::putstrn): Adjust call to
12949 fputstrn_unfiltered.
12950 * utils.c (printchar): Replace do_fputs and do_fprintf
12951 parameters by do_fputc.
12952 (fputstr_filtered): Adjust call to printchar.
12953 (fputstr_unfiltered): Likewise.
12954 (fputstrn_filtered): Likewise.
12955 (fputstrn_unfiltered): Add do_fputc parameter, pass to
12956 printchar.
12957 * utils.h (do_fputc_ftype): New typedef.
12958 (fputstrn_unfiltered): Add do_fputc parameter.
12959
5dc026d3
SM
129602018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12961
12962 * regformats/i386/i386-avx.dat: Remove.
12963
c912f608
SM
129642018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12965
12966 PR gdb/22979
12967 * amd64-tdep.c (amd64_none_init_abi): New function.
12968 (amd64_x32_none_init_abi): New function.
12969 (_initialize_amd64_tdep): Register handlers for x86-64 and
12970 x64_32 with GDB_OSABI_NONE.
12971 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
12972 GDB_OSABI_NONE osabi.
12973
26540402
SM
129742018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12975
12976 PR gdb/22980
12977 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
12978 GDB_OSABI_NONE.
12979 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
12980 * osabi.c (gdb_osabi_names): Add "unknown" entry.
12981
9018be22
SM
129822018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12983
12984 * common/byte-vector.h (char_vector): New type.
12985 * target.h (target_read_alloc): Return
12986 gdb::optional<byte_vector>.
12987 (target_read_stralloc): Return gdb::optional<char_vector>.
12988 (target_get_osdata): Return gdb::optional<char_vector>.
12989 * target.c (target_read_alloc_1): Templatize. Replacement
12990 manual memory management with vector.
12991 (target_read_alloc): Change return type, adjust.
12992 (target_read_stralloc): Change return type, adjust.
12993 (target_get_osdata): Change return type, adjust.
12994 * auxv.c (struct auxv_info) <length>: Remove.
12995 <data>: Change type to gdb::optional<byte_vector>.
12996 (auxv_inferior_data_cleanup): Free auxv_info with delete.
12997 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
12998 (target_auxv_search): Adjust.
12999 (fprint_target_auxv): Adjust.
13000 * avr-tdep.c (avr_io_reg_read_command): Adjust.
13001 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
13002 (linux_make_corefile_notes): Adjust.
13003 * osdata.c (get_osdata): Adjust.
13004 * remote.c (remote_get_threads_with_qxfer): Adjust.
13005 (remote_memory_map): Adjust.
13006 (remote_traceframe_info): Adjust.
13007 (btrace_read_config): Adjust.
13008 (remote_read_btrace): Adjust.
13009 (remote_pid_to_exec_file): Adjust.
13010 * solib-aix.c (solib_aix_get_library_list): Adjust.
13011 * solib-dsbt.c (decode_loadmap): Don't free buf.
13012 (dsbt_get_initial_loadmaps): Adjust.
13013 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
13014 * solib-target.c (solib_target_current_sos): Adjust.
13015 * tracepoint.c (sdata_make_value): Adjust.
13016 * xml-support.c (xinclude_start_include): Adjust.
13017 (xml_fetch_content_from_file): Adjust.
13018 * xml-support.h (xml_fetch_another): Change return type.
13019 (xml_fetch_content_from_file): Change return type.
13020 * xml-syscall.c (xml_init_syscalls_info): Adjust.
13021 * xml-tdesc.c (file_read_description_xml): Adjust.
13022 (fetch_available_features_from_target): Change return type.
13023 (target_fetch_description_xml): Adjust.
13024 (target_read_description_xml): Adjust.
13025
14c88955
TT
130262018-04-06 Tom Tromey <tom@tromey.com>
13027
13028 * value.c (~value): Update.
13029 (struct value) <contents>: Now unique_xmalloc_ptr.
13030 (value_contents_bits_eq, allocate_value_contents)
13031 (value_contents_raw, value_contents_all_raw)
13032 (value_contents_for_printing, value_contents_for_printing_const)
13033 (set_value_enclosing_type): Update.
13034
0c7e6dd8
TT
130352018-04-06 Tom Tromey <tom@tromey.com>
13036
13037 * value.c (range_s): Remove typedef, VEC.
13038 (struct range): Add operator<.
13039 (range_lessthan): Remove.
13040 (ranges_contain): Change type.
13041 (~value): Update.
13042 (struct value) <unavailable, optimized_out>: Now std::vector.
13043 (value_entirely_available)
13044 (value_entirely_covered_by_range_vector)
13045 (value_entirely_unavailable, value_entirely_optimized_out):
13046 Update.
13047 (insert_into_bit_range_vector): Change argument type.
13048 (find_first_range_overlap): Likewise.
13049 (struct ranges_and_idx, value_contents_bits_eq)
13050 (require_not_optimized_out, require_available): Update.
13051 (ranges_copy_adjusted): Change argument types.
13052 (value_optimized_out, value_copy, value_fetch_lazy): Update.
13053
2c8331b9
TT
130542018-04-06 Tom Tromey <tom@tromey.com>
13055
13056 * value.c (~value): Update.
13057 (struct value) <parent>: Now a value_ref_ptr.
13058 (value_parent, set_value_parent, value_address, value_copy):
13059 Update.
13060
466ce3ae
TT
130612018-04-06 Tom Tromey <tom@tromey.com>
13062
13063 * value.c (struct value): Add constructor, destructor, and member
13064 initializers.
13065 (allocate_value_lazy, value_decref): Update.
13066
062d818d
TT
130672018-04-06 Tom Tromey <tom@tromey.com>
13068
13069 * value.c (struct value) <released, next>: Remove.
13070 (all_values): Now a std::vector.
13071 (allocate_value_lazy): Update.
13072 (value_next): Remove.
13073 (value_mark, value_free_to_mark, release_value)
13074 (value_release_to_mark): Update.
13075
a6535de1
TT
130762018-04-06 Tom Tromey <tom@tromey.com>
13077
13078 * value.h (fetch_subexp_value, value_release_to_mark): Update.
13079 (free_value_chain): Remove.
13080 * value.c (free_value_chain): Remove.
13081 (value_release_to_mark): Return a std::vector.
13082 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
13083 std::vector.
13084 (check_condition): Update.
13085 * eval.c (fetch_subexp_value): Change "val_chain" to a
13086 std::vector.
13087 * breakpoint.c (update_watchpoint): Update.
13088 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
13089
b5621201
TT
130902018-04-06 Tom Tromey <tom@tromey.com>
13091
13092 * value.h (free_all_values): Remove.
13093 * value.c (free_all_values): Remove.
13094
4d0266a0
TT
130952018-04-06 Tom Tromey <tom@tromey.com>
13096
13097 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
13098 (value_history_chain, value_history_count): Remove.
13099 (value_history): New global.
13100 (record_latest_value, access_value_history, show_values)
13101 (preserve_values): Update.
13102
b4d61099
TT
131032018-04-06 Tom Tromey <tom@tromey.com>
13104
13105 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
13106 * varobj.c (varobj_set_display_format, varobj_set_value)
13107 (install_default_visualizer, construct_visualizer)
13108 (install_new_value, ~varobj, varobj_get_value_type)
13109 (my_value_of_variable, varobj_editable_p): Update.
13110 * c-varobj.c (c_describe_child, c_value_of_variable)
13111 (cplus_number_of_children, cplus_describe_child): Update.
13112 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
13113 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
13114 (ada_value_of_variable, ada_value_is_changeable_p): Update.
13115
9b558729
TT
131162018-04-06 Tom Tromey <tom@tromey.com>
13117
13118 * printcmd.c (last_examine_address): Change type to
13119 value_ref_ptr.
13120 (do_examine, x_command): Update.
13121
850645cf
TT
131222018-04-06 Tom Tromey <tom@tromey.com>
13123
13124 * value.c (release_value): Update.
13125 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
13126 (struct bpstats) <val>: Now a value_ref_ptr.
13127 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
13128 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
13129 (~watchpoint, print_it_watchpoint, watch_command_1)
13130 (invalidate_bp_value_on_memory_change): Update.
13131
22bc8444
TT
131322018-04-06 Tom Tromey <tom@tromey.com>
13133
13134 * varobj.c (varobj_clear_saved_item)
13135 (update_dynamic_varobj_children, install_new_value, ~varobj):
13136 Update.
13137 * value.h (value_incref): Move declaration earlier.
13138 (value_decref): Rename from value_free.
13139 (struct value_ref_policy): New.
13140 (value_ref_ptr): New typedef.
13141 (struct value_deleter): Remove.
13142 (gdb_value_up): Remove typedef.
13143 (release_value): Change return type.
13144 (release_value_or_incref): Remove.
13145 * value.c (set_value_parent): Update.
13146 (value_incref): Change return type.
13147 (value_decref): Rename from value_free.
13148 (value_free_to_mark, free_all_values, free_value_chain): Update.
13149 (release_value): Return value_ref_ptr.
13150 (release_value_or_incref): Remove.
13151 (record_latest_value, set_internalvar, clear_internalvar):
13152 Update.
13153 * stack.c (info_frame_command): Don't call value_free.
13154 * python/py-value.c (valpy_dealloc, valpy_new)
13155 (value_to_value_object): Update.
13156 * printcmd.c (do_examine): Update.
13157 * opencl-lang.c (lval_func_free_closure): Update.
13158 * mi/mi-main.c (register_changed_p): Don't call value_free.
13159 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
13160 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
13161 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
13162 value_free.
13163 * guile/scm-value.c (vlscm_free_value_smob)
13164 (vlscm_scm_from_value): Update.
13165 * frame.c (frame_register_unwind, frame_unwind_register_signed)
13166 (frame_unwind_register_unsigned, get_frame_register_bytes)
13167 (put_frame_register_bytes): Don't call value_free.
13168 * findvar.c (address_from_register): Don't call value_free.
13169 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
13170 * dwarf2loc.c (entry_data_value_free_closure)
13171 (value_of_dwarf_reg_entry, free_pieced_value_closure)
13172 (dwarf2_evaluate_loc_desc_full): Update.
13173 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
13174 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
13175 (~watchpoint, watch_command_1)
13176 (invalidate_bp_value_on_memory_change): Update.
13177 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
13178
7f8a5d38
SM
131792018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
13180
13181 PR gdb/23022
13182 * warning.m4: Add -Wno-error=deprecated-register.
13183 * configure: Re-generate.
13184
8a76bd3b
TT
131852018-04-05 Tom Tromey <tom@tromey.com>
13186
13187 * linespec.h: Remove include of "vec.h".
13188
8e8d776e
TT
131892018-04-05 Tom Tromey <tom@tromey.com>
13190
13191 * linespec.c (typep): Remove typedef.
13192 (find_methods, find_superclass_methods): Take a std::vector.
13193 (find_method): Use std::vector.
13194
9b2f8581
TT
131952018-04-05 Tom Tromey <tom@tromey.com>
13196
13197 * utils.c (compare_strings): Remove.
13198 * utils.h (compare_strings): Remove.
13199 * objc-lang.h (find_imps): Update.
13200 * objc-lang.c (find_methods): Take a std::vector.
13201 (uniquify_strings, find_imps): Likewise.
13202 * linespec.c (find_methods): Take a std::vector.
13203 (decode_objc): Use std::vector.
13204 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
13205 a std::vector.
13206 (find_method, find_function_symbols): Use std::vector.
13207
459a2e4c
TT
132082018-04-05 Tom Tromey <tom@tromey.com>
13209
13210 * completer.c (completion_tracker::completion_tracker): Remove
13211 cast.
13212 (completion_tracker::discard_completions): Likewise.
13213 * breakpoint.c (ambiguous_names_p): Remove cast.
13214 * ada-lang.c (_initialize_ada_language): Remove cast.
13215 * utils.h (streq): Update.
13216 (streq_hash): Add new declaration.
13217 * utils.c (streq): Return bool.
13218 (streq_hash): New function.
13219
9be2c17a
TT
132202018-04-05 Tom Tromey <tom@tromey.com>
13221
13222 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
13223 Remove a string copy.
13224
f73c6ece
TT
132252018-04-05 Tom Tromey <tom@tromey.com>
13226
13227 * linespec.c (filter_results): Use std::vector.
13228 (decode_line_2, decode_line_full): Update.
13229
53a0f8a2
TT
132302018-04-05 Tom Tromey <tom@tromey.com>
13231
13232 * linespec.c (canonical_to_fullform): Return std::string.
13233 (filter_results): Update.
13234 (struct decode_line_2_item): Add constructor.
13235 <fullform, displayform>: Now std::string.
13236 (decode_line_2_compare_items): Now a std::sort comparator.
13237 (decode_line_2): Update.
13238
a5b5adf5
TT
132392018-04-05 Tom Tromey <tom@tromey.com>
13240
13241 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
13242 (unexpected_linespec_error): Update.
13243 (linespec_parse_basic, parse_linespec): Update.
13244
6a307fc5
TT
132452018-04-05 Tom Tromey <tom@tromey.com>
13246
13247 * linespec.c (linespec_parse_basic): Reindent.
13248
41c1efc6
TT
132492018-04-05 Tom Tromey <tom@tromey.com>
13250
13251 * minsyms.h (iterate_over_minimal_symbols): Update.
13252 * minsyms.c (iterate_over_minimal_symbols): Take a
13253 gdb::function_view.
13254 * linespec.c (struct collect_minsyms): Remove.
13255 (compare_msyms): Now a std::sort comparator.
13256 (add_minsym): Add parameters.
13257 (search_minsyms_for_name): Update. Use std::vector.
13258
c5edbf3d
TT
132592018-04-03 Tom Tromey <tom@tromey.com>
13260
13261 * mipsread.c (read_alphacoff_dynamic_symtab): Use
13262 gdb::byte_vector.
13263
b39efc48
WP
132642018-04-02 Weimin Pan <weimin.pan@oracle.com>
13265
13266 * MAINTAINERS (Write After Approval): Add Weimin Pan.
13267
121ad66c 132682018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
13269
13270 PR gdb/16959
13271 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
13272 printing static type.
13273
09473be8
TT
132742018-04-01 Tom Tromey <tom@tromey.com>
13275
13276 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
13277 (rs6000_xfer_shared_libraries): Update.
13278
ec1f2d91
SM
132792018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13280
13281 * common/gdb_vecs.h (char_ptr): Remove.
13282 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
13283
d8611974
SM
132842018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
13285
13286 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
13287 with std::vector.
13288 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
13289
a18ba4e4
SM
132902018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
13291
13292 * tracepoint.h (struct uploaded_tp): Initialize fields.
13293 <actions, step_actions, cmd_strings>: Change type to
13294 std::vector<char *>.
13295 * tracepoint.c (get_uploaded_tp): Allocate with new.
13296 (free_uploaded_tps): Free with delete.
13297 (parse_tracepoint_definition): Adjust to std::vector change.
13298 * breakpoint.c (read_uploaded_action): Likewise.
13299 (create_tracepoint_from_upload): Likewise.
13300 * ctf.c (ctf_write_uploaded_tp): Likewise.
13301 (SET_ARRAY_FIELD): Likewise.
13302 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
13303
a7961323
TT
133042018-03-30 Tom Tromey <tom@tromey.com>
13305
13306 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
13307 std::unique_ptr.
13308 (svr4_keep_data_in_core): Update.
13309 (svr4_read_so_list): Update.
13310
e83e4e24
TT
133112018-03-30 Tom Tromey <tom@tromey.com>
13312
13313 * windows-nat.c (handle_output_debug_string, handle_exception):
13314 Update.
13315 * target.h (target_read_string): Update.
13316 * target.c (target_read_string): Change "string" to
13317 unique_xmalloc_ptr.
13318 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
13319 Update.
13320 * solib-frv.c (frv_current_sos): Update.
13321 * solib-dsbt.c (dsbt_current_sos): Update.
13322 * solib-darwin.c (darwin_current_sos): Update.
13323 * linux-thread-db.c (inferior_has_bug): Update.
13324 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
13325 Update. Remove alloca.
13326 * ada-lang.c (ada_main_name): Update.
13327
263db9a1
TT
133282018-03-30 Tom Tromey <tom@tromey.com>
13329
13330 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
13331 (struct dwo_file_deleter): New.
13332 (dwo_file_up): New typedef.
13333 (open_and_init_dwo_file): Use dwo_file_up.
13334 (free_dwo_file_cleanup): Remove.
13335
5dafb3d1
TT
133362018-03-30 Tom Tromey <tom@tromey.com>
13337
13338 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
13339 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
13340
11ed8cad
TT
133412018-03-30 Tom Tromey <tom@tromey.com>
13342
13343 * dwarf2read.c (class free_cached_comp_units): New class.
13344 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
13345 (free_cached_comp_units): Remove function.
13346
9ae79dac
TT
133472018-03-30 Tom Tromey <tom@tromey.com>
13348
13349 * utils.h (make_cleanup_unpush_target): Remove.
13350 * inf-ptrace.c (struct target_unpusher): New.
13351 (target_unpush_up) New typedef.
13352 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
13353 target_unpush_up.
13354 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
13355
5aa89276
TT
133562018-03-27 Tom Tromey <tom@tromey.com>
13357
13358 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
13359
1dbeed45
TT
133602018-03-27 Pedro Alves <palves@redhat.com>
13361 Tom Tromey <tom@tromey.com>
13362
13363 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
13364 destructor. Now a class.
13365 (gdb_readline_wrapper_cleanup): Remove function.
13366 (gdb_readline_wrapper): Remove cleanups.
13367
c819b2c0
TT
133682018-03-27 Tom Tromey <tom@tromey.com>
13369
13370 * typeprint.h (struct type_print_options) <local_typedefs,
13371 global_typedefs>: Remove "struct" keyword.
13372 (class typedef_hash_table): New class.
13373 (recursively_update_typedef_hash, add_template_parameters)
13374 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
13375 (find_typedef_in_hash): Don't declare.
13376 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
13377 (typedef_hash_table::recursively_update): Rename from
13378 recursively_update_typedef_hash. Now a member.
13379 (typedef_hash_table::add_template_parameters): Rename from
13380 add_template_parameters. Now a member.
13381 (typedef_hash_table::typedef_hash_table): Now a constructor;
13382 rename from create_typedef_hash.
13383 (typedef_hash_table::~typedef_hash_table): Now a destructor;
13384 rename from free_typedef_hash.
13385 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
13386 (do_free_global_table): Remove.
13387 (typedef_hash_table::typedef_hash_table): New constructor; renamed
13388 from copy_type_recursive.
13389 (create_global_typedef_table): Remove.
13390 (typedef_hash_table::find_global_typedef): Now a member of
13391 typedef_hash_table.
13392 (typedef_hash_table::find_typedef): Rename from
13393 find_typedef_in_hash; now a member.
13394 (whatis_exp): Update.
13395 * extension.h (struct ext_lang_type_printers): Add constructor and
13396 destructor.
13397 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
13398 declare.
13399 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
13400 Now a constructor; rename from start_ext_lang_type_printers.
13401 (ext_lang_type_printers): Now a destructor; rename from
13402 free_ext_lang_type_printers.
13403 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
13404 Update.
13405 (c_type_print_base_struct_union): Update. Remove cleanups.
13406
608219fb
TT
134072018-03-27 Tom Tromey <tom@tromey.com>
13408
13409 * dwarf-index-write.c: Include <cmath>.
13410
3fcded8f
JB
134112018-03-27 Joel Brobecker <brobecker@adacore.com>
13412
13413 * NEWS: Add entry describing new "set|show varsize-limit" command.
13414 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
13415 command.
13416 * printcmd.c (_initialize_printcmd): Add "set var" alias of
13417 "set variable".
13418
cd4fb1b2
SM
134192018-03-27 Simon Marchi <simon.marchi@ericsson.com>
13420
13421 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
13422 dwarf-index-write.c
13423 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
13424 * dwarf-index-common.c: New file.
13425 * dwarf-index-common.h: New file.
13426 * dwarf-index-write.c: New file.
13427 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
13428 (struct dwarf2_section_info): Move from here.
13429 (dwarf2_section_info_def): Likewise.
13430 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
13431 (offset_type): Likewise.
13432 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
13433 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
13434 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
13435 (byte_swap): Likewise.
13436 (MAYBE_SWAP): Likewise.
13437 (dwarf2_per_cu_ptr): Likewise.
13438 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
13439 (struct tu_stats): Likewise.
13440 (struct dwarf2_per_objfile): Likewise.
13441 (struct dwarf2_per_cu_data): Likewise.
13442 (struct signatured_type): Likewise.
13443 (sig_type_ptr): Likewise.
13444 (DEF_VEC_P (sig_type_ptr)): Likewise.
13445 (INDEX4_SUFFIX): Likewise.
13446 (INDEX5_SUFFIX): Likewise.
13447 (DEBUG_STR_SUFFIX): Likewise.
13448 (dwarf2_read_section): Make non-static.
13449 (mapped_index_string_hash): Move from here.
13450 (dwarf5_djb_hash): Likewise.
13451 (file_write): Likewise.
13452 (class data_buf): Likewise.
13453 (struct symtab_index_entry): Likewise.
13454 (struct mapped_symtab): Likewise.
13455 (find_slot): Likewise.
13456 (hash_expand): Likewise.
13457 (add_index_entry): Likewise.
13458 (uniquify_cu_indices): Likewise.
13459 (class c_str_view): Likewise.
13460 (class c_str_view_hasher): Likewise.
13461 (class vector_hasher): Likewise.
13462 (write_hash_table): Likewise.
13463 (psym_index_map): Likewise.
13464 (struct addrmap_index_data): Likewise.
13465 (add_address_entry): Likewise.
13466 (add_address_entry_worker): Likewise.
13467 (write_address_map): Likewise.
13468 (symbol_kind): Likewise.
13469 (write_psymbols): Likewise.
13470 (struct signatured_type_index_data): Likewise.
13471 (write_one_signatured_type): Likewise.
13472 (recursively_count_psymbols): Likewise.
13473 (recursively_write_psymbols): Likewise.
13474 (class debug_names): Likewise.
13475 (check_dwarf64_offsets): Likewise.
13476 (psyms_seen_size): Likewise.
13477 (write_gdbindex): Likewise.
13478 (write_debug_names): Likewise.
13479 (assert_file_size): Likewise.
13480 (write_psymtabs_to_index): Likewise.
13481 (save_gdb_index_command): Likewise.
13482 (_initialize_dwarf2_read): Don't register the "save gdb-index"
13483 command.
13484 * dwarf2read.h: New file.
13485
59cc4834
JB
134862018-03-27 Joel Brobecker <brobecker@adacore.com>
13487
13488 PR gdb/22670
13489 * dwarf2read.c (dwarf2_physname): Do not return the demangled
13490 symbol name if the CU's language stores symbol names in linkage
13491 format.
13492 * language.h (struct language_defn)
13493 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
13494 all instances of this struct.
13495
67501539
TT
134962018-03-26 Tom Tromey <tom@tromey.com>
13497
13498 * stack.c (backtrace_command_1): Remove verbose code.
13499
76c939ac
TT
135002018-03-26 Tom Tromey <tom@tromey.com>
13501
13502 * python/py-framefilter.c (py_print_type): Don't catch
13503 exceptions. Return void.
13504 (py_print_value): Likewise.
13505 (py_print_single_arg): Likewise.
13506 (enumerate_args): Don't catch exceptions.
13507 (py_print_args): Likewise.
13508 (py_print_frame): Likewise.
13509 (gdbpy_apply_frame_filter): Catch exceptions here.
13510
9507b29c
TT
135112018-03-26 Tom Tromey <tom@tromey.com>
13512
13513 * stack.c (_initialize_stack): Remove trailing newlines from help
13514 text. Add "Usage" line to "backtrace" help.
13515
eb68e487
TT
135162018-03-26 Tom Tromey <tom@tromey.com>
13517
13518 PR python/16486:
13519 * python/py-framefilter.c (py_print_args): Call wrap_hint.
13520
1f111921
TT
135212018-03-26 Tom Tromey <tom@tromey.com>
13522
13523 * python/py-framefilter.c (py_print_single_arg): Return
13524 EXT_LANG_BT_ERROR from catch.
13525
fb7eb8b5
TT
135262018-03-26 Tom Tromey <tom@tromey.com>
13527
13528 PR backtrace/15584:
13529 * stack.c (backtrace_command_1): Move some code into no-filters
13530 "if".
13531
4ca59a9f
TT
135322018-03-26 Tom Tromey <tom@tromey.com>
13533
13534 * python/py-framefilter.c (throw_quit_or_print_exception): New
13535 function.
13536 (gdbpy_apply_frame_filter): Use it.
13537
92256134
TT
135382018-03-26 Tom Tromey <tom@tromey.com>
13539
13540 PR cli/17716:
13541 * python/py-framefilter.c (py_print_type, py_print_value)
13542 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
13543 RETURN_MASK_ERROR.
13544
7a630bc2
TT
135452018-03-26 Tom Tromey <tom@tromey.com>
13546
13547 * python/py-framefilter.c (enumerate_args): Use
13548 gdb::unique_xmalloc_ptr.
13549
63283d4a
TT
135502018-03-26 Tom Tromey <tom@tromey.com>
13551
13552 * python/py-framefilter.c (py_print_frame): Return
13553 EXT_LANG_BT_OK.
13554 (gdbpy_apply_frame_filter): Update comment.
13555 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
13556 Remove.
13557 <EXT_LANG_BT_NO_FILTERS>: Change value.
13558
978d6c75
TT
135592018-03-26 Tom Tromey <tom@tromey.com>
13560
13561 PR backtrace/15582:
13562 * stack.c (backtrace_command): Parse "hide" argument.
13563 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
13564 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
13565 constant.
13566
1cf7e640
TT
135672018-03-26 Tom Tromey <tom@tromey.com>
13568
13569 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
13570 add "flags".
13571 (backtrace_command): Remove "fulltrace", add "flags".
13572
ea3b0687
TT
135732018-03-26 Tom Tromey <tom@tromey.com>
13574
13575 * stack.c (backtrace_command): Rewrite command line parsing.
13576
9f034d75
SM
135772018-03-26 Simon Marchi <simon.marchi@ericsson.com>
13578
13579 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
13580
ce1459e5
SM
135812018-03-26 Simon Marchi <simon.marchi@ericsson.com>
13582
13583 * filename-seen-cache.h: Add include guard.
13584
4f7ae6f5
KS
135852018-03-26 Keith Seitz <keiths@redhat.com>
13586
13587 * symfile.c (place_section): Remove "struct" from section_addr_info
13588 in comment.
13589 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
13590 "struct" keyword from section_addr_info.
13591
5cd3e386
AH
135922018-03-26 Alan Hayward <alan.hayward@arm.com>
13593
13594 * regformats/regdef.h (reg): Add constructors.
13595
3e5ef9a4
PA
135962018-03-25 Pedro Alves <palves@redhat.com>
13597
13598 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
13599 if then/else bodies in var_func_name extraction.
13600
c88d2fcc 136012018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
13602
13603 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
13604 lookup_minimal_symbol() to find symbol entry.
13605 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
13606
b7fee5a3
KS
136072018-03-23 Keith Seitz <keiths@redhat.com>
13608
13609 PR c++/22968
13610 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
13611 nested type definitions for C++, too.
13612
2cc9b304
TT
136132018-03-23 Tom Tromey <tom@tromey.com>
13614
13615 * machoread.c (struct oso_el): Add a constructor. Don't define as
13616 a typedef.
13617 (macho_register_oso): Remove.
13618 (macho_symtab_read): Take a std::vector.
13619 (oso_el_compare_name): Now a std::sort comparator.
13620 (macho_symfile_read_all_oso): Take a std::vector.
13621 (macho_symfile_read): Use std::vector. Remove cleanups.
13622
a2b2bc12
TT
136232018-03-22 Tom Tromey <tom@tromey.com>
13624
13625 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
13626 (record_full_goto_bookmark): Use std::string.
13627
7a8f494c
PFC
136282018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13629
13630 PR tdep/18295
13631 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
13632 a single mask.
13633
dd6d677f
PFC
136342018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13635
13636 * rs6000-tdep.c (store_insn_p): New function.
13637 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
13638 and cr_reg to their unshifted values. Use store_insn_p to
13639 match LR saves using either R1 or fdata->alloca_reg. Use
13640 store_insn_p to match CR saves. Set alloca_reg_offset
13641 when alloca_reg and framep are set. Remove lr_reg shift
13642 when assigning to fdata->lr_register.
13643
26d6cec4
AA
136442018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
13645
13646 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
13647 command line args instead of emitting a warning.
13648
5d9310c4
SM
136492018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13650
13651 * tracepoint.h (struct static_tracepoint_marker): Initialize
13652 fields, define default constructor, move constructor and move
13653 assignment, disable the rest.
13654 <str_id, extra>: Make std::string.
13655 (release_static_tracepoint_marker): Remove.
13656 (free_current_marker): Remove.
13657 * tracepoint.c (free_current_marker): Remove.
13658 (parse_static_tracepoint_marker_definition): Adjust to
13659 std::string, use new hex2str overload.
13660 (release_static_tracepoint_marker): Remove.
13661 (print_one_static_tracepoint_marker): Get marker by reference
13662 and adjust to std::string.
13663 (info_static_tracepoint_markers_command): Adjust to std::vector
13664 changes
13665 * target.h (static_tracepoint_marker_p): Remove typedef.
13666 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
13667 (struct target_ops) <to_static_tracepoint_marker_at>: Return
13668 bool.
13669 <to_static_tracepoint_markers_by_strid>: Return std::vector.
13670 * target-debug.h
13671 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
13672 (target_debug_print_std_vector_static_tracepoint_marker): New.
13673 (target_debug_print_struct_static_tracepoint_marker_p): Rename
13674 to...
13675 (target_debug_print_static_tracepoint_marker_p): ... this.
13676 * target-delegates.c: Re-generate.
13677 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
13678 Make std::string.
13679 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
13680 (decode_static_tracepoint_spec): Adjust to std::vector.
13681 (tracepoint_print_one_detail): Adjust to std::string.
13682 (strace_marker_decode_location): Adjust to std::string.
13683 (update_static_tracepoint): Adjust to std::string, remove call
13684 to release_static_tracepoint_marker.
13685 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
13686 Adjust to std::vector.
13687 * remote.c (remote_static_tracepoint_marker_at): Return bool.
13688 (remote_static_tracepoint_markers_by_strid): Adjust to
13689 std::vector.
13690 * common/rsp-low.h (hex2str): New overload with explicit count
13691 of bytes.
13692 * common/rsp-low.c (hex2str): New overload with explicit count
13693 of bytes.
13694 * unittests/rsp-low-selftests.c (test_hex2str): New function.
13695 (_initialize_rsp_low_selftests): Add test_hex2str test.
13696 * unittests/tracepoint-selftests.c
13697 (test_parse_static_tracepoint_marker_definition): Adjust to
13698 std::string.
13699
62c222b6
SM
137002018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13701
13702 * tracepoint.c (parse_static_tracepoint_marker_definition):
13703 Consider case where the definition is followed by more
13704 definitions.
13705 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13706 tracepoint-selftests.c.
13707 * unittests/tracepoint-selftests.c: New.
13708
7eb2418f
PFC
137092018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13710
13711 * MAINTAINERS (Write After Approval): Add Pedro Franco de
13712 Carvalho.
13713
7cbe16e9
SR
137142018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13715
3d6b3b82 13716 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 13717
4ee89e90
SR
137182018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13719
3d6b3b82 13720 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 13721
92630041
TT
137222018-03-19 Tom Tromey <tom@tromey.com>
13723
13724 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
13725 "IDENT" production.
13726
76727919
TT
137272018-03-19 Pedro Alves <palves@redhat.com>
13728 Tom Tromey <tom@tromey.com>
13729
13730 * unittests/observable-selftests.c: New file.
13731 * common/observable.h: New file.
13732 * observable.h: New file.
13733 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
13734 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
13735 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
13736 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
13737 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
13738 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
13739 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
13740 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
13741 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
13742 python/py-breakpoint.c, python/py-finishbreakpoint.c,
13743 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
13744 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
13745 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
13746 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
13747 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
13748 tui/tui-interp.c, valops.c: Update all users.
13749 * tui/tui-hooks.c (tui_bp_created_observer)
13750 (tui_bp_deleted_observer, tui_bp_modified_observer)
13751 (tui_inferior_exit_observer, tui_before_prompt_observer)
13752 (tui_normal_stop_observer, tui_register_changed_observer):
13753 Remove.
13754 (tui_observers_token): New global.
13755 (attach_or_detach, tui_attach_detach_observers): New functions.
13756 (tui_install_hooks, tui_remove_hooks): Use
13757 tui_attach_detach_observers.
13758 * record-btrace.c (record_btrace_thread_observer): Remove.
13759 (record_btrace_thread_observer_token): New global.
13760 * observer.sh: Remove.
13761 * observer.c: Rename to observable.c.
13762 * observable.c (namespace gdb_observers): Define new objects.
13763 (observer_debug): Move into gdb_observers namespace.
13764 (struct observer, struct observer_list, xalloc_observer_list_node)
13765 (xfree_observer_list_node, generic_observer_attach)
13766 (generic_observer_detach, generic_observer_notify): Remove.
13767 (_initialize_observer): Update.
13768 Don't include observer.inc.
13769 * Makefile.in (generated_files): Remove observer.h, observer.inc.
13770 (clean mostlyclean): Likewise.
13771 (observer.h, observer.inc): Remove targets.
13772 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
13773 (COMMON_SFILES): Use observable.c, not observer.c.
13774 * .gitignore: Remove observer.h.
13775
1cb1f3da
TT
137762018-03-18 Tom Tromey <tom@tromey.com>
13777
13778 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
13779 gdb::def_vector.
13780 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
13781
a06ab151
TT
137822018-03-17 Tom Tromey <tom@tromey.com>
13783
13784 * auto-load.c (auto_load_objfile_script_1): Use std::string.
13785
770623f7
TT
137862018-03-17 Tom Tromey <tom@tromey.com>
13787
13788 * target.c (class scoped_target_fd): New.
13789 (target_fileio_close_cleanup): Remove.
13790 (target_fileio_read_alloc_1): Use scoped_target_fd.
13791
39be3c7e
SM
137922018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
13793
13794 * silent-rules.mk: New.
13795 * Makefile.in: Include silent-rules.mk
13796 (srcdir, VPATH, top_srcdir): Move up.
13797 (COMPILE): Add ECHO_CXX.
13798 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
13799 (init.c): Add ECHO_INIT_C.
13800 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
13801 (version.c): Add ECHO_GEN.
13802 (printcmd.o): Add ECHO_CXX.
13803 (target-float.o): Add ECHO_CXX.
13804 (ada-exp.o): Add ECHO_CXX.
13805 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
13806 (insight$(EXEEXT)): Add ECHO_CXXLD.
13807 * gnulib/configure.ac: Add AM_SILENT_RULES.
13808 * gnulib/aclocal.m4: Re-generate.
13809 * gnulib/configure: Re-generate.
13810 * gnulib/import/Makefile.in: Re-generate.
13811
37e136b1
TT
138122018-03-16 Tom Tromey <tom@tromey.com>
13813
13814 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
13815 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
13816 * utils.c (do_free_section_addr_info)
13817 (make_cleanup_free_section_addr_info): Remove.
13818 * symfile.h (struct other_sections): Add constructor.
13819 (struct section_addr_info): Remove.
13820 (section_addr_info): New typedef.
13821 (struct sym_fns) <sym_offsets>: Change type of parameter.
13822 (build_section_addr_info_from_objfile)
13823 (relative_addr_info_to_section_offsets, addr_info_make_relative)
13824 (default_symfile_offsets, symbol_file_add)
13825 (symbol_file_add_from_bfd)
13826 (build_section_addr_info_from_section_table): Update.
13827 (alloc_section_addr_info, free_section_addr_info): Don't declare.
13828 * symfile.c (alloc_section_addr_info): Remove.
13829 (build_section_addr_info_from_section_table): Change return type.
13830 Update.
13831 (build_section_addr_info_from_bfd)
13832 (build_section_addr_info_from_objfile): Likewise.
13833 (free_section_addr_info): Remove.
13834 (relative_addr_info_to_section_offsets): Change type of "addrs".
13835 (addrs_section_compar): Now a std::sort comparator.
13836 (addrs_section_sort): Change return type.
13837 (addr_info_make_relative): Change type of "addrs". Update.
13838 (default_symfile_offsets, syms_from_objfile_1)
13839 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
13840 (symbol_file_add_separate): Update.
13841 (symbol_file_add): Change type of "addrs". Update.
13842 (add_symbol_file_command): Update. Remove cleanups.
13843 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
13844 cleanups.
13845 * symfile-debug.c (debug_sym_offsets): Change type of "info".
13846 * solib.c (solib_read_symbols): Update.
13847 * objfiles.c (objfile_relocate): Update. Remove cleanups.
13848 * machoread.c (macho_symfile_offsets): Update.
13849 * jit.c (jit_bfd_try_read_symtab): Update.
13850
03afa6ef
SM
138512018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
13852
13853 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13854 unittests/utils-selftests.c.
13855 * unittests/utils-selftests.c: New file.
13856
3ae9ce5d
TT
138572018-03-14 Tom Tromey <tom@tromey.com>
13858
13859 PR cli/14977:
13860 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
13861 for NULL.
13862
b8c2339b
TT
138632018-03-14 Tom Tromey <tom@tromey.com>
13864
13865 PR cli/19918:
13866 * printcmd.c (printf_pointer): Allow "-" in format.
13867
80ae639d
TT
138682018-03-14 Tom Tromey <tom@tromey.com>
13869
13870 * printcmd.c (_initialize_printcmd): Add usage to printf.
13871
0d671d99
YQ
138722018-03-14 Yao Qi <qiyao@sourceware.org>
13873
13874 * MAINTAINERS: Update my email address.
13875
b577b6af
TT
138762018-03-13 Tom Tromey <tom@tromey.com>
13877
13878 * machoread.c (macho_check_dsym): Change filenamep to a
13879 std::string*.
13880 (macho_symfile_read): Update.
13881 * symfile.c (load_command): Use std::string.
13882
89a3b63e
AB
138832018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
13884
13885 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
13886 to error message string.
13887 (riscv_register_name): Use xsnprintf instead of sprintf.
13888 (riscv_insn::fetch_instruction): Use gdb_assert instead of
13889 internal_error.
13890 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
13891 error.
13892 (riscv_push_dummy_call): Likewise.
13893
984c7238
TT
138942018-03-12 Tom Tromey <tom@tromey.com>
13895
13896 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
13897 Use gdb::byte_vector.
13898 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
13899
933522d1
YQ
139002018-03-12 Yao Qi <yao.qi@linaro.org>
13901
13902 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
13903 parameter type to readable_regcache.
13904 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
13905 the declaration.
13906
be2daae6
TT
139072018-03-11 Tom Tromey <tom@tromey.com>
13908
13909 * dwarf2read.c (struct nextfield): Add initializers.
13910 (struct nextfnfield): Remove.
13911 (struct fnfieldlist): Add initializers. Remove "length" and
13912 "head", use std::vector.
13913 (struct decl_field_list): Remove.
13914 (struct field_info): Add initializers.
13915 <fields, baseclasses>: Now std::vector.
13916 <nbaseclasses, nfnfields, typedef_field_list_count,
13917 nested_types_list_count>: Remove.
13918 (dwarf2_add_field, dwarf2_add_type_defn)
13919 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
13920 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
13921 (process_structure_scope): Update.
13922
484cf504
TT
139232018-03-11 Tom Tromey <tom@tromey.com>
13924
13925 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
13926 for use by std::sort.
13927 (build_type_psymtabs_1): Use std::vector.
13928
9bd8e0b0
EZ
139292018-03-09 Eli Zaretskii <eliz@gnu.org>
13930
13931 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
13932 and LIBMPFR in the printed configuration.
13933
5dc1a704
TT
139342018-03-08 Tom Tromey <tom@tromey.com>
13935
13936 * source.c (get_filename_and_charpos): Use scoped_fd.
13937 * nto-procfs.c (procfs_open_1): Use scoped_fd.
13938 (procfs_pidlist): Likewise.
13939 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
13940 (iterate_over_mappings): Likewise.
13941
fdf07f3a
TT
139422018-03-08 Tom Tromey <tom@tromey.com>
13943
13944 * infcall.c (struct call_return_meta_info)
13945 <stack_temporaries_enabled>: Remove.
13946 (get_call_return_value, call_function_by_hand_dummy): Update.
13947 * thread.c (disable_thread_stack_temporaries): Remove.
13948 (enable_thread_stack_temporaries): Remove.
13949 (thread_stack_temporaries_enabled_p): Return bool.
13950 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
13951 (get_last_thread_stack_temporary): Update.
13952 * eval.c (evaluate_subexp): Update.
13953 * gdbthread.h (class enable_thread_stack_temporaries): Now a
13954 class, not a function.
13955 (value_ptr, value_vec): Remove typedefs.
13956 (class thread_info) <stack_temporaries_enabled>: Now bool.
13957 <stack_temporaries>: Now a std::vector.
13958 (thread_stack_temporaries_enabled_p)
13959 (value_in_thread_stack_temporaries): Return bool.
13960
567a3e54
SM
139612018-03-08 Simon Marchi <simon.marchi@ericsson.com>
13962
13963 * remote.c (putpkt_binary): Fix omitted bytes reporting.
13964 (getpkt_or_notif_sane_1): Likewise.
13965
00b40057
SM
139662018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13967
13968 * build-id.c (build_id_to_debug_bfd): Use std::string.
13969
a8dbfd58
SM
139702018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13971
13972 * build-id.c (find_separate_debug_file_by_buildid): Return
13973 std::string.
13974 * build-id.h (find_separate_debug_file_by_buildid): Return
13975 std::string.
13976 * coffread.c (coff_symfile_read): Adjust to std::string.
13977 * elfread.c (elf_symfile_read): Adjust to std::string.
13978 * symfile.c (separate_debug_file_exists): Change parameter to
13979 std::string.
13980 (find_separate_debug_file): Return std::string.
13981 (find_separate_debug_file_by_debuglink): Return std::string.
13982 * symfile.h (find_separate_debug_file_by_debuglink): Return
13983 std::string.
13984
e6a58aa8
SM
139852018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13986
13987 * common/xml-utils.c (xml_escape_text): Move code to...
13988 (xml_escape_text_append): ... this new function.
13989 * common/xml-utils.h (xml_escape_text_append): New declaration.
13990 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
13991 New function.
13992 (_initialize_xml_utils): register test_xml_escape_text_append as
13993 a selftest.
13994
4ef0bef6
AH
139952018-03-07 Alan Hayward <alan.hayward@arm.com>
13996
13997 * defs.h: Remove MAX_REGISTER_SIZE.
13998 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
13999 asserts.
14000 * python/py-unwind.c (pyuw_sniffer): Likewise.
14001
e0d3522b
TT
140022018-03-07 Tom Tromey <tom@tromey.com>
14003
14004 * linux-tdep.c (linux_info_proc): Update.
14005 * target.h (struct target_ops) <to_fileio_readlink>: Return
14006 optional<string>.
14007 (target_fileio_readlink): Return optional<string>.
14008 * remote.c (remote_hostio_readlink): Return optional<string>.
14009 * inf-child.c (inf_child_fileio_readlink): Return
14010 optional<string>.
14011 * target.c (target_fileio_readlink): Return optional<string>.
14012
ea005f31
AB
140132018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
14014
14015 * regcache.c (cooked_read_test): Add riscv to the list of
14016 architectures that have a save_reggroup.
14017
e95a97d4
AA
140182018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
14019
14020 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
14021 value is not a dynamic class object.
14022
d8344f3d
TT
140232018-03-06 Tom Tromey <tom@tromey.com>
14024
14025 * rust-exp.y: Formatting fixes.
14026
9add17f2
AB
140272018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14028
14029 * riscv-tdep.c (riscv_register_name): Remove target description
14030 support.
14031 (riscv_gdbarch_init): Remove target description check.
14032
c9486dfe
AB
140332018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14034
14035 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
14036 comment.
14037 * riscv-tdep.h: Likewise.
14038
d74aff3d
AB
140392018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14040
14041 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
14042 (riscv_pseudo_register_write): Delete.
14043 (riscv_gdbarch_init): Remove all use of pseudo registers.
14044
7ea78b59
SM
140452018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14046
14047 * record-btrace.c (btrace_print_lines): Replace cleanup
14048 parameter with RAII equivalents.
14049 (btrace_insn_history): Replace cleanup with RAII equivalents.
14050 * ui-out.h (make_cleanup_ui_out_list_begin_end,
14051 make_cleanup_ui_out_tuple_begin_end): Remove.
14052 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
14053 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
14054 make_cleanup_ui_out_list_begin_end): Remove.
14055
53127008
SM
140562018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14057
14058 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
14059 parameter types to std::vector. Use bool.
14060 (record_btrace_wait): Replace VEC(tp_t) with
14061 std::vector<thread_info *>.
14062 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
14063
228f1508
SM
140642018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14065
14066 * record-btrace.c (record_btrace_disable_callback): Remove.
14067 (struct scoped_btrace_disable): New.
14068 (record_btrace_open): Use scoped_btrace_disable.
14069
b2970c23
AB
140702018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14071
14072 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
14073 reading values from registers.
14074
fb294655
AB
140752018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14076
14077 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
14078 where appropriate.
14079
cab5bb9d
AB
140802018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14081
14082 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
14083 change parameter type. Use GDB's print functions, and use
14084 core_addr_to_string where appropriate.
14085 (riscv_push_dummy_call): Use core_addr_to_string where
14086 appropriate, update call to riscv_print_arg_location, and reindent
14087 a few lines.
14088 (riscv_return_value): Update call to riscv_print_arg_location.
14089
dbbb1059
AB
140902018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14091 Tim Newsome <tim@sifive.com>
14092 Albert Ou <a0u@eecs.berkeley.edu>
14093 Darius Rad <darius@bluespec.com>
14094
14095 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
14096 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
14097 (ALLDEPFILES): Add riscv-tdep.c
14098 * configure.tgt: Add riscv support.
14099 * riscv-tdep.c: New file.
14100 * riscv-tdep.h: New file.
14101 * NEWS: Mention new target.
14102 * MAINTAINERS: Add entry for riscv.
14103
5dc43913
AB
141042018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14105
14106 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
14107 fields within aggregates.
14108
3dea1ef7
SM
141092018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
14110
14111 * record-btrace.c (btrace_print_lines): Change type of flags to
14112 gdb_disassembly_flags.
14113
7efba073
JB
141142018-03-04 John Baldwin <jhb@FreeBSD.org>
14115
14116 * fbsd-nat.c: Include "inf-ptrace.h".
14117 (USE_SIGTRAP_SIGINFO): Conditionally define.
14118 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
14119 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
14120 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
14121 function.
14122 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
14123 Likewise.
14124 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
14125 Likewise.
14126 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
14127 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
14128 "supports_stopped_by_hw_breakpoint" target methods.
14129
386a8676
JB
141302018-03-04 John Baldwin <jhb@FreeBSD.org>
14131
14132 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
14133 * fbsd-nat.c (debug_fbsd_nat): New variable.
14134 (show_fbsd_nat_debug): New function.
14135 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
14136 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
14137
12279366
JB
141382018-03-04 John Baldwin <jhb@FreeBSD.org>
14139
14140 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
14141 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
14142 prototype.
14143 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
14144 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
14145 method.
14146
54693cf5
SM
141472018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14148
14149 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
14150 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
14151
ccb2231c
SM
141522018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14153
14154 * charset.c (struct charset_vector): New.
14155 (charsets): Change type to charset_vector.
14156 (find_charset_names): Adjust.
14157 (add_one): Adjust.
14158 (_initialize_charset): Adjust.
14159
6fb16ce6
SM
141602018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14161
14162 * progspace.h (struct program_space) <deleted_solibs>: Change
14163 type to std::vector<std::string>.
14164 * progspace.c (clear_program_space_solib_cache): Adjust.
14165 * breakpoint.c (print_solib_event): Adjust.
14166 (check_status_catch_solib): Adjust.
14167 * solib.c (update_solib_list): Adjust.
14168 * ui-out.h (class ui_out) <field_string>: New overload.
14169 * ui-out.c (ui_out::field_string): New overload.
14170
564b1e3f
SM
141712018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14172
14173 * progspace.h (struct program_space): Add constructor and
14174 destructor, initialize fields.
14175 (add_program_space): Remove.
14176 * progspace.c (add_program_space): Rename to...
14177 (program_space::program_space): ... this.
14178 (release_program_space): Rename to...
14179 (program_space::~program_space): ... this.
14180 (delete_program_space): Use delete to delete program_space.
14181 (initialize_progspace): Use new to allocate program_space.
14182 * inferior.c (add_inferior_with_spaces): Likewise.
14183 (clone_inferior_command): Likewise.
14184 * infrun.c (follow_fork_inferior): Likewise.
14185 (handle_vfork_child_exec_or_exit): Likewise.
14186
e80aaf61
SM
141872018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14188
14189 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
14190 (delim_string_to_char_ptr_vec): Return std::vector of
14191 gdb::unique_xmalloc_ptr.
14192 (dirnames_to_char_ptr_vec_append): Take std::vector of
14193 gdb::unique_xmalloc_ptr.
14194 (dirnames_to_char_ptr_vec): Return std::vector of
14195 gdb::unique_xmalloc_ptr.
14196 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
14197 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
14198 (delim_string_to_char_ptr_vec): Return an std::vector of
14199 gdb::unique_xmalloc_ptr, adjust the code.
14200 (dirnames_to_char_ptr_vec_append): Take an std::vector of
14201 gdb::unique_xmalloc_ptr, adjust the code.
14202 (dirnames_to_char_ptr_vec): Return an std::vector of
14203 gdb::unique_xmalloc_ptr, adjust the code.
14204 * auto-load.c (auto_load_safe_path_vec): Change type to
14205 std::vector of gdb::unique_xmalloc_ptr.
14206 (auto_load_expand_dir_vars): Return an std::vector of
14207 gdb::unique_xmalloc_ptr, adjust the code.
14208 (auto_load_safe_path_vec_update): Adjust.
14209 (filename_is_in_auto_load_safe_path_vec): Adjust.
14210 (auto_load_objfile_script_1): Adjust.
14211 * build-id.c (build_id_to_debug_bfd): Adjust.
14212 * linux-thread-db.c (thread_db_load_search): Adjust.
14213 * source.c (add_path): Adjust.
14214 (openp): Adjust.
14215 * symfile.c (find_separate_debug_file): Adjust.
14216 * utils.c (do_free_char_ptr_vec): Remove.
14217 (make_cleanup_free_char_ptr_vec): Remove.
14218
ab818ade
SDJ
142192018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
14220
14221 PR gdb/22907
14222 * common/pathstuff.c: Conditionally include "<windows.h>".
14223
e1e6f073
GS
142242018-03-01 Georg Sauthoff <mail@georg.so>
14225
14226 PR gdb/22888
14227 * gcore.in: Quote variables and switch interpreter to bash.
14228
c7b15a66
TT
142292018-03-01 Tom Tromey <tom@tromey.com>
14230
14231 * dwarf2read.c (alloc_discriminant_info): Fix default_index
14232 assertion. Add assertion for discriminant_index.
14233 (quirk_rust_enum): Use correct base type name in univariant case.
14234
0cb7c7b0
SM
142352018-03-01 Simon Marchi <simon.marchi@ericsson.com>
14236
14237 * record.c (get_call_history_modifiers): Return a
14238 record_print_flags.
14239 (cmd_record_call_history): Adjust.
14240 * record-btrace.c (record_btrace_call_history): Adjust.
14241 (record_btrace_call_history_range): Adjust.
14242 (record_btrace_call_history_from): Adjust.
14243 * target-debug.h (target_debug_print_record_print_flags): New.
14244 * target-delegates.c: Re-generate.
14245 * target.c (target_call_history): Change flags type.
14246 (target_call_history_from): Likewise.
14247 (target_call_history_range): Likewise.
14248 * target.h (struct target_ops) <target_call_history>: Likewise.
14249 (target_call_history_from): Likewise.
14250 (target_call_history_range): Likewise.
14251
25e3c82c
SDJ
142522018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
14253 Simon Marchi <simon.marchi@polymtl.ca>
14254
14255 * common/common-utils.c: Include "sys/stat.h".
14256 (is_regular_file): Move here from "source.c"; change return
14257 type to "bool".
14258 * common/common-utils.h (is_regular_file): New prototype.
14259 * common/pathstuff.c (contains_dir_separator): New function.
14260 * common/pathstuff.h (contains_dir_separator): New prototype.
14261 * source.c: Don't include "sys/stat.h".
14262 (is_regular_file): Move to "common/common-utils.c".
14263
b4987c95
SDJ
142642018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
14265
14266 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
14267 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
14268 * auto-load.c: Include "common/pathstuff.h".
14269 * common/common-def.h (current_directory): Move here.
14270 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
14271 function.
14272 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
14273 prototype.
14274 * common/pathstuff.c: New file.
14275 * common/pathstuff.h: New file.
14276 * compile/compile.c: Include "common/pathstuff.h".
14277 * defs.h (current_directory): Move to "common/common-defs.h".
14278 * dwarf2read.c: Include "common/pathstuff.h".
14279 * exec.c: Likewise.
14280 * guile/scm-safe-call.c: Likewise.
14281 * linux-thread-db.c: Likewise.
14282 * main.c: Likewise.
14283 * nto-tdep.c: Likewise.
14284 * objfiles.c: Likewise.
14285 * source.c: Likewise.
14286 * symtab.c: Likewise.
14287 * utils.c: Include "common/pathstuff.h".
14288 (gdb_realpath): Move to "common/pathstuff.c".
14289 (gdb_realpath_keepfile): Likewise.
14290 (gdb_abspath): Likewise.
14291 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
14292 (gdb_realpath_keepfile): Likewise.
14293 (gdb_abspath): Likewise.
14294
f169cfdc
JB
142952018-02-28 John Baldwin <jhb@FreeBSD.org>
14296
14297 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
14298 wildcard process pid for super_resume for kernels with a
14299 specific bug.
14300
e05cac70
PM
143012018-02-27 Phil Muldoon <pmuldoon@redhat.com>
14302
14303 * compile/compile.c (get_args): Add additional comments
14304 explaining function.
14305
55089490
TT
143062018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
14307 Tom Tromey <tom@tromey.com>
14308
14309 * target.h (memory_write_request_s): Remove typedef. Don't define
14310 VEC.
14311 (target_write_memory_blocks): Change argument to std::vector.
14312 (struct memory_write_request): Add constructor.
14313 * target-memory.c (compare_block_starting_address): Return bool.
14314 Change argument types.
14315 (claim_memory): Change arguments to use std::vector.
14316 (split_regular_and_flash_blocks, blocks_to_erase)
14317 (compute_garbled_blocks): Likewise.
14318 (cleanup_request_data, cleanup_write_requests_vector): Remove.
14319 (target_write_memory_blocks): Change argument to std::vector.
14320 * symfile.c (struct load_section_data): Add constructor and
14321 destructor. Use std::vector for "requests".
14322 (struct load_progress_data): Add initializers.
14323 (load_section_callback): Update. Use "new".
14324 (clear_memory_write_data): Remove.
14325 (generic_load): Update.
14326
0c305b61
AH
143272018-02-27 Alan Hayward <alan.hayward@arm.com>
14328
14329 * arch/aarch64.h: Use common/tdesc.h.
14330
c5196c92
MR
143312018-02-26 Maciej W. Rozycki <macro@mips.com>
14332
14333 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
14334 architecture with a 64-bit ABI.
14335
37c33887
MR
143362018-02-26 Maciej W. Rozycki <macro@mips.com>
14337
14338 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
14339 ahead of target description loading.
14340
d4dd3282
TT
143412018-02-26 Tom Tromey <tom@tromey.com>
14342
14343 * stack.c (backtrace_command_1): Update.
14344 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
14345 of "flags".
14346 * python/py-framefilter.c (py_print_frame)
14347 (gdbpy_apply_frame_filter): Change type of "flags".
14348 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
14349 of "flags".
14350 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
14351 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
14352 * extension.h (enum frame_filter_flag): Rename from
14353 frame_filter_flags.
14354 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
14355 (apply_ext_lang_frame_filter): Change type of "flags".
14356 * extension.c (apply_ext_lang_frame_filter): Change type of
14357 "flags".
14358 * extension-priv.h (struct extension_language_ops)
14359 <apply_frame_filter>: Change type of "flags".
14360
6893c19a
TT
143612018-02-26 Tom Tromey <tom@tromey.com>
14362
14363 PR python/16497:
14364 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
14365 off-by-one in py_end computation.
14366 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
14367 PRINT_MORE_FRAMES.
14368 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
14369 constant.
14370
2ddeaf8a
TT
143712018-02-26 Tom Tromey <tom@tromey.com>
14372
14373 * dwarf2read.c (struct variant_field): New.
14374 (struct nextfield) <variant>: New field.
14375 (dwarf2_add_field): Handle DW_TAG_variant_part.
14376 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
14377 discriminated union.
14378 (read_structure_type): Handle DW_TAG_variant_part.
14379 (handle_struct_member_die): New function, extracted from
14380 process_structure_scope. Handle DW_TAG_variant.
14381 (process_structure_scope): Handle discriminated unions. Call
14382 handle_struct_member_die.
14383
c9317f21
TT
143842018-02-26 Tom Tromey <tom@tromey.com>
14385
14386 * rust-lang.h (rust_last_path_segment): Declare.
14387 * rust-lang.c (rust_last_path_segment): Now public. Change
14388 contract.
14389 (struct disr_info): Remove.
14390 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
14391 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
14392 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
14393 (rust_enum_p, rust_enum_variant): New function.
14394 (rust_underscore_fields): Remove "offset" parameter.
14395 (rust_print_enum): New function.
14396 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
14397 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
14398 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
14399 enums.
14400 (rust_internal_print_type): New function, from rust_print_type.
14401 Remove enum code.
14402 (rust_print_type): Call rust_internal_print_type.
14403 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
14404 Update enum handling.
14405 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
14406 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
14407 (rust_union_quirks): New functions.
14408 (process_full_comp_unit, process_full_type_unit): Call
14409 rust_union_quirks.
14410 (process_structure_scope): Update rust_unions if necessary.
14411
7c22600a
TT
144122018-02-26 Tom Tromey <tom@tromey.com>
14413
14414 * value.h (value_union_variant): Declare.
14415 * valops.c (value_union_variant): New function.
14416 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
14417 (struct discriminant_info): New.
14418 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
14419 enumerator.
14420 (struct main_type) <flag_discriminated_union>: New field.
14421
15ce8941
TT
144222018-02-26 Tom Tromey <tom@tromey.com>
14423
14424 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14425 unittests/unpack-selftests.c.
14426 * unittests/unpack-selftests.c: New file.
14427 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
14428
48fbe735
YQ
144292018-02-26 Yao Qi <yao.qi@linaro.org>
14430
14431 * dwarf2read.c (struct partial_die_info) <read>: New method.
14432 (read_partial_die): Remove the declaration.
14433 (load_partial_dies): Update.
14434 (partial_die_info::partial_die_info):
14435 (read_partial_die): Change it to partial_die_info::read.
14436
52356b79
YQ
144372018-02-26 Yao Qi <yao.qi@linaro.org>
14438
14439 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
14440 (fixup_partial_die): Remove declaration.
14441 (scan_partial_symbols): Update.
14442 (partial_die_parent_scope): Likewise.
14443 (partial_die_full_name): Likewise.
14444 (fixup_partial_die): Change it to partial_die_info::fixup.
14445
35cc7ed7
YQ
144462018-02-26 Yao Qi <yao.qi@linaro.org>
14447
14448 * dwarf2read.c (read_partial_die): Update the declaration.
14449 (load_partial_dies): Caller update.
14450 (read_partial_die): Remove one argument abbrev_len.
14451
6f06d47b
YQ
144522018-02-26 Yao Qi <yao.qi@linaro.org>
14453
14454 * dwarf2read.c (struct partial_die_info): Add ctor, delete
14455 assignment operator.
14456 (load_partial_dies): Use ctor and copy ctor.
14457 (read_partial_die): Update.
14458 (dwarf2_cu::find_partial_die): Use ctor.
14459
d590ff25
YQ
144602018-02-26 Yao Qi <yao.qi@linaro.org>
14461
14462 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
14463 (find_partial_die_in_comp_unit): Change it to
14464 dwarf2_cu::find_partial_die.
14465 (find_partial_die): Update.
14466
fd0a254f
YQ
144672018-02-26 Yao Qi <yao.qi@linaro.org>
14468
14469 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
14470 is NULL.
14471
cd9983dd
YQ
144722018-02-26 Yao Qi <yao.qi@linaro.org>
14473
14474 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
14475
f46cd62a
AH
144762018-02-26 Alan Hayward <alan.hayward@arm.com>
14477
14478 * arch/amd64.h: Use common/tdesc.h.
14479 * arch/i386.c: Likewise.
14480 * arch/i386.h: Likewise.
14481 * arch/tic6x.c: Likewise.
14482 * arch/tdesc.h: Move file from here...
14483 * common/tdesc.h: ...to here.
14484 * features/aarch64-core.c: Regenerate.
14485 * features/aarch64-fpu.c: Regenerate.
14486 * features/i386/32bit-avx.c: Regenerate.
14487 * features/i386/32bit-avx512.c: Regenerate.
14488 * features/i386/32bit-core.c: Regenerate.
14489 * features/i386/32bit-linux.c: Regenerate.
14490 * features/i386/32bit-mpx.c: Regenerate.
14491 * features/i386/32bit-pkeys.c: Regenerate.
14492 * features/i386/32bit-sse.c: Regenerate.
14493 * features/i386/64bit-avx.c: Regenerate.
14494 * features/i386/64bit-avx512.c: Regenerate.
14495 * features/i386/64bit-core.c: Regenerate.
14496 * features/i386/64bit-linux.c: Regenerate.
14497 * features/i386/64bit-mpx.c: Regenerate.
14498 * features/i386/64bit-pkeys.c: Regenerate.
14499 * features/i386/64bit-segments.c: Regenerate.
14500 * features/i386/64bit-sse.c: Regenerate.
14501 * features/i386/x32-core.c: Regenerate.
14502 * features/tic6x-c6xp.c: Regenerate.
14503 * features/tic6x-core.c: Regenerate.
14504 * features/tic6x-gp.c: Regenerate.
14505 * target-descriptions.c: Use common/tdesc.h.
14506 * target-descriptions.h: Likewise.
14507
9b292f68
TT
145082018-02-24 Tom Tromey <tom@tromey.com>
14509
14510 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
14511 (try_thread_db_load_from_dir, thread_db_load_search): Use
14512 std::string.
14513 (info_auto_load_libthread_db_compare): Return bool. Change
14514 argument types.
14515 (info_auto_load_libthread_db): Use std::vector, std::string.
14516 Remove cleanups.
14517
281d762b
TT
145182018-02-24 Tom Tromey <tom@tromey.com>
14519
14520 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
14521 std::string.
14522 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
14523 std::string*.
14524 * gdbarch.c: Rebuild.
14525 * gdbarch.h: Rebuild.
14526 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
14527 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
14528 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
14529 std::string*.
14530
9d8780f0
SM
145312018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
14532
14533 * gdbtypes.h (sect_offset): Change type to uint64_t.
14534 (sect_offset_str): New function.
14535 * dwarf2read.c (create_addrmap_from_aranges): Use
14536 sect_offset_str.
14537 (error_check_comp_unit_head): Likewise.
14538 (create_debug_type_hash_table): Likewise.
14539 (read_cutu_die_from_dwo): Likewise.
14540 (init_cutu_and_read_dies): Likewise.
14541 (init_cutu_and_read_dies_no_follow): Likewise.
14542 (process_psymtab_comp_unit_reader): Likewise.
14543 (partial_die_parent_scope): Likewise.
14544 (peek_die_abbrev): Likewise.
14545 (process_queue): Likewise.
14546 (dwarf2_physname): Likewise.
14547 (read_namespace_alias): Likewise.
14548 (read_import_statement): Likewise.
14549 (create_dwo_cu_reader): Likewise.
14550 (create_cus_hash_table): Likewise.
14551 (lookup_dwo_cutu): Likewise.
14552 (inherit_abstract_dies): Likewise.
14553 (read_func_scope): Likewise.
14554 (read_call_site_scope): Likewise.
14555 (dwarf2_add_member_fn): Likewise.
14556 (read_common_block): Likewise.
14557 (read_module_type): Likewise.
14558 (read_typedef): Likewise.
14559 (read_subrange_type): Likewise.
14560 (load_partial_dies): Likewise.
14561 (read_partial_die): Likewise.
14562 (find_partial_die): Likewise.
14563 (read_str_index): Likewise.
14564 (dwarf2_string_attr): Likewise.
14565 (build_error_marker_type): Likewise.
14566 (lookup_die_type): Likewise.
14567 (dump_die_shallow): Likewise.
14568 (follow_die_ref): Likewise.
14569 (dwarf2_fetch_die_loc_sect_off): Likewise.
14570 (dwarf2_fetch_constant_bytes): Likewise.
14571 (follow_die_sig): Likewise.
14572 (get_signatured_type): Likewise.
14573 (get_DW_AT_signature_type): Likewise.
14574 (dwarf2_find_containing_comp_unit): Likewise.
14575 (set_die_type): Likewise.
14576
8ec57239
JB
145772018-02-21 John Baldwin <jhb@FreeBSD.org>
14578
14579 * arch/aarch64.c: Include "common-defs.h".
14580 * arch/amd64.c: Likewise.
14581 * arch/i386.c: Likewise.
14582
3eac2b65
TT
145832018-02-21 Tom Tromey <tom@tromey.com>
14584
14585 * value.h: (extract_field_op): Update.
14586 * eval.c (extract_field_op): Return a const char *.
14587 * expression.h (parse_expression_for_completion): Update.
14588 * completer.c (complete_expression): Update.
14589 (add_struct_fields): Make fieldname const.
14590 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
14591 (mark_completion_tag, parse_exp_in_context_1): Update.
14592 (parse_expression_for_completion): Change "name" to
14593 unique_xmalloc_ptr*.
14594
6ccb583f
TT
145952018-02-21 Tom Tromey <tom@tromey.com>
14596
14597 * infcall.c (call_function_by_hand_dummy): Use std::vector.
14598
c113ed0c
YQ
145992018-02-21 Yao Qi <yao.qi@linaro.org>
14600
14601 * avr-tdep.c (avr_read_pc): Change parameter type to
14602 readable_regcache.
14603 * gdbarch.sh (read_pc): Likewise.
14604 * gdbarch.c: Re-generated.
14605 * gdbarch.h: Re-generated.
14606 * hppa-tdep.c (hppa_read_pc): Change parameter type to
14607 readable_regcache.
14608 * ia64-tdep.c (ia64_read_pc): Likewise.
14609 * mips-tdep.c (mips_read_pc): Likewise.
14610 * spu-tdep.c (spu_read_pc): Likewise.
14611
4c74fe6b
YQ
146122018-02-21 Yao Qi <yao.qi@linaro.org>
14613
14614 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
14615 * regcache-dump.c: New file.
14616 * regcache.c: Move register_dump to regcache-dump.c.
14617 (maintenance_print_registers): Likewise.
14618 (maintenance_print_raw_registers): Likewise.
14619 (maintenance_print_cooked_registers): Likewise.
14620 (maintenance_print_register_groups): Likewise.
14621 (maintenance_print_remote_registers): Likewise.
14622 (_initialize_regcache): Likewise.
14623 * regcache.h (register_dump): Moved from regcache.c.
14624
796bb026
YQ
146252018-02-21 Yao Qi <yao.qi@linaro.org>
14626
14627 * regcache.c (regcache::regcache): Update.
14628 (regcache::invalidate): Move it to detached_regcache::invalidate.
14629 (get_thread_arch_aspace_regcache): Update.
14630 (regcache::raw_update): Update.
14631 (regcache::cooked_read): Remove some code.
14632 (regcache::cooked_read_value): Likewise.
14633 (regcache::raw_write): Remove assert on m_readonly_p.
14634 (regcache::raw_supply_integer): Move it to
14635 detached_regcache::raw_supply_integer.
14636 (regcache::raw_supply_zeroed): Likewise.
14637 * regcache.h (detached_regcache) <raw_supply_integer>: New
14638 declaration.
14639 <raw_supply_zeroed, invalidate>: Likewise.
14640 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
14641 <invalidate>: Likewise.
14642 <m_readonly_p>: Removed.
14643
215c69dc
YQ
146442018-02-21 Yao Qi <yao.qi@linaro.org>
14645
14646 * infcmd.c (get_return_value): Let stop_regs point to
14647 get_current_regcache.
14648 * regcache.c (regcache::regcache): Remove.
14649 (register_dump_reg_buffer): New class.
14650 (regcache_print): Adjust.
14651 * regcache.h (regcache): Remove constructors.
14652
f3384e66
YQ
146532018-02-21 Yao Qi <yao.qi@linaro.org>
14654
14655 * regcache.c (class register_dump): New class.
14656 (register_dump_regcache, register_dump_none): New class.
14657 (register_dump_remote, register_dump_groups): New class.
14658 (regcache_print): Update.
14659 * regcache.h (regcache_dump_what): Move it to regcache.c.
14660 (regcache) <dump>: Remove.
14661
c8ec2f33
YQ
146622018-02-21 Yao Qi <yao.qi@linaro.org>
14663
14664 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
14665 reg_buffer_rw *.
14666 (jit_unwind_reg_set_impl): Call raw_supply.
14667 (jit_frame_sniffer): Use reg_buffer_rw.
14668 * record-full.c (record_full_core_regbuf): Change its type.
14669 (record_full_core_open_1): Use reg_buffer_rw.
14670 (record_full_close): Likewise.
14671 (record_full_core_fetch_registers): Use regcache->raw_supply.
14672 (record_full_core_store_registers): Likewise.
14673 * regcache.c (regcache::get_register_status): Move it to
14674 reg_buffer.
14675 (regcache_raw_set_cached_value): Remove.
14676 (regcache::raw_set_cached_value): Remove.
14677 (regcache::raw_write): Call raw_supply.
14678 (regcache::raw_supply): Move it to reg_buffer_rw.
14679 * regcache.h (regcache_raw_set_cached_value): Remove.
14680 (reg_buffer_rw): New class.
14681
daf6667d
YQ
146822018-02-21 Yao Qi <yao.qi@linaro.org>
14683
14684 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
14685 readonly_detached_regcache.
14686 (dummy_frame_prev_register): Use regcache->cooked_read.
14687 * frame.c (frame_save_as_regcache): Change return type.
14688 (frame_pop): Update.
14689 * frame.h (frame_save_as_regcache): Update declaration.
14690 * inferior.h (get_infcall_suspend_state_regcache): Update
14691 declaration.
14692 * infrun.c (infcall_suspend_state) <registers>: use
14693 readonly_detached_regcache.
14694 (save_infcall_suspend_state): Don't use regcache_dup.
14695 (get_infcall_suspend_state_regcache): Change return type.
14696 * linux-fork.c (struct fork_info) <savedregs>: Change to
14697 readonly_detached_regcache.
14698 <pc>: New field.
14699 (fork_save_infrun_state): Don't use regcache_dup.
14700 (info_checkpoints_command): Adjust.
14701 * mi/mi-main.c (register_changed_p): Update declaration.
14702 (mi_cmd_data_list_changed_registers): Use
14703 readonly_detached_regcache.
14704 (register_changed_p): Change parameter type to
14705 readonly_detached_regcache.
14706 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
14707 readonly_detached_regcache.
14708 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
14709 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
14710 New.
14711 (regcache::save): Move it to reg_buffer.
14712 (regcache::restore): Change parameter type.
14713 (regcache_dup): Remove.
14714 * regcache.h (reg_buffer) <save>: New method.
14715 (readonly_detached_regcache): New class.
14716 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
14717 readonly_detached_regcache.
14718 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
14719
fc5b8736
YQ
147202018-02-21 Yao Qi <yao.qi@linaro.org>
14721
14722 * frame.c (frame_save_as_regcache): Use regcache method save.
14723 (frame_pop): Use regcache method restore.
14724 * infrun.c (restore_infcall_suspend_state): Likewise.
14725 * linux-fork.c (fork_load_infrun_state): Likewise.
14726 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
14727 save.
14728 * regcache.c (regcache_save): Remove.
14729 (regcache::restore): More asserts.
14730 (regcache_cpy): Remove.
14731 * regcache.h (regcache_save): Remove the declaration.
14732 (regcache::restore): Move from private to public.
14733 Remove the friend declaration of regcache_cpy.
14734 (regcache_cpy): Remove declaration.
14735
849d0ba8
YQ
147362018-02-21 Yao Qi <yao.qi@linaro.org>
14737
14738 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
14739 parameter type to 'readable_regcache *'.
14740 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14741 * arm-tdep.c (arm_neon_quad_read): Likewise.
14742 (arm_pseudo_read): Likewise.
14743 * avr-tdep.c (avr_pseudo_register_read): Likewise.
14744 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14745 * frv-tdep.c (frv_pseudo_register_read): Likewise.
14746 * gdbarch.c: Re-generated.
14747 * gdbarch.h: Re-generated.
14748 * gdbarch.sh (pseudo_register_read): Change parameter type to
14749 'readable_regcache *'.
14750 (pseudo_register_read_value): Likewise.
14751 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
14752 (h8300_pseudo_register_read): Likewise.
14753 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
14754 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14755 (i386_pseudo_register_read_into_value): Likewise.
14756 (i386_pseudo_register_read_value): Likewise.
14757 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
14758 declaration.
14759 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
14760 * m32c-tdep.c (m32c_raw_read): Likewise.
14761 (m32c_read_flg): Likewise.
14762 (m32c_banked_register): Likewise.
14763 (m32c_banked_read): Likewise.
14764 (m32c_sb_read): Likewise.
14765 (m32c_part_read): Likewise.
14766 (m32c_cat_read): Likewise.
14767 (m32c_r3r2r1r0_read): Likewise.
14768 (m32c_pseudo_register_read): Likewise.
14769 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14770 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14771 (mep_pseudo_cr64_read): Likewise.
14772 (mep_pseudo_register_read): Likewise.
14773 * mips-tdep.c (mips_pseudo_register_read): Likewise.
14774 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14775 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14776 * regcache.c (regcache::raw_read): Move it to readable_regcache.
14777 (regcache::cooked_read): Likewise.
14778 (regcache::cooked_read_value): Likewise.
14779 (regcache_cooked_read_signed):
14780 (regcache::cooked_read): Likewise.
14781 * regcache.h (readable_regcache): New class.
14782 (regcache): Inherit readable_regcache. Move some methods to
14783 readable_regcache.
14784 * rl78-tdep.c (rl78_pseudo_register_read): Change
14785 parameter type to 'readable_regcache *'.
14786 * rs6000-tdep.c (do_regcache_raw_read): Remove.
14787 (e500_pseudo_register_read): Change parameter type to
14788 'readable_regcache *'.
14789 (dfp_pseudo_register_read): Likewise.
14790 (vsx_pseudo_register_read): Likewise.
14791 (efpr_pseudo_register_read): Likewise.
14792 * s390-tdep.c (s390_pseudo_register_read): Likewise.
14793 * sh-tdep.c (sh_pseudo_register_read): Likewise.
14794 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
14795 (sh64_pseudo_register_read): Likewise.
14796 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14797 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14798 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14799 (spu_pseudo_register_read): Likewise.
14800 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14801 (xtensa_pseudo_register_read): Likewise.
14802
31716595
YQ
148032018-02-21 Yao Qi <yao.qi@linaro.org>
14804
14805 * regcache.c (regcache::regcache): Call reg_buffer ctor.
14806 (regcache::arch): Move it to reg_buffer::arch.
14807 (regcache::register_buffer): Likewise.
14808 (regcache::assert_regnum): Likewise.
14809 (regcache::num_raw_registers): Likewise.
14810 * regcache.h (reg_buffer): New class.
14811 (regcache): Inherit reg_buffer.
14812
7104e59b
SM
148132018-02-20 Simon Marchi <simon.marchi@ericsson.com>
14814
14815 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
14816 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
14817
2d8adcbd
MM
148182018-02-20 Markus Metzger <markus.t.metzger@intel.com>
14819
14820 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
14821
b5884fa7
AH
148222018-02-19 Alan Hayward <alan.hayward@arm.com>
14823
14824 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
14825 (SFILES): Remove common/*.c files.
14826 (COMMON_OBS): Remove some *.o files built from common/*.c files.
14827 * common/common.host: Add common reference.
14828 * configure.ac: Likewise.
14829 * configure: Regenerate.
14830
fd90ace4
YQ
148312018-02-16 Yao Qi <yao.qi@linaro.org>
14832
14833 * block.c (block_namespace_info): Inherit allocate_on_obstack.
14834 (block_initialize_namespace): Use new.
14835 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
14836 (dwarf2_free_objfile): Use delete.
14837 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
14838 (copy_type_recursive): Use new.
14839 * gdb_obstack.h (allocate_on_obstack): New.
14840
85046ae2
YQ
148412018-02-15 Yao Qi <yao.qi@linaro.org>
14842
14843 PR gdb/22849
14844 * inferior.c (exit_inferior_1): Reset inf->control.
14845
355c559b
JB
148462018-02-15 Joel Brobecker <brobecker@adacore.com>
14847
14848 * ada-lang.c (ada_to_fixed_value_create): Delete advance
14849 declaration.
14850
980548fd
PA
148512018-02-14 Pedro Alves <palves@redhat.com>
14852
14853 * frame-unwind.c (frame_unwind_try_unwinder): Always call
14854 frame_cleanup_after_sniffer on exception.
14855
692d6f97
TT
148562018-02-14 Tom Tromey <tom@tromey.com>
14857
14858 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
14859 const.
14860 (solib_bfd_open): Make pathname const.
14861 * solib.c (solib_bfd_open): Make pathname const.
14862 * solib-spu.c (spu_bfd_fopen): Make name const.
14863 (spu_bfd_open): Make pathname const.
14864 * solib-darwin.c (darwin_bfd_open): Make pathname const.
14865 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
14866
e0cc99a6
TT
148672018-02-14 Tom Tromey <tom@tromey.com>
14868
14869 * symfile.c (symfile_bfd_open): Update.
14870 * source.h (openp, source_full_path_of, find_and_open_source):
14871 Change argument type to unique_xmalloc_ptr.
14872 * source.c (openp): Take a unique_xmalloc_ptr.
14873 (source_full_path_of, find_and_open_source): Likewise.
14874 (open_source_file, symtab_to_fullname): Update.
14875 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
14876 unique_xmalloc_ptr.
14877 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
14878 (exec_file_find): Update.
14879 * psymtab.c (psymtab_to_fullname): Update.
14880 * nto-tdep.h (nto_find_and_open_solib): Update.
14881 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
14882 unique_xmalloc_ptr.
14883 * exec.c (exec_file_attach): Update.
14884 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
14885 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
14886
b46a8d7c
TT
148872018-02-14 Tom Tromey <tom@tromey.com>
14888
14889 * solib.c: Include source.h.
14890 * nto-tdep.c: Include source.h.
14891 * mi/mi-cmd-env.c: Include source.h.
14892 * infcmd.c: Include source.h.
14893 * exec.c: Include source.h.
14894 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
14895 (add_path, directory_switch, source_path, init_source_path): Move
14896 declarations...
14897 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
14898 (add_path, directory_switch, source_path, init_source_path):
14899 ...here.
14900
797bc1cb
TT
149012018-02-14 Tom Tromey <tom@tromey.com>
14902
14903 * solist.h (exec_file_find, solib_find): Return
14904 unique_xmalloc_ptr.
14905 (solib_bfd_fopen): Take a const char *.
14906 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
14907 (exec_file_find, solib_find): Likewise.
14908 (solib_bfd_fopen): Do not take ownership of "pathname".
14909 (solib_bfd_open): Use unique_xmalloc_ptr.
14910 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
14911 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
14912 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
14913 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
14914
f98b2e33
JB
149152018-02-14 Joel Brobecker <brobecker@adacore.com>
14916
14917 * ada-lang.c (name_match_type_from_name): Remove reference to
14918 ada_name_for_lookup in function's documentation.
14919 * ada-lang.h (ada_name_for_lookup): Delete declaration.
14920
24b9144d
SM
149212018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
14922
14923 * defs.h (enum openp_flags): New enum.
14924 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
14925 Move to enum openp_flags.
14926 (openp_flags): New enum flags.
14927 (openp): Change parameter type to openp_flags.
14928 * source.c (openp): Change parameter type to openp_flags.
14929 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
14930 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
14931
387cd15b
SM
149322018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
14933
14934 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
14935 per-command.
14936
b303c6f6
AB
149372018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
14938
14939 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
14940 into...
14941 (class dwarf2_queue_guard): ...the destructor of this new class.
14942 (dw2_do_instantiate_symtab): Create instance of the new class
14943 dwarf2_queue_guard, remove cleanup.
14944
9c3630e9
TT
149452018-02-09 Tom Tromey <tom@tromey.com>
14946
14947 * source.c (find_source_lines): Don't reference past the end of
14948 the vector.
14949
c4e12631
MM
149502018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14951
14952 * remote.c (remote_btrace_maybe_reopen): Change error message.
14953 * btrace.c (btrace_enable): Likewise.
14954 (parse_xml_btrace): Likewise.
14955 (parse_xml_btrace_conf): Likewise.
14956
88711fbf
MM
149572018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14958
14959 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
14960 (linux_enable_pt, linux_enable_bts): Call
14961 diagnose_perf_event_open_fail.
14962
17ad2a4f
MM
149632018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14964
14965 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
14966 Remove parameter and change return type. Update callers. Move it.
14967 (linux_enable_bts, linux_enable_pt): Improve error message.
14968 (linux_enable_pt): Remove zero buffer size check.
14969 (linux_enable_btrace): Improve error messages. Remove NULL return
14970 check.
14971
de6242d3
MM
149722018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14973
14974 * btrace.c (btrace_enable): Remove target_supports_btrace call.
14975 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
14976 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
14977 (linux_supports_pt, linux_supports_btrace): Remove.
14978 (linux_enable_bts): Call cpu_supports_bts.
14979 * nat/linux-btrace.h (linux_supports_btrace): Remove.
14980 * remote.c (remote_supports_btrace): Remove.
14981 (init_remote_ops): Remove remote_supports_btrace.
14982 * target-delegates.c: Regenerated.
14983 * target.c (target_supports_btrace): Remove.
14984 * target.h (target_ops) <to_supports_btrace>: Remove
14985 (target_supports_btrace): Remove.
14986 * x86-linux-nat.c (x86_linux_create_target): Remove
14987 linux_supports_btrace.
14988
9ee23a85
MM
149892018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14990
14991 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
14992 btrace failed.
14993 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
14994 exception and use message in own exception.
14995
5c3284c1
MM
149962018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14997
14998 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
14999 (perf_event_pt_event_type): Use gdb_file_up.
15000 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
15001 scoped_fd, and scoped_mmap.
15002
84696f37
MM
150032018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15004
15005 * common/scoped_mmap.h: New.
15006 * unittests/scoped_mmap-selftest.c: New.
15007 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15008 unittests/scoped_mmap-selftest.c.
15009
ea4a0888
MM
150102018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15011
15012 * common/scoped_fd.h: New.
15013 * unittests/scoped_fd-selftest.c: New.
15014 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15015 unittests/scoped_fd-selftest.c.
15016
869e8290
TT
150172018-02-09 Tom Tromey <tom@tromey.com>
15018
15019 * auto-load.c (auto_load_section_scripts): Use
15020 gdb::unique_xmalloc_ptr.
15021
a37a2ae7
TT
150222018-02-09 Tom Tromey <tom@tromey.com>
15023
15024 * auto-load.c (execute_script_contents): Use std::string.
15025
4e725347
JB
150262018-02-09 Joel Brobecker <brobecker@adacore.com>
15027
15028 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
15029 Python function, rather than a new command.
15030
9a897d43
TT
150312018-02-08 Tom Tromey <tom@tromey.com>
15032
15033 * solib.c (solib_find_1): Use std::string.
15034 (solib_bfd_fopen): Use unique_xmalloc_ptr.
15035
58ef3771
TT
150362018-02-08 Tom Tromey <tom@tromey.com>
15037
15038 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
15039
a9abc434
TT
150402018-02-08 Tom Tromey <tom@tromey.com>
15041
15042 * source.c (find_source_lines): Use gdb::def_vector.
15043
84f27c6f
TT
150442018-02-08 Tom Tromey <tom@tromey.com>
15045
15046 * macrocmd.c (struct temporary_macro_definition): New.
15047 (macro_define_command): Use temporary_macro_definition. Remove
15048 cleanups.
15049 (free_macro_definition_ptr): Remove.
15050
0354904b
TT
150512018-02-08 Tom Tromey <tom@tromey.com>
15052
15053 * macroexp.c (maybe_expand): Use std::string.
15054
1739cf24
TT
150552018-02-08 Tom Tromey <tom@tromey.com>
15056
15057 * macroexp.c (struct macro_buffer): Add initializers for some
15058 members.
15059 (init_buffer, init_shared_buffer, free_buffer)
15060 (free_buffer_return_text): Remove.
15061 (macro_buffer): New constructors.
15062 (~macro_buffer): New destructor.
15063 (macro_buffer::set_shared): New method.
15064 (macro_buffer::resize_buffer, macro_buffer::appendc)
15065 (macro_buffer::appendmem): Now methods, not free functions.
15066 (set_token, append_tokens_without_splicing, stringify)
15067 (macro_stringify): Update.
15068 (gather_arguments): Change return type. Remove argc_p argument,
15069 add args_ptr argument. Use std::vector.
15070 (substitute_args): Remove argc argument. Accept std::vector.
15071 (expand): Update. Use std::vector.
15072 (scan, macro_expand, macro_expand_next): Update.
15073
f6c2623e
TT
150742018-02-08 Tom Tromey <tom@tromey.com>
15075
15076 * symtab.c (default_collect_symbol_completion_matches_break_on):
15077 Use unique_xmalloc_ptr.
15078 * macroscope.h: (sal_macro_scope, user_macro_scope)
15079 (default_macro_scope): Return unique_xmalloc_ptr.
15080 * macroscope.c (sal_macro_scope, user_macro_scope)
15081 (default_macro_scope): Return unique_xmalloc_ptr.
15082 * macroexp.h (macro_expand, macro_expand_once): Return
15083 unique_xmalloc_ptr.
15084 * macroexp.c (macro_expand, macro_expand_once): Return
15085 unique_xmalloc_ptr.
15086 * macrocmd.c (macro_expand_command, macro_expand_once_command)
15087 (info_macro_command, info_macros_command): Use
15088 unique_xmalloc_ptr.
15089 * compile/compile-c-support.c (write_macro_definitions): Use
15090 unique_xmalloc_ptr.
15091 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
15092
c2e0e465
SM
150932018-02-07 Simon Marchi <simon.marchi@ericsson.com>
15094
15095 * value.c (value_static_field): Assign field type instead of
15096 containing type when returning an optimized out value.
15097
3f8c94b4
YQ
150982018-02-06 Yao Qi <yao.qi@linaro.org>
15099
15100 * ft32-tdep.c (ft32_read_pc): Remove.
15101 (ft32_write_pc): Remove.
15102 (ft32_gdbarch_init): Update.
15103 * m32r-tdep.c (m32r_read_pc): Remove.
15104 (m32r_gdbarch_init): Update.
15105 * mep-tdep.c (mep_read_pc): Remove.
15106 (mep_gdbarch_init): Update.
15107 * microblaze-tdep.c (microblaze_write_pc): Remove.
15108 (microblaze_gdbarch_init): Update.
15109 * mn10300-tdep.c (mn10300_read_pc): Remove.
15110 (mn10300_write_pc): Remove.
15111 (mn10300_gdbarch_init): Update.
15112 * moxie-tdep.c (moxie_read_pc): Remove.
15113 (moxie_write_pc): Remove.
15114 (moxie_gdbarch_init): Update.
15115
bca65a23
YQ
151162018-02-06 Yao Qi <yao.qi@linaro.org>
15117
15118 * expprint.c (print_subexp_standard): Handle
15119 OP_F77_UNDETERMINED_ARGLIST.
15120 (dump_subexp_body_standard): Likewise.
15121
583e3f90 151222018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 15123
583e3f90
YQ
15124 * target-descriptions.c (tdesc_element_visitor) Add empty
15125 implementations.
b8df6ca7
AH
15126 (tdesc_type): Move make_gdb_type from here.
15127 (tdesc_type_builtin): Likewise.
15128 (tdesc_type_vector): Likewise.
15129 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
15130 (make_gdb_type_struct): Move from tdesc_type_with_fields.
15131 (make_gdb_type_union): Likewise.
15132 (make_gdb_type_flags): Likewise.
15133 (make_gdb_type_enum): Likewise.
15134 (make_gdb_type): New function.
15135 (tdesc_register_type): Use static make_gdb_type.
15136
e813d34a
RK
151372018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
15138
15139 * infcmd.c (default_print_one_register_info): Align natural-format
15140 column values consistently one under another.
15141 (pad_to_column): New function.
15142
0eb876f5
JB
151432018-02-05 Joel Brobecker <brobecker@adacore.com>
15144
15145 * dwarf2read.c (dwarf2_physname): Move commment.
15146
0625771b
LS
151472018-02-01 Leszek Swirski <leszeks@google.com>
15148
15149 * varobj.c (varobj_formatted_print_options): Allow recursive
15150 pretty printing if pretty printing is enabled.
15151
59498c30
LS
151522018-02-01 Leszek Swirski <leszeks@google.com>
15153
15154 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
15155 names after a structop as a filename.
15156
2d9e6acb
YQ
151572018-02-01 Yao Qi <yao.qi@linaro.org>
15158
15159 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
15160 (arm_record_coproc_data_proc): Likewise.
15161
df95a9cf
YQ
151622018-02-01 Yao Qi <yao.qi@linaro.org>
15163
15164 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
15165
07e5f5cf
NP
151662018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
15167
15168 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
15169 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
15170
3045b475
PA
151712018-01-31 Pedro Alves <palves@redhat.com>
15172
15173 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
15174 * inflow.c (child_terminal_save_inferior): Wrap reference to
15175 tcgetpgrp in HAVE_TERMIOS_H.
15176 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
15177 _WIN32.
15178 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
15179 always iterate over all inferiors.
15180 (gdbsim_cntrl_c): Adjust.
15181 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
15182
929b5ad4
JB
151832018-01-31 Joel Brobecker <brobecker@adacore.com>
15184
15185 * gdbtypes.c (lookup_array_range_type): Make sure the array's
15186 index type is objfile-owned if the element type is as well.
15187
29236ca2
JB
151882018-01-31 Joel Brobecker <brobecker@adacore.com>
15189
15190 GDB 8.1 released.
15191
c81e8879
PR
151922018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
15193
15194 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
15195 "features/s390x-linux64.c".
15196 (_initialize_s390_linux_tdep): Remove initialization of tdescs
15197 s390_linux32 and s390x_linux64.
15198 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
15199 default tdesc.
15200 * s390-tdep.c: Include "features/s390-linux32.c" and
15201 "features/s390x-linux64.c".
15202 (s390_tdesc_valid): Add check for tdesc_has_registers.
15203 (s390_gdbarch_init): Make sure there is always a valid tdesc.
15204 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
15205 tdesc_s390x_linux64.
15206 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
15207 tdesc_s390x_linux64 to...
15208 * s390-tdep.h: ...here.
15209
e671cd59
PA
152102018-01-30 Pedro Alves <palves@redhat.com>
15211
15212 PR gdb/13211
15213 * config.in, configure: Regenerate.
15214 * configure.ac: Check for getpgid.
15215 * go32-nat.c (go32_pass_ctrlc): New.
15216 (go32_target): Install it.
15217 * inf-child.c (inf_child_target): Install
15218 child_terminal_save_inferior, child_pass_ctrlc and
15219 child_interrupt.
15220 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
15221 (inf_ptrace_target): No longer install it.
15222 * infcmd.c (interrupt_target_1): Adjust.
15223 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
15224 (child_interrupt): Declare.
15225 (inferior::terminal_state): New.
15226 * inflow.c (struct terminal_info): Update comments.
15227 (inferior_process_group): Delete.
15228 (terminal_is_ours): Delete.
15229 (gdb_tty_state): New.
15230 (child_terminal_init): Adjust.
15231 (is_gdb_terminal, sharing_input_terminal_1)
15232 (sharing_input_terminal): New functions.
15233 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
15234 Set the process's actual process group in the foreground if
15235 possible. Handle is_ours_for_output/is_ours distinction. Don't
15236 mark terminal as the inferior's if not sharing GDB's terminal.
15237 Don't check attach_flag.
15238 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
15239 pass down a target_terminal_state.
15240 (child_terminal_save_inferior): New, factored out from ...
15241 (child_terminal_ours_1): ... this. Handle
15242 target_terminal_state::is_ours_for_output.
15243 (child_interrupt, child_pass_ctrlc): New.
15244 (inflow_inferior_exit): Clear the inferior's terminal_state.
15245 (copy_terminal_info): Copy the inferior's terminal state.
15246 (_initialize_inflow): Remove reference to terminal_is_ours.
15247 * inflow.h (inferior_process_group): Delete.
15248 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
15249 * procfs.c (procfs_target): Don't install procfs_interrupt.
15250 (procfs_interrupt): Delete.
15251 * remote.c (remote_serial_quit_handler): Adjust.
15252 (remote_interrupt): Remove ptid parameter. Adjust.
15253 * target-delegates.c: Regenerate.
15254 * target.c: Include "terminal.h".
15255 (target_terminal::terminal_state): Rename to ...
15256 (target_terminal::m_terminal_state): ... this.
15257 (target_terminal::init): Adjust.
15258 (target_terminal::inferior): Adjust to per-inferior
15259 terminal_state.
15260 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
15261 (target_terminal::ours, target_terminal::ours_for_output): Use
15262 target_terminal_is_ours_kind.
15263 (target_interrupt): Remove ptid parameter. Adjust.
15264 (default_target_pass_ctrlc): Adjust.
15265 * target.h (target_ops::to_terminal_save_inferior): New field.
15266 (target_ops::to_interrupt): Remove ptid_t parameter.
15267 (target_interrupt): Remove ptid_t parameter. Update comment.
15268 (target_pass_ctrlc): Update comment.
15269 * target/target.h (target_terminal_state): New scoped enum,
15270 factored out of ...
15271 (target_terminal::terminal_state): ... here.
15272 (target_terminal::inferior): Update comments.
15273 (target_terminal::restore_inferior): New.
15274 (target_terminal::is_inferior, target_terminal::is_ours)
15275 (target_terminal::is_ours_for_output): Adjust.
15276 (target_terminal::scoped_restore_terminal_state): Adjust to
15277 rename, and call restore_inferior() instead of inferior().
15278 (target_terminal::scoped_restore_terminal_state::m_state): Change
15279 type.
15280 (target_terminal::terminal_state): Rename to ...
15281 (target_terminal::m_terminal_state): ... this and change type.
15282
9c3a5d93
PA
152832018-01-30 Pedro Alves <palves@redhat.com>
15284
15285 * linux-nat.c (wait_for_signal): New function.
15286 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
15287 directly.
15288 (async_terminal_is_ours)
15289 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
15290 (linux_nat_add_target): Don't override
15291 to_terminal_inferior/to_terminal_ours.
15292
69ab5edb
SDJ
152932018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
15294
15295 * remote.c (remote_follow_fork): Don't call "detach_inferior".
15296
fc8e7e75
SM
152972018-01-28 Simon Marchi <simon.marchi@ericsson.com>
15298
15299 * dwarf2read.c (free_dwo_files): Add forward-declaration.
15300 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
15301 dwarf2_per_objfile_free here.
15302 (dwarf2_per_objfile_free): Remove.
15303 (_initialize_dwarf2_read): Don't register
15304 dwarf2_per_objfile_free as a registry cleanup.
15305
b2a426e2
EZ
153062018-01-27 Eli Zaretskii <eliz@gnu.org>
15307
15308 Avoid compilation errors in MinGW native builds
15309
15310 The error is triggered by including python-internal.h, and the
15311 error message is:
15312
15313 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
15314 from build-gnulib/import/math.h:27,
15315 from d:/usr/Python26/include/pyport.h:235,
15316 from d:/usr/Python26/include/Python.h:58,
15317 from python/python-internal.h:94,
15318 from python/py-arch.c:24:
15319 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
15320 using ::hypot;
15321 ^~~~~
15322
15323 This happens because Python headers define 'hypot' to expand t
15324 '_hypot' in the Windows builds.
15325 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
15326 'hypoth'. This avoids a compilation error.
15327
0bdd8eac
AH
153282018-01-26 Alan Hayward <alan.hayward@arm.com>
15329
15330 * MAINTAINERS (Write After Approval): Fix ordering.
15331
56ae9dc3
AH
153322018-01-26 Alan Hayward <alan.hayward@arm.com>
15333
15334 * MAINTAINERS (Write After Approval): Add Alan Hayward.
15335
7433498b
AM
153362018-01-26 Alan Modra <amodra@gmail.com>
15337
15338 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
15339 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
15340 Remove nop. Make const. Comment.
15341 (powerpc32_plt_stub_so_2): New.
15342 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
15343 Correct count. Update uses.
15344 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
15345 Move common code reading PLT entry word. Correct
15346 powerpc32_plt_stub PLT address calculation.
15347 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
15348 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
15349 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
15350 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
15351 (ppc64_standard_linkage8): Likewise.
15352 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
15353 Correct insns description.
15354 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
15355
0f59d5fc
PA
153562018-01-24 Pedro Alves <palves@redhat.com>
15357
15358 GCC PR libstdc++/83906
15359 * gdbtypes.c (operator==(const dynamic_prop &,
15360 const dynamic_prop &)): New.
15361 (operator==(const range_bounds &, const range_bounds &)): New.
15362 (check_types_equal): Use them instead of memcmp.
15363 * gdbtypes.h (operator==(const dynamic_prop &,
15364 const dynamic_prop &)): Declare.
15365 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
15366 (operator==(const range_bounds &, const range_bounds &)): Declare.
15367 (operator!=(const range_bounds &, const range_bounds &)): Declare.
15368
ef8914a4
PR
153692018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15370
15371 * s390-linux-tdep.c (s390_record_address_mask)
15372 (s390_record_calc_disp_common, s390_record_calc_disp)
15373 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
15374 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
15375 (s390_process_record): Move to s390-tdep.c.
15376 (s390_linux_init_abi_any): Adjust.
15377 * s390-tdep.c (s390_record_address_mask)
15378 (s390_record_calc_disp_common, s390_record_calc_disp)
15379 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
15380 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
15381 (s390_process_record): Moved from s390-linux-tdep.c
15382 (s390_gdbarch_init): Adjust.
15383
d6e58945
PR
153842018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15385
15386 * s390-linux-nat.c (s390-tdep.h): New include.
15387 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
15388 (HFILES_NO_SRCDIR): Add s390-tdep.h.
15389 (ALLDEPFILES): Add s390-tdep.c.
15390 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
15391 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
15392 * s390-tdep.h: ...this. New file.
15393 * s390-linux-tdep.c (s390-tdep.h): New include.
15394 (_initialize_s390_tdep): Rename to...
15395 (_initialize_s390_linux_tdep): ...this and adjust.
15396 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
15397 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
15398 s390-tdep.h.
15399 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
15400 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
15401 (s390_is_partial_instruction, s390_software_single_step)
15402 (is_non_branch_ril, s390_displaced_step_copy_insn)
15403 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
15404 (s390_prologue_data, s390_addr, s390_store, s390_load)
15405 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
15406 (s390_register_call_saved, s390_guess_tracepoint_registers)
15407 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
15408 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
15409 (s390_pseudo_register_name, s390_pseudo_register_type)
15410 (s390_pseudo_register_read, s390_pseudo_register_write)
15411 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
15412 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
15413 (s390_addr_bits_remove, s390_address_class_type_flags)
15414 (s390_address_class_type_flags_to_name)
15415 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
15416 (s390_function_arg_float, s390_function_arg_vector)
15417 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
15418 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
15419 (s390_frame_align, s390_register_return_value, s390_return_value)
15420 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
15421 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
15422 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
15423 (s390_trad_frame_prev_register, s390_unwind_cache)
15424 (s390_prologue_frame_unwind_cache)
15425 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
15426 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
15427 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
15428 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
15429 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
15430 (s390_frame_base_address, s390_local_base_address)
15431 (s390_frame_base, s390_gcc_target_options)
15432 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
15433 (s390_validate_reg_range, s390_tdesc_valid)
15434 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
15435 * s390-tdep.c: ...this. New file.
15436
9c0b896e
PR
154372018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15438
15439 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
15440 (s390_process_record, s390_gdbarch_tdep_alloc)
15441 (s390_linux_init_abi_any): Use/set new hook.
15442
7042632b
PR
154432018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15444
15445 * s390-linux-tdep.c (osabi.h): New include.
15446 (s390_linux_init_abi_31, s390_linux_init_abi_64)
15447 (s390_linux_init_abi_any): New functions.
15448 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
15449
650f5e13
PR
154502018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15451
15452 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
15453 tdesc_has_registers check
15454
47c9317e
PR
154552018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15456
15457 * s390-linux-tdep.c (s390_tdesc_valid): New function.
15458 (s390_validate_reg_range): New macro.
15459 (s390_gdbarch_init): Adjust.
15460
095085d8
PR
154612018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15462
15463 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
15464 (s390_gdbarch_tdep_alloc): Adjust.
15465 (s390_gdbarch_init): Adjust.
15466
ab9bcc67
PR
154672018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15468
15469 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
15470 <have_tdb>: Change type to bool.
15471 (s390_gdbarch_tdep_alloc): Adjust.
15472 (s390_gdbarch_init): Adjust.
15473
21f6f5ff
PR
154742018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15475
15476 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
15477 (gdbarch_tdep) <have_upper, have_vx>: New fields.
15478 (s390_gdbarch_tdep_alloc): New function.
15479 (s390_gdbarch_init): Allocate tdep at start and use its fields
15480 instead of separate variables.
15481
0eb97953
PR
154822018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15483
15484 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
15485 when looking for cached gdbarch and add comment for remaining.
15486
5c319bb2
PA
154872018-01-22 Pedro Alves <palves@redhat.com>
15488 Sergio Durigan Junior <sergiodj@redhat.com>
15489
15490 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
15491 case.
15492
d65ce302
MR
154932018-01-22 Maciej W. Rozycki <macro@mips.com>
15494
15495 * MAINTAINERS: Update my company e-mail address.
15496
ec7a5fcb
YQ
154972018-01-22 Yao Qi <yao.qi@linaro.org>
15498
15499 * regcache.c (cooked_write_test): New function.
15500 (_initialize_regcache): Register the test.
15501
11f57cb6
YQ
155022018-01-22 Yao Qi <yao.qi@linaro.org>
15503
15504 * ia64-tdep.c (ia64_pseudo_register_read): Call
15505 regcache->cooked_read instead of regcache_cooked_read_unsigned.
15506 * m32c-tdep.c (m32c_cat_read): Likewise.
15507 (m32c_r3r2r1r0_read): Likewise.
15508 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
15509 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
15510
03f50fc8
YQ
155112018-01-22 Yao Qi <yao.qi@linaro.org>
15512
15513 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
15514 method raw_read instead of regcache_raw_read.
15515 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
15516 * arm-tdep.c (arm_neon_quad_read): Likewise.
15517 * avr-tdep.c (avr_pseudo_register_read): Likewise.
15518 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
15519 * frv-tdep.c (frv_pseudo_register_read): Likewise.
15520 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
15521 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
15522 (i386_pseudo_register_read_into_value): Likewise.
15523 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
15524 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
15525 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
15526 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
15527 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
15528 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
15529 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
15530 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
15531 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
15532
dc711524
YQ
155332018-01-22 Yao Qi <yao.qi@linaro.org>
15534
15535 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
15536 * configure.tgt: Remove target mt.
15537 * mt-tdep.c: Remove.
15538 * regcache.c (cooked_read_test): Remove the check for mt.
15539
3f5a868b
YQ
155402018-01-22 Yao Qi <yao.qi@linaro.org>
15541
15542 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
15543 instead of gdbarch_pseudo_register_read_value.
15544
de4cb04a
JB
155452018-01-22 Joel Brobecker <brobecker@adacore.com>
15546
15547 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
15548 language is Ada.
15549
a9e40818
JB
155502018-01-22 Joel Brobecker <brobecker@adacore.com>
15551
15552 * linespec.c (create_sals_line_offset): Remove code that preserved
15553 the symtab_and_line's line number.
15554
e707fc44
AB
155552018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15556
15557 * varobj.c (varobj_create): Don't set valid_block when creating a
15558 floating varobj.
15559
03d0bf7b
AB
155602018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15561
15562 * varobj.c (varobj_create): Remove out of date comment.
15563
ae451627
AB
155642018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15565
15566 PR mi/20395
15567 * ada-exp.y (write_var_from_sym): Pass extra parameter when
15568 updating innermost block.
15569 * parse.c (innermost_block_tracker::update): Take extra type
15570 parameter, and check types match before updating innermost block.
15571 (write_dollar_variable): Update innermost block for registers.
15572 * parser-defs.h (enum innermost_block_tracker_type): New enum.
15573 (innermost_block_tracker::innermost_block_tracker): Initialise
15574 m_types member.
15575 (innermost_block_tracker::reset): Take type parameter.
15576 (innermost_block_tracker::update): Take type parameter, and pass
15577 type through as needed.
15578 (innermost_block_tracker::m_types): New member.
15579 * varobj.c (varobj_create): Pass type when reseting innermost
15580 block.
15581
aee1fcdf
AB
155822018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15583
15584 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
15585 * ada-lang.c (resolve_subexp): Likewise.
15586 * breakpoint.c (set_breakpoint_condition) Likewise.
15587 (watch_command_1) Likewise.
15588 * c-exp.y (variable): Likewise.
15589 * d-exp.y (PrimaryExpression): Likewise.
15590 * f-exp.y (variable): Likewise.
15591 * go-exp.y (variable): Likewise.
15592 * m2-exp.y (variable): Likewise.
15593 * objfiles.c (objfile::~objfile): Likewise.
15594 * p-exp.y (variable): Likewise.
15595 * parse.c (innermost_block): Change type.
15596 * parser-defs.h (class innermost_block_tracker): New.
15597 (innermost_block): Change to innermost_block_tracker.
15598 * printcmd.c (display_command): Switch to innermost_block API.
15599 (do_one_display): Likewise.
15600 * rust-exp.y (do_one_display): Likewise.
15601 * symfile.c (clear_symtab_users): Likewise.
15602 * varobj.c (varobj_create): Switch to innermost_block API, replace
15603 use of innermost_block with block stored on varobj object.
15604
396af9a1
AB
156052018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15606
15607 * expression.h (innermost_block): Remove declaration.
15608 * varobj.c: Add 'parser-defs.h' include.
15609
fcfcc376
TT
156102018-01-19 Tom Tromey <tom@tromey.com>
15611
15612 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
15613 symbols in the static and global blocks.
15614
5a6c3296
JC
156152018-01-19 James Clarke <jrtc27@jrtc27.com>
15616
15617 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
15618 gdb_ptrace.h, and move including gdb_wait.h ...
15619 * nat/linux-ptrace.h: ... to here.
15620
bc09b0c1
SM
156212018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15622
15623 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
15624 inf_ptrace_detach_success.
15625 (inf_ptrace_detach_success): Add inferior parameter, use it
15626 instead of inferior_ptid, pass it to detach_inferior.
15627 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
15628 parameter.
15629 * inferior.c (detach_inferior): Add overload that takes an
15630 inferior object.
15631 * inferior.h (detach_inferior): Likewise.
15632 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
15633 use inferior_ptid, adjust call to inf_ptrace_detach_success.
15634 * linux-thread-db.c (thread_db_detach): Use inf parameter.
15635
6e1e1966
SM
156362018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15637
15638 * target.h (struct target_ops) <to_detach>: Add inferior
15639 parameter.
15640 (target_detach): Likewise.
15641 * target.c (dispose_inferior): Pass inferior down.
15642 (target_detach): Pass inferior down. Assert that it is equal to
15643 the current inferior.
15644 * aix-thread.c (aix_thread_detach): Pass inferior down.
15645 * corefile.c (core_file_command): Pass current_inferior() down.
15646 * corelow.c (core_detach): Add inferior parameter.
15647 * darwin-nat.c (darwin_detach): Likewise.
15648 * gnu-nat.c (gnu_detach): Likewise.
15649 * inf-ptrace.c (inf_ptrace_detach): Likewise.
15650 * infcmd.c (detach_command): Pass current_inferior() down to
15651 target_detach.
15652 * infrun.c (follow_fork_inferior): Pass parent_inf to
15653 target_detach.
15654 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
15655 target_detach.
15656 * linux-nat.c (linux_nat_detach): Add inferior parameter.
15657 * linux-thread-db.c (thread_db_detach): Likewise.
15658 * nto-procfs.c (procfs_detach): Likewise.
15659 * procfs.c (procfs_detach): Likewise.
15660 * record.c (record_detach): Likewise.
15661 * record.h (struct inferior): Forward-declare.
15662 (record_detach): Add inferior parameter.
15663 * remote-sim.c (gdbsim_detach): Likewise.
15664 * remote.c (remote_detach_1): Likewise.
15665 (remote_detach): Likewise.
15666 (extended_remote_detach): Likewise.
15667 * sol-thread.c (sol_thread_detach): Likewise.
15668 * target-debug.h (target_debug_print_inferior_p): New macro.
15669 * target-delegates.c: Re-generate.
15670 * top.c (kill_or_detach): Pass inferior down to target_detach.
15671 * windows-nat.c (windows_detach): Add inferior parameter.
15672
6bd6f3b6
SM
156732018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15674
15675 * target.h (struct target_ops) <to_detach>: Remove args
15676 parameter.
15677 (target_detach): Likewise.
15678 * target.c (dispose_inferior): Adjust.
15679 (target_detach): Remove args parameter, adjust.
15680 * aix-thread.c (aix_thread_detach): Adjust.
15681 * corefile.c (core_file_command): Adjust.
15682 * corelow.c (core_detach): Adjust.
15683 * darwin-nat.c (darwin_detach): Adjust.
15684 * gnu-nat.c (gnu_detach): Adjust.
15685 * inf-ptrace.c (inf_ptrace_detach): Adjust.
15686 * infcmd.c (detach_command): Adjust
15687 * infrun.c (follow_fork_inferior): Adjust.
15688 (handle_vfork_child_exec_or_exit): Adjust.
15689 * linux-fork.c (linux_fork_detach): Remove args parameter.
15690 * linux-fork.h (linux_fork_detach): Likewise.
15691 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
15692 * linux-thread-db.c (thread_db_detach): Likewise.
15693 * nto-procfs.c (procfs_detach): Likewise.
15694 * procfs.c (procfs_detach): Likewise.
15695 (do_detach): Remove signo parameter.
15696 * record.c (record_detach): Remove args parameter.
15697 * record.h (record_detach): Likewise.
15698 * remote-sim.c (gdbsim_detach): Likewise.
15699 * remote.c (remote_detach_1): Likewise.
15700 (remote_detach): Likewise.
15701 (extended_remote_detach): Likewise.
15702 * sol-thread.c (sol_thread_detach): Likewise.
15703 * target-delegates.c: Re-generate.
15704 * top.c (struct qt_args) <args>: Remove field.
15705 (kill_or_detach): Don't pass args.
15706 (quit_force): Don't set args.
15707 * windows-nat.c (windows_detach): Remove args parameter.
15708
88af8ea8
YQ
157092018-01-19 Yao Qi <yao.qi@linaro.org>
15710
15711 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
15712 (arm_linux_init_abi): Install it.
15713
dea445b9
YQ
157142018-01-19 Yao Qi <yao.qi@linaro.org>
15715
15716 * osabi.c (gdb_osabi_names): Extend the regexp for
15717 arm-linux-gnueabihf.
15718
4a17f768
YQ
157192018-01-18 Yao Qi <yao.qi@linaro.org>
15720
15721 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
15722 m_abbrevs.
15723 (abbrev_table::add_abbrev): Update.
15724 (abbrev_table::lookup_abbrev): Update.
15725
d679c21a
YQ
157262018-01-18 Yao Qi <yao.qi@linaro.org>
15727
15728 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
15729
7d937cad
SDJ
157302018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15731
15732 * compile/compile.c (compile_to_object): Convert "triplet_rx"
15733 to "std::string".
15734
9e14690d
TT
157352018-01-17 Tom Tromey <tom@tromey.com>
15736
15737 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
15738
50a82047
TT
157392018-01-17 Tom Tromey <tom@tromey.com>
15740
15741 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
15742 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
15743 (create_array_type_with_stride): Update.
15744 * dwarf2read.c (set_die_type): Update.
15745
c89b44cd
TT
157462018-01-17 Tom Tromey <tom@tromey.com>
15747
15748 * dwarf2read.c (delayed_method_info): Remove typedef.
15749 (dwarf2_cu::method_info): Now a std::vector.
15750 (add_to_method_list): Update.
15751 (free_delayed_list): Remove.
15752 (compute_delayed_physnames): Update.
15753 (process_full_comp_unit, process_full_type_unit): Clear the method
15754 list. Remove cleanups.
15755 (psymtab_include_file_name): Add name_holder parameter. Use
15756 unique_xmalloc_ptr.
15757 (dwarf_decode_lines): Update.
15758
fcd3b13d
SM
157592018-01-17 Tom Tromey <tom@tromey.com>
15760 Simon Marchi <simon.marchi@ericsson.com>
15761
15762 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
15763 (dwarf2_per_objfile::free_cached_comp_units)
15764 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15765 (init_cutu_and_read_dies_no_follow): Update.
15766 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
15767 (dwarf2_cu::~dwarf2_cu): New.
15768 (free_heap_comp_unit, free_stack_comp_unit): Remove.
15769 (age_cached_comp_units, free_one_cached_comp_unit): Update.
15770
685af9cd
TT
157712018-01-17 Tom Tromey <tom@tromey.com>
15772 Simon Marchi <simon.marchi@ericsson.com>
15773
15774 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
15775 (struct die_reader_specs) <abbrev_table>: New member.
15776 (struct abbrev_table): Add constructor.
15777 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
15778 <abbrev_obstack>: Now an auto_obstack.
15779 (abbrev_table_up): New typedef.
15780 (init_cu_die_reader): Add abbrev_table parameter.
15781 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
15782 Add result_dwo_abbrev_table.
15783 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15784 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
15785 Update.
15786 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
15787 parameter.
15788 (skip_children): Update.
15789 (abbrev_table::alloc_abbrev): Rename from
15790 abbrev_table_alloc_abbrev.
15791 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
15792 (abbrev_table::lookup_abbrev): Rename from
15793 abbrev_table_lookup_abbrev.
15794 (abbrev_table_read_table): Return abbrev_table_up.
15795 (abbrev_table_free, abbrev_table_free_cleanup)
15796 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
15797 (load_partial_dies): Update.
15798
5e2db402
TT
157992018-01-17 Tom Tromey <tom@tromey.com>
15800
15801 * dwarf2read.c (dwarf2_compute_name): Update comment.
15802 (read_func_scope, read_variable): Update.
15803 (new_symbol): Remove.
15804 (new_symbol_full): Rename to new_symbol.
15805
ee7f689e 158062018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
15807
15808 PR gdb/16577
15809 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
15810 a warning instead of throwing an error, set section size to 0 and return
15811 NULL.
15812 * gdb_bfd.h (gdb_bfd_map_section): Update description.
15813
4d9b86e1
SM
158142018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15815
15816 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
15817 std::string.
15818 (linux_ptrace_attach_fail_reason_string): Likewise.
15819 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
15820 Likewise.
15821 (linux_ptrace_attach_fail_reason_string): Likewise.
15822 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
15823
a7b2d0fb
SM
158242018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15825
15826 * linux-nat.c (linux_nat_attach): Remove xstrdup.
15827
f517c180
EA
158282018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
15829
15830 PR gdb/21559
15831 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
15832 checking for fs_base/gs_base fields in struct user_regs_struct.
15833 * configure: Regenerate.
15834
7045b1ca
YQ
158352018-01-17 Yao Qi <yao.qi@linaro.org>
15836
15837 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
15838 function.
15839 (aarch64_linux_init_abi): Install it to gdbarch hook
15840 gcc_target_options.
15841
db422fb2
PA
158422018-01-15 Pedro Alves <palves@redhat.com>
15843
15844 * common/signals-state-save-restore.c
15845 (save_original_signals_state): Fix typos.
15846
ba643918
SDJ
158472017-01-12 Tom Tromey <tom@tromey.com>
15848 Sergio Durigan Junior <sergiodj@redhat.com>
15849
15850 * Makefile.in (install-only): Install gdb-add-index.
15851
906b4aac
JB
158522018-01-12 John Baldwin <jhb@FreeBSD.org>
15853
15854 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
15855
bdf2a94a
AA
158562018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
15857
15858 * infrun.c (keep_going_pass_signal): Clear step-over info when
15859 insert_breakpoints fails.
15860
71d378ae
PA
158612018-01-11 Pedro Alves <palves@redhat.com>
15862
15863 PR gdb/22583
15864 * infrun.c (resume): Rename to ...
15865 (resume_1): ... this.
15866 (resume): Reimplement as wrapper around resume_1.
15867
3cada740
PA
158682018-01-11 Pedro Alves <palves@redhat.com>
15869
15870 PR remote/22597
15871 * remote.c (remote_parse_stop_reply): Default to the last-set
15872 general thread instead of to 'magic_null_ptid'.
15873
618daa93
PA
158742018-01-10 Pedro Alves <palves@redhat.com>
15875
15876 * language.h (language_get_symbol_name_matcher): Rename ...
15877 (get_symbol_name_matcher): ... this.
15878 * language.c (language_get_symbol_name_matcher): Ditto.
15879 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
15880 callers adjusted.
15881
c63d3e8d
PA
158822018-01-10 Pedro Alves <palves@redhat.com>
15883
15884 PR gdb/22670
15885 * dwarf2read.c
15886 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
15887 Adjust to use language_get_symbol_name_matcher instead of
15888 language_defn::la_get_symbol_name_matcher.
15889 * language.c (language_get_symbol_name_matcher): If in Ada mode
15890 and the lookup name is a verbatim match, return Ada's matcher.
15891 * language.h (language_get_symbol_name_matcher): Adjust comment.
15892 (ada_lookup_name_info::verbatim_p):: New method.
15893
d4c2a405
PA
158942018-01-10 Pedro Alves <palves@redhat.com>
15895
15896 PR gdb/22670
15897 * ada-lang.c (ada_collect_symbol_completion_matches): If the
15898 minsym's language is language_auto or language_cplus, pass down
15899 language_ada instead.
15900 * symtab.c (compare_symbol_name): Don't frob symbol language here.
15901
8825213e
PA
159022018-01-10 Pedro Alves <palves@redhat.com>
15903
15904 PR gdb/22670
15905 * minsyms.c (linkage_name_str): New function.
15906 (iterate_over_minimal_symbols): Use it.
15907
2d97a5d9
JB
159082018-01-09 John Baldwin <jhb@FreeBSD.org>
15909
15910 * NEWS: Document that 'info proc' now works on FreeBSD.
15911
92fce24d
JB
159122018-01-09 John Baldwin <jhb@FreeBSD.org>
15913
15914 * configure.ac: Check for kinfo_getfile in libutil.
15915 * configure: Regenerate.
15916 * config.in: Regenerate.
15917 * fbsd-nat.c: Include "fbsd-tdep.h".
15918 (fbsd_fetch_cmdline): New.
15919 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
15920 rather than calling error.
15921 (fbsd_info_proc): New.
15922 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
15923 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
15924 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
15925
262f62f5
JB
159262018-01-09 John Baldwin <jhb@FreeBSD.org>
15927
15928 * fbsd-nat.c (struct free_deleter): Remove.
15929 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
15930
b999e203
JB
159312018-01-09 John Baldwin <jhb@FreeBSD.org>
15932
15933 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
15934 NULL for an empty pathname.
15935
d2176225
JB
159362018-01-09 John Baldwin <jhb@FreeBSD.org>
15937
15938 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
15939 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
15940 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
15941 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
15942 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
15943 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
15944 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
15945 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
15946 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
15947 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
15948 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
15949 (fbsd_core_fetch_timeval, fbsd_print_sigset)
15950 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
15951 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
15952 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
15953
9c4ac400
ST
159542018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
15955
15956 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
15957 (gnu_xfer_auxv): New function.
15958 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
15959 TARGET_OBJECT_AUXV.
15960
1e5ded6c
YQ
159612018-01-08 Yao Qi <yao.qi@linaro.org>
15962 Simon Marchi <simon.marchi@ericsson.com>
15963
15964 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
15965 common/selftest.c.
15966 (COMMON_OBS): Remove selftest.o.
15967 * configure.ac: Append selftest-arch.c and common/selftest.c to
15968 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
15969 * configure: Re-generated.
15970 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
15971 GDB_SELF_TEST.
15972 (maintenance_info_selftests): Likewise.
15973
04bafb1e
XR
159742018-01-08 Xavier Roirand <roirand@adacore.com>
15975
15976 * ada-valprint.c (val_print_packed_array_elements): Use
15977 proper number of elements when printing an array indexed
15978 by an enumeration type.
15979
518817b3
SM
159802018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15981
15982 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
15983 (dw2_get_file_names_reader): Adjust.
15984 (lookup_dwo_signatured_type): Adjust.
15985 (lookup_dwp_signatured_type): Adjust.
15986 (lookup_signatured_type): Adjust.
15987 (create_type_unit_group): Adjust.
15988 (get_type_unit_group): Adjust.
15989 (process_psymtab_comp_unit_reader): Adjust.
15990 (build_type_psymtabs_reader): Adjust.
15991 (scan_partial_symbols): Adjust.
15992 (add_partial_symbol): Adjust.
15993 (add_partial_subprogram): Adjust.
15994 (peek_die_abbrev): Adjust.
15995 (fixup_go_packaging): Adjust.
15996 (process_imported_unit_die): Adjust.
15997 (dwarf2_compute_name): Adjust.
15998 (dwarf2_physname): Adjust.
15999 (read_import_statement): Adjust.
16000 (handle_DW_AT_stmt_list): Adjust.
16001 (read_file_scope): Adjust.
16002 (read_func_scope): Adjust.
16003 (read_lexical_block_scope): Adjust.
16004 (read_call_site_scope): Adjust.
16005 (read_variable): Adjust.
16006 (dwarf2_rnglists_process): Adjust.
16007 (dwarf2_ranges_process): Adjust.
16008 (dwarf2_ranges_read): Adjust.
16009 (dwarf2_get_pc_bounds): Adjust.
16010 (dwarf2_record_block_ranges): Adjust.
16011 (dwarf2_add_field): Adjust.
16012 (dwarf2_add_member_fn): Adjust.
16013 (read_structure_type): Adjust.
16014 (process_structure_scope): Adjust.
16015 (read_enumeration_type): Adjust.
16016 (read_array_type): Adjust.
16017 (mark_common_block_symbol_computed): Adjust.
16018 (read_common_block): Adjust.
16019 (read_namespace_type): Adjust.
16020 (read_namespace): Adjust.
16021 (read_module_type): Adjust.
16022 (read_tag_pointer_type): Adjust.
16023 (read_tag_ptr_to_member_type): Adjust.
16024 (read_tag_string_type): Adjust.
16025 (read_subroutine_type): Adjust.
16026 (read_typedef): Adjust.
16027 (read_base_type): Adjust.
16028 (attr_to_dynamic_prop): Adjust.
16029 (read_subrange_type): Adjust.
16030 (read_unspecified_type): Adjust.
16031 (dwarf2_read_abbrevs): Adjust.
16032 (load_partial_dies): Adjust.
16033 (read_partial_die): Adjust.
16034 (find_partial_die): Adjust.
16035 (guess_partial_die_structure_name): Adjust.
16036 (fixup_partial_die): Adjust.
16037 (read_attribute_value): Adjust.
16038 (read_addr_index): Adjust.
16039 (read_addr_index_from_leb128): Adjust.
16040 (read_str_index): Adjust.
16041 (dwarf2_string_attr): Adjust.
16042 (get_debug_line_section): Adjust.
16043 (dwarf_decode_line_header): Adjust.
16044 (lnp_state_machine::check_line_address): Adjust.
16045 (dwarf_decode_lines_1): Adjust.
16046 (dwarf_decode_lines): Adjust.
16047 (dwarf2_start_symtab): Adjust.
16048 (var_decode_location): Adjust.
16049 (new_symbol_full): Adjust.
16050 (dwarf2_const_value_data): Adjust.
16051 (dwarf2_const_value_attr): Adjust.
16052 (dwarf2_const_value): Adjust.
16053 (die_type): Adjust.
16054 (die_containing_type): Adjust.
16055 (build_error_marker_type): Adjust.
16056 (lookup_die_type): Adjust.
16057 (guess_full_die_structure_name): Adjust.
16058 (anonymous_struct_prefix): Adjust.
16059 (determine_prefix): Adjust.
16060 (dwarf2_name): Adjust.
16061 (follow_die_ref_or_sig): Adjust.
16062 (follow_die_offset): Adjust.
16063 (follow_die_ref): Adjust.
16064 (follow_die_sig_1): Adjust.
16065 (follow_die_sig): Adjust.
16066 (get_signatured_type): Adjust.
16067 (get_DW_AT_signature_type): Adjust.
16068 (decode_locdesc): Adjust.
16069 (dwarf_decode_macros): Adjust.
16070 (cu_debug_loc_section): Adjust.
16071 (fill_in_loclist_baton): Adjust.
16072 (dwarf2_symbol_mark_computed): Adjust.
16073 (init_one_comp_unit): Don't assign
16074 dwarf2_cu::dwarf2_per_objfile.
16075 (set_die_type): Adjust.
16076
ed2dc618
SM
160772018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16078
16079 * dwarf2read.c (struct mapped_debug_names): Add constructor.
16080 <dwarf2_per_objfile>: New field.
16081 (dwarf2_per_objfile): Remove global.
16082 (get_dwarf2_per_objfile): New function.
16083 (set_dwarf2_per_objfile): New function.
16084 (dwarf2_build_psymtabs_hard): Change objfile parameter to
16085 dwarf2_per_objfile.
16086 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
16087 (read_abbrev_offset): Likewise.
16088 (read_indirect_string): Likewise.
16089 (read_indirect_line_string): Likewise.
16090 (read_indirect_string_at_offset): Likewise.
16091 (read_indirect_string_from_dwz): Likewise.
16092 (dwarf2_find_containing_comp_unit): Change objfile parameter to
16093 dwarf2_per_objfile.
16094 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
16095 (create_all_comp_units): Change objfile parameter to
16096 dwarf2_per_objfile.
16097 (create_all_type_units): Likewise.
16098 (process_queue): Add dwarf2_per_objfile parameter.
16099 (read_and_check_comp_unit_head): Likewise.
16100 (lookup_dwo_unit_in_dwp): Likewise.
16101 (get_dwp_file): Likewise.
16102 (process_cu_includes): Likewise.
16103 (struct free_dwo_file_cleanup_data): New struct.
16104 (dwarf2_has_info): Use get_dwarf2_per_objfile and
16105 set_dwarf2_per_objfile.
16106 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
16107 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
16108 context, adjust calls.
16109 (dw2_instantiate_symtab): Likewise.
16110 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
16111 (dw2_get_cu): Likewise.
16112 (create_cu_from_index_list): Change objfile parameter to
16113 dwarf2_per_objfile.
16114 (create_cus_from_index_list): Get dwarf2_per_objfile from
16115 context, adjust calls.
16116 (create_cus_from_index): Likewise.
16117 (create_signatured_type_table_from_index): Change objfile
16118 parameter to dwarf2_per_objfile.
16119 (create_signatured_type_table_from_debug_names): Change objfile
16120 parameter to dwarf2_per_objfile.
16121 (create_addrmap_from_index): Likewise.
16122 (create_addrmap_from_aranges): Likewise.
16123 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
16124 (dw2_setup): Remove.
16125 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
16126 context.
16127 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
16128 get_dwarf2_per_objfile.
16129 (dw2_forget_cached_source_info): Likewise.
16130 (dw2_map_symtabs_matching_filename): Likewise.
16131 (struct dw2_symtab_iterator) <index>: Remove.
16132 <dwarf2_per_objfile>: New field.
16133 (dw2_symtab_iter_init): Replace index parameter with
16134 dwarf2_per_objfile.
16135 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
16136 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
16137 (dw2_print_stats): Likewise.
16138 (dw2_dump): Likewise.
16139 (dw2_expand_symtabs_for_function): Likewise.
16140 (dw2_expand_all_symtabs): Likewise.
16141 (dw2_expand_symtabs_with_fullname): Likewise.
16142 (dw2_expand_marked_cus): Replace index and objfile parameters
16143 with dwarf2_per_objfile.
16144 (dw_expand_symtabs_matching_file_matcher): Add
16145 dwarf2_per_objfile parameter and adjust calls.
16146 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
16147 adjust calls.
16148 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
16149 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
16150 adjust calls.
16151 (create_cus_from_debug_names_list): Replace objfile parameter
16152 with dwarf2_per_objfile and adjust calls.
16153 (create_cus_from_debug_names): Likewise.
16154 (dwarf2_read_debug_names): Likewise.
16155 (mapped_debug_names::namei_to_name): Adjust call.
16156 (dw2_debug_names_iterator::next): Likewise.
16157 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
16158 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
16159 (dw2_debug_names_dump): Likewise.
16160 (dw2_debug_names_expand_symtabs_for_function): Likewise.
16161 (dw2_debug_names_expand_symtabs_matching): Likewise.
16162 (dwarf2_initialize_objfile): Likewise.
16163 (dwarf2_build_psymtabs): Likewise.
16164 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
16165 this_cu.
16166 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
16167 (read_and_check_comp_unit_head): Likewise.
16168 (read_abbrev_offset): Likewise.
16169 (create_debug_type_hash_table): Likewise.
16170 (create_debug_types_hash_table): Likewise.
16171 (create_all_type_units): Replace objfile parameter with
16172 dwarf2_per_objfile.
16173 (add_type_unit): Add dwarf2_per_objfile parameter.
16174 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
16175 with dwarf2_per_objfile.
16176 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
16177 (lookup_dwp_signatured_type): Likewise.
16178 (lookup_signatured_type): Likewise.
16179 (read_cutu_die_from_dwo): Likewise.
16180 (init_tu_and_read_dwo_dies): Likewise.
16181 (init_cutu_and_read_dies): Likewise.
16182 (init_cutu_and_read_dies_no_follow): Likewise.
16183 (allocate_type_unit_groups_table): Add objfile parameter.
16184 (create_type_unit_group): Use dwarf2_per_objfile from cu.
16185 (get_type_unit_group): Likewise.
16186 (process_psymtab_comp_unit): Update call.
16187 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
16188 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
16189 (print_tu_stats): Likewise.
16190 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
16191 in void* parameter.
16192 (build_type_psymtabs): Change objfile parameter to
16193 dwarf2_per_objfile.
16194 (process_skeletonless_type_unit): Use dwarf2_per_objfile
16195 passed in void* parameter.
16196 (process_skeletonless_type_units): Change objfile parameter to
16197 dwarf2_per_objfile.
16198 (set_partial_user): Likewise.
16199 (dwarf2_build_psymtabs_hard): Likewise.
16200 (read_comp_units_from_section): Likewise.
16201 (create_all_comp_units): Likewise.
16202 (scan_partial_symbols): Update calls.
16203 (add_partial_symbol): Likewise.
16204 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
16205 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
16206 (process_queue): Add dwarf2_per_objfile parameter.
16207 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
16208 (compute_compunit_symtab_includes): Likewise.
16209 (process_cu_includes): Add dwarf2_per_objfile parameter.
16210 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
16211 (process_full_type_unit): Likewise.
16212 (process_imported_unit_die): Update call.
16213 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
16214 (read_file_scope): Likewise.
16215 (allocate_dwo_file_hash_table): Add objfile parameter.
16216 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
16217 (create_cus_hash_table): Likewise.
16218 (create_dwp_hash_table): Likewise.
16219 (create_dwo_unit_in_dwp_v1): Likewise.
16220 (create_dwp_v2_section): Likewise.
16221 (create_dwo_unit_in_dwp_v2): Likewise.
16222 (lookup_dwo_unit_in_dwp): Likewise.
16223 (try_open_dwop_file): Likewise.
16224 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
16225 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
16226 cleanup to include a reference to dwarf2_per_objfile.
16227 (open_dwp_file): Add dwarf2_per_objfile parameter.
16228 (open_and_init_dwp_file): Likewise.
16229 (get_dwp_file): Likewise.
16230 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
16231 (queue_and_load_all_dwo_tus): Update call.
16232 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
16233 data.
16234 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
16235 (dwarf2_ranges_process): Likewise.
16236 (dwarf2_get_pc_bounds): Likewise.
16237 (mark_common_block_symbol_computed): Likewise.
16238 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
16239 (dwarf2_read_abbrevs): Update call.
16240 (read_partial_die): Use dwarf2_per_objfile from cu.
16241 (find_partial_die): Likewise.
16242 (fixup_partial_die): Likewise.
16243 (read_attribute_value): Likewise.
16244 (read_indirect_string_at_offset_from): Add objfile parameter.
16245 (read_indirect_string_at_offset): Add dwarf2_per_objfile
16246 parameter.
16247 (read_indirect_string_from_dwz): Add objfile parameter.
16248 (read_indirect_string): Add objfile parameter.
16249 (read_addr_index_1): Add dwarf2_per_objfile parameter.
16250 (read_addr_index): Use dwarf2_per_objfile from cu.
16251 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
16252 call dw2_setup.
16253 (read_str_index): Use dwarf2_per_objfile from cu.
16254 (get_debug_line_section): Likewise.
16255 (read_formatted_entries): Add dwarf2_per_objfile parameter.
16256 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
16257 (new_symbol_full): Use dwarf2_per_objfile from cu.
16258 (build_error_marker_type): Likewise.
16259 (lookup_die_type): Likewise.
16260 (determine_prefix): Likewise.
16261 (follow_die_offset): Likewise.
16262 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
16263 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
16264 (dwarf2_fetch_die_type_sect_off): Likewise.
16265 (dwarf2_get_die_type): Likewise.
16266 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
16267 (get_signatured_type): Likewise.
16268 (get_DW_AT_signature_type): Likewise.
16269 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
16270 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
16271 (cu_debug_loc_section): Likewise.
16272 (fill_in_loclist_baton): Likewise.
16273 (dwarf2_symbol_mark_computed): Likewise.
16274 (dwarf2_find_containing_comp_unit): Change objfile parameter to
16275 dwarf2_per_objfile.
16276 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
16277 parameter.
16278 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
16279 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
16280 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
16281 (set_die_type): Use dwarf2_free_objfile from cu.
16282 (get_die_type_at_offset): Likewise.
16283 (dwarf2_per_objfile_free): Don't assign global variable.
16284 (debug_names) <constructor>: Add dwarf2_per_objfile
16285 parameter, update m_debugstrlookup construction.
16286 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
16287 parameter.
16288 <m_dwarf2_per_objfile>: New field.
16289 <lookup>: Use m_dwarf2_per_objfile.
16290 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
16291 (psyms_seen_size): Likewise.
16292 (write_gdbindex): Replace objfile parameter with
16293 dwarf2_per_objfile.
16294 (write_debug_names): Likewise.
16295 (write_psymtabs_to_index): Likewise.
16296 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
16297 calls.
16298
e3b94546
SM
162992018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16300
16301 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
16302 <dwarf2_per_objfile>: New field.
16303 (struct dwarf2_per_cu_data) <objfile>: Remove.
16304 <dwarf2_per_objfile>: New field.
16305 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
16306 of objfile.
16307 (create_signatured_type_table_from_index): Likewise.
16308 (create_debug_type_hash_table): Likewise.
16309 (fill_in_sig_entry_from_dwo_entry): Likewise.
16310 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
16311 (create_type_unit_group): Assign dwarf2_per_objfile instead of
16312 objfile.
16313 (create_partial_symtab): Access objfile through
16314 dwarf2_per_objfile.
16315 (process_psymtab_comp_unit_reader): Likewise.
16316 (read_comp_units_from_section): Likewise.
16317 (scan_partial_symbols): Likewise.
16318 (add_partial_symbol): Likewise.
16319 (add_partial_subprogram): Likewise.
16320 (peek_die_abbrev): Likewise.
16321 (fixup_go_packaging): Likewise.
16322 (process_full_comp_unit): Likewise.
16323 (process_full_type_unit): Likewise.
16324 (process_imported_unit_die): Likewise.
16325 (dwarf2_compute_name): Likewise.
16326 (dwarf2_physname): Likewise.
16327 (read_import_statement): Likewise.
16328 (create_cus_hash_table): Assign dwarf2_physname instead of
16329 objfile.
16330 (read_func_scope): Access objfile through dwarf2_per_objfile.
16331 (read_lexical_block_scope): Likewise.
16332 (read_call_site_scope): Likewise.
16333 (read_variable): Likewise.
16334 (dwarf2_rnglists_process): Likewise.
16335 (dwarf2_ranges_process): Likewise.
16336 (dwarf2_ranges_read): Likewise.
16337 (dwarf2_record_block_ranges): Likewise.
16338 (dwarf2_add_field): Likewise.
16339 (dwarf2_add_member_fn): Likewise.
16340 (read_structure_type): Likewise.
16341 (process_structure_scope): Likewise.
16342 (read_enumeration_type): Likewise.
16343 (read_array_type): Likewise.
16344 (read_common_block): Likewise.
16345 (read_namespace_type): Likewise.
16346 (read_namespace): Likewise.
16347 (read_module_type): Likewise.
16348 (read_tag_pointer_type): Likewise.
16349 (read_tag_ptr_to_member_type): Likewise.
16350 (read_tag_string_type): Likewise.
16351 (read_subroutine_type): Likewise.
16352 (read_typedef): Likewise.
16353 (read_base_type): Likewise.
16354 (attr_to_dynamic_prop): Likewise.
16355 (read_subrange_type): Likewise.
16356 (read_unspecified_type): Likewise.
16357 (load_partial_dies): Likewise.
16358 (read_partial_die): Likewise.
16359 (find_partial_die): Likewise.
16360 (guess_partial_die_structure_name): Likewise.
16361 (fixup_partial_die): Likewise.
16362 (read_attribute_value): Likewise.
16363 (read_addr_index_from_leb128): Likewise.
16364 (dwarf2_read_addr_index): Likewise.
16365 (dwarf2_string_attr): Likewise.
16366 (lnp_state_machine::check_line_address): Likewise.
16367 (dwarf_decode_lines_1): Likewise.
16368 (dwarf_decode_lines): Likewise.
16369 (dwarf2_start_symtab): Likewise.
16370 (var_decode_location): Likewise.
16371 (new_symbol_full): Likewise.
16372 (dwarf2_const_value_data): Likewise.
16373 (dwarf2_const_value_attr): Likewise.
16374 (dwarf2_const_value): Likewise.
16375 (die_type): Likewise.
16376 (die_containing_type): Likewise.
16377 (lookup_die_type): Likewise.
16378 (guess_full_die_structure_name): Likewise.
16379 (anonymous_struct_prefix): Likewise.
16380 (dwarf2_name): Likewise.
16381 (follow_die_ref_or_sig): Likewise.
16382 (follow_die_offset): Likewise.
16383 (follow_die_ref): Likewise.
16384 (dwarf2_fetch_die_loc_sect_off): Likewise.
16385 (dwarf2_fetch_constant_bytes): Likewise.
16386 (dwarf2_fetch_die_type_sect_off): Likewise.
16387 (dwarf2_get_die_type): Likewise.
16388 (follow_die_sig): Likewise.
16389 (decode_locdesc): Likewise.
16390 (dwarf2_per_cu_objfile): Likewise.
16391 (dwarf2_per_cu_text_offset): Likewise.
16392 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
16393 objfile.
16394 (set_die_type): Access objfile through
16395 dwarf2_per_objfile.
16396
b01ba14d
SM
163972018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16398
16399 * valprint.c (converted_character_d): Remove typedef.
16400 (DEF_VEC_O (converted_character_d)): Remove.
16401 (count_next_character): Use std::vector.
16402 (print_converted_chars_to_obstack): Likewise.
16403 (generic_printstr): Likewise.
16404
4d0fdd9b
SM
164052018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16406
16407 * xml-support.h (struct gdb_xml_value): Add constructor.
16408 <value>: Change type to unique_xmalloc_ptr.
16409 (gdb_xml_value_s): Remove typedef.
16410 (DEF_VEC_O (gdb_xml_value_s)): Remove.
16411 (gdb_xml_element_start_handler): Change parameter type to
16412 std::vector.
16413 (xml_find_attribute): Likewise.
16414 * xml-support.c (xml_find_attribute): Change parameter type to
16415 std::vector and adjust.
16416 (gdb_xml_values_cleanup): Remove.
16417 (gdb_xml_parser::start_element): Adjust to std::vector.
16418 (xinclude_start_include): Change paraeter type to std::vector
16419 and adjust.
16420 * btrace.c (check_xml_btrace_version): Likewise.
16421 (parse_xml_btrace_block): Likewise.
16422 (parse_xml_btrace_pt_config_cpu): Likewise.
16423 (parse_xml_btrace_pt): Likewise.
16424 (parse_xml_btrace_conf_bts): Likewise.
16425 (parse_xml_btrace_conf_pt): Likewise.
16426 * memory-map.c (memory_map_start_memory): Likewise.
16427 (memory_map_start_property): Likewise.
16428 * osdata.c (osdata_start_osdata): Likewise.
16429 (osdata_start_item): Likewise.
16430 (osdata_start_column): Likewise.
16431 * remote.c (start_thread): Likewise.
16432 * solib-aix.c (library_list_start_library): Likewise.
16433 (library_list_start_list): Likewise.
16434 * solib-svr4.c (library_list_start_library): Likewise.
16435 (svr4_library_list_start_list): Likewise.
16436 * solib-target.c (library_list_start_segment): Likewise.
16437 (library_list_start_section): Likewise.
16438 (library_list_start_library): Likewise.
16439 (library_list_start_list): Likewise.
16440 * tracepoint.c (traceframe_info_start_memory): Likewise.
16441 (traceframe_info_start_tvar): Likewise.
16442 * xml-syscall.c (syscall_start_syscall): Likewise.
16443 * xml-tdesc.c (tdesc_start_target): Likewise.
16444 (tdesc_start_feature): Likewise.
16445 (tdesc_start_reg): Likewise.
16446 (tdesc_start_union): Likewise.
16447 (tdesc_start_struct): Likewise.
16448 (tdesc_start_flags): Likewise.
16449 (tdesc_start_enum): Likewise.
16450 (tdesc_start_field): Likewise.
16451 (tdesc_start_enum_value): Likewise.
16452 (tdesc_start_vector): Likewise.
16453
f979c73f
SM
164542018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16455
16456 * extension.h (struct xmethod_worker) <clone>: Remove.
16457 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
16458 Remove.
16459 (python_xmethod_worker::clone): Remove.
16460 * valops.c (find_overload_match): Use std::move instead of
16461 clone.
16462
ba18742c
SM
164632018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16464
16465 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
16466 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
16467 <free_xmethod_worker_data>: Remove.
16468 <get_matching_xmethod_workers>: Chance VEC to std::vector.
16469 <get_xmethod_arg_types>: Remove.
16470 <get_xmethod_result_type>: Remove.
16471 <invoke_xmethod>: Remove.
16472 * extension.c (new_xmethod_worker): Remove.
16473 (clone_xmethod_worker): Remove.
16474 (get_matching_xmethod_workers): Return void, pass std::vector by
16475 pointer.
16476 (get_xmethod_arg_types): Rename to...
16477 (xmethod_worker::get_arg_types): ... this, and adjust.
16478 (get_xmethod_result_type): Rename to...
16479 (xmethod_worker::get_result_type): ... this, and adjust.
16480 (invoke_xmethod): Remove.
16481 (free_xmethod_worker): Remove.
16482 (free_xmethod_worker_vec): Remove.
16483 * extension.h (enum ext_lang_rc): Move here from
16484 extension-priv.h.
16485 (struct xmethod_worker): Add constructor and destructor.
16486 <data>: Remove.
16487 <value>: Remove.
16488 <invoke, clone, do_get_result_type, do_get_arg_types>: New
16489 virtual pure methods.
16490 <get_arg_types, get_result_type>: New methods.
16491 (xmethod_worker_ptr): Remove typedef.
16492 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
16493 (xmethod_worker_vec): Remove typedef.
16494 (xmethod_worker_up): New typedef.
16495 (invoke_xmethod): Remove.
16496 (clone_xmethod_worker): Remove.
16497 (free_xmethod_worker): Remove.
16498 (free_xmethod_worker_vec): Remove.
16499 (get_xmethod_arg_types): Remove.
16500 (get_xmethod_result_type): Remove.
16501 * valops.c (find_method_list): Use std::vector, don't use
16502 intermediate vector.
16503 (value_find_oload_method_list): Use std::vector.
16504 (find_overload_match): Use std::vector.
16505 (find_oload_champ): Use std::vector.
16506 * value.c (value_free): Use operator delete.
16507 (value_of_xmethod): Rename to...
16508 (value_from_xmethod): ... this. Don't assign
16509 xmethod_worker::value, take rvalue-reference.
16510 (result_type_of_xmethod): Adjust.
16511 (call_xmethod): Adjust.
16512 * value.h: Include extension.h.
16513 (struct xmethod_worker): Don't forward-declare.
16514 (value_of_xmethod): Rename to...
16515 (value_from_xmethod): ... this, take rvalue-reference.
16516 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
16517 (struct python_xmethod_worker): ... this, add constructor and
16518 destructor.
16519 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
16520 (gdbpy_free_xmethod_worker_data): Rename to...
16521 (python_xmethod_worker::~python_xmethod_worker): ... this and
16522 adjust.
16523 (gdbpy_clone_xmethod_worker_data): Rename to...
16524 (python_xmethod_worker::clone): ... this and adjust.
16525 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
16526 temporary vector.
16527 (gdbpy_get_xmethod_arg_types): Rename to...
16528 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
16529 (gdbpy_get_xmethod_result_type): Rename to...
16530 (python_xmethod_worker::do_get_result_type): ... this and
16531 adjust.
16532 (gdbpy_invoke_xmethod): Rename to...
16533 (python_xmethod_worker::invoke): ... this and adjust.
16534 (new_python_xmethod_worker): Rename to...
16535 (python_xmethod_worker::python_xmethod_worker): ... this and
16536 adjust.
16537 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
16538 Remove.
16539 (gdbpy_free_xmethod_worker_data): Remove.
16540 (gdbpy_get_matching_xmethod_workers): Use std::vector.
16541 (gdbpy_get_xmethod_arg_types): Remove.
16542 (gdbpy_get_xmethod_result_type): Remove.
16543 (gdbpy_invoke_xmethod): Remove.
16544 * python/python.c (python_extension_ops): Remove obsolete
16545 callbacks.
16546
e379cee6
PA
165472018-01-05 Pedro Alves <palves@redhat.com>
16548
16549 PR gdb/18653
16550 * common/signals-state-save-restore.c
16551 (save_original_signals_state): New parameter 'quiet'. Warn if we
16552 find a custom handler preinstalled, instead of internal erroring.
16553 But only warn if !quiet.
16554 * common/signals-state-save-restore.h
16555 (save_original_signals_state): New parameter 'quiet'.
16556 * main.c (captured_main_1): Move save_original_signals_state call
16557 after option handling, and pass QUIET.
16558
a655456c
PA
165592018-01-05 Pedro Alves <palves@redhat.com>
16560
16561 * spu-tdep.c (spu_catch_start): Pass
16562 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
16563
de63c46b
PA
165642018-01-05 Pedro Alves <palves@redhat.com>
16565
16566 PR gdb/22670
16567 * ada-lang.c (literal_symbol_name_matcher): New function.
16568 (ada_get_symbol_name_matcher): Use it for
16569 symbol_name_match_type::SEARCH_NAME.
16570 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
16571 it down instead of assuming symbol_name_match_type::FULL.
16572 * block.h (block_lookup_symbol): New parameter 'match_type'.
16573 * c-valprint.c (print_unpacked_pointer): Use
16574 lookup_symbol_search_name instead of lookup_symbol.
16575 * compile/compile-object-load.c (get_out_value_type): Pass down
16576 symbol_name_match_type::SEARCH_NAME.
16577 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
16578 symbol_name_match_type::FULL.
16579 * cp-support.c (cp_get_symbol_name_matcher): Handle
16580 symbol_name_match_type::SEARCH_NAME.
16581 * infrun.c (insert_exception_resume_breakpoint): Use
16582 lookup_symbol_search_name.
16583 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
16584 * psymtab.c (maintenance_check_psymtabs): Use
16585 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
16586 * stack.c (print_frame_args): Use lookup_symbol_search_name and
16587 SYMBOL_SEARCH_NAME.
16588 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
16589 if symbol_name_match_type::SEARCH_NAME.
16590 (lookup_symbol_in_language): Pass down
16591 symbol_name_match_type::FULL.
16592 (lookup_symbol_search_name): New.
16593 (lookup_language_this): Pass down
16594 symbol_name_match_type::SEARCH_NAME.
16595 (lookup_symbol_aux, lookup_local_symbol): New parameter
16596 'match_type'. Pass it down.
16597 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
16598 (lookup_symbol_search_name): New declaration.
16599 (lookup_symbol_in_block): New 'match_type' parameter.
16600
f98fc17b
PA
166012018-01-05 Pedro Alves <palves@redhat.com>
16602
16603 PR gdb/22670
16604 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
16605 ada_lookup_symbol.
16606 (ada_lookup_symbol): Reimplement in terms of
16607 ada_lookup_symbol_list, bits factored out from
16608 ada_lookup_encoded_symbol.
16609
342f8240
JB
166102018-01-05 Joel Brobecker <brobecker@adacore.com>
16611
16612 * ada-exp.y (write_object_renaming): When subscripting an array
16613 using a symbol as the index, pass the block in call to
16614 ada_lookup_encoded_symbol when looking that symbol up.
16615
7150d33c
JG
166162018-01-05 Jerome Guitton <guitton@adacore.com>
16617
16618 * ada-lang.c (ada_array_length): Use ada_index_type instead of
16619 TYPE_INDEX_TYPE.
16620
cc0e770c
JB
166212018-01-05 Joel Brobecker <brobecker@adacore.com>
16622
16623 * ada-lang.c (ada_to_fixed_value_create): Add handling of
16624 the case where VALUE_LVAL (val0) is not lval_memory.
16625
f79da888 166262018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
16627
16628 * ada-valprint.c (print_optional_low_bound): Handle
16629 character-indexed array printing like boolean-indexed array
16630 printing.
16631
cd385f94
JB
166322018-01-05 Joel Brobecker <brobecker@adacore.com>
16633
16634 * NEWS: Create a new section for the next release branch.
16635 Rename the section of the current branch, now that it has
16636 been cut.
16637
09aca949
JB
166382018-01-05 Joel Brobecker <brobecker@adacore.com>
16639
16640 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
16641 * version.in: Bump version to 8.1.50.DATE-git.
16642
9f757bf7
XR
166432018-01-03 Xavier Roirand <roirand@adacore.com>
16644
16645 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
16646 Add field.
16647 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
16648 Add field.
16649 (default_exception_support_info) <catch_handlers_sym>: Add field.
16650 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
16651 (ada_exception_name_addr_1): Add "catch handlers" handling.
16652 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
16653 Update all callers.
16654 (create_excep_cond_exprs) <ex>: Add parameter.
16655 (re_set_exception): Update create_excep_cond_exprs call.
16656 (print_it_exception, print_one_exception, print_mention_exception)
16657 (print_recreate_exception): Add "catch handler" handling.
16658 (allocate_location_catch_handlers, re_set_catch_handlers)
16659 (check_status_catch_handlers, print_it_catch_handlers)
16660 (print_one_catch_handlers, print_mention_catch_handlers)
16661 (print_recreate_catch_handlers): New function.
16662 (catch_handlers_breakpoint_ops): New variable.
16663 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
16664 Add parameter. Add "catch handler" handling.
16665 (ada_exception_sym_name, ada_exception_breakpoint_ops):
16666 Add "catch handler" handling.
16667 (ada_exception_catchpoint_cond_string): Add "catch handler"
16668 handling.
16669 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
16670 call.
16671 (catch_ada_handlers_command): New function.
16672 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
16673 operations structure.
16674 (_initialize_ada_language): Add "catch handlers" command entry.
16675 * NEWS: Document "catch handlers" feature.
16676
9fe561ab
JB
166772018-01-02 Joel Brobecker <brobecker@adacore.com>
16678
16679 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
16680 account when creating the array type of the slice.
16681 (ada_value_slice): Likewise.
16682
a405673c
JB
166832018-01-02 Joel Brobecker <brobecker@adacore.com>
16684
16685 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
16686 New enum value.
16687 (create_array_type_with_stride): Add byte_stride_prop parameter.
16688 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
16689 New parameter. Update all callers in this file.
16690 (array_type_has_dynamic_stride): New function.
16691 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
16692 of arrays with dynamic byte strides.
16693 * dwarf2read.c (read_array_type): Add support for dynamic
16694 DW_AT_byte_stride attributes.
16695
74a2f8ff
JB
166962018-01-02 Joel Brobecker <brobecker@adacore.com>
16697
16698 * dwarf2read.c (read_unspecified_type): Treat
16699 DW_TAG_enumeration_type DIEs from Ada units as stubs.
16700
e2882c85
JB
167012018-01-01 Joel Brobecker <brobecker@adacore.com>
16702
16703 Update copyright year range in all GDB files.
16704
5e70ee09 167052018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
1690bb24
JB
16706
16707 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
16708 and gdb/testsuite/gdb.base/step-line.c.
16709
0f0c98a8
JB
167102018-01-01 Joel Brobecker <brobecker@adacore.com>
16711
16712 * copyright.py (main): Dump the contents of
16713 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
16714 even if BY_HAND is empty.
16715
82e1e79a
JB
167162018-01-01 Joel Brobecker <brobecker@adacore.com>
16717
16718 * top.c (print_gdb_version): Update Copyright year in version
16719 message.
16720
053f54e5 167212018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 16722
053f54e5 16723 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 16724
053f54e5 16725For older changes see ChangeLog-2017.
c906108c
SS
16726\f
16727Local Variables:
16728mode: change-log
16729left-margin: 8
16730fill-column: 74
16731version-control: never
57da7796 16732coding: utf-8
c906108c 16733End:
This page took 2.981639 seconds and 4 git commands to generate.