]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
f17ce42ddb92e0e53507546e7ecfcca3a6695ac7
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2018-12-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2
3 * nat/linux-osdata.c (linux_xfer_osdata_info_os_types): Forward
4 declare on one line to fix ARI warning.
5
6 2018-12-12 Andrew Burgess <andrew.burgess@embecosm.com>
7
8 * infrun.c (infcall_suspend_state::infcall_suspend_state): New.
9 (infcall_suspend_state::registers): New.
10 (infcall_suspend_state::restore): New.
11 (infcall_suspend_state::thread_suspend): Rename to...
12 (infcall_suspend_state::m_thread_suspend): ...this.
13 (infcall_suspend_state::registers): Rename to...
14 (infcall_suspend_state::m_registers): ...this.
15 (infcall_suspend_state::siginfo_gdbarch): Rename to...
16 (infcall_suspend_state::m_siginfo_gdbarch): ...this.
17 (infcall_suspend_state::siginfo_data): Rename to...
18 (infcall_suspend_state::m_siginfo_data): ...this.
19 (save_infcall_suspend_state): Rewrite to use infcall_suspend_state
20 constructor.
21 (restore_infcall_suspend_state): Rewrite to use
22 infcall_suspend_state::restore method.
23 (get_infcall_suspend_state_regcache): Use
24 infcall_suspend_state::registers method.
25
26 2018-12-12 Andrew Burgess <andrew.burgess@embecosm.com>
27
28 * riscv-tdep.c (riscv_call_arg_scalar_float): Unnamed (variadic)
29 arguments are passed in integer registers.
30 (riscv_call_arg_complex_float): Likewise.
31
32 2018-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
33
34 * nat/linux-osdata.c (common_getter): New function.
35 (struct osdata_type): Change getter to take_snapshot.
36 Add LONGEST len_avail and struct buffer buffer.
37 Change all elements in the initializer.
38 Add an element for the list of types.
39 (linux_xfer_osdata_info_os_types): New function.
40 (linux_common_xfer_osdata): Use common_getter for the list of types.
41 Replace getter call by common_getter.
42 (linux_xfer_osdata_cpus): Remove args READBUF, OFFSET, LEN.
43 Add arg BUFFER. Only keep the code that adds data in BUFFER.
44 (linux_xfer_osdata_fds): Likewise.
45 (linux_xfer_osdata_modules): Likewise.
46 (linux_xfer_osdata_msg): Likewise.
47 (linux_xfer_osdata_processes): Likewise.
48 (linux_xfer_osdata_processgroups): Likewise.
49 (linux_xfer_osdata_sem): Likewise.
50 (linux_xfer_osdata_shm): Likewise.
51 (linux_xfer_osdata_isockets): Likewise.
52 (linux_xfer_osdata_threads): Likewise.
53
54 2018-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
55
56 * nat/linux-osdata.c: Removed various trailing spaces.
57
58 2018-12-10 Andrew Burgess <andrew.burgess@embecosm.com>
59
60 * riscv-tdep.c (riscv_register_name): Fix ARI warning by removing
61 leading whitespace before #include line.
62
63 2018-12-08 Simon Marchi <simon.marchi@ericsson.com>
64 Дилян Палаузов <dilyan.palauzov@aegee.org>
65
66 PR gdb/23950
67 * configure.ac: Search for tgetent in libtinfow.
68 * configure: Re-generate.
69
70 2018-12-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
71
72 * linux-thread-db.c (struct thread_db_info): Add td_ta_delete_p.
73 (thread_db_err_str): Forward declare.
74 (delete_thread_db_info): Call td_ta_delete_p if available.
75 (try_thread_db_load_1): Acquire td_ta_delete address.
76 * nat/gdb_thread_db.h (td_ta_delete_ftype): Declare.
77
78 2018-12-08 Pedro Alves <palves@redhat.com>
79
80 * source.c (forward_search_command): Rename to ...
81 (search_command_helper): ... this. Add 'forward' parameter.
82 Tweak to use a gdb::def_vector<char> instead of a xrealloc'ed
83 buffer. Handle backward searches too.
84 (forward_search_command, reverse_search_command): Reimplement by
85 calling search_command_helper.
86
87 2018-12-07 Andrew Burgess <andrew.burgess@embecosm.com>
88
89 * .dir-locals.el: Copy most of the settings from c-mode over to
90 c++-mode.
91
92 2018-12-08 Stafford Horne <shorne@gmail.com>
93
94 * Makefile.in (ALL_TARGET_OBS): Add or1k-linux-tdep.o.
95 * configure.tgt: Add or1k*-*-linux*.
96 * or1k-linux-tdep.c: New file.
97 * or1k-tdep.c (or1k_gdbarch_init): Call gdbarch_init_osabi.
98
99 2018-12-07 Pedro Alves <palves@redhat.com>
100
101 * dwarf2read.c (get_gdb_index_contents_from_section): Use
102 gdb::make_array_view.
103
104 2018-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
105
106 * language.c (_initialize_language): Fix leak by assigning
107 a static string to language. Same for range and case_sensitive,
108 even if no leak is detected for these variables.
109
110 2018-12-05 John Baldwin <jhb@FreeBSD.org>
111
112 * configure: Re-generate.
113 * configure.ac: Use separate sed expressions to escape variables
114 in auto-load directories.
115
116 2018-12-05 Andrew Burgess <andrew.burgess@embecosm.com>
117
118 * riscv-tdep.c (riscv_features_from_gdbarch_info): New function.
119 (riscv_find_default_target_description): Use new function to
120 extract feature from gdbarch_info.
121 (riscv_gdbarch_init): Add error checks for xlen and flen between
122 target description and bfd headers. Be smarter about when we
123 think the hardware floating point abi should be used.
124
125 2018-12-05 Alan Hayward <alan.hayward@arm.com>
126
127 * nat/aarch64-linux-hw-point.c
128 (aarch64_linux_any_set_debug_regs_state): New function.
129 * nat/aarch64-linux-hw-point.h
130 (aarch64_linux_any_set_debug_regs_state): New declaration.
131 * nat/aarch64-linux.c (aarch64_linux_new_thread): Check if any
132 BPs or WPs are set.
133
134 2018-11-30 John Baldwin <jhb@FreeBSD.org>
135
136 * common/filestuff.c [HAVE_KINFO_GETFILE]: Include headers.
137 (fdwalk) [HAVE_KINFO_GETFILE]: Use kinfo_getfile.
138
139 2018-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
140 Simon Marchi <simon.marchi@ericsson.com>
141
142 * linespec.c (symtab_vector_up): Remove.
143 (symtabs_from_filename): Change return type to std::vector.
144 (collect_symtabs_from_filename): Likewise.
145 (create_sals_line_offset): Assign return value of
146 collect_symtabs_from_filename to *ls->file_symtabs.
147 (convert_explicit_location_to_linespec): Remove call to release.
148 (parse_linespec): Likewise.
149 (symtab_collector) <symtab_collector>: Remove initialization of
150 m_symtabs.
151 <release_symtabs>: Change return type to std::vector<symtab *>.
152 <operator ()>: Adjust.
153
154 2018-11-30 John Baldwin <jhb@FreeBSD.org>
155
156 * fbsd-nat.c [__FreeBSD_version >= 700009] (USE_SIGINFO): Macro
157 defined.
158 (union sigval32, struct siginfo32, fbsd_siginfo_size)
159 (fbsd_convert_siginfo): Make conditional on USE_SIGINFO instead
160 of KERN_PROC_AUXV and PT_LWPINFO.
161 (fbsd_nat_target::xfer_partial): Define method unconditionally.
162 Make TARGET_OBJECT_SIGNAL_INFO conditional on USE_SIGINFO.
163 Make TARGET_OBJECT_AUXV conditional on KERN_PROC_AUXV.
164 Make TARGET_OBJECT_FREEBSD_VMMAP and
165 TARGET_OBJECT_FREEBSD_PS_STRINGS conditional on KERN_PROC_VMMAP
166 and KERN_PROC_PS_STRINGS.
167 * fbsd-nat.h: Include <sys/proc.h>.
168 (fbsd_nat_target::xfer_partial): Declare method unconditionally.
169
170 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
171
172 * riscv-linux-nat.c: Add 'inferior.h' and 'target-descriptions.h'
173 header files.
174 (riscv_linux_nat_target::read_description): New method.
175
176 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
177
178 * arch/riscv.h (riscv_gdbarch_features::hash): New method.
179 * arch/riscv.c (struct riscv_gdbarch_features_hasher): New.
180 (riscv_tdesc_cache): New global.
181 (riscv_create_target_description): Look in the cache before
182 creating a new target description.
183
184 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
185
186 * arch/riscv.h (riscv_gdb_features::operator==): New.
187 (riscv_gdb_features::operator!=): New.
188 * riscv-tdep.c (riscv_gdbarch_init): Make use of the inequality
189 operator.
190
191 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
192
193 * arch/riscv.h (riscv_create_target_description): Make return type
194 const.
195 * arch/riscv.c (riscv_create_target_description): Likewise.
196 * riscv-tdep.c (riscv_find_default_target_description): Likewise.
197
198 2018-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
199 Keith Seitz <keiths@redhat.com>
200 Tom Tromey <tom@tromey.com>
201 Sergio Durigan Junior <sergiodj@redhat.com>
202
203 https://bugzilla.redhat.com/show_bug.cgi?id=1613614
204 * dwarf2read.c (dwarf2_find_containing_comp_unit): Add
205 'mid_cu->length' to '*cu_off' when checking if 'sect_off' is
206 inside the CU.
207
208 2018-11-30 Pedro Alves <palves@redhat.com>
209
210 * aix-thread.c (aix_thread_target) <aix_thread_target>: Delete.
211 <stratum>: New override.
212 * bfd-target.c (aix_thread_target) <aix_thread_target>: Delete.
213 <stratum>: New override.
214 * bsd-uthread.c (bsd_uthread_target) <bsd_uthread_target>: Delete.
215 <stratum>: New override.
216 * exec.c (exec_target) <exec_target>: Delete.
217 <stratum>: New override.
218 * gdbarch-selftests.c (register_to_value_test): Adjust to use the
219 stratum method instead of the to_stratum field.
220 * linux-thread-db.c (thread_db_target) <thread_db_target>: Delete.
221 <stratum>: New override.
222 (thread_db_target::thread_db_target): Delete.
223 * make-target-delegates (print_class): Don't print a ctor
224 declaration. Print a stratum method override declaration.
225 * process-stratum-target.h (process_stratum_target)
226 <process_stratum_target>: Delete.
227 <stratum>: New override.
228 * ravenscar-thread.c (ravenscar_thread_target)
229 <ravenscar_thread_target>: Delete.
230 <stratum>: New override.
231 * record-btrace.c (record_btrace_target)
232 <record_btrace_target>: Delete.
233 <stratum>: New override.
234 * record-full.c (record_full_base_target)
235 <record_full_base_target>: Delete.
236 <stratum>: New override.
237 * record.c (record_disconnect, record_detach)
238 (record_mourn_inferior, record_kill): Adjust to use the stratum
239 method instead of the to_stratum field.
240 * regcache.c (cooked_read_test, cooked_write_test): Likewise.
241 * sol-thread.c (sol_thread_target)
242 <sol_thread_target>: Delete.
243 <stratum>: New override.
244 * spu-multiarch.c (spu_multiarch_target)
245 <spu_multiarch_target>: Delete.
246 <stratum>: New override.
247 * target-delegates.c: Regenerate.
248 * target.c (target_stack::push, target_stack::unpush)
249 (pop_all_targets_above, pop_all_targets_at_and_above)
250 (info_target_command, target_require_runnable)
251 (target_stack::find_beneath): Adjust to use the stratum method
252 instead of the to_stratum field.
253 (dummy_target::dummy_target): Delete.
254 (dummy_target::stratum): New.
255 (debug_target::debug_target): Delete.
256 (debug_target::stratum): New.
257 (maintenance_print_target_stack): Adjust to use the stratum method
258 instead of the to_stratum field.
259 * target.h (struct target_ops) <stratum>: New method.
260 <to_stratum>: Delete.
261 <is_pushed>: Adjust to use the stratum method
262 instead of the to_stratum field.
263
264 2018-11-30 Pedro Alves <palves@redhat.com>
265
266 * corelow.c (core_target) <has_all_memory, has_execution>: New
267 overrides.
268 * inf-child.c (inf_child_target::has_all_memory)
269 (inf_child_target::has_memory, inf_child_target::has_stack)
270 (inf_child_target::has_registers)
271 (inf_child_target::has_execution): Delete.
272 * inf-child.h (inf_child_target) <has_all_memory, has_memory,
273 has_stack, has_registers, has_execution>: Delete.
274 * process-stratum-target.c
275 (process_stratum_target::has_all_memory)
276 (process_stratum_target::has_memory)
277 (process_stratum_target::has_stack)
278 (process_stratum_target::has_registers)
279 (process_stratum_target::has_execution): New.
280 * process-stratum-target.h (process_stratum_target)
281 <has_all_memory, has_memory, has_stack, has_registers,
282 has_execution>: New method overrides.
283 * ravenscar-thread.c (ravenscar_thread_target) <has_all_memory,
284 has_memory, has_stack, has_registers, has_execution>: Delete.
285 * remote-sim.c (gdbsim_target) <has_stack, has_registers,
286 has_execution>: Delete.
287 * remote.c (remote_target) <has_all_memory, has_memory, has_stack,
288 has_registers, has_execution>: Delete.
289 * target.c (default_child_has_all_memory)
290 (default_child_has_memory, default_child_has_stack)
291 (default_child_has_registers, default_child_has_execution):
292 Delete.
293 * target.h (default_child_has_all_memory)
294 (default_child_has_memory, default_child_has_stack)
295 (default_child_has_registers, default_child_has_execution):
296 Delete.
297 * tracefile.h (tracefile_target) <has_execution>: New override.
298
299 2018-11-30 Pedro Alves <palves@redhat.com>
300
301 * Makefile.in (COMMON_SFILES): Add process-stratum-target.c.
302 * bsd-kvm.c: Include "process-stratum-target.h".
303 (bsd_kvm_target): Now inherits from process_stratum_target.
304 (bsd_kvm_target::bsd_kvm_target): Default it.
305 * corelow.c: Include "process-stratum-target.h".
306 (core_target): Now inherits from process_stratum_target.
307 (core_target::core_target): Don't set to_stratum here.
308 * inf-child.c (inf_child_target::inf_child_target): Delete.
309 * inf-child.h: Include "process-stratum-target.h".
310 (inf_child_target): Inherit from process_stratum_target.
311 (inf_child_target) <inf_child_target>: Default it.
312 <can_async_p, supports_non_stop, supports_disable_randomization>:
313 Delete overrides.
314 * process-stratum-target.c: New file.
315 * process-stratum-target.h: New file.
316 * remote-sim.c: Include "process-stratum-target.h".
317 (gdbsim_target): Inherit from process_stratum_target.
318 <gdbsim_target>: Default it.
319 * remote.c: Include "process-stratum-target.h".
320 (remote_target): Inherit from process_stratum_target.
321 <remote_target>: Default it.
322 * target.c (default_thread_address_space)
323 (default_thread_architecture): Delete.
324 * target.h (target_ops) <thread_architecture>: Now returns NULL by
325 default.
326 <thread_address_space>: Ditto.
327 * test-target.h: Include "process-stratum-target.h" instead of
328 "target.h".
329 (test_target_ops): Inherit from process_stratum_target.
330 <test_target_ops>: Default it.
331 * tracefile.c (tracefile_target::tracefile_target): Delete.
332 * tracefile.h: Include "process-stratum-target.h".
333 (tracefile_target): Inherit from process_stratum_target.
334 <tracefile_target>: Default it.
335 * target-delegates.c: Regenerate.
336
337 2018-11-30 Pedro Alves <palves@redhat.com>
338
339 * Makefile.in (COMMON_SFILES): Add test-target.c.
340 * gdbarch-selftests.c: Include "test-target.h".
341 * regcache.c: Include "test-target.h".
342 * target.c (test_target_info, test_target_ops::info): Move to ...
343 * test-target.c: ... this new file.
344 * target.h (test_target_ops): Move to ...
345 * test-target.h: ... this new file.
346
347 2018-11-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
348
349 * source.c (forward_search_command): Fix leak by using
350 xrealloc even for the first allocation in the loop, as buf
351 is static.
352
353 2018-11-29 Rajendra SY <rajendra.sy@gmail.com>
354
355 PR gdb/23093
356 * gdb/fbsd-tdep.c (fbsd_gdb_signal_from_target)
357 (fbsd_gdb_signal_to_target): New.
358 (fbsd_init_abi): Install gdbarch "signal_from_target" and
359 "signal_to_target" methods.
360
361 2018-11-29 Tom Tromey <tom@tromey.com>
362
363 * valarith.c (value_x_unop): Don't set argvec[3].
364
365 2018-11-26 Simon Marchi <simon.marchi@ericsson.com>
366
367 PR gdb/23917
368 * sparc-linux-nat.c (sparc_linux_nat_target): Remove extraneous
369 semicolon.
370
371 2018-11-26 Pedro Alves <palves@redhat.com>
372
373 * procfs.c (procfs_notice_thread): Replace uses of
374 in_thread_list/is_exited with find_thread_ptid/THREAD_EXITED.
375 * sol-thread.c (sol_thread_target::wait)
376 (sol_update_thread_list_callback): Likewise.
377
378 2018-11-25 Tom Tromey <tom@tromey.com>
379
380 * ui-out.c (ui_out::field_fmt): Remove comment.
381 * tui/tui-out.c (tui_ui_out::do_field_fmt): Remove comment.
382 * mi/mi-out.c (mi_ui_out::do_field_fmt): Remove comment.
383
384 2018-11-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
385
386 * source.c (open_source_file): Leak fixed in '8e6a5953e1d Fix 4K
387 leak in open_source_file' has been partially undone by '2179fbc36d23
388 Return scoped_fd from open_source_file'. Re-add the transfer of
389 current s->fullname to the unique_xmalloc_ptr fullname given
390 to find_and_open_source.
391
392 2018-11-23 Pedro Alves <palves@redhat.com>
393
394 * gdbthread.h (enum thread_state): Move comments here.
395 (is_running, is_stopped, is_exited): Remove declarations.
396
397 2018-11-22 Pedro Alves <palves@redhat.com>
398
399 * Makefile.in (COMMON_SFILES): Add thread-iter.c.
400 * breakpoint.c (breakpoints_should_be_inserted_now): Replace
401 ALL_NON_EXITED_THREADS with all_non_exited_threads.
402 (print_one_breakpoint_location): Replace ALL_INFERIORS with
403 all_inferiors.
404 * bsd-kvm.c: Include inferior.h.
405 * btrace.c (btrace_free_objfile): Replace ALL_NON_EXITED_THREADS
406 with all_non_exited_threads.
407 * common/filtered-iterator.h: New.
408 * common/safe-iterator.h: New.
409 * corelow.c (core_target_open): Don't call init_thread_list here.
410 * darwin-nat.c (thread_info_from_private_thread_info): Replace
411 ALL_THREADS with all_threads.
412 * fbsd-nat.c (fbsd_nat_target::resume): Replace
413 ALL_NON_EXITED_THREADS with inf->non_exited_threads.
414 * fbsd-tdep.c (fbsd_make_corefile_notes): Replace
415 ALL_NON_EXITED_THREADS with inf->non_exited_threads.
416 * fork-child.c (postfork_hook): Don't call init_thread_list here.
417 * gdbarch-selftests.c (register_to_value_test): Adjust.
418 * gdbthread.h: Don't include "inferior.h" here.
419 (struct inferior): Forward declare.
420 (enum step_over_calls_kind): Moved here from inferior.h.
421 (thread_info::deletable): Definition moved to thread.c.
422 (find_thread_ptid (inferior *, ptid_t)): Declare.
423 (ALL_THREADS, ALL_THREADS_BY_INFERIOR, ALL_THREADS_SAFE): Delete.
424 Include "thread-iter.h".
425 (all_threads, all_non_exited_threads, all_threads_safe): New.
426 (any_thread_p): Declare.
427 (thread_list): Delete.
428 * infcmd.c (signal_command): Replace ALL_NON_EXITED_THREADS with
429 all_non_exited_threads.
430 (proceed_after_attach_callback): Delete.
431 (proceed_after_attach): Take an inferior pointer instead of an
432 integer PID. Adjust to use range-for.
433 (attach_post_wait): Pass down inferior pointer instead of pid.
434 Use range-for instead of ALL_NON_EXITED_THREADS.
435 (detach_command): Remove init_thread_list call.
436 * inferior-iter.h: New.
437 * inferior.c (struct delete_thread_of_inferior_arg): Delete.
438 (delete_thread_of_inferior): Delete.
439 (delete_inferior, exit_inferior_1): Use range-for with
440 inf->threads_safe() instead of iterate_over_threads.
441 (inferior_appeared): Call init_thread_list here.
442 (discard_all_inferiors): Use all_non_exited_inferiors.
443 (find_inferior_id, find_inferior_pid): Use all_inferiors.
444 (iterate_over_inferiors): Use all_inferiors_safe.
445 (have_inferiors, number_of_live_inferiors): Use
446 all_non_exited_inferiors.
447 (number_of_inferiors): Use all_inferiors and std::distance.
448 (print_inferior): Use all_inferiors.
449 * inferior.h: Include gdbthread.h.
450 (enum step_over_calls_kind): Moved to gdbthread.h.
451 (struct inferior) <thread_list>: New field.
452 <threads, non_exited_threads, threads_safe>: New methods.
453 (ALL_INFERIORS): Delete.
454 Include "inferior-iter.h".
455 (ALL_NON_EXITED_INFERIORS): Delete.
456 (all_inferiors_safe, all_inferiors, all_non_exited_inferiors): New
457 functions.
458 * inflow.c (child_interrupt, child_pass_ctrlc): Replace
459 ALL_NON_EXITED_THREADS with all_non_exited_threads.
460 * infrun.c (follow_exec): Use all_threads_safe.
461 (clear_proceed_status, proceed): Use all_non_exited_threads.
462 (init_wait_for_inferior): Don't clear inline frame state here.
463 (infrun_thread_stop_requested, for_each_just_stopped_thread): Use
464 all_threads instead of ALL_NON_EXITED_THREADS.
465 (random_pending_event_thread): Use all_non_exited_threads instead
466 of ALL_NON_EXITED_THREADS. Use a lambda for repeated code.
467 (clean_up_just_stopped_threads_fsms): Use all_non_exited_threads
468 instead of ALL_NON_EXITED_THREADS.
469 (handle_no_resumed): Use all_non_exited_threads instead of
470 ALL_NON_EXITED_THREADS. Use all_inferiors instead of
471 ALL_INFERIORS.
472 (restart_threads, switch_back_to_stepped_thread): Use
473 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
474 * linux-nat.c (check_zombie_leaders): Replace ALL_INFERIORS with
475 all_inferiors.
476 (kill_unfollowed_fork_children): Use inf->non_exited_threads
477 instead of ALL_NON_EXITED_THREADS.
478 * linux-tdep.c (linux_make_corefile_notes): Use
479 inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
480 * linux-thread-db.c (thread_db_target::update_thread_list):
481 Replace ALL_INFERIORS with all_inferiors.
482 (thread_db_target::thread_handle_to_thread_info): Use
483 inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
484 * mi/mi-interp.c (multiple_inferiors_p): New.
485 (mi_on_resume_1): Simplify using all_non_exited_threads and
486 multiple_inferiors_p.
487 * mi/mi-main.c (mi_cmd_thread_list_ids): Use all_non_exited_threads
488 instead of ALL_NON_EXITED_THREADS.
489 * nto-procfs.c (nto_procfs_target::open): Don't call
490 init_thread_list here.
491 * record-btrace.c (record_btrace_target_open)
492 (record_btrace_target::stop_recording)
493 (record_btrace_target::close)
494 (record_btrace_target::record_is_replaying)
495 (record_btrace_target::resume, record_btrace_target::wait)
496 (record_btrace_target::record_stop_replaying): Use
497 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
498 * record-full.c (record_full_wait_1): Use all_non_exited_threads
499 instead of ALL_NON_EXITED_THREADS.
500 * regcache.c (cooked_read_test): Remove reference to global
501 thread_list.
502 * remote-sim.c (gdbsim_target::create_inferior): Don't call
503 init_thread_list here.
504 * remote.c (remote_target::update_thread_list): Use
505 all_threads_safe instead of ALL_NON_EXITED_THREADS.
506 (remote_target::process_initial_stop_replies): Replace
507 ALL_INFERIORS with all_non_exited_inferiors and use
508 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
509 (remote_target::open_1): Don't call init_thread_list here.
510 (remote_target::append_pending_thread_resumptions)
511 (remote_target::remote_resume_with_hc): Use all_non_exited_threads
512 instead of ALL_NON_EXITED_THREADS.
513 (remote_target::commit_resume)
514 (remote_target::remove_new_fork_children): Replace ALL_INFERIORS
515 with all_non_exited_inferiors and use all_non_exited_threads
516 instead of ALL_NON_EXITED_THREADS.
517 (remote_target::kill_new_fork_children): Use
518 all_non_exited_threads instead of ALL_NON_EXITED_THREADS. Remove
519 init_thread_list and init_wait_for_inferior calls.
520 (remote_target::remote_btrace_maybe_reopen)
521 (remote_target::thread_handle_to_thread_info): Use
522 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
523 * target.c (target_terminal::restore_inferior)
524 (target_terminal_is_ours_kind): Replace ALL_INFERIORS with
525 all_non_exited_inferiors.
526 * thread-iter.c: New file.
527 * thread-iter.h: New file.
528 * thread.c: Include "inline-frame.h".
529 (thread_list): Delete.
530 (clear_thread_inferior_resources): Call clear_inline_frame_state.
531 (init_thread_list): Use all_threads_safe instead of
532 ALL_THREADS_SAFE. Adjust to per-inferior thread lists.
533 (new_thread): Adjust to per-inferior thread lists.
534 (add_thread_silent): Pass inferior to find_thread_ptid.
535 (thread_info::deletable): New, moved from the header.
536 (delete_thread_1): Adjust to per-inferior thread lists.
537 (find_thread_global_id): Use inf->threads().
538 (find_thread_ptid): Use find_inferior_ptid and pass inferior to
539 find_thread_ptid.
540 (find_thread_ptid(inferior*, ptid_t)): New overload.
541 (iterate_over_threads): Use all_threads_safe.
542 (any_thread_p): New.
543 (thread_count): Use all_threads and std::distance.
544 (live_threads_count): Use all_non_exited_threads and
545 std::distance.
546 (valid_global_thread_id): Use all_threads.
547 (in_thread_list): Use find_thread_ptid.
548 (first_thread_of_inferior): Adjust to per-inferior thread lists.
549 (any_thread_of_inferior, any_live_thread_of_inferior): Use
550 inf->non_exited_threads().
551 (prune_threads, delete_exited_threads): Use all_threads_safe.
552 (thread_change_ptid): Pass inferior pointer to find_thread_ptid.
553 (set_resumed, set_running): Use all_non_exited_threads.
554 (is_thread_state, is_stopped, is_exited, is_running)
555 (is_executing): Delete.
556 (set_executing, set_stop_requested, finish_thread_state): Use
557 all_non_exited_threads.
558 (print_thread_info_1): Use all_inferiors and all_threads.
559 (thread_apply_all_command): Use all_non_exited_threads.
560 (thread_find_command): Use all_threads.
561 (update_threads_executing): Use all_non_exited_threads.
562 * tid-parse.c (parse_thread_id): Use inf->threads.
563 * x86-bsd-nat.c (x86bsd_dr_set): Use inf->non_exited_threads ().
564
565 2018-11-22 Pedro Alves <palves@redhat.com>
566
567 * infrun.c (follow_exec) <set follow-exec new>: Add thread and
568 switch to it before calling into try_open_exec_file.
569
570 2018-11-22 Pedro Alves <palves@redhat.com>
571
572 * cli/cli-interp.c (cli_on_user_selected_context_changed): Use
573 inferior_thread instead of find_thread_ptid, and only when
574 inferior_ptid is not null_ptid.
575 * inferior.c (add_inferior): Don't include target_pid_to_str
576 output when the inferior is not started.
577 * python/py-inferior.c (python_on_normal_stop): Don't use
578 find_thread_ptid.
579 (tui_on_user_selected_context_changed): Use inferior_thread
580 instead of find_thread_ptid, and only when inferior_ptid is not
581 null_ptid.
582
583 2018-11-21 Benno Fünfstück <benno.fuenfstueck@gmail.com>
584
585 PR python/23714
586 * gdb/python/python.c (execute_gdb_command): Call
587 prevent_dont_repeat earlier to avoid affecting dont_repeat.
588
589 2018-11-21 Andrew Burgess <andrew.burgess@embecosm.com>
590
591 * Makefile.in (ALL_TARGET_OBS): Add arch/riscv.o.
592 (HFILES_NO_SRCDIR): Add arch/riscv.h.
593 * arch/riscv.c: New file.
594 * arch/riscv.h: New file.
595 * configure.tgt: Add cpu_obs list of riscv, move riscv-tdep.o into
596 this list, and add arch/riscv.o.
597 * features/Makefile: Add riscv features.
598 * features/riscv/32bit-cpu.c: New file.
599 * features/riscv/32bit-cpu.xml: New file.
600 * features/riscv/32bit-csr.c: New file.
601 * features/riscv/32bit-csr.xml: New file.
602 * features/riscv/32bit-fpu.c: New file.
603 * features/riscv/32bit-fpu.xml: New file.
604 * features/riscv/64bit-cpu.c: New file.
605 * features/riscv/64bit-cpu.xml: New file.
606 * features/riscv/64bit-csr.c: New file.
607 * features/riscv/64bit-csr.xml: New file.
608 * features/riscv/64bit-fpu.c: New file.
609 * features/riscv/64bit-fpu.xml: New file.
610 * features/riscv/rebuild-csr-xml.sh: New file.
611 * riscv-tdep.c: Add 'arch/riscv.h' include.
612 (riscv_gdb_reg_names): Delete.
613 (csr_reggroup): New global.
614 (struct riscv_register_alias): Delete.
615 (struct riscv_register_feature): New structure.
616 (riscv_register_aliases): Delete.
617 (riscv_xreg_feature): New global.
618 (riscv_freg_feature): New global.
619 (riscv_virtual_feature): New global.
620 (riscv_csr_feature): New global.
621 (riscv_create_csr_aliases): New function.
622 (riscv_read_misa_reg): Delete.
623 (riscv_has_feature): Delete.
624 (riscv_isa_xlen): Simplify, just return cached xlen.
625 (riscv_isa_flen): Simplify, just return cached flen.
626 (riscv_has_fp_abi): Update for changes in struct gdbarch_tdep.
627 (riscv_register_name): Update to make use of tdesc_register_name.
628 Look up xreg and freg names in the new globals riscv_xreg_feature
629 and riscv_freg_feature. Don't supply csr aliases here.
630 (riscv_fpreg_q_type): Delete.
631 (riscv_register_type): Use tdesc_register_type in almost all
632 cases, override the returned type in a few specific cases only.
633 (riscv_print_one_register_info): Handle errors reading registers.
634 (riscv_register_reggroup_p): Use tdesc_register_in_reggroup_p for
635 registers that are otherwise unknown to GDB. Also check the
636 csr_reggroup.
637 (riscv_print_registers_info): Remove assert about upper register
638 number, and use gdbarch_register_reggroup_p instead of
639 short-cutting.
640 (riscv_find_default_target_description): New function.
641 (riscv_check_tdesc_feature): New function.
642 (riscv_add_reggroups): New function.
643 (riscv_setup_register_aliases): New function.
644 (riscv_init_reggroups): New function.
645 (_initialize_riscv_tdep): Add calls to setup CSR aliases, and
646 setup register groups. Register new riscv debug variable.
647 * riscv-tdep.h: Add 'arch/riscv.h' include.
648 (struct gdbarch_tdep): Remove abi union, and add
649 riscv_gdbarch_features field. Remove cached quad floating point
650 type, and provide initialisation for double type field.
651 * target-descriptions.c (maint_print_c_tdesc_cmd): Add riscv to
652 the list of targets using the feature based target descriptions.
653 * NEWS: Mention target description support.
654
655 2018-11-21 Pedro Alves <palves@redhat.com>
656
657 * valops.c (find_method_list, value_find_oload_method_list)
658 (find_overload_match, find_oload_champ): Rename parameters and
659 locals.
660
661 2018-11-21 Pedro Alves <palves@redhat.com>
662
663 * valops.c (find_method_list): Replace pointer and length
664 parameters with an gdb::array_view. Adjust.
665 (value_find_oload_method_list): Likewise.
666 (find_overload_match): Use gdb::array_view for methods list.
667 Adjust to find_oload_champ interface change.
668 (find_oload_champ): 'xm_worker_vec' parameter now a pointer/array.
669 'num_fns' parameter now a size_t. Eliminate 'fn_count' local.
670
671 2018-11-21 Pedro Alves <palves@redhat.com>
672
673 * gdbtypes.c (compare_badness): Change type of parameters to const
674 reference. Adjust to badness_vector being a std::vector now.
675 (rank_function): Adjust to badness_vector being a std::vector now.
676 * gdbtypes.h (badness_vector): Now a typedef to std::vector.
677 (LENGTH_MATCH): Delete.
678 (compare_badness): Change type of parameters to const reference.
679 (rank_function): Return a badness_vector by value now.
680 (find_overload_match): Adjust to badness_vector being a
681 std::vector now. Remove cleanups.
682 (find_oload_champ_namespace): 'oload_champ_bv' parameter now a
683 badness_vector pointer.
684 (find_oload_champ_namespace_loop): 'oload_champ_bv' parameter now
685 a badness_vector pointer. Adjust to badness_vector being a
686 std::vector now. Remove cleanups.
687 (find_oload_champ): 'oload_champ_bv' parameter now
688 a badness_vector pointer. Adjust to badness_vector being a
689 std::vector now. Remove cleanups.
690
691 2018-11-21 Pedro Alves <palves@redhat.com>
692
693 * cp-support.c (sym_return_val_size, sym_return_val_index)
694 (sym_return_val): Delete.
695 (overload_list_add_symbol): Add std::vector parameter. Adjust to
696 add to the vector.
697 (make_symbol_overload_list): Adjust to return a std::vector
698 instead of maintaining a global open coded vector.
699 (make_symbol_overload_list_block): Add std::vector parameter.
700 (make_symbol_overload_list_block): Rename to ...
701 (add_symbol_overload_list_block): ... this and add std::vector
702 parameter.
703 (make_symbol_overload_list_namespace): Rename to ...
704 (add_symbol_overload_list_namespace): ... this and add std::vector
705 parameter.
706 (make_symbol_overload_list_adl_namespace): Rename to ...
707 (add_symbol_overload_list_adl_namespace): ... this and add
708 std::vector parameter.
709 (make_symbol_overload_list_adl): Delete.
710 (add_symbol_overload_list_adl): New.
711 (make_symbol_overload_list_using): Rename to ...
712 (add_symbol_overload_list_using): ... this and add std::vector
713 parameter.
714 (make_symbol_overload_list_qualified): Rename to ...
715 (add_symbol_overload_list_qualified): ... this and add std::vector
716 parameter.
717 * cp-support.h: Include "common/array-view.h" and <vector>.
718 (make_symbol_overload_list): Change return type to std::vector.
719 (make_symbol_overload_list_adl): Delete declaration.
720 (add_symbol_overload_list_adl): New declaration.
721 * valops.c (find_overload_match): Local 'oload_syms' now a
722 std::vector.
723 (find_oload_champ_namespace): 'oload_syms' parameter now a
724 std::vector pointer.
725 (find_oload_champ_namespace_loop): 'oload_syms' parameter now a
726 std::vector pointer. Adjust to new make_symbol_overload_list
727 interface.
728
729 2018-11-21 Pedro Alves <palves@redhat.com>
730
731 * common/array-view.h (array_view::splice(size_type, size_t)): New.
732 (array_view::splice(size_type)): New.
733 * eval.c (eval_call, evaluate_funcall): Adjust to use array_view.
734 * extension.c (xmethod_worker::get_arg_types): Adjust to return an
735 std::vector.
736 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
737 * extension.h: Include "common/array-view.h".
738 (xmethod_worker::invoke): Adjust to use gdb::array_view.
739 (xmethod_worker::get_arg_types): Adjust to return an std::vector.
740 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
741 (xmethod_worker::do_get_arg_types): Adjust to use std::vector.
742 (xmethod_worker::do_get_result_type): Adjust to use
743 gdb::array_view.
744 * gdbtypes.c (rank_function): Adjust to use gdb::array_view.
745 * gdbtypes.h: Include "common/array-view.h".
746 (rank_function): Adjust to use gdb::array_view.
747 * python/py-xmethods.c (python_xmethod_worker::invoke)
748 (python_xmethod_worker::do_get_arg_types)
749 (python_xmethod_worker::do_get_result_type)
750 (python_xmethod_worker::invoke): Adjust to new interfaces.
751 * valarith.c (value_user_defined_cpp_op, value_user_defined_op)
752 (value_x_binop, value_x_unop): Adjust to use gdb::array_view.
753 * valops.c (find_overload_match, find_oload_champ_namespace)
754 (find_oload_champ_namespace_loop, find_oload_champ): Adjust to use
755 gdb:array_view and the new xmethod_worker interfaces.
756 * value.c (result_type_of_xmethod, call_xmethod): Adjust to use
757 gdb::array_view.
758 * value.h (find_overload_match, result_type_of_xmethod)
759 (call_xmethod): Adjust to use gdb::array_view.
760 * unittests/array-view-selftests.c: Add slicing tests.
761
762 2018-11-21 Pedro Alves <palves@redhat.com>
763
764 * ada-lang.c (ada_evaluate_subexp): Adjust to pass an array_view.
765 * common/array-view.h (make_array_view): New.
766 * compile/compile-object-run.c (compile_object_run): Adjust to
767 pass an array_view.
768 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust.
769 * eval.c (eval_call): Adjust to pass an array_view.
770 (evaluate_subexp_standard): Adjust to pass an array_view.
771 * gcore.c (call_target_sbrk): Adjust to pass an array_view.
772 * guile/scm-value.c (gdbscm_value_call): Likewise.
773 * infcall.c (push_dummy_code): Replace pointer + size parameters
774 with an array_view parameter.
775 (call_function_by_hand, call_function_by_hand_dummy): Likewise and
776 adjust.
777 * infcall.h: Include "common/array-view.h".
778 (call_function_by_hand, call_function_by_hand_dummy): Replace
779 pointer + size parameters with an array_view parameter.
780 * linux-fork.c (inferior_call_waitpid): Adjust to use array_view.
781 * linux-tdep.c (linux_infcall_mmap): Likewise.
782 * objc-lang.c (lookup_objc_class, lookup_child_selector)
783 (value_nsstring, print_object_command): Likewise.
784 * python/py-value.c (valpy_call): Likewise.
785 * rust-lang.c (rust_evaluate_funcall): Likewise.
786 * spu-tdep.c (flush_ea_cache): Likewise.
787 * valarith.c (value_x_binop, value_x_unop): Likewise.
788 * valops.c (value_allocate_space_in_inferior): Likewise.
789 * unittests/array-view-selftests.c (run_tests): Add
790 gdb::make_array_view test.
791
792 2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
793
794 * cli-out.c (cli_ui_out::do_field_int): Use string_printf rather
795 than a fixed size buffer.
796
797 2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
798
799 * breakpoint.c (print_one_breakpoint_location): Reduce whitespace,
800 and remove insertion of extra spaces in GDB's output.
801 * cli-out.c (cli_ui_out::do_field_fmt): Update header comment.
802 Layout field into a temporary buffer, and then output it as a
803 string field.
804
805 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
806
807 * NEWS: Document the language choice done by
808 'info [types|functions|variables]|rbreak'.
809
810 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
811
812 * symtab.c (treg_matches_sym_type_name): Use
813 scoped_switch_to_sym_language_if_auto instead of local logic.
814 (print_symbol_info): Use scoped_switch_to_sym_language_if_auto
815 to switch to SYM language when language mode is auto.
816
817 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
818
819 * language.h (scoped_switch_to_sym_language_if_auto): New class.
820
821 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
822
823 * symtab.c (search_symbols): Properly check absence of type regexp
824 before entering the loop scanning the minimal symbols.
825
826 2018-11-20 John Darrington <john@darrington.wattle.id.au>
827
828 * s12z-tdep.c (s12z_extract_return_value): New function.
829 (inv_reg_perm) New array.
830 (s12z_return_value): Populate readbuf if non-null.
831
832 2018-11-20 Eli Zaretskii <eliz@gnu.org>
833
834 * common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode
835 with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater
836 to MinGW fixed by Gnulib.
837 (O_NOINHERIT): Define if not defined.
838
839 2018-11-19 John Darrington <john@darrington.wattle.id.au>
840
841 * s12z-tdep.c (s12z_frame_cache): Add an assertion.
842
843 2018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
844
845 * infrun.c (displaced_step_inferior_state) <next>: Remove.
846
847 2018-11-19 Tom Tromey <tom@tromey.com>
848
849 * source.c (get_filename_and_charpos): Return void.
850
851 2018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
852
853 * skip.c (_initialize_step_skip): Fix "info skip" help.
854
855 2018-11-16 Tom Tromey <tom@tromey.com>
856
857 PR rust/23625:
858 * rust-lang.c (rust_internal_print_type): Handle TYPE_CODE_PTR.
859
860 2018-11-19 Simon Marchi <simon.marchi@ericsson.com>
861
862 * infrun.c (displaced_step_inferior_states): Change type to
863 std::forward_list.
864 (get_displaced_stepping_state): Adjust.
865 (displaced_step_in_progress_any_inferior): Adjust.
866 (add_displaced_stepping_state): Adjust.
867 (remove_displaced_stepping_state): Adjust.
868
869 2018-11-18 Tom Tromey <tom@tromey.com>
870
871 PR build/23814:
872 * target-delegates.c: Rebuild.
873 * ia64-linux-nat.c (class ia64_linux_nat_target)
874 <have_steppable_watchpoint>: Use override. Return true, not 1.
875 (ia64_linux_nat_target::can_use_hw_breakpoint): Rename. Remove
876 "self" argument.
877 (ia64_linux_nat_target::low_new_thread): Rename.
878 (class ia64_linux_nat_target) <read_description>: Don't declare.
879 * target.h (struct target_ops) <have_steppable_watchpoint>: Return
880 bool.
881
882 2018-11-16 Alan Hayward <alan.hayward@arm.com>
883
884 PR gdb/22736:
885 * aarch64-tdep.c (aarch64_push_dummy_call): Remove
886 lang_struct_return code.
887
888 2018-11-16 Alan Hayward <alan.hayward@arm.com>
889
890 * aarch64-tdep.c (aarch64_push_dummy_call): Replace arg with
891 return_method.
892 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
893 * amd64-tdep.c (amd64_push_arguments): Likewise.
894 (amd64_push_dummy_call): Likewise.
895 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
896 * arc-tdep.c (arc_push_dummy_call): Likewise.
897 * arm-tdep.c (arm_push_dummy_call): Likewise.
898 * avr-tdep.c (avr_push_dummy_call): Likewise.
899 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
900 * cris-tdep.c (cris_push_dummy_call): Likewise.
901 * csky-tdep.c (csky_push_dummy_call): Likewise.
902 * frv-tdep.c (frv_push_dummy_call): Likewise.
903 * gdbarch.c: Regenerate.
904 * gdbarch.h: Regenerate.
905 * gdbarch.sh (gdbarch_push_dummy_call): Replace arg with
906 return_method.
907 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
908 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
909 (hppa64_push_dummy_call): Likewise.
910 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
911 * i386-tdep.c (i386_push_dummy_call): Likewise.
912 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
913 * infcall.c (call_function_by_hand_dummy): Likewise.
914 * iq2000-tdep.c (iq2000_push_dummy_call): Likewise.
915 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
916 * m32c-tdep.c (m32c_push_dummy_call): Likewise.
917 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
918 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
919 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
920 * mep-tdep.c (mep_push_dummy_call): Likewise.
921 * mips-tdep.c (mips_eabi_push_dummy_call): Likewise.
922 (mips_n32n64_push_dummy_call): Likewise.
923 (mips_o32_push_dummy_call): Likewise.
924 (mips_o64_push_dummy_call): Likewise.
925 * mn10300-tdep.c (mn10300_push_dummy_call): Likewise.
926 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
927 * nds32-tdep.c (nds32_push_dummy_call): Likewise.
928 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
929 * or1k-tdep.c (or1k_push_dummy_call): Likewise.
930 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
931 (ppc64_sysv_abi_push_dummy_call): Likewise.
932 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Likewise.
933 (ppc64_sysv_abi_push_dummy_call): Likewise.
934 * riscv-tdep.c (riscv_push_dummy_call): Likewise.
935 * rl78-tdep.c (rl78_push_dummy_call): Likewise.
936 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
937 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
938 * rx-tdep.c (rx_push_dummy_call): Likewise.
939 * s390-tdep.c (s390_push_dummy_call): Likewise.
940 * score-tdep.c (score_push_dummy_call): Likewise.
941 * sh-tdep.c (sh_push_dummy_call_fpu): Likewise.
942 (sh_push_dummy_call_nofpu): Likewise.
943 * sparc-tdep.c (sparc32_store_arguments): Likewise.
944 (sparc32_push_dummy_call): Likewise.
945 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
946 (sparc64_push_dummy_call): Likewise.
947 * spu-tdep.c (spu_push_dummy_call): Likewise.
948 * tic6x-tdep.c (tic6x_push_dummy_call): Likewise.
949 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
950 * v850-tdep.c (v850_push_dummy_call): Likewise.
951 * vax-tdep.c (vax_push_dummy_call): Likewise.
952 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
953 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
954
955 2018-11-16 Alan Hayward <alan.hayward@arm.com>
956
957 * gdbarch.sh (enum function_call_return_method): Add enum.
958 * gdbarch.h: Regenerate.
959 * infcall.c (call_function_by_hand_dummy): Replace vars with enum.
960
961 2018-11-15 Joel Brobecker <brobecker@adacore.com>
962
963 * unittests/copy_bitwise-selftests.c: New file.
964 * utils.c (selftests::bits_to_str, selftests::check_copy_bitwise)
965 (selftests::copy_bitwise_tests): Delete, moving this code to
966 unittests/copy_bitwise-selftests.c instead.
967 (_initialize_utils): Do not register copy_bitwise tests.
968 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
969 unittests/copy_bitwise-selftests.c.
970
971 2018-11-14 Joel Brobecker <brobecker@adacore.com>
972
973 * ada-lang.c (move_bits): Delete. Update all callers to use
974 copy_bitwise instead.
975 * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str)
976 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
977 Move from here to utils.c.
978 (_initialize_dwarf2loc): Remove call to register copy_bitwise
979 selftests.
980 * utils.h (copy_bitwise): Add declaration.
981 * utils.c (copy_bitwise, bits_to_str::bits_to_str)
982 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
983 Moved here from dwarf2loc.c.
984 (_initialize_utils): Register copy_bitwise selftests.
985
986 2018-11-14 Jim Wilson <jimw@sifive.com>
987
988 * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed.
989 (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment,
990 then increment next_regnum if odd.
991 (riscv_arg_location): New arg is_unnamed. Set ainfo->is_unnamed.
992 (riscv_push_dummy_call): New local ftype. Call check_typedef to set
993 function type. Pass new arg to riscv_arg_location based on function
994 type.
995 (riscv_return_value): Pass new arg to riscv_arg_location.
996
997 * riscv-tdep.c (BIGGEST_ALIGNMENT): New.
998 (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min
999 of TYPE_LENGTH and BIGGEST_ALIGNMENT.
1000
1001 * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when
1002 setting len. New local align, set to max of arg align and xlen,
1003 and pass to first riscv_assign_stack_location call.
1004
1005 2018-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1006
1007 * skip.c (complete_skip_number): New function.
1008 (_initialize_step_skip): Add completers to some skip commands.
1009
1010 2018-11-09 Tom Tromey <tom@tromey.com>
1011
1012 * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC.
1013 (struct remote_g_packet_data): Derive from allocate_on_obstack.
1014 <guesses>: Now a std::vector.
1015 (remote_g_packet_data_init, register_remote_g_packet_guess):
1016 Update.
1017 (remote_read_description_p): Update. Return bool.
1018 (remote_target::read_description): Update.
1019 (struct remote_g_packet_guess): Add constructor.
1020
1021 2018-11-09 Tom Tromey <tom@tromey.com>
1022
1023 * common/scoped_fd.h (class scoped_fd): Add move constructor and
1024 move assignment operator.
1025 * psymtab.c (psymtab_to_fullname): Update.
1026 * source.h (open_source_file): Return scoped_fd.
1027 (find_and_open_source): Likewise.
1028 * source.c (open_source_file): Return scoped_fd.
1029 (get_filename_and_charpos): Update.
1030 (print_source_lines_base): Update. Use scoped_fd::to_file.
1031 (forward_search_command): Likewise.
1032 (reverse_search_command): Likewise.
1033 (find_and_open_source): Return scoped_fd.
1034 * tui/tui-source.c (tui_set_source_content): Update. Use
1035 gdb_file_up.
1036
1037 2018-11-09 John Baldwin <jhb@FreeBSD.org>
1038
1039 * minsyms.c (minimal_symbol_reader::install): Fix unsigned
1040 overflow.
1041
1042 2018-11-09 Hafiz Abid Qadeer <abidh@codesourcery.com>
1043
1044 * configure: Regenerate.
1045
1046 2018-11-09 Tom de Vries <tdevries@suse.de>
1047
1048 * symtab.c (symbol_set_names): Call symbol_find_demangled_name
1049 unconditionally, to set the language of the symbol. Manage freeing
1050 returned pointer using gdb::unique_xmalloc_ptr.
1051
1052 2018-11-08 Tom Tromey <tom@tromey.com>
1053
1054 * record.c (require_record_target): Upper-case "<TAB>".
1055
1056 2018-11-08 Tom Tromey <tom@tromey.com>
1057
1058 * python/lib/gdb/command/pretty_printers.py
1059 (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
1060
1061 2018-11-08 Tom Tromey <tom@tromey.com>
1062
1063 PR gdb/23555:
1064 PR gdb/23838:
1065 * target.h (target_supports_terminal_ours): Return bool.
1066 * target.c (target_supports_terminal_ours): Handle case where
1067 current_top_target returns nullptr. Return bool.
1068
1069 2018-11-08 Joel Brobecker <brobecker@adacore.com>
1070
1071 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1):
1072 return the correct count for potential HFAs.
1073
1074 2018-11-08 Jan Beulich <jbeulich@suse.com>
1075
1076 * i387-tdep.c (i387_supply_xsave): Split handling of
1077 X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
1078 (i387_collect_xsave): Likewise.
1079
1080 2018-11-08 Andrew Burgess <andrew.burgess@embecosm.com>
1081
1082 * riscv-tdep.c (riscv_insn::decode): Update header comment.
1083 (riscv_frame_this_id): Catch errors thrown while building the
1084 frame cache, leave the frame id as the default, which is the outer
1085 frame id.
1086
1087 2018-11-07 Joel Brobecker <brobecker@adacore.com>
1088
1089 * ada-lang.c (read_atcb): Only set task_info->called_task if
1090 task_info->state == Entry_Caller_Sleep.
1091 (print_ada_task_info): Do not check task_info->state before
1092 checking task_info->called_task.
1093 (info_task): Likewise.
1094
1095 2018-11-07 Joel Brobecker <brobecker@adacore.com>
1096
1097 * ada-tasks.c (read_atcb): Clear task_info before computing
1098 the value of each of its fields.
1099
1100 2018-11-07 Andrew Burgess <andrew.burgess@embecosm.com>
1101
1102 * dwarf2read.c (dwarf2_init_integer_type): Check for name being
1103 NULL before dereferencing it.
1104
1105 2018-11-06 Tom de Vries <tdevries@suse.de>
1106
1107 * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
1108 program headers.
1109
1110 2018-11-06 Max Filippov <jcmvbkbc@gmail.com>
1111
1112 * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
1113 so that it applies to uclinux as well.
1114
1115 2018-11-06 Marius Muench <marius.muench@eurecom.fr>
1116
1117 * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
1118 when on AAPCS.
1119
1120 2018-11-06 John Baldwin <jhb@FreeBSD.org>
1121
1122 * riscv-fbsd-nat.c (getregs_supplies): Return true for
1123 RISCV_CSR_SSTATUS_REGNUM.
1124
1125 2018-11-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1126
1127 * source.c (open_source_file): Fix leak by transferring the
1128 current s->fullname to the unique_xmalloc_ptr fullname given
1129 to find_and_open_source.
1130
1131 2018-11-04 Tom Tromey <tom@tromey.com>
1132
1133 * varobj.c (install_default_visualizer): Update.
1134 * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
1135 Return gdbpy_ref.
1136 * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
1137 (find_pretty_printer_from_progspace)
1138 (find_pretty_printer_from_gdb, find_pretty_printer)
1139 (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
1140 (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
1141 Update.
1142
1143 2018-11-04 Tom Tromey <tom@tromey.com>
1144
1145 * python/python.c (gdbpy_parameter_value): Update.
1146 * python/python-internal.h (python_string_to_unicode)
1147 (python_string_to_target_python_string)
1148 (host_string_to_python_string): Return gdbpy_ref.
1149 * python/py-utils.c (python_string_to_unicode)
1150 (unicode_to_encoded_python_string)
1151 (unicode_to_target_python_string)
1152 (python_string_to_target_string)
1153 (python_string_to_target_python_string): Return gdbpy_ref.
1154 (python_string_to_host_string): Update.
1155 (host_string_to_python_string): Return gdbpy_ref.
1156 * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
1157 (stpy_fullname): Update.
1158 * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
1159 Update.
1160 * python/py-prettyprint.c (print_string_repr): Update.
1161 * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
1162 (objfpy_get_build_id): Update.
1163 * python/py-breakpoint.c (bppy_get_location)
1164 (bppy_get_expression, bppy_get_condition, bppy_get_commands):
1165 Update.
1166
1167 2018-11-04 Tom Tromey <tom@tromey.com>
1168
1169 * python/python-internal.h (gdb_py_object_from_longest)
1170 (gdb_py_object_from_ulongest): Return gdbpy_ref.
1171 * python/py-value.c (valpy_int): Update.
1172 * python/py-utils.c (gdb_py_object_from_longest): Return
1173 gdbpy_ref.
1174 (gdb_py_object_from_ulongest): Likewise.
1175 * python/py-type.c (typy_get_alignof): Update.
1176 * python/py-linetable.c (ltpy_get_all_source_lines)
1177 (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
1178 * python/py-block.c (blpy_get_start, blpy_get_end): Update.
1179
1180 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1181
1182 * ada-lang.c (_initialize_ada_language): Fix typo.
1183
1184 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1185
1186 * language.c (type): Remove.
1187 (_initialize_language): Remove assignment to type.
1188
1189 2018-11-02 Joel Brobecker <brobecker@adacore.com>
1190
1191 * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
1192 * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
1193 (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
1194 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
1195 (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
1196 (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
1197 * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
1198 and aarch64-ravenscar-thread.o.
1199 * NEWS: Add entry documenting Ravenscar tasking support
1200 on AArch64 ELF.
1201
1202 2018-11-02 Matthew Malcomson <matthew.malcomson@arm.com>
1203
1204 * symtab.c (info_functions_command): Initialize quiet flag.
1205 * stack.c (info_args_command): Likewise.
1206
1207 2018-11-01 Jim Wilson <jimw@sifive.com>
1208
1209 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
1210 Set if pcptr if unaligned. Return 2 if unaligned_p true. Update
1211 debugging messages.
1212
1213 2018-11-01 Joel Brobecker <brobecker@adacore.com>
1214
1215 * ada-lang.c (ada_watch_location_expression): New function.
1216 (ada_language_defn): Set la_watch_location_expression to
1217 ada_watch_location_expression.
1218
1219 2018-11-01 Joel Brobecker <brobecker@adacore.com>
1220
1221 * print-utils.c (int_string): Remove unnecessary trailing spaces.
1222
1223 2018-11-01 Joel Brobecker <brobecker@adacore.com>
1224
1225 * rs6000-tdep.c (skip_prologue): Fix potential negative left
1226 shifting.
1227
1228 2018-11-01 Jerome Guitton <guitton@adacore.com>
1229 Joel Brobecker <brobecker@adacore.com>
1230
1231 * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
1232 * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
1233 * arm-pikeos-tdep.c: New file.
1234 * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
1235 embedded system.
1236 * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
1237
1238 2018-11-01 Simon Marchi <simon.marchi@ericsson.com>
1239
1240 * common/pathstuff.c (get_standard_temp_dir): New.
1241 * common/pathstuff.h (get_standard_temp_dir): New.
1242 * config.in: Re-generate.
1243 * configure: Re-generate.
1244 * configure.ac: Don't check for mkdtemp.
1245 * gnulib/aclocal-m4-deps.mk: Re-generate.
1246 * gnulib/aclocal.m4: Re-generate.
1247 * gnulib/config.in: Re-generate.
1248 * gnulib/configure: Re-generate.
1249 * gnulib/import/Makefile.am: Re-generate.
1250 * gnulib/import/Makefile.in: Re-generate.
1251 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1252 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1253 * gnulib/import/m4/mkdtemp.m4: New file.
1254 * gnulib/import/mkdtemp.c: New file.
1255 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
1256 Add mkdtemp module.
1257 * unittests/mkdir-recursive-selftests.c (test): Use
1258 get_standard_temp_dir.
1259 (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
1260 ifdef.
1261 * compile/compile.c (get_compile_file_tempdir): Likewise.
1262
1263 2018-11-01 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1264
1265 * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1266 (SIG_FRAME_LR_OFFSET64): New define.
1267 (SIG_FRAME_FP_OFFSET64): New define.
1268 (aix_sighandle_frame_cache): New Function.
1269 (aix_sighandle_frame_this_id): New Function.
1270 (aix_sighandle_frame_prev_register): New Function.
1271 (aix_sighandle_frame_sniffer): New Function.
1272 (aix_sighandle_frame_unwind): New global variable.
1273 (rs6000_aix_init_osabi): Install new frame unwinder.
1274
1275 2018-10-31 Sergio Durigan Junior <sergiodj@redhat.com>
1276
1277 PR gdb/23835
1278 * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
1279 already defined.
1280
1281 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1282
1283 * ppc-linux-nat.c: Include nat/linux-ptrace.h.
1284
1285 2018-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1286
1287 * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
1288 (producer_is_icc): New function.
1289 (check_producer): Set producer_is_icc field on dwarf2_cu.
1290 (dwarf2_init_integer_type): New function.
1291 (read_base_type): Call dwarf2_init_integer_type instead of
1292 init_integer_type in all cases.
1293 (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
1294 * valprint.c (maybe_negate_by_bytes): Add an assertion that the
1295 LEN is greater than 0.
1296
1297 2018-10-30 Tom Tromey <tom@tromey.com>
1298
1299 * main.c (captured_main_1): Check return value of bfd_init.
1300
1301 2018-10-29 Sergio Durigan Junior <sergiodj@redhat.com>
1302
1303 * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
1304 Adjust comments.
1305
1306 2018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1307
1308 * procfs.c: Include common/pathstuff.h.
1309
1310 2018-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
1311
1312 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1313 Add missing braces. No functional change.
1314
1315 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1316
1317 * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
1318 to report a bad option and fix indentation.
1319 * demangle.c (demangle_command): Use report_unrecognized_option_error
1320 to report a bad option and correctly report the bad option.
1321
1322 2018-10-27 Tom Tromey <tom@tromey.com>
1323
1324 PR cli/23364:
1325 * darwin-nat.c (copied_shell): New global.
1326 (may_have_sip): Rename from should_disable_startup_with_shell.
1327 (copy_shell_to_cache, maybe_cache_shell): New functions.
1328 (darwin_nat_target::create_inferior): Update. Use
1329 copied_shell.
1330
1331 2018-10-27 Tom Tromey <tom@tromey.com>
1332
1333 * unittests/scoped_fd-selftests.c (test_to_file): New function.
1334 (run_tests): Call test_to_file.
1335 * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
1336 temporary files.
1337 * common/scoped_fd.h (scoped_fd::to_file): New method.
1338
1339 2018-10-27 Tom Tromey <tom@tromey.com>
1340
1341 * unittests/scoped_mmap-selftests.c (test_normal): Use
1342 gdb_mkostemp_cloexec.
1343 * unittests/scoped_fd-selftests.c (test_destroy, test_release):
1344 Use gdb_mkostemp_cloexec.
1345 * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
1346 gnulib/config.in, gnulib/configure,
1347 gnulib/import/Makefile.am, gnulib/import/Makefile.in,
1348 gnulib/import/m4/gnulib-cache.m4,
1349 gnulib/import/m4/gnulib-comp.m4: Update.
1350 * gnulib/import/m4/mkostemp.m4: New file.
1351 * gnulib/import/m4/mkstemp.m4: Remove.
1352 * gnulib/import/mkostemp.c: New file.
1353 * gnulib/import/mkstemp.m4: Remove.
1354 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
1355 mkstemp, add mkostemp. Apply new patch.
1356 * gnulib/import/stdlib.in.h: Apply patch.
1357 * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
1358 New file.
1359 * dwarf-index-write.c (write_psymtabs_to_index): Use
1360 gdb_mkostemp_cloexec.
1361 * common/filestuff.h (gdb_mkostemp_cloexec): New function.
1362
1363 2018-10-27 Tom Tromey <tom@tromey.com>
1364
1365 * unittests/mkdir-recursive-selftests.c: New file.
1366 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1367 unittests/mkdir-recursive-selftests.c.
1368 * dwarf-index-cache.c (mkdir_recursive): Move to
1369 common/filestuff.c.
1370 (index_cache::store): Check return value of mkdir_recursive.
1371 (create_dir_and_check, test_mkdir_recursive): Move to new file.
1372 (_initialize_index_cache): Don't register test.
1373 * common/filestuff.h (mkdir_recursive): Declare.
1374 * common/filestuff.c (mkdir_recursive): Move from
1375 dwarf-index-cache.c. Return bool.
1376
1377 2018-10-27 Tom Tromey <tom@tromey.com>
1378
1379 * dwarf-index-write.c (write_psymtabs_to_index): Move
1380 make_temp_filename to common/pathstuff.c.
1381 * common/pathstuff.h (make_temp_filename): Declare.
1382 * common/pathstuff.c (make_temp_filename): New function, moved
1383 from dwarf-index-write.c.
1384
1385 2018-10-27 Tom Tromey <tom@tromey.com>
1386
1387 * procfs.c (procfs_target::create_inferior): Use get_shell.
1388 * cli/cli-cmds.c (shell_escape): Use get_shell.
1389 * windows-nat.c (windows_nat_target::create_inferior): Use
1390 get_shell.
1391 * common/pathstuff.c (get_shell): New function.
1392 * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
1393 (fork_inferior): Use get_shell.
1394 * common/pathstuff.h (get_shell): Declare.
1395
1396 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1397
1398 * NEWS: Mention changes to 'info [args|functions|locals|variables]'
1399
1400 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1401
1402 * stack.c (print_variable_and_value_data): Add preg and treg.
1403 (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
1404 and update callers.
1405 (print_frame_arg_vars): Likewise.
1406 (prepare_reg): New function.
1407 (info_locals_command): Extract info print args and use them.
1408 (info_args_command): Likewise.
1409 (_initialize_stack): Modify on-line help.
1410 * symtab.c (treg_matches_sym_type_name): New function.
1411 (search_symbols): New arg t_regexp.
1412 (symtab_symbol_info): New args quiet, regexp, t_regexp.
1413 (info_variables_command): Extract info print args and use them.
1414 (info_functions_command): Likewise.
1415 (info_types_command): Update call to symtab_symbol_info.
1416 (_initialize_symtab): Modify on-line help.
1417 * symtab.h (treg_matches_sym_type_name): New function.
1418 (search_symbols): New t_regexp arg.
1419
1420 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1421
1422 * cli-utils.c (extract_arg_maybe_quoted): New function.
1423 (extract_info_print_args): New function.
1424 (info_print_args_help): New function.
1425 (report_unrecognized_option_error): New function.
1426 * cli-utils.h (extract_arg_maybe_quoted): New function.
1427 (extract_info_print_args): New function.
1428 (info_print_args_help): New function.
1429 (report_unrecognized_option_error): New function.
1430
1431 2018-10-26 Tom Tromey <tom@tromey.com>
1432
1433 * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
1434 (compute_compunit_symtab_includes): Update.
1435 * symtab.h: (symtab_ptr): Remove typedef. Don't define a VEC.
1436 (compunit_symtab_ptr): Likewise.
1437
1438 2018-10-26 John Baldwin <jhb@FreeBSD.org>
1439
1440 * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
1441 default_print_auxv_entry for specific tag values.
1442
1443 2018-10-26 John Baldwin <jhb@FreeBSD.org>
1444
1445 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
1446
1447 2018-10-26 Jim Wilson <jimw@sifive.com>
1448
1449 * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
1450 (riscv_linux_sigframe_init): Declare.
1451 (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
1452 (riscv_linux_sigframe): New.
1453 (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
1454 (riscv_linux_sigframe_init): Define.
1455 (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
1456
1457 * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
1458 (riscv_isa_flen): Likewise. Drop static.
1459 * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
1460 (riscv_isa_flen): Likewise. Declare.
1461
1462 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1463 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1464
1465 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
1466 (tdesc_powerpc_isa207_htm_vsx64l): Declare.
1467 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
1468 (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
1469 (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
1470 (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
1471 (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
1472 Define.
1473 (struct ppc_linux_features) <htm>: New field.
1474 (ppc_linux_no_features): Add initializer for htm field.
1475 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1476 new tdescs.
1477 * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
1478 (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
1479 (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
1480 Define if not already defined.
1481 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
1482 and rs6000/powerpc-isa207-htm-vsx64l.
1483 (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
1484 rs6000/powerpc-isa207-htm-vsx64l.xml.
1485 * features/rs6000/power-htm-spr.xml: New file.
1486 * features/rs6000/power-htm-core.xml: New file.
1487 * features/rs6000/power64-htm-core.xml: New file.
1488 * features/rs6000/power-htm-fpu.xml: New file.
1489 * features/rs6000/power-htm-altivec.xml: New file.
1490 * features/rs6000/power-htm-vsx.xml: New file.
1491 * features/rs6000/power-htm-ppr.xml: New file.
1492 * features/rs6000/power-htm-dscr.xml: New file.
1493 * features/rs6000/power-htm-tar.xml: New file.
1494 * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
1495 * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
1496 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
1497 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
1498 * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
1499 * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
1500 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1501 fetch_regset with HTM regsets.
1502 (store_register, store_ppc_registers): Call store_regset with HTM
1503 regsets.
1504 (ppc_linux_nat_target::read_description): Set htm field in the
1505 features struct if needed.
1506 * ppc-linux-tdep.c: Include
1507 features/rs6000/powerpc-isa207-htm-vsx32l.c and
1508 features/rs6000/powerpc-isa207-htm-vsx64l.c.
1509 (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
1510 (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
1511 (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
1512 (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
1513 (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
1514 (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
1515 (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
1516 (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
1517 (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
1518 (ppc32_linux_ctarregset): New globals.
1519 (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
1520 (ppc_linux_collect_core_cpgrregset): New function.
1521 (ppc_linux_iterate_over_regset_sections): Call back with the htm
1522 regsets.
1523 (ppc_linux_core_read_description): Check if the tm spr section is
1524 present and set htm in the features struct.
1525 (_initialize_ppc_linux_tdep): Call
1526 initialize_tdesc_powerpc_isa207_htm_vsx32l and
1527 initialize_tdesc_powerpc_isa207_htm_vsx64l.
1528 * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
1529 Declare.
1530 (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
1531 (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
1532 (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
1533 * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
1534 New fields.
1535 <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
1536 Likewise.
1537 <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
1538 <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
1539 (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
1540 New enum fields.
1541 <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
1542 <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
1543 <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
1544 <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
1545 <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
1546 <PPC_CTAR_REGNUM>: Likewise.
1547 (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
1548 (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
1549 * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
1550 (IS_CEFP_PSEUDOREG): Define.
1551 (rs6000_register_name): Hide the upper halves of checkpointed VSX
1552 registers. Return names for the checkpointed DFP, VSX, and EFP
1553 pseudo registers.
1554 (rs6000_pseudo_register_type): Remove initial assert and raise an
1555 internal error in the else clause instead. Return types for the
1556 checkpointed DFP, VSX, and EFP pseudo registers.
1557 (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
1558 checkpointed DFP pseudo registers.
1559 (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
1560 checkpointed VSX pseudo registers.
1561 (efp_pseudo_register_read, efp_pseudo_register_write): Rename
1562 from efpr_pseudo_register_read and
1563 efpr_pseudo_register_write. Handle checkpointed EFP pseudo
1564 registers.
1565 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
1566 Handle checkpointed DFP, VSX, and EFP registers.
1567 (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
1568 (efp_ax_pseudo_register_collect): New functions.
1569 (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
1570 register logic to new functions. Handle checkpointed DFP, VSX,
1571 and EFP pseudo registers.
1572 (rs6000_gdbarch_init): Look for and validate the htm features.
1573 Include checkpointed DFP, VSX and EFP pseudo-registers.
1574 * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
1575 HTM registers.
1576
1577 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1578
1579 * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
1580 without altivec or fpu.
1581
1582 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1583 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1584
1585 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
1586 (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
1587 * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
1588 Define if not already defined.
1589 * features/rs6000/power-ebb.xml: New file.
1590 * features/rs6000/power-linux-pmu.xml: New file.
1591 * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
1592 features.
1593 * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
1594 * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
1595 * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
1596 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
1597 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
1598 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1599 fetch_regset with ebb and pmu regsets.
1600 (store_register, store_ppc_registers): Call store_regset with ebb
1601 and pmu regsets.
1602 (ppc_linux_nat_target::read_description): Set isa207 field in the
1603 features struct if ebb and pmu are avaiable.
1604 * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
1605 (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
1606 (ppc_linux_iterate_over_regset_sections): Call back with the ebb
1607 and pmu regsets.
1608 (ppc_linux_core_read_description): Check if the pmu section is
1609 present and set isa207 in the features struct.
1610 * ppc-linux-tdep.h (ppc32_linux_ebbregset)
1611 (ppc32_linux_pmuregset): Declare.
1612 * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
1613 <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
1614 <ppc_sier_regnum>: New field.
1615 (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
1616 New enum values.
1617 <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
1618 values.
1619 <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
1620 (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
1621 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
1622 ebb and pmu features.
1623
1624 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1625 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1626
1627 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
1628 (tdesc_powerpc_isa207_vsx64l): Declare.
1629 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
1630 (struct ppc_linux_features) <isa207>: New field.
1631 (ppc_linux_no_features): Add initializer for isa207 field.
1632 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1633 new tdescs.
1634 * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
1635 (NT_PPC_TAR): Define if not already defined.
1636 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
1637 rs6000/powerpc-isa207-vsx64l.
1638 (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
1639 rs6000/powerpc-isa207-vsx64l.xml.
1640 * features/rs6000/power-tar.xml: New file.
1641 * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
1642 * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
1643 * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
1644 * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
1645 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
1646 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
1647 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1648 fetch_regset with the TAR regset.
1649 (store_register, store_ppc_registers): Call store_regset with the
1650 TAR regset.
1651 (ppc_linux_nat_target::read_description): Set isa207 field in the
1652 features struct if needed.
1653 * ppc-linux-tdep.c: Include
1654 features/rs6000/powerpc-isa207-vsx32l.c and
1655 features/rs6000/powerpc-isa207-vsx64l.c.
1656 (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
1657 (ppc_linux_iterate_over_regset_sections): Call back with the tar
1658 regset.
1659 (ppc_linux_core_read_description): Check if the tar section is
1660 present and set isa207 in the features struct.
1661 (_initialize_ppc_linux_tdep): Call
1662 initialize_tdesc_powerpc_isa207_vsx32l and
1663 initialize_tdesc_powerpc_isa207_vsx64l.
1664 * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
1665 * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
1666 (enum) <PPC_TAR_REGNUM>: New enum value.
1667 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
1668 feature.
1669 (ppc_process_record_op31): Record changes to TAR.
1670
1671 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1672 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1673
1674 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
1675 (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
1676 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
1677 (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
1678 (struct ppc_linux_features) <ppr_dscr>: New field.
1679 (ppc_linux_no_features): Add initializer for ppr_dscr field.
1680 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1681 new tdescs.
1682 * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
1683 Define if not already defined.
1684 * features/Makefile (WHICH): Add
1685 rs6000/powerpc-isa205-ppr-dscr-vsx32l and
1686 rs6000/powerpc-isa205-ppr-dscr-vsx64l.
1687 (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
1688 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
1689 * features/rs6000/power-dscr.xml: New file.
1690 * features/rs6000/power-ppr.xml: New file.
1691 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
1692 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
1693 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
1694 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
1695 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
1696 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
1697 * ppc-linux-nat.c: Include <sys/uio.h>.
1698 (fetch_regset, store_regset, check_regset): New functions.
1699 (fetch_register, fetch_ppc_registers): Call fetch_regset with
1700 DSCR and PPR regsets.
1701 (store_register, store_ppc_registers): Call store_regset with
1702 DSCR and PPR regsets.
1703 (ppc_linux_get_hwcap2): New function.
1704 (ppc_linux_nat_target::read_description): Call
1705 ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
1706 features struct if needed.
1707 * ppc-linux-tdep.c: Include
1708 features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
1709 features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
1710 (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
1711 (ppc32_linux_dscrregset): New globals.
1712 (ppc_linux_iterate_over_regset_sections): Call back with the ppr
1713 and dscr regsets.
1714 (ppc_linux_core_read_description): Check if the ppr and dscr
1715 sections are present and set ppr_dscr in the features struct.
1716 (_initialize_ppc_linux_tdep): Call
1717 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
1718 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
1719 * ppc-linux-tdep.h (ppc32_linux_pprregset)
1720 (ppc32_linux_dscrregset): Declare.
1721 * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
1722 <ppc_dscr_regnum>: New field.
1723 (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
1724 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
1725 and dscr features.
1726 (ppc_process_record_op31): Record changes to PPR and DSCR.
1727
1728 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1729
1730 * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
1731 second initializer line for the have_* variables. Initialize
1732 have_fpu to 0 instead of 1.
1733
1734 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1735
1736 * arch/ppc-linux-common.c (ppc_linux_match_description):
1737 Parenthesize tdesc assignements and indent them properly.
1738
1739 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1740
1741 * ppc-linux-nat.c (fetch_register): Change if statement to else
1742 if.
1743 (store_register): Likewise.
1744
1745 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1746
1747 * rs6000-tdep.c: Remove reggroups.h include.
1748 (rs6000_pseudo_register_reggroup_p): Remove.
1749 (rs6000_gdbarch_init): Remove call to
1750 set_tdesc_pseudo_register_reggroup_p.
1751
1752 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1753
1754 * reggroups.c (default_register_reggroup_p): Return true for
1755 decfloat registers and float_reggroup.
1756
1757 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1758
1759 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
1760 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
1761 ppc_linux_collect_vrregset by regcache_collect_regset.
1762
1763 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1764
1765 * linux-tdep.c (linux_collect_regset_section_cb): Use
1766 std::vector<gdb_byte> instead of char * and malloc for buf.
1767 Remove xfree.
1768
1769 2018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1770
1771 * xcoffread.c (read_xcoff_symtab): Pass deduced language to
1772 symtab_start instead of always using language_unknown.
1773
1774 2018-10-26 Andrew Burgess <andrew.burgess@embecosm.com>
1775
1776 * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
1777 READ_P parameter, catch and ignore register access errors from
1778 either the old or new MISA location.
1779 (riscv_has_feature): Update call to riscv_read_misa_reg.
1780
1781 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1782
1783 * python/py-function.c (convert_values_to_python): Return
1784 gdbpy_ref<>. Add header comment.
1785 (fnpy_call): Adjust.
1786
1787 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1788
1789 * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
1790 (cmdpy_completer_handle_brkchars): Adjust.
1791 (cmdpy_completer): Adjust.
1792
1793 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1794
1795 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1796 Pass correct regnum to raw_supply_zeroed.
1797
1798 2018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com>
1799
1800 * regcache.c (cooked_read_test): Add CSKY to the list of
1801 architectures with a save_reggroup
1802
1803 2018-10-23 Simon Marchi <simon.marchi@polymtl.ca>
1804
1805 PR gdb/23368
1806 * infrun.c (follow_exec): In the follow_exec_mode_new case,
1807 transfer terminal state from old new new inferior.
1808 * terminal.h (swap_terminal_info): New function.
1809 * inflow.c (swap_terminal_info): New function.
1810
1811 2018-10-23 Tom Tromey <tom@tromey.com>
1812
1813 * record-btrace.c (get_thread_current_frame_id): Rename from
1814 get_thread_current_frame. Return a frame_id.
1815 (record_btrace_start_replaying): Update.
1816
1817 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1818
1819 * riscv-tdep.c (riscv_register_name): Use the user-friendly names
1820 for CSRs.
1821
1822 2018-10-23 Joel Brobecker <brobecker@adacore.com>
1823
1824 * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
1825 have_nonsteppable_watchpoint attribute to 1.
1826
1827 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1828
1829 * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
1830 register names.
1831 (struct register_alias): Rename to...
1832 (struct riscv_register_alias): ...this, and update comment.
1833 (riscv_register_aliases): Update type, and alias names. Remove
1834 CSR names from this list.
1835 (riscv_register_name): Use riscv_gdb_reg_names for int and float
1836 register names. Add an extra assertion.
1837 (riscv_is_regnum_a_named_csr): New function.
1838 (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
1839
1840 2018-10-23 John Darrington <john@darrington.wattle.id.au>
1841
1842 * configure.tgt: Add configuration for s12z.
1843 * s12z-tdep.c: New file.
1844 * NEWS: Mention new target.
1845
1846 2018-10-22 Jim Wilson <jimw@sifive.com>
1847
1848 * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
1849 FP reg smaller than FP reg size, and fill with -1 instead of 0.
1850
1851 * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
1852 (riscv_register_type): Use them.
1853 (riscv_print_one_register_info): Handle union of floats same as float.
1854 * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
1855 riscv_fpreg_q_type fields.
1856
1857 2018-10-21 Simon Marchi <simon.marchi@ericsson.com>
1858
1859 * gdbarch.sh (gdbarch_num_cooked_regs): New.
1860 * gdbarch.h: Re-generate.
1861 * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
1862 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1863 * eval.c (evaluate_subexp_standard): Likewise.
1864 * findvar.c (value_of_register): Likewise.
1865 (value_of_register_lazy): Likewise.
1866 (address_from_register): Likewise.
1867 * frame.c (get_frame_register_bytes): Likewise.
1868 * gdbarch-selftests.c (register_to_value_test): Likewise.
1869 * h8300-tdep.c (h8300_register_type): Likewise.
1870 * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
1871 (i386_svr4_reg_to_regnum): Likewise.
1872 * infcmd.c (default_print_registers_info): Likewise.
1873 (registers_info): Likewise.
1874 (print_vector_info): Likewise.
1875 (default_print_float_info): Likewise.
1876 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1877 * mdebugread.c (mdebug_reg_to_regnum): Likewise.
1878 * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
1879 (mi_cmd_data_list_changed_registers): Likewise.
1880 (mi_cmd_data_list_register_values): Likewise.
1881 (mi_cmd_data_write_register_values): Likewise.
1882 (mi_cmd_trace_frame_collected): Likewise.
1883 * mips-tdep.c (print_gp_register_row): Likewise.
1884 (mips_print_registers_info): Likewise.
1885 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
1886 * regcache.c (init_regcache_descr): Likewise.
1887 (register_size): Likewise.
1888 (register_dump::dump): Likewise.
1889 (cooked_read_test): Likewise.
1890 (cooked_write_test): Likewise.
1891 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1892 (rs6000_gdbarch_init): Likewise.
1893 * stabsread.c (stab_reg_to_regnum): Likewise.
1894 * stack.c (info_frame_command): Likewise.
1895 * target-descriptions.c (tdesc_register_name): Likewise.
1896 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1897 * tui/tui-regs.c (tui_show_register_group): Likewise.
1898 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1899 (user_reg_map_regnum_to_name): Likewise.
1900 (value_of_user_reg): Likewise.
1901 (maintenance_print_user_registers): Likewise.
1902 * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
1903 (xtensa_register_name): Likewise.
1904 (xtensa_register_type): Likewise.
1905 (xtensa_reg_to_regnum): Likewise.
1906 (xtensa_pseudo_register_read): Likewise.
1907 (xtensa_pseudo_register_write): Likewise.
1908
1909 2018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1910
1911 * amd64-tdep.c (amd64_pseudo_register_read_value): Use
1912 correctly-sized buffer with raw_read.
1913 (amd64_pseudo_register_write): Use correctly-sized buffer for
1914 raw_read/raw_write.
1915
1916 2018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1917
1918 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
1919 in add_prefix_cmd of set print type.
1920
1921 2018-10-19 Tom Tromey <tom@tromey.com>
1922
1923 PR tui/18388:
1924 * NEWS: Mention tabset deprecation.
1925 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
1926 (update_tab_width): New function.
1927 (tui_set_tab_width, tui_show_tab_width): New functions.
1928 (tui_set_tab_width_command): Use update_tab_width.
1929 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
1930 Add new "set tui tab-width" command.
1931 * tui/tui-source.c (tui_set_source_content): Update.
1932 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1933 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
1934 Don't declare.
1935 (tui_tab_width): Declare.
1936 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
1937 (tui_set_default_tab_len): Remove.
1938
1939 2018-10-19 Tom Tromey <tom@tromey.com>
1940
1941 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
1942 (key_is_backspace, tui_getc): Don't declare.
1943 * tui/tui-io.c (key_is_start_sequence): Now static.
1944 (key_is_end_sequence, key_is_backspace): Remove.
1945 (tui_getc): Now static.
1946
1947 2018-10-19 Tom Tromey <tom@tromey.com>
1948
1949 * symfile.c (reread_symbols): Clear "static_links".
1950
1951 2018-10-19 Alan Hayward <alan.hayward@arm.com>
1952
1953 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
1954 define.
1955 (aarch64_linux_sigframe_init): Extra boundary checks.
1956
1957 2018-10-19 Andreas Arnez <arnez@linux.ibm.com>
1958
1959 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
1960 the possibly non-existent tdesc type 'vec128', but the type of raw
1961 register v16 instead.
1962
1963 2018-10-19 Gary Benson <gbenson@redhat.com>
1964
1965 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
1966
1967 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
1968
1969 PR cli/23785
1970 * cli/cli-dump.c (restore_binary_file): Check if "file" is
1971 NULL.
1972
1973 2018-10-17 Paul Koning <paul_koning@dell.com>
1974
1975 * charset.c (convert_between_encodings): Fix unsigned overflow.
1976
1977 2018-10-17 John Baldwin <jhb@FreeBSD.org>
1978
1979 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
1980 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
1981 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
1982 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1983 New functions.
1984 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
1985 and fbsd_info_proc_mappings_header.
1986 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
1987 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1988 New.
1989
1990 2018-10-17 Joel Brobecker <brobecker@adacore.com>
1991
1992 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
1993 Solaris Maintainer.
1994
1995 2018-10-15 Tom Tromey <tom@tromey.com>
1996
1997 * tui/tui.c (strcat_to_buf): Remove casts.
1998 * tui/tui-winsource.c (tui_show_source_line)
1999 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
2000 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
2001 * tui/tui-windata.c (tui_first_data_item_displayed)
2002 (tui_delete_data_content_windows, tui_erase_data_content)
2003 (tui_display_all_data, tui_display_data_from)
2004 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
2005 * tui/tui-win.c (tui_set_win_height)
2006 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
2007 casts.
2008 * tui/tui-win.c (tui_resize_all): Remove casts.
2009 (tui_scroll_backward_command, tui_set_focus)
2010 (tui_set_tab_width_command): Likewise.
2011 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
2012 * tui/tui-regs.c (tui_show_register_group): Remove cast.
2013 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
2014 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
2015 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
2016 Remove casts.
2017
2018 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
2019
2020 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
2021 AArch64/ARM maintainer.
2022
2023 2018-10-11 Gary Benson <gbenson@redhat.com>
2024
2025 * interps.h (interp::m_name): Make private and mutable.
2026 * interps.c (interp::~interp): Free m_name.
2027
2028 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2029 Simon Marchi <simark@simark.ca>
2030
2031 * README (`configure' options): Add documentation for new
2032 "--enable-unit-tests" option.
2033 * acinclude.m4: Include "selftest.m4".
2034 * configure: Regenerate.
2035 * configure.ac: Use "GDB_AC_SELFTEST".
2036 * maint.c (maintenance_selftest): Update message informing
2037 that selftests have been disabled.
2038 (maintenance_info_selftests): Likewise.
2039 * selftest.m4: New file.
2040
2041 2018-10-10 Gary Benson <gbenson@redhat.com>
2042
2043 * remote.c (remote_target::remote_send_printf): Add
2044 missing va_end found by Coverity.
2045
2046 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
2047
2048 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
2049
2050 2018-10-09 Tom Tromey <tom@tromey.com>
2051
2052 * configure: Rebuild.
2053 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
2054 * NEWS: Update --enable-ubsan documentation.
2055
2056 2018-10-09 Gary Benson <gbenson@redhat.com>
2057
2058 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
2059 found by Coverity.
2060
2061 2018-10-08 Tom Tromey <tom@tromey.com>
2062
2063 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
2064 variable.
2065 (riscv_fbsd_init_abi): Likewise.
2066
2067 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
2068 * valops.c (value_struct_elt_for_reference): Rename local variable
2069 to work around the shadowing a previous local warning.
2070
2071 2018-10-08 John Baldwin <jhb@FreeBSD.org>
2072
2073 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
2074 * NEWS: Mention new FreeBSD/riscv native configuration.
2075 * configure.host: Add riscv*-*-freebsd*.
2076 * configure.nat: Likewise.
2077 * riscv-fbsd-nat.c: New file.
2078
2079 2018-10-08 John Baldwin <jhb@FreeBSD.org>
2080
2081 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
2082 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
2083 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
2084 * NEWS: Mention new FreeBSD/riscv target.
2085 * configure.tgt: Add riscv*-*-freebsd*.
2086 * riscv-fbsd-tdep.c: New file.
2087 * riscv-fbsd-tdep.h: New file.
2088
2089 2018-10-08 John Baldwin <jhb@FreeBSD.org>
2090
2091 * regcache.h (struct regcache_map_entry): Note that this type can
2092 be used with traditional frame caches.
2093 * trad-frame.c (trad_frame_set_reg_regmap): New.
2094 * trad-frame.h (trad_frame_set_reg_regmap): New.
2095
2096 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
2097
2098 PR c++/16841
2099 * valops.c (get_virtual_base_offset): New function.
2100 (value_struct_elt_for_reference): Use it to get virtual base offset
2101 and add it in calculating class member address.
2102
2103 2018-10-08 John Darrington <john@darrington.wattle.id.au>
2104
2105 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
2106 (check_producer): Check if the producer is codewarrior.
2107 (producer_is_codewarrior): New function.
2108 (lnp_state_machine::record_line): Ignore is_stmt flag for records
2109 produced by codewarrior.
2110 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
2111
2112 2018-10-06 Tom Tromey <tom@tromey.com>
2113
2114 PR python/19399:
2115 * python/py-inferior.c: Add "architecture" entry.
2116 (infpy_architecture): New function.
2117
2118 2018-10-06 Tom Tromey <tom@tromey.com>
2119
2120 PR python/21765:
2121 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
2122 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
2123 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
2124 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
2125
2126 2018-10-06 Tom Tromey <tom@tromey.com>
2127
2128 PR build/17077:
2129 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
2130 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
2131 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
2132 #include.
2133
2134 2018-10-06 Tom Tromey <tom@tromey.com>
2135
2136 * python/py-breakpoint.c (bppy_get_location): Handle a
2137 bp_breakpoint without a location.
2138
2139 2018-10-06 Tom Tromey <tom@tromey.com>
2140
2141 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
2142 (_RegEx): Reformat help text.
2143 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
2144 (AnyCallerIs, AnyCallerMatches): Reformat help text.
2145 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
2146 text.
2147 * python/lib/gdb/command/xmethods.py (InfoXMethod)
2148 (EnableXMethod, DisableXMethod): Remove help indentation.
2149 Capitalize meta-syntactic variables.
2150 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
2151 (EnableUnwinder, DisableUnwinder): Remove help indentation.
2152 Capitalize meta-syntactic variables.
2153 * python/lib/gdb/command/explore.py (ExploreCommand)
2154 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
2155 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
2156 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
2157 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
2158 Remove help indentation.
2159 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
2160 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
2161 (DisableFrameFilter, SetFrameFilterPriority)
2162 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
2163
2164 2018-10-06 Tom Tromey <tom@tromey.com>
2165
2166 PR tui/28819:
2167 * tui/tui-io.c (gdb_wgetch): New function.
2168 (tui_mld_getc, tui_getc): Use it.
2169
2170 2018-10-05 Tom Tromey <tom@tromey.com>
2171
2172 * sol-thread.c (sol_thread_target::wait): Rename inner
2173 "save_ptid".
2174
2175 2018-10-04 Tom Tromey <tom@tromey.com>
2176
2177 * configure: Rebuild.
2178 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
2179
2180 2018-10-04 Tom Tromey <tom@tromey.com>
2181
2182 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
2183 declaration of "block".
2184
2185 2018-10-04 Tom Tromey <tom@tromey.com>
2186
2187 * common/filestuff.c (fdwalk): Remove inner declaration of
2188 "result".
2189
2190 2018-10-04 Tom Tromey <tom@tromey.com>
2191
2192 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
2193 "structs_addr" and hoist declaration.
2194
2195 2018-10-04 Tom Tromey <tom@tromey.com>
2196
2197 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
2198 variable "size".
2199
2200 2018-10-04 Tom Tromey <tom@tromey.com>
2201
2202 * mdebugread.c (parse_partial_symbols): Use std::string.
2203
2204 2018-10-04 Tom Tromey <tom@tromey.com>
2205
2206 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
2207 * p-valprint.c (pascal_val_print): Split inner "i" variable.
2208 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
2209 header.
2210 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
2211 more inner scope.
2212 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
2213 * varobj.c (varobj_update): Rename inner "newobj",
2214 "type_changed".
2215 * valprint.c (generic_emit_char): Rename inner "buf".
2216 * valops.c (find_overload_match): Rename inner "temp".
2217 (value_struct_elt_for_reference): Declare "v" in more inner
2218 scope.
2219 * v850-tdep.c (v850_push_dummy_call): Rename "len".
2220 * unittests/array-view-selftests.c (run_tests): Rename inner
2221 "vec".
2222 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
2223 header.
2224 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
2225 "tsv" in more inner scope.
2226 (print_one_static_tracepoint_marker): Rename inner
2227 "tuple_emitter".
2228 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
2229 (tic6x_push_dummy_call): Don't redeclare "addr".
2230 * target-float.c: Declare "dto" lower.
2231 * symtab.c (lookup_local_symbol): Rename inner "sym".
2232 (find_pc_sect_line): Rename inner "pc".
2233 * stack.c (print_frame): Don't redeclare "gdbarch".
2234 (return_command): Rename inner "gdbarch".
2235 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
2236 "sp".
2237 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
2238 header.
2239 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
2240 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
2241 scope.
2242 * remote.c (remote_target::update_thread_list): Don't redeclare
2243 "tp".
2244 (remote_target::process_initial_stop_replies): Rename inner
2245 "thread".
2246 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
2247 (remote_target::wait_as): Don't redeclare "stop_reply".
2248 (remote_target::get_thread_local_address): Rename inner
2249 "result".
2250 (remote_target::get_tib_address): Likewise.
2251
2252 * regcache.c (cooked_read_test): Rename "regnum".
2253 * record-btrace.c (cmd_record_btrace_start): Rename inner
2254 "exception".
2255 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
2256 loop header.
2257 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
2258 header.
2259 (ppu2spu_sniffer): Rename inner "buf".
2260 * parse.c (operator_check_standard): Rename inner "type",
2261 "objfile".
2262 * p-valprint.c (pascal_val_print): Introduce new scope for
2263 "low_bound", "high_bound".
2264 * p-exp.y (yylex): Declare "i" in loop header.
2265 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
2266 Lower declaration of "s".
2267 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
2268 header.
2269 (nios2_push_dummy_call): Rename "len".
2270 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
2271 "buf".
2272 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
2273 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
2274 (linux_xfer_osdata_modules): Likewise.
2275 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
2276 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
2277 (mips_o64_push_dummy_call): Likewise.
2278 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
2279 "op".
2280 * mi/mi-main.c (list_available_thread_groups): Rename inner
2281 "tuple_emitter".
2282 (mi_cmd_data_read_memory): Rename inner "opts".
2283 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
2284 "tuple_emitter".
2285 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
2286 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
2287 more inner scope.
2288 (parse_partial_symbols): Rename inner "pst", "p", "name"
2289 * main.c (captured_main_1): Rename inner "i"s.
2290 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
2291 "oso2".
2292 * linux-tdep.c (linux_info_proc): Rename inner "filename".
2293 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
2294 * infrun.c (handle_no_resumed): Don't redeclare "thread".
2295 (handle_signal_stop): Rename inner "gdbarch".
2296 (handle_command): Declare "signum" in loop header.
2297 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
2298 "status".
2299 (examine_prologue): Rename inner "sol" and "sof".
2300 (ia64_extract_return_value): Rename inner "val". Declare another
2301 "val" in a more inner scope.
2302 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
2303 inner scope.
2304 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
2305 "except".
2306 * findvar.c (default_read_var_value): Don't redeclare "addr".
2307 * f-exp.y (yylex): Declare "i" in loop header.
2308 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
2309 Rename inner "type", "expect_type".
2310 (evaluate_subexp_for_sizeof): Rename inner "pc".
2311 * elfread.c (elf_symfile_read): Rename inner "abfd".
2312 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
2313 "bytes_read".
2314 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
2315 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
2316 (dwarf_decode_line_header): Rename inner "lh".
2317 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
2318 "offset". Declare "i" in loop header.
2319 (disassemble_dwarf_expression): Rename inner "addr_size".
2320 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
2321 inner "result".
2322 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
2323 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
2324 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
2325 "inner_list_emitter".
2326 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
2327 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
2328 declaration in a block.
2329 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
2330 * cp-valprint.c (cp_print_value_fields): Don't redeclare
2331 "obstack_final_size".
2332 * cp-support.c (inspect_type): Declare "i" in loop header.
2333 * compile/compile.c (compile_instance::insert_symbol_error):
2334 Rename inner "e".
2335 * common/agent.c (agent_run_command): Remove inner "ret"
2336 declaration.
2337 * coffread.c (coff_symfile_read): Rename inner "name".
2338 (coff_symfile_read): Rename inner "abfd".
2339 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
2340 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
2341 "high".
2342 * c-exp.y (lex_one_token): Move "len" declaration lower.
2343 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
2344 "gdbarch".
2345 (create_exception_master_breakpoint): Likewise. Don't redeclare
2346 "b".
2347 (watch_command_1): Declare "mark" later.
2348 (clear_command): Don't shadow "a" or "b".
2349 (delete_command): Rename inner "b".
2350 (delete_trace_command): Likewise.
2351 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
2352 "op".
2353 (arm_gdbarch_init): Remove inner "e_flags".
2354 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
2355 "offset" in inner blocks.
2356
2357 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
2358
2359 * dwarf-index-write.c (file_write): Don't write if the vector is
2360 empty.
2361
2362 2018-10-05 Tom de Vries <tdevries@suse.de>
2363
2364 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
2365 PyArg_ParseTuple call.
2366
2367 2018-10-05 Tom de Vries <tdevries@suse.de>
2368
2369 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
2370 PyArg_ParseTuple call.
2371
2372 2018-10-04 Joel Brobecker <brobecker@adacore.com>
2373
2374 * psymtab.c (recursively_search_psymtabs): Reformat parameters
2375 to avoid exceeding 80 characters per line limit.
2376
2377 2018-10-04 Tom Tromey <tom@tromey.com>
2378
2379 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2380 (reread_symbols): Update.
2381 * complaints.h (clear_complaints): Remove argument.
2382 * complaints.c (enum complaint_series): Remove.
2383 (series): Remove global.
2384 (complaint_internal): Update.
2385 (clear_complaints): Remove argument.
2386
2387 2018-10-04 Tom Tromey <tom@tromey.com>
2388
2389 * symfile.c (symbol_file_add_with_addrs): Do not print "no
2390 debugging symbols" message if there is a separate debug objfile.
2391
2392 2018-10-04 Tom Tromey <tom@tromey.com>
2393
2394 PR cli/19551:
2395 * symfile.c (symbol_file_add_with_addrs): Update output.
2396 * psymtab.c (require_partial_symbols): Update output.
2397
2398 2018-10-04 Tom Tromey <tom@tromey.com>
2399
2400 PR cli/22234:
2401 * complaints.c: Emit \n.
2402
2403 2018-10-04 Tom Tromey <tom@tromey.com>
2404
2405 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
2406 (separate_debug_file_exists, find_separate_debug_file)
2407 (add_symbol_file_command, reread_symbols, allocate_symtab)
2408 (allocate_compunit_symtab): Use filtered printing, not
2409 unfiltered.
2410 * psymtab.c (require_partial_symbols, dump_psymtab)
2411 (allocate_psymtab): Use filtered printing, not unfiltered.
2412
2413 2018-10-04 Tom Tromey <tom@tromey.com>
2414
2415 * complaints.c (complaint_internal): Correctly check complaint
2416 count.
2417
2418 2018-10-04 Tom Tromey <tom@tromey.com>
2419
2420 * complaints.h (struct complaints): Remove declaration.
2421 * complaints.c (clear_complaints): Remove an unused variable.
2422
2423 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2424
2425 * MAINTAINERS (Write After Approval): Add self.
2426
2427 2018-10-03 Tom Tromey <tom@tromey.com>
2428
2429 * guile/scm-value.c (gdbscm_value_to_string): Initialize
2430 "buffer_contents".
2431 * coffread.c (coff_symtab_read): Initialize "newobj".
2432
2433 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
2434
2435 * dwarf2read.c (read_func_scope): Remove struct keyword in
2436 range-based for.
2437
2438 2018-10-03 Tom Tromey <tom@tromey.com>
2439
2440 * README: Mention --enable-ubsan.
2441 * NEWS: Mention --enable-ubsan.
2442 * acinclude.m4: Include sanitize.m4.
2443 * configure: Rebuild.
2444 * configure.ac: Call AM_GDB_UBSAN.
2445 * sanitize.m4: New file.
2446
2447 2018-10-03 Tom Tromey <tom@tromey.com>
2448
2449 * expression.h (enum exp_opcode): Use uint8_t as base type.
2450 * expprint.c (op_name): Handle invalid opcodes.
2451
2452 2018-10-03 Tom Tromey <tom@tromey.com>
2453
2454 * parse.c (prefixify_expression): Add assert.
2455 (parse_exp_in_context_1): Throw exception if the expression is
2456 empty.
2457
2458 2018-10-03 Tom Tromey <tom@tromey.com>
2459
2460 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
2461
2462 2018-10-03 Tom Tromey <tom@tromey.com>
2463
2464 * c-exp.y (parse_number): Work in unsigned. Remove casts.
2465
2466 2018-10-03 Tom Tromey <tom@tromey.com>
2467
2468 * dwarf2read.c (read_subrange_type): Make "negative_mask"
2469 unsigned.
2470
2471 2018-10-03 Tom Tromey <tom@tromey.com>
2472
2473 * findvar.c (extract_integer): Do work in an unsigned type.
2474
2475 2018-10-03 Tom Tromey <tom@tromey.com>
2476
2477 * common/enum-flags.h (enum_flags::operator~): Add static assert.
2478 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
2479 base type.
2480 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
2481 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
2482 type.
2483 * c-lang.h (enum c_string_type_values): Use unsigned as base
2484 type.
2485 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
2486
2487 2018-10-03 Tom Tromey <tom@tromey.com>
2488
2489 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
2490 <~dwarf2_frame_state_reg_info>: Update.
2491 <dwarf2_frame_state_reg_info>: Update.
2492 <alloc_regs>: Add assertion. Update.
2493 <reg>: Now a std::vector.
2494 <num_regs>: Remove.
2495 <swap>: Update.
2496 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
2497 (execute_cfa_program_test, dwarf2_frame_cache): Update.
2498
2499 2018-10-03 Tom Tromey <tom@tromey.com>
2500
2501 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
2502
2503 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2504
2505 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
2506
2507 2018-10-02 Tom Tromey <tom@tromey.com>
2508
2509 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
2510
2511 2018-10-02 John Darrington <john@darrington.wattle.id.au>
2512
2513 * NEWS: Mention changed commands.
2514 * ser-uds.c: New file.
2515 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
2516 * configure: Regenerate.
2517 * Makefile.in: Add new file.
2518 * serial.c (serial_open): Check if filename is a socket
2519 and lookup the appropriate interface accordingly.
2520
2521 2018-10-01 Alan Hayward <alan.hayward@arm.com>
2522
2523 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
2524 define.
2525 (AARCH64_EXTRA_MAGIC): Likewise.
2526 (AARCH64_FPSIMD_MAGIC): Likewise.
2527 (AARCH64_SVE_MAGIC): Likewise.
2528 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
2529 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
2530 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
2531 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
2532 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
2533 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
2534 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
2535 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
2536 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
2537 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
2538 (read_aarch64_ctx): Add function.
2539 (aarch64_linux_sigframe_init): Detect FP registers.
2540
2541 2018-10-01 Alan Hayward <alan.hayward@arm.com>
2542
2543 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
2544 (AARCH64_D0_REGNUM): Likewise.
2545 (AARCH64_S0_REGNUM): Likewise.
2546 (AARCH64_H0_REGNUM): Likewise.
2547 (AARCH64_B0_REGNUM): Likewise.
2548 (AARCH64_SVE_V0_REGNUM): Likewise.
2549 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
2550 (AARCH64_D0_REGNUM): Likewise.
2551 (AARCH64_S0_REGNUM): Likewise.
2552 (AARCH64_H0_REGNUM): Likewise.
2553 (AARCH64_B0_REGNUM): Likewise.
2554 (AARCH64_SVE_V0_REGNUM): Likewise.
2555
2556 2018-10-01 Gary Benson <gbenson@redhat.com>
2557
2558 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
2559 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
2560 prfpregset_t instead of gdb_prfpregset_t.
2561 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
2562 * configure, config.in: Rebuild.
2563
2564 2018-10-01 Gary Benson <gbenson@redhat.com>
2565
2566 * common/gdb_proc_service.h: New file, factored out from...
2567 * gdb_proc_service.h: Moved common code to the above file.
2568 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
2569
2570 2018-10-01 Gary Benson <gbenson@redhat.com>
2571
2572 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
2573 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
2574
2575 2018-10-01 Gary Benson <gbenson@redhat.com>
2576
2577 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
2578 (AC_CHECK_HEADERS): Check for linux/elf.h.
2579 * configure, config.in: Rebuild.
2580 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
2581 doesn't define elf_fpregset_t.
2582
2583 2018-10-01 Gary Benson <gbenson@redhat.com>
2584
2585 * gdb_proc_service.h: Whitespace change.
2586
2587 2018-10-01 Tom Tromey <tom@tromey.com>
2588
2589 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
2590 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
2591 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
2592
2593 2018-10-01 Tom Tromey <tom@tromey.com>
2594
2595 * README: Minor change.
2596
2597 2018-09-30 Pedro Alves <palves@redhat.com>
2598
2599 * darwin-nat-info.c (darwin_debug_regions_recurse)
2600 (info_mach_exceptions_command): Remove unused local variables.
2601 * darwin-nat.c (darwin_decode_notify_message)
2602 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
2603 (darwin_stop_inferior, darwin_setup_exceptions)
2604 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
2605 (darwin_nat_target::attach, darwin_nat_target::detach)
2606 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
2607 local variables.
2608 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
2609 variables.
2610
2611 2018-09-29 Tom Tromey <tom@tromey.com>
2612
2613 * README: Remove some leftover text.
2614
2615 2018-09-29 Tom Tromey <tom@tromey.com>
2616
2617 * PROBLEMS: Rewrite.
2618 * README: Update.
2619
2620 2018-09-28 John Baldwin <jhb@FreeBSD.org>
2621
2622 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
2623 case with explicit breakpoint kind.
2624 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
2625 'additional_info' and related logic.
2626 (riscv_debug_breakpoints): New variable.
2627 (riscv_breakpoint_kind_from_pc): Use the length of the existing
2628 instruction to determine the breakpoint kind.
2629 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
2630 flag. Update description of 'set/show riscv
2631 use-compressed-breakpoints' flag.
2632
2633 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
2634
2635 (NEWS): Mention changes to frame related commands.
2636 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
2637 (add_prefix_cmd_suppress_notification): New function.
2638 (add_com_suppress_notification): Call
2639 add_cmd_suppress_notification.
2640 * command.h (add_cmd_suppress_notification): Declare.
2641 (add_prefix_cmd_suppress_notification): Declare.
2642 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
2643 (parse_frame_specification): Moved from stack.c, with
2644 simplification to handle a single argument.
2645 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
2646 switch to the selected frame. Add a header comment.
2647 * stack.c: Remove 'safe-ctype.h' include.
2648 (find_frame_for_function): Add declaration.
2649 (find_frame_for_address): New function.
2650 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
2651 (frame_selection_by_function_completer): New function.
2652 (info_frame_command): Rename to...
2653 (info_frame_command_core): ...this, and update parameter types.
2654 (select_frame_command): Rename to...
2655 (select_frame_command_core): ...this, and update parameter types.
2656 (frame_command): Rename to...
2657 (frame_command_core): ...this, and update parameter types.
2658 (class frame_command_helper): New class to wrap implementations of
2659 frame related sub-commands.
2660 (frame_apply_cmd_list): New static global.
2661 (frame_cmd_list): Make static.
2662 (select_frame_cmd_list): New global for sub-commands.
2663 (info_frame_cmd_list): New global for sub-commands.
2664 (_initialize_stack): Register sub-commands for 'frame',
2665 'select-frame', and 'info frame'. Update 'frame apply' commands
2666 to use frame_apply_cmd_list. Move function local static
2667 frame_apply_list to file static frame_apply_cmd_list for
2668 consistency.
2669 * stack.h (select_frame_command): Delete declarationn.
2670 (select_frame_for_mi): Declare new function.
2671
2672 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
2673
2674 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
2675 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
2676 and NOP.
2677
2678 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
2679
2680 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
2681
2682 2018-09-26 Tom Tromey <tom@tromey.com>
2683
2684 * valops.c (auto_abandon): Remove dead code.
2685
2686 2018-09-26 Tom Tromey <tom@tromey.com>
2687
2688 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
2689
2690 2018-09-24 Tom Tromey <tom@tromey.com>
2691
2692 * common/pathstuff.c (get_standard_cache_dir): Make
2693 "xdg_cache_home" and "home" const.
2694 * top.c (init_history): Make "tmpenv" const.
2695 * main.c (get_init_files): Make "homedir" const.
2696
2697 2018-09-23 Tom Tromey <tom@tromey.com>
2698
2699 PR python/18852:
2700 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
2701
2702 2018-09-23 Tom Tromey <tom@tromey.com>
2703
2704 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
2705 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
2706 * python/python-internal.h (gdbpy_handle_exception): Declare.
2707 * python/py-utils.c (gdbpy_handle_exception): New function.
2708
2709 2018-09-23 Tom Tromey <tom@tromey.com>
2710
2711 PR python/17284:
2712 * python/py-type.c (typy_template_argument): Check for negative
2713 argument number.
2714
2715 2018-09-23 Tom Tromey <tom@tromey.com>
2716
2717 PR python/14062:
2718 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
2719
2720 2018-09-23 Tom Tromey <tom@tromey.com>
2721
2722 PR python/18170:
2723 * python/py-value.c (valpy_int): Allow conversion from pointer
2724 type.
2725
2726 2018-09-23 Tom Tromey <tom@tromey.com>
2727
2728 PR python/20126:
2729 * python/py-value.c (valpy_int): Respect type sign.
2730
2731 2018-09-23 Tom Tromey <tom@tromey.com>
2732
2733 PR python/18352;
2734 * python/py-value.c (valpy_float): Allow conversions from int or
2735 char.
2736 (valpy_int, valpy_long): Allow conversions from float.
2737
2738 2018-09-23 Tom Tromey <tom@tromey.com>
2739
2740 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
2741 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
2742
2743 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2744
2745 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
2746 __sighndlr.
2747 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
2748
2749 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
2750
2751 * windows-nat.c (windows_nat_target::wait): Remove a spurious
2752 target_terminal::ours().
2753
2754 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
2755
2756 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
2757 of vl to ULONGEST.
2758
2759 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
2760
2761 * breakpoint.c (update_inserted_breakpoint_locations): Remove
2762 redundant condition.
2763
2764 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2765
2766 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
2767
2768 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
2769 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
2770 * sol-thread.c (ps_pdmodel): Don't guard definition.
2771
2772 * procfs.c: Fix formatting.
2773
2774 * procfs.c (sysset_t_alloc): Remove.
2775 (create_procinfo): Use XNEW instead of sysset_t_alloc.
2776 (procfs_debug_inferior): Likewise.
2777 (procfs_set_exec_trap): Likewise.
2778 (proc_set_traced_sysentry): Don't allocate argp dynamically.
2779 (proc_set_traced_sysexit): Likewise.
2780
2781 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
2782 (dead_procinfo): Likewise.
2783 (proc_warn): Likewise.
2784 (proc_error): Likewise.
2785 (proc_get_LDT_entry): Likewise.
2786 (do_attach): Likewise.
2787 (procfs_target::pid_to_str): Likewise.
2788 (iterate_over_mappings): Likewise.
2789
2790 * procfs.c (create_procinfo): Fix ARI warning.
2791 (proc_get_status): Likewise.
2792 (proc_stop_process): Likewise.
2793 (proc_run_process): Likewise.
2794 (proc_kill): Likewise.
2795 (proc_get_LDT_entry): Likewise.
2796 (procfs_find_LDT_entry): Likewise.
2797 (proc_update_threads): Likewise.
2798 (proc_iterate_over_threads): Likewise.
2799 (do_attach): Likewise.
2800 (procfs_xfer_memory): Likewise.
2801 (invalidate_cache): Likewise.
2802 (procfs_target::resume): Likewise.
2803 (procfs_init_inferior): Likewise.
2804 (procfs_set_exec_trap): Likewise.
2805 (procfs_target::thread_alive): Likewise.
2806 (procfs_target::pid_to_exec_file): Likewise.
2807 (iterate_over_mappings): Likewise.
2808 (procfs_target::make_corefile_notes): Likewise.
2809 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
2810
2811 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
2812 (procfs_find_LDT_entry): Likewise.
2813 * sol-thread.c (ps_lgetLDT): Likewise.
2814
2815 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2816
2817 PR tdep/17903
2818 * procfs.c (procfs_target): Declare pid_to_exec_file.
2819 (procfs_target::pid_to_exec_file): New.
2820
2821 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2822
2823 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
2824 renaming.
2825 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
2826 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
2827
2828 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2829
2830 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
2831 (supply_fpregset, fill_fpregset): Move ...
2832 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
2833 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
2834 Remove references to ioctl-based procfs.
2835 Include <sys/reg.h>.
2836 Remove PR_MODEL_NATIVE guards.
2837 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
2838 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
2839
2840 2018-09-19 Xavier Roirand <roirand@adacore.com>
2841
2842 PR gdb/20981:
2843 * solib-darwin.c (darwin_get_dyld_bfd): New function.
2844 (darwin_solib_get_all_image_info_addr_at_init): Update call.
2845 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
2846
2847 2018-09-19 John Baldwin <jhb@FreeBSD.org>
2848
2849 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
2850 (fbsd_print_sockaddr_in6): Likewise.
2851
2852 2018-09-19 Richard Bunt <richard.bunt@arm.com>
2853 Chris January <chris.january@arm.com>
2854
2855 * eval.c (skip_undetermined_arglist): Skip argument list helper.
2856 (evaluate_subexp_standard): Return a dummy type when
2857 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
2858 OP_F77_UNDETERMINED_ARGLIST case.
2859 * expression.h (enum noside): Update comment.
2860
2861 2018-09-19 George Vasick <george.vasick@oracle.com>
2862
2863 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
2864
2865 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
2866 April Chin <april.chin@oracle.com>
2867 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2868
2869 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
2870 uint_t lwpid_t.
2871 (create_procinfo): Print pids in /proc without leading zeros.
2872
2873 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
2874
2875 * nios2-tdep.c (nios2_gcc_target_options): New.
2876 (nios2_gdb_arch_init): Install new hook.
2877
2878 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
2879
2880 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
2881 New file.
2882 * update-gnulib.sh: Apply patch.
2883 * configure: Re-generate.
2884
2885 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2886
2887 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
2888 description. Make "info proc" command descriptions more
2889 consistent.
2890
2891 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2892
2893 * NEWS: Mention 'info proc files' command.
2894
2895 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2896
2897 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
2898 descriptors for IP_FILES and IP_ALL.
2899
2900 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2901
2902 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
2903 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
2904 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
2905 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
2906 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
2907 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
2908 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
2909 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
2910 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
2911 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
2912 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
2913 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
2914 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
2915 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
2916 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
2917 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
2918 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
2919 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
2920 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
2921 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
2922 (struct fbsd_sockaddr_un): New types.
2923 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
2924 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
2925 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
2926 (fbsd_core_info_proc_files): New functions.
2927 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
2928 IP_ALL.
2929 * fbsd-tdep.h (fbsd_info_proc_files_header)
2930 (fbsd_info_proc_files_entry): New.
2931
2932 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2933
2934 * defs.h (enum info_proc_what) [IP_FILES]: New value.
2935 * infcmd.c (info_proc_cmd_files): New function.
2936 (_initialize_infcmd): Register 'info proc files' command.
2937
2938 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2939
2940 * gnulib/aclocal-m4-deps.mk: Re-generate.
2941 * gnulib/aclocal.m4: Re-generate.
2942 * gnulib/config.in: Re-generate.
2943 * gnulib/configure: Re-generate.
2944 * gnulib/import/Makefile.am: Re-generate.
2945 * gnulib/import/Makefile.in: Re-generate.
2946 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2947 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2948 * gnulib/import/arpa_inet.in.h: New file.
2949 * gnulib/import/inet_ntop.c: New file.
2950 * gnulib/import/m4/arpa_inet_h.m4: New file.
2951 * gnulib/import/m4/inet_ntop.m4: New file.
2952 * gnulib/import/m4/netinet_in_h.m4: New file.
2953 * gnulib/import/m4/socklen.m4: New file.
2954 * gnulib/import/m4/sockpfaf.m4: New file.
2955 * gnulib/import/m4/stdalign.m4: New file.
2956 * gnulib/import/m4/sys_uio_h.m4: New file.
2957 * gnulib/import/netinet_in.in.h: New file.
2958 * gnulib/import/stdalign.in.h: New file.
2959 * gnulib/import/sys_socket.c: New file.
2960 * gnulib/import/sys_socket.in.h: New file.
2961 * gnulib/import/sys_uio.in.h: New file.
2962 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
2963 module.
2964
2965 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2966
2967 * gnulib/aclocal-m4-deps.mk: New file.
2968 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
2969 deterministically.
2970
2971 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2972
2973 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
2974 KVE_PATH.
2975
2976 2018-09-18 Tom Tromey <tom@tromey.com>
2977
2978 * compile/compile-object-load.c (struct
2979 link_hash_table_cleanup_data): Add constructor and destructor.
2980 Use DISABLE_COPY_AND_ASSIGN.
2981 (~link_hash_table_cleanup_data): Rename from
2982 link_hash_table_free. Now a destructor.
2983 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
2984
2985 2018-09-18 Tom Tromey <tom@tromey.com>
2986
2987 * compile/compile-object-run.c (do_module_cleanup): Use delete.
2988 * compile/compile-object-load.c (struct munmap_list): Move to
2989 header file.
2990 (munmap_list::add): Rename from munmap_list_add; rewrite.
2991 (munmap_list::~munmap_list): Rename from munmap_list_free.
2992 (munmap_listp_free_cleanup): Remove.
2993 (compile_object_load): Update.
2994 * compile/compile-object-load.h (struct munmap_list): Move from
2995 compile-object-load.c. Rewrite.
2996
2997 2018-09-18 Alan Hayward <alan.hayward@arm.com>
2998
2999 * aarch64-tdep.c (pass_in_v): Use register size.
3000 (aarch64_extract_return_value): Likewise.
3001 (aarch64_store_return_value): Likewise.
3002
3003 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3004
3005 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
3006 rlim_t.
3007
3008 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3009
3010 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
3011 Fix short help line.
3012
3013 2018-09-17 Tom Tromey <tom@tromey.com>
3014
3015 PR python/20445:
3016 * configure: Rebuild.
3017 * configure.ac: Conditionally use -DNDEBUG for Python.
3018
3019 2018-09-17 Tom Tromey <tom@tromey.com>
3020
3021 * configure: Rebuild.
3022 * configure.ac: Use gmp as a library dependency when checking for
3023 mpfr.
3024
3025 2018-09-17 Pedro Alves <palves@redhat.com>
3026
3027 * python/py-inferior.c (find_inferior_object): Delete.
3028
3029 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
3030
3031 * compile/compile-cplus-types.c
3032 (compile_cplus_instance::enter_scope): Don't use new_scope after
3033 std::move.
3034
3035 2018-09-17 Tom Tromey <tom@tromey.com>
3036
3037 * common/pathstuff.c (get_standard_cache_dir): Use
3038 ~/Library/Caches on macOS.
3039 * common/pathstuff.h (get_standard_cache_dir): Update comment.
3040
3041 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
3042
3043 PR python/23669
3044 * breakpoint.c (commands_cmd_element): New.
3045 (_initialize_breakpoint): Assign commands_cmd_element.
3046 * breakpoint.h (commands_cmd_element): New.
3047 * cli/cli-script.c (while_cmd_element, if_command,
3048 define_cmd_element): New.
3049 (command_name_equals): Remove.
3050 (process_next_line): Compare commands by pointer, not by name.
3051 (_initialize_cli_script): Assign the various cmd_list_element
3052 variables.
3053 * compile/compile.c (compile_cmd_element): New.
3054 (_initialize_compile): Assign compile_cmd_element.
3055 * compile/compile.h (compile_cmd_element): New.
3056 * guile/guile.c (guile_cmd_element): New.
3057 (install_gdb_commands): Assign guile_cmd_element.
3058 * guile/guile.h (guile_cmd_element): New.
3059 * python/python.c (python_cmd_element): New.
3060 (_initialize_python): Assign python_cmd_element.
3061 * python/python.h (python_cmd_element): New.
3062 * tracepoint.c (while_stepping_cmd_element): New.
3063 (_initialize_tracepoint): Assign while_stepping_cmd_element.
3064 * tracepoint.h (while_stepping_cmd_element): New.
3065
3066 2018-09-17 Tom Tromey <tom@tromey.com>
3067
3068 * infrun.c (save_infcall_suspend_state): Return
3069 infcall_suspend_state_up.
3070 (save_infcall_control_state): Return infcall_control_state_up.
3071 * inferior.h (save_infcall_suspend_state)
3072 (save_infcall_control_state): Declare later. Return unique
3073 pointers.
3074
3075 2018-09-17 Tom Tromey <tom@tromey.com>
3076
3077 * infrun.c (struct stop_context): Declare constructor,
3078 destructor, "changed" method.
3079 (stop_context::stop_context): Rename from save_stop_context.
3080 (stop_context::~stop_context): Rename from
3081 release_stop_context_cleanup.
3082 (normal_stop): Update.
3083 (stop_context::changed): Rename from stop_context_changed. Return
3084 bool.
3085
3086 2018-09-17 Tom Tromey <tom@tromey.com>
3087
3088 * inferior.h (struct infcall_suspend_state_deleter): New.
3089 (infcall_suspend_state_up): New typedef.
3090 (struct infcall_control_state_deleter): New.
3091 (infcall_control_state_up): New typedef.
3092 (make_cleanup_restore_infcall_suspend_state)
3093 (make_cleanup_restore_infcall_control_state): Don't declare.
3094 * infcall.c (call_function_by_hand_dummy): Update.
3095 * infrun.c (do_restore_infcall_suspend_state_cleanup)
3096 (make_cleanup_restore_infcall_suspend_state): Remove.
3097 (do_restore_infcall_control_state_cleanup)
3098 (make_cleanup_restore_infcall_control_state): Remove.
3099
3100 2018-09-17 Tom Tromey <tom@tromey.com>
3101
3102 * gdbthread.h (struct thread_control_state): Add initializer.
3103 (class thread_info) <control>: Remove initializer.
3104 * inferior.h (struct inferior_control_state): Add initializer.
3105 (class inferior) <control>: Remove initializer.
3106 (exit_inferior_1): Update.
3107 * infrun.c (struct infcall_control_state): Add constructors.
3108 (save_infcall_control_state): Use new.
3109 (restore_infcall_control_state, discard_infcall_control_state):
3110 Use delete.
3111
3112 2018-09-17 Tom Tromey <tom@tromey.com>
3113
3114 * infrun.c (struct infcall_suspend_state) <registers>: Now a
3115 unique_ptr.
3116 <siginfo_data>: Now a unique_xmalloc_ptr.
3117 (save_infcall_suspend_state, restore_infcall_suspend_state)
3118 (discard_infcall_suspend_state)
3119 (get_infcall_suspend_state_regcache): Update.
3120
3121 2018-09-17 Tom Tromey <tom@tromey.com>
3122
3123 * gdbthread.h (struct thread_suspend_state): Add initializers.
3124 (class thread_info) <suspend>: Remove initializer.
3125 * infrun.c (struct infcall_suspend_state): Add initializers.
3126 (save_infcall_suspend_state): Use new.
3127 (discard_infcall_suspend_state): Use delete.
3128
3129 2018-09-16 Tom Tromey <tom@tromey.com>
3130
3131 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
3132 Remove.
3133 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
3134 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
3135 (py_varobj_iter_new): Likewise.
3136 (py_varobj_get_iterator): Use gdbpy_ref.
3137
3138 2018-09-16 Tom Tromey <tom@tromey.com>
3139
3140 * python/py-threadevent.c (py_get_event_thread): Simplify.
3141 * python/py-inferior.c (infpy_thread_from_thread_handle):
3142 Return immediately after calling thread_to_thread_object. Use
3143 Py_RETURN_NONE.
3144 (thread_to_thread_object): Set the exception on a NULL return.
3145
3146 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3147
3148 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
3149
3150 2018-09-16 Tom Tromey <tom@tromey.com>
3151
3152 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
3153 Remove.
3154
3155 2018-09-16 Tom Tromey <tom@tromey.com>
3156
3157 * python/python-internal.h (thread_to_thread_object): Change
3158 return type.
3159 * python/py-inferior.c (thread_to_thread_object): Return a new
3160 reference.
3161 (infpy_thread_from_thread_handle): Update.
3162 * python/py-infthread.c (gdbpy_selected_thread): Update.
3163 * python/py-stopevent.c (create_stop_event_object): Update.
3164 * python/py-threadevent.c (py_get_event_thread): Return a new
3165 reference.
3166 (py_get_event_thread): Update.
3167 * python/py-event.h (py_get_event_thread): Change return type.
3168 * python/py-continueevent.c (create_continue_event_object):
3169 Update.
3170
3171 2018-09-16 Tom Tromey <tom@tromey.com>
3172
3173 * python/py-progspace.c (pspy_get_objfiles): Update.
3174 * python/python-internal.h (objfile_to_objfile_object): Change
3175 return type.
3176 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3177 Update.
3178 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
3179 Update.
3180 * python/python.c (gdbpy_get_current_objfile): Update.
3181 (gdbpy_objfiles): Update.
3182 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
3183 Update.
3184 (objfile_to_objfile_object): Return a new reference.
3185 * python/py-symtab.c (stpy_get_objfile): Update.
3186 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
3187 Update.
3188
3189 2018-09-16 Tom Tromey <tom@tromey.com>
3190
3191 * python/py-inferior.c (infpy_get_progspace): Update.
3192 * python/python-internal.h (pspace_to_pspace_object): Change
3193 return type.
3194 * python/py-newobjfileevent.c
3195 (create_clear_objfiles_event_object): Update.
3196 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
3197 Update.
3198 * python/python.c (gdbpy_get_current_progspace): Update.
3199 (gdbpy_progspaces): Update.
3200 * python/py-progspace.c (pspace_to_pspace_object): Return a new
3201 reference.
3202 * python/py-objfile.c (objfpy_get_progspace): Update.
3203 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
3204 Update.
3205
3206 2018-09-16 Tom Tromey <tom@tromey.com>
3207
3208 * python/lib/gdb/__init__.py (current_progspace, objfiles)
3209 (solib_name, block_for_pc, find_pc_line): New functions.
3210 (execute_unwinders): Update.
3211 * python/py-block.c (gdbpy_block_for_pc): Remove.
3212 * python/py-inferior.c (infpy_get_progspace): New function.
3213 (inferior_object_getset) <progspace>: Add.
3214 * python/py-progspace.c (pspy_objfiles): Rewrite.
3215 (pspy_solib_name, pspy_block_for_pc)
3216 (pspy_find_pc_line, pspy_is_valid): New functions.
3217 (progspace_object_methods): Add entries for solib_name,
3218 block_for_pc, find_pc_line, is_valid.
3219 * python/python-internal.h (gdbpy_block_for_pc)
3220 (build_objfiles_list): Don't declare.
3221 * python/python.c: Don't include solib.h.
3222 (gdbpy_solib_name, gdbpy_find_pc_line)
3223 (gdbpy_get_current_progspace, build_objfiles_list)
3224 (gdbpy_objfiles): Remove.
3225 (GdbMethods) <current_progspace, objfiles, block_for_pc,
3226 solib_name, find_pc_line>: Remove entries.
3227
3228 2018-09-16 Tom Tromey <tom@tromey.com>
3229
3230 * top.c (new_ui_command): Use GNU style for metasyntactic
3231 variables.
3232 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
3233 variables.
3234 * maint.c (maintenance_translate_address): Remove "<>" around
3235 text.
3236 * interps.c (interpreter_exec_cmd): Use GNU style for
3237 metasyntactic variables.
3238 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
3239 metasyntactic variables.
3240 * tracepoint.c (tfind_range_command): Use GNU style for
3241 metasyntactic variables.
3242 (tfind_outside_command): Likewise.
3243 (_initialize_tracepoint): Likewise.
3244 * remote.c (extended_remote_target::create_inferior): Use GNU
3245 style for metasyntactic variables.
3246 * sparc64-tdep.c (adi_examine_command): Use GNU style for
3247 metasyntactic variables.
3248 (adi_assign_command): Likewise.
3249
3250 2018-09-16 Tom Tromey <tom@tromey.com>
3251
3252 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
3253 metasyntactic variables. Print message if no disassembler options
3254 are available.
3255
3256 2018-09-15 Tom Tromey <tom@tromey.com>
3257
3258 * infcmd.c (get_inferior_args): Return const char *.
3259 * inferior.h (get_inferior_args): Return type now const.
3260 * linux-tdep.c (linux_fill_prpsinfo): Update.
3261 * procfs.c (procfs_target::make_corefile_notes): Update.
3262
3263 2018-09-07 Tom Tromey <tom@tromey.com>
3264
3265 * python/python.c (execute_gdb_command): Call bpstat_do_actions
3266 inside the TRY.
3267
3268 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
3269
3270 * nios2-tdep.c (nios2_type_align): New.
3271 (nios2_gdb_arch_init): Install type_align hook.
3272
3273 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3274
3275 * eval.c (fake_method::fake_method): Call xzalloc directly for a
3276 type that is neither object file owned, nor gdbarch owned.
3277 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
3278 gdbarch is non-NULL.
3279 (alloc_type_instance): Allocate non-objfile owned types on the
3280 gdbarch obstack.
3281 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
3282 using TYPE_ALLOC to ensure memory is allocated on the correct
3283 obstack.
3284 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
3285 obstack, or the gdbarch obstack.
3286 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
3287
3288 2018-09-14 Tom Tromey <tom@tromey.com>
3289
3290 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
3291 block.
3292
3293 2018-09-14 Tom Tromey <tom@tromey.com>
3294
3295 * nat/fork-inferior.c (get_startup_shell): Remove "static".
3296
3297 2018-09-13 Tom Tromey <tom@tromey.com>
3298
3299 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
3300 static.
3301
3302 2018-09-13 Tom Tromey <tom@tromey.com>
3303
3304 * exec.c (try_open_exec_file): Use std::string.
3305
3306 2018-09-13 Tom Tromey <tom@tromey.com>
3307
3308 * utils.h (gdb_bfd_errmsg): Return std::string.
3309 * exec.c (exec_file_attach): Update.
3310 * compile/compile-object-load.c (compile_object_load): Update.
3311 * utils.c (gdb_bfd_errmsg): Return std::string.
3312
3313 2018-09-13 Tom Tromey <tom@tromey.com>
3314
3315 * procfs.c (struct procinfo_deleter): New.
3316 (procinfo_up): New typedef.
3317 (do_destroy_procinfo_cleanup): Remove.
3318 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
3319
3320 2018-09-13 Tom Tromey <tom@tromey.com>
3321
3322 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
3323
3324 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3325 2018-09-13 Tom Tromey <tom@tromey.com>
3326
3327 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
3328 (pspy_get_objfiles): New function.
3329 (progspace_object_methods): New.
3330 (pspace_object_type): Add tp_methods callback.
3331 * python/python-internal.h (build_objfiles_list): New
3332 declaration.
3333 * python/python.c (build_objfiles_list): New function.
3334 (gdbpy_objfiles): Implement using build_objfiles_list.
3335 * NEWS: Mention the Progspace.objfiles method.
3336
3337 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3338
3339 * python/py-inferior.c (infpy_get_progspace): New function.
3340 (inferior_object_getset): Add progspace property.
3341 * NEWS: Mention the new property.
3342
3343 2018-09-13 Tom Tromey <tom@tromey.com>
3344
3345 PR rust/23650:
3346 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
3347
3348 2018-09-13 Tom Tromey <tom@tromey.com>
3349
3350 PR rust/23626:
3351 * rust-lang.c (rust_enum_variant): Now static.
3352 (rust_empty_enum_p): New function.
3353 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
3354 Handle empty enum.
3355
3356 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3357
3358 * python/py-inferior.c (infpy_repr): New.
3359 (inferior_object_type): Register infpy_repr.
3360 * python/py-objfile.c (objfpy_repr): New.
3361 (objfile_object_type): Register objfpy_repr.
3362
3363 2018-09-12 John Baldwin <jhb@FreeBSD.org>
3364
3365 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
3366
3367 2018-09-12 John Baldwin <jhb@FreeBSD.org>
3368
3369 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
3370 typo.
3371
3372 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
3373
3374 * common/common-utils.c: Don't include '<sys/stat.h>'.
3375 (is_regular_file): Move to...
3376 * common/filestuff.c (is_regular_file): ... here.
3377 * common/common-utils.h (is_regular_file): Move to...
3378 * common/filestuff.h (is_regular_file): ... here.
3379
3380 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
3381
3382 * skip.c (debug_skip): New variable.
3383 (skiplist_entry::do_skip_file_p): Add debug output.
3384 (skiplist_entry::do_skip_gfile_p): Likewise.
3385 (skiplist_entry::skip_function_p): Likewise.
3386 (_initialize_step_skip): Create debug command.
3387 * NEWS: Mention set/show debug skip.
3388
3389 2018-09-11 Xavier Roirand <roirand@adacore.com>
3390
3391 * darwin-nat.c (should_disable_startup_with_shell):
3392 New function.
3393 (darwin_nat_target::create_inferior): Add call.
3394
3395 2018-09-11 Xavier Roirand <roirand@adacore.com>
3396
3397 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
3398 inf_port, msg_state>: Initialize.
3399 (struct darwin_thread_info) <signaled, single_step>: Change
3400 type and initialize.
3401 (struct darwin_thread_info) <event>: Initialize.
3402
3403 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3404
3405 PR gdb/23555
3406 PR gdb/23558
3407 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
3408 guesses.
3409
3410 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3411
3412 Revert:
3413 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
3414
3415 PR gdb/23555
3416 PR gdb/23558
3417 * gnulib/aclocal.m4: Regenerate.
3418 * gnulib/config.in: Regenerate.
3419 * gnulib/configure: Regenerate.
3420 * gnulib/import/Makefile.am: Update.
3421 * gnulib/import/Makefile.in: Update.
3422 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3423 * gnulib/import/_Noreturn.h: ... this.
3424 * gnulib/import/alloca.in.h: Update.
3425 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3426 * gnulib/import/arg-nonnull.h: ... this.
3427 * gnulib/import/assure.h: Update.
3428 * gnulib/import/at-func.c: Update.
3429 * gnulib/import/basename-lgpl.c: Update.
3430 * gnulib/import/extra/snippet/c++defs.h: Rename to...
3431 * gnulib/import/c++defs.h: ... this.
3432 * gnulib/import/canonicalize-lgpl.c: Update.
3433 * gnulib/import/cdefs.h: Update.
3434 * gnulib/import/chdir-long.c: Update.
3435 * gnulib/import/chdir-long.h: Update.
3436 * gnulib/import/cloexec.c: Update.
3437 * gnulib/import/cloexec.h: Update.
3438 * gnulib/import/close.c: Update.
3439 * gnulib/import/closedir.c: Update.
3440 * gnulib/import/config.charset: Update.
3441 * gnulib/import/dirent-private.h: Update.
3442 * gnulib/import/dirent.in.h: Update.
3443 * gnulib/import/dirfd.c: Update.
3444 * gnulib/import/dirname-lgpl.c: Update.
3445 * gnulib/import/dirname.h: Update.
3446 * gnulib/import/dosname.h: Update.
3447 * gnulib/import/dup-safer-flag.c: Update.
3448 * gnulib/import/dup-safer.c: Update.
3449 * gnulib/import/dup.c: Update.
3450 * gnulib/import/dup2.c: Update.
3451 * gnulib/import/errno.in.h: Update.
3452 * gnulib/import/error.c: Update.
3453 * gnulib/import/error.h: Update.
3454 * gnulib/import/exitfail.c: Update.
3455 * gnulib/import/exitfail.h: Update.
3456 * gnulib/import/extra/update-copyright: Update.
3457 * gnulib/import/fchdir.c: Update.
3458 * gnulib/import/fcntl.c: Update.
3459 * gnulib/import/fcntl.in.h: Update.
3460 * gnulib/import/fd-hook.c: Update.
3461 * gnulib/import/fd-hook.h: Update.
3462 * gnulib/import/fd-safer-flag.c: Update.
3463 * gnulib/import/fd-safer.c: Update.
3464 * gnulib/import/fdopendir.c: Update.
3465 * gnulib/import/filename.h: Update.
3466 * gnulib/import/filenamecat-lgpl.c: Update.
3467 * gnulib/import/filenamecat.h: Update.
3468 * gnulib/import/flexmember.h: Update.
3469 * gnulib/import/float+.h: Update.
3470 * gnulib/import/float.c: Update.
3471 * gnulib/import/float.in.h: Update.
3472 * gnulib/import/fnmatch.c: Update.
3473 * gnulib/import/fnmatch.in.h: Update.
3474 * gnulib/import/fnmatch_loop.c: Update.
3475 * gnulib/import/fpucw.h: Update.
3476 * gnulib/import/frexp.c: Update.
3477 * gnulib/import/frexpl.c: Update.
3478 * gnulib/import/fstat.c: Update.
3479 * gnulib/import/fstatat.c: Update.
3480 * gnulib/import/getcwd-lgpl.c: Update.
3481 * gnulib/import/getcwd.c: Update.
3482 * gnulib/import/getdtablesize.c: Update.
3483 * gnulib/import/getlogin_r.c: Update.
3484 * gnulib/import/getprogname.c: Update.
3485 * gnulib/import/getprogname.h: Update.
3486 * gnulib/import/gettext.h: Update.
3487 * gnulib/import/gettimeofday.c: Update.
3488 * gnulib/import/glob-libc.h: Update.
3489 * gnulib/import/glob.c: Update.
3490 * gnulib/import/glob.in.h: Update.
3491 * gnulib/import/glob_internal.h: Update.
3492 * gnulib/import/glob_pattern_p.c: Update.
3493 * gnulib/import/globfree.c: Update.
3494 * gnulib/import/hard-locale.c: Update.
3495 * gnulib/import/hard-locale.h: Update.
3496 * gnulib/import/intprops.h: Update.
3497 * gnulib/import/inttypes.in.h: Update.
3498 * gnulib/import/isnan.c: Update.
3499 * gnulib/import/isnand-nolibm.h: Update.
3500 * gnulib/import/isnand.c: Update.
3501 * gnulib/import/isnanl-nolibm.h: Update.
3502 * gnulib/import/isnanl.c: Update.
3503 * gnulib/import/itold.c: Update.
3504 * gnulib/import/libc-config.h: Update.
3505 * gnulib/import/limits.in.h: Update.
3506 * gnulib/import/localcharset.c: Update.
3507 * gnulib/import/localcharset.h: Update.
3508 * gnulib/import/localtime-buffer.c: Update.
3509 * gnulib/import/localtime-buffer.h: Update.
3510 * gnulib/import/lstat.c: Update.
3511 * gnulib/import/m4/00gnulib.m4: Update.
3512 * gnulib/import/m4/__inline.m4: Update.
3513 * gnulib/import/m4/absolute-header.m4: Update.
3514 * gnulib/import/m4/alloca.m4: Update.
3515 * gnulib/import/m4/builtin-expect.m4: Update.
3516 * gnulib/import/m4/canonicalize.m4: Update.
3517 * gnulib/import/m4/chdir-long.m4: Update.
3518 * gnulib/import/m4/close.m4: Update.
3519 * gnulib/import/m4/closedir.m4: Update.
3520 * gnulib/import/m4/configmake.m4: Update.
3521 * gnulib/import/m4/d-ino.m4: Update.
3522 * gnulib/import/m4/d-type.m4: Update.
3523 * gnulib/import/m4/dirent_h.m4: Update.
3524 * gnulib/import/m4/dirfd.m4: Update.
3525 * gnulib/import/m4/dirname.m4: Update.
3526 * gnulib/import/m4/double-slash-root.m4: Update.
3527 * gnulib/import/m4/dup.m4: Update.
3528 * gnulib/import/m4/dup2.m4: Update.
3529 * gnulib/import/m4/eealloc.m4: Update.
3530 * gnulib/import/m4/environ.m4: Update.
3531 * gnulib/import/m4/errno_h.m4: Update.
3532 * gnulib/import/m4/error.m4: Update.
3533 * gnulib/import/m4/exponentd.m4: Update.
3534 * gnulib/import/m4/exponentl.m4: Update.
3535 * gnulib/import/m4/extensions.m4: Update.
3536 * gnulib/import/m4/extern-inline.m4: Update.
3537 * gnulib/import/m4/fchdir.m4: Update.
3538 * gnulib/import/m4/fcntl-o.m4: Update.
3539 * gnulib/import/m4/fcntl.m4: Update.
3540 * gnulib/import/m4/fcntl_h.m4: Update.
3541 * gnulib/import/m4/fdopendir.m4: Update.
3542 * gnulib/import/m4/filenamecat.m4: Update.
3543 * gnulib/import/m4/flexmember.m4: Update.
3544 * gnulib/import/m4/float_h.m4: Update.
3545 * gnulib/import/m4/fnmatch.m4: Update.
3546 * gnulib/import/m4/fnmatch_h.m4: Update.
3547 * gnulib/import/m4/fpieee.m4: Update.
3548 * gnulib/import/m4/frexp.m4: Update.
3549 * gnulib/import/m4/frexpl.m4: Update.
3550 * gnulib/import/m4/fstat.m4: Update.
3551 * gnulib/import/m4/fstatat.m4: Update.
3552 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3553 * gnulib/import/m4/getcwd-path-max.m4: Update.
3554 * gnulib/import/m4/getcwd.m4: Update.
3555 * gnulib/import/m4/getdtablesize.m4: Update.
3556 * gnulib/import/m4/getlogin.m4: Update.
3557 * gnulib/import/m4/getlogin_r.m4: Update.
3558 * gnulib/import/m4/getpagesize.m4: Update.
3559 * gnulib/import/m4/getprogname.m4: Update.
3560 * gnulib/import/m4/gettimeofday.m4: Update.
3561 * gnulib/import/m4/glibc21.m4: Update.
3562 * gnulib/import/m4/glob.m4: Update.
3563 * gnulib/import/m4/glob_h.m4: Update.
3564 * gnulib/import/m4/gnulib-cache.m4: Update.
3565 * gnulib/import/m4/gnulib-common.m4: Update.
3566 * gnulib/import/m4/gnulib-comp.m4: Update.
3567 * gnulib/import/m4/gnulib-tool.m4: Update.
3568 * gnulib/import/m4/hard-locale.m4: Update.
3569 * gnulib/import/m4/include_next.m4: Update.
3570 * gnulib/import/m4/inttypes-pri.m4: Update.
3571 * gnulib/import/m4/inttypes.m4: Update.
3572 * gnulib/import/m4/isnand.m4: Update.
3573 * gnulib/import/m4/isnanl.m4: Update.
3574 * gnulib/import/m4/largefile.m4: Update.
3575 * gnulib/import/m4/limits-h.m4: Update.
3576 * gnulib/import/m4/localcharset.m4: Update.
3577 * gnulib/import/m4/locale-fr.m4: Update.
3578 * gnulib/import/m4/locale-ja.m4: Update.
3579 * gnulib/import/m4/locale-zh.m4: Update.
3580 * gnulib/import/m4/localtime-buffer.m4: Update.
3581 * gnulib/import/m4/longlong.m4: Update.
3582 * gnulib/import/m4/lstat.m4: Update.
3583 * gnulib/import/m4/malloc.m4: Update.
3584 * gnulib/import/m4/malloca.m4: Update.
3585 * gnulib/import/m4/math_h.m4: Update.
3586 * gnulib/import/m4/mbrtowc.m4: Update.
3587 * gnulib/import/m4/mbsinit.m4: Update.
3588 * gnulib/import/m4/mbsrtowcs.m4: Update.
3589 * gnulib/import/m4/mbstate_t.m4: Update.
3590 * gnulib/import/m4/memchr.m4: Update.
3591 * gnulib/import/m4/memmem.m4: Update.
3592 * gnulib/import/m4/mempcpy.m4: Update.
3593 * gnulib/import/m4/memrchr.m4: Update.
3594 * gnulib/import/m4/mkdir.m4: Update.
3595 * gnulib/import/m4/mkstemp.m4: Update.
3596 * gnulib/import/m4/mmap-anon.m4: Update.
3597 * gnulib/import/m4/mode_t.m4: Update.
3598 * gnulib/import/m4/msvc-inval.m4: Update.
3599 * gnulib/import/m4/msvc-nothrow.m4: Update.
3600 * gnulib/import/m4/multiarch.m4: Update.
3601 * gnulib/import/m4/nocrash.m4: Update.
3602 * gnulib/import/m4/off_t.m4: Update.
3603 * gnulib/import/m4/onceonly.m4: Update.
3604 * gnulib/import/m4/open-cloexec.m4: Update.
3605 * gnulib/import/m4/open.m4: Update.
3606 * gnulib/import/m4/openat.m4: Update.
3607 * gnulib/import/m4/opendir.m4: Update.
3608 * gnulib/import/m4/pathmax.m4: Update.
3609 * gnulib/import/m4/rawmemchr.m4: Update.
3610 * gnulib/import/m4/readdir.m4: Update.
3611 * gnulib/import/m4/readlink.m4: Update.
3612 * gnulib/import/m4/realloc.m4: Update.
3613 * gnulib/import/m4/rename.m4: Update.
3614 * gnulib/import/m4/rewinddir.m4: Update.
3615 * gnulib/import/m4/rmdir.m4: Update.
3616 * gnulib/import/m4/save-cwd.m4: Update.
3617 * gnulib/import/m4/secure_getenv.m4: Update.
3618 * gnulib/import/m4/setenv.m4: Update.
3619 * gnulib/import/m4/signal_h.m4: Update.
3620 * gnulib/import/m4/ssize_t.m4: Update.
3621 * gnulib/import/m4/stat-time.m4: Update.
3622 * gnulib/import/m4/stat.m4: Update.
3623 * gnulib/import/m4/std-gnu11.m4: Update.
3624 * gnulib/import/m4/stdbool.m4: Update.
3625 * gnulib/import/m4/stddef_h.m4: Update.
3626 * gnulib/import/m4/stdint.m4: Update.
3627 * gnulib/import/m4/stdio_h.m4: Update.
3628 * gnulib/import/m4/stdlib_h.m4: Update.
3629 * gnulib/import/m4/strchrnul.m4: Update.
3630 * gnulib/import/m4/strdup.m4: Update.
3631 * gnulib/import/m4/strerror.m4: Update.
3632 * gnulib/import/m4/string_h.m4: Update.
3633 * gnulib/import/m4/strstr.m4: Update.
3634 * gnulib/import/m4/strtok_r.m4: Update.
3635 * gnulib/import/m4/sys_socket_h.m4: Update.
3636 * gnulib/import/m4/sys_stat_h.m4: Update.
3637 * gnulib/import/m4/sys_time_h.m4: Update.
3638 * gnulib/import/m4/sys_types_h.m4: Update.
3639 * gnulib/import/m4/tempname.m4: Update.
3640 * gnulib/import/m4/time_h.m4: Update.
3641 * gnulib/import/m4/unistd-safer.m4: Update.
3642 * gnulib/import/m4/unistd_h.m4: Update.
3643 * gnulib/import/m4/warn-on-use.m4: Update.
3644 * gnulib/import/m4/wchar_h.m4: Update.
3645 * gnulib/import/m4/wchar_t.m4: Update.
3646 * gnulib/import/m4/wctype_h.m4: Update.
3647 * gnulib/import/m4/wint_t.m4: Update.
3648 * gnulib/import/malloc.c: Update.
3649 * gnulib/import/malloc/scratch_buffer.h: Update.
3650 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3651 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3652 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3653 * gnulib/import/malloca.c: Update.
3654 * gnulib/import/malloca.h: Update.
3655 * gnulib/import/malloca.valgrind: Update.
3656 * gnulib/import/math.in.h: Update.
3657 * gnulib/import/mbrtowc.c: Update.
3658 * gnulib/import/mbsinit.c: Update.
3659 * gnulib/import/mbsrtowcs-impl.h: Update.
3660 * gnulib/import/mbsrtowcs-state.c: Update.
3661 * gnulib/import/mbsrtowcs.c: Update.
3662 * gnulib/import/memchr.c: Update.
3663 * gnulib/import/memmem.c: Update.
3664 * gnulib/import/mempcpy.c: Update.
3665 * gnulib/import/memrchr.c: Update.
3666 * gnulib/import/mkdir.c: Update.
3667 * gnulib/import/mkstemp.c: Update.
3668 * gnulib/import/msvc-inval.c: Update.
3669 * gnulib/import/msvc-inval.h: Update.
3670 * gnulib/import/msvc-nothrow.c: Update.
3671 * gnulib/import/msvc-nothrow.h: Update.
3672 * gnulib/import/open.c: Update.
3673 * gnulib/import/openat-die.c: Update.
3674 * gnulib/import/openat-priv.h: Update.
3675 * gnulib/import/openat-proc.c: Update.
3676 * gnulib/import/openat.c: Update.
3677 * gnulib/import/openat.h: Update.
3678 * gnulib/import/opendir.c: Update.
3679 * gnulib/import/pathmax.h: Update.
3680 * gnulib/import/pipe-safer.c: Update.
3681 * gnulib/import/rawmemchr.c: Update.
3682 * gnulib/import/readdir.c: Update.
3683 * gnulib/import/readlink.c: Update.
3684 * gnulib/import/realloc.c: Update.
3685 * gnulib/import/ref-add.sin: Update.
3686 * gnulib/import/ref-del.sin: Update.
3687 * gnulib/import/rename.c: Update.
3688 * gnulib/import/rewinddir.c: Update.
3689 * gnulib/import/rmdir.c: Update.
3690 * gnulib/import/same-inode.h: Update.
3691 * gnulib/import/save-cwd.c: Update.
3692 * gnulib/import/save-cwd.h: Update.
3693 * gnulib/import/scratch_buffer.h: Update.
3694 * gnulib/import/secure_getenv.c: Update.
3695 * gnulib/import/setenv.c: Update.
3696 * gnulib/import/signal.in.h: Update.
3697 * gnulib/import/stat-time.c: Update.
3698 * gnulib/import/stat-time.h: Update.
3699 * gnulib/import/stat-w32.c: Update.
3700 * gnulib/import/stat-w32.h: Update.
3701 * gnulib/import/stat.c: Update.
3702 * gnulib/import/stdbool.in.h: Update.
3703 * gnulib/import/stddef.in.h: Update.
3704 * gnulib/import/stdint.in.h: Update.
3705 * gnulib/import/stdio.in.h: Update.
3706 * gnulib/import/stdlib.in.h: Update.
3707 * gnulib/import/str-two-way.h: Update.
3708 * gnulib/import/strchrnul.c: Update.
3709 * gnulib/import/strdup.c: Update.
3710 * gnulib/import/streq.h: Update.
3711 * gnulib/import/strerror-override.c: Update.
3712 * gnulib/import/strerror-override.h: Update.
3713 * gnulib/import/strerror.c: Update.
3714 * gnulib/import/string.in.h: Update.
3715 * gnulib/import/stripslash.c: Update.
3716 * gnulib/import/strnlen1.c: Update.
3717 * gnulib/import/strnlen1.h: Update.
3718 * gnulib/import/strstr.c: Update.
3719 * gnulib/import/strtok_r.c: Update.
3720 * gnulib/import/sys_stat.in.h: Update.
3721 * gnulib/import/sys_time.in.h: Update.
3722 * gnulib/import/sys_types.in.h: Update.
3723 * gnulib/import/tempname.c: Update.
3724 * gnulib/import/tempname.h: Update.
3725 * gnulib/import/time.in.h: Update.
3726 * gnulib/import/unistd--.h: Update.
3727 * gnulib/import/unistd-safer.h: Update.
3728 * gnulib/import/unistd.in.h: Update.
3729 * gnulib/import/unsetenv.c: Update.
3730 * gnulib/import/verify.h: Update.
3731 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3732 * gnulib/import/wchar.in.h: Update.
3733 * gnulib/import/wctype.in.h: Update.
3734 * gnulib/import/xalloc-oversized.h: Update.
3735 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3736 "53e2c179f26a890fa6685af4b6c1397ee370433b".
3737
3738 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
3739
3740 * record-btrace.c (get_thread_current_frame): Remove
3741 old_inferior_ptid.
3742
3743 2018-09-10 Jerome Guitton <guitton@adacore.com>
3744
3745 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
3746 with check_tag to 1 if and only if the type is tagged and the
3747 component being searched cannot been found in the current
3748 view. Otherwise, always call ada_to_fixed_type with
3749 check_tag to 0.
3750
3751 2018-09-10 Xavier Roirand <roirand@adacore.com>
3752
3753 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
3754 declaration.
3755 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
3756 * ada-varobj.c (ada_varobj_get_number_of_children,
3757 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
3758
3759 2018-09-10 Xavier Roirand <roirand@adacore.com>
3760
3761 * ada-valprint.c (ada_value_print): Use type instead of
3762 enclosing type.
3763
3764 2018-09-10 Xavier Roirand <roirand@adacore.com>
3765
3766 * ada-lang.c (ada_value_subscript): Handle case when parameter is
3767 an array of access to unconstrained array.
3768
3769 2018-09-10 Xavier Roirand <roirand@adacore.com>
3770
3771 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
3772 (ada_check_typedef): Use it.
3773
3774 2018-09-10 Xavier Roirand <roirand@adacore.com>
3775
3776 * ada-varobj.c (ada_varobj_describe_struct_child)
3777 (ada_varobj_describe_child): Handle union case like struct one.
3778
3779 2018-09-10 Tom Tromey <tom@tromey.com>
3780
3781 PR python/18380:
3782 * python/python.c (_initialize_python): Make example in "python"
3783 help work in Python 3.
3784
3785 2018-09-10 Eli Zaretskii <eliz@gnu.org>
3786
3787 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
3788 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
3789 $(EXEEXT) to the script, as it is not a program.
3790
3791 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
3792
3793 * python/py-prettyprint.c (pretty_print_one_value): Return
3794 gdbpy_ref<>.
3795 (print_string_repr): Adjust.
3796 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
3797 * python/python-internal.h (apply_varobj_pretty_printer): Return
3798 gdbpy_ref<>.
3799 * varobj.c (varobj_value_get_print_value): Adjust.
3800
3801 2018-09-08 Tom Tromey <tom@tromey.com>
3802
3803 PR python/16047:
3804 * python/py-prettyprint.c (pretty_print_one_value): Check for
3805 to_string method.
3806
3807 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3808
3809 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
3810 replace_operator_with_call.
3811
3812 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3813
3814 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
3815
3816 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3817
3818 * ada-typeprint.c (print_range): Print the bounds using TYPE
3819 rather than its TYPE_TARGET_TYPE.
3820
3821 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3822
3823 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
3824 call to ada_to_fixed_value_create.
3825
3826 2018-09-08 Jerome Guitton <guitton@adacore.com>
3827
3828 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
3829
3830 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3831
3832 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
3833 by calls to error.
3834
3835 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3836
3837 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
3838 Move update of loop variable "fi".
3839
3840 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3841
3842 * ada-lang.c (value_assign_to_component): In the case of
3843 big-endian targets, extract the bits of the given VAL
3844 using an src_offset of zero if container is not a scalar.
3845
3846 2018-09-06 Simon Ser <contact@emersion.fr>
3847
3848 PR gdb/23105
3849 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
3850 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3851 * fbsd-tdep.c (fbsd_make_note_desc): New.
3852 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
3853 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
3854 * target.h (enum target_object) Add FreeBSD-specific
3855 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3856
3857 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3858
3859 * compile/compile-c.h (generate_c_for_variable_locations):
3860 Change reference to pointer.
3861 * compile/compile-c-support.c (compile_program) <compute>:
3862 Likewise.
3863 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
3864 (generate_c_for_for_one_variable): Likewise
3865 (generate_c_for_variable_locations): Likewise
3866 * compile/compile-c-types.c (compile_c_instance::convert_type):
3867 Likewise
3868 * compile/compile-cplus-symbols.c (convert_one_symbol):
3869 std::move the scope passed to enter_scope.
3870 * compile/compile-cplus-types.c
3871 (compile_cplus_instance::enter_scope): Make parameter
3872 rvalue-reference.
3873 (compile_cplus_instance::new_scope): Change reference to
3874 pointer.
3875 (compile_cplus_instance::convert_type): Likewise
3876 (compile_cplus_convert_typedef): std::move the scope passed to
3877 enter_scope.
3878 (compile_cplus_convert_struct_or_union): Likewise.
3879 (compile_cplus_convert_enum): Likewise.
3880 (compile_cplus_convert_namespace): Likewise.
3881 * compile/compile-cplus.h (compile_cplus_instance)
3882 <enter_scope>: Make parameter rvalue-reference.
3883 * compile/compile-internal.h (compile_instance)
3884 <get_cached_type>: Likewise
3885 * compile/compile-loc2c.c (push): Likewise
3886 (pushf): Likewise
3887 (unary): Likewise
3888 (binary): Likewise
3889 (print_label): Likewise
3890 (pushf_register_address): Likewise
3891 (pushf_register): Likewise
3892 (do_compile_dwarf_expr_to_c): Likewise
3893 (compile_dwarf_expr_to_c): Likewise
3894 (compile_dwarf_bounds_to_c): Likewise
3895 * compile/compile.c (compile_instance::get_cached_type):
3896 Likewise
3897 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
3898 (compile_dwarf_bounds_to_c): Likewise
3899 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
3900 (dwarf2_compile_property_to_c): Likewise
3901 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
3902 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3903 Likewise
3904
3905 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3906
3907 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
3908 * tui/tui-data.c (init_content_element): Don't initialize it.
3909
3910 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3911
3912 * tui/tui-data.h (struct tui_win_info)
3913 <detail::opaque>: Remove.
3914 * tui/tui-data.c (init_win_info): Remove assignment.
3915
3916 2018-09-05 Tom Tromey <tom@tromey.com>
3917
3918 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
3919 -Wformat-nonliteral.
3920 * target-float.c (host_float_ops<T>::to_string)
3921 (host_float_ops<T>::from_string): Use
3922 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3923 * configure: Rebuild.
3924
3925 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
3926
3927 * printcmd.c (printf_c_string): Use
3928 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3929 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
3930
3931 2018-09-05 Tom Tromey <tom@tromey.com>
3932
3933 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
3934
3935 2018-09-05 Tom de Vries <tdevries@suse.de>
3936
3937 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
3938 with resolve_abstract_p == true.
3939 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
3940 defaulting to false. Propagate resolve_abstract_p to
3941 dwarf2_fetch_die_loc_sect_off.
3942 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
3943 parameter, defaulting to false.
3944 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
3945 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
3946 parameter.
3947 * dwarf2read.h (struct die_info): Forward-declare.
3948 (die_info_ptr): New typedef.
3949 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
3950
3951 2018-09-05 Joel Brobecker <brobecker@adacore.com>
3952
3953 GDB 8.2 released.
3954
3955 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3956 Pedro Alves <palves@redhat.com>
3957
3958 * gnulib/Makefile.in (aclocal_m4_deps): Move to
3959 "aclocal-m4-deps.mk". Include file here.
3960 $(srcdir)/aclocal.m4: Add "configure.ac".
3961 * gnulib/aclocal-m4-deps.mk: New file.
3962 * gnulib/update-gnulib.sh: Automatically update
3963 "aclocal-m4-deps.mk".
3964
3965 2018-09-04 Tom Tromey <tom@tromey.com>
3966
3967 * configure: Rebuild.
3968 * configure.ac: Remove multi-ice code.
3969
3970 2018-09-04 Tom Tromey <tom@tromey.com>
3971
3972 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
3973 (ada-exp.o): Update.
3974
3975 2018-09-04 Tom Tromey <tom@tromey.com>
3976
3977 * Makefile.in (printcmd.o, target-float.o): Remove.
3978 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
3979
3980 2018-09-04 Tom Tromey <tom@tromey.com>
3981
3982 * gnulib/Makefile.in: Remove obsolete comment.
3983 * Makefile.in: Remove obsolete comment.
3984
3985 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3986
3987 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
3988 line with '+'.
3989
3990 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3991
3992 * riscv-tdep.c: Add 'prologue-value.h' include.
3993 (struct riscv_unwind_cache): New struct.
3994 (riscv_debug_unwinder): New global.
3995 (riscv_scan_prologue): Update arguments, capture register details
3996 from prologue scan.
3997 (riscv_skip_prologue): Reformat arguments line, move end of
3998 prologue calculation into riscv_scan_prologue.
3999 (riscv_frame_cache): Update return type, create
4000 riscv_unwind_cache, scan the prologue, and fill in remaining cache
4001 details.
4002 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
4003 (riscv_frame_prev_register): Use the trad_frame within the
4004 riscv_unwind_cache.
4005 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
4006 flag.
4007
4008 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4009
4010 * trad-frame.h (trad_frame_set_realreg): Declare.
4011 (trad_frame_set_addr): Declare.
4012 * trad-frame.c (trad_frame_set_realreg): Define new function.
4013 (trad_frame_set_addr): Define new function.
4014 (trad_frame_set_reg_realreg): Use new function.
4015 (trad_frame_set_reg_addr): Use new function.
4016
4017 2018-09-01 Keith Seitz <keiths@redhat.com>
4018
4019 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
4020 pulongest instead of "%lld".
4021 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
4022 ATTRIBUTE_UNUSED.
4023
4024 2018-08-31 Tom Tromey <tom@tromey.com>
4025
4026 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
4027 variant part type.
4028
4029 2018-08-31 Pedro Alves <palves@redhat.com>
4030
4031 * gdbarch.h: Regenerate.
4032
4033 2018-08-31 Pedro Alves <palves@redhat.com>
4034
4035 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
4036 * target.h (Hardware watchpoint interfaces): Describe
4037 continuable/steppable/non-steppable watchpoints.
4038 * gdbarch.h, gdbarch.c: Regenerate.
4039
4040 2018-08-31 Pedro Alves <palves@redhat.com>
4041
4042 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
4043 Delete.
4044 * s390-linux-nat.c
4045 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
4046 * target.h (target_ops::have_continuable_watchpoint): Delete.
4047 (target_have_continuable_watchpoint): Delete.
4048 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
4049 * target-delegates.c: Regenerate.
4050
4051 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4052
4053 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
4054 the files present in "gnulib/import/m4/".
4055
4056 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
4057
4058 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
4059 c.sw, c.swsp, and c.sdsp.
4060
4061 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
4062
4063 * riscv-tdep.c (struct riscv_inferior_data): Delete.
4064 (riscv_read_misa_reg): Don't cache value read into inferior data.
4065 (riscv_new_inferior_data): Delete.
4066 (riscv_inferior_data_cleanup): Delete.
4067 (riscv_inferior_data): Delete.
4068 (riscv_invalidate_inferior_data): Delete.
4069 (_initialize_riscv_tdep): Remove initialisation of inferior data.
4070
4071 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
4072
4073 * compile/compile-cplus-types.c
4074 (compile_cplus_instance::leave_scope): Take the address of scope
4075 object.
4076 (compile_cplus_instance::convert_qualified_base): Compare quals
4077 to 0.
4078
4079 2018-08-30 Keith Seitz <keiths@redhat.com>
4080
4081 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
4082 Use "%s" and host_address_to_string instead of "%p" in printf.
4083
4084 2018-08-29 Keith Seitz <keiths@redhat.com>
4085
4086 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
4087 and compile-cplus-types.c.
4088 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
4089 * c-lang.c (cplus_language_defn): Set C++ compile functions.
4090 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
4091 Declare.
4092 * compile/compile-c-support.c: Include compile-cplus.h.
4093 (load_libcompile): Templatize.
4094 (get_compile_context): "New" function.
4095 (c_get_compile_context): Use get_compile_context.
4096 (cplus_get_compile_context): New function.
4097 (cplus_push_user_expression, cplus_pop_user_expression)
4098 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
4099 (cplus_compute_program): Define new structs/functions.
4100 * compile/compile-cplus-symmbols.c: New file.
4101 * compile/compile-cplus-types.c: New file.
4102 * compile/compile-cplus.h: New file.
4103 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
4104 Declare.
4105 * compile/compile-object-load.c (get_out_value_type): Use
4106 strncmp_iw when comparing symbol names.
4107 (compile_object_load): Add mst_bss and mst_data.
4108 * compile/compile.c (_initialize_compile): Remove
4109 -Wno-implicit-function-declaration from `compile_args'.
4110 * compile/gcc-cp-plugin.h: New file.
4111 * NEWS: Mention C++ compile support and new debug options.
4112
4113 2018-08-29 Keith Seitz <keiths@redhat.com>
4114
4115 * linespec.c (collect_info::add_symbol): Make virtual.
4116 (struct symbol_searcher_collect_info): New struct.
4117 (symbol_searcher::find_all_symbols): New method.
4118 * symtab.h (class symbol_searcher): New class.
4119
4120 2018-08-29 Keith Seitz <keiths@redhat.com>
4121
4122 * linespec.c (struct linespec) <function_symbols, label_symbols>:
4123 Change to vector of block_symbol. Update all users.
4124 (struct collect_info) <symbols>: Likewise.
4125 (collect_info::add_symbol): Take block_symbol as argument.
4126 Update all callers.
4127 (decode_compound_collector) <m_symbols>: Change type to vector
4128 of block_symbol. Update all users.
4129 (decode_compound_collector::operator ()): Change parameter type
4130 to block_symbol.
4131 (find_method, find_function_symbols, find_linespec_symbols)
4132 (find_label_symbols_in_block, find_label_symbols): Change symbol
4133 vectors to block_symbol vectors.
4134 * symtab.h (symbol_found_callback_ftype): Change parameter type to
4135 block_symbol.
4136
4137 2018-08-29 Keith Seitz <keiths@redhat.com>
4138
4139 * linespec.c (symbolp): Remove typedef and VEC definitions.
4140 (bound_minimal_symbol_d): Likewise.
4141
4142 2018-08-29 Keith Seitz <keiths@redhat.com>
4143
4144 * linespec.c (decode_compound_collector::decode_compound_collector):
4145 Remove initialization for `m_symtabs'.
4146 (decode_compound_collector::release_symbols): Change return type
4147 to std::vector. Update all callers.
4148 (class decode_compound_collector) <m_symbols>: Change type to
4149 std::vector.
4150 (lookup_prefix_sym): Change return type to std::vector. Update all
4151 callers.
4152 (compare_symbols): Remove.
4153 (std_compare_symbols): Rename to `compare_symbols'.
4154 (find_method): Change `sym_classes' parameter to std::vector.
4155 Update all callers. Use std::sort to sort sym_classes.
4156 (find_linespec_symbols): Remove cleanup.
4157
4158 2018-08-29 Keith Seitz <keiths@redhat.com>
4159
4160 * linespec.c (struct linespec) <minimal_symbols>: Change type to
4161 std::vector. Update all users.
4162 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
4163 (struct collect_info) <minimal_symbols>: Likewise.
4164 (compare_msymbols): Return bool. Change parameters to const
4165 bound_minimal_symbol references.
4166 (find_method, find_function_symbols, find_linespec_symbols): Change
4167 `minsyms' parameter to std::vector. Update all callers.
4168
4169 2018-08-29 Keith Seitz <keiths@redhat.com>
4170
4171 * linespec.c (struct linespec) <label_symbols>: Change type to
4172 std::vector. Update all users.
4173 (find_label_symbols_in_block): Change `result' parameter to
4174 std::vector. Update all callers.
4175 (find_label_symbols): Return std::vector. Update all callers.
4176
4177 2018-08-29 Keith Seitz <keiths@redhat.com>
4178
4179 * linespec.c (struct linespec) <function_symbols>: Change type to
4180 std::vector. Update all users.
4181 (struct collect_info) <function_symbols>: Likewise.
4182 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
4183 (std_compare_symbols): New function.
4184 (find_method, find_function_symbols, find_linespec_symbols)
4185 (find_label_symbols_in_block): Change `symbols' parameter to
4186 std::vector. Update all callers.
4187 (find_label_symbols): Likewise for `function_symbols' and
4188 `label_funcs_ret'.
4189
4190 2018-08-29 Keith Seitz <keiths@redhat.com>
4191
4192 * linespec.c (symtab_vector_up): Define.
4193 (struct linespec) <file_symtabs>: Change type to std::vector *.
4194 Update all uses.
4195 (struct collect_info) <file_symtabs>: Likewise.
4196 (collect_symtabs_from_filename): Return symtab_vector_up.
4197 Update all callers.
4198 (decode_objc): Remove cleanup.
4199 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
4200 (symtab_collector::release_symtabs): Return symtab_vector_up.
4201 Update all callers.
4202 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
4203 Update all users.
4204 (collect_symtabs_from_filename, symtabs_from_filename): Return
4205 symtab_vector_up. Update all callers.
4206
4207 2018-08-29 Tom Tromey <tom@tromey.com>
4208
4209 * csky-tdep.c (csky_analyze_prologue): Use
4210 core_addr_to_string_nz.
4211
4212 2018-08-29 Tom Tromey <tom@tromey.com>
4213
4214 * windows-nat.c (struct xlate_exception) <them>: Change type to
4215 DWORD.
4216 (xlate): Fix formatting. Remove last entry.
4217 (struct xlate_exception, xlate): Comment out.
4218 (windows_nat_target::resume): Use ranged for.
4219
4220 2018-08-29 Jim Wilson <jimw@sifive.com>
4221
4222 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
4223 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
4224 of NT_PRFPREG.
4225 (riscv_linux_nat_target::store_registers): Likewise.
4226
4227 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
4228
4229 PR gdb/23555
4230 PR gdb/23558
4231 * gnulib/aclocal.m4: Regenerate.
4232 * gnulib/config.in: Regenerate.
4233 * gnulib/configure: Regenerate.
4234 * gnulib/import/Makefile.am: Update.
4235 * gnulib/import/Makefile.in: Update.
4236 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
4237 * gnulib/import/_Noreturn.h: ... this.
4238 * gnulib/import/alloca.in.h: Update.
4239 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
4240 * gnulib/import/arg-nonnull.h: ... this.
4241 * gnulib/import/assure.h: Update.
4242 * gnulib/import/at-func.c: Update.
4243 * gnulib/import/basename-lgpl.c: Update.
4244 * gnulib/import/extra/snippet/c++defs.h: Rename to...
4245 * gnulib/import/c++defs.h: ... this.
4246 * gnulib/import/canonicalize-lgpl.c: Update.
4247 * gnulib/import/cdefs.h: Update.
4248 * gnulib/import/chdir-long.c: Update.
4249 * gnulib/import/chdir-long.h: Update.
4250 * gnulib/import/cloexec.c: Update.
4251 * gnulib/import/cloexec.h: Update.
4252 * gnulib/import/close.c: Update.
4253 * gnulib/import/closedir.c: Update.
4254 * gnulib/import/config.charset: Update.
4255 * gnulib/import/dirent-private.h: Update.
4256 * gnulib/import/dirent.in.h: Update.
4257 * gnulib/import/dirfd.c: Update.
4258 * gnulib/import/dirname-lgpl.c: Update.
4259 * gnulib/import/dirname.h: Update.
4260 * gnulib/import/dosname.h: Update.
4261 * gnulib/import/dup-safer-flag.c: Update.
4262 * gnulib/import/dup-safer.c: Update.
4263 * gnulib/import/dup.c: Update.
4264 * gnulib/import/dup2.c: Update.
4265 * gnulib/import/errno.in.h: Update.
4266 * gnulib/import/error.c: Update.
4267 * gnulib/import/error.h: Update.
4268 * gnulib/import/exitfail.c: Update.
4269 * gnulib/import/exitfail.h: Update.
4270 * gnulib/import/extra/update-copyright: Update.
4271 * gnulib/import/fchdir.c: Update.
4272 * gnulib/import/fcntl.c: Update.
4273 * gnulib/import/fcntl.in.h: Update.
4274 * gnulib/import/fd-hook.c: Update.
4275 * gnulib/import/fd-hook.h: Update.
4276 * gnulib/import/fd-safer-flag.c: Update.
4277 * gnulib/import/fd-safer.c: Update.
4278 * gnulib/import/fdopendir.c: Update.
4279 * gnulib/import/filename.h: Update.
4280 * gnulib/import/filenamecat-lgpl.c: Update.
4281 * gnulib/import/filenamecat.h: Update.
4282 * gnulib/import/flexmember.h: Update.
4283 * gnulib/import/float+.h: Update.
4284 * gnulib/import/float.c: Update.
4285 * gnulib/import/float.in.h: Update.
4286 * gnulib/import/fnmatch.c: Update.
4287 * gnulib/import/fnmatch.in.h: Update.
4288 * gnulib/import/fnmatch_loop.c: Update.
4289 * gnulib/import/fpucw.h: Update.
4290 * gnulib/import/frexp.c: Update.
4291 * gnulib/import/frexpl.c: Update.
4292 * gnulib/import/fstat.c: Update.
4293 * gnulib/import/fstatat.c: Update.
4294 * gnulib/import/getcwd-lgpl.c: Update.
4295 * gnulib/import/getcwd.c: Update.
4296 * gnulib/import/getdtablesize.c: Update.
4297 * gnulib/import/getlogin_r.c: Update.
4298 * gnulib/import/getprogname.c: Update.
4299 * gnulib/import/getprogname.h: Update.
4300 * gnulib/import/gettext.h: Update.
4301 * gnulib/import/gettimeofday.c: Update.
4302 * gnulib/import/glob-libc.h: Update.
4303 * gnulib/import/glob.c: Update.
4304 * gnulib/import/glob.in.h: Update.
4305 * gnulib/import/glob_internal.h: Update.
4306 * gnulib/import/glob_pattern_p.c: Update.
4307 * gnulib/import/globfree.c: Update.
4308 * gnulib/import/hard-locale.c: Update.
4309 * gnulib/import/hard-locale.h: Update.
4310 * gnulib/import/intprops.h: Update.
4311 * gnulib/import/inttypes.in.h: Update.
4312 * gnulib/import/isnan.c: Update.
4313 * gnulib/import/isnand-nolibm.h: Update.
4314 * gnulib/import/isnand.c: Update.
4315 * gnulib/import/isnanl-nolibm.h: Update.
4316 * gnulib/import/isnanl.c: Update.
4317 * gnulib/import/itold.c: Update.
4318 * gnulib/import/libc-config.h: Update.
4319 * gnulib/import/limits.in.h: Update.
4320 * gnulib/import/localcharset.c: Update.
4321 * gnulib/import/localcharset.h: Update.
4322 * gnulib/import/localtime-buffer.c: Update.
4323 * gnulib/import/localtime-buffer.h: Update.
4324 * gnulib/import/lstat.c: Update.
4325 * gnulib/import/m4/00gnulib.m4: Update.
4326 * gnulib/import/m4/__inline.m4: Update.
4327 * gnulib/import/m4/absolute-header.m4: Update.
4328 * gnulib/import/m4/alloca.m4: Update.
4329 * gnulib/import/m4/builtin-expect.m4: Update.
4330 * gnulib/import/m4/canonicalize.m4: Update.
4331 * gnulib/import/m4/chdir-long.m4: Update.
4332 * gnulib/import/m4/close.m4: Update.
4333 * gnulib/import/m4/closedir.m4: Update.
4334 * gnulib/import/m4/configmake.m4: Update.
4335 * gnulib/import/m4/d-ino.m4: Update.
4336 * gnulib/import/m4/d-type.m4: Update.
4337 * gnulib/import/m4/dirent_h.m4: Update.
4338 * gnulib/import/m4/dirfd.m4: Update.
4339 * gnulib/import/m4/dirname.m4: Update.
4340 * gnulib/import/m4/double-slash-root.m4: Update.
4341 * gnulib/import/m4/dup.m4: Update.
4342 * gnulib/import/m4/dup2.m4: Update.
4343 * gnulib/import/m4/eealloc.m4: Update.
4344 * gnulib/import/m4/environ.m4: Update.
4345 * gnulib/import/m4/errno_h.m4: Update.
4346 * gnulib/import/m4/error.m4: Update.
4347 * gnulib/import/m4/exponentd.m4: Update.
4348 * gnulib/import/m4/exponentl.m4: Update.
4349 * gnulib/import/m4/extensions.m4: Update.
4350 * gnulib/import/m4/extern-inline.m4: Update.
4351 * gnulib/import/m4/fchdir.m4: Update.
4352 * gnulib/import/m4/fcntl-o.m4: Update.
4353 * gnulib/import/m4/fcntl.m4: Update.
4354 * gnulib/import/m4/fcntl_h.m4: Update.
4355 * gnulib/import/m4/fdopendir.m4: Update.
4356 * gnulib/import/m4/filenamecat.m4: Update.
4357 * gnulib/import/m4/flexmember.m4: Update.
4358 * gnulib/import/m4/float_h.m4: Update.
4359 * gnulib/import/m4/fnmatch.m4: Update.
4360 * gnulib/import/m4/fnmatch_h.m4: Update.
4361 * gnulib/import/m4/fpieee.m4: Update.
4362 * gnulib/import/m4/frexp.m4: Update.
4363 * gnulib/import/m4/frexpl.m4: Update.
4364 * gnulib/import/m4/fstat.m4: Update.
4365 * gnulib/import/m4/fstatat.m4: Update.
4366 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
4367 * gnulib/import/m4/getcwd-path-max.m4: Update.
4368 * gnulib/import/m4/getcwd.m4: Update.
4369 * gnulib/import/m4/getdtablesize.m4: Update.
4370 * gnulib/import/m4/getlogin.m4: Update.
4371 * gnulib/import/m4/getlogin_r.m4: Update.
4372 * gnulib/import/m4/getpagesize.m4: Update.
4373 * gnulib/import/m4/getprogname.m4: Update.
4374 * gnulib/import/m4/gettimeofday.m4: Update.
4375 * gnulib/import/m4/glibc21.m4: Update.
4376 * gnulib/import/m4/glob.m4: Update.
4377 * gnulib/import/m4/glob_h.m4: Update.
4378 * gnulib/import/m4/gnulib-cache.m4: Update.
4379 * gnulib/import/m4/gnulib-common.m4: Update.
4380 * gnulib/import/m4/gnulib-comp.m4: Update.
4381 * gnulib/import/m4/gnulib-tool.m4: Update.
4382 * gnulib/import/m4/hard-locale.m4: Update.
4383 * gnulib/import/m4/include_next.m4: Update.
4384 * gnulib/import/m4/inttypes-pri.m4: Update.
4385 * gnulib/import/m4/inttypes.m4: Update.
4386 * gnulib/import/m4/isnand.m4: Update.
4387 * gnulib/import/m4/isnanl.m4: Update.
4388 * gnulib/import/m4/largefile.m4: Update.
4389 * gnulib/import/m4/limits-h.m4: Update.
4390 * gnulib/import/m4/localcharset.m4: Update.
4391 * gnulib/import/m4/locale-fr.m4: Update.
4392 * gnulib/import/m4/locale-ja.m4: Update.
4393 * gnulib/import/m4/locale-zh.m4: Update.
4394 * gnulib/import/m4/localtime-buffer.m4: Update.
4395 * gnulib/import/m4/longlong.m4: Update.
4396 * gnulib/import/m4/lstat.m4: Update.
4397 * gnulib/import/m4/malloc.m4: Update.
4398 * gnulib/import/m4/malloca.m4: Update.
4399 * gnulib/import/m4/math_h.m4: Update.
4400 * gnulib/import/m4/mbrtowc.m4: Update.
4401 * gnulib/import/m4/mbsinit.m4: Update.
4402 * gnulib/import/m4/mbsrtowcs.m4: Update.
4403 * gnulib/import/m4/mbstate_t.m4: Update.
4404 * gnulib/import/m4/memchr.m4: Update.
4405 * gnulib/import/m4/memmem.m4: Update.
4406 * gnulib/import/m4/mempcpy.m4: Update.
4407 * gnulib/import/m4/memrchr.m4: Update.
4408 * gnulib/import/m4/mkdir.m4: Update.
4409 * gnulib/import/m4/mkstemp.m4: Update.
4410 * gnulib/import/m4/mmap-anon.m4: Update.
4411 * gnulib/import/m4/mode_t.m4: Update.
4412 * gnulib/import/m4/msvc-inval.m4: Update.
4413 * gnulib/import/m4/msvc-nothrow.m4: Update.
4414 * gnulib/import/m4/multiarch.m4: Update.
4415 * gnulib/import/m4/nocrash.m4: Update.
4416 * gnulib/import/m4/off_t.m4: Update.
4417 * gnulib/import/m4/onceonly.m4: Update.
4418 * gnulib/import/m4/open-cloexec.m4: Update.
4419 * gnulib/import/m4/open.m4: Update.
4420 * gnulib/import/m4/openat.m4: Update.
4421 * gnulib/import/m4/opendir.m4: Update.
4422 * gnulib/import/m4/pathmax.m4: Update.
4423 * gnulib/import/m4/rawmemchr.m4: Update.
4424 * gnulib/import/m4/readdir.m4: Update.
4425 * gnulib/import/m4/readlink.m4: Update.
4426 * gnulib/import/m4/realloc.m4: Update.
4427 * gnulib/import/m4/rename.m4: Update.
4428 * gnulib/import/m4/rewinddir.m4: Update.
4429 * gnulib/import/m4/rmdir.m4: Update.
4430 * gnulib/import/m4/save-cwd.m4: Update.
4431 * gnulib/import/m4/secure_getenv.m4: Update.
4432 * gnulib/import/m4/setenv.m4: Update.
4433 * gnulib/import/m4/signal_h.m4: Update.
4434 * gnulib/import/m4/ssize_t.m4: Update.
4435 * gnulib/import/m4/stat-time.m4: Update.
4436 * gnulib/import/m4/stat.m4: Update.
4437 * gnulib/import/m4/std-gnu11.m4: Update.
4438 * gnulib/import/m4/stdbool.m4: Update.
4439 * gnulib/import/m4/stddef_h.m4: Update.
4440 * gnulib/import/m4/stdint.m4: Update.
4441 * gnulib/import/m4/stdio_h.m4: Update.
4442 * gnulib/import/m4/stdlib_h.m4: Update.
4443 * gnulib/import/m4/strchrnul.m4: Update.
4444 * gnulib/import/m4/strdup.m4: Update.
4445 * gnulib/import/m4/strerror.m4: Update.
4446 * gnulib/import/m4/string_h.m4: Update.
4447 * gnulib/import/m4/strstr.m4: Update.
4448 * gnulib/import/m4/strtok_r.m4: Update.
4449 * gnulib/import/m4/sys_socket_h.m4: Update.
4450 * gnulib/import/m4/sys_stat_h.m4: Update.
4451 * gnulib/import/m4/sys_time_h.m4: Update.
4452 * gnulib/import/m4/sys_types_h.m4: Update.
4453 * gnulib/import/m4/tempname.m4: Update.
4454 * gnulib/import/m4/time_h.m4: Update.
4455 * gnulib/import/m4/unistd-safer.m4: Update.
4456 * gnulib/import/m4/unistd_h.m4: Update.
4457 * gnulib/import/m4/warn-on-use.m4: Update.
4458 * gnulib/import/m4/wchar_h.m4: Update.
4459 * gnulib/import/m4/wchar_t.m4: Update.
4460 * gnulib/import/m4/wctype_h.m4: Update.
4461 * gnulib/import/m4/wint_t.m4: Update.
4462 * gnulib/import/malloc.c: Update.
4463 * gnulib/import/malloc/scratch_buffer.h: Update.
4464 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
4465 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
4466 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
4467 * gnulib/import/malloca.c: Update.
4468 * gnulib/import/malloca.h: Update.
4469 * gnulib/import/malloca.valgrind: Update.
4470 * gnulib/import/math.in.h: Update.
4471 * gnulib/import/mbrtowc.c: Update.
4472 * gnulib/import/mbsinit.c: Update.
4473 * gnulib/import/mbsrtowcs-impl.h: Update.
4474 * gnulib/import/mbsrtowcs-state.c: Update.
4475 * gnulib/import/mbsrtowcs.c: Update.
4476 * gnulib/import/memchr.c: Update.
4477 * gnulib/import/memmem.c: Update.
4478 * gnulib/import/mempcpy.c: Update.
4479 * gnulib/import/memrchr.c: Update.
4480 * gnulib/import/mkdir.c: Update.
4481 * gnulib/import/mkstemp.c: Update.
4482 * gnulib/import/msvc-inval.c: Update.
4483 * gnulib/import/msvc-inval.h: Update.
4484 * gnulib/import/msvc-nothrow.c: Update.
4485 * gnulib/import/msvc-nothrow.h: Update.
4486 * gnulib/import/open.c: Update.
4487 * gnulib/import/openat-die.c: Update.
4488 * gnulib/import/openat-priv.h: Update.
4489 * gnulib/import/openat-proc.c: Update.
4490 * gnulib/import/openat.c: Update.
4491 * gnulib/import/openat.h: Update.
4492 * gnulib/import/opendir.c: Update.
4493 * gnulib/import/pathmax.h: Update.
4494 * gnulib/import/pipe-safer.c: Update.
4495 * gnulib/import/rawmemchr.c: Update.
4496 * gnulib/import/readdir.c: Update.
4497 * gnulib/import/readlink.c: Update.
4498 * gnulib/import/realloc.c: Update.
4499 * gnulib/import/ref-add.sin: Update.
4500 * gnulib/import/ref-del.sin: Update.
4501 * gnulib/import/rename.c: Update.
4502 * gnulib/import/rewinddir.c: Update.
4503 * gnulib/import/rmdir.c: Update.
4504 * gnulib/import/same-inode.h: Update.
4505 * gnulib/import/save-cwd.c: Update.
4506 * gnulib/import/save-cwd.h: Update.
4507 * gnulib/import/scratch_buffer.h: Update.
4508 * gnulib/import/secure_getenv.c: Update.
4509 * gnulib/import/setenv.c: Update.
4510 * gnulib/import/signal.in.h: Update.
4511 * gnulib/import/stat-time.c: Update.
4512 * gnulib/import/stat-time.h: Update.
4513 * gnulib/import/stat-w32.c: Update.
4514 * gnulib/import/stat-w32.h: Update.
4515 * gnulib/import/stat.c: Update.
4516 * gnulib/import/stdbool.in.h: Update.
4517 * gnulib/import/stddef.in.h: Update.
4518 * gnulib/import/stdint.in.h: Update.
4519 * gnulib/import/stdio.in.h: Update.
4520 * gnulib/import/stdlib.in.h: Update.
4521 * gnulib/import/str-two-way.h: Update.
4522 * gnulib/import/strchrnul.c: Update.
4523 * gnulib/import/strdup.c: Update.
4524 * gnulib/import/streq.h: Update.
4525 * gnulib/import/strerror-override.c: Update.
4526 * gnulib/import/strerror-override.h: Update.
4527 * gnulib/import/strerror.c: Update.
4528 * gnulib/import/string.in.h: Update.
4529 * gnulib/import/stripslash.c: Update.
4530 * gnulib/import/strnlen1.c: Update.
4531 * gnulib/import/strnlen1.h: Update.
4532 * gnulib/import/strstr.c: Update.
4533 * gnulib/import/strtok_r.c: Update.
4534 * gnulib/import/sys_stat.in.h: Update.
4535 * gnulib/import/sys_time.in.h: Update.
4536 * gnulib/import/sys_types.in.h: Update.
4537 * gnulib/import/tempname.c: Update.
4538 * gnulib/import/tempname.h: Update.
4539 * gnulib/import/time.in.h: Update.
4540 * gnulib/import/unistd--.h: Update.
4541 * gnulib/import/unistd-safer.h: Update.
4542 * gnulib/import/unistd.in.h: Update.
4543 * gnulib/import/unsetenv.c: Update.
4544 * gnulib/import/verify.h: Update.
4545 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4546 * gnulib/import/wchar.in.h: Update.
4547 * gnulib/import/wctype.in.h: Update.
4548 * gnulib/import/xalloc-oversized.h: Update.
4549 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4550 "53e2c179f26a890fa6685af4b6c1397ee370433b".
4551
4552 2018-08-16 Gary Benson <gbenson@redhat.com>
4553
4554 PR gdb/13000:
4555 * gdb/main.c (captured_main_1): Exit with nonzero status
4556 in batch mode if the last command to be executed failed.
4557 * NEWS: Mention the above.
4558
4559 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
4560
4561 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
4562 end of warning message.
4563
4564 2018-08-29 Alan Hayward <alan.hayward@arm.com>
4565
4566 PR gdb/22943:
4567 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
4568 (aarch64_extract_return_value): Use
4569 aapcs_is_vfp_call_or_return_candidate.
4570 (aarch64_return_in_memory): Likewise.
4571 (aarch64_store_return_value): Likewise.
4572
4573 2018-08-29 Alan Hayward <alan.hayward@arm.com>
4574
4575 * aarch64-tdep.c
4576 (aapcs_is_vfp_call_or_return_candidate): Make static
4577 (pass_in_v_or_stack): Remove function.
4578 (pass_in_v_vfp_candidate): New function.
4579 (aarch64_push_dummy_call): Check for float register candidates.
4580
4581 2018-08-29 Alan Hayward <alan.hayward@arm.com>
4582
4583 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
4584 (aapcs_is_vfp_call_or_return_candidate_1): New function.
4585 (aapcs_is_vfp_call_or_return_candidate): Likewise.
4586
4587 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4588
4589 PR build/23399
4590 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
4591 (struct ipa_sym_addresses): Rename to...
4592 (struct ipa_sym_addresses_common): ... this.
4593 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
4594
4595 2018-08-28 Tom Tromey <tom@tromey.com>
4596
4597 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4598 (token_fifo): Now a std::vector.
4599 (yylex, c_parse): Update.
4600 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4601 (token_fifo): Now a std::vector.
4602 (yylex, d_parse): Update.
4603 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4604 (token_fifo): Now a std::vector.
4605 (yylex, go_parse): Update.
4606
4607 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
4608
4609 * parser-defs.h (struct type_stack) <elements>: Change type to
4610 std::vector<union type_stack_elt>.
4611 <depth, size>: Remove.
4612 * parse.c (parse_exp_in_context_1): Adjust.
4613 (type_stack_reserve): Remove.
4614 (check_type_stack_depth): Remove.
4615 (insert_into_type_stack): Adjust to std::vector.
4616 (insert_type): Likewise.
4617 (push_type): Likewise.
4618 (push_type_int): Likewise.
4619 (insert_type_address_space): Likewise.
4620 (pop_type): Likewise.
4621 (pop_type_int): Likewise.
4622 (pop_typelist): Likewise.
4623 (pop_type_stack): Likewise.
4624 (append_type_stack): Likewise.
4625 (push_type_stack): Likewise.
4626 (get_type_stack): Likewise.
4627 (type_stack_cleanup): Likewise.
4628 (push_typelist): Likewise.
4629 (follow_types): Likewise.
4630 (_initialize_parse): Likewise.
4631
4632 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
4633
4634 * NEWS: Mention csky target.
4635
4636 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
4637 Hafiz Abid Qadeer <abidh@codesourcery.com>
4638 Don Breazeal <donb@codesourcery.com>
4639
4640 * csky-linux-tdep.c: New file.
4641 * csky-tdep.c: Likewise.
4642 * csky-tdep.h: Likewise.
4643 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
4644 csky-tdep.o.
4645 (HFILES_NO_SRCDIR): Add csky-tdep.h.
4646 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
4647 * configure.tgt: Add csky support.
4648
4649 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
4650
4651 * python/py-framefilter.c (py_print_frame): Print frame architecture
4652 when printing on an MI output.
4653
4654 2018-08-27 Tom Tromey <tom@tromey.com>
4655
4656 PR build/23087:
4657 * configure: Rebuild.
4658 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
4659
4660 2018-08-27 Tom Tromey <tom@tromey.com>
4661
4662 * aarch64-linux-tdep.c
4663 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
4664 casts to int.
4665
4666 2018-08-27 Tom Tromey <tom@tromey.com>
4667
4668 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
4669 unsigned.
4670 (ppc64_standard_linkage1, ppc64_standard_linkage2)
4671 (ppc64_standard_linkage3, ppc64_standard_linkage4)
4672 (ppc64_standard_linkage5, ppc64_standard_linkage6)
4673 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
4674 unsigned.
4675
4676 2018-08-27 Tom Tromey <tom@tromey.com>
4677
4678 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
4679 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
4680
4681 2018-08-27 Tom Tromey <tom@tromey.com>
4682
4683 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
4684 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
4685 ULONGEST_MAX.
4686 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
4687 ULONGEST_MAX.
4688 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
4689 ULONGEST_MAX.
4690 * sparc-linux-tdep.c (sparc32_linux_sigframe)
4691 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
4692 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
4693 ULONGEST_MAX.
4694 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
4695 (ppc64_linux_sigaction_tramp_frame)
4696 (ppc32_linux_sighandler_tramp_frame)
4697 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4698 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
4699 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
4700 * mn10300-linux-tdep.c (am33_linux_sigframe)
4701 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
4702 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
4703 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4704 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4705 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
4706 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
4707 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
4708 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
4709 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
4710 * microblaze-linux-tdep.c
4711 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4712 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
4713 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
4714 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
4715 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
4716 * common/common-types.h (ULONGEST_MAX): New define.
4717 (CORE_ADDR_MAX): Fix formatting.
4718 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
4719 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
4720 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
4721 (arm_linux_rt_sigreturn_tramp_frame)
4722 (arm_eabi_linux_sigreturn_tramp_frame)
4723 (arm_eabi_linux_rt_sigreturn_tramp_frame)
4724 (thumb2_eabi_linux_sigreturn_tramp_frame)
4725 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
4726 (arm_linux_restart_syscall_tramp_frame)
4727 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
4728 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
4729 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
4730 ULONGEST_MAX.
4731 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
4732
4733 2018-08-27 Tom Tromey <tom@tromey.com>
4734
4735 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
4736 CORE_ADDR_MAX.
4737 * mips-tdep.c (mips_deal_with_atomic_sequence)
4738 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
4739 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
4740 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
4741 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
4742 CORE_ADDR_MAX.
4743 * aarch64-tdep.c (aarch64_software_single_step): Use
4744 CORE_ADDR_MAX.
4745
4746 2018-08-27 Tom Tromey <tom@tromey.com>
4747
4748 * linespec.c (complete_linespec_component): Add cast to "char".
4749 * completer.c (completion_tracker::build_completion_result): Add
4750 cast to "char".
4751
4752 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4753
4754 * solist.h (struct solist, struct target_so_ops): Fix
4755 indentation.
4756
4757 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4758
4759 * ada-tasks.c (ada_task_info_s): Remove typedef.
4760 (DEF_VEC_O(ada_task_info_s)): Remove.
4761 (struct ada_tasks_inferior_data): Initialize fields.
4762 <task_list>: Make an std::vector.
4763 (get_ada_tasks_inferior_data): Allocate with new.
4764 (ada_get_task_number): Adjust.
4765 (get_task_number_from_id): Likewise.
4766 (valid_task_id): Likewise.
4767 (ada_get_task_info_from_ptid): Likewise.
4768 (iterate_over_live_ada_tasks): Likewise.
4769 (add_ada_task): Likewise.
4770 (read_known_tasks): Likewise.
4771 (ada_build_task_list): Likewise.
4772 (print_ada_task_info): Likewise.
4773 (info_task): Likewise.
4774 (task_command_1): Likewise.
4775
4776 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4777
4778 * ada-lang.c (add_angle_brackets): Return std::string.
4779
4780 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
4781
4782 * python/py-threadevent.c (py_get_event_thread): Initialize
4783 pythread.
4784
4785 2018-08-24 Pedro Alves <palves@redhat.com>
4786
4787 * python/py-bpevent.c (create_breakpoint_event_object): Use
4788 copy-initialization.
4789 * python/py-continueevent.c (emit_continue_event): Use
4790 copy-initialization.
4791 * python/py-exitedevent.c (create_exited_event_object): Return a
4792 gdbpy_ref<>.
4793 (emit_exited_event): Use copy-initialization.
4794 * python/py-inferior.c (python_new_inferior)
4795 (python_inferior_deleted, add_thread_object): Use
4796 copy-initialization.
4797 * python/py-infevents.c (create_inferior_call_event_object)
4798 (create_register_changed_event_object)
4799 (create_memory_changed_event_object): Return a gdbpy_ref<>.
4800 (emit_inferior_call_event, emit_memory_changed_event)
4801 (emit_register_changed_event): Use copy-initialization.
4802 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4803 Return a gdbpy_ref<>.
4804 (emit_new_objfile_event): Use copy-initialization.
4805 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
4806 (emit_clear_objfiles_event): Use copy-initialization.
4807 * python/py-signalevent.c (create_signal_event_object): Use
4808 copy-initialization.
4809 * python/py-threadevent.c (create_thread_event_object): Use
4810 copy-initialization.
4811
4812 2018-08-24 Pedro Alves <palves@redhat.com>
4813 Simon Marchi <simon.marchi@ericsson.com>
4814
4815 PR gdb/23379
4816 * python/py-continueevent.c: Include "gdbthread.h".
4817 (create_continue_event_object): Add intro comment. Add 'ptid'
4818 parameter. Use it to find thread to pass to
4819 create_thread_event_object.
4820 (emit_continue_event): Pass PTID down to
4821 create_continue_event_object.
4822 * python/py-event.h (py_get_event_thread): Declare.
4823 (create_thread_event_object): Remove default from 'thread'
4824 parameter.
4825 * python/py-stopevent.c (create_stop_event_object): Use
4826 py_get_event_thread.
4827 * python/py-threadevent.c (get_event_thread): Rename to ...
4828 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
4829 and use it to find the thread.
4830 (create_thread_event_object): Assert that THREAD isn't null.
4831 Don't find the event thread here.
4832
4833 2018-08-23 Kevin Buettner <kevinb@redhat.com>
4834
4835 * block.h (blockrange, blockranges): New struct declarations.
4836 (struct block): Add new field named `ranges'.
4837 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
4838 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
4839 macros for accessing ranges in struct block.
4840 (make_blockranges): New declaration.
4841 block.c (make_blockranges): New function.
4842 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
4843 for block.
4844 * symtab.h (find_pc_partial_function): Add new parameter `block'.
4845 * blockframe.c (cache_pc_function_block): New static global.
4846 (clear_pc_function_cache): Clear cache_pc_function_block.
4847 (find_pc_partial_function): Move comment to symtab.h. Add
4848 support for non-contiguous blocks.
4849 * cli/cli-cmds.c (block.h): Include.
4850 (print_disassembly): Handle printing of non-contiguous blocks.
4851 (disassemble_current_function): Likewise.
4852 (disassemble_command): Likewise.
4853
4854 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
4855 BLOCK_START.
4856 * blockframe.c (get_pc_function_start): Likewise.
4857 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
4858 (gcc_symbol_address): Likewise.
4859 * compile/compile-object-run.c (compile_object_run): Likewise.
4860 * compile/compile.c (get_expr_block_and_pc): Likewise.
4861 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
4862 (func_addr_to_tail_call_list): Likewise.
4863 * findvar.c (default_read_var_value): Likewise.
4864 * inline-frame.c (inline_frame_this_id): Likewise.
4865 (skip-inline_frames): Likewise.
4866 * infcmd.c (until_next_command): Likewise.
4867 * linespec.c (convert_linespec_to_sals): Likewise.
4868 * parse.c (parse_exp_in_context_1): Likewise.
4869 * printcmd.c (build_address_symbolic): likewise.
4870 (info_address_command): Likewise.
4871 symtab.c (find_function_start_sal): Likewise.
4872 (skip_prologue_sal): Likewise.
4873 (find_function_alias_target): Likewise.
4874 (find_gnu_ifunc): Likewise.
4875 * stack.c (find_frame_funname): Likewise.
4876 * symtab.c (fixup_symbol_section): Likewise.
4877 (find_function_start_sal): Likewise.
4878 (skip_prologue_sal): Likewsie.
4879 (find_function_alias_target): Likewise.
4880 (find_gnu_ifunc): Likewise.
4881 * tracepoint.c (info_scope_command): Likewise.
4882 * value.c (value_fn_field): Likewise.
4883
4884 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
4885 in place of find_pc_partial_function.
4886 * blockframe.c (find_function_entry_range_from_pc): New function.
4887 * symtab.h (find_function_entry_range_from_pc): Declare and document.
4888 * objfiles.c (objfile_relocate1): Relocate start and end addresses
4889 for each range in a block.
4890
4891
4892 2018-08-23 Xavier Roirand <roirand@adacore.com>
4893
4894 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
4895 incrementation.
4896
4897 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4898
4899 * solib-svr4.c (read_program_headers_from_bfd): Return
4900 gdb::optional<gdb::byte_vector>.
4901 (svr4_exec_displacement): Adjust.
4902
4903 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4904
4905 * solib-svr4.c (read_program_header): Return
4906 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
4907 (find_program_interpreter): Return
4908 gdb::optional<gdb::byte_vector>.
4909 (scan_dyntag_auxv): Adjust.
4910 (enable_break): Adjust.
4911 (svr4_exec_displacement): Adjust.
4912
4913 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4914
4915 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
4916 * inf-child.c (inf_child_target::terminal_save_inferior): New.
4917
4918 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4919
4920 * guile/scm-string.c (gdbscm_scm_from_printf): Use
4921 string_vprintf.
4922 * guile/scm-utils.c (gdbscm_printf): Likewise.
4923 * serial.c (serial_printf): Likewise.
4924 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
4925
4926 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
4927
4928 * stack.c (print_frame): Print frame architecture when printing on
4929 an MI output.
4930 * NEWS: Mention new "arch" attribute in frame output.
4931
4932 2018-08-21 Alan Hayward <alan.hayward@arm.com>
4933
4934 * arch/aarch64.h (aarch64_regnum): Update comment.
4935
4936 2018-08-21 Alan Hayward <alan.hayward@arm.com>
4937
4938 * NEWS: Add SVE to 8.2 section.
4939
4940 2018-08-21 Pedro Alves <palves@redhat.com>
4941
4942 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
4943 out from gdbscm_parse_function_args.
4944 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
4945 gdbscm_parse_function_args_1.
4946
4947 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
4948
4949 PR gdb/17816
4950 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
4951 operator.
4952
4953 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
4954
4955 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
4956
4957 2018-08-19 Michael Spang <spang@google.com>
4958
4959 PR gdb/11786
4960 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
4961 for PT_TLS segments.
4962
4963 2018-08-18 Kevin Buettner <kevinb@redhat.com>
4964
4965 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
4966 dwarf_variable_value.
4967 * dwarf2-frame.c (class dwarf_expr_executor):
4968 Add override for dwarf_variable_value.
4969 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
4970 (class symbol_needs_eval_context): Likewise.
4971 (indirect_synthetic_pointer): Add forward declaration.
4972 (sect_variable_value): New function.
4973 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
4974 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
4975 for DW_OP_GNU_variable_value.
4976
4977 2018-08-16 Tom Tromey <tom@tromey.com>
4978
4979 * top.c (read_command_file): Update.
4980 (command_line_input): Remove "repeat" argument.
4981 * ada-lang.c (get_selections): Update.
4982 * linespec.c (decode_line_2): Update.
4983 * defs.h (command_line_input): Remove argument.
4984 * cli/cli-script.c (read_next_line): Update.
4985 * python/py-gdb-readline.c: Update.
4986
4987 2018-08-17 Tom Tromey <tom@tromey.com>
4988
4989 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
4990 command_line_input.
4991
4992 2018-08-15 Tom Tromey <tom@tromey.com>
4993
4994 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
4995
4996 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
4997
4998 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
4999 If used, use find_pc_partial_function to find address range
5000 to disassemble.
5001 * mi/mi-main.c (mi_cmd_list_features): Report
5002 "data-disassemble-a-option" feature.
5003 * NEWS: Mention new -data-disassemble option -a.
5004
5005 2018-08-13 Tom Tromey <tom@tromey.com>
5006
5007 * common/common-defs.h (_FORTIFY_SOURCE): Define.
5008
5009 2018-08-13 Alan Hayward <alan.hayward@arm.com>
5010
5011 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
5012 (aarch64_linux_collect_sve_regset): Likewise.
5013 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
5014 * regcache.h (regcache_map_entry_size): New function.
5015
5016 2018-08-13 Alan Hayward <alan.hayward@arm.com>
5017
5018 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
5019 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
5020 (SVE_HEADER_VL_LENGTH): Likewise.
5021 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
5022 (SVE_HEADER_FLAGS_LENGTH): Likewise.
5023 (SVE_HEADER_RESERVED_LENGTH): Likewise.
5024 (SVE_HEADER_SIZE_OFFSET): Likewise.
5025 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
5026 (SVE_HEADER_VL_OFFSET): Likewise.
5027 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
5028 (SVE_HEADER_FLAGS_OFFSET): Likewise.
5029 (SVE_HEADER_RESERVED_OFFSET): Likewise.
5030 (SVE_HEADER_SIZE): Likewise.
5031 (aarch64_linux_core_read_vq): Add function.
5032 (aarch64_linux_core_read_description): Check for SVE section.
5033
5034 2018-08-13 Alan Hayward <alan.hayward@arm.com>
5035
5036 * aarch64-fbsd-tdep.c
5037 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
5038 collect_size.
5039 * aarch64-linux-tdep.c
5040 (aarch64_linux_iterate_over_regset_sections): Likewise.
5041 * alpha-linux-tdep.c
5042 (alpha_linux_iterate_over_regset_sections):
5043 * alpha-nbsd-tdep.c
5044 (alphanbsd_iterate_over_regset_sections): Likewise.
5045 * amd64-fbsd-tdep.c
5046 (amd64fbsd_iterate_over_regset_sections): Likewise.
5047 * amd64-linux-tdep.c
5048 (amd64_linux_iterate_over_regset_sections): Likewise.
5049 * arm-bsd-tdep.c
5050 (armbsd_iterate_over_regset_sections): Likewise.
5051 * arm-fbsd-tdep.c
5052 (arm_fbsd_iterate_over_regset_sections): Likewise.
5053 * arm-linux-tdep.c
5054 (arm_linux_iterate_over_regset_sections): Likewise.
5055 * corelow.c (get_core_registers_cb): Likewise.
5056 (core_target::fetch_registers): Likewise.
5057 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
5058 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
5059 * gdbarch.h (void): Regenerate.
5060 * gdbarch.sh: Add supply_size and collect_size.
5061 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
5062 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
5063 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
5064 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
5065 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
5066 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
5067 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
5068 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
5069 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
5070 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
5071 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
5072 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
5073 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
5074 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
5075 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections):
5076 Likewise.
5077 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
5078 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
5079 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
5080 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
5081 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
5082 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
5083 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections):
5084 Likewise.
5085 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
5086 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
5087 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
5088 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
5089 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
5090 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
5091 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
5092 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
5093
5094 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
5095
5096 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
5097 with string_printf.
5098
5099 2018-08-10 Keith Seitz <keiths@redhat.com>
5100
5101 * compile/compile-c-support.c (add_code_header, add_code_footer):
5102 Move into policy class.
5103 (c_push_user_expression, pop_user_expression_nop)
5104 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
5105 (compile_program): New host class.
5106 (c_compile_program): New typedef.
5107 (c_compute_porgram): Use c_compile_program.
5108
5109 2018-08-10 Keith Seitz <keiths@redhat.com>
5110
5111 * compile/compile-internal.h (compile_instance::~compile_instance):
5112 Remove calls to htab_delete.
5113 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
5114 * compile.c (compile_instance::compile_instance): Initialize
5115 htab unique pointers.
5116 (compile_instance::get_cached_type, compile_instance::insert_type)
5117 (compile_instance::error_symbol_once): Update for unique_ptr.
5118
5119 2018-08-10 Keith Seitz <keiths@redhat.com>
5120
5121 * compile/compile-c-symbols.c (struct symbol_error)
5122 (hash_symbol_error, eq_symbol_error, del_symbol_error)
5123 (compile_instance::insert_symbol_error)
5124 (compile_instance::error_symbol_once): Move to ...
5125 * compile/compile.c: ... here.
5126
5127 2018-08-10 Keith Seitz <keiths@redhat.com>
5128
5129 * compile/compile-c-support.c (c_get_compile_context): Use `new'
5130 instead of `new_compile_instance'.
5131 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
5132 Update description.
5133 If the symbol error map is not initialized, create it.
5134 (generate_c_for_for_one_symbol): Do not check/initialize
5135 the symbol error map.
5136 * compile/compile-c-types.c (compile_c_instance): Make a class.
5137 Update all callers.
5138 (compile_instance::compile_instance): Initialize the type cache.
5139 (get_cached_type): New function.
5140 (insert_type): Update description.
5141 (compile_c_instance::m_default_cflags): Define.
5142 (convert_type): Update description. Use get_cached_type.
5143 (delete_instance): Moved to destructor.
5144 (new_compile_instance): Moved to constructor.
5145 * compile/compile-c.h (compile_c_instance): Make class inheriting
5146 from compile_instance.
5147 <base>: Remove field.
5148 <type_map, symbol_err_map>: Move to base class.
5149 <c_plugin>: Rename to `m_plugin' and remove pointer type.
5150 * compile/compile-internal.h (compile_instance): Make class.
5151 <type_map_t, symbol_err_map_t>: Define.
5152 <fe>: Rename to `m_gcc_fe'.
5153 <scope, block, gcc_target_options>: Add `m_' prefix.
5154 <m_type_map, m_symbol_err_map>: New fields, moved from
5155 compile_c_instance.
5156 <destroy>: Remove.
5157 (convert_type, new_compile_instance): Remove.
5158 * compile/compile.c (cleanup_compile_instance): Remove.
5159 (compile_to_object): Use unique_ptr to eliminate cleanups.
5160 (compile_instance::set_print_callback, compile_instance::version)
5161 (compile_instance::set_verbose)
5162 (compile_instance::set_driver_filename)
5163 (compile_instance::set_triplet_regexp)
5164 (compile_instance::set_arguments)
5165 (compile_instance::set_source_file)
5166 (compile_instance::compile): Define.
5167
5168 2018-08-10 Keith Seitz <keiths@redhat.com>
5169
5170 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
5171 * compile/compile-c-types.c: Define GCC_METHODN macros and include
5172 gcc-c-fe.def to define C plugin.
5173 (delete_instance): Delete `c_plugin'.
5174 (new_compile_instance): Initialize `c_plugin'.
5175 * compile/compile-c.h: Include gcc_c_plugin.h.
5176 (struct compile_c_instance) <c_plugin>: New member.
5177 * gcc-c-plugin.h: New file.
5178 Update all callers with API change.
5179
5180 2018-08-10 Keith Seitz <keiths@redhat.com>
5181
5182 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
5183 (HFILES_NO_SRCDIR): ... to here.
5184 Add compile-internal.h and compile-c.h.
5185 * compile/compile-c-support.c: Include compile-c.h.
5186 * compile/compile-c-symbols.c: Include compile-c.h.
5187 (generate_c_for_variable_locations): Update comment.
5188 * compile/compile-c-types.c: Include compile-c.h.
5189 * compile/compile-c.h: New file -- moved C language declarations
5190 from other files here.
5191 * compile/compile-internal.h: Do not include hashtab.h or
5192 common/enum-flags.h.
5193 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
5194 (gcc_convert_symbol, gcc_symbol_address)
5195 (generate_c_for_variable_locations, c_get_mode_for_size)
5196 (c_get_range_decl_name): Definitions moved to compile-c.h.
5197 * compile/compile-loc2c.c: Include compile-c.h.
5198
5199 2018-08-10 Keith Seitz <keiths@redhat.com>
5200
5201 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
5202 (c_symbol_substitution_name): ... this.
5203 Update all callers.
5204
5205 2018-08-10 Keith Seitz <keiths@redhat.com>
5206
5207 * compile/compile-c-support.c (c_compute_program): Use
5208 unique_xmalloc_ptr to eliminate cleanup.
5209 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
5210 Return a unique_xmalloc_ptr and eliminate cleanup.
5211 * compile/compile-internal.h (generate_c_for_variable_locations):
5212 Return unique_xmalloc_ptr and update description.
5213
5214 2018-08-10 Alan Hayward <alan.hayward@arm.com>
5215
5216 * corelow.c (core_target::get_core_register_section): Rename
5217 min_size to section_min_size.
5218
5219 2018-08-09 Jim Wilson <jimw@sifive.com>
5220
5221 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
5222 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
5223 * NEWS: Mention new GNU/Linux RISC-V target.
5224 * configure.host: Add riscv*-*-linux*.
5225 * configure.nat: Add riscv*.
5226 * configure.tgt: Add riscv*-*-linux*.
5227 * riscv-linux-nat.c: New file.
5228 * riscv-linux-tdep.c: New file.
5229
5230 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
5231
5232 * infrun.c (resume): Make static, add forward declaration.
5233 (proceed): Update header comment.
5234 * infrun.h (resume): Delete declaration.
5235
5236 2018-08-09 Tom Tromey <tom@tromey.com>
5237
5238 * riscv-tdep.h: Minor formatting fixes.
5239
5240 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
5241
5242 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
5243 * dwarf-index-cache.c (create_dir_and_check): Likewise.
5244 (test_mkdir_recursive): Likewise.
5245 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
5246
5247 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
5248
5249 * valarith.c (value_subscripted_rvalue): If an array is not in
5250 memory, and we don't know the upper bound, then we can't know that
5251 the requested element exists or not.
5252
5253 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
5254
5255 * target.c (str_comma_list_concat_elem): Fix typo in comment.
5256 (target_options_to_string): Add comment.
5257
5258 2018-08-08 Tom Tromey <tom@tromey.com>
5259
5260 * unittests/scoped_mmap-selftests.c: Check result of "write".
5261
5262 2018-08-08 Jim Wilson <jimw@sifive.com>
5263
5264 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
5265 (decode_register_index_short): New.
5266 (decode_j_type_insn, decode_cj_type_insn): New.
5267 (decode_b_type_insn, decode_cb_type_insn): New.
5268 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
5269 local xlen. Check xlen when decoding ambiguous compressed insns. In
5270 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
5271 is_c_sw_insn instead of is_sw_insn.
5272 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
5273 (riscv_software_single_step): New.
5274 * riscv-tdep.h (riscv_software_single_step): Declare.
5275
5276 * riscv-tdep.c (riscv_isa_xlen): Drop static.
5277 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
5278
5279 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
5280
5281 PR gdb/18050:
5282 * target.c (dispose_inferior): Don't dispose of inferiors that are
5283 already killed.
5284
5285 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
5286
5287 * remote.c (remote_target::download_tracepoint): Change char* to
5288 const char*.
5289
5290 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5291
5292 * target.h (target_options_to_string): Return an std::string.
5293 * target.c (str_comma_list_concat_elem): Return void, use
5294 std::string.
5295 (do_option): Likewise.
5296 (target_options_to_string): Return an std::string.
5297 * linux-nat.c (linux_nat_target::wait): Adjust.
5298 * target-debug.h (target_debug_print_options): Adjust.
5299
5300 2018-08-07 Tom Tromey <tom@tromey.com>
5301
5302 * Makefile.in (CPPFLAGS): New variable.
5303 (INTERNAL_CPPFLAGS): Use it.
5304
5305 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5306
5307 * NEWS: Mention the index cache.
5308
5309 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5310
5311 * common/pathstuff.h (get_standard_cache_dir): New.
5312 * common/pathstuff.c (get_standard_cache_dir): New.
5313 * build-id.h (build_id_to_string): New.
5314 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
5315 DEBUG_STR_SUFFIX): Move to here.
5316 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
5317 DEBUG_STR_SUFFIX): Move from there.
5318 (write_psymtabs_to_index): Make non-static, add basename
5319 parameter. Write to temporary files, rename when done.
5320 (save_gdb_index_command): Adjust call to
5321 write_psymtabs_to_index.
5322 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
5323 field.
5324 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
5325 (get_gdb_index_contents_from_cache): New.
5326 (get_gdb_index_contents_from_cache_dwz): New.
5327 (dwarf2_initialize_objfile): Read index from cache.
5328 (dwarf2_build_psymtabs): Save to index.
5329 * dwarf-index-cache.h: New file.
5330 * dwarf-index-cache.c: New file.
5331 * dwarf-index-write.h: New file.
5332
5333 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5334
5335 * gnulib/aclocal.m4: Re-generate.
5336 * gnulib/config.in: Re-generate.
5337 * gnulib/configure: Re-generate.
5338 * gnulib/import/Makefile.am: Re-generate.
5339 * gnulib/import/Makefile.in: Re-generate.
5340 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
5341 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
5342 * gnulib/import/m4/mkdir.m4: New file.
5343 * gnulib/import/mkdir.c: New file.
5344 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
5345 module.
5346
5347 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5348
5349 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
5350 * common/scoped_mmap.c: New file.
5351 * common/scoped_mmap.h (destroy): New method.
5352 (~scoped_mmap, reset): Use destroy.
5353 (scoped_mmap): New move constructor.
5354 (mmap_file): New declaration.
5355 * unittests/scoped_mmap-selftests.c (test_normal,
5356 test_invalid_filename, run_tests): New functions.
5357 (_initialize_scoped_mmap_selftests): Register selftest.
5358
5359 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5360
5361 * dwarf2read.c (read_gdb_index_from_section): Rename to...
5362 (read_gdb_index_from_buffer): ... this. Remove section
5363 parameter, add buffer parameter.
5364 (get_gdb_index_contents_ftype,
5365 get_gdb_index_contents_dwz_ftype): New typedefs.
5366 (dwarf2_read_gdb_index): Add callback parameters to get the
5367 index contents.
5368 (get_gdb_index_contents_from_section): New.
5369 (dwarf2_initialize_objfile): Update call to
5370 dwarf2_read_gdb_index.
5371
5372 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5373
5374 * common/filestuff.h (gdb_fopen_cloexec): New overload.
5375 (gdb_open_cloexec): Likewise.
5376 * nat/linux-osdata.c (command_from_pid): Use string_printf.
5377 (commandline_from_pid): Likewise.
5378 (linux_xfer_osdata_threads): Likewise.
5379 (linux_xfer_osdata_fds): Likewise.
5380 * ada-lang.c (is_package_name): Likewise.
5381 * auxv.c (procfs_xfer_auxv): Likewise.
5382 * breakpoint.c (print_one_breakpoint_location): Use
5383 uiout::field_fmt.
5384 (print_one_catch_solib): Use string_printf.
5385 * coff-pe-read.c (add_pe_exported_sym): Likewise.
5386 (add_pe_forwarded_sym): Likewise.
5387 * dwarf2read.c (create_type_unit_group): Likewise.
5388 (build_error_marker_type): Likewise.
5389 * infcall.c (get_function_name): Likewise.
5390 * valprint.c (print_converted_chars_to_obstack): Likewise.
5391 * xtensa-tdep.c (xtensa_register_type): Likewise.
5392
5393 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
5394
5395 * remote.c (remote_target::download_tracepoint): Fix format
5396 string errors.
5397
5398 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5399
5400 * tracefile.c: Include common/byte-vector.h.
5401 (trace_save): Change type of buf to gdb::byte_vector. Initialize
5402 with trace_regblock_size if needed. Update uses of buf.
5403
5404 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5405
5406 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
5407 std::vector<unsigned char>.
5408 * tracepoint.c (collection_list::collection_list): Remove
5409 m_regs_mask initializer from initializer list. Resize
5410 m_regs_mask using the largest remote register number.
5411 (collection_list::add_remote_register): Remove size check on
5412 m_regs_mask. Use at to access element.
5413 (collection_list::stringify): Change type of temp_buf to
5414 gdb::char_vector. Update uses of temp_buf. Resize if needed to
5415 stringify the register mask. Use pack_hex_byte for the register
5416 mask.
5417
5418 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5419
5420 * tracepoint.h (class collection_list) <add_register>: Remove.
5421 <add_remote_register, add_ax_registers, add_local_register>:
5422 Declare.
5423 <add_memrange>: Add scope parameter.
5424 * tracepoint.c (encode_actions_1): Likewise.
5425 (collection_list::add_register): Rename to ...
5426 (collection_list::add_remote_register): ... this. Update
5427 comment.
5428 (collection_list::add_ax_registers, add_local_register): New
5429 methods.
5430 (collection_list::add_memrange): Add scope parameter. Call
5431 add_local_register instead of add_register.
5432 (finalize_tracepoint_aexpr): New function.
5433 (collection_list::collect_symbol): Update calls to add_memrange.
5434 Call add_local_register instead of add_register. Call
5435 add_ax_registers. Call finalize_tracepoint_aexpr.
5436 (encode_actions_1): Get remote regnos for $reg action. Call
5437 add_remote_register, add_ax_registers, and add_local_register.
5438 Update call to add_memrange. Call finalize_tracepoint_aexpr.
5439 (validate_actionline): Call finalize_tracepoint_aexpr.
5440
5441 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5442
5443 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
5444 Replace array buf with gdb::char_vector buf, of size
5445 get_remote_packet_size (). Replace references to buf and
5446 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
5447 and xsnprintf with snprintf. Raise errors if the buffer is too
5448 small.
5449
5450 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5451
5452 * remote.c (remote_target::download_tracepoint): Fix the has_more
5453 predicate in the QTDP action list iteration.
5454
5455 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5456
5457 * remote.c (remote_target::download_tracepoint): Fix indentation
5458 in for block.
5459
5460 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5461
5462 * proc-api.c (_initialize_proc_api): Remove c, unused.
5463 * procfs.c (procfs_init_inferior): Remove signals, unused.
5464 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
5465 unused.
5466
5467 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
5468 Andrew Burgess <andrew.burgess@embecosm.com>
5469
5470 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
5471 'W_STOPCODE (0)' as this could be ambiguous.
5472
5473 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
5474
5475 * ser-tcp.c (net_open): Fix thinko when deciding whether to
5476 disable TCP's Nagle algorithm (use "ai_protocol" instead of
5477 "ai_socktype").
5478
5479 2018-08-02 Tom Tromey <tom@tromey.com>
5480
5481 PR symtab/16842.
5482 * dwarf2read.c (read_func_scope): Set symtab on template parameter
5483 symbols.
5484 (process_structure_scope): Likewise.
5485
5486 2018-08-02 Xavier Roirand <roirand@adacore.com>
5487
5488 PR gdb/22629:
5489 * darwin-nat.c (darwin_kill_inferior): Fix handling of
5490 kill inferior.
5491
5492 2018-08-02 Tom Tromey <tom@tromey.com>
5493
5494 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
5495 (darwin_suspend_inferior, darwin_resume_inferior)
5496 (darwin_decode_notify_message, darwin_resume_inferior_threads)
5497 (darwin_check_new_threads): Check result of get_darwin_inferior.
5498
5499 2018-07-31 Joel Brobecker <brobecker@adacore.com>
5500
5501 GDB 8.1.1 released.
5502
5503 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
5504
5505 * varobj.c (varobj_get_path_expr_parent): Report an error if
5506 parent is a dynamic varobj.
5507
5508 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
5509
5510 * gnulib/aclocal.m4: Re-generate.
5511 * gnulib/config.in: Re-generate.
5512 * gnulib/configure: Re-generate.
5513 * gnulib/import/Makefile.in: Re-generate.
5514 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
5515 * gnulib/import/m4/onceonly.m4: Re-generate.
5516
5517 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
5518
5519 * target-descriptions.c (struct xml_test_tdesc): New.
5520 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
5521 (record_xml_tdesc): Update.
5522 (maintenance_check_xml_descriptions): Update.
5523 * target-descriptions.h (record_xml_tdesc): Update comment.
5524
5525 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
5526
5527 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
5528 checking array bounds are defined.
5529
5530 2018-07-30 Tom Tromey <tom@tromey.com>
5531
5532 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
5533 irreflexivity violation.
5534
5535 2018-07-30 Tom Tromey <tom@tromey.com>
5536
5537 * cli/cli-decode.c (lookup_cmd): Remove lint code.
5538 * value.c (unpack_long): Remove lint code.
5539 * valops.c (value_ind): Remove lint code.
5540 * valarith.c (value_x_binop, value_x_unop, value_equal)
5541 (value_pos): Remove lint code.
5542
5543 2018-07-28 Tom de Vries <tdevries@suse.de>
5544
5545 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
5546 with undefined upper bound as <optimized out>.
5547
5548 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
5549
5550 * gcore.in: Rename variable "name" to "prefix". Expand
5551 "usage" text.
5552
5553 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
5554
5555 * windows-nat.c (windows_nat_target::create_inferior): Update to
5556 call close() in global namespace.
5557
5558 2018-07-26 Tom Tromey <tom@tromey.com>
5559
5560 * dwarf-index-write.c (add_address_entry): Don't add objfile
5561 offsets.
5562 * dbxread.c (find_stab_function): Rename from
5563 find_stab_function_addr. Return a bound_minimal_symbol.
5564 (read_dbx_symtab): Use raw_text_low, raw_text_high.
5565 Don't add objfile offsets.
5566 (end_psymtab): Use raw_text_low, raw_text_high,
5567 MSYMBOL_VALUE_RAW_ADDRESS.
5568 (read_ofile_symtab): Update.
5569 (process_one_symbol): Update.
5570 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
5571 offsets.
5572 (dw2_relocate): Remove.
5573 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
5574 searching addrmap.
5575 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
5576 Update.
5577 (process_psymtab_comp_unit_reader, add_partial_symbol)
5578 (add_partial_subprogram, dwarf2_ranges_read): Update.
5579 (load_partial_dies): Update.
5580 (add_address_entry): Don't add objfile offsets.
5581 (dwarf2_build_include_psymtabs): Update.
5582 (create_addrmap_from_aranges): Don't add objfile offsets.
5583 (dw2_find_pc_sect_compunit_symtab): Update.
5584 * mdebugread.c (parse_symbol): Don't add objfile offsets.
5585 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
5586 Update.
5587 (parse_partial_symbols): Don't add objfile offsets. Use
5588 raw_text_low, raw_text_high. Update.
5589 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
5590 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
5591 or call 'relocate' quick function. Clear psymbol_map.
5592 * psympriv.h (struct partial_symbol) <address>: Add section
5593 offset.
5594 <set_unrelocated_address>: Rename from set_address.
5595 <raw_text_low, raw_text_high>: New methods.
5596 <text_low, text_high>: Add objfile parameter.
5597 (add_psymbol_to_bcache): Add 'section' parameter. Call
5598 set_unrelocated_address.
5599 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5600 (find_pc_psymbol): Update.
5601 (fixup_psymbol_section, relocate_psymtabs): Remove.
5602 (dump_psymtab, psym_functions): Update.
5603 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
5604 parameter.
5605 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5606 (start_psymtab_common): Update.
5607 * symfile-debug.c (debug_qf_relocate): Remove.
5608 (debug_sym_quick_functions): Update.
5609 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
5610 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
5611 Update.
5612
5613 2018-07-26 Tom Tromey <tromey@redhat.com>
5614
5615 * dbxread.c (end_psymtab): Use text_high_valid and
5616 text_low_valid.
5617 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
5618 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
5619 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5620 Update comment.
5621 <text_low_valid, text_high_valid>: New fields.
5622 <set_text_low, set_text_high>: Update.
5623 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
5624
5625 2018-07-26 Tom Tromey <tom@tromey.com>
5626
5627 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
5628 Update.
5629 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
5630 textlow and texthigh fields.
5631 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
5632 Update.
5633 * mdebugread.c (parse_lines, parse_partial_symbols)
5634 (psymtab_to_symtab_1): Update.
5635 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5636 Rename fields. Update comment. Now private.
5637 <text_low, text_high, set_text_low, set_text_high>: New methods.
5638 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5639 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
5640 (start_psymtab_common, maintenance_info_psymtabs)
5641 (maintenance_check_psymtabs): Update.
5642 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
5643 texthigh fields.
5644 (scan_xcoff_symtab): Update.
5645
5646 2018-07-26 Tom Tromey <tromey@redhat.com>
5647
5648 * psympriv.h (struct partial_symbol) <unrelocated_address,
5649 address, set_address>: New methods.
5650 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
5651 (fixup_psymbol_section, relocate_psymtabs): Update.
5652 (print_partial_symbols): Add 'objfile' parameter. Update.
5653 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
5654 Update.
5655
5656 2018-07-26 Tom Tromey <tom@tromey.com>
5657
5658 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5659 (debug_names::write_psymbols): Update.
5660 * psympriv.h (struct partial_symbol): Derive from
5661 general_symbol_info.
5662 <obj_section>: New method.
5663 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
5664 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5665 (find_pc_sect_psymbol, fixup_psymbol_section)
5666 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
5667 (print_partial_symbols, recursively_search_psymtabs)
5668 (compare_psymbols, psymbol_hash, psymbol_compare)
5669 (add_psymbol_to_bcache, maintenance_check_psymtabs)
5670 (psymbol_name_matches, psym_fill_psymbol_map): Update.
5671
5672 2018-07-26 Tom Tromey <tromey@redhat.com>
5673
5674 * dbxread.c (end_psymtab): Remove dead code.
5675
5676 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
5677
5678 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
5679 DWARF unwinders are disabled.
5680 * dwarf2-frame.c: Add dwarf2read.h include.
5681 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
5682 disabled.
5683 (dwarf2_frame_unwinders_enabled_p): Define.
5684 (show_dwarf_unwinders_enabled_p): New function.
5685 (_initialize_dwarf2_frame): Register switch to control DWARF
5686 unwinder use.
5687 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
5688 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
5689 (show_dwarf_cmdlist): Remove static keyword.
5690 * dwarf2read.h (set_dwarf_cmdlist): Declare.
5691 (show_dwarf_cmdlist): Declare.
5692 * NEWS: Document new feature.
5693
5694 2018-07-26 Tom de Vries <tdevries@suse.de>
5695
5696 PR breakpoints/23366
5697 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
5698
5699 2018-07-26 Tom de Vries <tdevries@suse.de>
5700
5701 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
5702 DW_AT_count can't be translated to a dynamic prop.
5703
5704 2018-07-25 Tom de Vries <tdevries@suse.de>
5705
5706 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
5707 try/catch.
5708
5709 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
5710
5711 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
5712
5713 2018-07-25 Joel Brobecker <brobecker@adacore.com>
5714
5715 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
5716
5717 2018-07-24 Keith Seitz <keiths@redhat.comt
5718
5719 PR symtab/23010
5720 * dwarf2read.c (dw2_add_symbol_to_list): New function.
5721 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
5722 instead of add_symbol_to_list.
5723 (read_file_scope): Call prepare_one_comp_unit before reading
5724 any other DIEs.
5725
5726 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
5727
5728 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
5729
5730 2018-07-24 Tom Tromey <tom@tromey.com>
5731
5732 * utils.c (malloc, realloc, free): Don't declare.
5733 * configure, config.in: Rebuild.
5734 * configure.ac: Don't check for declarations of free, malloc, or
5735 realloc.
5736
5737 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5738
5739 * aarch64-linux-nat.c
5740 (aarch64_linux_nat_target::stopped_data_address): Remove unused
5741 variable.
5742 * arm-linux-nat.c (fetch_regs): Likewise.
5743 (store_regs): Likewise.
5744 (fetch_vfp_regs): Likewise.
5745 (store_vfp_regs): Likewise.
5746 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
5747 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
5748 (arm_linux_nat_target::insert_watchpoint): Likewise.
5749 (arm_linux_nat_target::remove_watchpoint): Likewise.
5750 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
5751 Likewise.
5752 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
5753 Likewise.
5754 * ppc-linux-nat.c (fetch_register): Likewise.
5755 (fetch_all_gp_regs): Likewise.
5756 (fetch_ppc_registers): Likewise.
5757 (store_all_gp_regs): Likewise.
5758 (store_ppc_registers): Likewise.
5759 (hwdebug_insert_point): Likewise.
5760 (can_use_watchpoint_cond_accel): Likewise.
5761 * remote-sim.c (gdb_os_write_stdout): Likewise.
5762
5763 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5764 Tom Tromey <tom@tromey.com>
5765
5766 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
5767 test for it.
5768 * configure: Rebuild.
5769
5770 2018-07-22 Tom Tromey <tom@tromey.com>
5771
5772 * regformats/regdat.sh: Define xmltarget_${name} inside
5773 #ifndef IN_PROCESS_AGENT.
5774
5775 2018-07-22 Tom Tromey <tom@tromey.com>
5776
5777 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
5778
5779 2018-07-22 Tom Tromey <tom@tromey.com>
5780
5781 * symfile.c (reread_symbols): Notify iter, not objfile.
5782
5783 2018-07-22 Tom Tromey <tom@tromey.com>
5784
5785 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
5786 Use arch_ops.
5787 (ravenscar_thread_target::prepare_to_store): Likewise.
5788
5789 2018-07-22 Tom Tromey <tom@tromey.com>
5790
5791 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
5792 unused variable. Call value_fetch_lazy when needed.
5793 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5794 Remove unused variable. Call value_fetch_lazy when needed.
5795
5796 2018-07-22 Tom Tromey <tom@tromey.com>
5797
5798 * m32c-tdep.c (mark_dma): Return void.
5799 (make_regs): Remove unused declarations.
5800
5801 2018-07-22 Tom Tromey <tom@tromey.com>
5802
5803 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
5804 cmdscm_get_valid_command_smob_arg_unsafe for effect.
5805 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
5806 bkscm_get_valid_block_smob_arg_unsafe for effect.
5807
5808 2018-07-22 Tom Tromey <tom@tromey.com>
5809
5810 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
5811 value_type.
5812
5813 2018-07-22 Tom Tromey <tom@tromey.com>
5814
5815 * windows-nat.c (saved_context): Conditionally define.
5816 * remote.c (remote_target::remote_btrace_maybe_reopen):
5817 Conditionally declare "warned".
5818 * inflow.c (sigquit_ours): Conditionally define.
5819 (new_tty): Move "tty" declaration inside #if.
5820 * guile/guile.c (guile_datadir): Conditionally define.
5821 * charset.c (set_be_le_names): Move some declarations inside #if.
5822 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
5823 #if.
5824 (parse_xml_btrace_conf): Likewise.
5825
5826 2018-07-22 Tom Tromey <tom@tromey.com>
5827
5828 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
5829
5830 2018-07-22 Tom Tromey <tom@tromey.com>
5831
5832 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
5833 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
5834 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
5835 * buildsym-legacy.c (get_macro_table): Remove unused variable.
5836 * stack.c (frame_apply_level_command): Remove unused variable.
5837 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
5838 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
5839 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
5840 unused variable.
5841 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
5842 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
5843 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
5844 variable.
5845 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
5846 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
5847 variable.
5848 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
5849 Remove unused variable.
5850 * cli/cli-script.c (recurse_read_control_structure): Remove unused
5851 variable.
5852 * common/tdesc.c (print_xml_feature::visit): Remove unused
5853 variable.
5854 * compile/compile-object-load.c (store_regs): Remove unused
5855 variables.
5856 * complaints.c (clear_complaints): Remove unused variable.
5857 * corelow.c (core_target_open): Remove unused variable.
5858 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
5859 variable.
5860 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
5861 variable.
5862 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
5863 variable.
5864 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
5865 variable.
5866 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
5867 variable.
5868 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
5869 variable.
5870 * ia64-tdep.c (examine_prologue): Remove unused variable.
5871 * infcall.c (run_inferior_call): Remove unused variable.
5872 * inferior.c (exit_inferior): Remove unused variable.
5873 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
5874 * linespec.c (decode_line_2): Remove unused variable.
5875 * linux-nat.c (super_close): Remove.
5876 * linux-tdep.c (linux_info_proc): Remove unused variable.
5877 * mi/mi-main.c (mi_execute_command): Remove unused variable.
5878 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
5879 Remove unused variable.
5880 * parse.c (find_minsym_type_and_address): Remove unused variable.
5881 * printcmd.c (info_symbol_command, printf_floating): Remove unused
5882 variable.
5883 * python/py-breakpoint.c (bppy_set_commands): Remove unused
5884 variable.
5885 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
5886 variables.
5887 * record-btrace.c (record_btrace_target::store_registers): Remove
5888 unused variable.
5889 (cmd_show_record_btrace_cpu): Remove unused variable.
5890 * riscv-tdep.c (riscv_register_reggroup_p)
5891 (riscv_push_dummy_call, riscv_return_value): Remove unused
5892 variable.
5893 * rust-exp.y (literal): Remove unused variable.
5894 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
5895 unused variable.
5896 <STRUCTOP_ANONYMOUS>: Likewise.
5897 * s390-linux-tdep.c (s390_linux_init_abi_31)
5898 (s390_linux_init_abi_64): Remove unused variable.
5899 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
5900 (file_select_thread, net_windows_open, _initialize_ser_windows):
5901 Remove unused variables.
5902 * symtab.c (find_pc_sect_line): Remove unused variable.
5903 * target-memory.c (compute_garbled_blocks): Remove unused
5904 variable.
5905 (target_write_memory_blocks): Remove unused variable.
5906 * target.c (target_stack::unpush): Remove unused variables.
5907 * tracepoint.c (start_tracing, all_tracepoint_actions)
5908 (merge_uploaded_trace_state_variables)
5909 (print_one_static_tracepoint_marker): Remove unused variable.
5910 * unittests/basic_string_view/element_access/char/1.cc (test01):
5911 Remove unused variable.
5912 * windows-nat.c (windows_continue, windows_add_all_dlls)
5913 (do_initial_windows_stuff, windows_nat_target::create_inferior):
5914 Remove unused variables.
5915
5916 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5917
5918 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
5919 attr_profile in HAVE_ELF.
5920 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
5921 HAVE_ELF.
5922
5923 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
5924
5925 * frame.c (frame_register_unwind): Change parameter name.
5926 (frame_unwind_register): Likewise.
5927 (frame_unwind_register_value): Likewise.
5928 (frame_unwind_register_signed): Likewise.
5929 (frame_unwind_register_unsigned): Likewise.
5930 * frame.h (frame_register_unwind): Likewise.
5931 (frame_unwind_register): Likewise.
5932 (frame_unwind_register_value): Likewise.
5933 (frame_unwind_register_signed): Likewise.
5934 (frame_unwind_register_unsigned): Likewise.
5935 (frame_unwind_arch): Likewise.
5936
5937 2018-07-20 Maciej W. Rozycki <macro@mips.com>
5938
5939 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
5940 ISA maintenance.
5941
5942 2018-07-20 Maciej W. Rozycki <macro@mips.com>
5943
5944 * mips-linux-nat.c (mips_linux_nat_target::read_description):
5945 Call `get_ptrace_pid' rather than extracting the ptrace PID by
5946 hand.
5947
5948 2018-07-20 Keith Seitz <keiths@redhat.com>
5949
5950 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
5951 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
5952 m_compunit_symtab, m_language>: Add "m_" prefix.
5953 Update all uses.
5954 * buildsym.c: Update all uses.
5955
5956 2018-07-20 Tom Tromey <tom@tromey.com>
5957
5958 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
5959 * buildsym.h (record_line_ftype): Remove typedef.
5960
5961 2018-07-20 Tom Tromey <tom@tromey.com>
5962
5963 * buildsym-legacy.h (augment_type_symtab): Don't declare.
5964 (end_expandable_symtab): Likewise.
5965 (end_symtab_get_static_block): Likewise.
5966 (end_symtab_from_static_block): Likewise.
5967 * buildsym-legacy.c (augment_type_symtab): Remove.
5968 (end_expandable_symtab): Remove.
5969 (end_symtab_get_static_block): Remove.
5970 (end_symtab_from_static_block): Remove.
5971
5972 2018-07-20 Tom Tromey <tom@tromey.com>
5973
5974 * dwarf2read.c: Include buildsym.h.
5975 (struct dwarf2_cu) <builder>: New method.
5976 (fixup_go_packaging): Update.
5977 (process_full_comp_unit, process_full_type_unit): Update. Don't
5978 use scoped_free_pendings.
5979 (using_directives): Add "cu" parameter, remove "language".
5980 (read_import_statement, setup_type_unit_groups, )
5981 (read_func_scope, read_lexical_block_scope)
5982 (dwarf2_record_block_ranges, read_namespace): Update.
5983 (lnp_state_machine::lnp_state_machine): Add cu parameter.
5984 (lnp_state_machine::handle_end_sequence): Update.
5985 (class lnp_state_machine) <m_cu>: New member.
5986 <m_record_line_callback>: Remove.
5987 <m_currently_recording_lines>: New member.
5988 (lnp_state_machine::handle_set_file): Update.
5989 (noop_record_line): Remove.
5990 (dwarf_record_line_p): Add cu parameter.
5991 (dwarf_record_line_1, dwarf_finish_line): Likewise.
5992 (lnp_state_machine::record_line)
5993 (lnp_state_machine::lnp_state_machine)
5994 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5995 (dwarf_decode_lines): Update.
5996 (dwarf2_start_subfile): Add cu parameter.
5997 (dwarf2_start_symtab, new_symbol): Update.
5998 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
5999 Remove dwarf2_per_objfile parameter.
6000 (dwarf_decode_macros): Update.
6001
6002 2018-07-20 Tom Tromey <tom@tromey.com>
6003
6004 * stabsread.c (define_symbol): Update.
6005 * buildsym-legacy.h (get_buildsym_compunit): Declare.
6006 * dwarf2read.c (new_symbol): Update.
6007 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
6008 * cp-namespace.c: Include buildsym.h.
6009 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
6010 * buildsym-legacy.c (get_buildsym_compunit): New function.
6011
6012 2018-07-20 Tom Tromey <tom@tromey.com>
6013
6014 * xcoffread.c: Include buildsym-legacy.h.
6015 * windows-nat.c: Include buildsym-legacy.h.
6016 * stabsread.c: Include buildsym-legacy.h.
6017 * mdebugread.c: Include buildsym-legacy.h.
6018 * buildsym-legacy.h: New file.
6019 * buildsym-legacy.c: New file, from buildsym.c.
6020 * go32-nat.c: Include buildsym-legacy.h.
6021 * dwarf2read.c: Include buildsym-legacy.h.
6022 * dbxread.c: Include buildsym-legacy.h.
6023 * cp-namespace.c: Include buildsym-legacy.h.
6024 * coffread.c: Include buildsym-legacy.h.
6025 * buildsym.h: Move some contents to buildsym-legacy.h.
6026 * buildsym.c: Include buildsym-legacy.h. Move many functions to
6027 buildsym-legacy.c.
6028 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
6029
6030 2018-07-20 Tom Tromey <tom@tromey.com>
6031
6032 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
6033 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
6034 (buildsym_compunit::buildsym_compunit)
6035 (buildsym_compunit::~buildsym_compunit)
6036 (buildsym_compunit::get_macro_table): Define.
6037
6038 2018-07-20 Tom Tromey <tom@tromey.com>
6039
6040 * buildsym.c (reset_symtab_globals): Remove.
6041 (buildsym_compunit::end_symtab_from_static_block): Update.
6042 (buildsym_compunit::augment_type_symtab): Update.
6043 (end_symtab_from_static_block): Call free_buildsym_compunit.
6044 (augment_type_symtab, end_symtab, end_expandable_symtab):
6045 Likewise.
6046
6047 2018-07-20 Tom Tromey <tom@tromey.com>
6048
6049 * arch-utils.c: Do not include buildsym.h.
6050 * mipsread.c: Do not include buildsym.h.
6051 * machoread.c: Do not include buildsym.h.
6052 * elfread.c: Do not include buildsym.h.
6053
6054 2018-07-20 Tom Tromey <tom@tromey.com>
6055
6056 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
6057 initialization.
6058 (buildsym_compunit): Add new constructor.
6059 (struct buildsym_compunit) <get_last_source_file, finish_block,
6060 record_block_range, start_subfile, patch_subfile_names,
6061 push_subfile, pop_subfile, record_line, get_compunit_symtab,
6062 set_last_source_start_addr, get_last_source_start_addr,
6063 get_local_using_directives, set_local_using_directives,
6064 get_global_using_directives, outermost_context_p,
6065 get_current_context_stack, get_context_stack_depth,
6066 get_current_subfile, get_local_symbols, get_file_symbols,
6067 get_global_symbols, record_debugformat, record_producer,
6068 push_context, pop_context, end_symtab_get_static_block,
6069 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
6070 New public methods.
6071 <record_pending_block, finish_block_internal, make_blockvector,
6072 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
6073 private methods.
6074 Update all users.
6075
6076 2018-05-22 Tom Tromey <tom@tromey.com>
6077
6078 * buildsym.c (record_pending_block): Move earlier. Remove objfile
6079 parameter.
6080 (finish_block_internal): Update.
6081
6082 2018-07-20 Tom Tromey <tom@tromey.com>
6083
6084 * buildsym.c (record_pending_block): Move earlier. Remove objfile
6085 parameter.
6086 (finish_block_internal): Update.
6087
6088 2018-07-20 Tom Tromey <tom@tromey.com>
6089
6090 * buildsym.h (EXTERN): Don't define or undef.
6091 * buildsym.c (EXTERN): Don't define.
6092
6093 2018-07-20 Tom Tromey <tom@tromey.com>
6094
6095 * buildsym.c: Remove TODO comment.
6096
6097 2018-07-20 Tom Tromey <tom@tromey.com>
6098
6099 * coffread.c (coff_symtab_read): Update.
6100 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6101 (xcoff_new_init): Update.
6102 * mipsread.c (mipscoff_new_init): Update.
6103 * mdebugread.c (mdebug_build_psymtabs): Update.
6104 * elfread.c (elf_new_init): Update.
6105 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
6106 Update.
6107 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
6108 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6109 (stabsect_build_psymtabs): Update.
6110 * buildsym.h (buildsym_init): Don't declare.
6111 * buildsym.c: Update comment.
6112 (prepare_for_building): Remove.
6113 (start_symtab, restart_symtab): Update.
6114 (reset_symtab_globals): Update comment.
6115 (buildsym_init): Remove.
6116
6117 2018-07-20 Tom Tromey <tom@tromey.com>
6118
6119 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
6120 * stabsread.c (patch_block_stabs, define_symbol, read_type)
6121 (read_enum_type, common_block_start, common_block_end)
6122 (cleanup_undefined_types_1, finish_global_stabs): Update.
6123 * mdebugread.c (psymtab_to_symtab_1): Update.
6124 * dwarf2read.c (fixup_go_packaging, read_func_scope)
6125 (read_lexical_block_scope, new_symbol): Update.
6126 * dbxread.c (process_one_symbol): Update.
6127 * coffread.c (coff_symtab_read, process_coff_symbol)
6128 (coff_read_enum_type): Update.
6129 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
6130 declare.
6131 (get_local_symbols, get_file_symbols, get_global_symbols): New
6132 functions.
6133 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
6134 m_global_symbols.
6135 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
6136 (~scoped_free_pendings): Update.
6137 (finish_block, prepare_for_building, reset_symtab_globals)
6138 (end_symtab_get_static_block, end_symtab_with_blockvector)
6139 (augment_type_symtab, push_context): Update.
6140 (get_local_symbols, get_file_symbols, get_global_symbols): New
6141 functions.
6142 (buildsym_init): Update.
6143
6144 2018-07-20 Tom Tromey <tom@tromey.com>
6145
6146 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
6147 (process_full_type_unit): Likewise.
6148 (dwarf2_start_symtab): Set list_in_scope.
6149
6150 2018-07-20 Tom Tromey <tom@tromey.com>
6151
6152 * dwarf2read.c (process_psymtab_comp_unit_reader)
6153 (build_type_psymtabs_reader): Do not set list_in_scope.
6154
6155 2018-07-20 Tom Tromey <tom@tromey.com>
6156
6157 * buildsym.c (free_pendings): Remove.
6158 (add_symbol_to_list, scoped_free_pendings)
6159 (finish_block_internal, buildsym_init): Update.
6160
6161 2018-07-20 Tom Tromey <tom@tromey.com>
6162
6163 * xcoffread.c (read_xcoff_symtab): Update.
6164 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
6165 Update.
6166 * dbxread.c (process_one_symbol): Update.
6167 * coffread.c (coff_symtab_read): Update.
6168 * buildsym.h (finish_block): Update.
6169 * buildsym.c (finish_block): Remove "listhead" argument.
6170 (end_symtab_get_static_block): Update.
6171
6172 2018-07-20 Tom Tromey <tom@tromey.com>
6173
6174 * buildsym.h (class scoped_free_pendings): Remove constructor.
6175 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
6176 method.
6177 <m_pending_block_obstack, m_pending_blocks>: New members.
6178 (pending_block_obstack, pending_blocks): Remove.
6179 (scoped_free_pendings::scoped_free_pendings): Default.
6180 (~scoped_free_pendings): Update.
6181 (free_pending_blocks): Remove.
6182 (finish_block_internal, record_pending_block, make_blockvector)
6183 (end_symtab_get_static_block, augment_type_symtab, push_context)
6184 (buildsym_init): Update.
6185
6186 2018-07-20 Tom Tromey <tom@tromey.com>
6187
6188 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
6189 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
6190 members.
6191 (pending_addrmap, pending_addrmap_obstack)
6192 (pending_addrmap_interesting): Remove.
6193 (scoped_free_pendings, record_block_range, make_blockvector)
6194 (prepare_for_building, reset_symtab_globals, buildsym_init):
6195 Update.
6196
6197 2018-07-20 Tom Tromey <tom@tromey.com>
6198
6199 * xcoffread.c (process_linenos): Update.
6200 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
6201 * mdebugread.c (psymtab_to_symtab_1): Update.
6202 * dwarf2read.c (setup_type_unit_groups)
6203 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
6204 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
6205 * dbxread.c (process_one_symbol): Update.
6206 * coffread.c (coff_symtab_read, enter_linenos)
6207 (process_coff_symbol): Update.
6208 * buildsym.h (current_subfile): Don't declare.
6209 (get_current_subfile): Declare.
6210 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
6211 member.
6212 (start_subfile, free_buildsym_compunit, push_subfile)
6213 (prepare_for_building, start_symtab): Update.
6214 (get_current_subfile): New function.
6215
6216 2018-07-20 Tom Tromey <tom@tromey.com>
6217
6218 * coffread.c (coff_symtab_read): Update.
6219 * xcoffread.c (read_xcoff_symtab): Update.
6220 * dwarf2read.c (new_symbol): Update.
6221 (read_func_scope, read_lexical_block_scope): Update.
6222 * dbxread.c (process_one_symbol): Update.
6223 * buildsym.h (context_stack, context_stack_depth): Don't declare.
6224 (outermost_context_p): Remove macro.
6225 (outermost_context_p, get_current_context_stack)
6226 (get_context_stack_depth): Declare.
6227 (pop_context): Return struct context_stack.
6228 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
6229 member.
6230 (context_stack_size): Remove.
6231 (INITIAL_CONTEXT_STACK_SIZE): Remove.
6232 (prepare_for_building, end_symtab_get_static_block)
6233 (augment_type_symtab, push_context): Update.
6234 (pop_context): Return struct context_stack.
6235 (outermost_context_p, get_current_context_stack)
6236 (get_context_stack_depth): New functions.
6237 (buildsym_init): Update.
6238
6239 2018-07-20 Tom Tromey <tom@tromey.com>
6240
6241 * rust-exp.y: Now a pure parser. Update all rules.
6242 (%union): Move earlier.
6243 (current_parser, work_obstack): Remove globals.
6244 (rust_parser, ~rust_parser): Update.
6245 (class rust_parser) <copy_name, concat3, crate_name, super_name,
6246 lex_character, lex_number, lex_string, lex_identifier,
6247 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
6248 convert_name, convert_params_to_expression,
6249 convert_ast_to_expression, ast_basic_type, ast_operation,
6250 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
6251 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
6252 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
6253 ast_array_type, ast_slice_type, ast_reference_type,
6254 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
6255 (rust_parse): Update.
6256 (rustyyerror, rustyylex): Add parser parameter.
6257 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
6258 (rust_lex_stringish_test, rust_lex_test_sequence)
6259 (rust_lex_test_trailing_dot, rust_lex_test_completion)
6260 (rust_lex_test_push_back, rust_lex_tests): Update.
6261
6262 2018-07-19 Pedro Alves <palves@redhat.com>
6263
6264 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
6265 gdb::unique_xmalloc_ptr.
6266 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
6267 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
6268 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
6269 copy-initialization.
6270 * guile/scm-pretty-print.c (ppscm_print_children): Use
6271 gdb::unique_xmalloc_ptr instead of cleanups.
6272 (gdbscm_apply_val_pretty_printer): Remove cleanups.
6273 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
6274 gdb::unique_xmalloc_ptr.
6275 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
6276 Adjust to use gdb::unique_xmalloc_ptr.
6277 * guile/scm-utils.c (extract_arg): Adjust.
6278 * guile/scm-value.c (gdbscm_value_field): Adjust to use
6279 gdb::unique_xmalloc_ptr instead of a cleanup.
6280
6281 2018-07-19 Tom Tromey <tom@tromey.com>
6282
6283 * utils.c (do_value_free_to_mark)
6284 (make_cleanup_value_free_to_mark): Remove.
6285 * utils.h (make_cleanup_value_free_to_mark): Remove.
6286
6287 2018-07-19 Pedro Alves <palves@redhat.com>
6288
6289 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
6290 forwarding reference.
6291
6292 2018-07-18 Pedro Alves <palves@redhat.com>
6293
6294 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
6295 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
6296 cleanup.
6297
6298 2018-07-18 Pedro Alves <palves@redhat.com>
6299
6300 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
6301 exceptions.
6302 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
6303 (gdbscm_wrap): New.
6304 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
6305 directly instead of a cleanup.
6306 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
6307 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
6308 (vlscm_binop_gdbthrow): New, factored out from ...
6309 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
6310 (vlscm_rich_compare): Use gdbscm_wrap.
6311 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
6312 instead of a cleanup.
6313 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
6314 cleanup.
6315 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
6316 Use xfree directly instead of a cleanup.
6317 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
6318 Adjust to use gdbscm_wrap and scoped_value_mark.
6319 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
6320 (gdbscm_value_address, gdbscm_value_dereference)
6321 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
6322 scoped_value_mark.
6323 (gdbscm_value_dynamic_type): Use scoped_value_mark.
6324 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
6325 scoped_value_mark.
6326 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
6327 gdbscm_wrap and scoped_value_mark.
6328 (gdbscm_value_to_string): Use xfree directly instead of a
6329 cleanup. Move 'buffer' unique_ptr to TRY scope.
6330 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
6331 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
6332 scoped_value_mark.
6333 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
6334 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
6335 scoped_value_mark.
6336 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
6337 gdbscm_wrap.
6338
6339 2018-07-18 Tom de Vries <tdevries@suse.de>
6340
6341 * findvar.c (default_read_var_value): Also resolve dynamic type for
6342 LOC_OPTIMIZED_OUT vars.
6343
6344 2018-07-18 Maciej W. Rozycki <macro@mips.com>
6345
6346 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
6347 decoding.
6348
6349 2018-07-17 Tom Tromey <tom@tromey.com>
6350
6351 * guile/scm-param.c (pascm_set_func, pascm_show_func)
6352 (compute_enum_list, pascm_set_param_value_x)
6353 (gdbscm_parameter_value): Update.
6354 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
6355 (gdbscm_scm_to_host_string): Update.
6356 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
6357 Update.
6358 * guile/scm-cmd.c (cmdscm_add_completion): Update.
6359 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
6360 * guile/scm-string.c (gdbscm_scm_to_string): Return
6361 unique_xmalloc_ptr.
6362 (gdbscm_scm_to_host_string): Likewise.
6363
6364 2018-07-17 Tom Tromey <tom@tromey.com>
6365
6366 * guile/guile.c (gdbscm_eval_from_control_command): Update.
6367 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
6368 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
6369 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
6370 unique_xmalloc_ptr.
6371
6372 2018-07-17 Tom Tromey <tom@tromey.com>
6373
6374 * guile/scm-param.c (pascm_signal_setshow_error): Update.
6375 * guile/guile-internal.h (gdbscm_exception_message_to_string):
6376 Update.
6377 * guile/scm-cmd.c (cmdscm_function): Update.
6378 * guile/scm-pretty-print.c
6379 (ppscm_print_exception_unless_memory_error): Update.
6380 * guile/scm-exception.c (gdbscm_exception_message_to_string):
6381 Return unique_xmalloc_ptr.
6382
6383 2018-07-17 Tom Tromey <tom@tromey.com>
6384
6385 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
6386 Use string_printf.
6387
6388 2018-07-17 Jim Wilson <jimw@sifive.com>
6389
6390 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
6391 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
6392 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
6393 unecessary braces after EF_RISCV_RVC test. Delete call to
6394 set_gdbarch_decr_pc_after_break.
6395
6396 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
6397 RISCV_LAST_FP_REGNUM + 1.
6398 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
6399
6400 2018-07-17 Tom Tromey <tom@tromey.com>
6401
6402 * configure.ac: Remove --disable-gdbcli.
6403 * configure: Rebuild.
6404 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
6405 (SUBDIR_CLI_CFLAGS): Remove.
6406 (SFILES): Use SUBDIR_CLI_SRCS.
6407 (COMMON_OBS): Use SUBDIR_CLI_OBS.
6408
6409 2018-07-17 Tom Tromey <tom@tromey.com>
6410
6411 PR gdb/18624:
6412 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
6413
6414 2018-07-16 Jim Wilson <jimw@sifive.com>
6415
6416 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
6417
6418 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6419
6420 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
6421 variable.
6422 (libunwind_frame_sniffer): Likewise.
6423 (libunwind_frame_prev_register): Likewise.
6424 (libunwind_sigtramp_frame_sniffer): Likewise.
6425 * ia64-tdep.c (ia64_access_reg): Likewise.
6426 (ia64_access_rse_reg): Likewise.
6427 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
6428 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
6429
6430 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6431
6432 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
6433
6434 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6435
6436 * remote-sim.c (gdbsim_target::close,
6437 gdbsim_target::mourn_inferior): Remove unused variables.
6438
6439 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
6440
6441 * ia64-tdep.c (ktab_buf): New global.
6442 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
6443 (get_kernel_table): Adjust.
6444
6445 2018-07-16 Tom Tromey <tom@tromey.com>
6446
6447 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
6448 * dwarf2read.c (using_directives, new_symbol): Use
6449 outermost_context_p.
6450 * dbxread.c (process_one_symbol): Use outermost_context_p.
6451 * coffread.c (coff_symtab_read): Use outermost_context_p.
6452
6453 2018-07-16 Tom Tromey <tom@tromey.com>
6454
6455 * dwarf2read.c (using_directives, read_func_scope)
6456 (read_lexical_block_scope): Update.
6457 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6458 * buildsym.h (local_using_directives, global_using_directives):
6459 Don't declare.
6460 (get_local_using_directives, set_local_using_directives)
6461 (get_global_using_directives): Declare.
6462 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
6463 m_global_using_directives>: New members.
6464 (finish_block_internal, prepare_for_building)
6465 (reset_symtab_globals, end_symtab_get_static_block)
6466 (push_context): Update.
6467 (get_local_using_directives, set_local_using_directives)
6468 (get_global_using_directives): New functions.
6469 (buildsym_init): Update.
6470
6471 2018-07-16 Tom Tromey <tom@tromey.com>
6472
6473 * xcoffread.c (xcoff_initial_scan): Don't call
6474 free_pending_blocks.
6475 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
6476 * buildsym.h (class scoped_free_pendings): Add constructor.
6477 (free_pending_blocks): Don't declare.
6478 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
6479 (free_pending_blocks): Now static.
6480
6481 2018-07-16 Tom Tromey <tom@tromey.com>
6482
6483 * buildsym.h (push_subfile, pop_subfile): Update declarations.
6484 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
6485 member.
6486 (struct subfile_stack): Remove.
6487 (subfile_stack): Remove.
6488 (push_subfile, pop_subfile, buildsym_init): Update.
6489
6490 2018-07-16 Tom Tromey <tom@tromey.com>
6491
6492 * buildsym.c (push_subfile): Use gdb_assert.
6493 (pop_subfile): Use gdb_assert.
6494
6495 2018-07-16 Tom Tromey <tom@tromey.com>
6496
6497 * buildsym.h (merge_symbol_lists): Remove.
6498 * buildsym.c (merge_symbol_lists): Remove.
6499
6500 2018-07-16 Tom Tromey <tom@tromey.com>
6501
6502 * stabsread.c (scan_file_globals): Update comment.
6503 * stabsread.h (scan_file_globals): Move from buildsym.h.
6504 * buildsym.h (scan_file_globals): Move to stabsread.h.
6505
6506 2018-07-16 Tom Tromey <tom@tromey.com>
6507
6508 * xcoffread.c (xcoff_new_init): Update.
6509 * mipsread.c (mipscoff_new_init): Update.
6510 * mdebugread.c (mdebug_build_psymtabs): Update.
6511 * elfread.c (elf_new_init): Update.
6512 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
6513 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
6514 * buildsym.h (buildsym_new_init): Don't declare.
6515 * buildsym.c (buildsym_new_init): Remove.
6516
6517 2018-07-16 Tom Tromey <tom@tromey.com>
6518
6519 * stabsread.h (within_function): Move from buildsym.h.
6520 * stabsread.c (start_stabs): Clear within_function.
6521 * coffread.c (coff_start_symtab): Clear within_function.
6522 * buildsym.h (within_function): Move to stabsread.h.
6523 * buildsym.c (prepare_for_building): Update.
6524
6525 2018-07-16 Tom Tromey <tom@tromey.com>
6526
6527 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
6528 * dwarf2read.c (dwarf2_start_symtab): Don't set
6529 processing_gcc_compilation.
6530 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
6531
6532 2018-07-16 Tom Tromey <tom@tromey.com>
6533
6534 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
6535 (next_symbol_text_func): Move from buildsym.h.
6536 * stabsread.c (hashname): Move from buildsym.c.
6537 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
6538 (next_symbol_text_func, hashname): Move to stabsread.h.
6539 * buildsym.c: Don't include bcache.h
6540 (hashname): Move to stasbread.c.
6541
6542 2018-07-16 Tom Tromey <tom@tromey.com>
6543
6544 * buildsym.h (context_stack_size): Don't declare.
6545 * buildsym.c (context_stack_size): New global.
6546
6547 2018-07-16 Tom Tromey <tom@tromey.com>
6548
6549 * dbxread.c (processing_acc_compilation): New global.
6550 * buildsym.h (processing_acc_compilation): Don't declare.
6551
6552 2018-07-16 Tom Tromey <tom@tromey.com>
6553
6554 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
6555 * dbxread.c (read_ofile_symtab): Update.
6556 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
6557 * buildsym.h (last_source_start_addr): Remove.
6558 (set_last_source_start_addr, get_last_source_start_addr):
6559 Declare.
6560 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
6561 parameter.
6562 (struct buildsym_compunit) <m_last_source_start_addr>: New
6563 member.
6564 (prepare_for_building): Remove start_addr parameter.
6565 (start_symtab, restart_symtab, end_symtab_get_static_block)
6566 (end_symtab_with_blockvector): Update.
6567 (set_last_source_start_addr, get_last_source_start_addr): New
6568 functions.
6569
6570 2018-07-16 Tom Tromey <tom@tromey.com>
6571
6572 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
6573 member.
6574 (have_line_numbers): Remove.
6575 (record_line, prepare_for_building, end_symtab_get_static_block)
6576 (augment_type_symtab): Update.
6577
6578 2018-07-16 Tom Tromey <tom@tromey.com>
6579
6580 * buildsym.c (~buildsym_compunit): Free the macro table.
6581 (struct buildsym_compunit) <get_macro_table, release_macros>: New
6582 methods.
6583 <m_pending_macros>: New member.
6584 (pending_macros): Remove.
6585 (~scoped_free_pendings, get_macro_table, prepare_for_building)
6586 (reset_symtab_globals, end_symtab_get_static_block)
6587 (end_symtab_with_blockvector, augment_type_symtab)
6588 (buildsym_init): Update.
6589
6590 2018-07-16 Tom Tromey <tom@tromey.com>
6591
6592 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
6593 parameter.
6594 (buildsym_compunit::set_last_source_file): New method.
6595 <m_last_source_file>: New member.
6596 (prepare_for_building): Remove "name" parameter.
6597 (start_symtab, restart_symtab, reset_symtab_globals): Update.
6598 (last_source_file): Remove.
6599 (set_last_source_file, get_last_source_file): Update.
6600
6601 2018-07-16 Tom Tromey <tom@tromey.com>
6602
6603 * buildsym.c (prepare_for_building): Add assert.
6604
6605 2018-07-16 Tom Tromey <tom@tromey.com>
6606
6607 * buildsym.c (~buildsym_compunit): Update.
6608 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
6609 (start_subfile, patch_subfile_names)
6610 (end_symtab_with_blockvector): Update.
6611
6612 2018-07-16 Tom Tromey <tom@tromey.com>
6613
6614 * buildsym.c (struct buildsym_compunit): Add constructor,
6615 destructor, initializers.
6616 (start_buildsym_compunit): Remove.
6617 (free_buildsym_compunit): Use "delete".
6618 (start_symtab, restart_symtab): Use "new".
6619
6620 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
6621
6622 * symfile.c (set_objfile_default_section_offset): Remove struct
6623 keyword.
6624
6625 2018-07-14 Stafford Horne <shorne@gmail.com>
6626
6627 * (Responsible Maintainers): Add myself as or1k maintainer.
6628
6629 2018-07-13 Tom Tromey <tom@tromey.com>
6630
6631 * symfile.c (set_objfile_default_section_offset): Use extra braces
6632 around initializer.
6633
6634 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6635
6636 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
6637 non-branching basr.
6638
6639 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6640
6641 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6642 unittests/cli-utils-selftests.c
6643 * unittests/cli-utils-selftests.c: New file.
6644
6645 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6646
6647 * NEWS: Mention new commands. Mention change to 'thread apply'.
6648
6649 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6650
6651 * thread.c (thr_try_catch_cmd): New function.
6652 (thread_apply_all_command): Handle qcs flags.
6653 (thread_apply_command): Handle qcs flags.
6654 (taas_command): New function.
6655 (tfaas_command): New function.
6656 (_initialize_thread): Update to setup the new commands 'taas
6657 and 'tfaas'. Change doc string for 'thread apply'.
6658
6659 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6660
6661 * stack.c: (trailing_outermost_frame): New function, mostly
6662 extracted from backtrace_command_1.
6663 (leading_innermost_frame): New function.
6664 (backtrace_command_1): Update to call trailing_outermost_frame.
6665 (frame_apply_command_count): New function.
6666 (frame_apply_level_command): New function.
6667 (frame_apply_all_command): New function.
6668 (frame_apply_command): New function.
6669 (faas_command): New function.
6670 (frame_cmd_list): New variable.
6671 (_initialize_stack): Update to setup the new commands 'frame apply'
6672 and 'faas'.
6673
6674 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6675
6676 * cli-utils.c (number_or_range_parser::get_number): Only handle
6677 numbers or convenience var as numbers.
6678 (parse_flags): New function.
6679 (parse_flags_qcs): New function.
6680 (number_or_range_parser::finished): Ensure parsing end is detected
6681 before end of string.
6682 * cli-utils.h (parse_flags): New function.
6683 (parse_flags_qcs): New function.
6684 (number_or_range_parser): Remove m_finished bool.
6685 (number_or_range_parser::skip_range): Set m_in_range to false.
6686
6687 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
6688
6689 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
6690 on Windows.
6691
6692 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6693 Jan Kratochvil <jan.kratochvil@redhat.com>
6694 Paul Fertser <fercerpav@gmail.com>
6695 Tsutomu Seki <sekiriki@gmail.com>
6696 Pedro Alves <palves@redhat.com>
6697
6698 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6699 'unittests/parse-connection-spec-selftests.c'.
6700 (COMMON_SFILES): Add 'common/netstuff.c'.
6701 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
6702 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
6703 * common/netstuff.c: New file.
6704 * common/netstuff.h: New file.
6705 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
6706 (wait_for_connect): Update comment. New parameter
6707 'gdb::optional<int> sock' instead of 'struct serial *scb'.
6708 Use 'sock' directly instead of 'scb->fd'.
6709 (try_connect): New function, with code from 'net_open'.
6710 (net_open): Rewrite main loop to deal with multiple
6711 sockets/addresses. Handle IPv6-style hostnames; implement
6712 support for IPv6 connections.
6713 * unittests/parse-connection-spec-selftests.c: New file.
6714
6715 2018-07-11 Pedro Alves <palves@redhat.com>
6716
6717 PR gdb/23377
6718 * remote.c (remote_target::remote_detach_pid): Call
6719 set_current_process.
6720
6721 2018-07-11 Pedro Alves <palves@redhat.com>
6722
6723 * h8300-tdep.c (h8300_gdbarch_init): Remove
6724 set_gdbarch_ecoff_reg_to_regnum calls.
6725
6726 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6727
6728 PR c++/23373
6729 * c-typeprint.c (c_type_print_base_struct_union): Don't print
6730 offsets/sizes for static members of a class/struct.
6731
6732 2018-07-11 Alan Hayward <alan.hayward@arm.com>
6733
6734 * target-descriptions.c (tdesc_register_bitsize): Rename.
6735 * target-descriptions.h (tdesc_register_bitsize): Likewise.
6736 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
6737 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
6738
6739 2018-07-10 Tom Tromey <tom@tromey.com>
6740
6741 * breakpoint.c (moribund_locations): Now static and a
6742 std::vector.
6743 (breakpoint_init_inferior, moribund_breakpoint_here_p)
6744 (build_bpstat_chain, update_global_location_list)
6745 (breakpoint_retire_moribund): Update.
6746 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
6747 VEC.
6748
6749 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6750
6751 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
6752 (riscv_register_reggroup_p): Use new function, remove unneeded
6753 parenthesis.
6754 (riscv_push_dummy_call): Extend assert to compare against xlen or
6755 flen based on register type.
6756
6757 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6758
6759 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
6760
6761 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6762
6763 * remote.c (show_hardware_watchpoint_limit): New function.
6764 (show_hardware_watchpoint_length_limit): New function.
6765 (show_hardware_breakpoint_limit): New function.
6766 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
6767 where appropriate, update help text.
6768
6769 2018-07-09 Tom Tromey <tom@tromey.com>
6770
6771 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
6772 (CLIBS): Don't mention NAT_CLIBS.
6773
6774 2018-07-09 Tom Tromey <tom@tromey.com>
6775
6776 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
6777 (LIBGDB_OBS, clean mostlyclean): Update.
6778 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
6779
6780 2018-07-09 Tom Tromey <tom@tromey.com>
6781
6782 * Makefile.in (%.c: %.y): Use ECHO_YACC.
6783 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
6784 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
6785
6786 2018-07-09 Tom Tromey <tom@tromey.com>
6787
6788 * Makefile.in (ALLDEPFILES): Remove exec.c.
6789 (COMMON_OBS): Remove exec.o.
6790 (COMMON_SFILES): Add exec.c.
6791
6792 2018-07-09 Tom Tromey <tom@tromey.com>
6793
6794 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
6795
6796 2018-07-09 Tom Tromey <tom@tromey.com>
6797
6798 * Makefile.in (clean mostlyclean): Remove stamp-version.
6799 (version.c): Depend on stamp-version.
6800 (stamp-version): New rule, from version.c rule.
6801
6802 2018-07-09 Tom Tromey <tom@tromey.com>
6803
6804 * Makefile.in (init.c): Depend on stamp-init.
6805 (stamp-init): New rule, from init.c rule.
6806 (clean mostlyclean): Remove stamp-init.
6807
6808 2018-07-09 Tom Tromey <tom@tromey.com>
6809
6810 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
6811 SUBDIR_GCC_COMPILE_SRCS.
6812
6813 2018-07-09 Tom Tromey <tom@tromey.com>
6814
6815 * Makefile.in (init.c): Remove some unused sed rules.
6816
6817 2018-07-09 Tom Tromey <tom@tromey.com>
6818
6819 * Makefile.in (TSOBS): Remove.
6820 (INIT_FILES): Update.
6821 (LIBGDB_OBS): Update.
6822 (COMMON_SFILES): Add inflow.c.
6823 (SFILES): Remove inflow.c.
6824
6825 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6826
6827 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
6828
6829 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
6830
6831 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
6832 get_saveloc_name, is_signal_frame_name, step_name,
6833 init_remote_name, create_addr_space_name,
6834 destroy_addr_space_name, search_unwind_table_name,
6835 find_dyn_list_name): Constify.
6836
6837 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
6838
6839 * darwin-nat.c (darwin_pthread_kill): New function.
6840 (darwin_resume_thread): Use darwin_pthread_kill.
6841
6842 2018-07-05 Tom de Vries <tdevries@suse.de>
6843
6844 * macroexp.c (macro_buffer) <operator=>: New member function.
6845
6846 2018-07-04 Tom Tromey <tom@tromey.com>
6847
6848 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
6849
6850 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
6851
6852 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
6853 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
6854 * maint.c: Likewise.
6855 * top.c: Likewise.
6856
6857 2018-07-04 Joel Brobecker <brobecker@adacore.com>
6858
6859 * NEWS: Create a new section for the next release branch.
6860 Rename the section of the current branch, now that it has
6861 been cut.
6862
6863 2018-07-04 Joel Brobecker <brobecker@adacore.com>
6864
6865 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
6866 * version.in: Bump version to 8.2.50.DATE-git.
6867
6868 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6869 Pedro Alves <palves@redhat.com>
6870
6871 * linux-nat.c (linux_init_ptrace): Rename to ...
6872 (linux_init_ptrace_procfs): ... this. Call
6873 linux_proc_init_warnings.
6874 (linux_nat_target::post_attach)
6875 (linux_nat_target::post_startup_inferior): Adjust.
6876 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
6877 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
6878
6879 2018-07-04 Tom de Vries <tdevries@suse.de>
6880
6881 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
6882 check ...
6883 (read_comp_unit_head): ... here.
6884
6885 2018-07-03 Tom Tromey <tom@tromey.com>
6886
6887 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
6888 (stop_tracing, tstatus_command)
6889 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
6890 (print_one_static_tracepoint_marker): Update.
6891 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
6892 std::vector.
6893 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
6894 VEC.
6895 (all_tracepoints, static_tracepoints_here): Return std::vector.
6896
6897 2018-07-03 Tom Tromey <tom@tromey.com>
6898
6899 * common/ptid.c (ptid_equal): Remove.
6900 * common/ptid.h (ptid_equal): Don't declare.
6901 * ada-tasks.c: Update.
6902 * breakpoint.c: Update.
6903 * common/agent.c: Update.
6904 * corelow.c: Update.
6905 * darwin-nat-info.c: Update.
6906 * darwin-nat.c: Update.
6907 * dcache.c: Update.
6908 * dtrace-probe.c: Update.
6909 * dummy-frame.c: Update.
6910 * fbsd-nat.c: Update.
6911 * frame.c: Update.
6912 * gdbthread.h: Update.
6913 * gnu-nat.c: Update.
6914 * go32-nat.c: Update.
6915 * inf-loop.c: Update.
6916 * inf-ptrace.c: Update.
6917 * infcall.c: Update.
6918 * infcmd.c: Update.
6919 * inflow.c: Update.
6920 * infrun.c: Update.
6921 * linux-fork.c: Update.
6922 * linux-nat.c: Update.
6923 * linux-thread-db.c: Update.
6924 * mi/mi-cmd-var.c: Update.
6925 * mi/mi-interp.c: Update.
6926 * mi/mi-main.c: Update.
6927 * nto-procfs.c: Update.
6928 * ppc-linux-tdep.c: Update.
6929 * procfs.c: Update.
6930 * python/py-inferior.c: Update.
6931 * python/py-record-btrace.c: Update.
6932 * python/py-record.c: Update.
6933 * ravenscar-thread.c: Update.
6934 * regcache.c: Update.
6935 * remote-sim.c: Update.
6936 * remote.c: Update.
6937 * sol-thread.c: Update.
6938 * solib.c: Update.
6939 * target.c: Update.
6940 * tui/tui-stack.c: Update.
6941 * varobj.c: Update.
6942 * windows-nat.c: Update.
6943 * windows-tdep.c: Update.
6944
6945 2018-07-03 Tom Tromey <tom@tromey.com>
6946
6947 * common/ptid.c (ptid_match): Remove.
6948 * common/ptid.h (ptid_match): Don't declare.
6949 * fbsd-nat.c: Update.
6950 * infcmd.c: Update.
6951 * infrun.c: Update.
6952 * linux-nat.c: Update.
6953 * record-btrace.c: Update.
6954 * regcache.c: Update.
6955 * remote.c: Update.
6956
6957 2018-07-03 Tom Tromey <tom@tromey.com>
6958
6959 * common/ptid.c (ptid_tid_p): Remove.
6960 * common/ptid.h (ptid_tid_p): Don't declare.
6961 * sol-thread.c: Update.
6962
6963 2018-07-03 Tom Tromey <tom@tromey.com>
6964
6965 * common/ptid.c (ptid_lwp_p): Remove.
6966 * common/ptid.h (ptid_lwp_p): Don't declare.
6967 * fbsd-nat.c: Update.
6968 * linux-nat.c: Update.
6969 * nat/linux-procfs.c: Update.
6970 * nat/x86-linux-dregs.c: Update.
6971 * sol-thread.c: Update.
6972
6973 2018-07-03 Tom Tromey <tom@tromey.com>
6974
6975 * common/ptid.c (ptid_is_pid): Remove.
6976 * common/ptid.h (ptid_is_pid): Don't declare.
6977 * infrun.c: Update.
6978 * linux-nat.c: Update.
6979 * mi/mi-interp.c: Update.
6980 * remote.c: Update.
6981 * thread.c: Update.
6982
6983 2018-07-03 Tom Tromey <tom@tromey.com>
6984
6985 * common/ptid.c (ptid_get_tid): Remove.
6986 * common/ptid.h (ptid_get_tid): Don't declare.
6987 * ada-tasks.c: Update.
6988 * aix-thread.c: Update.
6989 * bsd-uthread.c: Update.
6990 * darwin-nat.c: Update.
6991 * fbsd-nat.c: Update.
6992 * i386-darwin-nat.c: Update.
6993 * infrun.c: Update.
6994 * linux-tdep.c: Update.
6995 * nto-procfs.c: Update.
6996 * ppc-ravenscar-thread.c: Update.
6997 * python/py-infthread.c: Update.
6998 * ravenscar-thread.c: Update.
6999 * sol-thread.c: Update.
7000 * sparc-ravenscar-thread.c: Update.
7001 * windows-nat.c: Update.
7002
7003 2018-07-03 Tom Tromey <tom@tromey.com>
7004
7005 * common/ptid.c (ptid_get_lwp): Remove.
7006 * common/ptid.h (ptid_get_lwp): Don't declare.
7007 * aarch64-linux-nat.c: Update.
7008 * ada-tasks.c: Update.
7009 * aix-thread.c: Update.
7010 * amd64-linux-nat.c: Update.
7011 * arm-linux-nat.c: Update.
7012 * corelow.c: Update.
7013 * fbsd-nat.c: Update.
7014 * fbsd-tdep.c: Update.
7015 * gnu-nat.c: Update.
7016 * i386-cygwin-tdep.c: Update.
7017 * i386-gnu-nat.c: Update.
7018 * i386-linux-nat.c: Update.
7019 * ia64-linux-nat.c: Update.
7020 * inf-ptrace.c: Update.
7021 * infrun.c: Update.
7022 * linux-fork.c: Update.
7023 * linux-nat.c: Update.
7024 * linux-tdep.c: Update.
7025 * linux-thread-db.c: Update.
7026 * mips-linux-nat.c: Update.
7027 * nat/aarch64-linux-hw-point.c: Update.
7028 * nat/aarch64-linux.c: Update.
7029 * nat/linux-btrace.c: Update.
7030 * nat/linux-osdata.c: Update.
7031 * nat/linux-procfs.c: Update.
7032 * nat/x86-linux-dregs.c: Update.
7033 * obsd-nat.c: Update.
7034 * ppc-fbsd-nat.c: Update.
7035 * ppc-linux-nat.c: Update.
7036 * procfs.c: Update.
7037 * python/py-infthread.c: Update.
7038 * ravenscar-thread.c: Update.
7039 * remote.c: Update.
7040 * s390-linux-nat.c: Update.
7041 * sol-thread.c: Update.
7042 * sol2-tdep.c: Update.
7043 * spu-linux-nat.c: Update.
7044 * x86-linux-nat.c: Update.
7045 * xtensa-linux-nat.c: Update.
7046
7047 2018-07-03 Tom Tromey <tom@tromey.com>
7048
7049 * common/ptid.c (ptid_get_pid): Remove.
7050 * common/ptid.h (ptid_get_pid): Don't declare.
7051 * aarch64-linux-nat.c: Update.
7052 * ada-lang.c: Update.
7053 * aix-thread.c: Update.
7054 * alpha-bsd-nat.c: Update.
7055 * amd64-fbsd-nat.c: Update.
7056 * amd64-linux-nat.c: Update.
7057 * arm-linux-nat.c: Update.
7058 * arm-nbsd-nat.c: Update.
7059 * auxv.c: Update.
7060 * break-catch-syscall.c: Update.
7061 * breakpoint.c: Update.
7062 * bsd-uthread.c: Update.
7063 * corelow.c: Update.
7064 * ctf.c: Update.
7065 * darwin-nat.c: Update.
7066 * fbsd-nat.c: Update.
7067 * fbsd-tdep.c: Update.
7068 * gcore.c: Update.
7069 * gnu-nat.c: Update.
7070 * hppa-nbsd-nat.c: Update.
7071 * hppa-obsd-nat.c: Update.
7072 * i386-fbsd-nat.c: Update.
7073 * ia64-linux-nat.c: Update.
7074 * inf-ptrace.c: Update.
7075 * infcmd.c: Update.
7076 * inferior.c: Update.
7077 * inferior.h: Update.
7078 * inflow.c: Update.
7079 * infrun.c: Update.
7080 * linux-fork.c: Update.
7081 * linux-nat.c: Update.
7082 * linux-tdep.c: Update.
7083 * linux-thread-db.c: Update.
7084 * m68k-bsd-nat.c: Update.
7085 * mi/mi-interp.c: Update.
7086 * mi/mi-main.c: Update.
7087 * mips-linux-nat.c: Update.
7088 * mips-nbsd-nat.c: Update.
7089 * mips64-obsd-nat.c: Update.
7090 * nat/aarch64-linux-hw-point.c: Update.
7091 * nat/aarch64-linux.c: Update.
7092 * nat/linux-btrace.c: Update.
7093 * nat/linux-osdata.c: Update.
7094 * nat/linux-procfs.c: Update.
7095 * nat/x86-linux-dregs.c: Update.
7096 * nto-procfs.c: Update.
7097 * obsd-nat.c: Update.
7098 * ppc-linux-nat.c: Update.
7099 * ppc-nbsd-nat.c: Update.
7100 * ppc-obsd-nat.c: Update.
7101 * proc-service.c: Update.
7102 * procfs.c: Update.
7103 * python/py-inferior.c: Update.
7104 * python/py-infthread.c: Update.
7105 * ravenscar-thread.c: Update.
7106 * record.c: Update.
7107 * remote-sim.c: Update.
7108 * remote.c: Update.
7109 * rs6000-nat.c: Update.
7110 * s390-linux-nat.c: Update.
7111 * sh-nbsd-nat.c: Update.
7112 * sol-thread.c: Update.
7113 * sparc-nat.c: Update.
7114 * sparc64-tdep.c: Update.
7115 * spu-linux-nat.c: Update.
7116 * spu-tdep.c: Update.
7117 * target-debug.h: Update.
7118 * target.c: Update.
7119 * thread.c: Update.
7120 * tid-parse.c: Update.
7121 * tracefile-tfile.c: Update.
7122 * vax-bsd-nat.c: Update.
7123 * windows-nat.c: Update.
7124 * x86-linux-nat.c: Update.
7125 * x86-nat.c: Update.
7126
7127 2018-07-03 Tom Tromey <tom@tromey.com>
7128
7129 * common/ptid.c (pid_to_ptid): Remove.
7130 * common/ptid.h (pid_to_ptid): Don't declare.
7131 * aix-thread.c: Update.
7132 * arm-linux-nat.c: Update.
7133 * common/ptid.c: Update.
7134 * common/ptid.h: Update.
7135 * corelow.c: Update.
7136 * ctf.c: Update.
7137 * darwin-nat.c: Update.
7138 * fbsd-nat.c: Update.
7139 * fork-child.c: Update.
7140 * gnu-nat.c: Update.
7141 * go32-nat.c: Update.
7142 * inf-ptrace.c: Update.
7143 * infcmd.c: Update.
7144 * inferior.c: Update.
7145 * infrun.c: Update.
7146 * linux-fork.c: Update.
7147 * linux-nat.c: Update.
7148 * nat/aarch64-linux-hw-point.c: Update.
7149 * nat/fork-inferior.c: Update.
7150 * nat/x86-linux-dregs.c: Update.
7151 * nto-procfs.c: Update.
7152 * obsd-nat.c: Update.
7153 * procfs.c: Update.
7154 * progspace.c: Update.
7155 * remote.c: Update.
7156 * rs6000-nat.c: Update.
7157 * s390-linux-nat.c: Update.
7158 * sol-thread.c: Update.
7159 * spu-linux-nat.c: Update.
7160 * target.c: Update.
7161 * top.c: Update.
7162 * tracefile-tfile.c: Update.
7163 * windows-nat.c: Update.
7164
7165 2018-07-03 Tom Tromey <tom@tromey.com>
7166
7167 * common/ptid.h (ptid_build): Don't declare.
7168 * common/ptid.c (ptid_build): Remove.
7169 * aix-thread.c: Update.
7170 * bsd-kvm.c: Update.
7171 * bsd-uthread.c: Update.
7172 * common/agent.c: Update.
7173 * common/ptid.c: Update.
7174 * common/ptid.h: Update.
7175 * corelow.c: Update.
7176 * darwin-nat.c: Update.
7177 * fbsd-nat.c: Update.
7178 * gnu-nat.c: Update.
7179 * linux-fork.c: Update.
7180 * linux-nat.c: Update.
7181 * linux-thread-db.c: Update.
7182 * nat/linux-osdata.c: Update.
7183 * nat/linux-procfs.c: Update.
7184 * nto-procfs.c: Update.
7185 * obsd-nat.c: Update.
7186 * proc-service.c: Update.
7187 * procfs.c: Update.
7188 * ravenscar-thread.c: Update.
7189 * remote-sim.c: Update.
7190 * remote.c: Update.
7191 * sol-thread.c: Update.
7192 * target.c: Update.
7193 * windows-nat.c: Update.
7194
7195 2018-07-03 Tom Tromey <tom@tromey.com>
7196
7197 * infrun.c (follow_exec): Use exit_inferior_silent.
7198 * inferior.c (exit_inferior_num_silent): Remove.
7199 * inferior.h (exit_inferior_num_silent): Don't declare.
7200
7201 2018-07-03 Tom Tromey <tom@tromey.com>
7202
7203 PR cli/23340:
7204 * darwin-nat.c (darwin_attach_pid): Reset inferior and
7205 inferior_ptid on error.
7206
7207 2018-07-02 Maciej W. Rozycki <macro@mips.com>
7208 Simon Marchi <simon.marchi@polymtl.ca>
7209
7210 PR tdep/8282
7211 * disasm.h (gdb_disassembler): Add
7212 `m_disassembler_options_holder'. member
7213 * disasm.c (get_all_disassembler_options): New function.
7214 (gdb_disassembler::gdb_disassembler): Use it.
7215 (gdb_buffered_insn_length_init_dis): Likewise.
7216 (gdb_buffered_insn_length): Adjust accordingly.
7217 (set_disassembler_options): Handle options with arguments.
7218 (show_disassembler_options_sfunc): Likewise. Add a leading new
7219 line if showing options with descriptions.
7220 (disassembler_options_completer): Adapt to using the
7221 `disasm_options_and_args_t' structure.
7222 * mips-tdep.c (mips_disassembler_options): New variable.
7223 (mips_disassembler_options_o32): Likewise.
7224 (mips_disassembler_options_n32): Likewise.
7225 (mips_disassembler_options_n64): Likewise.
7226 (gdb_print_insn_mips): Don't set `disassembler_options'.
7227 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
7228 functions.
7229 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
7230 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
7231 `gdbarch_disassembler_options_implicit' and
7232 `gdbarch_valid_disassembler_options'.
7233 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
7234 `disasm_options_and_args_t' structure.
7235 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
7236 method.
7237 (valid_disassembler_options): Switch from `disasm_options_t' to
7238 the `disasm_options_and_args_t' structure.
7239 * NEWS: Document `set disassembler-options' support for the MIPS
7240 target.
7241 * gdbarch.h: Regenerate.
7242 * gdbarch.c: Regenerate.
7243
7244 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
7245
7246 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
7247
7248 2018-06-29 Joel Brobecker <brobecker@adacore.com>
7249
7250 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
7251 parameter in call to amd64_target_description.
7252 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
7253 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
7254 (amd64fbsd_init_abi): Likewise.
7255 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7256 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7257 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7258 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
7259
7260 2018-06-29 Pedro Alves <palves@redhat.com>
7261
7262 * gdb/amd64-tdep.h (amd64_create_target_description): Add
7263 "segments" parameter.
7264 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
7265 (_initialize_amd64_tdep): Update call to
7266 amd64_create_target_description.
7267 (amd64_target_description): Add "segments" parameter. Adjust
7268 the implementation to use it.
7269 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
7270 call to amd64_create_target_description.
7271 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
7272 * gdb/arch/amd64.h (amd64_create_target_description): Add
7273 "segments" register.
7274 * gdb/arch/amd64.c (amd64_create_target_description): Add
7275 "segments" parameter. Call create_feature_i386_64bit_segments
7276 only if SEGMENTS is true.
7277 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
7278 call to amd64_create_target_description.
7279
7280 2018-06-29 Pedro Alves <palves@redhat.com>
7281
7282 * thread.c (thread_target_id_str): New, factored out from ...
7283 (print_thread_info_1): ... here. Use it to compute the max
7284 "Target Id" column width.
7285
7286 2018-06-29 Pedro Alves <palves@redhat.com>
7287
7288 * remote.c (remote_target::extra_thread_info): Delete
7289 'display_buf' and 'n' locals. from the cache, regardless of
7290 packet mechanims is in use. Use cache for qThreadExtra and qP
7291 methods too.
7292
7293 2018-06-29 Pedro Alves <palves@redhat.com>
7294
7295 * blockframe.c (find_pc_sect_containing_function): New function.
7296 * breakpoint.c (print_breakpoint_location): Don't call
7297 find_pc_sect_function.
7298 * linespec.c (create_sals_line_offset): Record the location's
7299 symbol in the sal.
7300 * linespec.c (convert_address_location_to_sals): Fill in sal's
7301 symbol with find_pc_sect_containing_function.
7302 * symtab.c (find_function_start_sal): Rename to ...
7303 (find_function_start_sal_1): ... this.
7304 (find_function_start_sal): Reimplement as wrapper around
7305 find_function_start_sal_1, and use
7306 find_pc_sect_containing_function to fill in the sal's symbol.
7307 (find_function_start_sal(symbol*, bool)): Adjust.
7308 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
7309 comments.
7310 (find_pc_sect_containing_function): Declare.
7311
7312 2018-06-29 Pedro Alves <palves@redhat.com>
7313
7314 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
7315 true if the the location has no symbol.
7316
7317 2018-06-28 Tom Tromey <tom@tromey.com>
7318
7319 * NEWS: Mention --enable-codesign.
7320 * silent-rules.mk (ECHO_SIGN): New variable.
7321 * configure.ac: Add --enable-codesign.
7322 * configure: Rebuild.
7323 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
7324 (gdb$(EXEEXT)): Optionally invoke codesign.
7325
7326 2018-06-28 Pedro Alves <palves@redhat.com>
7327
7328 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
7329 comments.
7330 (switch_to_thread_no_regs): Adjust comment.
7331 * infcmd.c (stop_pc): Delete.
7332 (post_create_inferior, info_program_command): Replace references
7333 to stop_pc with references to thread_info->suspend.stop_pc.
7334 * inferior.h (stop_pc): Delete declaration.
7335 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
7336 (handle_inferior_event_1, handle_signal_stop)
7337 (process_event_stop_test, keep_going_stepped_thread)
7338 (handle_step_into_function, handle_step_into_function_backward)
7339 (print_stop_location): Replace references to stop_pc with
7340 references to thread_info->suspend.stop_pc.
7341 (struct infcall_suspend_state) <stop_pc>: Delete field.
7342 (save_infcall_suspend_state, restore_infcall_suspend_state):
7343 Remove references to inf_stat->stop_pc.
7344 * linux-fork.c (fork_load_infrun_state): Likewise.
7345 * record-btrace.c (record_btrace_set_replay): Likewise.
7346 * record-full.c (record_full_goto_entry): Likewise.
7347 * remote.c (print_one_stopped_thread): Likewise.
7348 * target.c (target_resume): Extend comment.
7349 * thread.c (set_executing_thread): New.
7350 (set_executing): Use it.
7351 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
7352 Remove references to stop_pc.
7353
7354 2018-06-28 Pedro Alves <palves@redhat.com>
7355
7356 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
7357 Moving fetching stop_pc until after ecs->event_thread is refreshed.
7358
7359 2018-06-28 Tom Tromey <tom@tromey.com>
7360
7361 * coffread.c (coff_symfile_finish): Update.
7362 * xcoffread.c (xcoff_symfile_finish): Update.
7363 * elfread.c (elf_symfile_finish): Update.
7364 * symfile.h (dwarf2_free_objfile): Don't declare.
7365 * dwarf2read.c (_initialize_dwarf2_read): Use
7366 register_objfile_data_with_cleanup.
7367 (dwarf2_free_objfile): Now static. Change signature.
7368
7369 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
7370
7371 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
7372 option "-o" to add-symbol-file-load to add an offset to each
7373 section's load address.
7374 * symfile.c (set_objfile_default_section_offset): New function.
7375
7376 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
7377
7378 * symfile.c (add_symbol_file_command): Make sure that sections
7379 with the same name are sorted in the same order.
7380
7381 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
7382
7383 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
7384 require the second argument. If omitted, load sections at the
7385 addresses specified in the file.
7386
7387 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
7388
7389 * symfile.c (symbol_file_command, symbol_file_add_main_1)
7390 (_initialize_symfile): Add option "-o" to symbol-file to add an
7391 offset to each section of the symbol file.
7392
7393 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
7394
7395 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
7396
7397 2018-06-27 Tom Tromey <tom@tromey.com>
7398
7399 * stack.c (_initialize_stack): Update "func" help text.
7400
7401 2018-06-27 Tom Tromey <tom@tromey.com>
7402
7403 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
7404 std::vector.
7405 (unwind_infopy_str, pyuw_create_unwind_info)
7406 (unwind_infopy_add_saved_register, pyuw_sniffer)
7407 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
7408 Update.
7409 (struct saved_reg): Add constructor.
7410 <value>: Now a gdbpy_ref<>.
7411
7412 2018-06-27 Tom Tromey <tom@tromey.com>
7413
7414 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
7415
7416 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7417
7418 * gdb-gdb.py.in: Format using autopep8.
7419
7420 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7421
7422 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
7423 (type_lookup_function): Recognize CORE_ADDR values.
7424
7425 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7426
7427 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
7428 print tag_name.
7429
7430 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7431
7432 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
7433 <__lt__>: Add.
7434
7435 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7436
7437 * gdb-gdb.py: Move to...
7438 * gdb-gdb.py.in: ... here.
7439 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
7440 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
7441 dependencies.
7442 (distclean): Remove gdb-gdb.py when cleaning.
7443 (gdb-gdb.py, gdb-gdb.gdb): New rules.
7444 * configure: Re-generate.
7445
7446 2018-06-27 Pedro Alves <palves@redhat.com>
7447
7448 * proc-service.c (get_ps_regcache): New.
7449 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7450 (ps_lsetfpregs): Use it.
7451
7452 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
7453
7454 PR gdb/21695
7455 * dwarf2read.c (lnp_state_machine::check_line_address): Update
7456 declaration.
7457 (dwarf_decode_lines_1): Adjust.
7458
7459 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7460
7461 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
7462 override.
7463 <info_proc>: Likewise.
7464
7465 2018-06-26 Joel Brobecker <brobecker@adacore.com>
7466
7467 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
7468 to windows_fetch_one_register, and only handle the case of
7469 fetching one register. Move the code that reloads the context
7470 and iterates over all registers if R is negative to...
7471 (windows_nat_target::fetch_registers): ... here.
7472 (do_windows_store_inferior_registers): Rename to
7473 windows_store_one_register, and only handle the case of storing
7474 one register. Move the code that handles the case where r is
7475 negative to...
7476 (windows_nat_target::store_registers) ... here.
7477
7478 2018-06-26 Tom Tromey <tom@tromey.com>
7479
7480 PR rust/22574:
7481 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
7482 * rust-lang.c (rust_print_struct_def): Add podata parameter.
7483 Update.
7484 (rust_internal_print_type): Add podata parameter.
7485 (rust_print_type): Update.
7486
7487 2018-06-26 Tom Tromey <tom@tromey.com>
7488
7489 * typeprint.h (struct print_offset_data) <update, finish,
7490 maybe_print_hole>: New methods.
7491 <indentation>: New constant.
7492 * typeprint.c (print_offset_data::indentation): Define.
7493 (print_offset_data::maybe_print_hole, print_offset_data::update)
7494 (print_offset_data::finish): Move from c-typeprint.c and rename.
7495 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
7496 (print_spaces_filtered_with_print_options): Update.
7497 (c_print_type_union_field_offset, maybe_print_hole)
7498 (c_print_type_struct_field_offset): Move to typeprint.c and
7499 rename.
7500 (c_type_print_base_struct_union): Update.
7501
7502 2018-06-25 Pedro Alves <palves@redhat.com>
7503
7504 * gdbthread.h (thread_info_ref, delete_thread)
7505 (delete_thread_silent, first_thread_of_inferior)
7506 (any_thread_of_inferior, switch_to_thread)
7507 (enable_thread_stack_temporaries)
7508 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7509 (get_last_thread_stack_temporary)
7510 (value_in_thread_stack_temporaries, can_access_registers_thread):
7511 Spell out "struct thread_info" instead of just "thread_info".
7512 * inferior.h (notice_new_inferior): Likewise.
7513
7514 2018-06-25 Pedro Alves <palves@redhat.com>
7515
7516 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
7517 pass thread_info pointer to delete_thread.
7518 (windows_nat_target::detach): Pass inferior pointer to
7519 detach_inferior.
7520 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
7521 delete_thread.
7522 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
7523 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
7524 and pass a thread_info pointer to delete_thread.
7525 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
7526 pass thread_info pointer to delete_thread.
7527 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
7528 delete_thread_silent call.
7529 * procfs.c (procfs_target::detach): Pass inferior pointer to
7530 detach_inferior.
7531 (procfs_target::wait): Pass thread_info pointer to delete_thread.
7532 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
7533 delete_thread_silent call.
7534 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
7535 pass thread_info pointer to delete_thread.
7536 (windows_nat_target::detach): Pass inferior pointer to
7537 delete_inferior.
7538
7539 2018-06-22 Alan Hayward <alan.hayward@arm.com>
7540
7541 * regcache.c (readable_regcache::read_part): Fix asserts.
7542 (reg_buffer::raw_collect_part): New function.
7543 (regcache::write_part): Fix asserts.
7544 (reg_buffer::raw_supply_part): New function.
7545 (regcache::transfer_regset_register): New helper function.
7546 (regcache::transfer_regset): Call new functions.
7547 (regcache_supply_regset): Use gdb_byte*.
7548 (regcache::supply_regset): Likewise.
7549 (regcache_collect_regset): Likewise.
7550 (regcache::collect_regset): Likewise.
7551 * regcache.h (reg_buffer::raw_collect_part): New declaration.
7552 (reg_buffer::raw_supply_part): Likewise.
7553 (regcache::transfer_regset_register): Likewise.
7554 (regcache::transfer_regset): Use gdb_byte*.
7555
7556 2018-06-22 Alan Hayward <alan.hayward@arm.com>
7557
7558 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
7559
7560 2018-06-21 Pedro Alves <palves@redhat.com>
7561
7562 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
7563 instead of a ptid_t. All callers adjusted.
7564 * ada-tasks.c (ada_get_task_number): Likewise. All callers
7565 adjusted.
7566 (print_ada_task_info, display_current_task_id, task_command_1):
7567 Adjust.
7568 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
7569 inferior_thread.
7570 (breakpoint_kind): Adjust.
7571 (remove_breakpoints_pid): Rename to ...
7572 (remove_breakpoints_inf): ... this. Adjust to take an inferior
7573 pointer. All callers adjusted.
7574 (bpstat_clear_actions): Use inferior_thread.
7575 (get_bpstat_thread): New.
7576 (bpstat_do_actions): Use it.
7577 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
7578 to take a thread_info pointer. All callers adjusted.
7579 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
7580 (breakpoint_re_set_thread): Use inferior_thread.
7581 * breakpoint.h (struct inferior): Forward declare.
7582 (bpstat_stop_status): Update.
7583 (remove_breakpoints_pid): Delete.
7584 (remove_breakpoints_inf): New.
7585 * bsd-uthread.c (bsd_uthread_target::wait)
7586 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
7587 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
7588 (maint_btrace_packet_history_cmd)
7589 (maint_btrace_clear_packet_history_cmd): Adjust.
7590 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
7591 inferior_thread.
7592 * cli/cli-interp.c: Include "inferior.h".
7593 * common/refcounted-object.h (struct
7594 refcounted_object_ref_policy): New.
7595 * compile/compile-object-load.c: Include gdbthread.h.
7596 (store_regs): Use inferior_thread.
7597 * corelow.c (core_target::close): Use current_inferior.
7598 (core_target_open): Adjust to use first_thread_of_inferior and use
7599 the current inferior.
7600 * ctf.c (ctf_target::close): Adjust to use current_inferior.
7601 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
7602 <thread>: ... this new field. All references adjusted.
7603 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
7604 Take a thread_info pointer instead of a ptid_t.
7605 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
7606 (dummy_frame_discard, register_dummy_frame_dtor): Take a
7607 thread_info pointer instead of a ptid_t.
7608 * elfread.c: Include "inferior.h".
7609 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
7610 Use inferior_thread.
7611 * eval.c (evaluate_subexp): Likewise.
7612 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
7613 inferior_thread.
7614 * gdb_proc_service.h (struct thread_info): Forward declare.
7615 (struct ps_prochandle) <ptid>: Delete, replaced by ...
7616 <thread>: ... this new field. All references adjusted.
7617 * gdbarch.h, gdbarch.c: Regenerate.
7618 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
7619 'thread' parameter. All implementations and callers adjusted.
7620 * gdbthread.h (thread_info) <set_running>: New method.
7621 (delete_thread, delete_thread_silent): Take a thread_info pointer
7622 instead of a ptid.
7623 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
7624 (first_thread_of_process): Delete, replaced by ...
7625 (first_thread_of_inferior): ... this new function. All callers
7626 adjusted.
7627 (any_live_thread_of_process): Delete, replaced by ...
7628 (any_live_thread_of_inferior): ... this new function. All callers
7629 adjusted.
7630 (switch_to_thread, switch_to_no_thread): Declare.
7631 (is_executing): Delete.
7632 (enable_thread_stack_temporaries): Update comment.
7633 <enable_thread_stack_temporaries>: Take a thread_info pointer
7634 instead of a ptid_t. Incref the thread.
7635 <~enable_thread_stack_temporaries>: Decref the thread.
7636 <m_ptid>: Delete
7637 <m_thr>: New.
7638 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7639 (get_last_thread_stack_temporary)
7640 (value_in_thread_stack_temporaries, can_access_registers_thread):
7641 Take a thread_info pointer instead of a ptid_t. All callers
7642 adjusted.
7643 * infcall.c (get_call_return_value): Use inferior_thread.
7644 (run_inferior_call): Work with thread pointers instead of ptid_t.
7645 (call_function_by_hand_dummy): Work with thread pointers instead
7646 of ptid_t. Use thread_info_ref.
7647 * infcmd.c (proceed_thread_callback): Access thread's state
7648 directly.
7649 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
7650 access thread's state directly.
7651 (continue_command): Use inferior_thread.
7652 (info_program_command): Use find_thread_ptid and access thread
7653 state directly.
7654 (proceed_after_attach_callback): Use thread state directly.
7655 (notice_new_inferior): Take a thread_info pointer instead of a
7656 ptid_t. All callers adjusted.
7657 (exit_inferior): Take an inferior pointer instead of a pid. All
7658 callers adjusted.
7659 (exit_inferior_silent): New.
7660 (detach_inferior): Delete.
7661 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
7662 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
7663 (detach_inferior_command, kill_inferior_command): Use
7664 find_inferior_id instead of valid_gdb_inferior_id and
7665 gdb_inferior_id_to_pid.
7666 (inferior_command): Use inferior and thread pointers.
7667 * inferior.h (struct thread_info): Forward declare.
7668 (notice_new_inferior): Take a thread_info pointer instead of a
7669 ptid_t. All callers adjusted.
7670 (detach_inferior): Delete declaration.
7671 (exit_inferior, exit_inferior_silent): Take an inferior pointer
7672 instead of a pid. All callers adjusted.
7673 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
7674 (valid_gdb_inferior_id): Delete.
7675 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
7676 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
7677 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
7678 ...
7679 <inf>: ... this new field.
7680 <step_ptid>: Delete, replaced by ...
7681 <step_thread>: ... this new field.
7682 (get_displaced_stepping_state): Take an inferior pointer instead
7683 of a pid. All callers adjusted.
7684 (displaced_step_in_progress_any_inferior): Adjust.
7685 (displaced_step_in_progress_thread): Take a thread pointer instead
7686 of a ptid_t. All callers adjusted.
7687 (displaced_step_in_progress, add_displaced_stepping_state): Take
7688 an inferior pointer instead of a pid. All callers adjusted.
7689 (get_displaced_step_closure_by_addr): Adjust.
7690 (remove_displaced_stepping_state): Take an inferior pointer
7691 instead of a pid. All callers adjusted.
7692 (displaced_step_prepare_throw, displaced_step_prepare)
7693 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
7694 All callers adjusted.
7695 (start_step_over): Adjust.
7696 (infrun_thread_ptid_changed): Remove bit updating ptids in the
7697 displaced step queue.
7698 (do_target_resume): Adjust.
7699 (fetch_inferior_event): Use inferior_thread.
7700 (context_switch, get_inferior_stop_soon): Take an
7701 execution_control_state pointer instead of a ptid_t. All callers
7702 adjusted.
7703 (switch_to_thread_cleanup): Delete.
7704 (stop_all_threads): Use scoped_restore_current_thread.
7705 * inline-frame.c: Include "gdbthread.h".
7706 (inline_state) <inline_state>: Take a thread pointer instead of a
7707 ptid_t. All callers adjusted.
7708 <ptid>: Delete, replaced by ...
7709 <thread>: ... this new field.
7710 (find_inline_frame_state): Take a thread pointer instead of a
7711 ptid_t. All callers adjusted.
7712 (skip_inline_frames, step_into_inline_frame)
7713 (inline_skipped_frames, inline_skipped_symbol): Take a thread
7714 pointer instead of a ptid_t. All callers adjusted.
7715 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
7716 (inline_skipped_frames, inline_skipped_symbol): Likewise.
7717 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
7718 pointers directly.
7719 * linux-nat.c (get_detach_signal): Likewise.
7720 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
7721 (thread_db_notice_clone): Adjust.
7722 (thread_db_find_new_threads_silently)
7723 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
7724 a thread pointer instead of a ptid_t. All callers adjusted.
7725 * mi/mi-cmd-var.c: Include "inferior.h".
7726 (mi_cmd_var_update_iter): Update to use thread pointers.
7727 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
7728 inferior directly.
7729 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
7730 out to ...
7731 (mi_output_running): ... this new function.
7732 (mi_on_resume_1): Adjust to use it.
7733 (mi_user_selected_context_changed): Adjust to use inferior_thread.
7734 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
7735 directly.
7736 (interrupt_thread_callback): : Adjust to use thread and inferior
7737 pointers.
7738 * proc-service.c: Include "gdbthread.h".
7739 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
7740 * progspace-and-thread.c: Include "inferior.h".
7741 * progspace.c: Include "inferior.h".
7742 * python/py-exitedevent.c (create_exited_event_object): Adjust to
7743 hold a reference to an inferior_object.
7744 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
7745 inferior_thread.
7746 * python/py-inferior.c (struct inferior_object): Give the type a
7747 tag name instead of a typedef.
7748 (python_on_normal_stop): No need to check if the current thread is
7749 listed.
7750 (inferior_to_inferior_object): Change return type to
7751 inferior_object. All callers adjusted.
7752 (find_thread_object): Delete, bits factored out to ...
7753 (thread_to_thread_object): ... this new function.
7754 * python/py-infthread.c (create_thread_object): Use
7755 inferior_to_inferior_object.
7756 (thpy_is_stopped): Use thread pointer directly.
7757 (gdbpy_selected_thread): Use inferior_thread.
7758 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
7759 field, replaced with ...
7760 <thread>: ... this new field. All users adjusted.
7761 (btpy_insn_or_gap_new): Drop const.
7762 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
7763 callers adjusted.
7764 * python/py-record.c: Include "gdbthread.h".
7765 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7766 a ptid_t. All callers adjusted.
7767 (gdbpy_current_recording): Use inferior_thread.
7768 * python/py-record.h (recpy_record_object) <ptid>: Delete
7769 field, replaced with ...
7770 <thread>: ... this new field. All users adjusted.
7771 (recpy_element_object) <ptid>: Delete
7772 field, replaced with ...
7773 <thread>: ... this new field. All users adjusted.
7774 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7775 a ptid_t. All callers adjusted.
7776 * python/py-threadevent.c: Include "gdbthread.h".
7777 (get_event_thread): Use thread_to_thread_object.
7778 * python/python-internal.h (struct inferior_object): Forward
7779 declare.
7780 (find_thread_object, find_inferior_object): Delete declarations.
7781 (thread_to_thread_object, inferior_to_inferior_object): New
7782 declarations.
7783 * record-btrace.c: Include "inferior.h".
7784 (require_btrace_thread): Use inferior_thread.
7785 (record_btrace_frame_sniffer)
7786 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
7787 (get_thread_current_frame): Use scoped_restore_current_thread and
7788 switch_to_thread.
7789 (get_thread_current_frame): Use thread pointer directly.
7790 (record_btrace_replay_at_breakpoint): Use thread's inferior
7791 pointer directly.
7792 * record-full.c: Include "inferior.h".
7793 * regcache.c: Include "gdbthread.h".
7794 (get_thread_arch_regcache): Use the inferior's address space
7795 directly.
7796 (get_thread_regcache, registers_changed_thread): New.
7797 * regcache.h (get_thread_regcache(thread_info *thread)): New
7798 overload.
7799 (registers_changed_thread): New.
7800 (remote_target) <remote_detach_1>: Swap order of parameters.
7801 (remote_add_thread): <remote_add_thread>: Return the new thread.
7802 (get_remote_thread_info(ptid_t)): New overload.
7803 (remote_target::remote_notice_new_inferior): Use thread pointers
7804 directly.
7805 (remote_target::process_initial_stop_replies): Use
7806 thread_info::set_running.
7807 (remote_target::remote_detach_1, remote_target::detach)
7808 (extended_remote_target::detach): Adjust.
7809 * stack.c (frame_show_address): Use inferior_thread.
7810 * target-debug.h (target_debug_print_thread_info_pp): New.
7811 * target-delegates.c: Regenerate.
7812 * target.c (default_thread_address_space): Delete.
7813 (memory_xfer_partial_1): Use current_inferior.
7814 (target_detach): Use current_inferior.
7815 (target_thread_address_space): Delete.
7816 (generic_mourn_inferior): Use current_inferior.
7817 * target.h (struct target_ops) <thread_address_space>: Delete.
7818 (target_thread_address_space): Delete.
7819 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
7820 pointers directly.
7821 (delete_thread_1, delete_thread, delete_thread_silent): Take a
7822 thread pointer instead of a ptid_t. Adjust all callers.
7823 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
7824 (first_thread_of_process): Delete, replaced by ...
7825 (first_thread_of_inferior): ... this new function. All callers
7826 adjusted.
7827 (any_thread_of_process): Rename to ...
7828 (any_thread_of_inferior): ... this, and take an inferior pointer.
7829 (any_live_thread_of_process): Rename to ...
7830 (any_live_thread_of_inferior): ... this, and take an inferior
7831 pointer.
7832 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7833 (value_in_thread_stack_temporaries)
7834 (get_last_thread_stack_temporary): Take a thread pointer instead
7835 of a ptid_t. Adjust all callers.
7836 (thread_info::set_running): New.
7837 (validate_registers_access): Use inferior_thread.
7838 (can_access_registers_ptid): Rename to ...
7839 (can_access_registers_thread): ... this, and take a thread
7840 pointer.
7841 (print_thread_info_1): Adjust to compare thread pointers instead
7842 of ptids.
7843 (switch_to_no_thread, switch_to_thread): Make extern.
7844 (scoped_restore_current_thread::~scoped_restore_current_thread):
7845 Use m_thread pointer directly.
7846 (scoped_restore_current_thread::scoped_restore_current_thread):
7847 Use inferior_thread.
7848 (thread_command): Use thread pointer directly.
7849 (thread_num_make_value_helper): Use inferior_thread.
7850 * top.c (execute_command): Use inferior_thread.
7851 * tui/tui-interp.c: Include "inferior.h".
7852 * varobj.c (varobj_create): Use inferior_thread.
7853 (value_of_root_1): Use find_thread_global_id instead of
7854 global_thread_id_to_ptid.
7855
7856 2018-06-21 Alan Hayward <alan.hayward@arm.com>
7857
7858 * regcache.c (readable_regcache::read_part): Avoid memcpy when
7859 possible.
7860 (regcache::write_part): Likewise.
7861 (readable_regcache::cooked_read_part): Update comment.
7862 (readable_regcache::cooked_write_part): Likewise.
7863 * regcache.h: (readable_regcache::read_part): Likewise.
7864 (regcache::write_part): Likewise.
7865
7866 2018-06-21 Richard Bunt <richard.bunt@arm.com>
7867 Dirk Schubert <dirk.schubert@arm.com>
7868
7869 * aarch64-linux-nat.c (post_attach): New.
7870 (aarch64_linux_nat_target::post_attach): Override post_attach to
7871 record the number of hardware debug registers.
7872
7873 2018-06-20 Tom Tromey <tom@tromey.com>
7874
7875 * python/py-param.c (add_setshow_generic): Make parameters const.
7876 (parmpy_init): Update.
7877
7878 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
7879
7880 * regcache.h (regcache_cooked_read_ftype): Rename to...
7881 (register_read_ftype): ...this, change type to function_view.
7882 (class reg_buffer) <save>: Remove src parameter.
7883 (readonly_detached_regcache) <readonly_detached_regcache>: Make
7884 parameter non-const in first overload. Remove src parameter in
7885 second overload.
7886 * regcache.c (do_cooked_read): Remove.
7887 (readonly_detached_regcache::readonly_detached_regcache): Make
7888 parameter non-const, adjust call to other constructor.
7889 (reg_buffer::save): Remove src parameter.
7890 * frame.c (do_frame_register_read): Remove.
7891 (frame_save_as_regcache): Use lambda function.
7892 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
7893 parameter to ppu2spu_data *.
7894 (ppu2spu_sniffer): Use lambda function.
7895
7896 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
7897
7898 * record-full.c (record_full_target::insert_breakpoint): Remove
7899 "struct" keyword, add const.
7900
7901 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
7902
7903 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
7904 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
7905 * configure.ac: Remove AC_PREREQ, add missing quoting.
7906 * gnulib/configure.ac: Modernize usage of
7907 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
7908 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
7909 (AUTOMAKE_VERSION): Bump to 1.15.1.
7910 * configure: Re-generate.
7911 * config.in: Re-generate.
7912 * aclocal.m4: Re-generate.
7913 * gnulib/aclocal.m4: Re-generate.
7914 * gnulib/config.in: Re-generate.
7915 * gnulib/configure: Re-generate.
7916 * gnulib/import/Makefile.in: Re-generate.
7917
7918 2018-06-19 Pedro Alves <palves@redhat.com>
7919
7920 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
7921 (lookup_minimal_symbol_by_pc_section): ... here with
7922 gdb_assert_not_reached added.
7923
7924 2018-06-19 Pedro Alves <palves@redhat.com>
7925
7926 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
7927 parameter with a block parameter. Compare location's block symbol
7928 with the frame's block instead of addresses.
7929 (skip_inline_frames): Pass the current block instead of the
7930 frame's address. Break out as soon as we determine the frame
7931 should not be skipped.
7932
7933 2018-06-18 Tom Tromey <tom@tromey.com>
7934
7935 * solib-aix.c (solib_aix_get_section_offsets): Return
7936 unique_xmalloc_ptr.
7937 (solib_aix_solib_create_inferior_hook): Update.
7938
7939 2018-06-18 Tom Tromey <tom@tromey.com>
7940
7941 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
7942
7943 2018-06-18 Tom Tromey <tom@tromey.com>
7944
7945 * solib-frv.c (frv_relocate_main_executable): Use
7946 unique_xmalloc_ptr.
7947 * solib-dsbt.c (dsbt_relocate_main_executable): Use
7948 unique_xmalloc_ptr.
7949
7950 2018-06-18 Tom Tromey <tom@tromey.com>
7951
7952 * objfiles.h (inhibit_section_map_updates): Update.
7953 (resume_section_map_updates, resume_section_map_updates_cleanup):
7954 Remove.
7955 * solib-svr4.c (svr4_handle_solib_event): Update.
7956 * objfiles.c (inhibit_section_map_updates): Return
7957 scoped_restore_tmpl<int>.
7958 (resume_section_map_updates, resume_section_map_updates_cleanup):
7959 Remove.
7960
7961 2018-06-18 Tom Tromey <tom@tromey.com>
7962
7963 * valprint.h (read_string): Update.
7964 * valprint.c (read_string): Change type of "buffer".
7965 (val_print_string): Update.
7966 * python/py-value.c (valpy_string): Update.
7967 * language.h (struct language_defn) <la_get_string>: Change
7968 type of "buffer".
7969 (default_get_string, c_get_string): Update.
7970 * language.c (default_get_string): Change type of "buffer".
7971 * guile/scm-value.c (gdbscm_value_to_string): Update.
7972 * c-lang.c (c_get_string): Change type of "buffer".
7973
7974 2018-06-18 Tom Tromey <tom@tromey.com>
7975
7976 * ser-mingw.c (struct pipe_state_destroyer): New.
7977 (pipe_state_up): New typedef.
7978 (cleanup_pipe_state): Remove.
7979 (pipe_windows_open): Use pipe_state_up. Don't release argv.
7980
7981 2018-06-18 Tom Tromey <tom@tromey.com>
7982
7983 * rust-lang.h (rust_yyerror): Don't declare.
7984 * rust-lang.c (rust_language_defn): Update.
7985 * rust-exp.y (yyerror): Now static.
7986 * parse.c (parse_exp_in_context_1): Update.
7987 * p-lang.h (p_yyerror): Don't declare.
7988 * p-lang.c (p_language_defn): Update.
7989 * p-exp.y (yyerror): Now static.
7990 * opencl-lang.c (opencl_language_defn): Update.
7991 * objc-lang.c (objc_language_defn): Update.
7992 * m2-lang.h (m2_yyerror): Don't declare.
7993 * m2-lang.c (m2_language_defn): Update.
7994 * m2-exp.y (yyerror): Now static.
7995 * language.h (struct language_defn) <la_error>: Remove.
7996 * language.c (unk_lang_error): Remove.
7997 (unknown_language_defn, auto_language_defn): Remove.
7998 * go-lang.h (go_yyerror): Don't declare.
7999 * go-lang.c (go_language_defn): Update.
8000 * go-exp.y (yyerror): Now static.
8001 * f-lang.h (f_yyerror): Don't declare.
8002 * f-lang.c (f_language_defn): Update.
8003 * f-exp.y (yyerror): Now static.
8004 * d-lang.h (d_yyerror): Don't declare.
8005 * d-lang.c (d_language_defn): Update.
8006 * d-exp.y (yyerror): Now static.
8007 * c-lang.h (c_yyerror): Don't declare.
8008 * c-lang.c (c_language_defn, cplus_language_defn)
8009 (asm_language_defn, minimal_language_defn): Update.
8010 * c-exp.y (yyerror): Now static.
8011 * ada-lang.h (ada_yyerror): Don't declare.
8012 * ada-lang.c (ada_language_defn): Update.
8013 * ada-exp.y (yyerror): Now static.
8014
8015 2018-06-18 Alan Hayward <alan.hayward@arm.com>
8016
8017 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
8018 (store_sveregs_to_thread): Likewise.
8019 (aarch64_linux_fetch_inferior_registers): Check for SVE.
8020 (aarch64_linux_store_inferior_registers): Likewise.
8021 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
8022 function.
8023 (aarch64_sve_regs_copy_to_regcache): Likewise.
8024 (aarch64_sve_regs_copy_from_regcache): Likewise.
8025 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
8026 declaration.
8027 (aarch64_sve_regs_copy_to_regcache): Likewise.
8028 (aarch64_sve_regs_copy_from_regcache): Likewise.
8029 (sve_context): Structure from Linux headers.
8030 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
8031 (SVE_SIG_ZREG_SIZE): Likewise.
8032 (SVE_SIG_PREG_SIZE): Likewise.
8033 (SVE_SIG_FFR_SIZE): Likewise.
8034 (SVE_SIG_REGS_OFFSET): Likewise.
8035 (SVE_SIG_ZREGS_OFFSET): Likewise.
8036 (SVE_SIG_ZREG_OFFSET): Likewise.
8037 (SVE_SIG_ZREGS_SIZE): Likewise.
8038 (SVE_SIG_PREGS_OFFSET): Likewise.
8039 (SVE_SIG_PREG_OFFSET): Likewise.
8040 (SVE_SIG_PREGS_SIZE): Likewise.
8041 (SVE_SIG_FFR_OFFSET): Likewise.
8042 (SVE_SIG_REGS_SIZE): Likewise.
8043 (SVE_SIG_CONTEXT_SIZE): Likewise.
8044 (SVE_PT_REGS_MASK): Likewise.
8045 (SVE_PT_REGS_FPSIMD): Likewise.
8046 (SVE_PT_REGS_SVE): Likewise.
8047 (SVE_PT_VL_INHERIT): Likewise.
8048 (SVE_PT_VL_ONEXEC): Likewise.
8049 (SVE_PT_REGS_OFFSET): Likewise.
8050 (SVE_PT_FPSIMD_OFFSET): Likewise.
8051 (SVE_PT_FPSIMD_SIZE): Likewise.
8052 (SVE_PT_SVE_ZREG_SIZE): Likewise.
8053 (SVE_PT_SVE_PREG_SIZE): Likewise.
8054 (SVE_PT_SVE_FFR_SIZE): Likewise.
8055 (SVE_PT_SVE_FPSR_SIZE): Likewise.
8056 (SVE_PT_SVE_FPCR_SIZE): Likewise.
8057 (__SVE_SIG_TO_PT): Likewise.
8058 (SVE_PT_SVE_OFFSET): Likewise.
8059 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
8060 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
8061 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
8062 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
8063 (SVE_PT_SVE_PREG_OFFSET): Likewise.
8064 (SVE_PT_SVE_PREGS_SIZE): Likewise.
8065 (SVE_PT_SVE_FFR_OFFSET): Likewise.
8066 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
8067 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
8068 (SVE_PT_SVE_SIZE): Likewise.
8069 (SVE_PT_SIZE): Likewise.
8070 (HAS_SVE_STATE): New define.
8071
8072 2018-06-18 Alan Hayward <alan.hayward@arm.com>
8073
8074 * nat/aarch64-sve-linux-sigcontext.h: New file.
8075 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
8076 new files.
8077 (SVE_VQ_MIN): Likewise.
8078 (SVE_VQ_MAX): Likewise.
8079 (SVE_VL_MIN): Likewise.
8080 (SVE_VL_MAX): Likewise.
8081 (SVE_NUM_ZREGS): Likewise.
8082 (SVE_NUM_PREGS): Likewise.
8083 (sve_vl_valid): Likewise.
8084 (struct user_sve_header): Likewise.
8085
8086 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8087 Richard Bunt <Richard.Bunt@arm.com>
8088
8089 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
8090 was requested by GDB.
8091
8092 2018-06-15 Tom de Vries <tdevries@suse.de>
8093
8094 * MAINTAINERS (Write After Approval): Add Tom de Vries.
8095
8096 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
8097
8098 * gnulib/update-gnulib.sh: Print expected versions of
8099 autoconf/aclocal.
8100
8101 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
8102
8103 * arch-utils.c (default_type_align): Use type_length_units.
8104 * gdbtypes.c (type_align): Use type_length_units.
8105
8106 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8107
8108 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
8109 of 'define' command.
8110
8111 2018-06-14 Tom de Vries <tdevries@suse.de>
8112
8113 PR cli/22573
8114 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
8115 get_no_prettyformat_print_options.
8116
8117 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
8118
8119 * sparc-nat.h: Include target.h.
8120 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
8121 <fetch_registers>: Remove this argument in function call.
8122 <store_registers>: Remove this argument in function call, remove
8123 extra semicolon.
8124 <low_forget_process>: Call sparc64_forget_process instead of
8125 sparc_forget_process.
8126
8127 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8128
8129 * procfs.c (_initialize_procfs): Use add_inf_child_target.
8130 (procfs_target::make_corefile_notes): Adjust to new
8131 target_read_alloc return type.
8132
8133 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8134 Stephen Roberts <stephen.roberts@arm.com>
8135
8136 PR gdb/22882
8137 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
8138 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
8139 Move should_notify_stop local into more inner scope.
8140
8141 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8142 Stephen Roberts <stephen.roberts@arm.com>
8143
8144 PR gdb/22882
8145 * infrun.c (resume_1): Add call to mark_async_event_handler.
8146
8147 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8148
8149 * infrun.c (do_target_wait): Change old version of $pc printed.
8150
8151 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
8152
8153 * dwarf2read.c (read_index_from_section): Rename to...
8154 (read_gdb_index_from_section): ... this, update all callers.
8155 (dwarf2_read_index): Rename to...
8156 (dwarf2_read_gdb_index): ... this, update all callers.
8157
8158 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
8159
8160 * hppa-linux-nat.c
8161 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
8162 hppa_linux_nat_target::fetch_registers.
8163
8164 2018-06-11 Alan Hayward <alan.hayward@arm.com>
8165
8166 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
8167 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
8168 (AARCH64_DWARF_SVE_FFR): Likewise.
8169 (AARCH64_DWARF_SVE_P0): Likewise.
8170 (AARCH64_DWARF_SVE_Z0): Likewise.
8171
8172 2018-06-11 Alan Hayward <alan.hayward@arm.com>
8173
8174 * common/common-regcache.h (raw_compare): New function.
8175 * regcache.c (regcache::raw_compare): Likewise.
8176 * regcache.h (regcache::raw_compare): New declaration.
8177
8178 2018-06-11 Alan Hayward <alan.hayward@arm.com>
8179
8180 * common/common-regcache.h (reg_buffer_common): New structure.
8181 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
8182 (reg_buffer::raw_supply): Likewise.
8183 (reg_buffer::raw_supply_integer): Likewise.
8184 (reg_buffer::raw_supply_zeroed): Likewise.
8185 (reg_buffer::raw_collect): Likewise.
8186 (reg_buffer::raw_collect_integer): Likewise.
8187 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
8188 (reg_buffer::raw_supply): Likewise.
8189 (reg_buffer::raw_supply_integer): Likewise.
8190 (reg_buffer::raw_supply_zeroed): Likewise.
8191 (reg_buffer::raw_collect): Likewise.
8192 (reg_buffer::raw_collect_integer): Likewise.
8193
8194 2018-06-10 Tom Tromey <tom@tromey.com>
8195
8196 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
8197 (class remote_state) <stop_reply_queue>: Now std::vector.
8198 (remote_state::~remote_state)
8199 (remote_target::stop_reply_queue_length): Update.
8200 (struct queue_iter_param, remove_child_of_pending_fork)
8201 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
8202 (check_pending_event_prevents_wildcard_vcont_callback)
8203 (remove_stop_reply_for_inferior)
8204 (remove_stop_reply_of_remote_state)
8205 (remote_notif_remove_once_on_match)
8206 (stop_reply_match_ptid_and_ws)
8207 (remote_kill_child_of_pending_fork): Remove.
8208 (remote_target::remove_new_fork_children)
8209 (remote_target::check_pending_events_prevent_wildcard_vcont)
8210 (remote_target::discard_pending_stop_replies)
8211 (remote_target::discard_pending_stop_replies_in_queue)
8212 (remote_target::remote_notif_remove_queued_reply)
8213 (remote_target::queued_stop_reply)
8214 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
8215 (remote_target::wait, remote_target::kill_new_fork_children)
8216 (remote_target::async): Update.
8217
8218 2018-06-10 Tom Tromey <tom@tromey.com>
8219
8220 * record-full.c (record_full_arch_list_cleanups): Remove.
8221 (record_full_message): Use try/catch.
8222 (record_full_wait_cleanups): Remove.
8223 (record_full_wait_1): Use try/catch.
8224 (record_full_restore): Likewise.
8225
8226 2018-06-10 Tom Tromey <tom@tromey.com>
8227
8228 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
8229 declare VEC. Add constructor.
8230 <in_target_beneath>: Now bool.
8231 (record_full_breakpoints): Now a std::vector, static.
8232 (record_full_sync_record_breakpoints)
8233 (record_full_init_record_breakpoints)
8234 (record_full_target::insert_breakpoint)
8235 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
8236
8237 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8238
8239 * dwarf2read.c (process_cu_includes): Remove struct keyword.
8240 * serial.c (serial_interface_lookup): Remove struct keyword.
8241
8242 2018-06-10 Tom Tromey <tom@tromey.com>
8243
8244 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
8245 method.
8246 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
8247 a method.
8248 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
8249 method.
8250 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
8251 "beneath" as a method.
8252 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
8253 Use "beneath" as a method.
8254
8255 2018-06-10 Tom Tromey <tom@tromey.com>
8256
8257 * tracefile.c (struct trace_file_writer_deleter): New.
8258 <operator()>: Rename from trace_file_writer_xfree.
8259 (trace_file_writer_up): New typedef.
8260 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
8261
8262 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
8263
8264 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
8265 <m_registers, m_register_status>: Change type to
8266 std::unique_ptr.
8267 * regcache.c (reg_buffer::reg_buffer): Use new instead of
8268 XCNEWVEC.
8269
8270 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
8271
8272 * common/common-regcache.h (enum register_status): Add
8273 underlying type "signed char".
8274 * regcache.h (reg_buffer) <m_register_status>: Change type to
8275 register_status *.
8276 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
8277 register_status instead of signed char.
8278 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
8279 (reg_buffer::get_register_status): Remove cast.
8280 (readable_regcache::raw_read): Remove cast.
8281 (readable_regcache::cooked_read): Remove cast.
8282
8283 2018-06-09 Tom Tromey <tom@tromey.com>
8284
8285 * source.c (reverse_search_command, forward_search_command): Use
8286 scoped_fd.
8287
8288 2018-06-09 Tom Tromey <tom@tromey.com>
8289
8290 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
8291 (serial_ops_list): Now static, std::vector.
8292 (serial_interface_lookup, serial_add_interface): Update.
8293
8294 2018-06-09 Tom Tromey <tom@tromey.com>
8295
8296 * dwarf2read.c (process_cu_includes): Update.
8297 (process_full_comp_unit): Update.
8298 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
8299 std::vector.
8300
8301 2018-06-08 Paul Koning <paul_koning@dell.com>
8302
8303 PR gdb/23252
8304
8305 * python/python.c (do_start_initialization):
8306 Avoid call to internal Python API.
8307 (init__gdb_module): New function.
8308
8309 2018-06-08 Gary Benson <gbenson@redhat.com>
8310
8311 * linux-thread-db.c (valprint.h): New include.
8312 (struct check_thread_db_info): New structure.
8313 (check_thread_db_on_load, tdb_testinfo): New static globals.
8314 (check_thread_db, check_thread_db_callback): New functions.
8315 (try_thread_db_load_1): Run integrity checks if requested.
8316 (maintenance_check_libthread_db): New function.
8317 (_initialize_thread_db): Register "maint check libthread-db"
8318 and "maint set/show check-libthread-db".
8319 * NEWS: Mention the above new commands.
8320
8321 2018-06-08 Tom Tromey <tom@tromey.com>
8322
8323 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
8324 now a method.
8325
8326 2018-06-08 Tom Tromey <tom@tromey.com>
8327
8328 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
8329
8330 2018-06-08 Tom Tromey <tom@tromey.com>
8331
8332 * common/btrace-common.h (struct btrace_data): Add constructor,
8333 destructor, move assignment operator.
8334 <empty, clear, fini>: New methods.
8335 <format>: Initialize.
8336 (btrace_data_init, btrace_data_fini, btrace_data_clear)
8337 (btrace_data_empty): Don't declare.
8338 * common/btrace-common.c (btrace_data_init): Remove.
8339 (btrace_data::fini): Rename from btrace_data_fini.
8340 (btrace_data::empty): Rename from btrace_data_empty.
8341 (btrace_data::clear): Rename from btrace_data_clear. Return
8342 bool.
8343 * btrace.h (make_cleanup_btrace_data): Don't declare.
8344 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
8345 (parse_xml_btrace): Update.
8346 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
8347 (maint_btrace_clear_packet_history_cmd): Update.
8348
8349 2018-06-07 Pedro Alves <palves@redhat.com>
8350
8351 * target.h (target_ops) <beneath>: Now a method. All references
8352 updated.
8353 (class target_stack): New.
8354 * target.c (g_target_stack): New.
8355 (g_current_top_target): Delete.
8356 (current_top_target): Get the top target out of g_target_stack.
8357 (target_stack::push, target_stack::unpush): New.
8358 (push_target, unpush_target): Reimplement.
8359 (target_is_pushed): Reimplement in terms of g_target_stack.
8360 (target_ops::beneath, target_stack::find_beneath): New.
8361
8362 2018-06-07 Pedro Alves <palves@redhat.com>
8363
8364 * target.h (find_target_beneath): Delete declaration.
8365 * target.c (find_target_beneath): Delete definition.
8366 * aix-thread.c: All callers of find_target_beneath adjusted to
8367 call target_ops::beneath instead.
8368 * bsd-uthread.c: Likewise.
8369 * linux-thread-db.c: Likewise.
8370 * ravenscar-thread.c: Likewise.
8371 * sol-thread.c: Likewise.
8372 * spu-multiarch.c: Likewise.
8373
8374 2018-06-07 Pedro Alves <palves@redhat.com>
8375
8376 * target.h (target_ops) <beneath>: Now a method. All references
8377 updated.
8378 (target_ops) <m_beneath>: New.
8379 * target.c (target_ops::beneath): New.
8380 * corelow.c: Adjust all references to target_ops::beneath.
8381 * linux-thread-db.c: Likewise.
8382 * make-target-delegates: Likewise.
8383 * record-btrace.c: Likewise.
8384 * record-full.c: Likewise.
8385 * remote.c: Likewise.
8386 * target.c: Likewise.
8387 * target-delegates.c: Regenerate.
8388
8389 2018-06-07 Pedro Alves <palves@redhat.com>
8390
8391 * target.h (target_stack): Delete.
8392 (current_top_target): Declare function.
8393 * target.c (target_stack): Delete.
8394 (g_current_top_target): New.
8395 (current_top_target): New function.
8396 * auxv.c: Use current_top_target instead of target_stack
8397 throughout.
8398 * avr-tdep.c: Likewise.
8399 * breakpoint.c: Likewise.
8400 * corefile.c: Likewise.
8401 * elfread.c: Likewise.
8402 * eval.c: Likewise.
8403 * exceptions.c: Likewise.
8404 * frame.c: Likewise.
8405 * gdbarch-selftests.c: Likewise.
8406 * gnu-v3-abi.c: Likewise.
8407 * ia64-tdep.c: Likewise.
8408 * ia64-vms-tdep.c: Likewise.
8409 * infcall.c: Likewise.
8410 * infcmd.c: Likewise.
8411 * infrun.c: Likewise.
8412 * linespec.c: Likewise.
8413 * linux-tdep.c: Likewise.
8414 * minsyms.c: Likewise.
8415 * ppc-linux-nat.c: Likewise.
8416 * ppc-linux-tdep.c: Likewise.
8417 * procfs.c: Likewise.
8418 * regcache.c: Likewise.
8419 * remote.c: Likewise.
8420 * rs6000-tdep.c: Likewise.
8421 * s390-linux-nat.c: Likewise.
8422 * s390-tdep.c: Likewise.
8423 * solib-aix.c: Likewise.
8424 * solib-darwin.c: Likewise.
8425 * solib-dsbt.c: Likewise.
8426 * solib-spu.c: Likewise.
8427 * solib-svr4.c: Likewise.
8428 * solib-target.c: Likewise.
8429 * sparc-tdep.c: Likewise.
8430 * sparc64-tdep.c: Likewise.
8431 * spu-tdep.c: Likewise.
8432 * symfile.c: Likewise.
8433 * symtab.c: Likewise.
8434 * target-descriptions.c: Likewise.
8435 * target-memory.c: Likewise.
8436 * target.c: Likewise.
8437 * target.h: Likewise.
8438 * tracefile-tfile.c: Likewise.
8439 * tracepoint.c: Likewise.
8440 * valops.c: Likewise.
8441 * valprint.c: Likewise.
8442 * value.c: Likewise.
8443 * windows-tdep.c: Likewise.
8444 * mi/mi-main.c: Likewise.
8445
8446 2018-06-07 Tom Tromey <tom@tromey.com>
8447
8448 * valprint.h (build_address_symbolic): Declare.
8449 * printcmd.c (print_address_symbolic): Update.
8450 (build_address_symbolic): Change "name" and "filename" to
8451 std::string.
8452 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
8453 Update.
8454 * defs.h (build_address_symbolic): Remove declaration.
8455
8456 2018-06-07 Alan Hayward <alan.hayward@arm.com>
8457
8458 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
8459 (aarch64_vnv_type): Add function.
8460 (aarch64_pseudo_register_name): Add V regs for SVE.
8461 (aarch64_pseudo_register_type): Likewise.
8462 (aarch64_pseudo_register_reggroup_p): Likewise.
8463 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
8464 (aarch64_pseudo_read_value): Add V regs for SVE.
8465 (aarch64_pseudo_write_2): Use V0 offset for SVE
8466 (aarch64_pseudo_write): Add V regs for SVE.
8467 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
8468
8469 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
8470
8471 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
8472 (sve_vl_from_vq): Likewise.
8473
8474 2018-06-05 Tom Tromey <tom@tromey.com>
8475
8476 * cli/cli-cmds.c (show_version): Update.
8477 * top.c (print_gdb_version): Add "interactive" parameter.
8478 Update.
8479 * main.c (captured_main_1): Update.
8480 * top.h (print_gdb_version): Add "interactive" parameter and a
8481 comment.
8482
8483 2018-06-05 David Malcolm <dmalcolm@redhat.com>
8484
8485 * common/enum-flags.h: Add trailing semicolon to example in
8486 comment.
8487
8488 2018-06-05 Tom Tromey <tom@tromey.com>
8489
8490 PR cli/12326:
8491 * NEWS: Add entry about pager.
8492 * utils.c (pagination_disabled_for_command): New global.
8493 (prompt_for_continue): Allow "c" response to prompt.
8494 (reinitialize_more_filter): Clear
8495 pagination_disabled_for_command.
8496 (fputs_maybe_filtered): Check pagination_disabled_for_command.
8497
8498 2018-06-04 Tom Tromey <tom@tromey.com>
8499
8500 * ada-lang.h (ada_lookup_symbol_list): Update.
8501 * ada-lang.c (resolve_subexp): Update.
8502 (symbols_are_identical_enums): Change type of syms. Remove nsyms
8503 parameter.
8504 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
8505 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
8506 results parameter to std::vector.
8507 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
8508 Update.
8509 * ada-exp.y (block_lookup): Update.
8510 (select_possible_type_sym): Change type of syms. Remove nsyms
8511 parameter.
8512 (write_var_or_type, write_name_assoc): Update.
8513
8514 2018-06-04 Joel Brobecker <brobecker@adacore.com>
8515
8516 * windows-nat.c (windows_nat_target::xfer_partial): Return
8517 TARGET_XFER_E_IO if we need to delegate to the target beneath
8518 but BENEATH is NULL.
8519
8520 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
8521
8522 * Makefile.in (config.status): Add configure.nat as a
8523 dependency.
8524
8525 2018-06-04 Tom Tromey <tom@tromey.com>
8526
8527 * cp-name-parser.y (cpname_state): Add method declarations.
8528 (HANDLE_QUAL): Update.
8529 (cpname_state::d_grab, cpname_state::fill_comp)
8530 (cpname_state::make_operator, cpname_state::make_dtor)
8531 (cpname_state::make_builtin_type, cpname_state::make_name)
8532 (cpname_state::d_qualify, cpname_state::d_int_type)
8533 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
8534 (%union): Move earlier.
8535
8536 2018-06-04 Alan Hayward <alan.hayward@arm.com>
8537
8538 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
8539
8540 2018-06-04 Alan Hayward <alan.hayward@arm.com>
8541
8542 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
8543 (aarch64_pseudo_write_1): Likewise.
8544 (aarch64_pseudo_read_value): Use helper.
8545 (aarch64_pseudo_write): Likewise.
8546
8547 2018-06-04 Pedro Alves <palves@redhat.com>
8548
8549 * darwin-nat.c (darwin_ops): Delete.
8550 (darwin_attach_pid): Use get_native_target.
8551
8552 2018-06-04 Alan Hayward <alan.hayward@arm.com>
8553
8554 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
8555 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
8556
8557 2018-06-04 Alan Hayward <alan.hayward@arm.com>
8558
8559 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
8560 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
8561 (aarch64_gdbarch_init): Check for SVE.
8562 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
8563
8564 2018-06-04 Alan Hayward <alan.hayward@arm.com>
8565
8566 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
8567 * aarch64-tdep.h (aarch64_read_description): Likewise.
8568 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8569 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8570 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
8571 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
8572 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
8573
8574 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
8575
8576 * value.c (value_fetch_lazy_bitfield): New.
8577 (value_fetch_lazy_memory): New.
8578 (value_fetch_lazy_register): New.
8579 (value_fetch_lazy): Factor out to smaller functions.
8580
8581 2018-06-01 Tom Tromey <tom@tromey.com>
8582
8583 * cp-name-parser.y (backslashable, represented): Now const.
8584
8585 2018-06-01 Tom Tromey <tom@tromey.com>
8586
8587 * cp-name-parser.y: Include parser-defs.h.
8588 (parser_fprintf): Remove declaration.
8589
8590 2018-06-01 Tom Tromey <tom@tromey.com>
8591
8592 * cp-name-parser.y: Use %pure-parser, %lex-param, and
8593 %parse-param.
8594 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
8595 (global_result): Remove globals.
8596 (struct cpname_state): New.
8597 (yyparse): Don't declare.
8598 (yylex, yyerror): Move declarations after %union.
8599 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
8600 (make_name): Add state parameter.
8601 Update all callers.
8602 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
8603 parameter.
8604 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
8605 Update.
8606 (yylex): Add lvalp, state parameters.
8607 (yyerror): Add state parameter.
8608 (cp_demangled_name_to_comp): Update.
8609
8610 2018-06-01 Tom Tromey <tom@tromey.com>
8611
8612 * cp-name-parser.y (parser_fprintf): Declare.
8613 (GDB_YY_REMAP_PREFIX): Define.
8614 Include yy-remap.h. Don't redefine yy* identifiers.
8615
8616 2018-06-01 Tom Tromey <tom@tromey.com>
8617
8618 * python/py-type.c (typy_legacy_template_argument): Update.
8619 * cp-support.h (cp_demangled_name_to_comp): Update.
8620 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
8621 parameter to be a "std::string *".
8622 (main): Update.
8623
8624 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
8625
8626 * ada-lex.l: Include "diagnostics.h" instead of
8627 "common/diagnostics.h".
8628 * unittests/environ-selftests.c: Likewise.
8629 * common/diagnostics.h: Moved to ../include.
8630
8631 2018-06-01 Joel Brobecker <brobecker@adacore.com>
8632
8633 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
8634 to language_mode_manual while calling breakpoint_re_set_one.
8635
8636 2018-06-01 Tom Tromey <tom@tromey.com>
8637
8638 * valops.c (value_cast_structs, destructor_name_p): Update.
8639 * symtab.c (gdb_mangle_name): Update.
8640 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
8641 Update.
8642 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
8643 (pascal_object_print_value_fields, pascal_object_print_value):
8644 Update.
8645 * p-typeprint.c (pascal_type_print_derivation_info): Update.
8646 * linespec.c (find_methods): Update.
8647 * gdbtypes.h (type_name_no_tag): Remove.
8648 (type_name_or_error): Rename from type_name_no_tag_or_error.
8649 * gdbtypes.c (type_name_no_tag): Remove.
8650 (type_name_or_error): Rename from type_name_no_tag_or_error.
8651 (lookup_struct_elt_type, check_typedef): Update.
8652 * expprint.c (print_subexp_standard): Update.
8653 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
8654 * d-namespace.c (d_lookup_nested_symbol): Update.
8655 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
8656 (cp_print_class_member): Update.
8657 * cp-namespace.c (cp_lookup_nested_symbol): Update.
8658 * completer.c (add_struct_fields): Update.
8659 * c-typeprint.c (cp_type_print_derivation_info)
8660 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
8661 Update.
8662 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
8663 (ada_prefer_type, ada_is_exception_sym): Update.
8664
8665 2018-06-01 Tom Tromey <tom@tromey.com>
8666
8667 * valops.c (enum_constant_from_type, value_namespace_elt)
8668 (value_maybe_namespace_elt): Update.
8669 * valarith.c (find_size_for_pointer_math): Update.
8670 * target-descriptions.c (make_gdb_type): Update.
8671 * symmisc.c (print_symbol): Update.
8672 * stabsread.c (define_symbol, read_type)
8673 (complain_about_struct_wipeout, add_undefined_type)
8674 (cleanup_undefined_types_1): Update.
8675 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
8676 (rust_range_type_p, val_print_struct, rust_print_struct_def)
8677 (rust_internal_print_type, rust_composite_type)
8678 (rust_evaluate_funcall, rust_evaluate_subexp)
8679 (rust_inclusive_range_type_p): Update.
8680 * python/py-type.c (typy_get_tag): Update.
8681 * p-typeprint.c (pascal_type_print_base): Update.
8682 * mdebugread.c (parse_symbol, parse_type): Update.
8683 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
8684 Update.
8685 * guile/scm-type.c (gdbscm_type_tag): Update.
8686 * go-lang.c (sixg_string_p): Update.
8687 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
8688 Update.
8689 * gdbtypes.h (struct main_type) <tag_name>: Remove.
8690 (TYPE_TAG_NAME): Remove.
8691 * gdbtypes.c (type_name_no_tag): Simplify.
8692 (check_typedef, check_types_equal, recursive_dump_type)
8693 (copy_type_recursive, arch_composite_type): Update.
8694 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
8695 in summary mode when needed.
8696 * eval.c (evaluate_funcall): Update.
8697 * dwarf2read.c (fixup_go_packaging, read_structure_type)
8698 (process_structure_scope, read_enumeration_type)
8699 (read_namespace_type, read_module_type, determine_prefix): Update.
8700 * cp-support.c (inspect_type): Update.
8701 * coffread.c (process_coff_symbol, decode_base_type): Update.
8702 * c-varobj.c (c_is_path_expr_parent): Update.
8703 * c-typeprint.c (c_type_print_base_struct_union): Update.
8704 (c_type_print_base_1): Update. Print struct/class/union/enum in
8705 summary when using C language.
8706 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
8707 (gen_maybe_namespace_elt): Update.
8708 * ada-lang.c (ada_type_name): Simplify.
8709 (empty_record, ada_template_to_fixed_record_type_1)
8710 (template_to_static_fixed_type)
8711 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
8712
8713 2018-06-01 Tom Tromey <tom@tromey.com>
8714
8715 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
8716 c_print_type.
8717 * c-typeprint.c (c_print_type_1): Add "language" parameter.
8718 (c_print_type): Update.
8719 (c_print_type): New overload.
8720 (c_type_print_varspec_prefix, c_type_print_args)
8721 (c_type_print_varspec_suffix, c_print_type_no_offsets)
8722 (c_type_print_base_struct_union, c_type_print_base_1)
8723 (cp_type_print_method_args): Add "language" parameter.
8724 (c_type_print_base): Update.
8725 * c-lang.h (c_print_type): Add new overload.
8726
8727 2018-06-01 Tom Tromey <tom@tromey.com>
8728
8729 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
8730 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
8731
8732 2018-06-01 Alan Hayward <alan.hayward@arm.com>
8733
8734 * aarch64-tdep.c (aarch64_sve_register_names): New const
8735 var.
8736 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
8737 (AARCH64_SVE_Z_REGS_NUM): New define.
8738 (AARCH64_SVE_P_REGS_NUM): Likewise.
8739 (AARCH64_SVE_NUM_REGS): Likewise.
8740
8741 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
8742
8743 * nat/linux-ptrace.h [__alpha__]
8744 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
8745 definitions.
8746
8747 2018-05-31 Maciej W. Rozycki <macro@mips.com>
8748
8749 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
8750 the endianness selected.
8751 * NEWS: Document `set endian auto' mode operation update.
8752
8753 2018-05-31 Alan Hayward <alan.hayward@arm.com>
8754
8755 * Makefile.in: Add new header.
8756 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
8757 (sve_vl_from_vg): Likewise.
8758 (sve_vq_from_vl): Likewise.
8759 (sve_vl_from_vq): Likewise.
8760 (sve_vq_from_vg): Likewise.
8761 (sve_vg_from_vq): Likewise.
8762 * configure.nat: Add new c file.
8763 * nat/aarch64-sve-linux-ptrace.c: New file.
8764 * nat/aarch64-sve-linux-ptrace.h: New file.
8765
8766 2018-05-31 Alan Hayward <alan.hayward@arm.com>
8767
8768 * aarch64-linux-nat.c (aarch64_linux_read_description):
8769 Add parmeter zero.
8770 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8771 Likewise.
8772 * aarch64-tdep.c (tdesc_aarch64_list): Add.
8773 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
8774 (aarch64_gdbarch_init): Add parmeter zero.
8775 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
8776 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
8777 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
8778 parmeter.
8779 * doc/gdb.texinfo: Describe SVE feature
8780 * features/aarch64-sve.c: New file.
8781
8782 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
8783
8784 PR gdb/23210
8785 * gdbarch.sh (significant_addr_bit): Default to zero when
8786 not set by target architecture.
8787 * gdbarch.c: Re-generated.
8788 * utils.c (address_significant): Update.
8789
8790 2018-05-30 Joel Brobecker <brobecker@adacore.com>
8791
8792 * stack.c (func_command): Remove trailing newline in call to error.
8793
8794 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8795
8796 * regcache.h (regcache_raw_collect): Remove, update callers to
8797 use regcache::raw_collect.
8798 * regcache.c (regcache_raw_collect): Remove.
8799
8800 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8801
8802 * regcache.h (regcache_raw_supply): Remove, update callers to
8803 use detached_regcache::raw_supply.
8804 * regcache.c (regcache_raw_supply): Remove.
8805
8806 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8807
8808 * regcache.h (regcache_cooked_write_part): Remove, update
8809 callers to use regcache::cooked_write_part.
8810 * regcache.c (regcache_cooked_write_part): Remove.
8811
8812 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8813
8814 * regcache.h (regcache_cooked_read_part): Remove, update callers
8815 to use readable_regcache::cooked_read_part.
8816 * regcache.c (regcache_cooked_read_part): Remove.
8817
8818 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8819
8820 * regcache.h (regcache_cooked_read_value): Remove, update
8821 callers to use readable_regcache::cooked_read_value.
8822 * regcache.c (regcache_cooked_read_value): Remove.
8823
8824 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8825
8826 * regcache.h (regcache_cooked_write): Remove, update callers to
8827 use regcache::cooked_write.
8828 * regcache.c (regcache_cooked_write): Remove.
8829
8830 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8831
8832 * regcache.h (regcache_invalidate): Remove, update callers to
8833 use detached_regcache::invalidate instead.
8834 * regcache.c (regcache_invalidate): Remove.
8835
8836 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8837
8838 * regcache.h (regcache_raw_write_part): Remove, update callers
8839 to use regcache::raw_write_part instead.
8840 * regcache.c (regcache_raw_write_part): Remove.
8841
8842 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8843
8844 * regcache.h (regcache_raw_read_part): Remove, update callers to
8845 use readable_regcache::raw_read_part instead.
8846 * regcache.c (regcache_raw_read_part): Remove.
8847
8848 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8849
8850 * regcache.h (regcache_cooked_read): Remove, update callers to
8851 use readable_regcache::cooked_read instead.
8852 * regcache.c (regcache_cooked_read): Remove.
8853
8854 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8855
8856 * regcache.h (regcache_raw_write): Remove, update callers to use
8857 regcache::raw_write instead.
8858 * regcache.c (regcache_raw_write): Remove.
8859
8860 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8861
8862 * regcache.h (regcache_raw_read): Remove, update callers to use
8863 readable_regcache::raw_read instead.
8864 * regcache.c (regcache_raw_read): Remove.
8865
8866 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8867
8868 * regcache.h (regcache_raw_update): Remove, update callers to
8869 use readable_regcache::raw_update instead.
8870 * regcache.c (regcache_raw_update): Remove.
8871
8872 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8873
8874 * regcache.h (regcache_register_status): Remove, update callers
8875 to use reg_buffer::get_register_status directly instead.
8876 * regcache.c (regcache_register_status): Remove.
8877
8878 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8879
8880 * regcache.h (regcache_get_ptid): Remove, update all callers to
8881 call regcache::ptid instead.
8882 * regcache.c (regcache_get_ptid): Remove.
8883
8884 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8885
8886 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
8887
8888 2018-05-30 Pedro Alves <palves@redhat.com>
8889
8890 * common/common-exceptions.h (exception_rethrow): Use
8891 ATTRIBUTE_NORETURN.
8892
8893 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
8894
8895 * breakpoint.c (print_solib_event, check_status_catch_solib):
8896 Remove struct keyword in range-based for loops.
8897 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
8898 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
8899 Likewise.
8900 * linespec.c (find_superclass_methods, search_minsyms_for_name):
8901 Likewise.
8902 * symfile.c (addr_info_make_relative): Likewise.
8903 * thread.c (value_in_thread_stack_temporaries): Likewise.
8904
8905 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
8906
8907 PR gdb/16841
8908 * valops.c (value_struct_elt_for_reference): Call check_typedef on
8909 aggregate type to get its real type before accessing it.
8910
8911 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
8912
8913 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
8914 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
8915 * coff-pe-read.c (add_pe_forwarded_sym): Replace
8916 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
8917 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
8918 * jit.c (jit_breakpoint_re_set_internal): Likewise.
8919 * printcmd.c (info_address_command): Likewise.
8920
8921 2018-05-29 Tom Tromey <tom@tromey.com>
8922
8923 * windows-nat.c (handle_exception): Update fall-through comment.
8924
8925 2018-05-29 Tom Tromey <tom@tromey.com>
8926
8927 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
8928 (struct program_space) <added_solibs>: Now a std::vector.
8929 * breakpoint.c (print_solib_event): Update.
8930 (check_status_catch_solib): Update.
8931 * progspace.c (clear_program_space_solib_cache): Update.
8932 * solib.c (update_solib_list): Update.
8933
8934 2018-05-29 Tom Tromey <tom@tromey.com>
8935
8936 * python/py-type.c (typy_richcompare): Update.
8937 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
8938 * gdbtypes.h (types_deeply_equal): Return bool.
8939 (types_equal): Likewise.
8940 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
8941 declare VEC.
8942 (check_types_equal): Change worklist to std::vector. Return
8943 bool.
8944 (struct type_equality_entry): Add constructor.
8945 (compare_maybe_null_strings): Return bool.
8946 (check_types_worklist): Return bool. Change worklist to
8947 std::vector.
8948 (types_deeply_equal): Use std::vector.
8949 (types_equal): Return bool.
8950 (compare_maybe_null_strings): Simplify.
8951
8952 2018-05-29 Tom Tromey <tom@tromey.com>
8953
8954 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
8955
8956 2018-05-29 Tom Tromey <tom@tromey.com>
8957
8958 * objc-lang.h: Don't include cp-support.h.
8959 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
8960 declare VEC.
8961
8962 2018-05-27 Tom Tromey <tom@tromey.com>
8963
8964 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
8965
8966 2018-05-25 Tom Tromey <tom@tromey.com>
8967
8968 * value.c (value::location): Initialize.
8969
8970 2018-05-25 Tom Tromey <tom@tromey.com>
8971
8972 * dbxread.c (init_bincl_list): Remove.
8973 (bincl_list): Now a std::vector.
8974 (bincls_allocated, next_bincl): Remove.
8975 (free_bincl_list, do_free_bincl_list_cleanup)
8976 (make_cleanup_free_bincl_list): Remove.
8977 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
8978 unique_xmalloc_ptr.
8979 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
8980 (struct header_file_location): Add constructor.
8981 (add_bincl_to_list): Remove.
8982
8983 2018-05-25 Tom Tromey <tom@tromey.com>
8984
8985 * tui/tui.c (tui_enable): Update.
8986 * mi/mi-interp.c (mi_interp::init): Update.
8987 * interps.h (class interp) <name>: New method.
8988 <m_name>: Rename from name.
8989 (~scoped_restore_interp): Update.
8990 * interps.c (interp::interp): Update.
8991 (interp_add, interp_set, interp_lookup_existing)
8992 (current_interp_named_p): Update.
8993
8994 2018-05-25 Tom Tromey <tom@tromey.com>
8995
8996 * interps.c (interp_name): Remove.
8997 * mi/mi-interp.c (mi_interp::init): Update.
8998 * interps.h (interp_name): Remove.
8999 (~scoped_restore_interp): Update.
9000 * tui/tui.c (tui_enable): Update.
9001
9002 2018-05-25 Tom Tromey <tom@tromey.com>
9003
9004 * utils.c (fputs_maybe_filtered): Update.
9005 * linespec.c (decode_line_full): Update.
9006 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
9007 (mi_print_breakpoint_for_event, mi_solib_loaded)
9008 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
9009 (mi_user_selected_context_changed): Update.
9010 * mi/mi-main.c (mi_execute_command): Update.
9011 * cli/cli-script.c (execute_control_command): Update.
9012 * python/python.c (execute_gdb_command): Update.
9013 * solib.c (info_sharedlibrary_command): Update.
9014 * interps.c (interp_ui_out): Remove.
9015 * interps.h (interp_ui_out): Remove.
9016
9017 2018-05-25 Tom Tromey <tom@tromey.com>
9018
9019 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
9020 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
9021 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
9022
9023 2018-05-25 Tom Tromey <tom@tromey.com>
9024
9025 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
9026 * interps.c (interp_exec): Use scoped_restore.
9027
9028 2018-05-25 Tom Tromey <tom@tromey.com>
9029
9030 * remote.c (remote_target::remote_file_get): Use
9031 gdb::byte_vector.
9032 (remote_target::remote_file_put): Likewise.
9033
9034 2018-05-25 Tom Tromey <tom@tromey.com>
9035
9036 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
9037 a std::string.
9038 (get_pe_section_index, add_pe_exported_sym): Update.
9039 (read_pe_exported_syms): Use gdb::def_vector.
9040
9041 2018-05-25 Tom Tromey <tom@tromey.com>
9042
9043 * frame.c (remove_prev_frame): Remove.
9044 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
9045
9046 2018-05-25 Maciej W. Rozycki <macro@mips.com>
9047
9048 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
9049 Remove prototypes.
9050 * mips-linux-nat.c (supply_fpregset): Always call
9051 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
9052 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
9053 `mips_fill_fpregset'.
9054 * mips-linux-tdep.c (mips_supply_fpregset)
9055 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
9056 (mips_fill_fpregset_wrapper): Remove functions.
9057 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
9058 (mips_linux_fpregset): Remove variable.
9059 (mips_linux_iterate_over_regset_sections): Use
9060 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
9061 (mips_linux_o32_sigframe_init): Remove comment.
9062
9063 2018-05-25 Pedro Alves <palves@redhat.com>
9064
9065 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
9066 (struct readahead_cache, struct packet_reg, struct
9067 remote_arch_state, class remote_state): Move higher up in the
9068 file.
9069 (remote_target::m_remote_state): Now an object instead of a pointer.
9070 (remote_target::get_remote_state): Adjust.
9071
9072 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
9073
9074 * stack.c (select_and_print_frame): Delete.
9075 (struct function_bounds): Move struct within function.
9076 (func_command): Most content moved into new function
9077 find_frame_for_function, use new function, print result, add
9078 function comment.
9079 (find_frame_for_function): New function, now returns a result.
9080
9081 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9082
9083 * stack.c (iterate_over_block_arg_vars): Fix comment.
9084 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
9085
9086 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
9087
9088 PR gdb/23203
9089 * frame.c
9090 (scoped_restore_selected_frame::scoped_restore_selected_frame):
9091 Define.
9092 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
9093 Define.
9094 * frame.h (class scoped_restore_selected_frame): New class.
9095 * stack.c (print_frame_local_vars): Remove catching and rethrowing
9096 of any exception, use scoped_restore_selected_frame to restore the
9097 frame instead.
9098
9099 2018-05-24 Pedro Alves <palves@redhat.com>
9100
9101 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
9102 override.
9103
9104 2018-05-23 Tom Tromey <tom@tromey.com>
9105
9106 * complaints.c (struct complaints): Remove.
9107 (symfile_complaint_book): Remove.
9108 (series): New global.
9109 (complaint_internal): Update.
9110 (clear_complaints): Update.
9111
9112 2018-05-23 Tom Tromey <tom@tromey.com>
9113
9114 * complaints.c (counters): New global.
9115 (struct complain): Remove.
9116 (struct complaints) <root>: Remove.
9117 (complaint_sentinel): Remove.
9118 (symfile_complaint_book): Update.
9119 (find_complaint) Remove.
9120 (complaint_internal, clear_complaints): Update.
9121
9122 2018-05-23 Tom Tromey <tom@tromey.com>
9123
9124 * complaints.c (struct complain) <file, line>: Remove.
9125 (find_complaint): Remove file, line parameters.
9126 (complaint_internal): Update.
9127
9128 2018-05-23 Tom Tromey <tom@tromey.com>
9129
9130 * complaints.c (vcomplaint): Remove.
9131 (complaint_internal) Merge in contents of vcomplaint.
9132
9133 2018-05-23 Tom Tromey <tom@tromey.com>
9134
9135 * complaints.c (struct complaints) <explanation>: Remove.
9136 (symfile_explanations): Remove.
9137 (symfile_complaint_book): Update.
9138 (vcomplaint): Update.
9139 (struct explanation): Remove.
9140
9141 2018-05-23 Tom Tromey <tom@tromey.com>
9142
9143 * complaints.c (symfile_complaints): Remove.
9144 (complaint_internal): Remove "complaints" parameter.
9145 (clear_complaints, vcomplaint): Remove "c" parameter.
9146 (get_complaints): Remove.
9147 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
9148 (dwarf2_debug_line_missing_file_complaint)
9149 (dwarf2_debug_line_missing_end_sequence_complaint)
9150 (dwarf2_complex_location_expr_complaint)
9151 (dwarf2_const_value_length_mismatch_complaint)
9152 (dwarf2_section_buffer_overflow_complaint)
9153 (dwarf2_macro_malformed_definition_complaint)
9154 (dwarf2_invalid_attrib_class_complaint)
9155 (create_addrmap_from_index, dw2_symtab_iter_next)
9156 (dw2_expand_marked_cus)
9157 (dw2_debug_names_iterator::find_vec_in_debug_names)
9158 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
9159 (create_debug_type_hash_table, init_cutu_and_read_dies)
9160 (partial_die_parent_scope, add_partial_enumeration)
9161 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
9162 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
9163 (read_import_statement, read_file_scope, create_dwo_cu_reader)
9164 (create_cus_hash_table, create_dwp_hash_table)
9165 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9166 (dwarf2_rnglists_process, dwarf2_ranges_process)
9167 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
9168 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
9169 (handle_struct_member_die, process_structure_scope)
9170 (read_array_type, read_common_block, read_module_type)
9171 (read_tag_pointer_type, read_typedef, read_base_type)
9172 (read_subrange_type, load_partial_dies, partial_die_info::read)
9173 (partial_die_info::read, partial_die_info::read)
9174 (partial_die_info::read, read_checked_initial_length_and_offset)
9175 (dwarf2_string_attr, read_formatted_entries)
9176 (dwarf_decode_line_header)
9177 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
9178 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
9179 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
9180 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9181 (get_signatured_type, get_DW_AT_signature_type)
9182 (decode_locdesc, file_file_name, consume_improper_spaces)
9183 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
9184 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9185 (dwarf2_symbol_mark_computed, set_die_type)
9186 (read_attribute_value): Update.
9187 * stap-probe.c (handle_stap_probe, get_stap_base_address):
9188 Update.
9189 * dbxread.c (unknown_symtype_complaint)
9190 (lbrac_mismatch_complaint, repeated_header_complaint)
9191 (set_namestring, function_outside_compilation_unit_complaint)
9192 (read_dbx_symtab, process_one_symbol): Update.
9193 * gdbtypes.c (stub_noname_complaint): Update.
9194 * windows-nat.c (handle_unload_dll): Update.
9195 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
9196 (decode_base_type): Update.
9197 * xcoffread.c (bf_notfound_complaint, ef_complaint)
9198 (eb_complaint, record_include_begin, record_include_end)
9199 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
9200 (process_xcoff_symbol, read_symbol)
9201 (function_outside_compilation_unit_complaint)
9202 (scan_xcoff_symtab): Update.
9203 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
9204 * buildsym.c (finish_block_internal, make_blockvector)
9205 (end_symtab_get_static_block, augment_type_symtab): Update.
9206 * dtrace-probe.c (dtrace_process_dof)
9207 (dtrace_static_probe_ops::get_probes): Update.
9208 * complaints.h (struct complaint): Don't declare.
9209 (symfile_complaints): Remove.
9210 (complaint_internal): Remove "complaints" parameter.
9211 (complaint): Likewise.
9212 (clear_complaints): Likewise.
9213 * symfile.c (syms_from_objfile_1, finish_new_objfile)
9214 (reread_symbols): Update.
9215 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
9216 (dwarf2_frame_cache, decode_frame_entry): Update.
9217 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
9218 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9219 (info_selectors_command): Update.
9220 * macrotab.c (macro_include, check_for_redefinition)
9221 (macro_undef): Update.
9222 * objfiles.c (filter_overlapping_sections): Update.
9223 * stabsread.c (invalid_cpp_abbrev_complaint)
9224 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
9225 (define_symbol, error_type, read_type, rs6000_builtin_type)
9226 (stabs_method_name_from_physname, read_member_functions)
9227 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
9228 (attach_fields_to_type, complain_about_struct_wipeout)
9229 (read_range_type, read_args, common_block_start)
9230 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
9231 Update.
9232 * mdebugread.c (index_complaint, unknown_ext_complaint)
9233 (basic_type_complaint, bad_tag_guess_complaint)
9234 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
9235 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
9236 (parse_procedure, parse_lines)
9237 (function_outside_compilation_unit_complaint)
9238 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
9239 (bad_tag_guess_complaint, reg_value_complaint): Update.
9240 * cp-support.c (demangled_name_complaint): Update.
9241 * macroscope.c (sal_macro_scope): Update.
9242 * dwarf-index-write.c (class debug_names): Update.
9243
9244 2018-05-23 Tom Tromey <tom@tromey.com>
9245
9246 * complaints.c (clear_complaints): Remove "noisy" parameter.
9247 * complaints.h (clear_complaints): Update.
9248 * symfile.c (syms_from_objfile_1, finish_new_objfile)
9249 (reread_symbols): Update.
9250
9251 2018-05-23 Tom Tromey <tom@tromey.com>
9252
9253 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
9254 SUBSEQUENT_MESSAGE.
9255 (vcomplaint, clear_complaints): Update.
9256 (symfile_explanations): Remove some messages.
9257
9258 2018-05-23 Tom Tromey <tom@tromey.com>
9259
9260 * complaints.c (internal_complaint): Remove.
9261 * complaints.h (internal_complaint): Remove.
9262
9263 2018-05-22 Maciej W. Rozycki <macro@mips.com>
9264
9265 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
9266
9267 2018-05-22 Pedro Alves <palves@redhat.com>
9268
9269 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
9270 (remote_fileio_badfd, remote_fileio_return_errno)
9271 (remote_fileio_return_success, remote_fileio_func_open)
9272 (remote_fileio_func_open, remote_fileio_func_close)
9273 (remote_fileio_func_read, remote_fileio_func_write)
9274 (remote_fileio_func_lseek, remote_fileio_func_rename)
9275 (remote_fileio_func_unlink, remote_fileio_func_stat)
9276 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
9277 (remote_fileio_func_isatty, remote_fileio_func_system): Add
9278 remote_target parameter.
9279 (remote_fio_func_map) <func>: Add remote_target parameter.
9280 (do_remote_fileio_request, remote_fileio_request):
9281 * remote-fileio.h (remote_fileio_request):
9282 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
9283 remote_target parameter.
9284 (remote_notif_process, handle_notification): Adjust to pass down
9285 the remote.
9286 (remote_notif_state_allocate): Add remote_target parameter. Save
9287 it.
9288 * remote-notif.h (struct remote_target): Forward declare.
9289 (struct notif_client) <parse, ack, can_get_pending_events>: Add
9290 remote_target parameter.
9291 (struct remote_notif_state) <remote>: New field.
9292 (remote_notif_ack, remote_notif_parse): Add remote_target
9293 parameter.
9294 (remote_notif_state_allocate, remote_notif_state_allocate): Add
9295 remote_target parameter.
9296 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
9297 (threads_listing_context, rmt_thread_action, protocol_feature)
9298 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
9299 (packet_result, struct threads_listing_context, remote_state):
9300 Move definitions and declarations higher up.
9301 (remote_target) <~remote_target>: Declare.
9302 (remote_download_command_source, remote_file_put, remote_file_get)
9303 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
9304 (remote_hostio_pread_vFile, remote_hostio_send_command)
9305 (remote_hostio_set_filesystem, remote_hostio_open)
9306 (remote_hostio_close, remote_hostio_unlink, remote_state)
9307 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
9308 (get_memory_write_packet_size, get_memory_read_packet_size)
9309 (append_pending_thread_resumptions, remote_detach_1)
9310 (append_resumption, remote_resume_with_vcont)
9311 (add_current_inferior_and_thread, wait_ns, wait_as)
9312 (process_stop_reply, remote_notice_new_inferior)
9313 (process_initial_stop_replies, remote_add_thread)
9314 (btrace_sync_conf, remote_btrace_maybe_reopen)
9315 (remove_new_fork_children, kill_new_fork_children)
9316 (discard_pending_stop_replies, stop_reply_queue_length)
9317 (check_pending_events_prevent_wildcard_vcont)
9318 (discard_pending_stop_replies_in_queue, stop_reply)
9319 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
9320 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
9321 (remote_interrupt_as, remote_interrupt_ns)
9322 (remote_get_noisy_reply, remote_query_attached)
9323 (remote_add_inferior, remote_current_thread, get_current_thread)
9324 (set_thread, set_general_thread, set_continue_thread)
9325 (set_general_process, write_ptid)
9326 (remote_unpack_thread_info_response, remote_get_threadinfo)
9327 (parse_threadlist_response, remote_get_threadlist)
9328 (remote_threadlist_iterator, remote_get_threads_with_ql)
9329 (remote_get_threads_with_qxfer)
9330 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
9331 (get_offsets, remote_check_symbols, remote_supported_packet)
9332 (remote_query_supported, remote_packet_size)
9333 (remote_serial_quit_handler, remote_detach_pid)
9334 (remote_vcont_probe, remote_resume_with_hc)
9335 (send_interrupt_sequence, interrupt_query)
9336 (remote_notif_get_pending_events, fetch_register_using_p)
9337 (send_g_packet, process_g_packet, fetch_registers_using_g)
9338 (store_register_using_P, store_registers_using_G)
9339 (set_remote_traceframe, check_binary_download)
9340 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
9341 (remote_xfer_live_readonly_partial, remote_read_bytes)
9342 (remote_send_printf, remote_flash_write, readchar)
9343 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
9344 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
9345 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
9346 (extended_remote_disable_randomization, extended_remote_run)
9347 (send_environment_packet, extended_remote_environment_support)
9348 (extended_remote_set_inferior_cwd, remote_write_qxfer)
9349 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
9350 (packet_command): Now methods of ...
9351 (remote_target): ... this class.
9352 (m_remote_state) <remote_target>: New field.
9353 (struct remote_state) <stop_reply_queue,
9354 remote_async_inferior_event_token, wait_forever_enabled_p>: New
9355 fields.
9356 (remote_state::remote_state): Allocate stop_reply_queue.
9357 (remote_state): Delete global.
9358 (get_remote_state_raw): Delete.
9359 (remote_target::get_remote_state): Allocate m_remote_state on
9360 demand.
9361 (get_current_remote_target): New.
9362 (remote_ops, extended_remote_ops): Delete.
9363 (wait_forever_enabled_p, remote_async_inferior_event_token):
9364 Delete, moved to struct remote_state.
9365 (remote_target::close): Delete self. Destruction bits split to
9366 ...
9367 (remote_target::~remote_target): ... this.
9368 (show_memory_packet_size): Adjust to use
9369 get_current_remote_target.
9370 (struct protocol_feature) <func>: Add remote_target parameter.
9371 All callers adjusted.
9372 (curr_quit_handler_target): New.
9373 (remote_serial_quit_handler): Reimplement.
9374 (remote_target::open_1): Adjust to use get_current_remote_target.
9375 Heap-allocate remote_target/extended_remote_target instances.
9376 (vcont_builder::vcont_builder): Add remote_target parameter, and
9377 save it in m_remote. All callers adjusted.
9378 (vcont_builder::m_remote): New field.
9379 (vcont_builder::restart, vcont_builder::flush)
9380 (vcont_builder::push_action): Use it.
9381 (remote_target::commit_resume): Use it.
9382 (struct queue_iter_param) <remote>: New field.
9383 (remote_target::remove_new_fork_children): Fill in 'remote' field.
9384 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
9385 (check_pending_event_prevents_wildcard_vcont_callback)
9386 (remote_target::check_pending_events_prevent_wildcard_vcont)
9387 (remote_target::discard_pending_stop_replies)
9388 (remote_target::discard_pending_stop_replies_in_queue)
9389 (remote_target::remote_notif_remove_queued_reply): Fill in
9390 'remote' field.
9391 (remote_notif_get_pending_events): New.
9392 (remote_target::readchar, remote_target::remote_serial_write):
9393 Save/restore curr_quit_handler_target.
9394 (putpkt): New.
9395 (kill_new_fork_children): Fill in 'remote' field.
9396 (packet_command): Use get_current_remote_target, defer to
9397 remote_target method of same name.
9398 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
9399 parameter, and save it in m_remote. All callers adjusted.
9400 (scoped_remote_fd::release): Use m_remote.
9401 (scoped_remote_fd::m_remote): New field.
9402 (remote_file_put, remote_file_get, remote_file_delete): Use
9403 get_current_remote_target, defer to remote_target method of same
9404 name.
9405 (remote_btrace_reset): Add remote_state paremeter. Update all
9406 callers.
9407 (remote_async_inferior_event_handler). Pass down 'data'.
9408 (remote_new_objfile): Use get_current_remote_target.
9409 (remote_target::vcont_r_supported): New.
9410 (set_range_stepping): Use get_current_remote_target and
9411 remote_target::vcont_r_supported.
9412 (_initialize_remote): Don't allocate 'remote_state' and
9413 'stop_reply_queue' globals.
9414 * remote.h (struct remote_target): Forward declare.
9415 (getpkt, putpkt, remote_notif_get_pending_events): Add
9416 'remote_target' parameter.
9417
9418 2018-05-22 Pedro Alves <palves@redhat.com>
9419
9420 * remote.c (vcont_builder): Now a class. Make all data members
9421 private.
9422 (vcont_builder) <vcont_builder, restart, flush, push_action>:
9423 Declare methods.
9424 (vcont_builder_restart): Rename to ...
9425 (vcont_builder::restart): ... this.
9426 (vcont_builder_flush): Rename to ...
9427 (vcont_builder::flush): ... this.
9428 (vcont_builder_push_action): Rename to ...
9429 (vcont_builder::push_action): ... this.
9430 (remote_target::commit_resume): Adjust.
9431
9432 2018-05-22 Pedro Alves <palves@redhat.com>
9433
9434 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
9435 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
9436 (get_fixed_memory_packet_size): New.
9437 (get_memory_packet_size): Use it.
9438 (set_memory_packet_size): Don't override the config size with
9439 DEFAULT_MAX_MEMORY_PACKET_SIZE.
9440 (show_memory_packet_size): Use get_fixed_memory_packet_size.
9441 Don't refer to get_memory_packet_size if not connected to a remote
9442 target. Show "(default)" if configured size is 0.
9443
9444 2018-05-22 Pedro Alves <palves@redhat.com>
9445
9446 * remote.c (remote_target::mourn_inferior): Move
9447 discard_pending_stop_replies call here from ...
9448 (_initialize_remote): ... here.
9449
9450 2018-05-22 Pedro Alves <palves@redhat.com>
9451
9452 * remote.c (compare_section_command): Remove set_general_process
9453 call.
9454
9455 2018-05-22 Pedro Alves <palves@redhat.com>
9456
9457 * remote.c (struct packet_reg, struct remote_arch_state):
9458 Move higher up in the file.
9459 (remote_state) <m_arch_states>: Store remote_arch_state values
9460 instead of remote_arch_state pointers.
9461 (remote_state::get_remote_arch_state): Adjust.
9462
9463 2018-05-22 Pedro Alves <palves@redhat.com>
9464
9465 * remote.c: Include <unordered_map>.
9466 (remote_state): Now a class.
9467 (remote_state) <get_remote_arch_state>: Declare method.
9468 <get_remote_arch_state>: New field.
9469 (remote_arch_state) <remote_arch_state>: Declare ctor.
9470 <regs>: Now a unique_ptr.
9471 (remote_gdbarch_data_handle): Delete.
9472 (get_remote_arch_state): Delete.
9473 (remote_state::get_remote_arch_state): New.
9474 (get_remote_state): Adjust to call remote_state's
9475 get_remote_arch_state method.
9476 (init_remote_state): Delete, bits factored out to ...
9477 (remote_arch_state::remote_arch_state): ... this new method.
9478 (get_remote_packet_size, get_memory_packet_size)
9479 (process_g_packet, remote_target::fetch_registers)
9480 (remote_target::prepare_to_store, store_registers_using_G)
9481 (remote_target::store_registers, remote_target::get_trace_status):
9482 Adjust to call remote_state's method.
9483 (_initialize_remote): Remove reference to
9484 remote_gdbarch_data_handle.
9485
9486 2018-05-22 Pedro Alves <palves@redhat.com>
9487
9488 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
9489 pread>: New method declarations.
9490 (remote_target::open_1): Adjust.
9491 (readahead_cache_invalidate): Rename to ...
9492 (readahead_cache::invalidate): ... this, and adjust to be a class
9493 method.
9494 (readahead_cache_invalidate_fd): Rename to ...
9495 (readahead_cache::invalidate_fd): ... this, and adjust to be a
9496 class method.
9497 (remote_hostio_pwrite): Adjust.
9498 (remote_hostio_pread_from_cache): Rename to ...
9499 (readahead_cache::pread): ... this, and adjust to be a class
9500 method.
9501 (remote_hostio_close): Adjust.
9502
9503 2018-05-22 Pedro Alves <palves@redhat.com>
9504
9505 * remote.c (remote_hostio_close_cleanup): Delete.
9506 (class scoped_remote_fd): New.
9507 (remote_file_put, remote_file_get): Use it.
9508
9509 2018-05-22 Pedro Alves <palves@redhat.com>
9510
9511 (struct vCont_action_support): Use bool and initialize all fields.
9512 (struct readahead_cache): Initialize all fields.
9513 (remote_state): Use bool and initialize all fields.
9514 (remote_state::remote_state, remote_state::~remote_state): New.
9515 (new_remote_state): Delete.
9516 (_initialize_remote): Use new to allocate remote_state.
9517
9518 2018-05-22 Pedro Alves <palves@redhat.com>
9519 張俊芝 <zjz@zjz.name>
9520
9521 PR gdb/22973
9522 * c-exp.y: Include "c-support.h".
9523 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
9524 of tolower. Use c_ident_is_alpha to scan names.
9525 * c-lang.c: Include "c-support.h".
9526 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
9527 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
9528 * c-support.h: New file, with bits factored out from ...
9529 * cp-name-parser.y: ... this file.
9530 Include "c-support.h".
9531 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
9532 c-support.h and renamed.
9533 (symbol_end, yylex): Adjust.
9534
9535 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9536
9537 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
9538 parameter type to CORE_ADDR.
9539 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
9540 parameter type in declaration to CORE_ADDR.
9541 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
9542 target_auxv_search to get AT_HWCAP and use the result to get the
9543 target description.
9544 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
9545 to CORE_ADDR. Remove the cast of the return value to unsigned
9546 long. Fix error predicate of target_auxv_search.
9547 (ppc_linux_nat_target::read_description): Change the type of the
9548 hwcap variable to CORE_ADDR.
9549
9550 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9551
9552 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
9553 if the size of fpscr is larger than 32 bits.
9554
9555 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9556
9557 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
9558 (ppc32_linux_vsxregmap): New global.
9559 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
9560 regcache_supply_regset, and regcache_collect_regset.
9561 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
9562 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
9563 (fetch_vsx_register, store_vsx_register): Remove.
9564 (fetch_vsx_registers): Add regno parameter. Get regset using
9565 ppc_linux_vsxregset. Use regset to supply registers.
9566 (store_vsx_registers): Add regno parameter. Get regset using
9567 ppc_linux_vsxregset. Use regset to collect registers.
9568 (fetch_register): Call fetch_vsx_registers instead of
9569 fetch_vsx_register.
9570 (store_register): Call store_vsx_registers instead of
9571 store_vsx_register.
9572 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
9573 new regno parameter.
9574 (store_ppc_registers): Call store_vsx_registers with -1 for the
9575 new regno parameter.
9576 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
9577 (ppc_collect_vsxregset): Remove.
9578
9579 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9580
9581 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
9582 offset fields.
9583 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
9584 for vector register offset fields.
9585 (ppc64_fbsd_reg_offsets): Likewise.
9586 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9587 to vector register offset fields.
9588 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9589 to vector register offset fields.
9590 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
9591 vector register offset fields.
9592 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
9593 initializers for vector register offset fields.
9594 (rs6000_aix64_reg_offsets): Likewise.
9595 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
9596 (ppc_supply_vrregset): Remove.
9597 (ppc_collect_vrregset): Remove.
9598 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
9599 (ppc_linux_vrregset) : New function.
9600 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
9601 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
9602 (ppc32_linux_vrregset): Remove.
9603 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
9604 and use result instead of ppc32_linux_vrregset.
9605 (ppc32_linux_reg_offsets): Remove initializers for vector register
9606 offset fields.
9607 (ppc64_linux_reg_offsets): Likewise.
9608 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
9609 * ppc-linux-nat.c: Include regset.h.
9610 (gdb_vrregset_t): Adjust comment to account for little-endian
9611 mode.
9612 (supply_vrregset, fill_vrregset): Remove.
9613 (fetch_altivec_register, store_altivec_register): Remove.
9614 (fetch_altivec_registers): Add regno parameter. Get regset using
9615 ppc_linux_vrregset. Use regset to supply registers.
9616 (store_altivec_registers): Add regno parameter. Get regset using
9617 ppc_linux_vrregset. Use regset to collect registers.
9618 (fetch_register): Call fetch_altivec_registers instead of
9619 fetch_altivec_register.
9620 (store_register): Call store_altivec_registers instead of
9621 store_altivec_register.
9622 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
9623 the new regno parameter.
9624 (store_ppc_registers): Call store_altivec_registers with -1 for
9625 the new regno parameter.
9626
9627 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9628
9629 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
9630 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
9631 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
9632 (gdb_vrregset_t): Change array type size to
9633 PPC_LINUX_SIZEOF_VRREGSET.
9634 (gdb_vsxregset_t): Change array type size to
9635 PPC_LINUX_SIZEOF_VSXREGSET.
9636 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
9637 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
9638 PPC_LINUX_SIZEOF_VSXREGSET.
9639
9640 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9641
9642 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
9643 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
9644 nat/ppc-linux.c.
9645 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
9646 ppc_linux_target_wordsize with tid.
9647 (ppc_linux_nat_target::read_description): Call ppc_linux_target
9648 wordsize with tid.
9649 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
9650 (ppc64_64bit_inferior_p): Add static and inline specifiers.
9651 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
9652 tid parameter. Remove static specifier.
9653 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
9654 (ppc_linux_target_wordsize): New declaration.
9655
9656 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9657
9658 * arch/ppc-linux-common.c: New file.
9659 * arch/ppc-linux-common.h: New file.
9660 * arch/ppc-linux-tdesc.h: New file.
9661 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
9662 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
9663 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
9664 arch/ppc-linux-tdesc.h.
9665 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
9666 arch/ppc-linux-tdesc.h.
9667 (ppc_linux_nat_target::read_description): Remove target
9668 description matching code. Fill a ppc_linux_features struct and
9669 call ppc_linux_match_description with it. Move comment about ISA
9670 2.05 to ppc-linux-common.c.
9671 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
9672 arch/ppc-linux-tdesc.h.
9673 (ppc_linux_core_read_description): Remove target description
9674 matching code. Fill a ppc_linux_features struct and call
9675 ppc_linux_match_description with it.
9676 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
9677 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
9678 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
9679 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
9680 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
9681 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
9682 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
9683 (tdesc_powerpc_e500l): Remove.
9684
9685 2018-05-22 Joel Brobecker <brobecker@adacore.com>
9686
9687 * ada-lang.c (catch_assert_command): Pass empty string instead
9688 of NULL for excep_string argument.
9689
9690 2018-05-22 Maciej W. Rozycki <macro@mips.com>
9691
9692 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
9693 the width of the requested register exceeds the width of the
9694 `ptrace' data type.
9695
9696 2018-05-21 Tom Tromey <tom@tromey.com>
9697
9698 * printcmd.c (output_command): Remove.
9699 (output_command_const): Rename to output_command.
9700 * valprint.h (output_command): Rename from output_command_const.
9701 * tracepoint.c (trace_dump_actions): Call output_command.
9702
9703 2018-05-21 Tom Tromey <tom@tromey.com>
9704
9705 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
9706 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
9707 * ada-lang.h (create_ada_exception_catchpoint): Update.
9708 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
9709 std::string.
9710 (create_excep_cond_exprs, ~ada_catchpoint)
9711 (should_stop_exception, print_one_exception)
9712 (print_mention_exception, print_recreate_exception): Update.
9713 (ada_get_next_arg): Remove.
9714 (catch_ada_exception_command_split): Use std::string. Change type
9715 of "excep_string", "cond_string".
9716 (catch_ada_exception_command): Update.
9717 (create_ada_exception_catchpoint): Change type of excep_string.
9718 (ada_exception_sal): Remove excep_string parameter.
9719 (~ada_catchpoint): Remove.
9720
9721 2018-05-21 Tom Tromey <tom@tromey.com>
9722
9723 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
9724 cleanup.
9725
9726 2018-05-21 Tom Tromey <tom@tromey.com>
9727
9728 * ada-lang.c (ada_exception_message_1, ada_exception_message):
9729 Return unique_xmalloc_ptr.
9730 (print_it_exception): Update.
9731
9732 2018-05-21 Tom Tromey <tom@tromey.com>
9733
9734 * tracepoint.c (trace_dump_actions): Use std::string.
9735
9736 2018-05-21 Tom Tromey <tom@tromey.com>
9737
9738 * symfile.c (reread_symbols): Use std::string for original_name.
9739
9740 2018-05-21 Tom Tromey <tom@tromey.com>
9741
9742 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
9743 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
9744 constructor.
9745
9746 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
9747
9748 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
9749 instance to...
9750 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
9751 * objfiles.c (get_objfile_bfd_data): Allocate
9752 objfile_per_bfd_storage with obstack_new when allocating on
9753 obstack.
9754
9755 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9756
9757 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
9758 OBSTACK_ZALLOC.
9759 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
9760 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
9761 * mdebugread.c (mdebug_build_psymtabs): Likewise.
9762 (add_pending): Likewise.
9763 (parse_symbol): Likewise.
9764 (parse_partial_symbols): Likewise.
9765 (psymtab_to_symtab_1): Likewise.
9766 (new_psymtab): Likewise.
9767 (elfmdebug_build_psymtabs): Likewise.
9768 * minsyms.c (terminate_minimal_symbol_table): Likewise.
9769 * objfiles.c (get_objfile_bfd_data): Likewise.
9770 (objfile_register_static_link): Likewise.
9771 * psymtab.c (allocate_psymtab): Likewise.
9772 * stabsread.c (read_member_functions): Likewise.
9773 * xcoffread.c (xcoff_end_psymtab): Likewise.
9774
9775 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9776
9777 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
9778 compiler supports std::is_trivially_constructible.
9779 * common/poison.h: Include obstack.h.
9780 (IsMallocable): Define to is_trivially_constructible if the
9781 compiler supports it, define to true_type otherwise.
9782 (xobnew): New.
9783 (XOBNEW): Redefine.
9784 (xobnewvec): New.
9785 (XOBNEWVEC): Redefine.
9786 * gdb_obstack.h (obstack_zalloc): New.
9787 (OBSTACK_ZALLOC): Redefine.
9788 (obstack_calloc): New.
9789 (OBSTACK_CALLOC): Redefine.
9790 (obstack_new): New.
9791 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
9792 (gdbarch_obstack): New declaration in gdbarch.h, definition in
9793 gdbarch.c.
9794 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
9795 obstack_calloc/obstack_zalloc.
9796 (gdbarch_obstack_zalloc): Remove.
9797 * target-descriptions.c (tdesc_data_init): Use obstack_new.
9798
9799 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9800
9801 * stack.c (backtrace_command_1): Remove useless variable int i.
9802
9803 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9804
9805 * stack.c (print_frame_info): Fix comment.
9806
9807 2018-05-18 Tom Tromey <tom@tromey.com>
9808
9809 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
9810 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
9811 (~dwarf2_per_objfile): Update
9812 (dwarf2_get_dwz_file): Use new.
9813 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
9814 unique_ptr.
9815
9816 2018-05-18 Tom Tromey <tom@tromey.com>
9817
9818 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
9819 unique_ptr.
9820 * dwarf2read.c (struct dwp_file): Add constructor and
9821 initializers.
9822 (open_and_init_dwp_file): Return a unique_ptr.
9823 (dwarf2_per_objfile, create_dwp_hash_table)
9824 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
9825 (lookup_dwo_unit_in_dwp): Update.
9826 (open_and_init_dwp_file, get_dwp_file): Update.
9827
9828 2018-05-18 Tom Tromey <tom@tromey.com>
9829
9830 * dwarf2read.c (dwarf2_per_objfile): Update.
9831 (struct mapped_index): Add initializers.
9832 (dwarf2_read_index): Use new.
9833 (dw2_symtab_iter_init): Update.
9834 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
9835 unique_ptr.
9836
9837 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
9838
9839 * dwarf2read.c (mapped_index) <total_size>: Remove.
9840
9841 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
9842
9843 * unittests/format_pieces-selftests.c (test_format_specifier):
9844 Add ARI comments.
9845
9846 2018-05-18 Tom Tromey <tom@tromey.com>
9847
9848 * c-typeprint.c (maybe_print_hole): New function.
9849 (c_print_type_struct_field_offset): Update.
9850 (c_type_print_base_struct_union): Call maybe_print_hole.
9851
9852 2018-05-17 Keith Seitz <keiths@redhat.com>
9853
9854 * breakpoint.c (build_bpstat_chain): New function, moved from
9855 bpstat_stop_status.
9856 (bpstat_stop_status): Add optional parameter, `stop_chain'.
9857 If no stop chain is passed, call build_bpstat_chain to build it.
9858 * breakpoint.h (build_bpstat_chain): Declare.
9859 (bpstat_stop_status): Move documentation here from breakpoint.c.
9860 * infrun.c (handle_signal_stop): Before eliding inlined frames,
9861 build the stop chain and pass it to skip_inline_frames.
9862 Pass this stop chain to bpstat_stop_status.
9863 * inline-frame.c: Include breakpoint.h.
9864 (stopped_by_user_bp_inline_frame): New function.
9865 (skip_inline_frames): Add parameter `stop_chain'.
9866 Move documention to inline-frame.h.
9867 If non-NULL, use stopped_by_user_bp_inline_frame to determine
9868 whether the frame should be elided.
9869 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
9870 Add moved documentation and update for new parameter.
9871
9872 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
9873
9874 PR cli/14975
9875 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9876 unittests/format_pieces-selftests.c.
9877 * common/format.h (format_piece) <operator==>: New.
9878 (format_pieces) <operator[]>: Remove.
9879 * common/format.c (format_pieces::format_pieces): Handle \e.
9880 * unittests/format_pieces-selftests.c: New.
9881
9882 2018-05-17 Tom Tromey <tom@tromey.com>
9883
9884 PR symtab/23010:
9885 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
9886 (dw2_instantiate_symtab): Add skip_partial parameter.
9887 (dw2_find_last_source_symtab, dw2_map_expand_apply)
9888 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
9889 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
9890 (dw2_expand_symtabs_matching_one)
9891 (dw2_find_pc_sect_compunit_symtab)
9892 (dw2_debug_names_lookup_symbol)
9893 (dw2_debug_names_expand_symtabs_for_function): Update.
9894 (init_cutu_and_read_dies): Add skip_partial parameter.
9895 (process_psymtab_comp_unit, build_type_psymtabs_1)
9896 (process_skeletonless_type_unit, load_partial_comp_unit)
9897 (psymtab_to_symtab_1): Update.
9898 (load_full_comp_unit): Add skip_partial parameter.
9899 (process_imported_unit_die, dwarf2_read_addr_index)
9900 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
9901 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
9902 (read_signatured_type): Update.
9903
9904 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
9905
9906 * value.c (release_value): Remove unused variable.
9907 (record_latest_value): Likewise.
9908 (access_value_history): Likewise.
9909 (preserve_values): Likewise.
9910
9911 2018-05-17 Tom Tromey <tom@tromey.com>
9912
9913 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
9914 Initialize.
9915
9916 2018-05-16 Maciej W. Rozycki <macro@mips.com>
9917
9918 PR gdb/22286
9919 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
9920 Also handle registers whose width is not a multiple of
9921 PTRACE_TYPE_RET.
9922 (linux_nat_trad_target::store_register): Likewise.
9923
9924 2018-05-16 Tom Tromey <tom@tromey.com>
9925
9926 * gdbcore.h (core_bfd): Redefine.
9927 * corelow.c (core_target::close): Update.
9928 (core_target_open): Update.
9929 * progspace.h (struct program_space) <cbfd>: Now a
9930 gdb_bfd_ref_ptr.
9931
9932 2018-05-16 Tom Tromey <tom@tromey.com>
9933
9934 PR cli/19551:
9935 * symfile-add-flags.h (enum symfile_add_flags)
9936 <SYMFILE_NOT_FILENAME>: New constant.
9937 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
9938 objfile name from BFD.
9939 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
9940 * minidebug.c (find_separate_debug_file_in_section): Put
9941 ".gnu_debugdata" into BFD's file name.
9942
9943 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
9944
9945 * regcache.c (regcache_read_ftype, regcache_write_ftype):
9946 Remove.
9947
9948 2018-05-15 Tamar Christina <tamar.christina@arm.com>
9949
9950 PR binutils/21446
9951 * aarch64-tdep.c (aarch64_analyze_prologue,
9952 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
9953 Indicate not interested in errors.
9954
9955 2018-05-15 Maciej W. Rozycki <macro@mips.com>
9956
9957 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
9958 Supply the MIPS_ZERO_REGNUM register.
9959
9960 2018-05-15 Maciej W. Rozycki <macro@mips.com>
9961
9962 * mips-tdep.c (mask_address_var): Make variable static.
9963
9964 2018-05-14 Tom Tromey <tom@tromey.com>
9965
9966 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
9967
9968 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
9969
9970 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
9971 FXSAVE_ADDR for the mxcsr register.
9972
9973 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
9974
9975 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
9976
9977 2018-05-11 Pedro Alves <palves@redhat.com>
9978
9979 * corelow.c (core_target) <core_target>: No longer inline.
9980 Initialize m_core_gdbarch, m_core_vec and build the section table
9981 here.
9982 <~core_target>: New.
9983 <core_gdbarch, get_core_register_section>: New methods.
9984 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
9985 factored out from ...
9986 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
9987 (core_ops): Delete.
9988 (sniff_core_bfd): Add gdbarch parameter.
9989 (core_close): Delete, merged into ...
9990 (core_target::close): ... here. Delete self.
9991 (core_close_cleanup): Delete.
9992 (core_target_open): Allocate a core_target on the heap. Use a
9993 unique_ptr instead of a cleanup. Bits moved into the core_target
9994 ctor. Adjust to use core_target methods instead of globals.
9995 (get_core_register_section): Rename to ...
9996 (core_target::get_core_register_section): ... this and adjust.
9997 (struct get_core_registers_cb_data): New.
9998 (get_core_registers_cb): Use it. Use bool.
9999 (core_target::fetch_registers, core_target::files_info)
10000 (core_target::xfer_partial, core_target::read_description)
10001 (core_target::pid_to, core_target::thread_name): Adjust to
10002 reference class fields instead of globals.
10003 * target.h (struct target_ops_deleter, target_ops_up): New.
10004
10005 2018-05-11 Pedro Alves <palves@redhat.com>
10006
10007 * corefile.c (core_file_command): Move to corelow.c.
10008 * corelow.c (the_core_target): Delete.
10009 (core_file_command): Moved from corefile.c. Check exec_bfd
10010 instead of the_core_target. Use target_detach instead of calling
10011 into the_core_target directly.
10012 (maybe_say_no_core_file_now): New.
10013 (core_target::detach): Use it.
10014 (_initialize_corelow): Remove references to the_core_target.
10015 * gdbcore.h (the_core_target): Delete.
10016
10017 2018-05-11 Tom Tromey <tromey@redhat.com>
10018 Pedro Alves <palves@redhat.com>
10019
10020 * corefile.c (core_bfd): Remove.
10021 * gdbcore.h (core_bfd): Now a macro.
10022 * progspace.h (struct program_space) <cbfd>: New field.
10023
10024 2018-05-11 Tom Tromey <tom@tromey.com>
10025
10026 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
10027 gdb::def_vector.
10028
10029 2018-05-10 Tom Tromey <tom@tromey.com>
10030
10031 * configure: Rebuild.
10032 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
10033
10034 2018-05-10 Joel Brobecker <brobecker@adacore.com>
10035
10036 PR server/23158:
10037 * regformats/regdat.sh: Adjust script, following the addition
10038 of the new expedite_regs parameter to init_target_desc.
10039
10040 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
10041
10042 PR gdb/23127
10043 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
10044 set_gdbarch_significant_addr_bit.
10045 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
10046 set_gdbarch_significant_addr_bit.
10047 * utils.c (address_significant): Update to sign extend addr.
10048
10049 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
10050
10051 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
10052 (xtensa_linux_init_abi): Limit tdep->num_regs by
10053 tdep->num_nopriv_regs.
10054 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
10055 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
10056 not initialized.
10057
10058 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
10059
10060 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
10061
10062 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10063
10064 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
10065 (I387_MXCSR_INIT_VAL): New constant.
10066 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
10067 buffer if it was supplied by the inferior.
10068 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
10069 (i387_xsave_get_clear_bv): New function.
10070 (i387_supply_xsave): Only read x87 control registers from the
10071 xsave buffer if the feature is enabled, and the state will have
10072 been written, otherwise, provide a suitable default.
10073 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
10074 including x87 control registers. Update control registers if they
10075 have changed from the default value, and mark features as enabled
10076 as required.
10077 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
10078
10079 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
10080
10081 * spu-tdep.c (info_spu_event_command): Fix output formatting.
10082
10083 2018-05-07 Tom Tromey <tom@tromey.com>
10084
10085 * configure: Rebuild.
10086 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
10087
10088 2018-05-07 Tom Tromey <tom@tromey.com>
10089
10090 PR tdep/20362:
10091 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
10092 bit. Use correct value for VDIV.
10093
10094 2018-05-04 Tom Tromey <tom@tromey.com>
10095
10096 * configure: Rebuild.
10097 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
10098
10099 2018-05-04 Tom Tromey <tom@tromey.com>
10100
10101 * linux-record.c (record_linux_system_call) <case
10102 RECORD_SYS_RECVFROM>: Add "break".
10103
10104 2018-05-04 Tom Tromey <tom@tromey.com>
10105
10106 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
10107 Add missing "break".
10108 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
10109 Add missing "break".
10110
10111 2018-05-04 Tom Tromey <tom@tromey.com>
10112
10113 * rs6000-tdep.c (ppc_process_record_op4)
10114 (ppc_process_record_op63): Add fall-through comment.
10115
10116 2018-05-04 Tom Tromey <tom@tromey.com>
10117
10118 * i386-tdep.c (i386_process_record): Add fall-through comment.
10119
10120 2018-05-04 Tom Tromey <tom@tromey.com>
10121
10122 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
10123 comment.
10124
10125 2018-05-04 Tom Tromey <tom@tromey.com>
10126
10127 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
10128 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
10129 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
10130 comment.
10131 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
10132 comment.
10133 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
10134 comment.
10135
10136 2018-05-04 Tom Tromey <tom@tromey.com>
10137
10138 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
10139
10140 2018-05-04 Tom Tromey <tom@tromey.com>
10141
10142 * s390-tdep.c (s390_process_record): Fix fall-through comments.
10143 * xcoffread.c (scan_xcoff_symtab): Move comment later.
10144 * symfile.c (section_is_mapped): Fix fall-through comment.
10145 * stabsread.c (define_symbol, read_member_functions): Fix
10146 fall-through comment.
10147 * s390-linux-tdep.c (s390_process_record): Fix fall-through
10148 comment.
10149 * remote.c (remote_wait_as): Fix fall-through comment.
10150 * p-exp.y (yylex): Fix fall-through comment.
10151 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
10152 comment.
10153 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
10154 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
10155 * jv-exp.y (yylex): Fix fall-through comment.
10156 * go-exp.y (lex_one_token): Fix fall-through comment.
10157 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
10158 fall-through comment.
10159 * f-exp.y (yylex): Fix fall-through comment.
10160 * dwarf2read.c (process_die): Fix fall-through comments.
10161 * dbxread.c (process_one_symbol): Fix fall-through comment.
10162 * d-exp.y (lex_one_token): Fix fall-through comment.
10163 * cp-name-parser.y (yylex): Fix fall-through comment.
10164 * coffread.c (coff_symtab_read): Fix fall-through comment.
10165 * c-exp.y (lex_one_token): Fix fall-through comment.
10166 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
10167 comment.
10168 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
10169 comment.
10170
10171 2018-05-04 Tom Tromey <tom@tromey.com>
10172
10173 PR python/22730:
10174 * NEWS: Mention gdb.execute change.
10175 * gdbcmd.h (execute_control_command): Don't declare.
10176 * python/python.c (execute_gdb_command): Use read_command_lines_1,
10177 execute_control_commands, execute_control_commands_to_string.
10178 * cli/cli-script.h (execute_control_commands)
10179 (execute_control_commands_to_string): Declare.
10180 (execute_control_command): Add from_tty parameter.
10181 * cli/cli-script.c (execute_control_commands)
10182 (execute_control_commands_to_string): New functions.
10183 (execute_user_command): Use execute_control_commands.
10184 (execute_control_command_1): Add "from_tty" parameter. Update.
10185 (execute_control_command): Likewise.
10186
10187 2018-05-04 Tom Tromey <tom@tromey.com>
10188
10189 PR python/22731:
10190 * NEWS: Mention that breakpoint commands are writable.
10191 * python/py-breakpoint.c (bppy_set_commands): New function.
10192 (breakpoint_object_getset) <"commands">: Use it.
10193
10194 2018-05-04 Tom Tromey <tom@tromey.com>
10195
10196 * tracepoint.c (actions_command): Update.
10197 * mi/mi-cmd-break.c (mi_command_line_array)
10198 (mi_command_line_array_cnt, mi_command_line_array_ptr)
10199 (mi_read_next_line): Remove.
10200 (mi_cmd_break_commands): Update.
10201 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
10202 function_view.
10203 * cli/cli-script.c (get_command_line): Update.
10204 (process_next_line): Use function_view. Constify.
10205 (recurse_read_control_structure, read_command_lines)
10206 (read_command_lines_1): Change argument types to function_view.
10207 (do_define_command, document_command): Update.
10208 * breakpoint.h (check_tracepoint_command): Don't declare.
10209 * breakpoint.c (check_tracepoint_command): Remove.
10210 (commands_command_1, create_tracepoint_from_upload): Update.
10211
10212 2018-05-04 Tom Tromey <tom@tromey.com>
10213
10214 PR gdb/11750:
10215 * cli/cli-script.h (enum command_control_type) <define_control>:
10216 New constant.
10217 * cli/cli-script.c (multi_line_command_p): Handle define_control.
10218 (build_command_line, execute_control_command_1)
10219 (process_next_line): Likewise.
10220 (do_define_command): New function, extracted from define_command.
10221 (define_command): Use it.
10222
10223 2018-05-04 Tom Tromey <tom@tromey.com>
10224
10225 * tracepoint.c (actions_command): Update.
10226 * cli/cli-script.h (read_command_lines): Update.
10227 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
10228 (MAX_TMPBUF): Remove define.
10229 (define_command): Use string_printf.
10230 (document_command): Likewise.
10231 * breakpoint.c (commands_command_1): Update.
10232
10233 2018-05-04 Tom Tromey <tom@tromey.com>
10234
10235 * top.c (execute_command): Update.
10236 * cli/cli-script.h (print_command_lines): Now varargs.
10237 * cli/cli-script.c (print_command_lines): Now varargs.
10238 (execute_control_command_1) <case while_control, case if_control>:
10239 Update.
10240
10241 2018-05-04 Tom Tromey <tom@tromey.com>
10242
10243 * tracepoint.c (all_tracepoint_actions): Rename from
10244 all_tracepoint_actions_and_cleanup. Change return type.
10245 (actions_command, encode_actions_1, encode_actions)
10246 (trace_dump_actions, tdump_command): Update.
10247 * remote.c (remote_download_command_source): Update.
10248 * python/python.c (gdbpy_eval_from_control_command)
10249 (python_command, python_interactive_command): Update.
10250 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10251 * guile/guile.c (guile_command)
10252 (gdbscm_eval_from_control_command, guile_command): Update.
10253 * compile/compile.c (compile_code_command)
10254 (compile_print_command, compile_to_object): Update.
10255 * cli/cli-script.h (struct command_lines_deleter): New.
10256 (counted_command_line): New typedef.
10257 (struct command_line): Add constructor, destructor.
10258 <body_list>: Remove.
10259 <body_list_0, body_list_1>: New members.
10260 (command_line_up): Remove typedef.
10261 (read_command_lines, read_command_lines_1, get_command_line):
10262 Update.
10263 (copy_command_lines): Don't declare.
10264 * cli/cli-script.c (build_command_line): Use "new".
10265 (get_command_line): Return counted_command_line.
10266 (print_command_lines, execute_user_command)
10267 (execute_control_command_1, while_command, if_command): Update.
10268 (realloc_body_list): Remove.
10269 (process_next_line, recurse_read_control_structure): Update.
10270 (read_command_lines, read_command_lines_1): Return counted_command_line.
10271 (free_command_lines): Use "delete".
10272 (copy_command_lines): Remove.
10273 (define_command, document_command, show_user_1): Update.
10274 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
10275 a counted_command_line.
10276 * breakpoint.h (counted_command_line): Remove typedef.
10277 (breakpoint_set_commands): Update.
10278 * breakpoint.c (check_no_tracepoint_commands)
10279 (validate_commands_for_breakpoint): Update.
10280 (breakpoint_set_commands): Change commands to be a
10281 counted_command_line.
10282 (commands_command_1, update_dprintf_command_list)
10283 (create_tracepoint_from_upload): Update.
10284
10285 2018-05-04 Tom Tromey <tom@tromey.com>
10286
10287 * cli/cli-decode.h (cmd_list_element): New constructor.
10288 (~cmd_list_element): New destructor.
10289 (struct cmd_list_element): Add initializers.
10290 * cli/cli-decode.c (do_add_cmd): Use "new".
10291 (delete_cmd): Use "delete".
10292
10293 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10294 Pedro Alves <palves@redhat.com>
10295
10296 PR breakpoints/19806 and support for PR external/20207.
10297 * NEWS: Mention Aarch64 watchpoint improvements.
10298 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
10299 watchpoints and PR external/20207 watchpoints.
10300 * nat/aarch64-linux-hw-point.c
10301 (kernel_supports_any_contiguous_range): New.
10302 (aarch64_watchpoint_offset): New.
10303 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
10304 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
10305 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
10306 (aarch64_align_watchpoint): New parameters aligned_offset_p and
10307 next_addr_orig_p. Support PR external/20207 watchpoints.
10308 (aarch64_downgrade_regs): New.
10309 (aarch64_dr_state_insert_one_point): New parameters offset and
10310 addr_orig.
10311 (aarch64_dr_state_remove_one_point): Likewise.
10312 (aarch64_handle_breakpoint): Update caller.
10313 (aarch64_handle_aligned_watchpoint): Likewise.
10314 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
10315 aligned_offset.
10316 (aarch64_linux_set_debug_regs): Remove const from state. Call
10317 aarch64_downgrade_regs.
10318 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
10319 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
10320 (DR_CONTROL_MASK): ... this.
10321 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
10322 (unsigned int aarch64_watchpoint_offset): New prototype.
10323 (aarch64_linux_set_debug_regs): Remove const from state.
10324 * utils.c (align_up, align_down): Move to ...
10325 * common/common-utils.c (align_up, align_down): ... here.
10326 * utils.h (align_up, align_down): Move to ...
10327 * common/common-utils.h (align_up, align_down): ... here.
10328
10329 2018-05-04 Joel Brobecker <brobecker@adacore.com>
10330
10331 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
10332 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
10333 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
10334 Re-implement to match the ABI as summarized in GCC's
10335 gcc/config/sparc/sparc.c. All callers updated.
10336 (sparc32_store_arguments): Remove assertion.
10337
10338 2018-05-04 Tom Tromey <tom@tromey.com>
10339
10340 * printcmd.c: Don't include tui.h.
10341 (decode_format): Use skip_spaces.
10342
10343 2018-05-04 Tom Tromey <tom@tromey.com>
10344
10345 PR gdb/22619:
10346 * printcmd.c (last_count): New global.
10347 (x_command): Use saved count when repeating.
10348
10349 2018-05-04 Tom Tromey <tom@tromey.com>
10350
10351 * nto-procfs.c (do_closedir_cleanup): Remove.
10352 (procfs_pidlist): Use gdb_dir_up.
10353 * procfs.c (do_closedir_cleanup): Remove.
10354 (proc_update_threads): Use gdb_dir_up.
10355 * common/filestuff.h (struct gdb_dir_deleter): New.
10356 (gdb_dir_up): New typedef.
10357
10358 2018-05-04 Tom Tromey <tom@tromey.com>
10359
10360 * ada-lang.c (print_mention_exception): Use std::string.
10361
10362 2018-05-04 Tom Tromey <tom@tromey.com>
10363
10364 * ada-lang.c (create_excep_cond_exprs): Update.
10365 (ada_exception_catchpoint_cond_string): Use std::string.
10366
10367 2018-05-04 Tom Tromey <tom@tromey.com>
10368
10369 * ada-lang.c (xget_renaming_scope): Return std::string.
10370 (old_renaming_is_invisible): Update.
10371
10372 2018-05-04 Tom Tromey <tom@tromey.com>
10373
10374 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
10375 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
10376
10377 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
10378
10379 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
10380
10381 2018-05-04 Tom Tromey <tom@tromey.com>
10382
10383 * remote.c (remote_query_supported_append): Change type.
10384 (remote_check_symbols): Update.
10385
10386 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
10387
10388 PR gdb/11420
10389 * configure.ac: Prepend libpython.
10390 * python/python-config.py: Likewise.
10391 * configure: Regenerate.
10392
10393 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
10394
10395 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
10396
10397 2018-05-03 Pedro Alves <palves@redhat.com>
10398
10399 * s390-linux-nat.c
10400 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
10401 override. Write 'true' instead of '1'.
10402 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
10403 declaration.
10404
10405 2018-05-02 Pedro Alves <palves@redhat.com>
10406
10407 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
10408 add_inf_child_target.
10409 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
10410 add_inf_child_target.
10411 * aix-thread.c (aix_thread_target_info): New.
10412 (aix_thread_target) <shortname, longname, doc>: Delete.
10413 <info>: New.
10414 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
10415 add_inf_child_target.
10416 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
10417 add_inf_child_target.
10418 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
10419 add_inf_child_target.
10420 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
10421 add_inf_child_target.
10422 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
10423 add_inf_child_target.
10424 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
10425 add_inf_child_target.
10426 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
10427 add_inf_child_target.
10428 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
10429 add_inf_child_target.
10430 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
10431 add_inf_child_target.
10432 * bfd-target.c (target_bfd_target_info): New.
10433 (target_bfd) <shortname, longname, doc>: Delete.
10434 <info>: New.
10435 * bsd-kvm.c (bsd_kvm_target_info): New.
10436 (bsd_kvm_target) <shortname, longname, doc>: Delete.
10437 <info>: New.
10438 (bsd_kvm_target::open): Rename to ...
10439 (bsd_kvm_target_open): ... this. Adjust.
10440 * bsd-uthread.c (bsd_uthread_target_info): New.
10441 (bsd_uthread_target) <shortname, longname, doc>: Delete.
10442 <info>: New.
10443 * corefile.c (core_file_command): Adjust.
10444 * corelow.c (core_target_info): New.
10445 (core_target) <shortname, longname, doc>: Delete.
10446 <info>: New.
10447 (core_target::open): Rename to ...
10448 (core_target_open): ... this. Adjust.
10449 * ctf.c (ctf_target_info): New.
10450 (ctf_target) <shortname, longname, doc>: Delete.
10451 <info>: New.
10452 (ctf_target::open): Rename to ...
10453 (ctf_target_open): ... this.
10454 (_initialize_ctf): Adjust.
10455 * exec.c (exec_target_info): New.
10456 (exec_target) <shortname, longname, doc>: Delete.
10457 <info>: New.
10458 (exec_target::open): Rename to ...
10459 (exec_target_open): ... this.
10460 * gdbcore.h (core_target_open): Declare.
10461 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
10462 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
10463 add_inf_child_target.
10464 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
10465 add_inf_child_target.
10466 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
10467 add_inf_child_target.
10468 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
10469 add_inf_child_target.
10470 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
10471 add_inf_child_target.
10472 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
10473 add_inf_child_target.
10474 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
10475 add_inf_child_target.
10476 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
10477 add_inf_child_target.
10478 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
10479 add_inf_child_target.
10480 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
10481 add_inf_child_target.
10482 * inf-child.c (inf_child_target_info): New.
10483 (inf_child_target::info): New.
10484 (inf_child_open_target): Remove 'target' parameter. Use
10485 get_native_target instead.
10486 (inf_child_target::open): Delete.
10487 (add_inf_child_target): New.
10488 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
10489 Delete.
10490 <info>: New.
10491 (add_inf_child_target): Declare.
10492 (inf_child_open_target): Declare.
10493 * linux-thread-db.c (thread_db_target_info): New.
10494 (thread_db_target) <shortname, longname, doc>: Delete.
10495 <info>: New.
10496 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
10497 add_inf_child_target.
10498 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
10499 add_inf_child_target.
10500 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
10501 add_inf_child_target.
10502 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
10503 add_inf_child_target.
10504 * make-target-delegates (print_class): Adjust.
10505 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
10506 add_inf_child_target.
10507 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
10508 add_inf_child_target.
10509 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
10510 add_inf_child_target.
10511 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
10512 add_inf_child_target.
10513 * nto-procfs.c (nto_native_target_info): New.
10514 (nto_procfs_target_native) <shortname, longname, doc>:
10515 Delete.
10516 <info>: New.
10517 (nto_procfs_target_info): New.
10518 (nto_procfs_target_procfs) <shortname, longname, doc>:
10519 Delete.
10520 <info>: New.
10521 (init_procfs_targets): Adjust.
10522 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
10523 add_inf_child_target.
10524 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
10525 add_inf_child_target.
10526 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
10527 add_inf_child_target.
10528 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
10529 add_inf_child_target.
10530 * ravenscar-thread.c (ravenscar_target_info): New.
10531 (ravenscar_thread_target) <shortname, longname, doc>:
10532 Delete.
10533 <info>: New.
10534 * record-btrace.c (record_btrace_target_info):
10535 (record_btrace_target) <shortname, longname, doc>: Delete.
10536 <info>: New.
10537 (record_btrace_target::open): Rename to ...
10538 (record_btrace_target_open): ... this. Adjust.
10539 * record-full.c (record_longname, record_doc): New.
10540 (record_full_base_target) <shortname, longname, doc>: Delete.
10541 <info>: New.
10542 (record_full_target_info): New.
10543 (record_full_target): <shortname>: Delete.
10544 <info>: New.
10545 (record_full_core_open_1, record_full_open_1): Update comments.
10546 (record_full_base_target::open): Rename to ...
10547 (record_full_open): ... this.
10548 (cmd_record_full_restore): Update.
10549 (_initialize_record_full): Update.
10550 * remote-sim.c (remote_sim_target_info): New.
10551 (gdbsim_target) <shortname, longname, doc>: Delete.
10552 <info>: New.
10553 (gdbsim_target::open): Rename to ...
10554 (gdbsim_target_open): ... this.
10555 (_initialize_remote_sim): Adjust.
10556 * remote.c (remote_doc): New.
10557 (remote_target_info): New.
10558 (remote_target) <shortname, longname, doc>: Delete.
10559 <info>: New.
10560 (extended_remote_target_info): New.
10561 (extended_remote_target) <shortname, longname, doc>: Delete.
10562 <info>: New.
10563 (remote_target::open_1): Make static. Adjust.
10564 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
10565 * s390-linux-nat.c (_initialize_s390_nat): Use
10566 add_inf_child_target.
10567 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
10568 add_inf_child_target.
10569 * sol-thread.c (thread_db_target_info): New.
10570 (sol_thread_target) <shortname, longname, doc>: Delete.
10571 <info>: New.
10572 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
10573 add_inf_child_target.
10574 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
10575 add_inf_child_target.
10576 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
10577 add_inf_child_target.
10578 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
10579 add_inf_child_target.
10580 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
10581 add_inf_child_target.
10582 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
10583 add_inf_child_target.
10584 * spu-linux-nat.c (_initialize_spu_nat): Use
10585 add_inf_child_target.
10586 * spu-multiarch.c (spu_multiarch_target_info): New.
10587 (spu_multiarch_target) <shortname, longname, doc>: Delete.
10588 <info>: New.
10589 * target-delegates.c: Regenerate.
10590 * target.c: Include <unordered_map>.
10591 (target_ops_p): Delete.
10592 (DEF_VEC_P(target_ops_p)): Delete.
10593 (target_factories): New.
10594 (test_target_info): New.
10595 (test_target_ops::info): New.
10596 (open_target): Adjust to use target_factories.
10597 (add_target_with_completer): Rename to ...
10598 (add_target): ... this. Change prototype. Register target_info
10599 and open callback in target_factories. Register target_info in
10600 command context instead of target_ops.
10601 (add_target): Delete old implementation.
10602 (add_deprecated_target_alias): Change prototype. Adjust.
10603 (the_native_target): New.
10604 (set_native_target, get_native_target): New.
10605 (find_default_run_target): Use the_native_target.
10606 (find_attach_target, find_run_target): Simplify.
10607 (target_ops::open): Delete.
10608 (dummy_target_info): New.
10609 (dummy_target::shortname, dummy_target::longname)
10610 (dummy_target::doc): Delete.
10611 (dummy_target::info): New.
10612 (debug_target::shortname, debug_target::longname)
10613 (debug_target::doc): Delete.
10614 (debug_target::info): New.
10615 * target.h (struct target_info): New.
10616 (target_ops::~target_ops): Add comment.
10617 (target_ops::info): New.
10618 (target_ops::shortname, target_ops::longname, target_ops::doc): No
10619 longer virtual. Implement in terms of target_info.
10620 (set_native_target, get_native_target): Declare.
10621 (target_open_ftype): New.
10622 (add_target, add_target_with_completer)
10623 (add_deprecated_target_alias): Change prototype.
10624 (test_target) <shortname, longname, doc>: Delete.
10625 <info>: New.
10626 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
10627 add_inf_child_target.
10628 * tracefile-tfile.c (tfile_target_info): New.
10629 (tfile_target) <shortname, longname, doc>: Delete.
10630 <info>: New.
10631 (tfile_target::open): Rename to ...
10632 (tfile_target_open): ... this.
10633 (_initialize_tracefile_tfile): Adjust.
10634 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
10635 add_inf_child_target.
10636 * windows-nat.c (_initialize_windows_nat): Use
10637 add_inf_child_target.
10638 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
10639 add_inf_child_target.
10640
10641 2018-05-02 Pedro Alves <palves@redhat.com>
10642
10643 * linux-nat.h (linux_nat_target) <low_new_thread,
10644 low_delete_thread, low_new_fork, low_forget_process,
10645 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
10646 New virtual methods.
10647 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10648 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
10649 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
10650 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10651 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
10652 Delete.
10653 * linux-fork.c (delete_fork): Adjust to call low method.
10654 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
10655 (linux_nat_new_fork, linux_nat_forget_process_hook)
10656 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
10657 (linux_nat_status_is_event):
10658 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
10659 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
10660 to call low method.
10661 (sigtrap_is_event): Rename to ...
10662 (linux_nat_target::low_status_is_event): ... this.
10663 (linux_nat_set_status_is_event): Delete.
10664 (save_stop_reason, linux_nat_wait_1)
10665 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
10666 low methods.
10667 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10668 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10669 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10670 (linux_nat_set_prepare_to_resume): Delete.
10671 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
10672 low virtual methods.
10673 * amd64-linux-nat.c: Likewise.
10674 * arm-linux-nat.c: Likewise.
10675 * i386-linux-nat.c: Likewise.
10676 * ia64-linux-nat.c: Likewise.
10677 * mips-linux-nat.c: Likewise.
10678 * ppc-linux-nat.c: Likewise.
10679 * s390-linux-nat.c: Likewise.
10680 * sparc64-linux-nat.c: Likewise.
10681 * x86-linux-nat.c: Likewise.
10682 * x86-linux-nat.h: Include "nat/x86-linux.h".
10683 (x86_linux_nat_target) <low_new_fork, low_forget_process,
10684 low_prepare_to_resume, low_new_thread, low_delete_thread>:
10685 Override methods.
10686
10687 2018-05-02 Pedro Alves <palves@redhat.com>
10688
10689 * target.h (target_ops)
10690 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10691 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
10692 stopped_by_watchpoint, have_continuable_watchpoint,
10693 stopped_data_address, watchpoint_addr_within_range,
10694 can_accel_watchpoint_condition, can_run, thread_alive,
10695 has_all_memory, has_memory, has_stack, has_registers,
10696 has_execution, can_async_p, is_async_p, supports_non_stop,
10697 always_non_stop_p, can_execute_reverse, supports_multi_process,
10698 supports_enable_disable_tracepoint,
10699 supports_disable_randomization, supports_string_tracing,
10700 supports_evaluation_of_breakpoint_conditions,
10701 can_run_breakpoint_commands, filesystem_is_local,
10702 can_download_tracepoint, get_trace_state_variable_value,
10703 set_trace_notes, get_tib_address, use_agent, can_use_agent,
10704 record_is_replaying, record_will_replay,
10705 augmented_libraries_svr4_read>: Adjust to return bool.
10706 * aarch64-linux-nat.c: All implementations adjusted.
10707 * aix-thread.c: All implementations adjusted.
10708 * arm-linux-nat.c: All implementations adjusted.
10709 * breakpoint.c: All implementations adjusted.
10710 * bsd-kvm.c: All implementations adjusted.
10711 * bsd-uthread.c: All implementations adjusted.
10712 * corelow.c: All implementations adjusted.
10713 * ctf.c: All implementations adjusted.
10714 * darwin-nat.c: All implementations adjusted.
10715 * darwin-nat.h: All implementations adjusted.
10716 * exec.c: All implementations adjusted.
10717 * fbsd-nat.c: All implementations adjusted.
10718 * fbsd-nat.h: All implementations adjusted.
10719 * gnu-nat.c: All implementations adjusted.
10720 * gnu-nat.h: All implementations adjusted.
10721 * go32-nat.c: All implementations adjusted.
10722 * ia64-linux-nat.c: All implementations adjusted.
10723 * inf-child.c: All implementations adjusted.
10724 * inf-child.h: All implementations adjusted.
10725 * inf-ptrace.c: All implementations adjusted.
10726 * inf-ptrace.h: All implementations adjusted.
10727 * linux-nat.c: All implementations adjusted.
10728 * linux-nat.h: All implementations adjusted.
10729 * mips-linux-nat.c: All implementations adjusted.
10730 * nto-procfs.c: All implementations adjusted.
10731 * ppc-linux-nat.c: All implementations adjusted.
10732 * procfs.c: All implementations adjusted.
10733 * ravenscar-thread.c: All implementations adjusted.
10734 * record-btrace.c: All implementations adjusted.
10735 * record-full.c: All implementations adjusted.
10736 * remote-sim.c: All implementations adjusted.
10737 * remote.c: All implementations adjusted.
10738 * s390-linux-nat.c: All implementations adjusted.
10739 * sol-thread.c: All implementations adjusted.
10740 * spu-multiarch.c: All implementations adjusted.
10741 * target-delegates.c: All implementations adjusted.
10742 * target.c: All implementations adjusted.
10743 * target.h: All implementations adjusted.
10744 * tracefile-tfile.c: All implementations adjusted.
10745 * tracefile.c: All implementations adjusted.
10746 * tracefile.h: All implementations adjusted.
10747 * windows-nat.c: All implementations adjusted.
10748 * x86-linux-nat.h: All implementations adjusted.
10749 * x86-nat.h: All implementations adjusted.
10750
10751 2018-05-02 Pedro Alves <palves@redhat.com>
10752
10753 * make-target-delegates (scan_target_h): Don't trim lines here.
10754 Replace sequences of tabs and/or whitespace with a single
10755 whitespace.
10756 (top level, parsing methods): Trim each line before processing it
10757 here.
10758
10759 2018-05-02 Pedro Alves <palves@redhat.com>
10760 John Baldwin <jhb@freebsd.org>
10761
10762 * target.h (enum strata) <debug_stratum>: New.
10763 (struct target_ops) <all delegation methods>: Replace by C++
10764 virtual methods, and drop "to_" prefix. All references updated
10765 throughout.
10766 <to_shortname, to_longname, to_doc, to_data,
10767 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
10768 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
10769 virtual methods. All references updated throughout.
10770 <can_attach, supports_terminal_ours, can_create_inferior,
10771 get_thread_control_capabilities, attach_no_wait>: New
10772 virtual methods.
10773 <insert_breakpoint, remove_breakpoint>: Now
10774 TARGET_DEFAULT_NORETURN methods.
10775 <info_proc>: Now returns bool.
10776 <to_magic>: Delete.
10777 (OPS_MAGIC): Delete.
10778 (current_target): Delete. All references replaced by references
10779 to ...
10780 (target_stack): ... this. New.
10781 (target_shortname, target_longname): Adjust.
10782 (target_can_run): Now a function declaration.
10783 (default_child_has_all_memory, default_child_has_memory)
10784 (default_child_has_stack, default_child_has_registers)
10785 (default_child_has_execution): Remove target_ops parameter.
10786 (complete_target_initialization): Delete.
10787 (memory_breakpoint_target): New template class.
10788 (test_target_ops): Refactor as a C++ class with virtual methods.
10789 * make-target-delegates (NAME_PART): Tighten.
10790 (POINTER_PART, CP_SYMBOL): New.
10791 (SIMPLE_RETURN_PART): Reimplement.
10792 (VEC_RETURN_PART): Expect less.
10793 (RETURN_PART, VIRTUAL_PART): New.
10794 (METHOD): Adjust to C++ virtual methods.
10795 (scan_target_h): Remove reference to C99.
10796 (dname): Output "target_ops::" prefix.
10797 (write_function_header): Adjust to output a C++ class method.
10798 (write_declaration): New.
10799 (write_delegator): Adjust to output a C++ class method.
10800 (tdname): Output "dummy_target::" prefix.
10801 (write_tdefault, write_debugmethod): Adjust to output a C++ class
10802 method.
10803 (tdefault_names, debug_names): Delete.
10804 (return_types, tdefaults, styles, argtypes_array): New.
10805 (top level): All methods are delegators.
10806 (print_class): New.
10807 (top level): Print dummy_target and debug_target classes.
10808 * target-delegates.c: Regenerate.
10809 * target-debug.h (target_debug_print_enum_info_proc_what)
10810 (target_debug_print_thread_control_capabilities)
10811 (target_debug_print_thread_info_p): New.
10812 * target.c (dummy_target): Delete.
10813 (the_dummy_target, the_debug_target): New.
10814 (target_stack): Now extern.
10815 (set_targetdebug): Push/unpush debug target.
10816 (default_child_has_all_memory, default_child_has_memory)
10817 (default_child_has_stack, default_child_has_registers)
10818 (default_child_has_execution): Remove target_ops parameter.
10819 (complete_target_initialization): Delete.
10820 (add_target_with_completer): No longer call
10821 complete_target_initialization.
10822 (target_supports_terminal_ours): Use regular delegation.
10823 (update_current_target): Delete.
10824 (push_target): No longer check magic number. Don't call
10825 update_current_target.
10826 (unpush_target): Don't call update_current_target.
10827 (target_is_pushed): No longer check magic number.
10828 (target_require_runnable): Skip for all stratums over
10829 process_stratum.
10830 (target_ops::info_proc): New.
10831 (target_info_proc): Use find_target_at and
10832 find_default_run_target.
10833 (target_supports_disable_randomization): Use regular delegation.
10834 (target_get_osdata): Use find_target_at.
10835 (target_ops::open, target_ops::close, target_ops::can_attach)
10836 (target_ops::attach, target_ops::can_create_inferior)
10837 (target_ops::create_inferior, target_ops::can_run)
10838 (target_can_run): New.
10839 (default_fileio_target): Use regular delegation.
10840 (target_ops::fileio_open, target_ops::fileio_pwrite)
10841 (target_ops::fileio_pread, target_ops::fileio_fstat)
10842 (target_ops::fileio_close, target_ops::fileio_unlink)
10843 (target_ops::fileio_readlink): New.
10844 (target_fileio_open_1, target_fileio_unlink)
10845 (target_fileio_readlink): Always call the target method. Handle
10846 FILEIO_ENOSYS.
10847 (return_zero, return_zero_has_execution): Delete.
10848 (init_dummy_target): Delete.
10849 (dummy_target::dummy_target, dummy_target::shortname)
10850 (dummy_target::longname, dummy_target::doc)
10851 (debug_target::debug_target, debug_target::shortname)
10852 (debug_target::longname, debug_target::doc): New.
10853 (target_supports_delete_record): Use regular delegation.
10854 (setup_target_debug): Delete.
10855 (maintenance_print_target_stack): Skip debug_stratum.
10856 (initialize_targets): Instantiate the_dummy_target and
10857 the_debug_target.
10858 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
10859 use target_stack.
10860 (target_auxv_search, fprint_target_auxv): Adjust.
10861 (info_auxv_command): Adjust to use target_stack.
10862 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
10863 * exceptions.c (print_flush): Handle a NULL target_stack.
10864 * regcache.c (target_ops_no_register): Refactor as class with
10865 virtual methods.
10866
10867 * exec.c (exec_target): New class.
10868 (exec_ops): Now an exec_target.
10869 (exec_open, exec_close_1, exec_get_section_table)
10870 (exec_xfer_partial, exec_files_info, exec_has_memory)
10871 (exec_make_note_section): Refactor as exec_target methods.
10872 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
10873 Delete.
10874 (exec_target::find_memory_regions): New.
10875 (_initialize_exec): Don't call init_exec_ops.
10876 * gdbcore.h (exec_file_clear): Delete.
10877
10878 * corefile.c (core_target): Delete.
10879 (core_file_command): Adjust.
10880 * corelow.c (core_target): New class.
10881 (the_core_target): New.
10882 (core_close): Remove target_ops parameter.
10883 (core_close_cleanup): Adjust.
10884 (core_target::close): New.
10885 (core_open, core_detach, get_core_registers, core_files_info)
10886 (core_xfer_partial, core_thread_alive, core_read_description)
10887 (core_pid_to_str, core_thread_name, core_has_memory)
10888 (core_has_stack, core_has_registers, core_info_proc): Rework as
10889 core_target methods.
10890 (ignore, core_remove_breakpoint, init_core_ops): Delete.
10891 (_initialize_corelow): Initialize the_core_target.
10892 * gdbcore.h (core_target): Delete.
10893 (the_core_target): New.
10894
10895 * ctf.c: (ctf_target): New class.
10896 (ctf_ops): Now a ctf_target.
10897 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
10898 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
10899 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
10900 methods.
10901 (init_ctf_ops): Delete.
10902 (_initialize_ctf): Don't call it.
10903 * tracefile-tfile.c (tfile_target): New class.
10904 (tfile_ops): Now a tfile_target.
10905 (tfile_open, tfile_close, tfile_files_info)
10906 (tfile_get_tracepoint_status, tfile_trace_find)
10907 (tfile_fetch_registers, tfile_xfer_partial)
10908 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
10909 Refactor as tfile_target methods.
10910 (tfile_xfer_partial_features): Remove target_ops parameter.
10911 (init_tfile_ops): Delete.
10912 (_initialize_tracefile_tfile): Don't call it.
10913 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
10914 (tracefile_has_stack, tracefile_has_registers)
10915 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
10916 tracefile_target methods.
10917 (init_tracefile_ops): Delete.
10918 (tracefile_target::tracefile_target): New.
10919 * tracefile.h: Include "target.h".
10920 (tracefile_target): New class.
10921 (init_tracefile_ops): Delete.
10922
10923 * spu-multiarch.c (spu_multiarch_target): New class.
10924 (spu_ops): Now a spu_multiarch_target.
10925 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
10926 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
10927 (spu_search_memory, spu_mourn_inferior): Refactor as
10928 spu_multiarch_target methods.
10929 (init_spu_ops): Delete.
10930 (_initialize_spu_multiarch): Remove references to init_spu_ops,
10931 complete_target_initialization.
10932
10933 * ravenscar-thread.c (ravenscar_thread_target): New class.
10934 (ravenscar_ops): Now a ravenscar_thread_target.
10935 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
10936 (ravenscar_thread_alive, ravenscar_pid_to_str)
10937 (ravenscar_fetch_registers, ravenscar_store_registers)
10938 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
10939 (ravenscar_stopped_by_hw_breakpoint)
10940 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
10941 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
10942 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
10943 methods.
10944 (init_ravenscar_thread_ops): Delete.
10945 (_initialize_ravenscar): Remove references to
10946 init_ravenscar_thread_ops and complete_target_initialization.
10947
10948 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
10949 (bsd_uthread_target): New class.
10950 (bsd_uthread_ops): Now a bsd_uthread_target.
10951 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
10952 (bsd_uthread_close, bsd_uthread_mourn_inferior)
10953 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
10954 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
10955 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
10956 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
10957 (bsd_uthread_target): Delete function.
10958 (_initialize_bsd_uthread): Remove reference to
10959 complete_target_initialization.
10960
10961 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
10962 (target_bfd): ... this new class.
10963 (target_bfd_xfer_partial, target_bfd_get_section_table)
10964 (target_bfd_close): Refactor as target_bfd methods.
10965 (target_bfd::~target_bfd): New.
10966 (target_bfd_reopen): Adjust.
10967 (target_bfd::close): New.
10968
10969 * record-btrace.c (record_btrace_target): New class.
10970 (record_btrace_ops): Now a record_btrace_target.
10971 (record_btrace_open, record_btrace_stop_recording)
10972 (record_btrace_disconnect, record_btrace_close)
10973 (record_btrace_async, record_btrace_info)
10974 (record_btrace_insn_history, record_btrace_insn_history_range)
10975 (record_btrace_insn_history_from, record_btrace_call_history)
10976 (record_btrace_call_history_range)
10977 (record_btrace_call_history_from, record_btrace_record_method)
10978 (record_btrace_is_replaying, record_btrace_will_replay)
10979 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
10980 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
10981 (record_btrace_store_registers, record_btrace_prepare_to_store)
10982 (record_btrace_to_get_unwinder)
10983 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
10984 (record_btrace_commit_resume, record_btrace_wait)
10985 (record_btrace_stop, record_btrace_can_execute_reverse)
10986 (record_btrace_stopped_by_sw_breakpoint)
10987 (record_btrace_supports_stopped_by_sw_breakpoint)
10988 (record_btrace_stopped_by_hw_breakpoint)
10989 (record_btrace_supports_stopped_by_hw_breakpoint)
10990 (record_btrace_update_thread_list, record_btrace_thread_alive)
10991 (record_btrace_goto_begin, record_btrace_goto_end)
10992 (record_btrace_goto, record_btrace_stop_replaying_all)
10993 (record_btrace_execution_direction)
10994 (record_btrace_prepare_to_generate_core)
10995 (record_btrace_done_generating_core): Refactor as
10996 record_btrace_target methods.
10997 (init_record_btrace_ops): Delete.
10998 (_initialize_record_btrace): Remove reference to
10999 init_record_btrace_ops.
11000 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
11001 the execution_direction global.
11002 (record_full_base_target, record_full_target)
11003 (record_full_core_target): New classes.
11004 (record_full_ops): Now a record_full_target.
11005 (record_full_core_ops): Now a record_full_core_target.
11006 (record_full_target::detach, record_full_target::disconnect)
11007 (record_full_core_target::disconnect)
11008 (record_full_target::mourn_inferior, record_full_target::kill):
11009 New.
11010 (record_full_open, record_full_close, record_full_async): Refactor
11011 as methods of the record_full_base_target class.
11012 (record_full_resume, record_full_commit_resume): Refactor
11013 as methods of the record_full_target class.
11014 (record_full_wait, record_full_stopped_by_watchpoint)
11015 (record_full_stopped_data_address)
11016 (record_full_stopped_by_sw_breakpoint)
11017 (record_full_supports_stopped_by_sw_breakpoint)
11018 (record_full_stopped_by_hw_breakpoint)
11019 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
11020 methods of the record_full_base_target class.
11021 (record_full_store_registers, record_full_xfer_partial)
11022 (record_full_insert_breakpoint, record_full_remove_breakpoint):
11023 Refactor as methods of the record_full_target class.
11024 (record_full_can_execute_reverse, record_full_get_bookmark)
11025 (record_full_goto_bookmark, record_full_execution_direction)
11026 (record_full_record_method, record_full_info, record_full_delete)
11027 (record_full_is_replaying, record_full_will_replay)
11028 (record_full_goto_begin, record_full_goto_end, record_full_goto)
11029 (record_full_stop_replaying): Refactor as methods of the
11030 record_full_base_target class.
11031 (record_full_core_resume, record_full_core_kill)
11032 (record_full_core_fetch_registers)
11033 (record_full_core_prepare_to_store)
11034 (record_full_core_store_registers, record_full_core_xfer_partial)
11035 (record_full_core_insert_breakpoint)
11036 (record_full_core_remove_breakpoint)
11037 (record_full_core_has_execution): Refactor
11038 as methods of the record_full_core_target class.
11039 (record_full_base_target::supports_delete_record): New.
11040 (init_record_full_ops): Delete.
11041 (init_record_full_core_ops): Delete.
11042 (record_full_save): Refactor as method of the
11043 record_full_base_target class.
11044 (_initialize_record_full): Remove references to
11045 init_record_full_ops and init_record_full_core_ops.
11046
11047 * remote.c (remote_target, extended_remote_target): New classes.
11048 (remote_ops): Now a remote_target.
11049 (extended_remote_ops): Now an extended_remote_target.
11050 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
11051 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
11052 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
11053 (remote_pass_signals, remote_set_syscall_catchpoint)
11054 (remote_program_signals, )
11055 (remote_thread_always_alive): Remove target_ops parameter.
11056 (remote_thread_alive, remote_thread_name)
11057 (remote_update_thread_list, remote_threads_extra_info)
11058 (remote_static_tracepoint_marker_at)
11059 (remote_static_tracepoint_markers_by_strid)
11060 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
11061 (remote_open): Refactor as methods of remote_target.
11062 (extended_remote_open, extended_remote_detach)
11063 (extended_remote_attach, extended_remote_post_attach):
11064 (extended_remote_supports_disable_randomization)
11065 (extended_remote_create_inferior): : Refactor as method of
11066 extended_remote_target.
11067 (remote_set_permissions, remote_open_1, remote_detach)
11068 (remote_follow_fork, remote_follow_exec, remote_disconnect)
11069 (remote_resume, remote_commit_resume, remote_stop)
11070 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
11071 (remote_terminal_ours, remote_wait, remote_fetch_registers)
11072 (remote_prepare_to_store, remote_store_registers)
11073 (remote_flash_erase, remote_flash_done, remote_files_info)
11074 (remote_kill, remote_mourn, remote_insert_breakpoint)
11075 (remote_remove_breakpoint, remote_insert_watchpoint)
11076 (remote_watchpoint_addr_within_range)
11077 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
11078 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
11079 (remote_supports_stopped_by_sw_breakpoint)
11080 (remote_stopped_by_hw_breakpoint)
11081 (remote_supports_stopped_by_hw_breakpoint)
11082 (remote_stopped_by_watchpoint, remote_stopped_data_address)
11083 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
11084 (remote_verify_memory): Refactor as methods of remote_target.
11085 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
11086 parameter.
11087 (remote_xfer_partial, remote_get_memory_xfer_limit)
11088 (remote_search_memory, remote_rcmd, remote_memory_map)
11089 (remote_pid_to_str, remote_get_thread_local_address)
11090 (remote_get_tib_address, remote_read_description): Refactor as
11091 methods of remote_target.
11092 (remote_target::fileio_open, remote_target::fileio_pwrite)
11093 (remote_target::fileio_pread, remote_target::fileio_close): New.
11094 (remote_hostio_readlink, remote_hostio_fstat)
11095 (remote_filesystem_is_local, remote_can_execute_reverse)
11096 (remote_supports_non_stop, remote_supports_disable_randomization)
11097 (remote_supports_multi_process, remote_supports_cond_breakpoints)
11098 (remote_supports_enable_disable_tracepoint)
11099 (remote_supports_string_tracing)
11100 (remote_can_run_breakpoint_commands, remote_trace_init)
11101 (remote_download_tracepoint, remote_can_download_tracepoint)
11102 (remote_download_trace_state_variable, remote_enable_tracepoint)
11103 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
11104 (remote_trace_start, remote_get_trace_status)
11105 (remote_get_tracepoint_status, remote_trace_stop)
11106 (remote_trace_find, remote_get_trace_state_variable_value)
11107 (remote_save_trace_data, remote_get_raw_trace_data)
11108 (remote_set_disconnected_tracing, remote_core_of_thread)
11109 (remote_set_circular_trace_buffer, remote_traceframe_info)
11110 (remote_get_min_fast_tracepoint_insn_len)
11111 (remote_set_trace_buffer_size, remote_set_trace_notes)
11112 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
11113 (remote_disable_btrace, remote_teardown_btrace)
11114 (remote_read_btrace, remote_btrace_conf)
11115 (remote_augmented_libraries_svr4_read, remote_load)
11116 (remote_pid_to_exec_file, remote_can_do_single_step)
11117 (remote_execution_direction, remote_thread_handle_to_thread_info):
11118 Refactor as methods of remote_target.
11119 (init_remote_ops, init_extended_remote_ops): Delete.
11120 (remote_can_async_p, remote_is_async_p, remote_async)
11121 (remote_thread_events, remote_upload_tracepoints)
11122 (remote_upload_trace_state_variables): Refactor as methods of
11123 remote_target.
11124 (_initialize_remote): Remove references to init_remote_ops and
11125 init_extended_remote_ops.
11126
11127 * remote-sim.c (gdbsim_target): New class.
11128 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
11129 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
11130 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
11131 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
11132 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
11133 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
11134 Refactor as methods of gdbsim_target.
11135 (gdbsim_ops): Now a gdbsim_target.
11136 (init_gdbsim_ops): Delete.
11137 (gdbsim_cntrl_c): Adjust.
11138 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
11139
11140 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
11141 (the_amd64_linux_nat_target): New.
11142 (amd64_linux_fetch_inferior_registers)
11143 (amd64_linux_store_inferior_registers): Refactor as methods of
11144 amd64_linux_nat_target.
11145 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
11146 * i386-linux-nat.c: Don't include "linux-nat.h".
11147 (i386_linux_nat_target): New class.
11148 (the_i386_linux_nat_target): New.
11149 (i386_linux_fetch_inferior_registers)
11150 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
11151 as methods of i386_linux_nat_target.
11152 (_initialize_i386_linux_nat): Adjust. Set linux_target.
11153 * inf-child.c (inf_child_ops): Delete.
11154 (inf_child_fetch_inferior_registers)
11155 (inf_child_store_inferior_registers): Delete.
11156 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
11157 methods of inf_child_target.
11158 (inf_child_target::supports_terminal_ours)
11159 (inf_child_target::terminal_init)
11160 (inf_child_target::terminal_inferior)
11161 (inf_child_target::terminal_ours_for_output)
11162 (inf_child_target::terminal_ours, inf_child_target::interrupt)
11163 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
11164 New.
11165 (inf_child_open, inf_child_disconnect, inf_child_close)
11166 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
11167 (inf_child_post_startup_inferior, inf_child_can_run)
11168 (inf_child_pid_to_exec_file): Refactor as methods of
11169 inf_child_target.
11170 (inf_child_follow_fork): Delete.
11171 (inf_child_target::can_create_inferior)
11172 (inf_child_target::can_attach): New.
11173 (inf_child_target::has_all_memory, inf_child_target::has_memory)
11174 (inf_child_target::has_stack, inf_child_target::has_registers)
11175 (inf_child_target::has_execution): New.
11176 (inf_child_fileio_open, inf_child_fileio_pwrite)
11177 (inf_child_fileio_pread, inf_child_fileio_fstat)
11178 (inf_child_fileio_close, inf_child_fileio_unlink)
11179 (inf_child_fileio_readlink, inf_child_use_agent)
11180 (inf_child_can_use_agent): Refactor as methods of
11181 inf_child_target.
11182 (return_zero, inf_child_target): Delete.
11183 (inf_child_target::inf_child_target): New.
11184 * inf-child.h: Include "target.h".
11185 (inf_child_target): Delete function prototype.
11186 (inf_child_target): New class.
11187 (inf_child_open_target, inf_child_mourn_inferior)
11188 (inf_child_maybe_unpush_target): Delete.
11189 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
11190 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
11191 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
11192 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
11193 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
11194 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
11195 (inf_ptrace_wait, inf_ptrace_xfer_partial)
11196 (inf_ptrace_thread_alive, inf_ptrace_files_info)
11197 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
11198 methods of inf_ptrace_target.
11199 (inf_ptrace_target): Delete function.
11200 * inf-ptrace.h: Include "inf-child.h".
11201 (inf_ptrace_target): Delete function declaration.
11202 (inf_ptrace_target): New class.
11203 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
11204 * linux-nat.c (linux_target): New.
11205 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
11206 (linux_nat_target::~linux_nat_target): New.
11207 (linux_child_post_attach, linux_child_post_startup_inferior)
11208 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
11209 (linux_child_remove_fork_catchpoint)
11210 (linux_child_insert_vfork_catchpoint)
11211 (linux_child_remove_vfork_catchpoint)
11212 (linux_child_insert_exec_catchpoint)
11213 (linux_child_remove_exec_catchpoint)
11214 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
11215 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
11216 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
11217 (linux_nat_stopped_data_address)
11218 (linux_nat_stopped_by_sw_breakpoint)
11219 (linux_nat_supports_stopped_by_sw_breakpoint)
11220 (linux_nat_stopped_by_hw_breakpoint)
11221 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
11222 (linux_nat_kill, linux_nat_mourn_inferior)
11223 (linux_nat_xfer_partial, linux_nat_thread_alive)
11224 (linux_nat_update_thread_list, linux_nat_pid_to_str)
11225 (linux_nat_thread_name, linux_child_pid_to_exec_file)
11226 (linux_child_static_tracepoint_markers_by_strid)
11227 (linux_nat_is_async_p, linux_nat_can_async_p)
11228 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
11229 (linux_nat_supports_multi_process)
11230 (linux_nat_supports_disable_randomization, linux_nat_async)
11231 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
11232 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
11233 (linux_nat_fileio_open, linux_nat_fileio_readlink)
11234 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
11235 methods of linux_nat_target.
11236 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
11237 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
11238 parameter.
11239 (check_stopped_by_watchpoint): Adjust.
11240 (linux_xfer_partial): Delete.
11241 (linux_target_install_ops, linux_target, linux_nat_add_target):
11242 Delete.
11243 (linux_nat_target::linux_nat_target): New.
11244 * linux-nat.h: Include "inf-ptrace.h".
11245 (linux_nat_target): New.
11246 (linux_target, linux_target_install_ops, linux_nat_add_target):
11247 Delete function declarations.
11248 (linux_target): Declare global.
11249 * linux-thread-db.c (thread_db_target): New.
11250 (thread_db_target::thread_db_target): New.
11251 (thread_db_ops): Delete.
11252 (the_thread_db_target): New.
11253 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
11254 (thread_db_update_thread_list, thread_db_pid_to_str)
11255 (thread_db_extra_thread_info)
11256 (thread_db_thread_handle_to_thread_info)
11257 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
11258 (thread_db_resume): Refactor as methods of thread_db_target.
11259 (init_thread_db_ops): Delete.
11260 (_initialize_thread_db): Remove reference to init_thread_db_ops.
11261 * x86-linux-nat.c: Don't include "linux-nat.h".
11262 (super_post_startup_inferior): Delete.
11263 (x86_linux_nat_target::~x86_linux_nat_target): New.
11264 (x86_linux_child_post_startup_inferior)
11265 (x86_linux_read_description, x86_linux_enable_btrace)
11266 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
11267 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
11268 methods of x86_linux_nat_target.
11269 (x86_linux_create_target): Delete. Bits folded ...
11270 (x86_linux_add_target): ... here. Now takes a linux_nat_target
11271 pointer.
11272 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
11273 (x86_linux_nat_target): New class.
11274 (x86_linux_create_target): Delete.
11275 (x86_linux_add_target): Now takes a linux_nat_target pointer.
11276 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
11277 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
11278 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
11279 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
11280 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
11281 make extern.
11282 (x86_use_watchpoints): Delete.
11283 * x86-nat.h: Include "breakpoint.h" and "target.h".
11284 (x86_use_watchpoints): Delete.
11285 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
11286 (x86_stopped_by_watchpoint, x86_stopped_data_address)
11287 (x86_insert_watchpoint, x86_remove_watchpoint)
11288 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
11289 (x86_stopped_by_hw_breakpoint): New declarations.
11290 (x86_nat_target): New template class.
11291
11292 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
11293 (the_ppc_linux_nat_target): New.
11294 (ppc_linux_fetch_inferior_registers)
11295 (ppc_linux_can_use_hw_breakpoint)
11296 (ppc_linux_region_ok_for_hw_watchpoint)
11297 (ppc_linux_ranged_break_num_registers)
11298 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
11299 (ppc_linux_insert_mask_watchpoint)
11300 (ppc_linux_remove_mask_watchpoint)
11301 (ppc_linux_can_accel_watchpoint_condition)
11302 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
11303 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
11304 (ppc_linux_watchpoint_addr_within_range)
11305 (ppc_linux_masked_watch_num_registers)
11306 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
11307 (ppc_linux_read_description): Refactor as methods of
11308 ppc_linux_nat_target.
11309 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
11310
11311 * procfs.c (procfs_xfer_partial): Delete forward declaration.
11312 (procfs_target): New class.
11313 (the_procfs_target): New.
11314 (procfs_target): Delete function.
11315 (procfs_auxv_parse, procfs_attach, procfs_detach)
11316 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
11317 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
11318 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
11319 (procfs_create_inferior, procfs_update_thread_list)
11320 (procfs_thread_alive, procfs_pid_to_str)
11321 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
11322 (procfs_stopped_data_address, procfs_insert_watchpoint)
11323 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
11324 (proc_find_memory_regions, procfs_info_proc)
11325 (procfs_make_note_section): Refactor as methods of procfs_target.
11326 (_initialize_procfs): Adjust.
11327 * sol-thread.c (sol_thread_target): New class.
11328 (sol_thread_ops): Now a sol_thread_target.
11329 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
11330 (sol_thread_fetch_registers, sol_thread_store_registers)
11331 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
11332 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
11333 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
11334 (init_sol_thread_ops): Delete.
11335 (_initialize_sol_thread): Adjust. Remove references to
11336 init_sol_thread_ops and complete_target_initialization.
11337
11338 * windows-nat.c (windows_nat_target): New class.
11339 (windows_fetch_inferior_registers)
11340 (windows_store_inferior_registers, windows_resume, windows_wait)
11341 (windows_attach, windows_detach, windows_pid_to_exec_file)
11342 (windows_files_info, windows_create_inferior)
11343 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
11344 (windows_close, windows_pid_to_str, windows_xfer_partial)
11345 (windows_get_tib_address, windows_get_ada_task_ptid)
11346 (windows_thread_name, windows_thread_alive): Refactor as
11347 windows_nat_target methods.
11348 (do_initial_windows_stuff): Adjust.
11349 (windows_target): Delete function.
11350 (_initialize_windows_nat): Adjust.
11351
11352 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
11353 (darwin_mourn_inferior, darwin_kill_inferior)
11354 (darwin_create_inferior, darwin_attach, darwin_detach)
11355 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
11356 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
11357 (darwin_supports_multi_process): Refactor as darwin_nat_target
11358 methods.
11359 (darwin_resume_to, darwin_files_info): Delete.
11360 (_initialize_darwin_inferior): Rename to ...
11361 (_initialize_darwin_nat): ... this. Adjust to C++ification.
11362 * darwin-nat.h: Include "inf-child.h".
11363 (darwin_nat_target): New class.
11364 (darwin_complete_target): Delete.
11365 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
11366 (darwin_target): New.
11367 (i386_darwin_fetch_inferior_registers)
11368 (i386_darwin_store_inferior_registers): Refactor as methods of
11369 darwin_nat_target.
11370 (darwin_complete_target): Delete, with ...
11371 (_initialize_i386_darwin_nat): ... bits factored out here.
11372
11373 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
11374 (the_alpha_linux_nat_target): New.
11375 (alpha_linux_register_u_offset): Refactor as
11376 alpha_linux_nat_target method.
11377 (_initialize_alpha_linux_nat): Adjust.
11378 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
11379 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11380 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
11381 methods of linux_nat_trad_target.
11382 (linux_trad_target): Delete.
11383 * linux-nat-trad.h (linux_trad_target): Delete function.
11384 (linux_nat_trad_target): New class.
11385 * mips-linux-nat.c (mips_linux_nat_target): New class.
11386 (super_fetch_registers, super_store_registers, super_close):
11387 Delete.
11388 (the_mips_linux_nat_target): New.
11389 (mips64_linux_regsets_fetch_registers)
11390 (mips64_linux_regsets_store_registers)
11391 (mips64_linux_fetch_registers, mips64_linux_store_registers)
11392 (mips_linux_register_u_offset, mips_linux_read_description)
11393 (mips_linux_can_use_hw_breakpoint)
11394 (mips_linux_stopped_by_watchpoint)
11395 (mips_linux_stopped_data_address)
11396 (mips_linux_region_ok_for_hw_watchpoint)
11397 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
11398 (mips_linux_close): Refactor as methods of mips_linux_nat.
11399 (_initialize_mips_linux_nat): Adjust to C++ification.
11400
11401 * aix-thread.c (aix_thread_target): New class.
11402 (aix_thread_ops): Now an aix_thread_target.
11403 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
11404 (aix_thread_fetch_registers, aix_thread_store_registers)
11405 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
11406 (aix_thread_thread_alive, aix_thread_pid_to_str)
11407 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
11408 Refactor as methods of aix_thread_target.
11409 (init_aix_thread_ops): Delete.
11410 (_initialize_aix_thread): Remove references to init_aix_thread_ops
11411 and complete_target_initialization.
11412 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
11413 (rs6000_nat_target): New class.
11414 (the_rs6000_nat_target): New.
11415 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
11416 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
11417 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
11418 (super_create_inferior): Delete.
11419 (_initialize_rs6000_nat): Adjust to C++ification.
11420
11421 * arm-linux-nat.c (arm_linux_nat_target): New class.
11422 (the_arm_linux_nat_target): New.
11423 (arm_linux_fetch_inferior_registers)
11424 (arm_linux_store_inferior_registers, arm_linux_read_description)
11425 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
11426 (arm_linux_remove_hw_breakpoint)
11427 (arm_linux_region_ok_for_hw_watchpoint)
11428 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
11429 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
11430 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
11431 arm_linux_nat_target.
11432 (_initialize_arm_linux_nat): Adjust to C++ification.
11433
11434 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
11435 (the_aarch64_linux_nat_target): New.
11436 (aarch64_linux_fetch_inferior_registers)
11437 (aarch64_linux_store_inferior_registers)
11438 (aarch64_linux_child_post_startup_inferior)
11439 (aarch64_linux_read_description)
11440 (aarch64_linux_can_use_hw_breakpoint)
11441 (aarch64_linux_insert_hw_breakpoint)
11442 (aarch64_linux_remove_hw_breakpoint)
11443 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
11444 (aarch64_linux_region_ok_for_hw_watchpoint)
11445 (aarch64_linux_stopped_data_address)
11446 (aarch64_linux_stopped_by_watchpoint)
11447 (aarch64_linux_watchpoint_addr_within_range)
11448 (aarch64_linux_can_do_single_step): Refactor as methods of
11449 aarch64_linux_nat_target.
11450 (super_post_startup_inferior): Delete.
11451 (_initialize_aarch64_linux_nat): Adjust to C++ification.
11452
11453 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
11454 (the_hppa_linux_nat_target): New.
11455 (hppa_linux_fetch_inferior_registers)
11456 (hppa_linux_store_inferior_registers): Refactor as methods of
11457 hppa_linux_nat_target.
11458 (_initialize_hppa_linux_nat): Adjust to C++ification.
11459
11460 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
11461 (the_ia64_linux_nat_target): New.
11462 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
11463 (ia64_linux_stopped_data_address)
11464 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
11465 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
11466 ia64_linux_nat_target methods.
11467 (super_xfer_partial): Delete.
11468 (_initialize_ia64_linux_nat): Adjust to C++ification.
11469
11470 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
11471 (the_m32r_linux_nat_target): New.
11472 (m32r_linux_fetch_inferior_registers)
11473 (m32r_linux_store_inferior_registers): Refactor as
11474 m32r_linux_nat_target methods.
11475 (_initialize_m32r_linux_nat): Adjust to C++ification.
11476
11477 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
11478 (the_m68k_linux_nat_target): New.
11479 (m68k_linux_fetch_inferior_registers)
11480 (m68k_linux_store_inferior_registers): Refactor as
11481 m68k_linux_nat_target methods.
11482 (_initialize_m68k_linux_nat): Adjust to C++ification.
11483
11484 * s390-linux-nat.c (s390_linux_nat_target): New class.
11485 (the_s390_linux_nat_target): New.
11486 (s390_linux_fetch_inferior_registers)
11487 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
11488 (s390_insert_watchpoint, s390_remove_watchpoint)
11489 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
11490 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
11491 (s390_auxv_parse, s390_read_description): Refactor as methods of
11492 s390_linux_nat_target.
11493 (_initialize_s390_nat): Adjust to C++ification.
11494
11495 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
11496 (the_sparc_linux_nat_target): New.
11497 (_initialize_sparc_linux_nat): Adjust to C++ification.
11498 * sparc-nat.c (sparc_fetch_inferior_registers)
11499 (sparc_store_inferior_registers): Remove target_ops parameter.
11500 * sparc-nat.h (sparc_fetch_inferior_registers)
11501 (sparc_store_inferior_registers): Remove target_ops parameter.
11502 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
11503 (the_sparc64_linux_nat_target): New.
11504 (_initialize_sparc64_linux_nat): Adjust to C++ification.
11505
11506 * spu-linux-nat.c (spu_linux_nat_target): New class.
11507 (the_spu_linux_nat_target): New.
11508 (spu_child_post_startup_inferior, spu_child_post_attach)
11509 (spu_child_wait, spu_fetch_inferior_registers)
11510 (spu_store_inferior_registers, spu_xfer_partial)
11511 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
11512 methods.
11513 (_initialize_spu_nat): Adjust to C++ification.
11514
11515 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
11516 (the_tilegx_linux_nat_target): New.
11517 (fetch_inferior_registers, store_inferior_registers):
11518 Refactor as methods.
11519 (_initialize_tile_linux_nat): Adjust to C++ification.
11520
11521 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
11522 (the_xtensa_linux_nat_target): New.
11523 (xtensa_linux_fetch_inferior_registers)
11524 (xtensa_linux_store_inferior_registers): Refactor as
11525 xtensa_linux_nat_target methods.
11526 (_initialize_xtensa_linux_nat): Adjust to C++ification.
11527
11528 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
11529 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
11530 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
11531 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
11532 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
11533 (fbsd_stopped_by_sw_breakpoint)
11534 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
11535 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
11536 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
11537 (fbsd_post_startup_inferior, fbsd_post_attach)
11538 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
11539 (fbsd_set_syscall_catchpoint)
11540 (super_xfer_partial, super_resume, super_wait)
11541 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
11542 (fbsd_handle_debug_trap): Remove target_ops parameter.
11543 (fbsd_nat_add_target): Delete.
11544 * fbsd-nat.h: Include "inf-ptrace.h".
11545 (fbsd_nat_add_target): Delete.
11546 (USE_SIGTRAP_SIGINFO): Define.
11547 (fbsd_nat_target): New class.
11548
11549 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
11550 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
11551 (amd64bsd_target): Delete.
11552 * amd64-bsd-nat.h: New file.
11553 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
11554 "x86-bsd-nat.h".
11555 (amd64_fbsd_nat_target): New class.
11556 (the_amd64_fbsd_nat_target): New.
11557 (amd64fbsd_read_description): Refactor as method of
11558 amd64_fbsd_nat_target.
11559 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11560 (_initialize_amd64fbsd_nat): Adjust to C++ification.
11561 * amd64-nat.h (amd64bsd_target): Delete function declaration.
11562 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
11563 (i386bsd_store_inferior_registers): Remove target_ops parameter.
11564 (i386bsd_target): Delete.
11565 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
11566 (i386bsd_fetch_inferior_registers)
11567 (i386bsd_store_inferior_registers): Declare.
11568 (i386_bsd_nat_target): New class.
11569 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
11570 (the_i386_fbsd_nat_target): New.
11571 (i386fbsd_resume, i386fbsd_read_description): Refactor as
11572 i386_fbsd_nat_target methods.
11573 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11574 (_initialize_i386fbsd_nat): Adjust to C++ification.
11575 * x86-bsd-nat.c (super_mourn_inferior): Delete.
11576 (x86bsd_mourn_inferior, x86bsd_target): Delete.
11577 (_initialize_x86_bsd_nat): Adjust to C++ification.
11578 * x86-bsd-nat.h: Include "x86-nat.h".
11579 (x86bsd_target): Delete declaration.
11580 (x86bsd_nat_target): New class.
11581
11582 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
11583 (the_aarch64_fbsd_nat_target): New.
11584 (aarch64_fbsd_fetch_inferior_registers)
11585 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
11586 aarch64_fbsd_nat_target.
11587 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
11588 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
11589 (the_alpha_bsd_nat_target): New.
11590 (alphabsd_fetch_inferior_registers)
11591 (alphabsd_store_inferior_registers): Refactor as
11592 alpha_bsd_nat_target methods.
11593 (_initialize_alphabsd_nat): Refactor as methods of
11594 alpha_bsd_nat_target.
11595 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
11596 (the_amd64_nbsd_nat_target): New.
11597 (_initialize_amd64nbsd_nat): Adjust to C++ification.
11598 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
11599 (the_amd64_obsd_nat_target): New.
11600 (_initialize_amd64obsd_nat): Adjust to C++ification.
11601 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
11602 (the_arm_fbsd_nat_target): New.
11603 (arm_fbsd_fetch_inferior_registers)
11604 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
11605 (_initialize_arm_fbsd_nat): Refactor as methods of
11606 arm_fbsd_nat_target.
11607 (_initialize_arm_fbsd_nat): Adjust to C++ification.
11608 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
11609 (the_arm_netbsd_nat_target): New.
11610 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
11611 arm_netbsd_nat_target.
11612 (_initialize_arm_netbsd_nat): Adjust to C++ification.
11613 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
11614 (the_hppa_nbsd_nat_target): New.
11615 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
11616 hppa_nbsd_nat_target methods.
11617 (_initialize_hppanbsd_nat): Adjust to C++ification.
11618 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
11619 (the_hppa_obsd_nat_target): New.
11620 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
11621 methods of hppa_obsd_nat_target.
11622 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
11623 add_target.
11624 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
11625 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
11626 add_target.
11627 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
11628 (_initialize_i386obsd_nat): Use add_target.
11629 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
11630 (the_m68k_bsd_nat_target): New.
11631 (m68kbsd_fetch_inferior_registers)
11632 (m68kbsd_store_inferior_registers): Refactor as methods of
11633 m68k_bsd_nat_target.
11634 (_initialize_m68kbsd_nat): Adjust to C++ification.
11635 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
11636 (the_mips_fbsd_nat_target): New.
11637 (mips_fbsd_fetch_inferior_registers)
11638 (mips_fbsd_store_inferior_registers): Refactor as methods of
11639 mips_fbsd_nat_target.
11640 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
11641 add_target.
11642 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
11643 (the_mips_nbsd_nat_target): New.
11644 (mipsnbsd_fetch_inferior_registers)
11645 (mipsnbsd_store_inferior_registers): Refactor as methods of
11646 mips_nbsd_nat_target.
11647 (_initialize_mipsnbsd_nat): Adjust to C++ification.
11648 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
11649 (the_mips64_obsd_nat_target): New.
11650 (mips64obsd_fetch_inferior_registers)
11651 (mips64obsd_store_inferior_registers): Refactor as methods of
11652 mips64_obsd_nat_target.
11653 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
11654 add_target.
11655 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
11656 nbsd_nat_target.
11657 * nbsd-nat.h: Include "inf-ptrace.h".
11658 (nbsd_nat_target): New class.
11659 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
11660 (obsd_wait): Refactor as methods of obsd_nat_target.
11661 (obsd_add_target): Delete.
11662 * obsd-nat.h: Include "inf-ptrace.h".
11663 (obsd_nat_target): New class.
11664 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
11665 (the_ppc_fbsd_nat_target): New.
11666 (ppcfbsd_fetch_inferior_registers)
11667 (ppcfbsd_store_inferior_registers): Refactor as methods of
11668 ppc_fbsd_nat_target.
11669 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
11670 add_target.
11671 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
11672 (the_ppc_nbsd_nat_target): New.
11673 (ppcnbsd_fetch_inferior_registers)
11674 (ppcnbsd_store_inferior_registers): Refactor as methods of
11675 ppc_nbsd_nat_target.
11676 (_initialize_ppcnbsd_nat): Adjust to C++ification.
11677 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
11678 (the_ppc_obsd_nat_target): New.
11679 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
11680 methods of ppc_obsd_nat_target.
11681 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
11682 add_target.
11683 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
11684 (the_sh_nbsd_nat_target): New.
11685 (shnbsd_fetch_inferior_registers)
11686 (shnbsd_store_inferior_registers): Refactor as methods of
11687 sh_nbsd_nat_target.
11688 (_initialize_shnbsd_nat): Adjust to C++ification.
11689 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
11690 (inf_ptrace_xfer_partial): Delete.
11691 (sparc_xfer_partial, sparc_target): Delete.
11692 * sparc-nat.h (sparc_fetch_inferior_registers)
11693 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
11694 (sparc_target): Delete function declaration.
11695 (sparc_target): New template class.
11696 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
11697 (_initialize_sparcnbsd_nat): Adjust to C++ification.
11698 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
11699 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
11700 add_target.
11701 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
11702 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
11703 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
11704 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
11705 add_target.
11706 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
11707 (the_vax_bsd_nat_target): New.
11708 (vaxbsd_fetch_inferior_registers)
11709 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
11710 methods.
11711 (_initialize_vaxbsd_nat): Adjust to C++ification.
11712
11713 * bsd-kvm.c (bsd_kvm_target): New class.
11714 (bsd_kvm_ops): Now a bsd_kvm_target.
11715 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
11716 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
11717 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
11718 bsd_kvm_target.
11719 (bsd_kvm_return_one): Delete.
11720 (bsd_kvm_add_target): Adjust to C++ification.
11721
11722 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
11723 (nto_procfs_target_procfs): New classes.
11724 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
11725 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
11726 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
11727 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
11728 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
11729 (procfs_remove_hw_breakpoint, procfs_resume)
11730 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
11731 (procfs_kill_inferior, procfs_store_registers)
11732 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
11733 as methods of nto_procfs_target.
11734 (nto_procfs_ops): Now an nto_procfs_target_procfs.
11735 (nto_native_ops): Delete.
11736 (procfs_open, procfs_native_open): Delete.
11737 (nto_native_ops): Now an nto_procfs_target_native.
11738 (init_procfs_targets): Adjust to C++ification.
11739 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
11740 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
11741 Refactor as methods of nto_procfs_target.
11742
11743 * go32-nat.c (go32_nat_target): New class.
11744 (the_go32_nat_target): New.
11745 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
11746 (go32_store_registers, go32_xfer_partial, go32_files_info)
11747 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
11748 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
11749 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
11750 (go32_pid_to_str): Refactor as methods of go32_nat_target.
11751 (go32_target): Delete.
11752 (_initialize_go32_nat): Adjust to C++ification.
11753
11754 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
11755 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
11756 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
11757 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
11758 gnu_nat_target.
11759 (gnu_target): Delete.
11760 * gnu-nat.h (gnu_target): Delete.
11761 (gnu_nat_target): New class.
11762 * i386-gnu-nat.c (gnu_base_target): New.
11763 (i386_gnu_nat_target): New class.
11764 (the_i386_gnu_nat_target): New.
11765 (_initialize_i386gnu_nat): Adjust to C++ification.
11766
11767 2018-05-02 Pedro Alves <palves@redhat.com>
11768
11769 * bfd-target.c (target_bfd_xclose): Rename to ...
11770 (target_bfd_close): ... this.
11771 (target_bfd_reopen): Adjust.
11772 * target.c (target_close): Remove references to to_xclose.
11773 * target.h (target_ops::to_xclose): Delete.
11774 (target_ops::to_close): Update comments.
11775
11776 2018-05-02 Pedro Alves <palves@redhat.com>
11777
11778 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
11779 "linux-nat.h".
11780 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
11781 * inf-ptrace.c (inf_ptrace_register_u_offset)
11782 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11783 (inf_ptrace_store_register, inf_ptrace_store_registers)
11784 (inf_ptrace_trad_target): Move to ...
11785 * linux-nat-trad.c: ... this new file.
11786 * linux-nat-trad.h: New file.
11787 * linux-nat.c (linux_target_install_ops): Make extern.
11788 (linux_trad_target): Delete.
11789 * linux-nat.h (linux_trad_target): Delete declaration.
11790 (linux_target_install_ops): Declare.
11791 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
11792 "linux-nat.h".
11793
11794 2018-05-02 Pedro Alves <palves@redhat.com>
11795
11796 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11797 procfs_target/add_target here.
11798 * procfs.c (procfs_target): Make static.
11799 (_initialize_procfs): Call add_target here.
11800 * procfs.h (struct target_ops): Remove forward declaration.
11801 (procfs_target): Remove declaration.
11802 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
11803
11804 2018-05-02 Pedro Alves <palves@redhat.com>
11805
11806 * procfs.c (procfs_stopped_by_watchpoint)
11807 (procfs_insert_watchpoint, procfs_remove_watchpoint)
11808 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
11809 Forward declare.
11810 (procfs_use_watchpoints): Delete, move contents...
11811 (procfs_target): ... here.
11812 * procfs.h (procfs_use_watchpoints): Delete declaration.
11813 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11814 procfs_use_watchpoints.
11815 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
11816 procfs_use_watchpoints.
11817
11818 2018-05-02 Tom Tromey <tom@tromey.com>
11819
11820 PR python/20084:
11821 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
11822 and var_zuinteger_unlimited.
11823 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
11824 and PARAM_ZUINTEGER_UNLIMITED.
11825 (set_parameter_value): Handle var_zuinteger and
11826 var_zuinteger_unlimited.
11827 (add_setshow_generic): Likewise.
11828 (parmpy_init): Likewise.
11829
11830 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
11831
11832 PR rust/23124
11833 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
11834 pointer is not null before dereferencing it.
11835
11836 2018-04-30 Tom Tromey <tom@tromey.com>
11837
11838 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
11839 is_mi_like_p.
11840
11841 2018-04-30 Tom Tromey <tom@tromey.com>
11842
11843 * breakpoint.c (mention): Remove use of is_mi_like_p.
11844 (print_mention_ranged_breakpoint): Likewise.
11845 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
11846 of is_mi_like_p.
11847
11848 2018-04-30 Tom Tromey <tom@tromey.com>
11849
11850 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
11851
11852 2018-04-30 Tom Tromey <tom@tromey.com>
11853
11854 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
11855 (info_spu_event_command): Remove some uses of is_mi_like_p.
11856
11857 2018-04-30 Tom Tromey <tom@tromey.com>
11858
11859 * python/py-framefilter.c (py_print_single_arg)
11860 (enumerate_locals, py_print_args, py_print_frame): Remove some
11861 uses of is_mi_like_p.
11862
11863 2018-04-30 Tom Tromey <tom@tromey.com>
11864
11865 * ui-out.c: Update.
11866 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
11867 * ui-out.h (ui_out::is_mi_like_p): Now const.
11868 (ui_out::do_is_mi_like_p): Now const.
11869 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
11870
11871 2018-04-30 Tom Tromey <tom@tromey.com>
11872
11873 * varobj.c (varobj_set_visualizer): Use new_reference.
11874 * python/python.c (gdbpy_decode_line): Use new_reference.
11875 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
11876 new_reference.
11877
11878 2018-04-30 Tom Tromey <tom@tromey.com>
11879
11880 * varobj.c (install_new_value): Use new_reference.
11881 * value.h (value_incref): Return void. Swap intro comment with
11882 value_decref.
11883 * value.c (set_value_parent): Use new_reference.
11884 (value_incref): Return void. Update intro comment.
11885 (release_value): Use new_reference.
11886 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
11887
11888 2018-04-30 Tom Tromey <tom@tromey.com>
11889
11890 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
11891 * gdb_bfd.h (new_bfd_ref): Remove.
11892 (gdb_bfd_open): Update comment.
11893 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11894 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
11895 (gdb_bfd_fdopenr): Use new_reference.
11896 * exec.c (exec_file_attach): Use new_reference.
11897
11898 2018-04-30 Tom Tromey <tom@tromey.com>
11899
11900 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
11901 method.
11902
11903 2018-04-30 Tom Tromey <tom@tromey.com>
11904
11905 * jit.c (jit_read_code_entry): Use type_align.
11906 * i386-tdep.c (i386_gdbarch_init): Don't call
11907 set_gdbarch_long_long_align_bit.
11908 * gdbarch.sh: Remove long_long_align_bit.
11909 * gdbarch.c, gdbarch.h: Rebuild.
11910 * arc-tdep.c (arc_type_align): New function.
11911 (arc_gdbarch_init): Use arc_type_align. Don't call
11912 set_gdbarch_long_long_align_bit.
11913
11914 2018-04-30 Tom Tromey <tom@tromey.com>
11915
11916 * rust-lang.c (rust_type_alignment): Remove.
11917 (rust_composite_type): Use type_align.
11918
11919 2018-04-30 Tom Tromey <tom@tromey.com>
11920
11921 * NEWS: Mention Type.align.
11922 * python/py-type.c (typy_get_alignof): New function.
11923 (type_object_getset): Add "alignof".
11924
11925 2018-04-30 Tom Tromey <tom@tromey.com>
11926
11927 PR exp/17095:
11928 * NEWS: Update.
11929 * std-operator.def (UNOP_ALIGNOF): New operator.
11930 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
11931 New.
11932 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
11933 * c-lang.c (c_op_print_tab): Add alignof.
11934 * c-exp.y (ALIGNOF): New token.
11935 (exp): Add "ALIGNOF" production.
11936 (ident_tokens): Add _Alignof and alignof.
11937
11938 2018-04-30 Tom Tromey <tom@tromey.com>
11939
11940 * i386-tdep.c (i386_type_align): New function.
11941 (i386_gdbarch_init): Update.
11942 * gdbarch.sh (type_align): New method.
11943 * gdbarch.c, gdbarch.h: Rebuild.
11944 * arch-utils.h (default_type_align): Declare.
11945 * arch-utils.c (default_type_align): New function.
11946 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
11947 (struct type) <align_log2>: New field.
11948 <instance_flags>: Now a bitfield.
11949 (TYPE_RAW_ALIGN): New macro.
11950 (type_align, type_raw_align, set_type_align): Declare.
11951 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
11952 functions.
11953 * dwarf2read.c (quirk_rust_enum): Set type alignment.
11954 (get_alignment, maybe_set_alignment): New functions.
11955 (read_structure_type, read_enumeration_type, read_array_type)
11956 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
11957 (read_subrange_type, read_base_type): Set type alignment.
11958
11959 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
11960
11961 * dwarf2read.c (read_index_from_section): Use bool.
11962
11963 2018-04-29 Fabian Groffen <grobian@gentoo.org>
11964
11965 PR gdb/22950
11966 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
11967 with #ifdef.
11968
11969 2018-04-29 John Reiser <jreiser@BitWagon.com>
11970
11971 PR build/22873
11972 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
11973 last step, and do it atomically.
11974
11975 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
11976
11977 * compile/compile-c-types.c (convert_int, convert_float):
11978 Update for C FE v1.
11979
11980 2018-04-27 Tom Tromey <tom@tromey.com>
11981
11982 PR rust/22545:
11983 * rust-lang.c (rust_inclusive_range_type_p): New function.
11984 (rust_range): Handle inclusive ranges.
11985 (rust_compute_range): Likewise.
11986 * rust-exp.y (struct rust_op) <inclusive>: New field.
11987 (DOTDOTEQ): New constant.
11988 (range_expr): Add "..=" productions.
11989 (operator_tokens): Add "..=" token.
11990 (ast_range): Add "inclusive" parameter.
11991 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
11992 ranges.
11993 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
11994 bounds values.
11995 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
11996 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
11997 Update comments.
11998 * expprint.c (print_subexp_standard): Handle new bounds values.
11999 (dump_subexp_body_standard): Likewise.
12000
12001 2018-04-27 Tom Tromey <tom@tromey.com>
12002
12003 * configure: Rebuild.
12004 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
12005 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
12006 "OVERRIDE".
12007 (class symbol_needs_eval_context): Likewise.
12008 * dwarf2read.c (mock_mapped_index::symbol_name_count)
12009 (mock_mapped_index::symbol_name_at): Use "override". Remove
12010 "virtual".
12011 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
12012 "override".
12013 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
12014 * aarch64-tdep.c (instruction_reader::read): Use "override".
12015 (instruction_reader_test::read): Likewise.
12016 * arm-tdep.c (instruction_reader::read): Use "override".
12017 (instruction_reader_thumb::read): Likewise.
12018
12019 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
12020
12021 PR remote/9665
12022 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
12023 instead of remote_send.
12024 (remote_send): Remove.
12025
12026 2018-04-26 Pedro Alves <palves@redhat.com>
12027
12028 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
12029 find_function_start_sal instead of find_pc_line.
12030
12031 2018-04-26 Pedro Alves <palves@redhat.com>
12032
12033 * breakpoint.c (set_breakpoint_location_function): Handle
12034 mst_data_gnu_ifunc.
12035 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
12036 * elfread.c (elf_symtab_read): Give data symbols with
12037 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
12038 (elf_rel_plt_read): Update comment.
12039 * linespec.c (convert_linespec_to_sals): Handle
12040 mst_data_gnu_ifunc.
12041 (minsym_found): Handle mst_data_gnu_ifunc.
12042 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
12043 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
12044 * parse.c (find_minsym_type_and_address): Handle
12045 mst_data_gnu_ifunc.
12046 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
12047 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
12048 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
12049 comment.
12050 <mst_data_gnu_ifunc>: New enumerator.
12051
12052 2018-04-26 Pedro Alves <palves@redhat.com>
12053
12054 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
12055 (lookup_minimal_symbol_by_pc_section): ... this. Replace
12056 'want_trampoline' parameter by a lookup_msym_prefer parameter.
12057 Handle it.
12058 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
12059 (lookup_minimal_symbol_by_pc): Adjust.
12060 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
12061 (lookup_solib_trampoline_symbol_by_pc): Adjust.
12062 * minsyms.h (lookup_msym_prefer): New enum.
12063 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
12064 parameter by a lookup_msym_prefer parameter.
12065
12066 2018-04-26 Pedro Alves <palves@redhat.com>
12067
12068 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
12069 ends in "@plt" instead of looking at the symbol's section.
12070
12071 2018-04-26 Pedro Alves <palves@redhat.com>
12072
12073 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
12074 all references.
12075 (find_pc_partial_function_gnu_ifunc): Rename to ...
12076 (find_pc_partial_function): ... this, and remove references to
12077 'is_gnu_ifunc_p'.
12078 (find_pc_partial_function): Delete old implementation.
12079 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
12080
12081 2018-04-26 Pedro Alves <palves@redhat.com>
12082
12083 * linespec.c (struct bound_minimal_symbol_search_key): New.
12084 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
12085 skip first line if we found a GNU ifunc minimal symbol by name.
12086 (compare_msymbols): Change parameters to work with a destructured
12087 lhs minsym.
12088 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
12089 functions.
12090
12091 2018-04-26 Pedro Alves <palves@redhat.com>
12092
12093 * breakpoint.c (set_breakpoint_location_function): Don't resolve
12094 ifunc targets here. Instead, if we have an ifunc minsym, use its
12095 address/name.
12096 (add_location_to_breakpoint): Store the minsym and the objfile in
12097 the breakpoint location.
12098 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
12099 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
12100 Record the minsym in the sal.
12101 * symtab.h (symtab_and_line) <msymbol>: New field.
12102
12103 2018-04-26 Pedro Alves <palves@redhat.com>
12104
12105 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
12106 unless we actually resolved the ifunc.
12107
12108 2018-04-26 Pedro Alves <palves@redhat.com>
12109
12110 * c-exp.y (variable production): Prefer ifunc minsyms over
12111 regular function symbols.
12112 * symtab.c (find_gnu_ifunc): New function.
12113 * minsyms.h (lookup_msym_prefer): New enum.
12114 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
12115 parameter by a lookup_msym_prefer parameter.
12116 * symtab.h (find_gnu_ifunc): New declaration.
12117
12118 2018-04-26 Pedro Alves <palves@redhat.com>
12119
12120 * blockframe.c (find_gnu_ifunc_target_type): New function.
12121 (find_function_type): New.
12122 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
12123 return a value with a memory address.
12124 (eval_call): For calls to GNU ifunc functions, try to find the
12125 type of the target function from the type that the resolver
12126 returns.
12127 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
12128 symbols.
12129 * infcall.c (find_function_return_type): Delete.
12130 (find_function_addr): Add 'function_type' parameter. For calls to
12131 GNU ifunc functions, try to find the type of the target function
12132 from the type that the resolver returns, and return it via
12133 FUNCTION_TYPE.
12134 (call_function_by_hand_dummy): Adjust to use the function type
12135 returned by find_function_addr.
12136 (find_function_addr): Add 'function_type' parameter and move
12137 description here.
12138 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
12139 declarations.
12140
12141 2018-04-26 Pedro Alves <palves@redhat.com>
12142
12143 * c-exp.y (variable production): Skip finding an alias for ifunc
12144 symbols.
12145
12146 2018-04-26 Pedro Alves <palves@redhat.com>
12147
12148 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
12149
12150 2018-04-25 Pedro Alves <palves@redhat.com>
12151
12152 * infcmd.c (kill_command): Print the pid as string, not the whole
12153 thread's ptid. Add comment. s/has been killed/killed/ in output
12154 message.
12155 * remote.c (remote_detach_1): Print the pid as string, not the
12156 whole thread's ptid.
12157
12158 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12159 Sergio Durigan Junior <sergiodj@redhat.com>
12160 Pedro Alves <palves@redhat.com>
12161
12162 * infcmd.c (kill_command): Print message when inferior has
12163 been killed.
12164 * inferior.c (print_inferior_events): Remove 'static'. Set as
12165 '1'.
12166 (add_inferior): Improve message printed when
12167 'print_inferior_events' is on.
12168 (exit_inferior): Remove message printed when
12169 'print_inferior_events' is on.
12170 (detach_inferior): Improve message printed when
12171 'print_inferior_events' is on.
12172 (initialize_inferiors): Use 'add_inferior_silent' to set
12173 'current_inferior_'.
12174 * inferior.h (print_inferior_events): Declare here as
12175 'extern'.
12176 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
12177 '[Detaching...]' messages when 'print_inferior_events' is on.
12178 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
12179 as prefix/suffix for messages. Remove periods. Fix erroneous
12180 'Detaching after fork from child...', replace it by '... from
12181 parent...'.
12182 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
12183 prefix/suffix when printing 'Detaching...' messages. Print
12184 them when 'print_inferior_events' is on.
12185 * remote.c (remote_detach_1): Print message when detaching
12186 from inferior and '!is_fork_parent'.
12187
12188 2018-04-24 Tom Tromey <tom@tromey.com>
12189
12190 * cli-out.h: Reindent.
12191
12192 2018-04-24 Tom Tromey <tom@tromey.com>
12193
12194 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
12195 (cli_ui_out::do_field_string): Use fputs_filtered.
12196 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
12197
12198 2018-04-23 Tom Tromey <tom@tromey.com>
12199
12200 * guile/scm-frame.c (gdbscm_frame_read_var): Use
12201 gdb::unique_xmalloc_ptr.
12202
12203 2018-04-23 Tom Tromey <tom@tromey.com>
12204
12205 * configure: Rebuild.
12206
12207 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
12208
12209 PR gdb/23095
12210 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
12211 prepare_for_testing. Set normal_bp to r_debug_state if target
12212 is bsd.
12213
12214 2018-04-21 Pedro Alves <palves@redhat.com>
12215 Rajendra SY <rajendra.sy@gmail.com>
12216
12217 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
12218 * remote.c (extended_remote_attach): In all-stop mode, mark the
12219 thread as executing.
12220
12221 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12222
12223 * thread.c (thread_apply_all_command): Fix comment.
12224 (thread_command): Fix comment.
12225
12226 2018-04-10 Alan Hayward <alan.hayward@arm.com>
12227
12228 * common/tdesc.h (tdesc_create_feature): Remove xml filename
12229 parameter.
12230 * features/aarch64-core.c (create_feature_aarch64_core):
12231 Regenerate.
12232 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
12233 Likewise.
12234 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
12235 Likewise.
12236 * features/i386/32bit-avx512.c
12237 (create_feature_i386_32bit_avx512): Likewise.
12238 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
12239 Likewise.
12240 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
12241 Likewise.
12242 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
12243 Likewise.
12244 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
12245 Likewise.
12246 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
12247 Likewise.
12248 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
12249 Likewise.
12250 * features/i386/64bit-avx512.c
12251 (create_feature_i386_64bit_avx512): Likewise.
12252 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
12253 Likewise.
12254 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
12255 Likewise.
12256 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
12257 Likewise.
12258 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
12259 Likewise.
12260 * features/i386/64bit-segments.c
12261 (create_feature_i386_64bit_segments): Likewise.
12262 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
12263 Likewise.
12264 * features/i386/x32-core.c
12265 (create_feature_i386_x32_core): Likewise.
12266 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
12267 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
12268 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
12269 * target-descriptions.c: In generated code, don't pass xml
12270 filename.
12271
12272 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12273
12274 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
12275 (print_xml_feature::visit_post): Likewise.
12276 (print_xml_feature::visit): Likewise.
12277 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
12278 (print_xml_feature): Add new class.
12279 * regformats/regdat.sh: Null xmltarget on feature targets.
12280 * target-descriptions.c (struct target_desc): Add xmltarget.
12281 (maintenance_check_tdesc_xml_convert): Add unittest function.
12282 (tdesc_get_features_xml): Add function to get xml.
12283 (maintenance_check_xml_descriptions): Test xml generation.
12284 * xml-tdesc.c (string_read_description_xml): Add function.
12285 * xml-tdesc.h (string_read_description_xml): Add declaration.
12286
12287 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12288
12289 * features/Makefile: Add feature marker to targets with new style
12290 target descriptions.
12291 * regformats/aarch64.dat: Regenerate.
12292 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
12293 * regformats/i386/amd64-avx-linux.dat: Likewise.
12294 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
12295 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
12296 * regformats/i386/amd64-linux.dat: Likewise.
12297 * regformats/i386/amd64-mpx-linux.dat: Likewise.
12298 * regformats/i386/amd64.dat: Likewise.
12299 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
12300 * regformats/i386/i386-avx-linux.dat: Likewise.
12301 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
12302 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
12303 * regformats/i386/i386-linux.dat: Likewise.
12304 * regformats/i386/i386-mmx-linux.dat: Likewise.
12305 * regformats/i386/i386-mpx-linux.dat: Likewise.
12306 * regformats/i386/i386.dat: Likewise.
12307 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
12308 * regformats/i386/x32-avx-linux.dat: Likewise.
12309 * regformats/i386/x32-linux.dat: Likewise.
12310 * regformats/tic6x-c62x-linux.dat: Likewise.
12311 * regformats/tic6x-c64x-linux.dat: Likewise.
12312 * regformats/tic6x-c64xp-linux.dat: Likewise.
12313 * regformats/regdat.sh: Parse feature marker.
12314
12315 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12316
12317 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
12318 (tdesc_osabi_name): Likewise.
12319 * target-descriptions.c (tdesc_architecture_name): Add new
12320 function.
12321 (tdesc_osabi_name): Likewise.
12322
12323 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12324
12325 * common/tdesc.c (tdesc_predefined_type): Move to here.
12326 (tdesc_named_type): Likewise.
12327 (tdesc_create_vector): Likewise.
12328 (tdesc_create_struct): Likewise.
12329 (tdesc_set_struct_size): Likewise.
12330 (tdesc_create_union): Likewise.
12331 (tdesc_create_flags): Likewise.
12332 (tdesc_create_enum): Likewise.
12333 (tdesc_add_field): Likewise.
12334 (tdesc_add_typed_bitfield): Likewise.
12335 (tdesc_add_bitfield): Likewise.
12336 (tdesc_add_flag): Likewise.
12337 (tdesc_add_enum_value): Likewise.
12338 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
12339 (struct tdesc_type_vector): Likewise.
12340 (struct tdesc_type_field): Likewise.
12341 (struct tdesc_type_with_fields): Likewise.
12342 (tdesc_create_enum): Add declaration.
12343 (tdesc_add_typed_bitfield): Likewise.
12344 (tdesc_add_enum_value): Likewise.
12345 * target-descriptions.c (tdesc_type_field): Move from here.
12346 (tdesc_type_builtin): Likewise.
12347 (tdesc_type_vector): Likewise.
12348 (tdesc_type_with_fields): Likewise.
12349 (tdesc_predefined_types): Likewise.
12350 (tdesc_named_type): Likewise.
12351 (tdesc_create_vector): Likewise.
12352 (tdesc_create_struct): Likewise.
12353 (tdesc_set_struct_size): Likewise.
12354 (tdesc_create_union): Likewise.
12355 (tdesc_create_flags): Likewise.
12356 (tdesc_create_enum): Likewise.
12357 (tdesc_add_field): Likewise.
12358 (tdesc_add_typed_bitfield): Likewise.
12359 (tdesc_add_bitfield): Likewise.
12360 (tdesc_add_flag): Likewise.
12361 (tdesc_add_enum_value): Likewise.
12362 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
12363 (tdesc_add_typed_bitfield): Likewise.
12364 (tdesc_add_enum_value): Likewise.
12365
12366 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12367
12368 * common/tdesc.c (tdesc_feature::accept): Move to here.
12369 (tdesc_feature::operator==): Likewise.
12370 (tdesc_create_reg): Likewise.
12371 * common/tdesc.h (tdesc_type_kind): Likewise.
12372 (struct tdesc_type): Likewise.
12373 (struct tdesc_feature): Likewise.
12374 * regformats/regdat.sh: Create a feature.
12375 * target-descriptions.c (tdesc_type_kind): Move from here.
12376 (tdesc_type): Likewise.
12377 (tdesc_type_up): Likewise.
12378 (tdesc_feature): Likewise.
12379 (tdesc_create_reg): Likewise.
12380
12381 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12382
12383 * Makefile.in: Add arch/tdesc.c
12384 * common/tdesc.c: New file.
12385 * common/tdesc.h (tdesc_element_visitor): Move to here.
12386 (tdesc_element): Likewise.
12387 (tdesc_reg): Likewise.
12388 (tdesc_reg_up): Likewise.
12389 * regformats/regdef.h (reg): Add offset to constructors.
12390 * target-descriptions.c (tdesc_element_visitor): Move from here.
12391 (tdesc_element): Likewise.
12392 (tdesc_reg): Likewise.
12393 (tdesc_reg_up): Likewise.
12394
12395 2018-04-17 Tom Tromey <tom@tromey.com>
12396
12397 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
12398 discriminant field.
12399
12400 2018-04-17 Tom Tromey <tom@tromey.com>
12401
12402 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
12403
12404 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
12405
12406 * symtab.c (print_symbol_info): Skip printing filename and line
12407 number when `last' is NULL.
12408 (symtab_symbol_info): Use empty string instead of NULL for first
12409 invocation of print_symbol_info.
12410 (rbreak_command): Pass NULL to `last' parameter of
12411 print_symbol_info.
12412
12413 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
12414
12415 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
12416 instead of nullptr.
12417
12418 2018-04-16 Pedro Alves <palves@redhat.com>
12419
12420 * MAINTAINERS (sh): Remove.
12421 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
12422 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
12423 (ALLDEPFILES): Remove sh64-tdep.c.
12424 * NEWS: Mentions that support for SH-5/SH64 is removed.
12425 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
12426 (sh*-*-openbsd*): Ditto.
12427 (sh64-*-elf*): Remove.
12428 (sh*): Remove.
12429 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
12430 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
12431 * sh-tdep.c: No longer include "sh64-tdep.h".
12432 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
12433 * sh64-tdep.c, sh64-tdep.h: Remove files.
12434
12435 2018-04-16 Pedro Alves <palves@redhat.com>
12436
12437 * MAINTAINERS: Remove m88k.
12438 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
12439 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
12440 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
12441 * NEWS: Mention that support for m88k was removed.
12442 * configure.host (m88*-*-*): Remove support.
12443 * configure.nat (m88k-*-*): Remove support.
12444 * configure.tgt (m88*-*-openbsd*): Remove.
12445 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
12446
12447 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
12448
12449 * configure.tgt (x86_tobjs): New variable.
12450 (amd64_tobjs, i386_tobjs): Use it.
12451
12452 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12453
12454 * symtab.c (print_symbol_info): Precede the symbol definition by
12455 the line number when available.
12456 * NEWS: Advertise this enhancement.
12457
12458 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12459
12460 * NEWS (New options): announce set/show record btrace cpu.
12461 * btrace.c: Include record-btrace.h.
12462 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
12463 the vendor is unknown.
12464 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
12465 Maybe overwrite the btrace configuration's cpu.
12466 (btrace_compute_ftrace): Add cpu parameter. Update callers.
12467 (btrace_fetch): Add cpu parameter. Update callers.
12468 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
12469 Maybe overwrite the btrace configuration's cpu. Skip enabling
12470 errata workarounds if the vendor is unknown.
12471 * python/py-record-btrace.c: Include record-btrace.h.
12472 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
12473 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
12474 * record-btrace.c (record_btrace_cpu_state_kind): New.
12475 (record_btrace_cpu): New.
12476 (set_record_btrace_cpu_cmdlist): New.
12477 (record_btrace_get_cpu): New.
12478 (require_btrace_thread, record_btrace_info)
12479 (record_btrace_resume_thread): Call record_btrace_get_cpu.
12480 (cmd_set_record_btrace_cpu_none): New.
12481 (cmd_set_record_btrace_cpu_auto): New.
12482 (cmd_set_record_btrace_cpu): New.
12483 (cmd_show_record_btrace_cpu): New.
12484 (_initialize_record_btrace): Initialize set/show record btrace cpu
12485 commands.
12486 * record-btrace.h (record_btrace_get_cpu): New.
12487
12488 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12489
12490 * record.c (set_record_command): Fix typo in message.
12491
12492 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12493
12494 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
12495
12496 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12497
12498 * infrun.c (process_event_stop_test): Call
12499 gdbarch_in_indirect_branch_thunk.
12500 * gdbarch.sh (in_indirect_branch_thunk): New.
12501 * gdbarch.c: Regenerated.
12502 * gdbarch.h: Regenerated.
12503 * x86-tdep.h: New.
12504 * x86-tdep.c: New.
12505 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
12506 (HFILES_NO_SRCDIR): Add x86-tdep.h.
12507 (ALLDEPFILES): Add x86-tdep.c.
12508 * arch-utils.h (default_in_indirect_branch_thunk): New.
12509 * arch-utils.c (default_in_indirect_branch_thunk): New.
12510 * i386-tdep: Include x86-tdep.h.
12511 (i386_in_indirect_branch_thunk): New.
12512 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
12513 function.
12514 * amd64-tdep: Include x86-tdep.h.
12515 (amd64_in_indirect_branch_thunk): New.
12516 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
12517
12518 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12519
12520 PR gdb/23053
12521 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
12522 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
12523 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
12524 regression.
12525
12526 2018-04-12 Tom Tromey <tom@tromey.com>
12527
12528 * rust-lang.c (rust_print_struct_def): Remove univariant code.
12529 (rust_evaluate_subexp): Likewise.
12530
12531 2018-04-12 Pedro Alves <palves@redhat.com>
12532
12533 * procfs.c (procfs_detach): Make forward declaration's prototype
12534 match definition's protototype.
12535 (proc_get_LDT_entry): Remove stale do_cleanups call.
12536
12537 2018-04-12 Pedro Alves <palves@redhat.com>
12538
12539 * target.h (target_ops::to_has_exited): Delete.
12540 (target_has_exited): Delete.
12541 * target-delegates.c: Regenerate.
12542
12543 2018-04-11 Pedro Alves <palves@redhat.com>
12544
12545 * target.c (fileio_fh_t::t): Add comment.
12546 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12547 (target_fileio_close): Handle a NULL target.
12548 (invalidate_fileio_fh): New.
12549 (target_close): Call it.
12550 * remote.c (remote_hostio_send_command): No longer check whether
12551 remote_desc is open.
12552
12553 2018-04-11 Pedro Alves <palves@redhat.com>
12554
12555 * target.c (fileio_fh_t): Make it a named struct instead of a
12556 typedef.
12557 (fileio_fh_t::is_closed): New method.
12558 (DEF_VEC_O (fileio_fh_t)): Remove.
12559 (fileio_fhandles): Now a std::vector.
12560 (is_closed_fileio_fh): Delete.
12561 (acquire_fileio_fd): Adjust. Rename parameters.
12562 (release_fileio_fd): Adjust.
12563 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
12564 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12565 (target_fileio_close): Adjust.
12566
12567 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
12568
12569 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
12570 index.
12571
12572 2018-04-10 Pedro Alves <palves@redhat.com>
12573
12574 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
12575 (scoped_finish_thread_state): New class.
12576 * infcmd.c (run_command_1): Use it instead of finish_thread_state
12577 cleanup.
12578 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
12579 (fetch_inferior_event, normal_stop): Likewise.
12580 * thread.c (finish_thread_state_cleanup): Delete.
12581
12582 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12583 Pedro Alves <palves@redhat.com>
12584
12585 * value.c: Include "selftest.h" and "common/array-view.h".
12586 (struct range) <operator ==>: New.
12587 (test_ranges_contain): New.
12588 (check_ranges_vector): New.
12589 (test_insert_into_bit_range_vector): New.
12590 (_initialize_values): Register selftests.
12591 * common/array-view.h (operator==, operator!=): New.
12592
12593 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12594
12595 * common/gdb_vecs.h (unordered_remove): Add overload that takes
12596 an iterator.
12597 * inline-frame.c: Include <algorithm>.
12598 (struct inline_state): Add constructor.
12599 (inline_state_s): Remove.
12600 (DEF_VEC_O(inline_state_s)): Remove.
12601 (inline_states): Change type to std::vector.
12602 (find_inline_frame_state): Adjust to std::vector.
12603 (allocate_inline_frame_state): Remove.
12604 (clear_inline_frame_state): Adjust to std::vector.
12605 (skip_inline_frames): Adjust to std::vector.
12606
12607 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12608
12609 * tracepoint.h (struct trace_state_variable): Add constructor.
12610 <name>: Change type to std::string.
12611 * tracepoint.c (tsv_s): Remove.
12612 (DEF_VEC_O(tsv_s)): Remove.
12613 (tvariables): Change to std::vector.
12614 (create_trace_state_variable): Adjust to std::vector.
12615 (find_trace_state_variable): Likewise.
12616 (find_trace_state_variable_by_number): Likewise.
12617 (delete_trace_state_variable): Likewise.
12618 (trace_variable_command): Adjust to std::string.
12619 (delete_trace_variable_command): Likewise.
12620 (tvariables_info_1): Adjust to std::vector.
12621 (save_trace_state_variables): Likewise.
12622 (start_tracing): Likewise.
12623 (merge_uploaded_trace_state_variables): Adjust to std::vector
12624 and std::string.
12625 * target.h (struct target_ops)
12626 <to_download_trace_state_variable>: Pass reference to
12627 trace_state_variable.
12628 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
12629 * target-delegates.c: Re-generate.
12630 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
12631 (mi_tsv_deleted): Likewise.
12632 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
12633 * remote.c (remote_download_trace_state_variable): Change
12634 pointer to reference and adjust.
12635 * make-target-delegates (parse_argtypes): Handle references.
12636 (write_function_header): Likewise.
12637 (munge_type): Likewise.
12638
12639 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12640
12641 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12642 string_view-selftests.c.
12643 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
12644 testsuite.
12645 * unittests/basic_string_view/cons/char/1.cc: Likewise.
12646 * unittests/basic_string_view/cons/char/2.cc: Likewise.
12647 * unittests/basic_string_view/cons/char/3.cc: Likewise.
12648 * unittests/basic_string_view/element_access/char/1.cc:
12649 Likewise.
12650 * unittests/basic_string_view/element_access/char/empty.cc:
12651 Likewise.
12652 * unittests/basic_string_view/element_access/char/front_back.cc:
12653 Likewise.
12654 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
12655 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
12656 Likewise.
12657 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
12658 Likewise.
12659 * unittests/basic_string_view/modifiers/swap/char/1.cc:
12660 Likewise.
12661 * unittests/basic_string_view/operations/compare/char/1.cc:
12662 Likewise.
12663 * unittests/basic_string_view/operations/compare/char/13650.cc:
12664 Likewise.
12665 * unittests/basic_string_view/operations/copy/char/1.cc:
12666 Likewise.
12667 * unittests/basic_string_view/operations/data/char/1.cc:
12668 Likewise.
12669 * unittests/basic_string_view/operations/find/char/1.cc:
12670 Likewise.
12671 * unittests/basic_string_view/operations/find/char/2.cc:
12672 Likewise.
12673 * unittests/basic_string_view/operations/find/char/3.cc:
12674 Likewise.
12675 * unittests/basic_string_view/operations/find/char/4.cc:
12676 Likewise.
12677 * unittests/basic_string_view/operations/rfind/char/1.cc:
12678 Likewise.
12679 * unittests/basic_string_view/operations/rfind/char/2.cc:
12680 Likewise.
12681 * unittests/basic_string_view/operations/rfind/char/3.cc:
12682 Likewise.
12683 * unittests/basic_string_view/operations/substr/char/1.cc:
12684 Likewise.
12685 * unittests/basic_string_view/operators/char/2.cc: Likewise.
12686 * unittests/string_view-selftests.c: New file.
12687
12688 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12689
12690 * unittests/basic_string_view/capacity/1.cc: New file.
12691 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
12692 * unittests/basic_string_view/cons/char/1.cc: New file.
12693 * unittests/basic_string_view/cons/char/2.cc: New file.
12694 * unittests/basic_string_view/cons/char/3.cc: New file.
12695 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
12696 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
12697 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
12698 * unittests/basic_string_view/element_access/char/1.cc: New file.
12699 * unittests/basic_string_view/element_access/char/2.cc: New file.
12700 * unittests/basic_string_view/element_access/char/empty.cc: New file.
12701 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
12702 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
12703 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
12704 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
12705 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
12706 * unittests/basic_string_view/include.cc: New file.
12707 * unittests/basic_string_view/inserters/char/1.cc: New file.
12708 * unittests/basic_string_view/inserters/char/2.cc: New file.
12709 * unittests/basic_string_view/inserters/char/3.cc: New file.
12710 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
12711 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
12712 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
12713 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
12714 * unittests/basic_string_view/literals/types.cc: New file.
12715 * unittests/basic_string_view/literals/values.cc: New file.
12716 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
12717 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
12718 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
12719 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
12720 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
12721 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
12722 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
12723 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
12724 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
12725 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
12726 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
12727 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
12728 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
12729 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
12730 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
12731 * unittests/basic_string_view/operations/data/char/1.cc: New file.
12732 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
12733 * unittests/basic_string_view/operations/find/char/1.cc: New file.
12734 * unittests/basic_string_view/operations/find/char/2.cc: New file.
12735 * unittests/basic_string_view/operations/find/char/3.cc: New file.
12736 * unittests/basic_string_view/operations/find/char/4.cc: New file.
12737 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
12738 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
12739 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
12740 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
12741 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
12742 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
12743 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
12744 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
12745 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
12746 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
12747 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
12748 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
12749 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
12750 * unittests/basic_string_view/operators/char/2.cc: New file.
12751 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
12752 * unittests/basic_string_view/range_access/char/1.cc: New file.
12753 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
12754 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
12755 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
12756 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
12757 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
12758 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
12759 * unittests/basic_string_view/requirements/typedefs.cc: New file.
12760 * unittests/basic_string_view/typedefs.cc: New file.
12761 * unittests/basic_string_view/types/1.cc: New file.
12762
12763 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12764
12765 * common/gdb_string_view.h: Remove libstdc++ implementation
12766 details, adjust to gdb reality.
12767 * common/gdb_string_view.tcc: Likewise.
12768 * cli/cli-script.c (struct string_view): Remove.
12769 (user_args) <m_args>: Change element type to gdb::string_view.
12770 (user_args::insert_args): Adjust.
12771
12772 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12773
12774 * common/gdb_string_view.h: New file.
12775 * common/gdb_string_view.tcc: New file.
12776
12777 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12778
12779 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
12780 * configure: Re-generate.
12781
12782 2018-04-09 Pedro Alves <palves@redhat.com>
12783
12784 * gdbarch.sh: Include "observable.h" instead of "observer.h".
12785 (set_target_gdbarch): Call
12786 gdb::observers::architecture_changed.notify instead of
12787 observer_notify_architecture_changed.
12788
12789 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12790
12791 * tracepoint.c (struct current_traceframe_cleanup): Remove.
12792 (do_restore_current_traceframe_cleanup): Remove.
12793 (restore_current_traceframe_cleanup_dtor): Remove.
12794 (make_cleanup_restore_current_traceframe): Remove.
12795 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
12796 New.
12797 * tracepoint.h (struct scoped_restore_current_traceframe): New.
12798 * infrun.c (fetch_inferior_event): Use
12799 scoped_restore_current_traceframe.
12800
12801 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12802
12803 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
12804 Remove.
12805 <n_allocated_type_units>: Remove.
12806 <all_type_units>: Change to std::vector.
12807 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12808 to std::vector change.
12809 (dwarf2_per_objfile::get_cutu): Likewise.
12810 (dwarf2_per_objfile::get_tu): Likewise.
12811 (create_signatured_type_table_from_index): Likewise.
12812 (create_signatured_type_table_from_debug_names): Likewise.
12813 (dw2_symtab_iter_next): Likewise.
12814 (dw2_print_stats): Likewise.
12815 (dw2_expand_all_symtabs): Likewise.
12816 (dw2_expand_marked_cus): Likewise.
12817 (dw2_debug_names_iterator::next): Likewise.
12818 (dwarf2_initialize_objfile): Likewise.
12819 (add_signatured_type_cu_to_table): Likewise.
12820 (create_all_type_units): Likewise.
12821 (add_type_unit): Likewise.
12822 (struct tu_abbrev_offset): Add constructor.
12823 (build_type_psymtabs_1): Adjust to std::vector change.
12824 (print_tu_stats): Likewise.
12825 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12826 (write_debug_names): Likewise.
12827
12828 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12829
12830 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
12831 Make an std::vector.
12832 <n_comp_units>: Remove.
12833 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12834 to std::vector change.
12835 (dwarf2_per_objfile::get_cutu): Likewise.
12836 (dwarf2_per_objfile::get_cu): Likewise.
12837 (create_cus_from_index): Likewise.
12838 (create_addrmap_from_index): Likewise.
12839 (create_addrmap_from_aranges): Likewise.
12840 (dwarf2_read_index): Likewise.
12841 (dw2_find_last_source_symtab): Likewise.
12842 (dw2_map_symtabs_matching_filename): Likewise.
12843 (dw2_symtab_iter_next): Likewise.
12844 (dw2_print_stats): Likewise.
12845 (dw2_expand_all_symtabs): Likewise.
12846 (dw2_expand_symtabs_with_fullname): Likewise.
12847 (dw2_expand_marked_cus): Likewise.
12848 (dw2_map_symbol_filenames): Likewise.
12849 (create_cus_from_debug_names): Likewise.
12850 (dwarf2_read_debug_names): Likewise.
12851 (dw2_debug_names_iterator::next): Likewise.
12852 (dwarf2_initialize_objfile): Likewise.
12853 (set_partial_user): Likewise.
12854 (dwarf2_build_psymtabs_hard): Likewise.
12855 (read_comp_units_from_section): Remove arguments, adjust to
12856 std::vector change.
12857 (create_all_comp_units): Adjust to std::vector and
12858 read_comp_units_from_section changes.
12859 (dwarf2_find_containing_comp_unit): Adjust to std::vector
12860 change.
12861 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12862 (psyms_seen_size): Likewise.
12863 (write_gdbindex): Likewise.
12864 (write_debug_names): Likewise.
12865
12866 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12867
12868 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
12869 with dwarf2_per_objfile.
12870 (create_cus_from_index): Likewise.
12871 (create_signatured_type_table_from_index): Likewise.
12872 (dwarf2_read_index): Likewise.
12873 (dwarf2_initialize_objfile): Likewise.
12874 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
12875 per_cu rather than get_dwarf2_per_objfile.
12876
12877 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12878
12879 * dwarf2read.h (struct signatured_type): Forward declare.
12880 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
12881 New methods.
12882 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
12883 (dw2_get_cutu): ...this.
12884 (dwarf2_per_objfile::get_cu): Rename from...
12885 (dw2_get_cu): ...this.
12886 (dwarf2_per_objfile::get_tu): New.
12887 (create_addrmap_from_index): Adjust.
12888 (create_addrmap_from_aranges): Adjust.
12889 (dw2_find_last_source_symtab): Adjust.
12890 (dw2_map_symtabs_matching_filename): Adjust.
12891 (dw2_symtab_iter_next): Adjust.
12892 (dw2_print_stats): Adjust.
12893 (dw2_expand_all_symtabs): Adjust.
12894 (dw2_expand_symtabs_with_fullname): Adjust.
12895 (dw2_expand_marked_cus): Adjust.
12896 (dw_expand_symtabs_matching_file_matcher): Adjust.
12897 (dw2_map_symbol_filenames): Adjust.
12898 (dw2_debug_names_iterator::next): Adjust.
12899 (dwarf2_initialize_objfile): Adjust.
12900 (set_partial_user): Adjust.
12901 (dwarf2_build_psymtabs_hard): Adjust.
12902
12903 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12904
12905 * dwarf2read.c (create_signatured_type_table_from_debug_names):
12906 Remove unused variables.
12907 (dw2_map_symtabs_matching_filename): Likewise.
12908 (dwarf2_record_block_ranges): Likewise.
12909 (dwarf2_read_addr_index): Likewise.
12910 (follow_die_offset): Likewise.
12911
12912 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12913
12914 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
12915 to symbol_file_add_main.
12916
12917 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12918
12919 PR mi/22299
12920 * mi/mi-console.c (do_fputc_async_safe): New.
12921 (mi_console_file::write_async_safe): New.
12922 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
12923 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
12924 New.
12925 * ui-file.c (ui_file::putstrn): Adjust call to
12926 fputstrn_unfiltered.
12927 * utils.c (printchar): Replace do_fputs and do_fprintf
12928 parameters by do_fputc.
12929 (fputstr_filtered): Adjust call to printchar.
12930 (fputstr_unfiltered): Likewise.
12931 (fputstrn_filtered): Likewise.
12932 (fputstrn_unfiltered): Add do_fputc parameter, pass to
12933 printchar.
12934 * utils.h (do_fputc_ftype): New typedef.
12935 (fputstrn_unfiltered): Add do_fputc parameter.
12936
12937 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12938
12939 * regformats/i386/i386-avx.dat: Remove.
12940
12941 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12942
12943 PR gdb/22979
12944 * amd64-tdep.c (amd64_none_init_abi): New function.
12945 (amd64_x32_none_init_abi): New function.
12946 (_initialize_amd64_tdep): Register handlers for x86-64 and
12947 x64_32 with GDB_OSABI_NONE.
12948 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
12949 GDB_OSABI_NONE osabi.
12950
12951 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12952
12953 PR gdb/22980
12954 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
12955 GDB_OSABI_NONE.
12956 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
12957 * osabi.c (gdb_osabi_names): Add "unknown" entry.
12958
12959 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12960
12961 * common/byte-vector.h (char_vector): New type.
12962 * target.h (target_read_alloc): Return
12963 gdb::optional<byte_vector>.
12964 (target_read_stralloc): Return gdb::optional<char_vector>.
12965 (target_get_osdata): Return gdb::optional<char_vector>.
12966 * target.c (target_read_alloc_1): Templatize. Replacement
12967 manual memory management with vector.
12968 (target_read_alloc): Change return type, adjust.
12969 (target_read_stralloc): Change return type, adjust.
12970 (target_get_osdata): Change return type, adjust.
12971 * auxv.c (struct auxv_info) <length>: Remove.
12972 <data>: Change type to gdb::optional<byte_vector>.
12973 (auxv_inferior_data_cleanup): Free auxv_info with delete.
12974 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
12975 (target_auxv_search): Adjust.
12976 (fprint_target_auxv): Adjust.
12977 * avr-tdep.c (avr_io_reg_read_command): Adjust.
12978 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
12979 (linux_make_corefile_notes): Adjust.
12980 * osdata.c (get_osdata): Adjust.
12981 * remote.c (remote_get_threads_with_qxfer): Adjust.
12982 (remote_memory_map): Adjust.
12983 (remote_traceframe_info): Adjust.
12984 (btrace_read_config): Adjust.
12985 (remote_read_btrace): Adjust.
12986 (remote_pid_to_exec_file): Adjust.
12987 * solib-aix.c (solib_aix_get_library_list): Adjust.
12988 * solib-dsbt.c (decode_loadmap): Don't free buf.
12989 (dsbt_get_initial_loadmaps): Adjust.
12990 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
12991 * solib-target.c (solib_target_current_sos): Adjust.
12992 * tracepoint.c (sdata_make_value): Adjust.
12993 * xml-support.c (xinclude_start_include): Adjust.
12994 (xml_fetch_content_from_file): Adjust.
12995 * xml-support.h (xml_fetch_another): Change return type.
12996 (xml_fetch_content_from_file): Change return type.
12997 * xml-syscall.c (xml_init_syscalls_info): Adjust.
12998 * xml-tdesc.c (file_read_description_xml): Adjust.
12999 (fetch_available_features_from_target): Change return type.
13000 (target_fetch_description_xml): Adjust.
13001 (target_read_description_xml): Adjust.
13002
13003 2018-04-06 Tom Tromey <tom@tromey.com>
13004
13005 * value.c (~value): Update.
13006 (struct value) <contents>: Now unique_xmalloc_ptr.
13007 (value_contents_bits_eq, allocate_value_contents)
13008 (value_contents_raw, value_contents_all_raw)
13009 (value_contents_for_printing, value_contents_for_printing_const)
13010 (set_value_enclosing_type): Update.
13011
13012 2018-04-06 Tom Tromey <tom@tromey.com>
13013
13014 * value.c (range_s): Remove typedef, VEC.
13015 (struct range): Add operator<.
13016 (range_lessthan): Remove.
13017 (ranges_contain): Change type.
13018 (~value): Update.
13019 (struct value) <unavailable, optimized_out>: Now std::vector.
13020 (value_entirely_available)
13021 (value_entirely_covered_by_range_vector)
13022 (value_entirely_unavailable, value_entirely_optimized_out):
13023 Update.
13024 (insert_into_bit_range_vector): Change argument type.
13025 (find_first_range_overlap): Likewise.
13026 (struct ranges_and_idx, value_contents_bits_eq)
13027 (require_not_optimized_out, require_available): Update.
13028 (ranges_copy_adjusted): Change argument types.
13029 (value_optimized_out, value_copy, value_fetch_lazy): Update.
13030
13031 2018-04-06 Tom Tromey <tom@tromey.com>
13032
13033 * value.c (~value): Update.
13034 (struct value) <parent>: Now a value_ref_ptr.
13035 (value_parent, set_value_parent, value_address, value_copy):
13036 Update.
13037
13038 2018-04-06 Tom Tromey <tom@tromey.com>
13039
13040 * value.c (struct value): Add constructor, destructor, and member
13041 initializers.
13042 (allocate_value_lazy, value_decref): Update.
13043
13044 2018-04-06 Tom Tromey <tom@tromey.com>
13045
13046 * value.c (struct value) <released, next>: Remove.
13047 (all_values): Now a std::vector.
13048 (allocate_value_lazy): Update.
13049 (value_next): Remove.
13050 (value_mark, value_free_to_mark, release_value)
13051 (value_release_to_mark): Update.
13052
13053 2018-04-06 Tom Tromey <tom@tromey.com>
13054
13055 * value.h (fetch_subexp_value, value_release_to_mark): Update.
13056 (free_value_chain): Remove.
13057 * value.c (free_value_chain): Remove.
13058 (value_release_to_mark): Return a std::vector.
13059 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
13060 std::vector.
13061 (check_condition): Update.
13062 * eval.c (fetch_subexp_value): Change "val_chain" to a
13063 std::vector.
13064 * breakpoint.c (update_watchpoint): Update.
13065 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
13066
13067 2018-04-06 Tom Tromey <tom@tromey.com>
13068
13069 * value.h (free_all_values): Remove.
13070 * value.c (free_all_values): Remove.
13071
13072 2018-04-06 Tom Tromey <tom@tromey.com>
13073
13074 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
13075 (value_history_chain, value_history_count): Remove.
13076 (value_history): New global.
13077 (record_latest_value, access_value_history, show_values)
13078 (preserve_values): Update.
13079
13080 2018-04-06 Tom Tromey <tom@tromey.com>
13081
13082 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
13083 * varobj.c (varobj_set_display_format, varobj_set_value)
13084 (install_default_visualizer, construct_visualizer)
13085 (install_new_value, ~varobj, varobj_get_value_type)
13086 (my_value_of_variable, varobj_editable_p): Update.
13087 * c-varobj.c (c_describe_child, c_value_of_variable)
13088 (cplus_number_of_children, cplus_describe_child): Update.
13089 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
13090 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
13091 (ada_value_of_variable, ada_value_is_changeable_p): Update.
13092
13093 2018-04-06 Tom Tromey <tom@tromey.com>
13094
13095 * printcmd.c (last_examine_address): Change type to
13096 value_ref_ptr.
13097 (do_examine, x_command): Update.
13098
13099 2018-04-06 Tom Tromey <tom@tromey.com>
13100
13101 * value.c (release_value): Update.
13102 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
13103 (struct bpstats) <val>: Now a value_ref_ptr.
13104 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
13105 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
13106 (~watchpoint, print_it_watchpoint, watch_command_1)
13107 (invalidate_bp_value_on_memory_change): Update.
13108
13109 2018-04-06 Tom Tromey <tom@tromey.com>
13110
13111 * varobj.c (varobj_clear_saved_item)
13112 (update_dynamic_varobj_children, install_new_value, ~varobj):
13113 Update.
13114 * value.h (value_incref): Move declaration earlier.
13115 (value_decref): Rename from value_free.
13116 (struct value_ref_policy): New.
13117 (value_ref_ptr): New typedef.
13118 (struct value_deleter): Remove.
13119 (gdb_value_up): Remove typedef.
13120 (release_value): Change return type.
13121 (release_value_or_incref): Remove.
13122 * value.c (set_value_parent): Update.
13123 (value_incref): Change return type.
13124 (value_decref): Rename from value_free.
13125 (value_free_to_mark, free_all_values, free_value_chain): Update.
13126 (release_value): Return value_ref_ptr.
13127 (release_value_or_incref): Remove.
13128 (record_latest_value, set_internalvar, clear_internalvar):
13129 Update.
13130 * stack.c (info_frame_command): Don't call value_free.
13131 * python/py-value.c (valpy_dealloc, valpy_new)
13132 (value_to_value_object): Update.
13133 * printcmd.c (do_examine): Update.
13134 * opencl-lang.c (lval_func_free_closure): Update.
13135 * mi/mi-main.c (register_changed_p): Don't call value_free.
13136 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
13137 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
13138 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
13139 value_free.
13140 * guile/scm-value.c (vlscm_free_value_smob)
13141 (vlscm_scm_from_value): Update.
13142 * frame.c (frame_register_unwind, frame_unwind_register_signed)
13143 (frame_unwind_register_unsigned, get_frame_register_bytes)
13144 (put_frame_register_bytes): Don't call value_free.
13145 * findvar.c (address_from_register): Don't call value_free.
13146 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
13147 * dwarf2loc.c (entry_data_value_free_closure)
13148 (value_of_dwarf_reg_entry, free_pieced_value_closure)
13149 (dwarf2_evaluate_loc_desc_full): Update.
13150 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
13151 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
13152 (~watchpoint, watch_command_1)
13153 (invalidate_bp_value_on_memory_change): Update.
13154 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
13155
13156 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
13157
13158 PR gdb/23022
13159 * warning.m4: Add -Wno-error=deprecated-register.
13160 * configure: Re-generate.
13161
13162 2018-04-05 Tom Tromey <tom@tromey.com>
13163
13164 * linespec.h: Remove include of "vec.h".
13165
13166 2018-04-05 Tom Tromey <tom@tromey.com>
13167
13168 * linespec.c (typep): Remove typedef.
13169 (find_methods, find_superclass_methods): Take a std::vector.
13170 (find_method): Use std::vector.
13171
13172 2018-04-05 Tom Tromey <tom@tromey.com>
13173
13174 * utils.c (compare_strings): Remove.
13175 * utils.h (compare_strings): Remove.
13176 * objc-lang.h (find_imps): Update.
13177 * objc-lang.c (find_methods): Take a std::vector.
13178 (uniquify_strings, find_imps): Likewise.
13179 * linespec.c (find_methods): Take a std::vector.
13180 (decode_objc): Use std::vector.
13181 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
13182 a std::vector.
13183 (find_method, find_function_symbols): Use std::vector.
13184
13185 2018-04-05 Tom Tromey <tom@tromey.com>
13186
13187 * completer.c (completion_tracker::completion_tracker): Remove
13188 cast.
13189 (completion_tracker::discard_completions): Likewise.
13190 * breakpoint.c (ambiguous_names_p): Remove cast.
13191 * ada-lang.c (_initialize_ada_language): Remove cast.
13192 * utils.h (streq): Update.
13193 (streq_hash): Add new declaration.
13194 * utils.c (streq): Return bool.
13195 (streq_hash): New function.
13196
13197 2018-04-05 Tom Tromey <tom@tromey.com>
13198
13199 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
13200 Remove a string copy.
13201
13202 2018-04-05 Tom Tromey <tom@tromey.com>
13203
13204 * linespec.c (filter_results): Use std::vector.
13205 (decode_line_2, decode_line_full): Update.
13206
13207 2018-04-05 Tom Tromey <tom@tromey.com>
13208
13209 * linespec.c (canonical_to_fullform): Return std::string.
13210 (filter_results): Update.
13211 (struct decode_line_2_item): Add constructor.
13212 <fullform, displayform>: Now std::string.
13213 (decode_line_2_compare_items): Now a std::sort comparator.
13214 (decode_line_2): Update.
13215
13216 2018-04-05 Tom Tromey <tom@tromey.com>
13217
13218 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
13219 (unexpected_linespec_error): Update.
13220 (linespec_parse_basic, parse_linespec): Update.
13221
13222 2018-04-05 Tom Tromey <tom@tromey.com>
13223
13224 * linespec.c (linespec_parse_basic): Reindent.
13225
13226 2018-04-05 Tom Tromey <tom@tromey.com>
13227
13228 * minsyms.h (iterate_over_minimal_symbols): Update.
13229 * minsyms.c (iterate_over_minimal_symbols): Take a
13230 gdb::function_view.
13231 * linespec.c (struct collect_minsyms): Remove.
13232 (compare_msyms): Now a std::sort comparator.
13233 (add_minsym): Add parameters.
13234 (search_minsyms_for_name): Update. Use std::vector.
13235
13236 2018-04-03 Tom Tromey <tom@tromey.com>
13237
13238 * mipsread.c (read_alphacoff_dynamic_symtab): Use
13239 gdb::byte_vector.
13240
13241 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
13242
13243 * MAINTAINERS (Write After Approval): Add Weimin Pan.
13244
13245 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
13246
13247 PR gdb/16959
13248 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
13249 printing static type.
13250
13251 2018-04-01 Tom Tromey <tom@tromey.com>
13252
13253 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
13254 (rs6000_xfer_shared_libraries): Update.
13255
13256 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13257
13258 * common/gdb_vecs.h (char_ptr): Remove.
13259 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
13260
13261 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
13262
13263 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
13264 with std::vector.
13265 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
13266
13267 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
13268
13269 * tracepoint.h (struct uploaded_tp): Initialize fields.
13270 <actions, step_actions, cmd_strings>: Change type to
13271 std::vector<char *>.
13272 * tracepoint.c (get_uploaded_tp): Allocate with new.
13273 (free_uploaded_tps): Free with delete.
13274 (parse_tracepoint_definition): Adjust to std::vector change.
13275 * breakpoint.c (read_uploaded_action): Likewise.
13276 (create_tracepoint_from_upload): Likewise.
13277 * ctf.c (ctf_write_uploaded_tp): Likewise.
13278 (SET_ARRAY_FIELD): Likewise.
13279 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
13280
13281 2018-03-30 Tom Tromey <tom@tromey.com>
13282
13283 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
13284 std::unique_ptr.
13285 (svr4_keep_data_in_core): Update.
13286 (svr4_read_so_list): Update.
13287
13288 2018-03-30 Tom Tromey <tom@tromey.com>
13289
13290 * windows-nat.c (handle_output_debug_string, handle_exception):
13291 Update.
13292 * target.h (target_read_string): Update.
13293 * target.c (target_read_string): Change "string" to
13294 unique_xmalloc_ptr.
13295 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
13296 Update.
13297 * solib-frv.c (frv_current_sos): Update.
13298 * solib-dsbt.c (dsbt_current_sos): Update.
13299 * solib-darwin.c (darwin_current_sos): Update.
13300 * linux-thread-db.c (inferior_has_bug): Update.
13301 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
13302 Update. Remove alloca.
13303 * ada-lang.c (ada_main_name): Update.
13304
13305 2018-03-30 Tom Tromey <tom@tromey.com>
13306
13307 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
13308 (struct dwo_file_deleter): New.
13309 (dwo_file_up): New typedef.
13310 (open_and_init_dwo_file): Use dwo_file_up.
13311 (free_dwo_file_cleanup): Remove.
13312
13313 2018-03-30 Tom Tromey <tom@tromey.com>
13314
13315 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
13316 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
13317
13318 2018-03-30 Tom Tromey <tom@tromey.com>
13319
13320 * dwarf2read.c (class free_cached_comp_units): New class.
13321 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
13322 (free_cached_comp_units): Remove function.
13323
13324 2018-03-30 Tom Tromey <tom@tromey.com>
13325
13326 * utils.h (make_cleanup_unpush_target): Remove.
13327 * inf-ptrace.c (struct target_unpusher): New.
13328 (target_unpush_up) New typedef.
13329 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
13330 target_unpush_up.
13331 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
13332
13333 2018-03-27 Tom Tromey <tom@tromey.com>
13334
13335 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
13336
13337 2018-03-27 Pedro Alves <palves@redhat.com>
13338 Tom Tromey <tom@tromey.com>
13339
13340 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
13341 destructor. Now a class.
13342 (gdb_readline_wrapper_cleanup): Remove function.
13343 (gdb_readline_wrapper): Remove cleanups.
13344
13345 2018-03-27 Tom Tromey <tom@tromey.com>
13346
13347 * typeprint.h (struct type_print_options) <local_typedefs,
13348 global_typedefs>: Remove "struct" keyword.
13349 (class typedef_hash_table): New class.
13350 (recursively_update_typedef_hash, add_template_parameters)
13351 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
13352 (find_typedef_in_hash): Don't declare.
13353 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
13354 (typedef_hash_table::recursively_update): Rename from
13355 recursively_update_typedef_hash. Now a member.
13356 (typedef_hash_table::add_template_parameters): Rename from
13357 add_template_parameters. Now a member.
13358 (typedef_hash_table::typedef_hash_table): Now a constructor;
13359 rename from create_typedef_hash.
13360 (typedef_hash_table::~typedef_hash_table): Now a destructor;
13361 rename from free_typedef_hash.
13362 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
13363 (do_free_global_table): Remove.
13364 (typedef_hash_table::typedef_hash_table): New constructor; renamed
13365 from copy_type_recursive.
13366 (create_global_typedef_table): Remove.
13367 (typedef_hash_table::find_global_typedef): Now a member of
13368 typedef_hash_table.
13369 (typedef_hash_table::find_typedef): Rename from
13370 find_typedef_in_hash; now a member.
13371 (whatis_exp): Update.
13372 * extension.h (struct ext_lang_type_printers): Add constructor and
13373 destructor.
13374 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
13375 declare.
13376 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
13377 Now a constructor; rename from start_ext_lang_type_printers.
13378 (ext_lang_type_printers): Now a destructor; rename from
13379 free_ext_lang_type_printers.
13380 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
13381 Update.
13382 (c_type_print_base_struct_union): Update. Remove cleanups.
13383
13384 2018-03-27 Tom Tromey <tom@tromey.com>
13385
13386 * dwarf-index-write.c: Include <cmath>.
13387
13388 2018-03-27 Joel Brobecker <brobecker@adacore.com>
13389
13390 * NEWS: Add entry describing new "set|show varsize-limit" command.
13391 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
13392 command.
13393 * printcmd.c (_initialize_printcmd): Add "set var" alias of
13394 "set variable".
13395
13396 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
13397
13398 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
13399 dwarf-index-write.c
13400 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
13401 * dwarf-index-common.c: New file.
13402 * dwarf-index-common.h: New file.
13403 * dwarf-index-write.c: New file.
13404 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
13405 (struct dwarf2_section_info): Move from here.
13406 (dwarf2_section_info_def): Likewise.
13407 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
13408 (offset_type): Likewise.
13409 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
13410 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
13411 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
13412 (byte_swap): Likewise.
13413 (MAYBE_SWAP): Likewise.
13414 (dwarf2_per_cu_ptr): Likewise.
13415 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
13416 (struct tu_stats): Likewise.
13417 (struct dwarf2_per_objfile): Likewise.
13418 (struct dwarf2_per_cu_data): Likewise.
13419 (struct signatured_type): Likewise.
13420 (sig_type_ptr): Likewise.
13421 (DEF_VEC_P (sig_type_ptr)): Likewise.
13422 (INDEX4_SUFFIX): Likewise.
13423 (INDEX5_SUFFIX): Likewise.
13424 (DEBUG_STR_SUFFIX): Likewise.
13425 (dwarf2_read_section): Make non-static.
13426 (mapped_index_string_hash): Move from here.
13427 (dwarf5_djb_hash): Likewise.
13428 (file_write): Likewise.
13429 (class data_buf): Likewise.
13430 (struct symtab_index_entry): Likewise.
13431 (struct mapped_symtab): Likewise.
13432 (find_slot): Likewise.
13433 (hash_expand): Likewise.
13434 (add_index_entry): Likewise.
13435 (uniquify_cu_indices): Likewise.
13436 (class c_str_view): Likewise.
13437 (class c_str_view_hasher): Likewise.
13438 (class vector_hasher): Likewise.
13439 (write_hash_table): Likewise.
13440 (psym_index_map): Likewise.
13441 (struct addrmap_index_data): Likewise.
13442 (add_address_entry): Likewise.
13443 (add_address_entry_worker): Likewise.
13444 (write_address_map): Likewise.
13445 (symbol_kind): Likewise.
13446 (write_psymbols): Likewise.
13447 (struct signatured_type_index_data): Likewise.
13448 (write_one_signatured_type): Likewise.
13449 (recursively_count_psymbols): Likewise.
13450 (recursively_write_psymbols): Likewise.
13451 (class debug_names): Likewise.
13452 (check_dwarf64_offsets): Likewise.
13453 (psyms_seen_size): Likewise.
13454 (write_gdbindex): Likewise.
13455 (write_debug_names): Likewise.
13456 (assert_file_size): Likewise.
13457 (write_psymtabs_to_index): Likewise.
13458 (save_gdb_index_command): Likewise.
13459 (_initialize_dwarf2_read): Don't register the "save gdb-index"
13460 command.
13461 * dwarf2read.h: New file.
13462
13463 2018-03-27 Joel Brobecker <brobecker@adacore.com>
13464
13465 PR gdb/22670
13466 * dwarf2read.c (dwarf2_physname): Do not return the demangled
13467 symbol name if the CU's language stores symbol names in linkage
13468 format.
13469 * language.h (struct language_defn)
13470 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
13471 all instances of this struct.
13472
13473 2018-03-26 Tom Tromey <tom@tromey.com>
13474
13475 * stack.c (backtrace_command_1): Remove verbose code.
13476
13477 2018-03-26 Tom Tromey <tom@tromey.com>
13478
13479 * python/py-framefilter.c (py_print_type): Don't catch
13480 exceptions. Return void.
13481 (py_print_value): Likewise.
13482 (py_print_single_arg): Likewise.
13483 (enumerate_args): Don't catch exceptions.
13484 (py_print_args): Likewise.
13485 (py_print_frame): Likewise.
13486 (gdbpy_apply_frame_filter): Catch exceptions here.
13487
13488 2018-03-26 Tom Tromey <tom@tromey.com>
13489
13490 * stack.c (_initialize_stack): Remove trailing newlines from help
13491 text. Add "Usage" line to "backtrace" help.
13492
13493 2018-03-26 Tom Tromey <tom@tromey.com>
13494
13495 PR python/16486:
13496 * python/py-framefilter.c (py_print_args): Call wrap_hint.
13497
13498 2018-03-26 Tom Tromey <tom@tromey.com>
13499
13500 * python/py-framefilter.c (py_print_single_arg): Return
13501 EXT_LANG_BT_ERROR from catch.
13502
13503 2018-03-26 Tom Tromey <tom@tromey.com>
13504
13505 PR backtrace/15584:
13506 * stack.c (backtrace_command_1): Move some code into no-filters
13507 "if".
13508
13509 2018-03-26 Tom Tromey <tom@tromey.com>
13510
13511 * python/py-framefilter.c (throw_quit_or_print_exception): New
13512 function.
13513 (gdbpy_apply_frame_filter): Use it.
13514
13515 2018-03-26 Tom Tromey <tom@tromey.com>
13516
13517 PR cli/17716:
13518 * python/py-framefilter.c (py_print_type, py_print_value)
13519 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
13520 RETURN_MASK_ERROR.
13521
13522 2018-03-26 Tom Tromey <tom@tromey.com>
13523
13524 * python/py-framefilter.c (enumerate_args): Use
13525 gdb::unique_xmalloc_ptr.
13526
13527 2018-03-26 Tom Tromey <tom@tromey.com>
13528
13529 * python/py-framefilter.c (py_print_frame): Return
13530 EXT_LANG_BT_OK.
13531 (gdbpy_apply_frame_filter): Update comment.
13532 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
13533 Remove.
13534 <EXT_LANG_BT_NO_FILTERS>: Change value.
13535
13536 2018-03-26 Tom Tromey <tom@tromey.com>
13537
13538 PR backtrace/15582:
13539 * stack.c (backtrace_command): Parse "hide" argument.
13540 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
13541 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
13542 constant.
13543
13544 2018-03-26 Tom Tromey <tom@tromey.com>
13545
13546 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
13547 add "flags".
13548 (backtrace_command): Remove "fulltrace", add "flags".
13549
13550 2018-03-26 Tom Tromey <tom@tromey.com>
13551
13552 * stack.c (backtrace_command): Rewrite command line parsing.
13553
13554 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
13555
13556 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
13557
13558 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
13559
13560 * filename-seen-cache.h: Add include guard.
13561
13562 2018-03-26 Keith Seitz <keiths@redhat.com>
13563
13564 * symfile.c (place_section): Remove "struct" from section_addr_info
13565 in comment.
13566 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
13567 "struct" keyword from section_addr_info.
13568
13569 2018-03-26 Alan Hayward <alan.hayward@arm.com>
13570
13571 * regformats/regdef.h (reg): Add constructors.
13572
13573 2018-03-25 Pedro Alves <palves@redhat.com>
13574
13575 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
13576 if then/else bodies in var_func_name extraction.
13577
13578 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
13579
13580 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
13581 lookup_minimal_symbol() to find symbol entry.
13582 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
13583
13584 2018-03-23 Keith Seitz <keiths@redhat.com>
13585
13586 PR c++/22968
13587 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
13588 nested type definitions for C++, too.
13589
13590 2018-03-23 Tom Tromey <tom@tromey.com>
13591
13592 * machoread.c (struct oso_el): Add a constructor. Don't define as
13593 a typedef.
13594 (macho_register_oso): Remove.
13595 (macho_symtab_read): Take a std::vector.
13596 (oso_el_compare_name): Now a std::sort comparator.
13597 (macho_symfile_read_all_oso): Take a std::vector.
13598 (macho_symfile_read): Use std::vector. Remove cleanups.
13599
13600 2018-03-22 Tom Tromey <tom@tromey.com>
13601
13602 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
13603 (record_full_goto_bookmark): Use std::string.
13604
13605 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13606
13607 PR tdep/18295
13608 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
13609 a single mask.
13610
13611 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13612
13613 * rs6000-tdep.c (store_insn_p): New function.
13614 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
13615 and cr_reg to their unshifted values. Use store_insn_p to
13616 match LR saves using either R1 or fdata->alloca_reg. Use
13617 store_insn_p to match CR saves. Set alloca_reg_offset
13618 when alloca_reg and framep are set. Remove lr_reg shift
13619 when assigning to fdata->lr_register.
13620
13621 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
13622
13623 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
13624 command line args instead of emitting a warning.
13625
13626 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13627
13628 * tracepoint.h (struct static_tracepoint_marker): Initialize
13629 fields, define default constructor, move constructor and move
13630 assignment, disable the rest.
13631 <str_id, extra>: Make std::string.
13632 (release_static_tracepoint_marker): Remove.
13633 (free_current_marker): Remove.
13634 * tracepoint.c (free_current_marker): Remove.
13635 (parse_static_tracepoint_marker_definition): Adjust to
13636 std::string, use new hex2str overload.
13637 (release_static_tracepoint_marker): Remove.
13638 (print_one_static_tracepoint_marker): Get marker by reference
13639 and adjust to std::string.
13640 (info_static_tracepoint_markers_command): Adjust to std::vector
13641 changes
13642 * target.h (static_tracepoint_marker_p): Remove typedef.
13643 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
13644 (struct target_ops) <to_static_tracepoint_marker_at>: Return
13645 bool.
13646 <to_static_tracepoint_markers_by_strid>: Return std::vector.
13647 * target-debug.h
13648 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
13649 (target_debug_print_std_vector_static_tracepoint_marker): New.
13650 (target_debug_print_struct_static_tracepoint_marker_p): Rename
13651 to...
13652 (target_debug_print_static_tracepoint_marker_p): ... this.
13653 * target-delegates.c: Re-generate.
13654 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
13655 Make std::string.
13656 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
13657 (decode_static_tracepoint_spec): Adjust to std::vector.
13658 (tracepoint_print_one_detail): Adjust to std::string.
13659 (strace_marker_decode_location): Adjust to std::string.
13660 (update_static_tracepoint): Adjust to std::string, remove call
13661 to release_static_tracepoint_marker.
13662 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
13663 Adjust to std::vector.
13664 * remote.c (remote_static_tracepoint_marker_at): Return bool.
13665 (remote_static_tracepoint_markers_by_strid): Adjust to
13666 std::vector.
13667 * common/rsp-low.h (hex2str): New overload with explicit count
13668 of bytes.
13669 * common/rsp-low.c (hex2str): New overload with explicit count
13670 of bytes.
13671 * unittests/rsp-low-selftests.c (test_hex2str): New function.
13672 (_initialize_rsp_low_selftests): Add test_hex2str test.
13673 * unittests/tracepoint-selftests.c
13674 (test_parse_static_tracepoint_marker_definition): Adjust to
13675 std::string.
13676
13677 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13678
13679 * tracepoint.c (parse_static_tracepoint_marker_definition):
13680 Consider case where the definition is followed by more
13681 definitions.
13682 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13683 tracepoint-selftests.c.
13684 * unittests/tracepoint-selftests.c: New.
13685
13686 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13687
13688 * MAINTAINERS (Write After Approval): Add Pedro Franco de
13689 Carvalho.
13690
13691 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13692
13693 * symtab.c (find_pc_sect_line): fixed indentation.
13694
13695 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13696
13697 * symtab.c (find_pc_sect_line): now uses binary search.
13698
13699 2018-03-19 Tom Tromey <tom@tromey.com>
13700
13701 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
13702 "IDENT" production.
13703
13704 2018-03-19 Pedro Alves <palves@redhat.com>
13705 Tom Tromey <tom@tromey.com>
13706
13707 * unittests/observable-selftests.c: New file.
13708 * common/observable.h: New file.
13709 * observable.h: New file.
13710 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
13711 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
13712 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
13713 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
13714 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
13715 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
13716 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
13717 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
13718 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
13719 python/py-breakpoint.c, python/py-finishbreakpoint.c,
13720 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
13721 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
13722 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
13723 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
13724 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
13725 tui/tui-interp.c, valops.c: Update all users.
13726 * tui/tui-hooks.c (tui_bp_created_observer)
13727 (tui_bp_deleted_observer, tui_bp_modified_observer)
13728 (tui_inferior_exit_observer, tui_before_prompt_observer)
13729 (tui_normal_stop_observer, tui_register_changed_observer):
13730 Remove.
13731 (tui_observers_token): New global.
13732 (attach_or_detach, tui_attach_detach_observers): New functions.
13733 (tui_install_hooks, tui_remove_hooks): Use
13734 tui_attach_detach_observers.
13735 * record-btrace.c (record_btrace_thread_observer): Remove.
13736 (record_btrace_thread_observer_token): New global.
13737 * observer.sh: Remove.
13738 * observer.c: Rename to observable.c.
13739 * observable.c (namespace gdb_observers): Define new objects.
13740 (observer_debug): Move into gdb_observers namespace.
13741 (struct observer, struct observer_list, xalloc_observer_list_node)
13742 (xfree_observer_list_node, generic_observer_attach)
13743 (generic_observer_detach, generic_observer_notify): Remove.
13744 (_initialize_observer): Update.
13745 Don't include observer.inc.
13746 * Makefile.in (generated_files): Remove observer.h, observer.inc.
13747 (clean mostlyclean): Likewise.
13748 (observer.h, observer.inc): Remove targets.
13749 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
13750 (COMMON_SFILES): Use observable.c, not observer.c.
13751 * .gitignore: Remove observer.h.
13752
13753 2018-03-18 Tom Tromey <tom@tromey.com>
13754
13755 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
13756 gdb::def_vector.
13757 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
13758
13759 2018-03-17 Tom Tromey <tom@tromey.com>
13760
13761 * auto-load.c (auto_load_objfile_script_1): Use std::string.
13762
13763 2018-03-17 Tom Tromey <tom@tromey.com>
13764
13765 * target.c (class scoped_target_fd): New.
13766 (target_fileio_close_cleanup): Remove.
13767 (target_fileio_read_alloc_1): Use scoped_target_fd.
13768
13769 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
13770
13771 * silent-rules.mk: New.
13772 * Makefile.in: Include silent-rules.mk
13773 (srcdir, VPATH, top_srcdir): Move up.
13774 (COMPILE): Add ECHO_CXX.
13775 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
13776 (init.c): Add ECHO_INIT_C.
13777 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
13778 (version.c): Add ECHO_GEN.
13779 (printcmd.o): Add ECHO_CXX.
13780 (target-float.o): Add ECHO_CXX.
13781 (ada-exp.o): Add ECHO_CXX.
13782 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
13783 (insight$(EXEEXT)): Add ECHO_CXXLD.
13784 * gnulib/configure.ac: Add AM_SILENT_RULES.
13785 * gnulib/aclocal.m4: Re-generate.
13786 * gnulib/configure: Re-generate.
13787 * gnulib/import/Makefile.in: Re-generate.
13788
13789 2018-03-16 Tom Tromey <tom@tromey.com>
13790
13791 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
13792 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
13793 * utils.c (do_free_section_addr_info)
13794 (make_cleanup_free_section_addr_info): Remove.
13795 * symfile.h (struct other_sections): Add constructor.
13796 (struct section_addr_info): Remove.
13797 (section_addr_info): New typedef.
13798 (struct sym_fns) <sym_offsets>: Change type of parameter.
13799 (build_section_addr_info_from_objfile)
13800 (relative_addr_info_to_section_offsets, addr_info_make_relative)
13801 (default_symfile_offsets, symbol_file_add)
13802 (symbol_file_add_from_bfd)
13803 (build_section_addr_info_from_section_table): Update.
13804 (alloc_section_addr_info, free_section_addr_info): Don't declare.
13805 * symfile.c (alloc_section_addr_info): Remove.
13806 (build_section_addr_info_from_section_table): Change return type.
13807 Update.
13808 (build_section_addr_info_from_bfd)
13809 (build_section_addr_info_from_objfile): Likewise.
13810 (free_section_addr_info): Remove.
13811 (relative_addr_info_to_section_offsets): Change type of "addrs".
13812 (addrs_section_compar): Now a std::sort comparator.
13813 (addrs_section_sort): Change return type.
13814 (addr_info_make_relative): Change type of "addrs". Update.
13815 (default_symfile_offsets, syms_from_objfile_1)
13816 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
13817 (symbol_file_add_separate): Update.
13818 (symbol_file_add): Change type of "addrs". Update.
13819 (add_symbol_file_command): Update. Remove cleanups.
13820 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
13821 cleanups.
13822 * symfile-debug.c (debug_sym_offsets): Change type of "info".
13823 * solib.c (solib_read_symbols): Update.
13824 * objfiles.c (objfile_relocate): Update. Remove cleanups.
13825 * machoread.c (macho_symfile_offsets): Update.
13826 * jit.c (jit_bfd_try_read_symtab): Update.
13827
13828 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
13829
13830 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13831 unittests/utils-selftests.c.
13832 * unittests/utils-selftests.c: New file.
13833
13834 2018-03-14 Tom Tromey <tom@tromey.com>
13835
13836 PR cli/14977:
13837 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
13838 for NULL.
13839
13840 2018-03-14 Tom Tromey <tom@tromey.com>
13841
13842 PR cli/19918:
13843 * printcmd.c (printf_pointer): Allow "-" in format.
13844
13845 2018-03-14 Tom Tromey <tom@tromey.com>
13846
13847 * printcmd.c (_initialize_printcmd): Add usage to printf.
13848
13849 2018-03-14 Yao Qi <qiyao@sourceware.org>
13850
13851 * MAINTAINERS: Update my email address.
13852
13853 2018-03-13 Tom Tromey <tom@tromey.com>
13854
13855 * machoread.c (macho_check_dsym): Change filenamep to a
13856 std::string*.
13857 (macho_symfile_read): Update.
13858 * symfile.c (load_command): Use std::string.
13859
13860 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
13861
13862 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
13863 to error message string.
13864 (riscv_register_name): Use xsnprintf instead of sprintf.
13865 (riscv_insn::fetch_instruction): Use gdb_assert instead of
13866 internal_error.
13867 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
13868 error.
13869 (riscv_push_dummy_call): Likewise.
13870
13871 2018-03-12 Tom Tromey <tom@tromey.com>
13872
13873 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
13874 Use gdb::byte_vector.
13875 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
13876
13877 2018-03-12 Yao Qi <yao.qi@linaro.org>
13878
13879 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
13880 parameter type to readable_regcache.
13881 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
13882 the declaration.
13883
13884 2018-03-11 Tom Tromey <tom@tromey.com>
13885
13886 * dwarf2read.c (struct nextfield): Add initializers.
13887 (struct nextfnfield): Remove.
13888 (struct fnfieldlist): Add initializers. Remove "length" and
13889 "head", use std::vector.
13890 (struct decl_field_list): Remove.
13891 (struct field_info): Add initializers.
13892 <fields, baseclasses>: Now std::vector.
13893 <nbaseclasses, nfnfields, typedef_field_list_count,
13894 nested_types_list_count>: Remove.
13895 (dwarf2_add_field, dwarf2_add_type_defn)
13896 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
13897 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
13898 (process_structure_scope): Update.
13899
13900 2018-03-11 Tom Tromey <tom@tromey.com>
13901
13902 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
13903 for use by std::sort.
13904 (build_type_psymtabs_1): Use std::vector.
13905
13906 2018-03-09 Eli Zaretskii <eliz@gnu.org>
13907
13908 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
13909 and LIBMPFR in the printed configuration.
13910
13911 2018-03-08 Tom Tromey <tom@tromey.com>
13912
13913 * source.c (get_filename_and_charpos): Use scoped_fd.
13914 * nto-procfs.c (procfs_open_1): Use scoped_fd.
13915 (procfs_pidlist): Likewise.
13916 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
13917 (iterate_over_mappings): Likewise.
13918
13919 2018-03-08 Tom Tromey <tom@tromey.com>
13920
13921 * infcall.c (struct call_return_meta_info)
13922 <stack_temporaries_enabled>: Remove.
13923 (get_call_return_value, call_function_by_hand_dummy): Update.
13924 * thread.c (disable_thread_stack_temporaries): Remove.
13925 (enable_thread_stack_temporaries): Remove.
13926 (thread_stack_temporaries_enabled_p): Return bool.
13927 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
13928 (get_last_thread_stack_temporary): Update.
13929 * eval.c (evaluate_subexp): Update.
13930 * gdbthread.h (class enable_thread_stack_temporaries): Now a
13931 class, not a function.
13932 (value_ptr, value_vec): Remove typedefs.
13933 (class thread_info) <stack_temporaries_enabled>: Now bool.
13934 <stack_temporaries>: Now a std::vector.
13935 (thread_stack_temporaries_enabled_p)
13936 (value_in_thread_stack_temporaries): Return bool.
13937
13938 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
13939
13940 * remote.c (putpkt_binary): Fix omitted bytes reporting.
13941 (getpkt_or_notif_sane_1): Likewise.
13942
13943 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13944
13945 * build-id.c (build_id_to_debug_bfd): Use std::string.
13946
13947 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13948
13949 * build-id.c (find_separate_debug_file_by_buildid): Return
13950 std::string.
13951 * build-id.h (find_separate_debug_file_by_buildid): Return
13952 std::string.
13953 * coffread.c (coff_symfile_read): Adjust to std::string.
13954 * elfread.c (elf_symfile_read): Adjust to std::string.
13955 * symfile.c (separate_debug_file_exists): Change parameter to
13956 std::string.
13957 (find_separate_debug_file): Return std::string.
13958 (find_separate_debug_file_by_debuglink): Return std::string.
13959 * symfile.h (find_separate_debug_file_by_debuglink): Return
13960 std::string.
13961
13962 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13963
13964 * common/xml-utils.c (xml_escape_text): Move code to...
13965 (xml_escape_text_append): ... this new function.
13966 * common/xml-utils.h (xml_escape_text_append): New declaration.
13967 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
13968 New function.
13969 (_initialize_xml_utils): register test_xml_escape_text_append as
13970 a selftest.
13971
13972 2018-03-07 Alan Hayward <alan.hayward@arm.com>
13973
13974 * defs.h: Remove MAX_REGISTER_SIZE.
13975 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
13976 asserts.
13977 * python/py-unwind.c (pyuw_sniffer): Likewise.
13978
13979 2018-03-07 Tom Tromey <tom@tromey.com>
13980
13981 * linux-tdep.c (linux_info_proc): Update.
13982 * target.h (struct target_ops) <to_fileio_readlink>: Return
13983 optional<string>.
13984 (target_fileio_readlink): Return optional<string>.
13985 * remote.c (remote_hostio_readlink): Return optional<string>.
13986 * inf-child.c (inf_child_fileio_readlink): Return
13987 optional<string>.
13988 * target.c (target_fileio_readlink): Return optional<string>.
13989
13990 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13991
13992 * regcache.c (cooked_read_test): Add riscv to the list of
13993 architectures that have a save_reggroup.
13994
13995 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
13996
13997 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
13998 value is not a dynamic class object.
13999
14000 2018-03-06 Tom Tromey <tom@tromey.com>
14001
14002 * rust-exp.y: Formatting fixes.
14003
14004 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14005
14006 * riscv-tdep.c (riscv_register_name): Remove target description
14007 support.
14008 (riscv_gdbarch_init): Remove target description check.
14009
14010 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14011
14012 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
14013 comment.
14014 * riscv-tdep.h: Likewise.
14015
14016 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14017
14018 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
14019 (riscv_pseudo_register_write): Delete.
14020 (riscv_gdbarch_init): Remove all use of pseudo registers.
14021
14022 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14023
14024 * record-btrace.c (btrace_print_lines): Replace cleanup
14025 parameter with RAII equivalents.
14026 (btrace_insn_history): Replace cleanup with RAII equivalents.
14027 * ui-out.h (make_cleanup_ui_out_list_begin_end,
14028 make_cleanup_ui_out_tuple_begin_end): Remove.
14029 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
14030 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
14031 make_cleanup_ui_out_list_begin_end): Remove.
14032
14033 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14034
14035 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
14036 parameter types to std::vector. Use bool.
14037 (record_btrace_wait): Replace VEC(tp_t) with
14038 std::vector<thread_info *>.
14039 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
14040
14041 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14042
14043 * record-btrace.c (record_btrace_disable_callback): Remove.
14044 (struct scoped_btrace_disable): New.
14045 (record_btrace_open): Use scoped_btrace_disable.
14046
14047 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14048
14049 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
14050 reading values from registers.
14051
14052 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14053
14054 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
14055 where appropriate.
14056
14057 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14058
14059 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
14060 change parameter type. Use GDB's print functions, and use
14061 core_addr_to_string where appropriate.
14062 (riscv_push_dummy_call): Use core_addr_to_string where
14063 appropriate, update call to riscv_print_arg_location, and reindent
14064 a few lines.
14065 (riscv_return_value): Update call to riscv_print_arg_location.
14066
14067 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14068 Tim Newsome <tim@sifive.com>
14069 Albert Ou <a0u@eecs.berkeley.edu>
14070 Darius Rad <darius@bluespec.com>
14071
14072 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
14073 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
14074 (ALLDEPFILES): Add riscv-tdep.c
14075 * configure.tgt: Add riscv support.
14076 * riscv-tdep.c: New file.
14077 * riscv-tdep.h: New file.
14078 * NEWS: Mention new target.
14079 * MAINTAINERS: Add entry for riscv.
14080
14081 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14082
14083 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
14084 fields within aggregates.
14085
14086 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
14087
14088 * record-btrace.c (btrace_print_lines): Change type of flags to
14089 gdb_disassembly_flags.
14090
14091 2018-03-04 John Baldwin <jhb@FreeBSD.org>
14092
14093 * fbsd-nat.c: Include "inf-ptrace.h".
14094 (USE_SIGTRAP_SIGINFO): Conditionally define.
14095 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
14096 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
14097 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
14098 function.
14099 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
14100 Likewise.
14101 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
14102 Likewise.
14103 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
14104 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
14105 "supports_stopped_by_hw_breakpoint" target methods.
14106
14107 2018-03-04 John Baldwin <jhb@FreeBSD.org>
14108
14109 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
14110 * fbsd-nat.c (debug_fbsd_nat): New variable.
14111 (show_fbsd_nat_debug): New function.
14112 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
14113 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
14114
14115 2018-03-04 John Baldwin <jhb@FreeBSD.org>
14116
14117 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
14118 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
14119 prototype.
14120 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
14121 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
14122 method.
14123
14124 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14125
14126 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
14127 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
14128
14129 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14130
14131 * charset.c (struct charset_vector): New.
14132 (charsets): Change type to charset_vector.
14133 (find_charset_names): Adjust.
14134 (add_one): Adjust.
14135 (_initialize_charset): Adjust.
14136
14137 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14138
14139 * progspace.h (struct program_space) <deleted_solibs>: Change
14140 type to std::vector<std::string>.
14141 * progspace.c (clear_program_space_solib_cache): Adjust.
14142 * breakpoint.c (print_solib_event): Adjust.
14143 (check_status_catch_solib): Adjust.
14144 * solib.c (update_solib_list): Adjust.
14145 * ui-out.h (class ui_out) <field_string>: New overload.
14146 * ui-out.c (ui_out::field_string): New overload.
14147
14148 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14149
14150 * progspace.h (struct program_space): Add constructor and
14151 destructor, initialize fields.
14152 (add_program_space): Remove.
14153 * progspace.c (add_program_space): Rename to...
14154 (program_space::program_space): ... this.
14155 (release_program_space): Rename to...
14156 (program_space::~program_space): ... this.
14157 (delete_program_space): Use delete to delete program_space.
14158 (initialize_progspace): Use new to allocate program_space.
14159 * inferior.c (add_inferior_with_spaces): Likewise.
14160 (clone_inferior_command): Likewise.
14161 * infrun.c (follow_fork_inferior): Likewise.
14162 (handle_vfork_child_exec_or_exit): Likewise.
14163
14164 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14165
14166 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
14167 (delim_string_to_char_ptr_vec): Return std::vector of
14168 gdb::unique_xmalloc_ptr.
14169 (dirnames_to_char_ptr_vec_append): Take std::vector of
14170 gdb::unique_xmalloc_ptr.
14171 (dirnames_to_char_ptr_vec): Return std::vector of
14172 gdb::unique_xmalloc_ptr.
14173 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
14174 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
14175 (delim_string_to_char_ptr_vec): Return an std::vector of
14176 gdb::unique_xmalloc_ptr, adjust the code.
14177 (dirnames_to_char_ptr_vec_append): Take an std::vector of
14178 gdb::unique_xmalloc_ptr, adjust the code.
14179 (dirnames_to_char_ptr_vec): Return an std::vector of
14180 gdb::unique_xmalloc_ptr, adjust the code.
14181 * auto-load.c (auto_load_safe_path_vec): Change type to
14182 std::vector of gdb::unique_xmalloc_ptr.
14183 (auto_load_expand_dir_vars): Return an std::vector of
14184 gdb::unique_xmalloc_ptr, adjust the code.
14185 (auto_load_safe_path_vec_update): Adjust.
14186 (filename_is_in_auto_load_safe_path_vec): Adjust.
14187 (auto_load_objfile_script_1): Adjust.
14188 * build-id.c (build_id_to_debug_bfd): Adjust.
14189 * linux-thread-db.c (thread_db_load_search): Adjust.
14190 * source.c (add_path): Adjust.
14191 (openp): Adjust.
14192 * symfile.c (find_separate_debug_file): Adjust.
14193 * utils.c (do_free_char_ptr_vec): Remove.
14194 (make_cleanup_free_char_ptr_vec): Remove.
14195
14196 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
14197
14198 PR gdb/22907
14199 * common/pathstuff.c: Conditionally include "<windows.h>".
14200
14201 2018-03-01 Georg Sauthoff <mail@georg.so>
14202
14203 PR gdb/22888
14204 * gcore.in: Quote variables and switch interpreter to bash.
14205
14206 2018-03-01 Tom Tromey <tom@tromey.com>
14207
14208 * dwarf2read.c (alloc_discriminant_info): Fix default_index
14209 assertion. Add assertion for discriminant_index.
14210 (quirk_rust_enum): Use correct base type name in univariant case.
14211
14212 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
14213
14214 * record.c (get_call_history_modifiers): Return a
14215 record_print_flags.
14216 (cmd_record_call_history): Adjust.
14217 * record-btrace.c (record_btrace_call_history): Adjust.
14218 (record_btrace_call_history_range): Adjust.
14219 (record_btrace_call_history_from): Adjust.
14220 * target-debug.h (target_debug_print_record_print_flags): New.
14221 * target-delegates.c: Re-generate.
14222 * target.c (target_call_history): Change flags type.
14223 (target_call_history_from): Likewise.
14224 (target_call_history_range): Likewise.
14225 * target.h (struct target_ops) <target_call_history>: Likewise.
14226 (target_call_history_from): Likewise.
14227 (target_call_history_range): Likewise.
14228
14229 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
14230 Simon Marchi <simon.marchi@polymtl.ca>
14231
14232 * common/common-utils.c: Include "sys/stat.h".
14233 (is_regular_file): Move here from "source.c"; change return
14234 type to "bool".
14235 * common/common-utils.h (is_regular_file): New prototype.
14236 * common/pathstuff.c (contains_dir_separator): New function.
14237 * common/pathstuff.h (contains_dir_separator): New prototype.
14238 * source.c: Don't include "sys/stat.h".
14239 (is_regular_file): Move to "common/common-utils.c".
14240
14241 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
14242
14243 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
14244 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
14245 * auto-load.c: Include "common/pathstuff.h".
14246 * common/common-def.h (current_directory): Move here.
14247 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
14248 function.
14249 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
14250 prototype.
14251 * common/pathstuff.c: New file.
14252 * common/pathstuff.h: New file.
14253 * compile/compile.c: Include "common/pathstuff.h".
14254 * defs.h (current_directory): Move to "common/common-defs.h".
14255 * dwarf2read.c: Include "common/pathstuff.h".
14256 * exec.c: Likewise.
14257 * guile/scm-safe-call.c: Likewise.
14258 * linux-thread-db.c: Likewise.
14259 * main.c: Likewise.
14260 * nto-tdep.c: Likewise.
14261 * objfiles.c: Likewise.
14262 * source.c: Likewise.
14263 * symtab.c: Likewise.
14264 * utils.c: Include "common/pathstuff.h".
14265 (gdb_realpath): Move to "common/pathstuff.c".
14266 (gdb_realpath_keepfile): Likewise.
14267 (gdb_abspath): Likewise.
14268 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
14269 (gdb_realpath_keepfile): Likewise.
14270 (gdb_abspath): Likewise.
14271
14272 2018-02-28 John Baldwin <jhb@FreeBSD.org>
14273
14274 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
14275 wildcard process pid for super_resume for kernels with a
14276 specific bug.
14277
14278 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
14279
14280 * compile/compile.c (get_args): Add additional comments
14281 explaining function.
14282
14283 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
14284 Tom Tromey <tom@tromey.com>
14285
14286 * target.h (memory_write_request_s): Remove typedef. Don't define
14287 VEC.
14288 (target_write_memory_blocks): Change argument to std::vector.
14289 (struct memory_write_request): Add constructor.
14290 * target-memory.c (compare_block_starting_address): Return bool.
14291 Change argument types.
14292 (claim_memory): Change arguments to use std::vector.
14293 (split_regular_and_flash_blocks, blocks_to_erase)
14294 (compute_garbled_blocks): Likewise.
14295 (cleanup_request_data, cleanup_write_requests_vector): Remove.
14296 (target_write_memory_blocks): Change argument to std::vector.
14297 * symfile.c (struct load_section_data): Add constructor and
14298 destructor. Use std::vector for "requests".
14299 (struct load_progress_data): Add initializers.
14300 (load_section_callback): Update. Use "new".
14301 (clear_memory_write_data): Remove.
14302 (generic_load): Update.
14303
14304 2018-02-27 Alan Hayward <alan.hayward@arm.com>
14305
14306 * arch/aarch64.h: Use common/tdesc.h.
14307
14308 2018-02-26 Maciej W. Rozycki <macro@mips.com>
14309
14310 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
14311 architecture with a 64-bit ABI.
14312
14313 2018-02-26 Maciej W. Rozycki <macro@mips.com>
14314
14315 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
14316 ahead of target description loading.
14317
14318 2018-02-26 Tom Tromey <tom@tromey.com>
14319
14320 * stack.c (backtrace_command_1): Update.
14321 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
14322 of "flags".
14323 * python/py-framefilter.c (py_print_frame)
14324 (gdbpy_apply_frame_filter): Change type of "flags".
14325 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
14326 of "flags".
14327 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
14328 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
14329 * extension.h (enum frame_filter_flag): Rename from
14330 frame_filter_flags.
14331 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
14332 (apply_ext_lang_frame_filter): Change type of "flags".
14333 * extension.c (apply_ext_lang_frame_filter): Change type of
14334 "flags".
14335 * extension-priv.h (struct extension_language_ops)
14336 <apply_frame_filter>: Change type of "flags".
14337
14338 2018-02-26 Tom Tromey <tom@tromey.com>
14339
14340 PR python/16497:
14341 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
14342 off-by-one in py_end computation.
14343 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
14344 PRINT_MORE_FRAMES.
14345 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
14346 constant.
14347
14348 2018-02-26 Tom Tromey <tom@tromey.com>
14349
14350 * dwarf2read.c (struct variant_field): New.
14351 (struct nextfield) <variant>: New field.
14352 (dwarf2_add_field): Handle DW_TAG_variant_part.
14353 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
14354 discriminated union.
14355 (read_structure_type): Handle DW_TAG_variant_part.
14356 (handle_struct_member_die): New function, extracted from
14357 process_structure_scope. Handle DW_TAG_variant.
14358 (process_structure_scope): Handle discriminated unions. Call
14359 handle_struct_member_die.
14360
14361 2018-02-26 Tom Tromey <tom@tromey.com>
14362
14363 * rust-lang.h (rust_last_path_segment): Declare.
14364 * rust-lang.c (rust_last_path_segment): Now public. Change
14365 contract.
14366 (struct disr_info): Remove.
14367 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
14368 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
14369 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
14370 (rust_enum_p, rust_enum_variant): New function.
14371 (rust_underscore_fields): Remove "offset" parameter.
14372 (rust_print_enum): New function.
14373 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
14374 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
14375 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
14376 enums.
14377 (rust_internal_print_type): New function, from rust_print_type.
14378 Remove enum code.
14379 (rust_print_type): Call rust_internal_print_type.
14380 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
14381 Update enum handling.
14382 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
14383 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
14384 (rust_union_quirks): New functions.
14385 (process_full_comp_unit, process_full_type_unit): Call
14386 rust_union_quirks.
14387 (process_structure_scope): Update rust_unions if necessary.
14388
14389 2018-02-26 Tom Tromey <tom@tromey.com>
14390
14391 * value.h (value_union_variant): Declare.
14392 * valops.c (value_union_variant): New function.
14393 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
14394 (struct discriminant_info): New.
14395 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
14396 enumerator.
14397 (struct main_type) <flag_discriminated_union>: New field.
14398
14399 2018-02-26 Tom Tromey <tom@tromey.com>
14400
14401 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14402 unittests/unpack-selftests.c.
14403 * unittests/unpack-selftests.c: New file.
14404 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
14405
14406 2018-02-26 Yao Qi <yao.qi@linaro.org>
14407
14408 * dwarf2read.c (struct partial_die_info) <read>: New method.
14409 (read_partial_die): Remove the declaration.
14410 (load_partial_dies): Update.
14411 (partial_die_info::partial_die_info):
14412 (read_partial_die): Change it to partial_die_info::read.
14413
14414 2018-02-26 Yao Qi <yao.qi@linaro.org>
14415
14416 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
14417 (fixup_partial_die): Remove declaration.
14418 (scan_partial_symbols): Update.
14419 (partial_die_parent_scope): Likewise.
14420 (partial_die_full_name): Likewise.
14421 (fixup_partial_die): Change it to partial_die_info::fixup.
14422
14423 2018-02-26 Yao Qi <yao.qi@linaro.org>
14424
14425 * dwarf2read.c (read_partial_die): Update the declaration.
14426 (load_partial_dies): Caller update.
14427 (read_partial_die): Remove one argument abbrev_len.
14428
14429 2018-02-26 Yao Qi <yao.qi@linaro.org>
14430
14431 * dwarf2read.c (struct partial_die_info): Add ctor, delete
14432 assignment operator.
14433 (load_partial_dies): Use ctor and copy ctor.
14434 (read_partial_die): Update.
14435 (dwarf2_cu::find_partial_die): Use ctor.
14436
14437 2018-02-26 Yao Qi <yao.qi@linaro.org>
14438
14439 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
14440 (find_partial_die_in_comp_unit): Change it to
14441 dwarf2_cu::find_partial_die.
14442 (find_partial_die): Update.
14443
14444 2018-02-26 Yao Qi <yao.qi@linaro.org>
14445
14446 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
14447 is NULL.
14448
14449 2018-02-26 Yao Qi <yao.qi@linaro.org>
14450
14451 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
14452
14453 2018-02-26 Alan Hayward <alan.hayward@arm.com>
14454
14455 * arch/amd64.h: Use common/tdesc.h.
14456 * arch/i386.c: Likewise.
14457 * arch/i386.h: Likewise.
14458 * arch/tic6x.c: Likewise.
14459 * arch/tdesc.h: Move file from here...
14460 * common/tdesc.h: ...to here.
14461 * features/aarch64-core.c: Regenerate.
14462 * features/aarch64-fpu.c: Regenerate.
14463 * features/i386/32bit-avx.c: Regenerate.
14464 * features/i386/32bit-avx512.c: Regenerate.
14465 * features/i386/32bit-core.c: Regenerate.
14466 * features/i386/32bit-linux.c: Regenerate.
14467 * features/i386/32bit-mpx.c: Regenerate.
14468 * features/i386/32bit-pkeys.c: Regenerate.
14469 * features/i386/32bit-sse.c: Regenerate.
14470 * features/i386/64bit-avx.c: Regenerate.
14471 * features/i386/64bit-avx512.c: Regenerate.
14472 * features/i386/64bit-core.c: Regenerate.
14473 * features/i386/64bit-linux.c: Regenerate.
14474 * features/i386/64bit-mpx.c: Regenerate.
14475 * features/i386/64bit-pkeys.c: Regenerate.
14476 * features/i386/64bit-segments.c: Regenerate.
14477 * features/i386/64bit-sse.c: Regenerate.
14478 * features/i386/x32-core.c: Regenerate.
14479 * features/tic6x-c6xp.c: Regenerate.
14480 * features/tic6x-core.c: Regenerate.
14481 * features/tic6x-gp.c: Regenerate.
14482 * target-descriptions.c: Use common/tdesc.h.
14483 * target-descriptions.h: Likewise.
14484
14485 2018-02-24 Tom Tromey <tom@tromey.com>
14486
14487 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
14488 (try_thread_db_load_from_dir, thread_db_load_search): Use
14489 std::string.
14490 (info_auto_load_libthread_db_compare): Return bool. Change
14491 argument types.
14492 (info_auto_load_libthread_db): Use std::vector, std::string.
14493 Remove cleanups.
14494
14495 2018-02-24 Tom Tromey <tom@tromey.com>
14496
14497 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
14498 std::string.
14499 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
14500 std::string*.
14501 * gdbarch.c: Rebuild.
14502 * gdbarch.h: Rebuild.
14503 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
14504 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
14505 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
14506 std::string*.
14507
14508 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
14509
14510 * gdbtypes.h (sect_offset): Change type to uint64_t.
14511 (sect_offset_str): New function.
14512 * dwarf2read.c (create_addrmap_from_aranges): Use
14513 sect_offset_str.
14514 (error_check_comp_unit_head): Likewise.
14515 (create_debug_type_hash_table): Likewise.
14516 (read_cutu_die_from_dwo): Likewise.
14517 (init_cutu_and_read_dies): Likewise.
14518 (init_cutu_and_read_dies_no_follow): Likewise.
14519 (process_psymtab_comp_unit_reader): Likewise.
14520 (partial_die_parent_scope): Likewise.
14521 (peek_die_abbrev): Likewise.
14522 (process_queue): Likewise.
14523 (dwarf2_physname): Likewise.
14524 (read_namespace_alias): Likewise.
14525 (read_import_statement): Likewise.
14526 (create_dwo_cu_reader): Likewise.
14527 (create_cus_hash_table): Likewise.
14528 (lookup_dwo_cutu): Likewise.
14529 (inherit_abstract_dies): Likewise.
14530 (read_func_scope): Likewise.
14531 (read_call_site_scope): Likewise.
14532 (dwarf2_add_member_fn): Likewise.
14533 (read_common_block): Likewise.
14534 (read_module_type): Likewise.
14535 (read_typedef): Likewise.
14536 (read_subrange_type): Likewise.
14537 (load_partial_dies): Likewise.
14538 (read_partial_die): Likewise.
14539 (find_partial_die): Likewise.
14540 (read_str_index): Likewise.
14541 (dwarf2_string_attr): Likewise.
14542 (build_error_marker_type): Likewise.
14543 (lookup_die_type): Likewise.
14544 (dump_die_shallow): Likewise.
14545 (follow_die_ref): Likewise.
14546 (dwarf2_fetch_die_loc_sect_off): Likewise.
14547 (dwarf2_fetch_constant_bytes): Likewise.
14548 (follow_die_sig): Likewise.
14549 (get_signatured_type): Likewise.
14550 (get_DW_AT_signature_type): Likewise.
14551 (dwarf2_find_containing_comp_unit): Likewise.
14552 (set_die_type): Likewise.
14553
14554 2018-02-21 John Baldwin <jhb@FreeBSD.org>
14555
14556 * arch/aarch64.c: Include "common-defs.h".
14557 * arch/amd64.c: Likewise.
14558 * arch/i386.c: Likewise.
14559
14560 2018-02-21 Tom Tromey <tom@tromey.com>
14561
14562 * value.h: (extract_field_op): Update.
14563 * eval.c (extract_field_op): Return a const char *.
14564 * expression.h (parse_expression_for_completion): Update.
14565 * completer.c (complete_expression): Update.
14566 (add_struct_fields): Make fieldname const.
14567 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
14568 (mark_completion_tag, parse_exp_in_context_1): Update.
14569 (parse_expression_for_completion): Change "name" to
14570 unique_xmalloc_ptr*.
14571
14572 2018-02-21 Tom Tromey <tom@tromey.com>
14573
14574 * infcall.c (call_function_by_hand_dummy): Use std::vector.
14575
14576 2018-02-21 Yao Qi <yao.qi@linaro.org>
14577
14578 * avr-tdep.c (avr_read_pc): Change parameter type to
14579 readable_regcache.
14580 * gdbarch.sh (read_pc): Likewise.
14581 * gdbarch.c: Re-generated.
14582 * gdbarch.h: Re-generated.
14583 * hppa-tdep.c (hppa_read_pc): Change parameter type to
14584 readable_regcache.
14585 * ia64-tdep.c (ia64_read_pc): Likewise.
14586 * mips-tdep.c (mips_read_pc): Likewise.
14587 * spu-tdep.c (spu_read_pc): Likewise.
14588
14589 2018-02-21 Yao Qi <yao.qi@linaro.org>
14590
14591 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
14592 * regcache-dump.c: New file.
14593 * regcache.c: Move register_dump to regcache-dump.c.
14594 (maintenance_print_registers): Likewise.
14595 (maintenance_print_raw_registers): Likewise.
14596 (maintenance_print_cooked_registers): Likewise.
14597 (maintenance_print_register_groups): Likewise.
14598 (maintenance_print_remote_registers): Likewise.
14599 (_initialize_regcache): Likewise.
14600 * regcache.h (register_dump): Moved from regcache.c.
14601
14602 2018-02-21 Yao Qi <yao.qi@linaro.org>
14603
14604 * regcache.c (regcache::regcache): Update.
14605 (regcache::invalidate): Move it to detached_regcache::invalidate.
14606 (get_thread_arch_aspace_regcache): Update.
14607 (regcache::raw_update): Update.
14608 (regcache::cooked_read): Remove some code.
14609 (regcache::cooked_read_value): Likewise.
14610 (regcache::raw_write): Remove assert on m_readonly_p.
14611 (regcache::raw_supply_integer): Move it to
14612 detached_regcache::raw_supply_integer.
14613 (regcache::raw_supply_zeroed): Likewise.
14614 * regcache.h (detached_regcache) <raw_supply_integer>: New
14615 declaration.
14616 <raw_supply_zeroed, invalidate>: Likewise.
14617 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
14618 <invalidate>: Likewise.
14619 <m_readonly_p>: Removed.
14620
14621 2018-02-21 Yao Qi <yao.qi@linaro.org>
14622
14623 * infcmd.c (get_return_value): Let stop_regs point to
14624 get_current_regcache.
14625 * regcache.c (regcache::regcache): Remove.
14626 (register_dump_reg_buffer): New class.
14627 (regcache_print): Adjust.
14628 * regcache.h (regcache): Remove constructors.
14629
14630 2018-02-21 Yao Qi <yao.qi@linaro.org>
14631
14632 * regcache.c (class register_dump): New class.
14633 (register_dump_regcache, register_dump_none): New class.
14634 (register_dump_remote, register_dump_groups): New class.
14635 (regcache_print): Update.
14636 * regcache.h (regcache_dump_what): Move it to regcache.c.
14637 (regcache) <dump>: Remove.
14638
14639 2018-02-21 Yao Qi <yao.qi@linaro.org>
14640
14641 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
14642 reg_buffer_rw *.
14643 (jit_unwind_reg_set_impl): Call raw_supply.
14644 (jit_frame_sniffer): Use reg_buffer_rw.
14645 * record-full.c (record_full_core_regbuf): Change its type.
14646 (record_full_core_open_1): Use reg_buffer_rw.
14647 (record_full_close): Likewise.
14648 (record_full_core_fetch_registers): Use regcache->raw_supply.
14649 (record_full_core_store_registers): Likewise.
14650 * regcache.c (regcache::get_register_status): Move it to
14651 reg_buffer.
14652 (regcache_raw_set_cached_value): Remove.
14653 (regcache::raw_set_cached_value): Remove.
14654 (regcache::raw_write): Call raw_supply.
14655 (regcache::raw_supply): Move it to reg_buffer_rw.
14656 * regcache.h (regcache_raw_set_cached_value): Remove.
14657 (reg_buffer_rw): New class.
14658
14659 2018-02-21 Yao Qi <yao.qi@linaro.org>
14660
14661 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
14662 readonly_detached_regcache.
14663 (dummy_frame_prev_register): Use regcache->cooked_read.
14664 * frame.c (frame_save_as_regcache): Change return type.
14665 (frame_pop): Update.
14666 * frame.h (frame_save_as_regcache): Update declaration.
14667 * inferior.h (get_infcall_suspend_state_regcache): Update
14668 declaration.
14669 * infrun.c (infcall_suspend_state) <registers>: use
14670 readonly_detached_regcache.
14671 (save_infcall_suspend_state): Don't use regcache_dup.
14672 (get_infcall_suspend_state_regcache): Change return type.
14673 * linux-fork.c (struct fork_info) <savedregs>: Change to
14674 readonly_detached_regcache.
14675 <pc>: New field.
14676 (fork_save_infrun_state): Don't use regcache_dup.
14677 (info_checkpoints_command): Adjust.
14678 * mi/mi-main.c (register_changed_p): Update declaration.
14679 (mi_cmd_data_list_changed_registers): Use
14680 readonly_detached_regcache.
14681 (register_changed_p): Change parameter type to
14682 readonly_detached_regcache.
14683 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
14684 readonly_detached_regcache.
14685 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
14686 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
14687 New.
14688 (regcache::save): Move it to reg_buffer.
14689 (regcache::restore): Change parameter type.
14690 (regcache_dup): Remove.
14691 * regcache.h (reg_buffer) <save>: New method.
14692 (readonly_detached_regcache): New class.
14693 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
14694 readonly_detached_regcache.
14695 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
14696
14697 2018-02-21 Yao Qi <yao.qi@linaro.org>
14698
14699 * frame.c (frame_save_as_regcache): Use regcache method save.
14700 (frame_pop): Use regcache method restore.
14701 * infrun.c (restore_infcall_suspend_state): Likewise.
14702 * linux-fork.c (fork_load_infrun_state): Likewise.
14703 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
14704 save.
14705 * regcache.c (regcache_save): Remove.
14706 (regcache::restore): More asserts.
14707 (regcache_cpy): Remove.
14708 * regcache.h (regcache_save): Remove the declaration.
14709 (regcache::restore): Move from private to public.
14710 Remove the friend declaration of regcache_cpy.
14711 (regcache_cpy): Remove declaration.
14712
14713 2018-02-21 Yao Qi <yao.qi@linaro.org>
14714
14715 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
14716 parameter type to 'readable_regcache *'.
14717 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14718 * arm-tdep.c (arm_neon_quad_read): Likewise.
14719 (arm_pseudo_read): Likewise.
14720 * avr-tdep.c (avr_pseudo_register_read): Likewise.
14721 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14722 * frv-tdep.c (frv_pseudo_register_read): Likewise.
14723 * gdbarch.c: Re-generated.
14724 * gdbarch.h: Re-generated.
14725 * gdbarch.sh (pseudo_register_read): Change parameter type to
14726 'readable_regcache *'.
14727 (pseudo_register_read_value): Likewise.
14728 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
14729 (h8300_pseudo_register_read): Likewise.
14730 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
14731 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14732 (i386_pseudo_register_read_into_value): Likewise.
14733 (i386_pseudo_register_read_value): Likewise.
14734 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
14735 declaration.
14736 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
14737 * m32c-tdep.c (m32c_raw_read): Likewise.
14738 (m32c_read_flg): Likewise.
14739 (m32c_banked_register): Likewise.
14740 (m32c_banked_read): Likewise.
14741 (m32c_sb_read): Likewise.
14742 (m32c_part_read): Likewise.
14743 (m32c_cat_read): Likewise.
14744 (m32c_r3r2r1r0_read): Likewise.
14745 (m32c_pseudo_register_read): Likewise.
14746 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14747 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14748 (mep_pseudo_cr64_read): Likewise.
14749 (mep_pseudo_register_read): Likewise.
14750 * mips-tdep.c (mips_pseudo_register_read): Likewise.
14751 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14752 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14753 * regcache.c (regcache::raw_read): Move it to readable_regcache.
14754 (regcache::cooked_read): Likewise.
14755 (regcache::cooked_read_value): Likewise.
14756 (regcache_cooked_read_signed):
14757 (regcache::cooked_read): Likewise.
14758 * regcache.h (readable_regcache): New class.
14759 (regcache): Inherit readable_regcache. Move some methods to
14760 readable_regcache.
14761 * rl78-tdep.c (rl78_pseudo_register_read): Change
14762 parameter type to 'readable_regcache *'.
14763 * rs6000-tdep.c (do_regcache_raw_read): Remove.
14764 (e500_pseudo_register_read): Change parameter type to
14765 'readable_regcache *'.
14766 (dfp_pseudo_register_read): Likewise.
14767 (vsx_pseudo_register_read): Likewise.
14768 (efpr_pseudo_register_read): Likewise.
14769 * s390-tdep.c (s390_pseudo_register_read): Likewise.
14770 * sh-tdep.c (sh_pseudo_register_read): Likewise.
14771 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
14772 (sh64_pseudo_register_read): Likewise.
14773 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14774 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14775 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14776 (spu_pseudo_register_read): Likewise.
14777 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14778 (xtensa_pseudo_register_read): Likewise.
14779
14780 2018-02-21 Yao Qi <yao.qi@linaro.org>
14781
14782 * regcache.c (regcache::regcache): Call reg_buffer ctor.
14783 (regcache::arch): Move it to reg_buffer::arch.
14784 (regcache::register_buffer): Likewise.
14785 (regcache::assert_regnum): Likewise.
14786 (regcache::num_raw_registers): Likewise.
14787 * regcache.h (reg_buffer): New class.
14788 (regcache): Inherit reg_buffer.
14789
14790 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
14791
14792 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
14793 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
14794
14795 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
14796
14797 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
14798
14799 2018-02-19 Alan Hayward <alan.hayward@arm.com>
14800
14801 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
14802 (SFILES): Remove common/*.c files.
14803 (COMMON_OBS): Remove some *.o files built from common/*.c files.
14804 * common/common.host: Add common reference.
14805 * configure.ac: Likewise.
14806 * configure: Regenerate.
14807
14808 2018-02-16 Yao Qi <yao.qi@linaro.org>
14809
14810 * block.c (block_namespace_info): Inherit allocate_on_obstack.
14811 (block_initialize_namespace): Use new.
14812 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
14813 (dwarf2_free_objfile): Use delete.
14814 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
14815 (copy_type_recursive): Use new.
14816 * gdb_obstack.h (allocate_on_obstack): New.
14817
14818 2018-02-15 Yao Qi <yao.qi@linaro.org>
14819
14820 PR gdb/22849
14821 * inferior.c (exit_inferior_1): Reset inf->control.
14822
14823 2018-02-15 Joel Brobecker <brobecker@adacore.com>
14824
14825 * ada-lang.c (ada_to_fixed_value_create): Delete advance
14826 declaration.
14827
14828 2018-02-14 Pedro Alves <palves@redhat.com>
14829
14830 * frame-unwind.c (frame_unwind_try_unwinder): Always call
14831 frame_cleanup_after_sniffer on exception.
14832
14833 2018-02-14 Tom Tromey <tom@tromey.com>
14834
14835 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
14836 const.
14837 (solib_bfd_open): Make pathname const.
14838 * solib.c (solib_bfd_open): Make pathname const.
14839 * solib-spu.c (spu_bfd_fopen): Make name const.
14840 (spu_bfd_open): Make pathname const.
14841 * solib-darwin.c (darwin_bfd_open): Make pathname const.
14842 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
14843
14844 2018-02-14 Tom Tromey <tom@tromey.com>
14845
14846 * symfile.c (symfile_bfd_open): Update.
14847 * source.h (openp, source_full_path_of, find_and_open_source):
14848 Change argument type to unique_xmalloc_ptr.
14849 * source.c (openp): Take a unique_xmalloc_ptr.
14850 (source_full_path_of, find_and_open_source): Likewise.
14851 (open_source_file, symtab_to_fullname): Update.
14852 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
14853 unique_xmalloc_ptr.
14854 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
14855 (exec_file_find): Update.
14856 * psymtab.c (psymtab_to_fullname): Update.
14857 * nto-tdep.h (nto_find_and_open_solib): Update.
14858 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
14859 unique_xmalloc_ptr.
14860 * exec.c (exec_file_attach): Update.
14861 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
14862 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
14863
14864 2018-02-14 Tom Tromey <tom@tromey.com>
14865
14866 * solib.c: Include source.h.
14867 * nto-tdep.c: Include source.h.
14868 * mi/mi-cmd-env.c: Include source.h.
14869 * infcmd.c: Include source.h.
14870 * exec.c: Include source.h.
14871 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
14872 (add_path, directory_switch, source_path, init_source_path): Move
14873 declarations...
14874 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
14875 (add_path, directory_switch, source_path, init_source_path):
14876 ...here.
14877
14878 2018-02-14 Tom Tromey <tom@tromey.com>
14879
14880 * solist.h (exec_file_find, solib_find): Return
14881 unique_xmalloc_ptr.
14882 (solib_bfd_fopen): Take a const char *.
14883 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
14884 (exec_file_find, solib_find): Likewise.
14885 (solib_bfd_fopen): Do not take ownership of "pathname".
14886 (solib_bfd_open): Use unique_xmalloc_ptr.
14887 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
14888 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
14889 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
14890 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
14891
14892 2018-02-14 Joel Brobecker <brobecker@adacore.com>
14893
14894 * ada-lang.c (name_match_type_from_name): Remove reference to
14895 ada_name_for_lookup in function's documentation.
14896 * ada-lang.h (ada_name_for_lookup): Delete declaration.
14897
14898 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
14899
14900 * defs.h (enum openp_flags): New enum.
14901 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
14902 Move to enum openp_flags.
14903 (openp_flags): New enum flags.
14904 (openp): Change parameter type to openp_flags.
14905 * source.c (openp): Change parameter type to openp_flags.
14906 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
14907 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
14908
14909 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
14910
14911 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
14912 per-command.
14913
14914 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
14915
14916 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
14917 into...
14918 (class dwarf2_queue_guard): ...the destructor of this new class.
14919 (dw2_do_instantiate_symtab): Create instance of the new class
14920 dwarf2_queue_guard, remove cleanup.
14921
14922 2018-02-09 Tom Tromey <tom@tromey.com>
14923
14924 * source.c (find_source_lines): Don't reference past the end of
14925 the vector.
14926
14927 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14928
14929 * remote.c (remote_btrace_maybe_reopen): Change error message.
14930 * btrace.c (btrace_enable): Likewise.
14931 (parse_xml_btrace): Likewise.
14932 (parse_xml_btrace_conf): Likewise.
14933
14934 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14935
14936 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
14937 (linux_enable_pt, linux_enable_bts): Call
14938 diagnose_perf_event_open_fail.
14939
14940 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14941
14942 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
14943 Remove parameter and change return type. Update callers. Move it.
14944 (linux_enable_bts, linux_enable_pt): Improve error message.
14945 (linux_enable_pt): Remove zero buffer size check.
14946 (linux_enable_btrace): Improve error messages. Remove NULL return
14947 check.
14948
14949 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14950
14951 * btrace.c (btrace_enable): Remove target_supports_btrace call.
14952 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
14953 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
14954 (linux_supports_pt, linux_supports_btrace): Remove.
14955 (linux_enable_bts): Call cpu_supports_bts.
14956 * nat/linux-btrace.h (linux_supports_btrace): Remove.
14957 * remote.c (remote_supports_btrace): Remove.
14958 (init_remote_ops): Remove remote_supports_btrace.
14959 * target-delegates.c: Regenerated.
14960 * target.c (target_supports_btrace): Remove.
14961 * target.h (target_ops) <to_supports_btrace>: Remove
14962 (target_supports_btrace): Remove.
14963 * x86-linux-nat.c (x86_linux_create_target): Remove
14964 linux_supports_btrace.
14965
14966 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14967
14968 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
14969 btrace failed.
14970 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
14971 exception and use message in own exception.
14972
14973 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14974
14975 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
14976 (perf_event_pt_event_type): Use gdb_file_up.
14977 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
14978 scoped_fd, and scoped_mmap.
14979
14980 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14981
14982 * common/scoped_mmap.h: New.
14983 * unittests/scoped_mmap-selftest.c: New.
14984 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14985 unittests/scoped_mmap-selftest.c.
14986
14987 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14988
14989 * common/scoped_fd.h: New.
14990 * unittests/scoped_fd-selftest.c: New.
14991 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14992 unittests/scoped_fd-selftest.c.
14993
14994 2018-02-09 Tom Tromey <tom@tromey.com>
14995
14996 * auto-load.c (auto_load_section_scripts): Use
14997 gdb::unique_xmalloc_ptr.
14998
14999 2018-02-09 Tom Tromey <tom@tromey.com>
15000
15001 * auto-load.c (execute_script_contents): Use std::string.
15002
15003 2018-02-09 Joel Brobecker <brobecker@adacore.com>
15004
15005 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
15006 Python function, rather than a new command.
15007
15008 2018-02-08 Tom Tromey <tom@tromey.com>
15009
15010 * solib.c (solib_find_1): Use std::string.
15011 (solib_bfd_fopen): Use unique_xmalloc_ptr.
15012
15013 2018-02-08 Tom Tromey <tom@tromey.com>
15014
15015 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
15016
15017 2018-02-08 Tom Tromey <tom@tromey.com>
15018
15019 * source.c (find_source_lines): Use gdb::def_vector.
15020
15021 2018-02-08 Tom Tromey <tom@tromey.com>
15022
15023 * macrocmd.c (struct temporary_macro_definition): New.
15024 (macro_define_command): Use temporary_macro_definition. Remove
15025 cleanups.
15026 (free_macro_definition_ptr): Remove.
15027
15028 2018-02-08 Tom Tromey <tom@tromey.com>
15029
15030 * macroexp.c (maybe_expand): Use std::string.
15031
15032 2018-02-08 Tom Tromey <tom@tromey.com>
15033
15034 * macroexp.c (struct macro_buffer): Add initializers for some
15035 members.
15036 (init_buffer, init_shared_buffer, free_buffer)
15037 (free_buffer_return_text): Remove.
15038 (macro_buffer): New constructors.
15039 (~macro_buffer): New destructor.
15040 (macro_buffer::set_shared): New method.
15041 (macro_buffer::resize_buffer, macro_buffer::appendc)
15042 (macro_buffer::appendmem): Now methods, not free functions.
15043 (set_token, append_tokens_without_splicing, stringify)
15044 (macro_stringify): Update.
15045 (gather_arguments): Change return type. Remove argc_p argument,
15046 add args_ptr argument. Use std::vector.
15047 (substitute_args): Remove argc argument. Accept std::vector.
15048 (expand): Update. Use std::vector.
15049 (scan, macro_expand, macro_expand_next): Update.
15050
15051 2018-02-08 Tom Tromey <tom@tromey.com>
15052
15053 * symtab.c (default_collect_symbol_completion_matches_break_on):
15054 Use unique_xmalloc_ptr.
15055 * macroscope.h: (sal_macro_scope, user_macro_scope)
15056 (default_macro_scope): Return unique_xmalloc_ptr.
15057 * macroscope.c (sal_macro_scope, user_macro_scope)
15058 (default_macro_scope): Return unique_xmalloc_ptr.
15059 * macroexp.h (macro_expand, macro_expand_once): Return
15060 unique_xmalloc_ptr.
15061 * macroexp.c (macro_expand, macro_expand_once): Return
15062 unique_xmalloc_ptr.
15063 * macrocmd.c (macro_expand_command, macro_expand_once_command)
15064 (info_macro_command, info_macros_command): Use
15065 unique_xmalloc_ptr.
15066 * compile/compile-c-support.c (write_macro_definitions): Use
15067 unique_xmalloc_ptr.
15068 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
15069
15070 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
15071
15072 * value.c (value_static_field): Assign field type instead of
15073 containing type when returning an optimized out value.
15074
15075 2018-02-06 Yao Qi <yao.qi@linaro.org>
15076
15077 * ft32-tdep.c (ft32_read_pc): Remove.
15078 (ft32_write_pc): Remove.
15079 (ft32_gdbarch_init): Update.
15080 * m32r-tdep.c (m32r_read_pc): Remove.
15081 (m32r_gdbarch_init): Update.
15082 * mep-tdep.c (mep_read_pc): Remove.
15083 (mep_gdbarch_init): Update.
15084 * microblaze-tdep.c (microblaze_write_pc): Remove.
15085 (microblaze_gdbarch_init): Update.
15086 * mn10300-tdep.c (mn10300_read_pc): Remove.
15087 (mn10300_write_pc): Remove.
15088 (mn10300_gdbarch_init): Update.
15089 * moxie-tdep.c (moxie_read_pc): Remove.
15090 (moxie_write_pc): Remove.
15091 (moxie_gdbarch_init): Update.
15092
15093 2018-02-06 Yao Qi <yao.qi@linaro.org>
15094
15095 * expprint.c (print_subexp_standard): Handle
15096 OP_F77_UNDETERMINED_ARGLIST.
15097 (dump_subexp_body_standard): Likewise.
15098
15099 2018-02-05 Alan Hayward <alan.hayward@arm.com>
15100
15101 * target-descriptions.c (tdesc_element_visitor) Add empty
15102 implementations.
15103 (tdesc_type): Move make_gdb_type from here.
15104 (tdesc_type_builtin): Likewise.
15105 (tdesc_type_vector): Likewise.
15106 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
15107 (make_gdb_type_struct): Move from tdesc_type_with_fields.
15108 (make_gdb_type_union): Likewise.
15109 (make_gdb_type_flags): Likewise.
15110 (make_gdb_type_enum): Likewise.
15111 (make_gdb_type): New function.
15112 (tdesc_register_type): Use static make_gdb_type.
15113
15114 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
15115
15116 * infcmd.c (default_print_one_register_info): Align natural-format
15117 column values consistently one under another.
15118 (pad_to_column): New function.
15119
15120 2018-02-05 Joel Brobecker <brobecker@adacore.com>
15121
15122 * dwarf2read.c (dwarf2_physname): Move commment.
15123
15124 2018-02-01 Leszek Swirski <leszeks@google.com>
15125
15126 * varobj.c (varobj_formatted_print_options): Allow recursive
15127 pretty printing if pretty printing is enabled.
15128
15129 2018-02-01 Leszek Swirski <leszeks@google.com>
15130
15131 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
15132 names after a structop as a filename.
15133
15134 2018-02-01 Yao Qi <yao.qi@linaro.org>
15135
15136 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
15137 (arm_record_coproc_data_proc): Likewise.
15138
15139 2018-02-01 Yao Qi <yao.qi@linaro.org>
15140
15141 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
15142
15143 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
15144
15145 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
15146 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
15147
15148 2018-01-31 Pedro Alves <palves@redhat.com>
15149
15150 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
15151 * inflow.c (child_terminal_save_inferior): Wrap reference to
15152 tcgetpgrp in HAVE_TERMIOS_H.
15153 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
15154 _WIN32.
15155 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
15156 always iterate over all inferiors.
15157 (gdbsim_cntrl_c): Adjust.
15158 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
15159
15160 2018-01-31 Joel Brobecker <brobecker@adacore.com>
15161
15162 * gdbtypes.c (lookup_array_range_type): Make sure the array's
15163 index type is objfile-owned if the element type is as well.
15164
15165 2018-01-31 Joel Brobecker <brobecker@adacore.com>
15166
15167 GDB 8.1 released.
15168
15169 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
15170
15171 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
15172 "features/s390x-linux64.c".
15173 (_initialize_s390_linux_tdep): Remove initialization of tdescs
15174 s390_linux32 and s390x_linux64.
15175 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
15176 default tdesc.
15177 * s390-tdep.c: Include "features/s390-linux32.c" and
15178 "features/s390x-linux64.c".
15179 (s390_tdesc_valid): Add check for tdesc_has_registers.
15180 (s390_gdbarch_init): Make sure there is always a valid tdesc.
15181 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
15182 tdesc_s390x_linux64.
15183 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
15184 tdesc_s390x_linux64 to...
15185 * s390-tdep.h: ...here.
15186
15187 2018-01-30 Pedro Alves <palves@redhat.com>
15188
15189 PR gdb/13211
15190 * config.in, configure: Regenerate.
15191 * configure.ac: Check for getpgid.
15192 * go32-nat.c (go32_pass_ctrlc): New.
15193 (go32_target): Install it.
15194 * inf-child.c (inf_child_target): Install
15195 child_terminal_save_inferior, child_pass_ctrlc and
15196 child_interrupt.
15197 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
15198 (inf_ptrace_target): No longer install it.
15199 * infcmd.c (interrupt_target_1): Adjust.
15200 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
15201 (child_interrupt): Declare.
15202 (inferior::terminal_state): New.
15203 * inflow.c (struct terminal_info): Update comments.
15204 (inferior_process_group): Delete.
15205 (terminal_is_ours): Delete.
15206 (gdb_tty_state): New.
15207 (child_terminal_init): Adjust.
15208 (is_gdb_terminal, sharing_input_terminal_1)
15209 (sharing_input_terminal): New functions.
15210 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
15211 Set the process's actual process group in the foreground if
15212 possible. Handle is_ours_for_output/is_ours distinction. Don't
15213 mark terminal as the inferior's if not sharing GDB's terminal.
15214 Don't check attach_flag.
15215 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
15216 pass down a target_terminal_state.
15217 (child_terminal_save_inferior): New, factored out from ...
15218 (child_terminal_ours_1): ... this. Handle
15219 target_terminal_state::is_ours_for_output.
15220 (child_interrupt, child_pass_ctrlc): New.
15221 (inflow_inferior_exit): Clear the inferior's terminal_state.
15222 (copy_terminal_info): Copy the inferior's terminal state.
15223 (_initialize_inflow): Remove reference to terminal_is_ours.
15224 * inflow.h (inferior_process_group): Delete.
15225 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
15226 * procfs.c (procfs_target): Don't install procfs_interrupt.
15227 (procfs_interrupt): Delete.
15228 * remote.c (remote_serial_quit_handler): Adjust.
15229 (remote_interrupt): Remove ptid parameter. Adjust.
15230 * target-delegates.c: Regenerate.
15231 * target.c: Include "terminal.h".
15232 (target_terminal::terminal_state): Rename to ...
15233 (target_terminal::m_terminal_state): ... this.
15234 (target_terminal::init): Adjust.
15235 (target_terminal::inferior): Adjust to per-inferior
15236 terminal_state.
15237 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
15238 (target_terminal::ours, target_terminal::ours_for_output): Use
15239 target_terminal_is_ours_kind.
15240 (target_interrupt): Remove ptid parameter. Adjust.
15241 (default_target_pass_ctrlc): Adjust.
15242 * target.h (target_ops::to_terminal_save_inferior): New field.
15243 (target_ops::to_interrupt): Remove ptid_t parameter.
15244 (target_interrupt): Remove ptid_t parameter. Update comment.
15245 (target_pass_ctrlc): Update comment.
15246 * target/target.h (target_terminal_state): New scoped enum,
15247 factored out of ...
15248 (target_terminal::terminal_state): ... here.
15249 (target_terminal::inferior): Update comments.
15250 (target_terminal::restore_inferior): New.
15251 (target_terminal::is_inferior, target_terminal::is_ours)
15252 (target_terminal::is_ours_for_output): Adjust.
15253 (target_terminal::scoped_restore_terminal_state): Adjust to
15254 rename, and call restore_inferior() instead of inferior().
15255 (target_terminal::scoped_restore_terminal_state::m_state): Change
15256 type.
15257 (target_terminal::terminal_state): Rename to ...
15258 (target_terminal::m_terminal_state): ... this and change type.
15259
15260 2018-01-30 Pedro Alves <palves@redhat.com>
15261
15262 * linux-nat.c (wait_for_signal): New function.
15263 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
15264 directly.
15265 (async_terminal_is_ours)
15266 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
15267 (linux_nat_add_target): Don't override
15268 to_terminal_inferior/to_terminal_ours.
15269
15270 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
15271
15272 * remote.c (remote_follow_fork): Don't call "detach_inferior".
15273
15274 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
15275
15276 * dwarf2read.c (free_dwo_files): Add forward-declaration.
15277 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
15278 dwarf2_per_objfile_free here.
15279 (dwarf2_per_objfile_free): Remove.
15280 (_initialize_dwarf2_read): Don't register
15281 dwarf2_per_objfile_free as a registry cleanup.
15282
15283 2018-01-27 Eli Zaretskii <eliz@gnu.org>
15284
15285 Avoid compilation errors in MinGW native builds
15286
15287 The error is triggered by including python-internal.h, and the
15288 error message is:
15289
15290 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
15291 from build-gnulib/import/math.h:27,
15292 from d:/usr/Python26/include/pyport.h:235,
15293 from d:/usr/Python26/include/Python.h:58,
15294 from python/python-internal.h:94,
15295 from python/py-arch.c:24:
15296 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
15297 using ::hypot;
15298 ^~~~~
15299
15300 This happens because Python headers define 'hypot' to expand t
15301 '_hypot' in the Windows builds.
15302 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
15303 'hypoth'. This avoids a compilation error.
15304
15305 2018-01-26 Alan Hayward <alan.hayward@arm.com>
15306
15307 * MAINTAINERS (Write After Approval): Fix ordering.
15308
15309 2018-01-26 Alan Hayward <alan.hayward@arm.com>
15310
15311 * MAINTAINERS (Write After Approval): Add Alan Hayward.
15312
15313 2018-01-26 Alan Modra <amodra@gmail.com>
15314
15315 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
15316 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
15317 Remove nop. Make const. Comment.
15318 (powerpc32_plt_stub_so_2): New.
15319 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
15320 Correct count. Update uses.
15321 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
15322 Move common code reading PLT entry word. Correct
15323 powerpc32_plt_stub PLT address calculation.
15324 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
15325 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
15326 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
15327 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
15328 (ppc64_standard_linkage8): Likewise.
15329 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
15330 Correct insns description.
15331 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
15332
15333 2018-01-24 Pedro Alves <palves@redhat.com>
15334
15335 GCC PR libstdc++/83906
15336 * gdbtypes.c (operator==(const dynamic_prop &,
15337 const dynamic_prop &)): New.
15338 (operator==(const range_bounds &, const range_bounds &)): New.
15339 (check_types_equal): Use them instead of memcmp.
15340 * gdbtypes.h (operator==(const dynamic_prop &,
15341 const dynamic_prop &)): Declare.
15342 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
15343 (operator==(const range_bounds &, const range_bounds &)): Declare.
15344 (operator!=(const range_bounds &, const range_bounds &)): Declare.
15345
15346 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15347
15348 * s390-linux-tdep.c (s390_record_address_mask)
15349 (s390_record_calc_disp_common, s390_record_calc_disp)
15350 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
15351 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
15352 (s390_process_record): Move to s390-tdep.c.
15353 (s390_linux_init_abi_any): Adjust.
15354 * s390-tdep.c (s390_record_address_mask)
15355 (s390_record_calc_disp_common, s390_record_calc_disp)
15356 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
15357 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
15358 (s390_process_record): Moved from s390-linux-tdep.c
15359 (s390_gdbarch_init): Adjust.
15360
15361 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15362
15363 * s390-linux-nat.c (s390-tdep.h): New include.
15364 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
15365 (HFILES_NO_SRCDIR): Add s390-tdep.h.
15366 (ALLDEPFILES): Add s390-tdep.c.
15367 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
15368 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
15369 * s390-tdep.h: ...this. New file.
15370 * s390-linux-tdep.c (s390-tdep.h): New include.
15371 (_initialize_s390_tdep): Rename to...
15372 (_initialize_s390_linux_tdep): ...this and adjust.
15373 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
15374 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
15375 s390-tdep.h.
15376 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
15377 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
15378 (s390_is_partial_instruction, s390_software_single_step)
15379 (is_non_branch_ril, s390_displaced_step_copy_insn)
15380 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
15381 (s390_prologue_data, s390_addr, s390_store, s390_load)
15382 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
15383 (s390_register_call_saved, s390_guess_tracepoint_registers)
15384 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
15385 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
15386 (s390_pseudo_register_name, s390_pseudo_register_type)
15387 (s390_pseudo_register_read, s390_pseudo_register_write)
15388 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
15389 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
15390 (s390_addr_bits_remove, s390_address_class_type_flags)
15391 (s390_address_class_type_flags_to_name)
15392 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
15393 (s390_function_arg_float, s390_function_arg_vector)
15394 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
15395 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
15396 (s390_frame_align, s390_register_return_value, s390_return_value)
15397 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
15398 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
15399 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
15400 (s390_trad_frame_prev_register, s390_unwind_cache)
15401 (s390_prologue_frame_unwind_cache)
15402 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
15403 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
15404 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
15405 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
15406 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
15407 (s390_frame_base_address, s390_local_base_address)
15408 (s390_frame_base, s390_gcc_target_options)
15409 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
15410 (s390_validate_reg_range, s390_tdesc_valid)
15411 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
15412 * s390-tdep.c: ...this. New file.
15413
15414 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15415
15416 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
15417 (s390_process_record, s390_gdbarch_tdep_alloc)
15418 (s390_linux_init_abi_any): Use/set new hook.
15419
15420 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15421
15422 * s390-linux-tdep.c (osabi.h): New include.
15423 (s390_linux_init_abi_31, s390_linux_init_abi_64)
15424 (s390_linux_init_abi_any): New functions.
15425 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
15426
15427 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15428
15429 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
15430 tdesc_has_registers check
15431
15432 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15433
15434 * s390-linux-tdep.c (s390_tdesc_valid): New function.
15435 (s390_validate_reg_range): New macro.
15436 (s390_gdbarch_init): Adjust.
15437
15438 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15439
15440 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
15441 (s390_gdbarch_tdep_alloc): Adjust.
15442 (s390_gdbarch_init): Adjust.
15443
15444 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15445
15446 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
15447 <have_tdb>: Change type to bool.
15448 (s390_gdbarch_tdep_alloc): Adjust.
15449 (s390_gdbarch_init): Adjust.
15450
15451 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15452
15453 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
15454 (gdbarch_tdep) <have_upper, have_vx>: New fields.
15455 (s390_gdbarch_tdep_alloc): New function.
15456 (s390_gdbarch_init): Allocate tdep at start and use its fields
15457 instead of separate variables.
15458
15459 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15460
15461 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
15462 when looking for cached gdbarch and add comment for remaining.
15463
15464 2018-01-22 Pedro Alves <palves@redhat.com>
15465 Sergio Durigan Junior <sergiodj@redhat.com>
15466
15467 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
15468 case.
15469
15470 2018-01-22 Maciej W. Rozycki <macro@mips.com>
15471
15472 * MAINTAINERS: Update my company e-mail address.
15473
15474 2018-01-22 Yao Qi <yao.qi@linaro.org>
15475
15476 * regcache.c (cooked_write_test): New function.
15477 (_initialize_regcache): Register the test.
15478
15479 2018-01-22 Yao Qi <yao.qi@linaro.org>
15480
15481 * ia64-tdep.c (ia64_pseudo_register_read): Call
15482 regcache->cooked_read instead of regcache_cooked_read_unsigned.
15483 * m32c-tdep.c (m32c_cat_read): Likewise.
15484 (m32c_r3r2r1r0_read): Likewise.
15485 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
15486 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
15487
15488 2018-01-22 Yao Qi <yao.qi@linaro.org>
15489
15490 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
15491 method raw_read instead of regcache_raw_read.
15492 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
15493 * arm-tdep.c (arm_neon_quad_read): Likewise.
15494 * avr-tdep.c (avr_pseudo_register_read): Likewise.
15495 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
15496 * frv-tdep.c (frv_pseudo_register_read): Likewise.
15497 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
15498 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
15499 (i386_pseudo_register_read_into_value): Likewise.
15500 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
15501 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
15502 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
15503 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
15504 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
15505 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
15506 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
15507 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
15508 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
15509
15510 2018-01-22 Yao Qi <yao.qi@linaro.org>
15511
15512 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
15513 * configure.tgt: Remove target mt.
15514 * mt-tdep.c: Remove.
15515 * regcache.c (cooked_read_test): Remove the check for mt.
15516
15517 2018-01-22 Yao Qi <yao.qi@linaro.org>
15518
15519 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
15520 instead of gdbarch_pseudo_register_read_value.
15521
15522 2018-01-22 Joel Brobecker <brobecker@adacore.com>
15523
15524 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
15525 language is Ada.
15526
15527 2018-01-22 Joel Brobecker <brobecker@adacore.com>
15528
15529 * linespec.c (create_sals_line_offset): Remove code that preserved
15530 the symtab_and_line's line number.
15531
15532 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15533
15534 * varobj.c (varobj_create): Don't set valid_block when creating a
15535 floating varobj.
15536
15537 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15538
15539 * varobj.c (varobj_create): Remove out of date comment.
15540
15541 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15542
15543 PR mi/20395
15544 * ada-exp.y (write_var_from_sym): Pass extra parameter when
15545 updating innermost block.
15546 * parse.c (innermost_block_tracker::update): Take extra type
15547 parameter, and check types match before updating innermost block.
15548 (write_dollar_variable): Update innermost block for registers.
15549 * parser-defs.h (enum innermost_block_tracker_type): New enum.
15550 (innermost_block_tracker::innermost_block_tracker): Initialise
15551 m_types member.
15552 (innermost_block_tracker::reset): Take type parameter.
15553 (innermost_block_tracker::update): Take type parameter, and pass
15554 type through as needed.
15555 (innermost_block_tracker::m_types): New member.
15556 * varobj.c (varobj_create): Pass type when reseting innermost
15557 block.
15558
15559 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15560
15561 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
15562 * ada-lang.c (resolve_subexp): Likewise.
15563 * breakpoint.c (set_breakpoint_condition) Likewise.
15564 (watch_command_1) Likewise.
15565 * c-exp.y (variable): Likewise.
15566 * d-exp.y (PrimaryExpression): Likewise.
15567 * f-exp.y (variable): Likewise.
15568 * go-exp.y (variable): Likewise.
15569 * m2-exp.y (variable): Likewise.
15570 * objfiles.c (objfile::~objfile): Likewise.
15571 * p-exp.y (variable): Likewise.
15572 * parse.c (innermost_block): Change type.
15573 * parser-defs.h (class innermost_block_tracker): New.
15574 (innermost_block): Change to innermost_block_tracker.
15575 * printcmd.c (display_command): Switch to innermost_block API.
15576 (do_one_display): Likewise.
15577 * rust-exp.y (do_one_display): Likewise.
15578 * symfile.c (clear_symtab_users): Likewise.
15579 * varobj.c (varobj_create): Switch to innermost_block API, replace
15580 use of innermost_block with block stored on varobj object.
15581
15582 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15583
15584 * expression.h (innermost_block): Remove declaration.
15585 * varobj.c: Add 'parser-defs.h' include.
15586
15587 2018-01-19 Tom Tromey <tom@tromey.com>
15588
15589 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
15590 symbols in the static and global blocks.
15591
15592 2018-01-19 James Clarke <jrtc27@jrtc27.com>
15593
15594 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
15595 gdb_ptrace.h, and move including gdb_wait.h ...
15596 * nat/linux-ptrace.h: ... to here.
15597
15598 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15599
15600 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
15601 inf_ptrace_detach_success.
15602 (inf_ptrace_detach_success): Add inferior parameter, use it
15603 instead of inferior_ptid, pass it to detach_inferior.
15604 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
15605 parameter.
15606 * inferior.c (detach_inferior): Add overload that takes an
15607 inferior object.
15608 * inferior.h (detach_inferior): Likewise.
15609 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
15610 use inferior_ptid, adjust call to inf_ptrace_detach_success.
15611 * linux-thread-db.c (thread_db_detach): Use inf parameter.
15612
15613 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15614
15615 * target.h (struct target_ops) <to_detach>: Add inferior
15616 parameter.
15617 (target_detach): Likewise.
15618 * target.c (dispose_inferior): Pass inferior down.
15619 (target_detach): Pass inferior down. Assert that it is equal to
15620 the current inferior.
15621 * aix-thread.c (aix_thread_detach): Pass inferior down.
15622 * corefile.c (core_file_command): Pass current_inferior() down.
15623 * corelow.c (core_detach): Add inferior parameter.
15624 * darwin-nat.c (darwin_detach): Likewise.
15625 * gnu-nat.c (gnu_detach): Likewise.
15626 * inf-ptrace.c (inf_ptrace_detach): Likewise.
15627 * infcmd.c (detach_command): Pass current_inferior() down to
15628 target_detach.
15629 * infrun.c (follow_fork_inferior): Pass parent_inf to
15630 target_detach.
15631 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
15632 target_detach.
15633 * linux-nat.c (linux_nat_detach): Add inferior parameter.
15634 * linux-thread-db.c (thread_db_detach): Likewise.
15635 * nto-procfs.c (procfs_detach): Likewise.
15636 * procfs.c (procfs_detach): Likewise.
15637 * record.c (record_detach): Likewise.
15638 * record.h (struct inferior): Forward-declare.
15639 (record_detach): Add inferior parameter.
15640 * remote-sim.c (gdbsim_detach): Likewise.
15641 * remote.c (remote_detach_1): Likewise.
15642 (remote_detach): Likewise.
15643 (extended_remote_detach): Likewise.
15644 * sol-thread.c (sol_thread_detach): Likewise.
15645 * target-debug.h (target_debug_print_inferior_p): New macro.
15646 * target-delegates.c: Re-generate.
15647 * top.c (kill_or_detach): Pass inferior down to target_detach.
15648 * windows-nat.c (windows_detach): Add inferior parameter.
15649
15650 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15651
15652 * target.h (struct target_ops) <to_detach>: Remove args
15653 parameter.
15654 (target_detach): Likewise.
15655 * target.c (dispose_inferior): Adjust.
15656 (target_detach): Remove args parameter, adjust.
15657 * aix-thread.c (aix_thread_detach): Adjust.
15658 * corefile.c (core_file_command): Adjust.
15659 * corelow.c (core_detach): Adjust.
15660 * darwin-nat.c (darwin_detach): Adjust.
15661 * gnu-nat.c (gnu_detach): Adjust.
15662 * inf-ptrace.c (inf_ptrace_detach): Adjust.
15663 * infcmd.c (detach_command): Adjust
15664 * infrun.c (follow_fork_inferior): Adjust.
15665 (handle_vfork_child_exec_or_exit): Adjust.
15666 * linux-fork.c (linux_fork_detach): Remove args parameter.
15667 * linux-fork.h (linux_fork_detach): Likewise.
15668 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
15669 * linux-thread-db.c (thread_db_detach): Likewise.
15670 * nto-procfs.c (procfs_detach): Likewise.
15671 * procfs.c (procfs_detach): Likewise.
15672 (do_detach): Remove signo parameter.
15673 * record.c (record_detach): Remove args parameter.
15674 * record.h (record_detach): Likewise.
15675 * remote-sim.c (gdbsim_detach): Likewise.
15676 * remote.c (remote_detach_1): Likewise.
15677 (remote_detach): Likewise.
15678 (extended_remote_detach): Likewise.
15679 * sol-thread.c (sol_thread_detach): Likewise.
15680 * target-delegates.c: Re-generate.
15681 * top.c (struct qt_args) <args>: Remove field.
15682 (kill_or_detach): Don't pass args.
15683 (quit_force): Don't set args.
15684 * windows-nat.c (windows_detach): Remove args parameter.
15685
15686 2018-01-19 Yao Qi <yao.qi@linaro.org>
15687
15688 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
15689 (arm_linux_init_abi): Install it.
15690
15691 2018-01-19 Yao Qi <yao.qi@linaro.org>
15692
15693 * osabi.c (gdb_osabi_names): Extend the regexp for
15694 arm-linux-gnueabihf.
15695
15696 2018-01-18 Yao Qi <yao.qi@linaro.org>
15697
15698 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
15699 m_abbrevs.
15700 (abbrev_table::add_abbrev): Update.
15701 (abbrev_table::lookup_abbrev): Update.
15702
15703 2018-01-18 Yao Qi <yao.qi@linaro.org>
15704
15705 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
15706
15707 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15708
15709 * compile/compile.c (compile_to_object): Convert "triplet_rx"
15710 to "std::string".
15711
15712 2018-01-17 Tom Tromey <tom@tromey.com>
15713
15714 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
15715
15716 2018-01-17 Tom Tromey <tom@tromey.com>
15717
15718 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
15719 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
15720 (create_array_type_with_stride): Update.
15721 * dwarf2read.c (set_die_type): Update.
15722
15723 2018-01-17 Tom Tromey <tom@tromey.com>
15724
15725 * dwarf2read.c (delayed_method_info): Remove typedef.
15726 (dwarf2_cu::method_info): Now a std::vector.
15727 (add_to_method_list): Update.
15728 (free_delayed_list): Remove.
15729 (compute_delayed_physnames): Update.
15730 (process_full_comp_unit, process_full_type_unit): Clear the method
15731 list. Remove cleanups.
15732 (psymtab_include_file_name): Add name_holder parameter. Use
15733 unique_xmalloc_ptr.
15734 (dwarf_decode_lines): Update.
15735
15736 2018-01-17 Tom Tromey <tom@tromey.com>
15737 Simon Marchi <simon.marchi@ericsson.com>
15738
15739 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
15740 (dwarf2_per_objfile::free_cached_comp_units)
15741 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15742 (init_cutu_and_read_dies_no_follow): Update.
15743 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
15744 (dwarf2_cu::~dwarf2_cu): New.
15745 (free_heap_comp_unit, free_stack_comp_unit): Remove.
15746 (age_cached_comp_units, free_one_cached_comp_unit): Update.
15747
15748 2018-01-17 Tom Tromey <tom@tromey.com>
15749 Simon Marchi <simon.marchi@ericsson.com>
15750
15751 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
15752 (struct die_reader_specs) <abbrev_table>: New member.
15753 (struct abbrev_table): Add constructor.
15754 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
15755 <abbrev_obstack>: Now an auto_obstack.
15756 (abbrev_table_up): New typedef.
15757 (init_cu_die_reader): Add abbrev_table parameter.
15758 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
15759 Add result_dwo_abbrev_table.
15760 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15761 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
15762 Update.
15763 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
15764 parameter.
15765 (skip_children): Update.
15766 (abbrev_table::alloc_abbrev): Rename from
15767 abbrev_table_alloc_abbrev.
15768 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
15769 (abbrev_table::lookup_abbrev): Rename from
15770 abbrev_table_lookup_abbrev.
15771 (abbrev_table_read_table): Return abbrev_table_up.
15772 (abbrev_table_free, abbrev_table_free_cleanup)
15773 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
15774 (load_partial_dies): Update.
15775
15776 2018-01-17 Tom Tromey <tom@tromey.com>
15777
15778 * dwarf2read.c (dwarf2_compute_name): Update comment.
15779 (read_func_scope, read_variable): Update.
15780 (new_symbol): Remove.
15781 (new_symbol_full): Rename to new_symbol.
15782
15783 2018-01-17 Mike Gulick <mgulick@mathworks.com>
15784
15785 PR gdb/16577
15786 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
15787 a warning instead of throwing an error, set section size to 0 and return
15788 NULL.
15789 * gdb_bfd.h (gdb_bfd_map_section): Update description.
15790
15791 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15792
15793 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
15794 std::string.
15795 (linux_ptrace_attach_fail_reason_string): Likewise.
15796 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
15797 Likewise.
15798 (linux_ptrace_attach_fail_reason_string): Likewise.
15799 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
15800
15801 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15802
15803 * linux-nat.c (linux_nat_attach): Remove xstrdup.
15804
15805 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
15806
15807 PR gdb/21559
15808 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
15809 checking for fs_base/gs_base fields in struct user_regs_struct.
15810 * configure: Regenerate.
15811
15812 2018-01-17 Yao Qi <yao.qi@linaro.org>
15813
15814 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
15815 function.
15816 (aarch64_linux_init_abi): Install it to gdbarch hook
15817 gcc_target_options.
15818
15819 2018-01-15 Pedro Alves <palves@redhat.com>
15820
15821 * common/signals-state-save-restore.c
15822 (save_original_signals_state): Fix typos.
15823
15824 2017-01-12 Tom Tromey <tom@tromey.com>
15825 Sergio Durigan Junior <sergiodj@redhat.com>
15826
15827 * Makefile.in (install-only): Install gdb-add-index.
15828
15829 2018-01-12 John Baldwin <jhb@FreeBSD.org>
15830
15831 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
15832
15833 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
15834
15835 * infrun.c (keep_going_pass_signal): Clear step-over info when
15836 insert_breakpoints fails.
15837
15838 2018-01-11 Pedro Alves <palves@redhat.com>
15839
15840 PR gdb/22583
15841 * infrun.c (resume): Rename to ...
15842 (resume_1): ... this.
15843 (resume): Reimplement as wrapper around resume_1.
15844
15845 2018-01-11 Pedro Alves <palves@redhat.com>
15846
15847 PR remote/22597
15848 * remote.c (remote_parse_stop_reply): Default to the last-set
15849 general thread instead of to 'magic_null_ptid'.
15850
15851 2018-01-10 Pedro Alves <palves@redhat.com>
15852
15853 * language.h (language_get_symbol_name_matcher): Rename ...
15854 (get_symbol_name_matcher): ... this.
15855 * language.c (language_get_symbol_name_matcher): Ditto.
15856 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
15857 callers adjusted.
15858
15859 2018-01-10 Pedro Alves <palves@redhat.com>
15860
15861 PR gdb/22670
15862 * dwarf2read.c
15863 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
15864 Adjust to use language_get_symbol_name_matcher instead of
15865 language_defn::la_get_symbol_name_matcher.
15866 * language.c (language_get_symbol_name_matcher): If in Ada mode
15867 and the lookup name is a verbatim match, return Ada's matcher.
15868 * language.h (language_get_symbol_name_matcher): Adjust comment.
15869 (ada_lookup_name_info::verbatim_p):: New method.
15870
15871 2018-01-10 Pedro Alves <palves@redhat.com>
15872
15873 PR gdb/22670
15874 * ada-lang.c (ada_collect_symbol_completion_matches): If the
15875 minsym's language is language_auto or language_cplus, pass down
15876 language_ada instead.
15877 * symtab.c (compare_symbol_name): Don't frob symbol language here.
15878
15879 2018-01-10 Pedro Alves <palves@redhat.com>
15880
15881 PR gdb/22670
15882 * minsyms.c (linkage_name_str): New function.
15883 (iterate_over_minimal_symbols): Use it.
15884
15885 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15886
15887 * NEWS: Document that 'info proc' now works on FreeBSD.
15888
15889 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15890
15891 * configure.ac: Check for kinfo_getfile in libutil.
15892 * configure: Regenerate.
15893 * config.in: Regenerate.
15894 * fbsd-nat.c: Include "fbsd-tdep.h".
15895 (fbsd_fetch_cmdline): New.
15896 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
15897 rather than calling error.
15898 (fbsd_info_proc): New.
15899 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
15900 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
15901 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
15902
15903 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15904
15905 * fbsd-nat.c (struct free_deleter): Remove.
15906 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
15907
15908 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15909
15910 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
15911 NULL for an empty pathname.
15912
15913 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15914
15915 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
15916 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
15917 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
15918 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
15919 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
15920 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
15921 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
15922 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
15923 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
15924 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
15925 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
15926 (fbsd_core_fetch_timeval, fbsd_print_sigset)
15927 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
15928 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
15929 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
15930
15931 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
15932
15933 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
15934 (gnu_xfer_auxv): New function.
15935 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
15936 TARGET_OBJECT_AUXV.
15937
15938 2018-01-08 Yao Qi <yao.qi@linaro.org>
15939 Simon Marchi <simon.marchi@ericsson.com>
15940
15941 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
15942 common/selftest.c.
15943 (COMMON_OBS): Remove selftest.o.
15944 * configure.ac: Append selftest-arch.c and common/selftest.c to
15945 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
15946 * configure: Re-generated.
15947 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
15948 GDB_SELF_TEST.
15949 (maintenance_info_selftests): Likewise.
15950
15951 2018-01-08 Xavier Roirand <roirand@adacore.com>
15952
15953 * ada-valprint.c (val_print_packed_array_elements): Use
15954 proper number of elements when printing an array indexed
15955 by an enumeration type.
15956
15957 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15958
15959 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
15960 (dw2_get_file_names_reader): Adjust.
15961 (lookup_dwo_signatured_type): Adjust.
15962 (lookup_dwp_signatured_type): Adjust.
15963 (lookup_signatured_type): Adjust.
15964 (create_type_unit_group): Adjust.
15965 (get_type_unit_group): Adjust.
15966 (process_psymtab_comp_unit_reader): Adjust.
15967 (build_type_psymtabs_reader): Adjust.
15968 (scan_partial_symbols): Adjust.
15969 (add_partial_symbol): Adjust.
15970 (add_partial_subprogram): Adjust.
15971 (peek_die_abbrev): Adjust.
15972 (fixup_go_packaging): Adjust.
15973 (process_imported_unit_die): Adjust.
15974 (dwarf2_compute_name): Adjust.
15975 (dwarf2_physname): Adjust.
15976 (read_import_statement): Adjust.
15977 (handle_DW_AT_stmt_list): Adjust.
15978 (read_file_scope): Adjust.
15979 (read_func_scope): Adjust.
15980 (read_lexical_block_scope): Adjust.
15981 (read_call_site_scope): Adjust.
15982 (read_variable): Adjust.
15983 (dwarf2_rnglists_process): Adjust.
15984 (dwarf2_ranges_process): Adjust.
15985 (dwarf2_ranges_read): Adjust.
15986 (dwarf2_get_pc_bounds): Adjust.
15987 (dwarf2_record_block_ranges): Adjust.
15988 (dwarf2_add_field): Adjust.
15989 (dwarf2_add_member_fn): Adjust.
15990 (read_structure_type): Adjust.
15991 (process_structure_scope): Adjust.
15992 (read_enumeration_type): Adjust.
15993 (read_array_type): Adjust.
15994 (mark_common_block_symbol_computed): Adjust.
15995 (read_common_block): Adjust.
15996 (read_namespace_type): Adjust.
15997 (read_namespace): Adjust.
15998 (read_module_type): Adjust.
15999 (read_tag_pointer_type): Adjust.
16000 (read_tag_ptr_to_member_type): Adjust.
16001 (read_tag_string_type): Adjust.
16002 (read_subroutine_type): Adjust.
16003 (read_typedef): Adjust.
16004 (read_base_type): Adjust.
16005 (attr_to_dynamic_prop): Adjust.
16006 (read_subrange_type): Adjust.
16007 (read_unspecified_type): Adjust.
16008 (dwarf2_read_abbrevs): Adjust.
16009 (load_partial_dies): Adjust.
16010 (read_partial_die): Adjust.
16011 (find_partial_die): Adjust.
16012 (guess_partial_die_structure_name): Adjust.
16013 (fixup_partial_die): Adjust.
16014 (read_attribute_value): Adjust.
16015 (read_addr_index): Adjust.
16016 (read_addr_index_from_leb128): Adjust.
16017 (read_str_index): Adjust.
16018 (dwarf2_string_attr): Adjust.
16019 (get_debug_line_section): Adjust.
16020 (dwarf_decode_line_header): Adjust.
16021 (lnp_state_machine::check_line_address): Adjust.
16022 (dwarf_decode_lines_1): Adjust.
16023 (dwarf_decode_lines): Adjust.
16024 (dwarf2_start_symtab): Adjust.
16025 (var_decode_location): Adjust.
16026 (new_symbol_full): Adjust.
16027 (dwarf2_const_value_data): Adjust.
16028 (dwarf2_const_value_attr): Adjust.
16029 (dwarf2_const_value): Adjust.
16030 (die_type): Adjust.
16031 (die_containing_type): Adjust.
16032 (build_error_marker_type): Adjust.
16033 (lookup_die_type): Adjust.
16034 (guess_full_die_structure_name): Adjust.
16035 (anonymous_struct_prefix): Adjust.
16036 (determine_prefix): Adjust.
16037 (dwarf2_name): Adjust.
16038 (follow_die_ref_or_sig): Adjust.
16039 (follow_die_offset): Adjust.
16040 (follow_die_ref): Adjust.
16041 (follow_die_sig_1): Adjust.
16042 (follow_die_sig): Adjust.
16043 (get_signatured_type): Adjust.
16044 (get_DW_AT_signature_type): Adjust.
16045 (decode_locdesc): Adjust.
16046 (dwarf_decode_macros): Adjust.
16047 (cu_debug_loc_section): Adjust.
16048 (fill_in_loclist_baton): Adjust.
16049 (dwarf2_symbol_mark_computed): Adjust.
16050 (init_one_comp_unit): Don't assign
16051 dwarf2_cu::dwarf2_per_objfile.
16052 (set_die_type): Adjust.
16053
16054 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16055
16056 * dwarf2read.c (struct mapped_debug_names): Add constructor.
16057 <dwarf2_per_objfile>: New field.
16058 (dwarf2_per_objfile): Remove global.
16059 (get_dwarf2_per_objfile): New function.
16060 (set_dwarf2_per_objfile): New function.
16061 (dwarf2_build_psymtabs_hard): Change objfile parameter to
16062 dwarf2_per_objfile.
16063 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
16064 (read_abbrev_offset): Likewise.
16065 (read_indirect_string): Likewise.
16066 (read_indirect_line_string): Likewise.
16067 (read_indirect_string_at_offset): Likewise.
16068 (read_indirect_string_from_dwz): Likewise.
16069 (dwarf2_find_containing_comp_unit): Change objfile parameter to
16070 dwarf2_per_objfile.
16071 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
16072 (create_all_comp_units): Change objfile parameter to
16073 dwarf2_per_objfile.
16074 (create_all_type_units): Likewise.
16075 (process_queue): Add dwarf2_per_objfile parameter.
16076 (read_and_check_comp_unit_head): Likewise.
16077 (lookup_dwo_unit_in_dwp): Likewise.
16078 (get_dwp_file): Likewise.
16079 (process_cu_includes): Likewise.
16080 (struct free_dwo_file_cleanup_data): New struct.
16081 (dwarf2_has_info): Use get_dwarf2_per_objfile and
16082 set_dwarf2_per_objfile.
16083 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
16084 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
16085 context, adjust calls.
16086 (dw2_instantiate_symtab): Likewise.
16087 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
16088 (dw2_get_cu): Likewise.
16089 (create_cu_from_index_list): Change objfile parameter to
16090 dwarf2_per_objfile.
16091 (create_cus_from_index_list): Get dwarf2_per_objfile from
16092 context, adjust calls.
16093 (create_cus_from_index): Likewise.
16094 (create_signatured_type_table_from_index): Change objfile
16095 parameter to dwarf2_per_objfile.
16096 (create_signatured_type_table_from_debug_names): Change objfile
16097 parameter to dwarf2_per_objfile.
16098 (create_addrmap_from_index): Likewise.
16099 (create_addrmap_from_aranges): Likewise.
16100 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
16101 (dw2_setup): Remove.
16102 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
16103 context.
16104 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
16105 get_dwarf2_per_objfile.
16106 (dw2_forget_cached_source_info): Likewise.
16107 (dw2_map_symtabs_matching_filename): Likewise.
16108 (struct dw2_symtab_iterator) <index>: Remove.
16109 <dwarf2_per_objfile>: New field.
16110 (dw2_symtab_iter_init): Replace index parameter with
16111 dwarf2_per_objfile.
16112 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
16113 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
16114 (dw2_print_stats): Likewise.
16115 (dw2_dump): Likewise.
16116 (dw2_expand_symtabs_for_function): Likewise.
16117 (dw2_expand_all_symtabs): Likewise.
16118 (dw2_expand_symtabs_with_fullname): Likewise.
16119 (dw2_expand_marked_cus): Replace index and objfile parameters
16120 with dwarf2_per_objfile.
16121 (dw_expand_symtabs_matching_file_matcher): Add
16122 dwarf2_per_objfile parameter and adjust calls.
16123 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
16124 adjust calls.
16125 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
16126 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
16127 adjust calls.
16128 (create_cus_from_debug_names_list): Replace objfile parameter
16129 with dwarf2_per_objfile and adjust calls.
16130 (create_cus_from_debug_names): Likewise.
16131 (dwarf2_read_debug_names): Likewise.
16132 (mapped_debug_names::namei_to_name): Adjust call.
16133 (dw2_debug_names_iterator::next): Likewise.
16134 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
16135 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
16136 (dw2_debug_names_dump): Likewise.
16137 (dw2_debug_names_expand_symtabs_for_function): Likewise.
16138 (dw2_debug_names_expand_symtabs_matching): Likewise.
16139 (dwarf2_initialize_objfile): Likewise.
16140 (dwarf2_build_psymtabs): Likewise.
16141 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
16142 this_cu.
16143 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
16144 (read_and_check_comp_unit_head): Likewise.
16145 (read_abbrev_offset): Likewise.
16146 (create_debug_type_hash_table): Likewise.
16147 (create_debug_types_hash_table): Likewise.
16148 (create_all_type_units): Replace objfile parameter with
16149 dwarf2_per_objfile.
16150 (add_type_unit): Add dwarf2_per_objfile parameter.
16151 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
16152 with dwarf2_per_objfile.
16153 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
16154 (lookup_dwp_signatured_type): Likewise.
16155 (lookup_signatured_type): Likewise.
16156 (read_cutu_die_from_dwo): Likewise.
16157 (init_tu_and_read_dwo_dies): Likewise.
16158 (init_cutu_and_read_dies): Likewise.
16159 (init_cutu_and_read_dies_no_follow): Likewise.
16160 (allocate_type_unit_groups_table): Add objfile parameter.
16161 (create_type_unit_group): Use dwarf2_per_objfile from cu.
16162 (get_type_unit_group): Likewise.
16163 (process_psymtab_comp_unit): Update call.
16164 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
16165 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
16166 (print_tu_stats): Likewise.
16167 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
16168 in void* parameter.
16169 (build_type_psymtabs): Change objfile parameter to
16170 dwarf2_per_objfile.
16171 (process_skeletonless_type_unit): Use dwarf2_per_objfile
16172 passed in void* parameter.
16173 (process_skeletonless_type_units): Change objfile parameter to
16174 dwarf2_per_objfile.
16175 (set_partial_user): Likewise.
16176 (dwarf2_build_psymtabs_hard): Likewise.
16177 (read_comp_units_from_section): Likewise.
16178 (create_all_comp_units): Likewise.
16179 (scan_partial_symbols): Update calls.
16180 (add_partial_symbol): Likewise.
16181 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
16182 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
16183 (process_queue): Add dwarf2_per_objfile parameter.
16184 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
16185 (compute_compunit_symtab_includes): Likewise.
16186 (process_cu_includes): Add dwarf2_per_objfile parameter.
16187 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
16188 (process_full_type_unit): Likewise.
16189 (process_imported_unit_die): Update call.
16190 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
16191 (read_file_scope): Likewise.
16192 (allocate_dwo_file_hash_table): Add objfile parameter.
16193 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
16194 (create_cus_hash_table): Likewise.
16195 (create_dwp_hash_table): Likewise.
16196 (create_dwo_unit_in_dwp_v1): Likewise.
16197 (create_dwp_v2_section): Likewise.
16198 (create_dwo_unit_in_dwp_v2): Likewise.
16199 (lookup_dwo_unit_in_dwp): Likewise.
16200 (try_open_dwop_file): Likewise.
16201 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
16202 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
16203 cleanup to include a reference to dwarf2_per_objfile.
16204 (open_dwp_file): Add dwarf2_per_objfile parameter.
16205 (open_and_init_dwp_file): Likewise.
16206 (get_dwp_file): Likewise.
16207 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
16208 (queue_and_load_all_dwo_tus): Update call.
16209 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
16210 data.
16211 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
16212 (dwarf2_ranges_process): Likewise.
16213 (dwarf2_get_pc_bounds): Likewise.
16214 (mark_common_block_symbol_computed): Likewise.
16215 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
16216 (dwarf2_read_abbrevs): Update call.
16217 (read_partial_die): Use dwarf2_per_objfile from cu.
16218 (find_partial_die): Likewise.
16219 (fixup_partial_die): Likewise.
16220 (read_attribute_value): Likewise.
16221 (read_indirect_string_at_offset_from): Add objfile parameter.
16222 (read_indirect_string_at_offset): Add dwarf2_per_objfile
16223 parameter.
16224 (read_indirect_string_from_dwz): Add objfile parameter.
16225 (read_indirect_string): Add objfile parameter.
16226 (read_addr_index_1): Add dwarf2_per_objfile parameter.
16227 (read_addr_index): Use dwarf2_per_objfile from cu.
16228 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
16229 call dw2_setup.
16230 (read_str_index): Use dwarf2_per_objfile from cu.
16231 (get_debug_line_section): Likewise.
16232 (read_formatted_entries): Add dwarf2_per_objfile parameter.
16233 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
16234 (new_symbol_full): Use dwarf2_per_objfile from cu.
16235 (build_error_marker_type): Likewise.
16236 (lookup_die_type): Likewise.
16237 (determine_prefix): Likewise.
16238 (follow_die_offset): Likewise.
16239 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
16240 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
16241 (dwarf2_fetch_die_type_sect_off): Likewise.
16242 (dwarf2_get_die_type): Likewise.
16243 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
16244 (get_signatured_type): Likewise.
16245 (get_DW_AT_signature_type): Likewise.
16246 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
16247 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
16248 (cu_debug_loc_section): Likewise.
16249 (fill_in_loclist_baton): Likewise.
16250 (dwarf2_symbol_mark_computed): Likewise.
16251 (dwarf2_find_containing_comp_unit): Change objfile parameter to
16252 dwarf2_per_objfile.
16253 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
16254 parameter.
16255 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
16256 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
16257 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
16258 (set_die_type): Use dwarf2_free_objfile from cu.
16259 (get_die_type_at_offset): Likewise.
16260 (dwarf2_per_objfile_free): Don't assign global variable.
16261 (debug_names) <constructor>: Add dwarf2_per_objfile
16262 parameter, update m_debugstrlookup construction.
16263 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
16264 parameter.
16265 <m_dwarf2_per_objfile>: New field.
16266 <lookup>: Use m_dwarf2_per_objfile.
16267 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
16268 (psyms_seen_size): Likewise.
16269 (write_gdbindex): Replace objfile parameter with
16270 dwarf2_per_objfile.
16271 (write_debug_names): Likewise.
16272 (write_psymtabs_to_index): Likewise.
16273 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
16274 calls.
16275
16276 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16277
16278 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
16279 <dwarf2_per_objfile>: New field.
16280 (struct dwarf2_per_cu_data) <objfile>: Remove.
16281 <dwarf2_per_objfile>: New field.
16282 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
16283 of objfile.
16284 (create_signatured_type_table_from_index): Likewise.
16285 (create_debug_type_hash_table): Likewise.
16286 (fill_in_sig_entry_from_dwo_entry): Likewise.
16287 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
16288 (create_type_unit_group): Assign dwarf2_per_objfile instead of
16289 objfile.
16290 (create_partial_symtab): Access objfile through
16291 dwarf2_per_objfile.
16292 (process_psymtab_comp_unit_reader): Likewise.
16293 (read_comp_units_from_section): Likewise.
16294 (scan_partial_symbols): Likewise.
16295 (add_partial_symbol): Likewise.
16296 (add_partial_subprogram): Likewise.
16297 (peek_die_abbrev): Likewise.
16298 (fixup_go_packaging): Likewise.
16299 (process_full_comp_unit): Likewise.
16300 (process_full_type_unit): Likewise.
16301 (process_imported_unit_die): Likewise.
16302 (dwarf2_compute_name): Likewise.
16303 (dwarf2_physname): Likewise.
16304 (read_import_statement): Likewise.
16305 (create_cus_hash_table): Assign dwarf2_physname instead of
16306 objfile.
16307 (read_func_scope): Access objfile through dwarf2_per_objfile.
16308 (read_lexical_block_scope): Likewise.
16309 (read_call_site_scope): Likewise.
16310 (read_variable): Likewise.
16311 (dwarf2_rnglists_process): Likewise.
16312 (dwarf2_ranges_process): Likewise.
16313 (dwarf2_ranges_read): Likewise.
16314 (dwarf2_record_block_ranges): Likewise.
16315 (dwarf2_add_field): Likewise.
16316 (dwarf2_add_member_fn): Likewise.
16317 (read_structure_type): Likewise.
16318 (process_structure_scope): Likewise.
16319 (read_enumeration_type): Likewise.
16320 (read_array_type): Likewise.
16321 (read_common_block): Likewise.
16322 (read_namespace_type): Likewise.
16323 (read_namespace): Likewise.
16324 (read_module_type): Likewise.
16325 (read_tag_pointer_type): Likewise.
16326 (read_tag_ptr_to_member_type): Likewise.
16327 (read_tag_string_type): Likewise.
16328 (read_subroutine_type): Likewise.
16329 (read_typedef): Likewise.
16330 (read_base_type): Likewise.
16331 (attr_to_dynamic_prop): Likewise.
16332 (read_subrange_type): Likewise.
16333 (read_unspecified_type): Likewise.
16334 (load_partial_dies): Likewise.
16335 (read_partial_die): Likewise.
16336 (find_partial_die): Likewise.
16337 (guess_partial_die_structure_name): Likewise.
16338 (fixup_partial_die): Likewise.
16339 (read_attribute_value): Likewise.
16340 (read_addr_index_from_leb128): Likewise.
16341 (dwarf2_read_addr_index): Likewise.
16342 (dwarf2_string_attr): Likewise.
16343 (lnp_state_machine::check_line_address): Likewise.
16344 (dwarf_decode_lines_1): Likewise.
16345 (dwarf_decode_lines): Likewise.
16346 (dwarf2_start_symtab): Likewise.
16347 (var_decode_location): Likewise.
16348 (new_symbol_full): Likewise.
16349 (dwarf2_const_value_data): Likewise.
16350 (dwarf2_const_value_attr): Likewise.
16351 (dwarf2_const_value): Likewise.
16352 (die_type): Likewise.
16353 (die_containing_type): Likewise.
16354 (lookup_die_type): Likewise.
16355 (guess_full_die_structure_name): Likewise.
16356 (anonymous_struct_prefix): Likewise.
16357 (dwarf2_name): Likewise.
16358 (follow_die_ref_or_sig): Likewise.
16359 (follow_die_offset): Likewise.
16360 (follow_die_ref): Likewise.
16361 (dwarf2_fetch_die_loc_sect_off): Likewise.
16362 (dwarf2_fetch_constant_bytes): Likewise.
16363 (dwarf2_fetch_die_type_sect_off): Likewise.
16364 (dwarf2_get_die_type): Likewise.
16365 (follow_die_sig): Likewise.
16366 (decode_locdesc): Likewise.
16367 (dwarf2_per_cu_objfile): Likewise.
16368 (dwarf2_per_cu_text_offset): Likewise.
16369 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
16370 objfile.
16371 (set_die_type): Access objfile through
16372 dwarf2_per_objfile.
16373
16374 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16375
16376 * valprint.c (converted_character_d): Remove typedef.
16377 (DEF_VEC_O (converted_character_d)): Remove.
16378 (count_next_character): Use std::vector.
16379 (print_converted_chars_to_obstack): Likewise.
16380 (generic_printstr): Likewise.
16381
16382 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16383
16384 * xml-support.h (struct gdb_xml_value): Add constructor.
16385 <value>: Change type to unique_xmalloc_ptr.
16386 (gdb_xml_value_s): Remove typedef.
16387 (DEF_VEC_O (gdb_xml_value_s)): Remove.
16388 (gdb_xml_element_start_handler): Change parameter type to
16389 std::vector.
16390 (xml_find_attribute): Likewise.
16391 * xml-support.c (xml_find_attribute): Change parameter type to
16392 std::vector and adjust.
16393 (gdb_xml_values_cleanup): Remove.
16394 (gdb_xml_parser::start_element): Adjust to std::vector.
16395 (xinclude_start_include): Change paraeter type to std::vector
16396 and adjust.
16397 * btrace.c (check_xml_btrace_version): Likewise.
16398 (parse_xml_btrace_block): Likewise.
16399 (parse_xml_btrace_pt_config_cpu): Likewise.
16400 (parse_xml_btrace_pt): Likewise.
16401 (parse_xml_btrace_conf_bts): Likewise.
16402 (parse_xml_btrace_conf_pt): Likewise.
16403 * memory-map.c (memory_map_start_memory): Likewise.
16404 (memory_map_start_property): Likewise.
16405 * osdata.c (osdata_start_osdata): Likewise.
16406 (osdata_start_item): Likewise.
16407 (osdata_start_column): Likewise.
16408 * remote.c (start_thread): Likewise.
16409 * solib-aix.c (library_list_start_library): Likewise.
16410 (library_list_start_list): Likewise.
16411 * solib-svr4.c (library_list_start_library): Likewise.
16412 (svr4_library_list_start_list): Likewise.
16413 * solib-target.c (library_list_start_segment): Likewise.
16414 (library_list_start_section): Likewise.
16415 (library_list_start_library): Likewise.
16416 (library_list_start_list): Likewise.
16417 * tracepoint.c (traceframe_info_start_memory): Likewise.
16418 (traceframe_info_start_tvar): Likewise.
16419 * xml-syscall.c (syscall_start_syscall): Likewise.
16420 * xml-tdesc.c (tdesc_start_target): Likewise.
16421 (tdesc_start_feature): Likewise.
16422 (tdesc_start_reg): Likewise.
16423 (tdesc_start_union): Likewise.
16424 (tdesc_start_struct): Likewise.
16425 (tdesc_start_flags): Likewise.
16426 (tdesc_start_enum): Likewise.
16427 (tdesc_start_field): Likewise.
16428 (tdesc_start_enum_value): Likewise.
16429 (tdesc_start_vector): Likewise.
16430
16431 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16432
16433 * extension.h (struct xmethod_worker) <clone>: Remove.
16434 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
16435 Remove.
16436 (python_xmethod_worker::clone): Remove.
16437 * valops.c (find_overload_match): Use std::move instead of
16438 clone.
16439
16440 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16441
16442 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
16443 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
16444 <free_xmethod_worker_data>: Remove.
16445 <get_matching_xmethod_workers>: Chance VEC to std::vector.
16446 <get_xmethod_arg_types>: Remove.
16447 <get_xmethod_result_type>: Remove.
16448 <invoke_xmethod>: Remove.
16449 * extension.c (new_xmethod_worker): Remove.
16450 (clone_xmethod_worker): Remove.
16451 (get_matching_xmethod_workers): Return void, pass std::vector by
16452 pointer.
16453 (get_xmethod_arg_types): Rename to...
16454 (xmethod_worker::get_arg_types): ... this, and adjust.
16455 (get_xmethod_result_type): Rename to...
16456 (xmethod_worker::get_result_type): ... this, and adjust.
16457 (invoke_xmethod): Remove.
16458 (free_xmethod_worker): Remove.
16459 (free_xmethod_worker_vec): Remove.
16460 * extension.h (enum ext_lang_rc): Move here from
16461 extension-priv.h.
16462 (struct xmethod_worker): Add constructor and destructor.
16463 <data>: Remove.
16464 <value>: Remove.
16465 <invoke, clone, do_get_result_type, do_get_arg_types>: New
16466 virtual pure methods.
16467 <get_arg_types, get_result_type>: New methods.
16468 (xmethod_worker_ptr): Remove typedef.
16469 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
16470 (xmethod_worker_vec): Remove typedef.
16471 (xmethod_worker_up): New typedef.
16472 (invoke_xmethod): Remove.
16473 (clone_xmethod_worker): Remove.
16474 (free_xmethod_worker): Remove.
16475 (free_xmethod_worker_vec): Remove.
16476 (get_xmethod_arg_types): Remove.
16477 (get_xmethod_result_type): Remove.
16478 * valops.c (find_method_list): Use std::vector, don't use
16479 intermediate vector.
16480 (value_find_oload_method_list): Use std::vector.
16481 (find_overload_match): Use std::vector.
16482 (find_oload_champ): Use std::vector.
16483 * value.c (value_free): Use operator delete.
16484 (value_of_xmethod): Rename to...
16485 (value_from_xmethod): ... this. Don't assign
16486 xmethod_worker::value, take rvalue-reference.
16487 (result_type_of_xmethod): Adjust.
16488 (call_xmethod): Adjust.
16489 * value.h: Include extension.h.
16490 (struct xmethod_worker): Don't forward-declare.
16491 (value_of_xmethod): Rename to...
16492 (value_from_xmethod): ... this, take rvalue-reference.
16493 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
16494 (struct python_xmethod_worker): ... this, add constructor and
16495 destructor.
16496 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
16497 (gdbpy_free_xmethod_worker_data): Rename to...
16498 (python_xmethod_worker::~python_xmethod_worker): ... this and
16499 adjust.
16500 (gdbpy_clone_xmethod_worker_data): Rename to...
16501 (python_xmethod_worker::clone): ... this and adjust.
16502 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
16503 temporary vector.
16504 (gdbpy_get_xmethod_arg_types): Rename to...
16505 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
16506 (gdbpy_get_xmethod_result_type): Rename to...
16507 (python_xmethod_worker::do_get_result_type): ... this and
16508 adjust.
16509 (gdbpy_invoke_xmethod): Rename to...
16510 (python_xmethod_worker::invoke): ... this and adjust.
16511 (new_python_xmethod_worker): Rename to...
16512 (python_xmethod_worker::python_xmethod_worker): ... this and
16513 adjust.
16514 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
16515 Remove.
16516 (gdbpy_free_xmethod_worker_data): Remove.
16517 (gdbpy_get_matching_xmethod_workers): Use std::vector.
16518 (gdbpy_get_xmethod_arg_types): Remove.
16519 (gdbpy_get_xmethod_result_type): Remove.
16520 (gdbpy_invoke_xmethod): Remove.
16521 * python/python.c (python_extension_ops): Remove obsolete
16522 callbacks.
16523
16524 2018-01-05 Pedro Alves <palves@redhat.com>
16525
16526 PR gdb/18653
16527 * common/signals-state-save-restore.c
16528 (save_original_signals_state): New parameter 'quiet'. Warn if we
16529 find a custom handler preinstalled, instead of internal erroring.
16530 But only warn if !quiet.
16531 * common/signals-state-save-restore.h
16532 (save_original_signals_state): New parameter 'quiet'.
16533 * main.c (captured_main_1): Move save_original_signals_state call
16534 after option handling, and pass QUIET.
16535
16536 2018-01-05 Pedro Alves <palves@redhat.com>
16537
16538 * spu-tdep.c (spu_catch_start): Pass
16539 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
16540
16541 2018-01-05 Pedro Alves <palves@redhat.com>
16542
16543 PR gdb/22670
16544 * ada-lang.c (literal_symbol_name_matcher): New function.
16545 (ada_get_symbol_name_matcher): Use it for
16546 symbol_name_match_type::SEARCH_NAME.
16547 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
16548 it down instead of assuming symbol_name_match_type::FULL.
16549 * block.h (block_lookup_symbol): New parameter 'match_type'.
16550 * c-valprint.c (print_unpacked_pointer): Use
16551 lookup_symbol_search_name instead of lookup_symbol.
16552 * compile/compile-object-load.c (get_out_value_type): Pass down
16553 symbol_name_match_type::SEARCH_NAME.
16554 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
16555 symbol_name_match_type::FULL.
16556 * cp-support.c (cp_get_symbol_name_matcher): Handle
16557 symbol_name_match_type::SEARCH_NAME.
16558 * infrun.c (insert_exception_resume_breakpoint): Use
16559 lookup_symbol_search_name.
16560 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
16561 * psymtab.c (maintenance_check_psymtabs): Use
16562 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
16563 * stack.c (print_frame_args): Use lookup_symbol_search_name and
16564 SYMBOL_SEARCH_NAME.
16565 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
16566 if symbol_name_match_type::SEARCH_NAME.
16567 (lookup_symbol_in_language): Pass down
16568 symbol_name_match_type::FULL.
16569 (lookup_symbol_search_name): New.
16570 (lookup_language_this): Pass down
16571 symbol_name_match_type::SEARCH_NAME.
16572 (lookup_symbol_aux, lookup_local_symbol): New parameter
16573 'match_type'. Pass it down.
16574 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
16575 (lookup_symbol_search_name): New declaration.
16576 (lookup_symbol_in_block): New 'match_type' parameter.
16577
16578 2018-01-05 Pedro Alves <palves@redhat.com>
16579
16580 PR gdb/22670
16581 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
16582 ada_lookup_symbol.
16583 (ada_lookup_symbol): Reimplement in terms of
16584 ada_lookup_symbol_list, bits factored out from
16585 ada_lookup_encoded_symbol.
16586
16587 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16588
16589 * ada-exp.y (write_object_renaming): When subscripting an array
16590 using a symbol as the index, pass the block in call to
16591 ada_lookup_encoded_symbol when looking that symbol up.
16592
16593 2018-01-05 Jerome Guitton <guitton@adacore.com>
16594
16595 * ada-lang.c (ada_array_length): Use ada_index_type instead of
16596 TYPE_INDEX_TYPE.
16597
16598 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16599
16600 * ada-lang.c (ada_to_fixed_value_create): Add handling of
16601 the case where VALUE_LVAL (val0) is not lval_memory.
16602
16603 2018-01-05 Xavier Roirand <roirand@adacore.com>
16604
16605 * ada-valprint.c (print_optional_low_bound): Handle
16606 character-indexed array printing like boolean-indexed array
16607 printing.
16608
16609 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16610
16611 * NEWS: Create a new section for the next release branch.
16612 Rename the section of the current branch, now that it has
16613 been cut.
16614
16615 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16616
16617 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
16618 * version.in: Bump version to 8.1.50.DATE-git.
16619
16620 2018-01-03 Xavier Roirand <roirand@adacore.com>
16621
16622 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
16623 Add field.
16624 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
16625 Add field.
16626 (default_exception_support_info) <catch_handlers_sym>: Add field.
16627 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
16628 (ada_exception_name_addr_1): Add "catch handlers" handling.
16629 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
16630 Update all callers.
16631 (create_excep_cond_exprs) <ex>: Add parameter.
16632 (re_set_exception): Update create_excep_cond_exprs call.
16633 (print_it_exception, print_one_exception, print_mention_exception)
16634 (print_recreate_exception): Add "catch handler" handling.
16635 (allocate_location_catch_handlers, re_set_catch_handlers)
16636 (check_status_catch_handlers, print_it_catch_handlers)
16637 (print_one_catch_handlers, print_mention_catch_handlers)
16638 (print_recreate_catch_handlers): New function.
16639 (catch_handlers_breakpoint_ops): New variable.
16640 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
16641 Add parameter. Add "catch handler" handling.
16642 (ada_exception_sym_name, ada_exception_breakpoint_ops):
16643 Add "catch handler" handling.
16644 (ada_exception_catchpoint_cond_string): Add "catch handler"
16645 handling.
16646 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
16647 call.
16648 (catch_ada_handlers_command): New function.
16649 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
16650 operations structure.
16651 (_initialize_ada_language): Add "catch handlers" command entry.
16652 * NEWS: Document "catch handlers" feature.
16653
16654 2018-01-02 Joel Brobecker <brobecker@adacore.com>
16655
16656 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
16657 account when creating the array type of the slice.
16658 (ada_value_slice): Likewise.
16659
16660 2018-01-02 Joel Brobecker <brobecker@adacore.com>
16661
16662 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
16663 New enum value.
16664 (create_array_type_with_stride): Add byte_stride_prop parameter.
16665 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
16666 New parameter. Update all callers in this file.
16667 (array_type_has_dynamic_stride): New function.
16668 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
16669 of arrays with dynamic byte strides.
16670 * dwarf2read.c (read_array_type): Add support for dynamic
16671 DW_AT_byte_stride attributes.
16672
16673 2018-01-02 Joel Brobecker <brobecker@adacore.com>
16674
16675 * dwarf2read.c (read_unspecified_type): Treat
16676 DW_TAG_enumeration_type DIEs from Ada units as stubs.
16677
16678 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16679
16680 Update copyright year range in all GDB files.
16681
16682 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
16683
16684 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
16685 and gdb/testsuite/gdb.base/step-line.c.
16686
16687 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16688
16689 * copyright.py (main): Dump the contents of
16690 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
16691 even if BY_HAND is empty.
16692
16693 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16694
16695 * top.c (print_gdb_version): Update Copyright year in version
16696 message.
16697
16698 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16699
16700 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
16701
16702 For older changes see ChangeLog-2017.
16703 \f
16704 Local Variables:
16705 mode: change-log
16706 left-margin: 8
16707 fill-column: 74
16708 version-control: never
16709 coding: utf-8
16710 End: