]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
gdb: Update NEWS for OpenRISC Linux support
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2018-12-13 Stafford Horne <shorne@gmail.com>
2
3 * NEWS(New targets): Add or1k*-*-linux*.
4
5 2018-12-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6
7 * nat/linux-osdata.c (linux_xfer_osdata_info_os_types): Forward
8 declare on one line to fix ARI warning.
9
10 2018-12-12 Andrew Burgess <andrew.burgess@embecosm.com>
11
12 * infrun.c (infcall_suspend_state::infcall_suspend_state): New.
13 (infcall_suspend_state::registers): New.
14 (infcall_suspend_state::restore): New.
15 (infcall_suspend_state::thread_suspend): Rename to...
16 (infcall_suspend_state::m_thread_suspend): ...this.
17 (infcall_suspend_state::registers): Rename to...
18 (infcall_suspend_state::m_registers): ...this.
19 (infcall_suspend_state::siginfo_gdbarch): Rename to...
20 (infcall_suspend_state::m_siginfo_gdbarch): ...this.
21 (infcall_suspend_state::siginfo_data): Rename to...
22 (infcall_suspend_state::m_siginfo_data): ...this.
23 (save_infcall_suspend_state): Rewrite to use infcall_suspend_state
24 constructor.
25 (restore_infcall_suspend_state): Rewrite to use
26 infcall_suspend_state::restore method.
27 (get_infcall_suspend_state_regcache): Use
28 infcall_suspend_state::registers method.
29
30 2018-12-12 Andrew Burgess <andrew.burgess@embecosm.com>
31
32 * riscv-tdep.c (riscv_call_arg_scalar_float): Unnamed (variadic)
33 arguments are passed in integer registers.
34 (riscv_call_arg_complex_float): Likewise.
35
36 2018-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
37
38 * nat/linux-osdata.c (common_getter): New function.
39 (struct osdata_type): Change getter to take_snapshot.
40 Add LONGEST len_avail and struct buffer buffer.
41 Change all elements in the initializer.
42 Add an element for the list of types.
43 (linux_xfer_osdata_info_os_types): New function.
44 (linux_common_xfer_osdata): Use common_getter for the list of types.
45 Replace getter call by common_getter.
46 (linux_xfer_osdata_cpus): Remove args READBUF, OFFSET, LEN.
47 Add arg BUFFER. Only keep the code that adds data in BUFFER.
48 (linux_xfer_osdata_fds): Likewise.
49 (linux_xfer_osdata_modules): Likewise.
50 (linux_xfer_osdata_msg): Likewise.
51 (linux_xfer_osdata_processes): Likewise.
52 (linux_xfer_osdata_processgroups): Likewise.
53 (linux_xfer_osdata_sem): Likewise.
54 (linux_xfer_osdata_shm): Likewise.
55 (linux_xfer_osdata_isockets): Likewise.
56 (linux_xfer_osdata_threads): Likewise.
57
58 2018-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
59
60 * nat/linux-osdata.c: Removed various trailing spaces.
61
62 2018-12-10 Andrew Burgess <andrew.burgess@embecosm.com>
63
64 * riscv-tdep.c (riscv_register_name): Fix ARI warning by removing
65 leading whitespace before #include line.
66
67 2018-12-08 Simon Marchi <simon.marchi@ericsson.com>
68 Дилян Палаузов <dilyan.palauzov@aegee.org>
69
70 PR gdb/23950
71 * configure.ac: Search for tgetent in libtinfow.
72 * configure: Re-generate.
73
74 2018-12-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
75
76 * linux-thread-db.c (struct thread_db_info): Add td_ta_delete_p.
77 (thread_db_err_str): Forward declare.
78 (delete_thread_db_info): Call td_ta_delete_p if available.
79 (try_thread_db_load_1): Acquire td_ta_delete address.
80 * nat/gdb_thread_db.h (td_ta_delete_ftype): Declare.
81
82 2018-12-08 Pedro Alves <palves@redhat.com>
83
84 * source.c (forward_search_command): Rename to ...
85 (search_command_helper): ... this. Add 'forward' parameter.
86 Tweak to use a gdb::def_vector<char> instead of a xrealloc'ed
87 buffer. Handle backward searches too.
88 (forward_search_command, reverse_search_command): Reimplement by
89 calling search_command_helper.
90
91 2018-12-07 Andrew Burgess <andrew.burgess@embecosm.com>
92
93 * .dir-locals.el: Copy most of the settings from c-mode over to
94 c++-mode.
95
96 2018-12-08 Stafford Horne <shorne@gmail.com>
97
98 * Makefile.in (ALL_TARGET_OBS): Add or1k-linux-tdep.o.
99 * configure.tgt: Add or1k*-*-linux*.
100 * or1k-linux-tdep.c: New file.
101 * or1k-tdep.c (or1k_gdbarch_init): Call gdbarch_init_osabi.
102
103 2018-12-07 Pedro Alves <palves@redhat.com>
104
105 * dwarf2read.c (get_gdb_index_contents_from_section): Use
106 gdb::make_array_view.
107
108 2018-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
109
110 * language.c (_initialize_language): Fix leak by assigning
111 a static string to language. Same for range and case_sensitive,
112 even if no leak is detected for these variables.
113
114 2018-12-05 John Baldwin <jhb@FreeBSD.org>
115
116 * configure: Re-generate.
117 * configure.ac: Use separate sed expressions to escape variables
118 in auto-load directories.
119
120 2018-12-05 Andrew Burgess <andrew.burgess@embecosm.com>
121
122 * riscv-tdep.c (riscv_features_from_gdbarch_info): New function.
123 (riscv_find_default_target_description): Use new function to
124 extract feature from gdbarch_info.
125 (riscv_gdbarch_init): Add error checks for xlen and flen between
126 target description and bfd headers. Be smarter about when we
127 think the hardware floating point abi should be used.
128
129 2018-12-05 Alan Hayward <alan.hayward@arm.com>
130
131 * nat/aarch64-linux-hw-point.c
132 (aarch64_linux_any_set_debug_regs_state): New function.
133 * nat/aarch64-linux-hw-point.h
134 (aarch64_linux_any_set_debug_regs_state): New declaration.
135 * nat/aarch64-linux.c (aarch64_linux_new_thread): Check if any
136 BPs or WPs are set.
137
138 2018-11-30 John Baldwin <jhb@FreeBSD.org>
139
140 * common/filestuff.c [HAVE_KINFO_GETFILE]: Include headers.
141 (fdwalk) [HAVE_KINFO_GETFILE]: Use kinfo_getfile.
142
143 2018-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
144 Simon Marchi <simon.marchi@ericsson.com>
145
146 * linespec.c (symtab_vector_up): Remove.
147 (symtabs_from_filename): Change return type to std::vector.
148 (collect_symtabs_from_filename): Likewise.
149 (create_sals_line_offset): Assign return value of
150 collect_symtabs_from_filename to *ls->file_symtabs.
151 (convert_explicit_location_to_linespec): Remove call to release.
152 (parse_linespec): Likewise.
153 (symtab_collector) <symtab_collector>: Remove initialization of
154 m_symtabs.
155 <release_symtabs>: Change return type to std::vector<symtab *>.
156 <operator ()>: Adjust.
157
158 2018-11-30 John Baldwin <jhb@FreeBSD.org>
159
160 * fbsd-nat.c [__FreeBSD_version >= 700009] (USE_SIGINFO): Macro
161 defined.
162 (union sigval32, struct siginfo32, fbsd_siginfo_size)
163 (fbsd_convert_siginfo): Make conditional on USE_SIGINFO instead
164 of KERN_PROC_AUXV and PT_LWPINFO.
165 (fbsd_nat_target::xfer_partial): Define method unconditionally.
166 Make TARGET_OBJECT_SIGNAL_INFO conditional on USE_SIGINFO.
167 Make TARGET_OBJECT_AUXV conditional on KERN_PROC_AUXV.
168 Make TARGET_OBJECT_FREEBSD_VMMAP and
169 TARGET_OBJECT_FREEBSD_PS_STRINGS conditional on KERN_PROC_VMMAP
170 and KERN_PROC_PS_STRINGS.
171 * fbsd-nat.h: Include <sys/proc.h>.
172 (fbsd_nat_target::xfer_partial): Declare method unconditionally.
173
174 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
175
176 * riscv-linux-nat.c: Add 'inferior.h' and 'target-descriptions.h'
177 header files.
178 (riscv_linux_nat_target::read_description): New method.
179
180 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
181
182 * arch/riscv.h (riscv_gdbarch_features::hash): New method.
183 * arch/riscv.c (struct riscv_gdbarch_features_hasher): New.
184 (riscv_tdesc_cache): New global.
185 (riscv_create_target_description): Look in the cache before
186 creating a new target description.
187
188 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
189
190 * arch/riscv.h (riscv_gdb_features::operator==): New.
191 (riscv_gdb_features::operator!=): New.
192 * riscv-tdep.c (riscv_gdbarch_init): Make use of the inequality
193 operator.
194
195 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
196
197 * arch/riscv.h (riscv_create_target_description): Make return type
198 const.
199 * arch/riscv.c (riscv_create_target_description): Likewise.
200 * riscv-tdep.c (riscv_find_default_target_description): Likewise.
201
202 2018-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
203 Keith Seitz <keiths@redhat.com>
204 Tom Tromey <tom@tromey.com>
205 Sergio Durigan Junior <sergiodj@redhat.com>
206
207 https://bugzilla.redhat.com/show_bug.cgi?id=1613614
208 * dwarf2read.c (dwarf2_find_containing_comp_unit): Add
209 'mid_cu->length' to '*cu_off' when checking if 'sect_off' is
210 inside the CU.
211
212 2018-11-30 Pedro Alves <palves@redhat.com>
213
214 * aix-thread.c (aix_thread_target) <aix_thread_target>: Delete.
215 <stratum>: New override.
216 * bfd-target.c (aix_thread_target) <aix_thread_target>: Delete.
217 <stratum>: New override.
218 * bsd-uthread.c (bsd_uthread_target) <bsd_uthread_target>: Delete.
219 <stratum>: New override.
220 * exec.c (exec_target) <exec_target>: Delete.
221 <stratum>: New override.
222 * gdbarch-selftests.c (register_to_value_test): Adjust to use the
223 stratum method instead of the to_stratum field.
224 * linux-thread-db.c (thread_db_target) <thread_db_target>: Delete.
225 <stratum>: New override.
226 (thread_db_target::thread_db_target): Delete.
227 * make-target-delegates (print_class): Don't print a ctor
228 declaration. Print a stratum method override declaration.
229 * process-stratum-target.h (process_stratum_target)
230 <process_stratum_target>: Delete.
231 <stratum>: New override.
232 * ravenscar-thread.c (ravenscar_thread_target)
233 <ravenscar_thread_target>: Delete.
234 <stratum>: New override.
235 * record-btrace.c (record_btrace_target)
236 <record_btrace_target>: Delete.
237 <stratum>: New override.
238 * record-full.c (record_full_base_target)
239 <record_full_base_target>: Delete.
240 <stratum>: New override.
241 * record.c (record_disconnect, record_detach)
242 (record_mourn_inferior, record_kill): Adjust to use the stratum
243 method instead of the to_stratum field.
244 * regcache.c (cooked_read_test, cooked_write_test): Likewise.
245 * sol-thread.c (sol_thread_target)
246 <sol_thread_target>: Delete.
247 <stratum>: New override.
248 * spu-multiarch.c (spu_multiarch_target)
249 <spu_multiarch_target>: Delete.
250 <stratum>: New override.
251 * target-delegates.c: Regenerate.
252 * target.c (target_stack::push, target_stack::unpush)
253 (pop_all_targets_above, pop_all_targets_at_and_above)
254 (info_target_command, target_require_runnable)
255 (target_stack::find_beneath): Adjust to use the stratum method
256 instead of the to_stratum field.
257 (dummy_target::dummy_target): Delete.
258 (dummy_target::stratum): New.
259 (debug_target::debug_target): Delete.
260 (debug_target::stratum): New.
261 (maintenance_print_target_stack): Adjust to use the stratum method
262 instead of the to_stratum field.
263 * target.h (struct target_ops) <stratum>: New method.
264 <to_stratum>: Delete.
265 <is_pushed>: Adjust to use the stratum method
266 instead of the to_stratum field.
267
268 2018-11-30 Pedro Alves <palves@redhat.com>
269
270 * corelow.c (core_target) <has_all_memory, has_execution>: New
271 overrides.
272 * inf-child.c (inf_child_target::has_all_memory)
273 (inf_child_target::has_memory, inf_child_target::has_stack)
274 (inf_child_target::has_registers)
275 (inf_child_target::has_execution): Delete.
276 * inf-child.h (inf_child_target) <has_all_memory, has_memory,
277 has_stack, has_registers, has_execution>: Delete.
278 * process-stratum-target.c
279 (process_stratum_target::has_all_memory)
280 (process_stratum_target::has_memory)
281 (process_stratum_target::has_stack)
282 (process_stratum_target::has_registers)
283 (process_stratum_target::has_execution): New.
284 * process-stratum-target.h (process_stratum_target)
285 <has_all_memory, has_memory, has_stack, has_registers,
286 has_execution>: New method overrides.
287 * ravenscar-thread.c (ravenscar_thread_target) <has_all_memory,
288 has_memory, has_stack, has_registers, has_execution>: Delete.
289 * remote-sim.c (gdbsim_target) <has_stack, has_registers,
290 has_execution>: Delete.
291 * remote.c (remote_target) <has_all_memory, has_memory, has_stack,
292 has_registers, has_execution>: Delete.
293 * target.c (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 * target.h (default_child_has_all_memory)
298 (default_child_has_memory, default_child_has_stack)
299 (default_child_has_registers, default_child_has_execution):
300 Delete.
301 * tracefile.h (tracefile_target) <has_execution>: New override.
302
303 2018-11-30 Pedro Alves <palves@redhat.com>
304
305 * Makefile.in (COMMON_SFILES): Add process-stratum-target.c.
306 * bsd-kvm.c: Include "process-stratum-target.h".
307 (bsd_kvm_target): Now inherits from process_stratum_target.
308 (bsd_kvm_target::bsd_kvm_target): Default it.
309 * corelow.c: Include "process-stratum-target.h".
310 (core_target): Now inherits from process_stratum_target.
311 (core_target::core_target): Don't set to_stratum here.
312 * inf-child.c (inf_child_target::inf_child_target): Delete.
313 * inf-child.h: Include "process-stratum-target.h".
314 (inf_child_target): Inherit from process_stratum_target.
315 (inf_child_target) <inf_child_target>: Default it.
316 <can_async_p, supports_non_stop, supports_disable_randomization>:
317 Delete overrides.
318 * process-stratum-target.c: New file.
319 * process-stratum-target.h: New file.
320 * remote-sim.c: Include "process-stratum-target.h".
321 (gdbsim_target): Inherit from process_stratum_target.
322 <gdbsim_target>: Default it.
323 * remote.c: Include "process-stratum-target.h".
324 (remote_target): Inherit from process_stratum_target.
325 <remote_target>: Default it.
326 * target.c (default_thread_address_space)
327 (default_thread_architecture): Delete.
328 * target.h (target_ops) <thread_architecture>: Now returns NULL by
329 default.
330 <thread_address_space>: Ditto.
331 * test-target.h: Include "process-stratum-target.h" instead of
332 "target.h".
333 (test_target_ops): Inherit from process_stratum_target.
334 <test_target_ops>: Default it.
335 * tracefile.c (tracefile_target::tracefile_target): Delete.
336 * tracefile.h: Include "process-stratum-target.h".
337 (tracefile_target): Inherit from process_stratum_target.
338 <tracefile_target>: Default it.
339 * target-delegates.c: Regenerate.
340
341 2018-11-30 Pedro Alves <palves@redhat.com>
342
343 * Makefile.in (COMMON_SFILES): Add test-target.c.
344 * gdbarch-selftests.c: Include "test-target.h".
345 * regcache.c: Include "test-target.h".
346 * target.c (test_target_info, test_target_ops::info): Move to ...
347 * test-target.c: ... this new file.
348 * target.h (test_target_ops): Move to ...
349 * test-target.h: ... this new file.
350
351 2018-11-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
352
353 * source.c (forward_search_command): Fix leak by using
354 xrealloc even for the first allocation in the loop, as buf
355 is static.
356
357 2018-11-29 Rajendra SY <rajendra.sy@gmail.com>
358
359 PR gdb/23093
360 * gdb/fbsd-tdep.c (fbsd_gdb_signal_from_target)
361 (fbsd_gdb_signal_to_target): New.
362 (fbsd_init_abi): Install gdbarch "signal_from_target" and
363 "signal_to_target" methods.
364
365 2018-11-29 Tom Tromey <tom@tromey.com>
366
367 * valarith.c (value_x_unop): Don't set argvec[3].
368
369 2018-11-26 Simon Marchi <simon.marchi@ericsson.com>
370
371 PR gdb/23917
372 * sparc-linux-nat.c (sparc_linux_nat_target): Remove extraneous
373 semicolon.
374
375 2018-11-26 Pedro Alves <palves@redhat.com>
376
377 * procfs.c (procfs_notice_thread): Replace uses of
378 in_thread_list/is_exited with find_thread_ptid/THREAD_EXITED.
379 * sol-thread.c (sol_thread_target::wait)
380 (sol_update_thread_list_callback): Likewise.
381
382 2018-11-25 Tom Tromey <tom@tromey.com>
383
384 * ui-out.c (ui_out::field_fmt): Remove comment.
385 * tui/tui-out.c (tui_ui_out::do_field_fmt): Remove comment.
386 * mi/mi-out.c (mi_ui_out::do_field_fmt): Remove comment.
387
388 2018-11-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
389
390 * source.c (open_source_file): Leak fixed in '8e6a5953e1d Fix 4K
391 leak in open_source_file' has been partially undone by '2179fbc36d23
392 Return scoped_fd from open_source_file'. Re-add the transfer of
393 current s->fullname to the unique_xmalloc_ptr fullname given
394 to find_and_open_source.
395
396 2018-11-23 Pedro Alves <palves@redhat.com>
397
398 * gdbthread.h (enum thread_state): Move comments here.
399 (is_running, is_stopped, is_exited): Remove declarations.
400
401 2018-11-22 Pedro Alves <palves@redhat.com>
402
403 * Makefile.in (COMMON_SFILES): Add thread-iter.c.
404 * breakpoint.c (breakpoints_should_be_inserted_now): Replace
405 ALL_NON_EXITED_THREADS with all_non_exited_threads.
406 (print_one_breakpoint_location): Replace ALL_INFERIORS with
407 all_inferiors.
408 * bsd-kvm.c: Include inferior.h.
409 * btrace.c (btrace_free_objfile): Replace ALL_NON_EXITED_THREADS
410 with all_non_exited_threads.
411 * common/filtered-iterator.h: New.
412 * common/safe-iterator.h: New.
413 * corelow.c (core_target_open): Don't call init_thread_list here.
414 * darwin-nat.c (thread_info_from_private_thread_info): Replace
415 ALL_THREADS with all_threads.
416 * fbsd-nat.c (fbsd_nat_target::resume): Replace
417 ALL_NON_EXITED_THREADS with inf->non_exited_threads.
418 * fbsd-tdep.c (fbsd_make_corefile_notes): Replace
419 ALL_NON_EXITED_THREADS with inf->non_exited_threads.
420 * fork-child.c (postfork_hook): Don't call init_thread_list here.
421 * gdbarch-selftests.c (register_to_value_test): Adjust.
422 * gdbthread.h: Don't include "inferior.h" here.
423 (struct inferior): Forward declare.
424 (enum step_over_calls_kind): Moved here from inferior.h.
425 (thread_info::deletable): Definition moved to thread.c.
426 (find_thread_ptid (inferior *, ptid_t)): Declare.
427 (ALL_THREADS, ALL_THREADS_BY_INFERIOR, ALL_THREADS_SAFE): Delete.
428 Include "thread-iter.h".
429 (all_threads, all_non_exited_threads, all_threads_safe): New.
430 (any_thread_p): Declare.
431 (thread_list): Delete.
432 * infcmd.c (signal_command): Replace ALL_NON_EXITED_THREADS with
433 all_non_exited_threads.
434 (proceed_after_attach_callback): Delete.
435 (proceed_after_attach): Take an inferior pointer instead of an
436 integer PID. Adjust to use range-for.
437 (attach_post_wait): Pass down inferior pointer instead of pid.
438 Use range-for instead of ALL_NON_EXITED_THREADS.
439 (detach_command): Remove init_thread_list call.
440 * inferior-iter.h: New.
441 * inferior.c (struct delete_thread_of_inferior_arg): Delete.
442 (delete_thread_of_inferior): Delete.
443 (delete_inferior, exit_inferior_1): Use range-for with
444 inf->threads_safe() instead of iterate_over_threads.
445 (inferior_appeared): Call init_thread_list here.
446 (discard_all_inferiors): Use all_non_exited_inferiors.
447 (find_inferior_id, find_inferior_pid): Use all_inferiors.
448 (iterate_over_inferiors): Use all_inferiors_safe.
449 (have_inferiors, number_of_live_inferiors): Use
450 all_non_exited_inferiors.
451 (number_of_inferiors): Use all_inferiors and std::distance.
452 (print_inferior): Use all_inferiors.
453 * inferior.h: Include gdbthread.h.
454 (enum step_over_calls_kind): Moved to gdbthread.h.
455 (struct inferior) <thread_list>: New field.
456 <threads, non_exited_threads, threads_safe>: New methods.
457 (ALL_INFERIORS): Delete.
458 Include "inferior-iter.h".
459 (ALL_NON_EXITED_INFERIORS): Delete.
460 (all_inferiors_safe, all_inferiors, all_non_exited_inferiors): New
461 functions.
462 * inflow.c (child_interrupt, child_pass_ctrlc): Replace
463 ALL_NON_EXITED_THREADS with all_non_exited_threads.
464 * infrun.c (follow_exec): Use all_threads_safe.
465 (clear_proceed_status, proceed): Use all_non_exited_threads.
466 (init_wait_for_inferior): Don't clear inline frame state here.
467 (infrun_thread_stop_requested, for_each_just_stopped_thread): Use
468 all_threads instead of ALL_NON_EXITED_THREADS.
469 (random_pending_event_thread): Use all_non_exited_threads instead
470 of ALL_NON_EXITED_THREADS. Use a lambda for repeated code.
471 (clean_up_just_stopped_threads_fsms): Use all_non_exited_threads
472 instead of ALL_NON_EXITED_THREADS.
473 (handle_no_resumed): Use all_non_exited_threads instead of
474 ALL_NON_EXITED_THREADS. Use all_inferiors instead of
475 ALL_INFERIORS.
476 (restart_threads, switch_back_to_stepped_thread): Use
477 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
478 * linux-nat.c (check_zombie_leaders): Replace ALL_INFERIORS with
479 all_inferiors.
480 (kill_unfollowed_fork_children): Use inf->non_exited_threads
481 instead of ALL_NON_EXITED_THREADS.
482 * linux-tdep.c (linux_make_corefile_notes): Use
483 inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
484 * linux-thread-db.c (thread_db_target::update_thread_list):
485 Replace ALL_INFERIORS with all_inferiors.
486 (thread_db_target::thread_handle_to_thread_info): Use
487 inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
488 * mi/mi-interp.c (multiple_inferiors_p): New.
489 (mi_on_resume_1): Simplify using all_non_exited_threads and
490 multiple_inferiors_p.
491 * mi/mi-main.c (mi_cmd_thread_list_ids): Use all_non_exited_threads
492 instead of ALL_NON_EXITED_THREADS.
493 * nto-procfs.c (nto_procfs_target::open): Don't call
494 init_thread_list here.
495 * record-btrace.c (record_btrace_target_open)
496 (record_btrace_target::stop_recording)
497 (record_btrace_target::close)
498 (record_btrace_target::record_is_replaying)
499 (record_btrace_target::resume, record_btrace_target::wait)
500 (record_btrace_target::record_stop_replaying): Use
501 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
502 * record-full.c (record_full_wait_1): Use all_non_exited_threads
503 instead of ALL_NON_EXITED_THREADS.
504 * regcache.c (cooked_read_test): Remove reference to global
505 thread_list.
506 * remote-sim.c (gdbsim_target::create_inferior): Don't call
507 init_thread_list here.
508 * remote.c (remote_target::update_thread_list): Use
509 all_threads_safe instead of ALL_NON_EXITED_THREADS.
510 (remote_target::process_initial_stop_replies): Replace
511 ALL_INFERIORS with all_non_exited_inferiors and use
512 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
513 (remote_target::open_1): Don't call init_thread_list here.
514 (remote_target::append_pending_thread_resumptions)
515 (remote_target::remote_resume_with_hc): Use all_non_exited_threads
516 instead of ALL_NON_EXITED_THREADS.
517 (remote_target::commit_resume)
518 (remote_target::remove_new_fork_children): Replace ALL_INFERIORS
519 with all_non_exited_inferiors and use all_non_exited_threads
520 instead of ALL_NON_EXITED_THREADS.
521 (remote_target::kill_new_fork_children): Use
522 all_non_exited_threads instead of ALL_NON_EXITED_THREADS. Remove
523 init_thread_list and init_wait_for_inferior calls.
524 (remote_target::remote_btrace_maybe_reopen)
525 (remote_target::thread_handle_to_thread_info): Use
526 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
527 * target.c (target_terminal::restore_inferior)
528 (target_terminal_is_ours_kind): Replace ALL_INFERIORS with
529 all_non_exited_inferiors.
530 * thread-iter.c: New file.
531 * thread-iter.h: New file.
532 * thread.c: Include "inline-frame.h".
533 (thread_list): Delete.
534 (clear_thread_inferior_resources): Call clear_inline_frame_state.
535 (init_thread_list): Use all_threads_safe instead of
536 ALL_THREADS_SAFE. Adjust to per-inferior thread lists.
537 (new_thread): Adjust to per-inferior thread lists.
538 (add_thread_silent): Pass inferior to find_thread_ptid.
539 (thread_info::deletable): New, moved from the header.
540 (delete_thread_1): Adjust to per-inferior thread lists.
541 (find_thread_global_id): Use inf->threads().
542 (find_thread_ptid): Use find_inferior_ptid and pass inferior to
543 find_thread_ptid.
544 (find_thread_ptid(inferior*, ptid_t)): New overload.
545 (iterate_over_threads): Use all_threads_safe.
546 (any_thread_p): New.
547 (thread_count): Use all_threads and std::distance.
548 (live_threads_count): Use all_non_exited_threads and
549 std::distance.
550 (valid_global_thread_id): Use all_threads.
551 (in_thread_list): Use find_thread_ptid.
552 (first_thread_of_inferior): Adjust to per-inferior thread lists.
553 (any_thread_of_inferior, any_live_thread_of_inferior): Use
554 inf->non_exited_threads().
555 (prune_threads, delete_exited_threads): Use all_threads_safe.
556 (thread_change_ptid): Pass inferior pointer to find_thread_ptid.
557 (set_resumed, set_running): Use all_non_exited_threads.
558 (is_thread_state, is_stopped, is_exited, is_running)
559 (is_executing): Delete.
560 (set_executing, set_stop_requested, finish_thread_state): Use
561 all_non_exited_threads.
562 (print_thread_info_1): Use all_inferiors and all_threads.
563 (thread_apply_all_command): Use all_non_exited_threads.
564 (thread_find_command): Use all_threads.
565 (update_threads_executing): Use all_non_exited_threads.
566 * tid-parse.c (parse_thread_id): Use inf->threads.
567 * x86-bsd-nat.c (x86bsd_dr_set): Use inf->non_exited_threads ().
568
569 2018-11-22 Pedro Alves <palves@redhat.com>
570
571 * infrun.c (follow_exec) <set follow-exec new>: Add thread and
572 switch to it before calling into try_open_exec_file.
573
574 2018-11-22 Pedro Alves <palves@redhat.com>
575
576 * cli/cli-interp.c (cli_on_user_selected_context_changed): Use
577 inferior_thread instead of find_thread_ptid, and only when
578 inferior_ptid is not null_ptid.
579 * inferior.c (add_inferior): Don't include target_pid_to_str
580 output when the inferior is not started.
581 * python/py-inferior.c (python_on_normal_stop): Don't use
582 find_thread_ptid.
583 (tui_on_user_selected_context_changed): Use inferior_thread
584 instead of find_thread_ptid, and only when inferior_ptid is not
585 null_ptid.
586
587 2018-11-21 Benno Fünfstück <benno.fuenfstueck@gmail.com>
588
589 PR python/23714
590 * gdb/python/python.c (execute_gdb_command): Call
591 prevent_dont_repeat earlier to avoid affecting dont_repeat.
592
593 2018-11-21 Andrew Burgess <andrew.burgess@embecosm.com>
594
595 * Makefile.in (ALL_TARGET_OBS): Add arch/riscv.o.
596 (HFILES_NO_SRCDIR): Add arch/riscv.h.
597 * arch/riscv.c: New file.
598 * arch/riscv.h: New file.
599 * configure.tgt: Add cpu_obs list of riscv, move riscv-tdep.o into
600 this list, and add arch/riscv.o.
601 * features/Makefile: Add riscv features.
602 * features/riscv/32bit-cpu.c: New file.
603 * features/riscv/32bit-cpu.xml: New file.
604 * features/riscv/32bit-csr.c: New file.
605 * features/riscv/32bit-csr.xml: New file.
606 * features/riscv/32bit-fpu.c: New file.
607 * features/riscv/32bit-fpu.xml: New file.
608 * features/riscv/64bit-cpu.c: New file.
609 * features/riscv/64bit-cpu.xml: New file.
610 * features/riscv/64bit-csr.c: New file.
611 * features/riscv/64bit-csr.xml: New file.
612 * features/riscv/64bit-fpu.c: New file.
613 * features/riscv/64bit-fpu.xml: New file.
614 * features/riscv/rebuild-csr-xml.sh: New file.
615 * riscv-tdep.c: Add 'arch/riscv.h' include.
616 (riscv_gdb_reg_names): Delete.
617 (csr_reggroup): New global.
618 (struct riscv_register_alias): Delete.
619 (struct riscv_register_feature): New structure.
620 (riscv_register_aliases): Delete.
621 (riscv_xreg_feature): New global.
622 (riscv_freg_feature): New global.
623 (riscv_virtual_feature): New global.
624 (riscv_csr_feature): New global.
625 (riscv_create_csr_aliases): New function.
626 (riscv_read_misa_reg): Delete.
627 (riscv_has_feature): Delete.
628 (riscv_isa_xlen): Simplify, just return cached xlen.
629 (riscv_isa_flen): Simplify, just return cached flen.
630 (riscv_has_fp_abi): Update for changes in struct gdbarch_tdep.
631 (riscv_register_name): Update to make use of tdesc_register_name.
632 Look up xreg and freg names in the new globals riscv_xreg_feature
633 and riscv_freg_feature. Don't supply csr aliases here.
634 (riscv_fpreg_q_type): Delete.
635 (riscv_register_type): Use tdesc_register_type in almost all
636 cases, override the returned type in a few specific cases only.
637 (riscv_print_one_register_info): Handle errors reading registers.
638 (riscv_register_reggroup_p): Use tdesc_register_in_reggroup_p for
639 registers that are otherwise unknown to GDB. Also check the
640 csr_reggroup.
641 (riscv_print_registers_info): Remove assert about upper register
642 number, and use gdbarch_register_reggroup_p instead of
643 short-cutting.
644 (riscv_find_default_target_description): New function.
645 (riscv_check_tdesc_feature): New function.
646 (riscv_add_reggroups): New function.
647 (riscv_setup_register_aliases): New function.
648 (riscv_init_reggroups): New function.
649 (_initialize_riscv_tdep): Add calls to setup CSR aliases, and
650 setup register groups. Register new riscv debug variable.
651 * riscv-tdep.h: Add 'arch/riscv.h' include.
652 (struct gdbarch_tdep): Remove abi union, and add
653 riscv_gdbarch_features field. Remove cached quad floating point
654 type, and provide initialisation for double type field.
655 * target-descriptions.c (maint_print_c_tdesc_cmd): Add riscv to
656 the list of targets using the feature based target descriptions.
657 * NEWS: Mention target description support.
658
659 2018-11-21 Pedro Alves <palves@redhat.com>
660
661 * valops.c (find_method_list, value_find_oload_method_list)
662 (find_overload_match, find_oload_champ): Rename parameters and
663 locals.
664
665 2018-11-21 Pedro Alves <palves@redhat.com>
666
667 * valops.c (find_method_list): Replace pointer and length
668 parameters with an gdb::array_view. Adjust.
669 (value_find_oload_method_list): Likewise.
670 (find_overload_match): Use gdb::array_view for methods list.
671 Adjust to find_oload_champ interface change.
672 (find_oload_champ): 'xm_worker_vec' parameter now a pointer/array.
673 'num_fns' parameter now a size_t. Eliminate 'fn_count' local.
674
675 2018-11-21 Pedro Alves <palves@redhat.com>
676
677 * gdbtypes.c (compare_badness): Change type of parameters to const
678 reference. Adjust to badness_vector being a std::vector now.
679 (rank_function): Adjust to badness_vector being a std::vector now.
680 * gdbtypes.h (badness_vector): Now a typedef to std::vector.
681 (LENGTH_MATCH): Delete.
682 (compare_badness): Change type of parameters to const reference.
683 (rank_function): Return a badness_vector by value now.
684 (find_overload_match): Adjust to badness_vector being a
685 std::vector now. Remove cleanups.
686 (find_oload_champ_namespace): 'oload_champ_bv' parameter now a
687 badness_vector pointer.
688 (find_oload_champ_namespace_loop): 'oload_champ_bv' parameter now
689 a badness_vector pointer. Adjust to badness_vector being a
690 std::vector now. Remove cleanups.
691 (find_oload_champ): 'oload_champ_bv' parameter now
692 a badness_vector pointer. Adjust to badness_vector being a
693 std::vector now. Remove cleanups.
694
695 2018-11-21 Pedro Alves <palves@redhat.com>
696
697 * cp-support.c (sym_return_val_size, sym_return_val_index)
698 (sym_return_val): Delete.
699 (overload_list_add_symbol): Add std::vector parameter. Adjust to
700 add to the vector.
701 (make_symbol_overload_list): Adjust to return a std::vector
702 instead of maintaining a global open coded vector.
703 (make_symbol_overload_list_block): Add std::vector parameter.
704 (make_symbol_overload_list_block): Rename to ...
705 (add_symbol_overload_list_block): ... this and add std::vector
706 parameter.
707 (make_symbol_overload_list_namespace): Rename to ...
708 (add_symbol_overload_list_namespace): ... this and add std::vector
709 parameter.
710 (make_symbol_overload_list_adl_namespace): Rename to ...
711 (add_symbol_overload_list_adl_namespace): ... this and add
712 std::vector parameter.
713 (make_symbol_overload_list_adl): Delete.
714 (add_symbol_overload_list_adl): New.
715 (make_symbol_overload_list_using): Rename to ...
716 (add_symbol_overload_list_using): ... this and add std::vector
717 parameter.
718 (make_symbol_overload_list_qualified): Rename to ...
719 (add_symbol_overload_list_qualified): ... this and add std::vector
720 parameter.
721 * cp-support.h: Include "common/array-view.h" and <vector>.
722 (make_symbol_overload_list): Change return type to std::vector.
723 (make_symbol_overload_list_adl): Delete declaration.
724 (add_symbol_overload_list_adl): New declaration.
725 * valops.c (find_overload_match): Local 'oload_syms' now a
726 std::vector.
727 (find_oload_champ_namespace): 'oload_syms' parameter now a
728 std::vector pointer.
729 (find_oload_champ_namespace_loop): 'oload_syms' parameter now a
730 std::vector pointer. Adjust to new make_symbol_overload_list
731 interface.
732
733 2018-11-21 Pedro Alves <palves@redhat.com>
734
735 * common/array-view.h (array_view::splice(size_type, size_t)): New.
736 (array_view::splice(size_type)): New.
737 * eval.c (eval_call, evaluate_funcall): Adjust to use array_view.
738 * extension.c (xmethod_worker::get_arg_types): Adjust to return an
739 std::vector.
740 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
741 * extension.h: Include "common/array-view.h".
742 (xmethod_worker::invoke): Adjust to use gdb::array_view.
743 (xmethod_worker::get_arg_types): Adjust to return an std::vector.
744 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
745 (xmethod_worker::do_get_arg_types): Adjust to use std::vector.
746 (xmethod_worker::do_get_result_type): Adjust to use
747 gdb::array_view.
748 * gdbtypes.c (rank_function): Adjust to use gdb::array_view.
749 * gdbtypes.h: Include "common/array-view.h".
750 (rank_function): Adjust to use gdb::array_view.
751 * python/py-xmethods.c (python_xmethod_worker::invoke)
752 (python_xmethod_worker::do_get_arg_types)
753 (python_xmethod_worker::do_get_result_type)
754 (python_xmethod_worker::invoke): Adjust to new interfaces.
755 * valarith.c (value_user_defined_cpp_op, value_user_defined_op)
756 (value_x_binop, value_x_unop): Adjust to use gdb::array_view.
757 * valops.c (find_overload_match, find_oload_champ_namespace)
758 (find_oload_champ_namespace_loop, find_oload_champ): Adjust to use
759 gdb:array_view and the new xmethod_worker interfaces.
760 * value.c (result_type_of_xmethod, call_xmethod): Adjust to use
761 gdb::array_view.
762 * value.h (find_overload_match, result_type_of_xmethod)
763 (call_xmethod): Adjust to use gdb::array_view.
764 * unittests/array-view-selftests.c: Add slicing tests.
765
766 2018-11-21 Pedro Alves <palves@redhat.com>
767
768 * ada-lang.c (ada_evaluate_subexp): Adjust to pass an array_view.
769 * common/array-view.h (make_array_view): New.
770 * compile/compile-object-run.c (compile_object_run): Adjust to
771 pass an array_view.
772 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust.
773 * eval.c (eval_call): Adjust to pass an array_view.
774 (evaluate_subexp_standard): Adjust to pass an array_view.
775 * gcore.c (call_target_sbrk): Adjust to pass an array_view.
776 * guile/scm-value.c (gdbscm_value_call): Likewise.
777 * infcall.c (push_dummy_code): Replace pointer + size parameters
778 with an array_view parameter.
779 (call_function_by_hand, call_function_by_hand_dummy): Likewise and
780 adjust.
781 * infcall.h: Include "common/array-view.h".
782 (call_function_by_hand, call_function_by_hand_dummy): Replace
783 pointer + size parameters with an array_view parameter.
784 * linux-fork.c (inferior_call_waitpid): Adjust to use array_view.
785 * linux-tdep.c (linux_infcall_mmap): Likewise.
786 * objc-lang.c (lookup_objc_class, lookup_child_selector)
787 (value_nsstring, print_object_command): Likewise.
788 * python/py-value.c (valpy_call): Likewise.
789 * rust-lang.c (rust_evaluate_funcall): Likewise.
790 * spu-tdep.c (flush_ea_cache): Likewise.
791 * valarith.c (value_x_binop, value_x_unop): Likewise.
792 * valops.c (value_allocate_space_in_inferior): Likewise.
793 * unittests/array-view-selftests.c (run_tests): Add
794 gdb::make_array_view test.
795
796 2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
797
798 * cli-out.c (cli_ui_out::do_field_int): Use string_printf rather
799 than a fixed size buffer.
800
801 2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
802
803 * breakpoint.c (print_one_breakpoint_location): Reduce whitespace,
804 and remove insertion of extra spaces in GDB's output.
805 * cli-out.c (cli_ui_out::do_field_fmt): Update header comment.
806 Layout field into a temporary buffer, and then output it as a
807 string field.
808
809 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
810
811 * NEWS: Document the language choice done by
812 'info [types|functions|variables]|rbreak'.
813
814 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
815
816 * symtab.c (treg_matches_sym_type_name): Use
817 scoped_switch_to_sym_language_if_auto instead of local logic.
818 (print_symbol_info): Use scoped_switch_to_sym_language_if_auto
819 to switch to SYM language when language mode is auto.
820
821 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
822
823 * language.h (scoped_switch_to_sym_language_if_auto): New class.
824
825 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
826
827 * symtab.c (search_symbols): Properly check absence of type regexp
828 before entering the loop scanning the minimal symbols.
829
830 2018-11-20 John Darrington <john@darrington.wattle.id.au>
831
832 * s12z-tdep.c (s12z_extract_return_value): New function.
833 (inv_reg_perm) New array.
834 (s12z_return_value): Populate readbuf if non-null.
835
836 2018-11-20 Eli Zaretskii <eliz@gnu.org>
837
838 * common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode
839 with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater
840 to MinGW fixed by Gnulib.
841 (O_NOINHERIT): Define if not defined.
842
843 2018-11-19 John Darrington <john@darrington.wattle.id.au>
844
845 * s12z-tdep.c (s12z_frame_cache): Add an assertion.
846
847 2018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
848
849 * infrun.c (displaced_step_inferior_state) <next>: Remove.
850
851 2018-11-19 Tom Tromey <tom@tromey.com>
852
853 * source.c (get_filename_and_charpos): Return void.
854
855 2018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
856
857 * skip.c (_initialize_step_skip): Fix "info skip" help.
858
859 2018-11-16 Tom Tromey <tom@tromey.com>
860
861 PR rust/23625:
862 * rust-lang.c (rust_internal_print_type): Handle TYPE_CODE_PTR.
863
864 2018-11-19 Simon Marchi <simon.marchi@ericsson.com>
865
866 * infrun.c (displaced_step_inferior_states): Change type to
867 std::forward_list.
868 (get_displaced_stepping_state): Adjust.
869 (displaced_step_in_progress_any_inferior): Adjust.
870 (add_displaced_stepping_state): Adjust.
871 (remove_displaced_stepping_state): Adjust.
872
873 2018-11-18 Tom Tromey <tom@tromey.com>
874
875 PR build/23814:
876 * target-delegates.c: Rebuild.
877 * ia64-linux-nat.c (class ia64_linux_nat_target)
878 <have_steppable_watchpoint>: Use override. Return true, not 1.
879 (ia64_linux_nat_target::can_use_hw_breakpoint): Rename. Remove
880 "self" argument.
881 (ia64_linux_nat_target::low_new_thread): Rename.
882 (class ia64_linux_nat_target) <read_description>: Don't declare.
883 * target.h (struct target_ops) <have_steppable_watchpoint>: Return
884 bool.
885
886 2018-11-16 Alan Hayward <alan.hayward@arm.com>
887
888 PR gdb/22736:
889 * aarch64-tdep.c (aarch64_push_dummy_call): Remove
890 lang_struct_return code.
891
892 2018-11-16 Alan Hayward <alan.hayward@arm.com>
893
894 * aarch64-tdep.c (aarch64_push_dummy_call): Replace arg with
895 return_method.
896 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
897 * amd64-tdep.c (amd64_push_arguments): Likewise.
898 (amd64_push_dummy_call): Likewise.
899 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
900 * arc-tdep.c (arc_push_dummy_call): Likewise.
901 * arm-tdep.c (arm_push_dummy_call): Likewise.
902 * avr-tdep.c (avr_push_dummy_call): Likewise.
903 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
904 * cris-tdep.c (cris_push_dummy_call): Likewise.
905 * csky-tdep.c (csky_push_dummy_call): Likewise.
906 * frv-tdep.c (frv_push_dummy_call): Likewise.
907 * gdbarch.c: Regenerate.
908 * gdbarch.h: Regenerate.
909 * gdbarch.sh (gdbarch_push_dummy_call): Replace arg with
910 return_method.
911 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
912 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
913 (hppa64_push_dummy_call): Likewise.
914 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
915 * i386-tdep.c (i386_push_dummy_call): Likewise.
916 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
917 * infcall.c (call_function_by_hand_dummy): Likewise.
918 * iq2000-tdep.c (iq2000_push_dummy_call): Likewise.
919 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
920 * m32c-tdep.c (m32c_push_dummy_call): Likewise.
921 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
922 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
923 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
924 * mep-tdep.c (mep_push_dummy_call): Likewise.
925 * mips-tdep.c (mips_eabi_push_dummy_call): Likewise.
926 (mips_n32n64_push_dummy_call): Likewise.
927 (mips_o32_push_dummy_call): Likewise.
928 (mips_o64_push_dummy_call): Likewise.
929 * mn10300-tdep.c (mn10300_push_dummy_call): Likewise.
930 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
931 * nds32-tdep.c (nds32_push_dummy_call): Likewise.
932 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
933 * or1k-tdep.c (or1k_push_dummy_call): Likewise.
934 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
935 (ppc64_sysv_abi_push_dummy_call): Likewise.
936 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Likewise.
937 (ppc64_sysv_abi_push_dummy_call): Likewise.
938 * riscv-tdep.c (riscv_push_dummy_call): Likewise.
939 * rl78-tdep.c (rl78_push_dummy_call): Likewise.
940 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
941 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
942 * rx-tdep.c (rx_push_dummy_call): Likewise.
943 * s390-tdep.c (s390_push_dummy_call): Likewise.
944 * score-tdep.c (score_push_dummy_call): Likewise.
945 * sh-tdep.c (sh_push_dummy_call_fpu): Likewise.
946 (sh_push_dummy_call_nofpu): Likewise.
947 * sparc-tdep.c (sparc32_store_arguments): Likewise.
948 (sparc32_push_dummy_call): Likewise.
949 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
950 (sparc64_push_dummy_call): Likewise.
951 * spu-tdep.c (spu_push_dummy_call): Likewise.
952 * tic6x-tdep.c (tic6x_push_dummy_call): Likewise.
953 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
954 * v850-tdep.c (v850_push_dummy_call): Likewise.
955 * vax-tdep.c (vax_push_dummy_call): Likewise.
956 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
957 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
958
959 2018-11-16 Alan Hayward <alan.hayward@arm.com>
960
961 * gdbarch.sh (enum function_call_return_method): Add enum.
962 * gdbarch.h: Regenerate.
963 * infcall.c (call_function_by_hand_dummy): Replace vars with enum.
964
965 2018-11-15 Joel Brobecker <brobecker@adacore.com>
966
967 * unittests/copy_bitwise-selftests.c: New file.
968 * utils.c (selftests::bits_to_str, selftests::check_copy_bitwise)
969 (selftests::copy_bitwise_tests): Delete, moving this code to
970 unittests/copy_bitwise-selftests.c instead.
971 (_initialize_utils): Do not register copy_bitwise tests.
972 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
973 unittests/copy_bitwise-selftests.c.
974
975 2018-11-14 Joel Brobecker <brobecker@adacore.com>
976
977 * ada-lang.c (move_bits): Delete. Update all callers to use
978 copy_bitwise instead.
979 * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str)
980 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
981 Move from here to utils.c.
982 (_initialize_dwarf2loc): Remove call to register copy_bitwise
983 selftests.
984 * utils.h (copy_bitwise): Add declaration.
985 * utils.c (copy_bitwise, bits_to_str::bits_to_str)
986 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
987 Moved here from dwarf2loc.c.
988 (_initialize_utils): Register copy_bitwise selftests.
989
990 2018-11-14 Jim Wilson <jimw@sifive.com>
991
992 * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed.
993 (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment,
994 then increment next_regnum if odd.
995 (riscv_arg_location): New arg is_unnamed. Set ainfo->is_unnamed.
996 (riscv_push_dummy_call): New local ftype. Call check_typedef to set
997 function type. Pass new arg to riscv_arg_location based on function
998 type.
999 (riscv_return_value): Pass new arg to riscv_arg_location.
1000
1001 * riscv-tdep.c (BIGGEST_ALIGNMENT): New.
1002 (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min
1003 of TYPE_LENGTH and BIGGEST_ALIGNMENT.
1004
1005 * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when
1006 setting len. New local align, set to max of arg align and xlen,
1007 and pass to first riscv_assign_stack_location call.
1008
1009 2018-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1010
1011 * skip.c (complete_skip_number): New function.
1012 (_initialize_step_skip): Add completers to some skip commands.
1013
1014 2018-11-09 Tom Tromey <tom@tromey.com>
1015
1016 * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC.
1017 (struct remote_g_packet_data): Derive from allocate_on_obstack.
1018 <guesses>: Now a std::vector.
1019 (remote_g_packet_data_init, register_remote_g_packet_guess):
1020 Update.
1021 (remote_read_description_p): Update. Return bool.
1022 (remote_target::read_description): Update.
1023 (struct remote_g_packet_guess): Add constructor.
1024
1025 2018-11-09 Tom Tromey <tom@tromey.com>
1026
1027 * common/scoped_fd.h (class scoped_fd): Add move constructor and
1028 move assignment operator.
1029 * psymtab.c (psymtab_to_fullname): Update.
1030 * source.h (open_source_file): Return scoped_fd.
1031 (find_and_open_source): Likewise.
1032 * source.c (open_source_file): Return scoped_fd.
1033 (get_filename_and_charpos): Update.
1034 (print_source_lines_base): Update. Use scoped_fd::to_file.
1035 (forward_search_command): Likewise.
1036 (reverse_search_command): Likewise.
1037 (find_and_open_source): Return scoped_fd.
1038 * tui/tui-source.c (tui_set_source_content): Update. Use
1039 gdb_file_up.
1040
1041 2018-11-09 John Baldwin <jhb@FreeBSD.org>
1042
1043 * minsyms.c (minimal_symbol_reader::install): Fix unsigned
1044 overflow.
1045
1046 2018-11-09 Hafiz Abid Qadeer <abidh@codesourcery.com>
1047
1048 * configure: Regenerate.
1049
1050 2018-11-09 Tom de Vries <tdevries@suse.de>
1051
1052 * symtab.c (symbol_set_names): Call symbol_find_demangled_name
1053 unconditionally, to set the language of the symbol. Manage freeing
1054 returned pointer using gdb::unique_xmalloc_ptr.
1055
1056 2018-11-08 Tom Tromey <tom@tromey.com>
1057
1058 * record.c (require_record_target): Upper-case "<TAB>".
1059
1060 2018-11-08 Tom Tromey <tom@tromey.com>
1061
1062 * python/lib/gdb/command/pretty_printers.py
1063 (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
1064
1065 2018-11-08 Tom Tromey <tom@tromey.com>
1066
1067 PR gdb/23555:
1068 PR gdb/23838:
1069 * target.h (target_supports_terminal_ours): Return bool.
1070 * target.c (target_supports_terminal_ours): Handle case where
1071 current_top_target returns nullptr. Return bool.
1072
1073 2018-11-08 Joel Brobecker <brobecker@adacore.com>
1074
1075 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1):
1076 return the correct count for potential HFAs.
1077
1078 2018-11-08 Jan Beulich <jbeulich@suse.com>
1079
1080 * i387-tdep.c (i387_supply_xsave): Split handling of
1081 X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
1082 (i387_collect_xsave): Likewise.
1083
1084 2018-11-08 Andrew Burgess <andrew.burgess@embecosm.com>
1085
1086 * riscv-tdep.c (riscv_insn::decode): Update header comment.
1087 (riscv_frame_this_id): Catch errors thrown while building the
1088 frame cache, leave the frame id as the default, which is the outer
1089 frame id.
1090
1091 2018-11-07 Joel Brobecker <brobecker@adacore.com>
1092
1093 * ada-lang.c (read_atcb): Only set task_info->called_task if
1094 task_info->state == Entry_Caller_Sleep.
1095 (print_ada_task_info): Do not check task_info->state before
1096 checking task_info->called_task.
1097 (info_task): Likewise.
1098
1099 2018-11-07 Joel Brobecker <brobecker@adacore.com>
1100
1101 * ada-tasks.c (read_atcb): Clear task_info before computing
1102 the value of each of its fields.
1103
1104 2018-11-07 Andrew Burgess <andrew.burgess@embecosm.com>
1105
1106 * dwarf2read.c (dwarf2_init_integer_type): Check for name being
1107 NULL before dereferencing it.
1108
1109 2018-11-06 Tom de Vries <tdevries@suse.de>
1110
1111 * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
1112 program headers.
1113
1114 2018-11-06 Max Filippov <jcmvbkbc@gmail.com>
1115
1116 * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
1117 so that it applies to uclinux as well.
1118
1119 2018-11-06 Marius Muench <marius.muench@eurecom.fr>
1120
1121 * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
1122 when on AAPCS.
1123
1124 2018-11-06 John Baldwin <jhb@FreeBSD.org>
1125
1126 * riscv-fbsd-nat.c (getregs_supplies): Return true for
1127 RISCV_CSR_SSTATUS_REGNUM.
1128
1129 2018-11-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1130
1131 * source.c (open_source_file): Fix leak by transferring the
1132 current s->fullname to the unique_xmalloc_ptr fullname given
1133 to find_and_open_source.
1134
1135 2018-11-04 Tom Tromey <tom@tromey.com>
1136
1137 * varobj.c (install_default_visualizer): Update.
1138 * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
1139 Return gdbpy_ref.
1140 * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
1141 (find_pretty_printer_from_progspace)
1142 (find_pretty_printer_from_gdb, find_pretty_printer)
1143 (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
1144 (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
1145 Update.
1146
1147 2018-11-04 Tom Tromey <tom@tromey.com>
1148
1149 * python/python.c (gdbpy_parameter_value): Update.
1150 * python/python-internal.h (python_string_to_unicode)
1151 (python_string_to_target_python_string)
1152 (host_string_to_python_string): Return gdbpy_ref.
1153 * python/py-utils.c (python_string_to_unicode)
1154 (unicode_to_encoded_python_string)
1155 (unicode_to_target_python_string)
1156 (python_string_to_target_string)
1157 (python_string_to_target_python_string): Return gdbpy_ref.
1158 (python_string_to_host_string): Update.
1159 (host_string_to_python_string): Return gdbpy_ref.
1160 * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
1161 (stpy_fullname): Update.
1162 * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
1163 Update.
1164 * python/py-prettyprint.c (print_string_repr): Update.
1165 * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
1166 (objfpy_get_build_id): Update.
1167 * python/py-breakpoint.c (bppy_get_location)
1168 (bppy_get_expression, bppy_get_condition, bppy_get_commands):
1169 Update.
1170
1171 2018-11-04 Tom Tromey <tom@tromey.com>
1172
1173 * python/python-internal.h (gdb_py_object_from_longest)
1174 (gdb_py_object_from_ulongest): Return gdbpy_ref.
1175 * python/py-value.c (valpy_int): Update.
1176 * python/py-utils.c (gdb_py_object_from_longest): Return
1177 gdbpy_ref.
1178 (gdb_py_object_from_ulongest): Likewise.
1179 * python/py-type.c (typy_get_alignof): Update.
1180 * python/py-linetable.c (ltpy_get_all_source_lines)
1181 (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
1182 * python/py-block.c (blpy_get_start, blpy_get_end): Update.
1183
1184 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1185
1186 * ada-lang.c (_initialize_ada_language): Fix typo.
1187
1188 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1189
1190 * language.c (type): Remove.
1191 (_initialize_language): Remove assignment to type.
1192
1193 2018-11-02 Joel Brobecker <brobecker@adacore.com>
1194
1195 * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
1196 * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
1197 (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
1198 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
1199 (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
1200 (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
1201 * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
1202 and aarch64-ravenscar-thread.o.
1203 * NEWS: Add entry documenting Ravenscar tasking support
1204 on AArch64 ELF.
1205
1206 2018-11-02 Matthew Malcomson <matthew.malcomson@arm.com>
1207
1208 * symtab.c (info_functions_command): Initialize quiet flag.
1209 * stack.c (info_args_command): Likewise.
1210
1211 2018-11-01 Jim Wilson <jimw@sifive.com>
1212
1213 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
1214 Set if pcptr if unaligned. Return 2 if unaligned_p true. Update
1215 debugging messages.
1216
1217 2018-11-01 Joel Brobecker <brobecker@adacore.com>
1218
1219 * ada-lang.c (ada_watch_location_expression): New function.
1220 (ada_language_defn): Set la_watch_location_expression to
1221 ada_watch_location_expression.
1222
1223 2018-11-01 Joel Brobecker <brobecker@adacore.com>
1224
1225 * print-utils.c (int_string): Remove unnecessary trailing spaces.
1226
1227 2018-11-01 Joel Brobecker <brobecker@adacore.com>
1228
1229 * rs6000-tdep.c (skip_prologue): Fix potential negative left
1230 shifting.
1231
1232 2018-11-01 Jerome Guitton <guitton@adacore.com>
1233 Joel Brobecker <brobecker@adacore.com>
1234
1235 * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
1236 * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
1237 * arm-pikeos-tdep.c: New file.
1238 * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
1239 embedded system.
1240 * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
1241
1242 2018-11-01 Simon Marchi <simon.marchi@ericsson.com>
1243
1244 * common/pathstuff.c (get_standard_temp_dir): New.
1245 * common/pathstuff.h (get_standard_temp_dir): New.
1246 * config.in: Re-generate.
1247 * configure: Re-generate.
1248 * configure.ac: Don't check for mkdtemp.
1249 * gnulib/aclocal-m4-deps.mk: Re-generate.
1250 * gnulib/aclocal.m4: Re-generate.
1251 * gnulib/config.in: Re-generate.
1252 * gnulib/configure: Re-generate.
1253 * gnulib/import/Makefile.am: Re-generate.
1254 * gnulib/import/Makefile.in: Re-generate.
1255 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1256 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1257 * gnulib/import/m4/mkdtemp.m4: New file.
1258 * gnulib/import/mkdtemp.c: New file.
1259 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
1260 Add mkdtemp module.
1261 * unittests/mkdir-recursive-selftests.c (test): Use
1262 get_standard_temp_dir.
1263 (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
1264 ifdef.
1265 * compile/compile.c (get_compile_file_tempdir): Likewise.
1266
1267 2018-11-01 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1268
1269 * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1270 (SIG_FRAME_LR_OFFSET64): New define.
1271 (SIG_FRAME_FP_OFFSET64): New define.
1272 (aix_sighandle_frame_cache): New Function.
1273 (aix_sighandle_frame_this_id): New Function.
1274 (aix_sighandle_frame_prev_register): New Function.
1275 (aix_sighandle_frame_sniffer): New Function.
1276 (aix_sighandle_frame_unwind): New global variable.
1277 (rs6000_aix_init_osabi): Install new frame unwinder.
1278
1279 2018-10-31 Sergio Durigan Junior <sergiodj@redhat.com>
1280
1281 PR gdb/23835
1282 * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
1283 already defined.
1284
1285 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1286
1287 * ppc-linux-nat.c: Include nat/linux-ptrace.h.
1288
1289 2018-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1290
1291 * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
1292 (producer_is_icc): New function.
1293 (check_producer): Set producer_is_icc field on dwarf2_cu.
1294 (dwarf2_init_integer_type): New function.
1295 (read_base_type): Call dwarf2_init_integer_type instead of
1296 init_integer_type in all cases.
1297 (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
1298 * valprint.c (maybe_negate_by_bytes): Add an assertion that the
1299 LEN is greater than 0.
1300
1301 2018-10-30 Tom Tromey <tom@tromey.com>
1302
1303 * main.c (captured_main_1): Check return value of bfd_init.
1304
1305 2018-10-29 Sergio Durigan Junior <sergiodj@redhat.com>
1306
1307 * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
1308 Adjust comments.
1309
1310 2018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1311
1312 * procfs.c: Include common/pathstuff.h.
1313
1314 2018-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
1315
1316 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1317 Add missing braces. No functional change.
1318
1319 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1320
1321 * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
1322 to report a bad option and fix indentation.
1323 * demangle.c (demangle_command): Use report_unrecognized_option_error
1324 to report a bad option and correctly report the bad option.
1325
1326 2018-10-27 Tom Tromey <tom@tromey.com>
1327
1328 PR cli/23364:
1329 * darwin-nat.c (copied_shell): New global.
1330 (may_have_sip): Rename from should_disable_startup_with_shell.
1331 (copy_shell_to_cache, maybe_cache_shell): New functions.
1332 (darwin_nat_target::create_inferior): Update. Use
1333 copied_shell.
1334
1335 2018-10-27 Tom Tromey <tom@tromey.com>
1336
1337 * unittests/scoped_fd-selftests.c (test_to_file): New function.
1338 (run_tests): Call test_to_file.
1339 * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
1340 temporary files.
1341 * common/scoped_fd.h (scoped_fd::to_file): New method.
1342
1343 2018-10-27 Tom Tromey <tom@tromey.com>
1344
1345 * unittests/scoped_mmap-selftests.c (test_normal): Use
1346 gdb_mkostemp_cloexec.
1347 * unittests/scoped_fd-selftests.c (test_destroy, test_release):
1348 Use gdb_mkostemp_cloexec.
1349 * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
1350 gnulib/config.in, gnulib/configure,
1351 gnulib/import/Makefile.am, gnulib/import/Makefile.in,
1352 gnulib/import/m4/gnulib-cache.m4,
1353 gnulib/import/m4/gnulib-comp.m4: Update.
1354 * gnulib/import/m4/mkostemp.m4: New file.
1355 * gnulib/import/m4/mkstemp.m4: Remove.
1356 * gnulib/import/mkostemp.c: New file.
1357 * gnulib/import/mkstemp.m4: Remove.
1358 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
1359 mkstemp, add mkostemp. Apply new patch.
1360 * gnulib/import/stdlib.in.h: Apply patch.
1361 * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
1362 New file.
1363 * dwarf-index-write.c (write_psymtabs_to_index): Use
1364 gdb_mkostemp_cloexec.
1365 * common/filestuff.h (gdb_mkostemp_cloexec): New function.
1366
1367 2018-10-27 Tom Tromey <tom@tromey.com>
1368
1369 * unittests/mkdir-recursive-selftests.c: New file.
1370 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1371 unittests/mkdir-recursive-selftests.c.
1372 * dwarf-index-cache.c (mkdir_recursive): Move to
1373 common/filestuff.c.
1374 (index_cache::store): Check return value of mkdir_recursive.
1375 (create_dir_and_check, test_mkdir_recursive): Move to new file.
1376 (_initialize_index_cache): Don't register test.
1377 * common/filestuff.h (mkdir_recursive): Declare.
1378 * common/filestuff.c (mkdir_recursive): Move from
1379 dwarf-index-cache.c. Return bool.
1380
1381 2018-10-27 Tom Tromey <tom@tromey.com>
1382
1383 * dwarf-index-write.c (write_psymtabs_to_index): Move
1384 make_temp_filename to common/pathstuff.c.
1385 * common/pathstuff.h (make_temp_filename): Declare.
1386 * common/pathstuff.c (make_temp_filename): New function, moved
1387 from dwarf-index-write.c.
1388
1389 2018-10-27 Tom Tromey <tom@tromey.com>
1390
1391 * procfs.c (procfs_target::create_inferior): Use get_shell.
1392 * cli/cli-cmds.c (shell_escape): Use get_shell.
1393 * windows-nat.c (windows_nat_target::create_inferior): Use
1394 get_shell.
1395 * common/pathstuff.c (get_shell): New function.
1396 * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
1397 (fork_inferior): Use get_shell.
1398 * common/pathstuff.h (get_shell): Declare.
1399
1400 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1401
1402 * NEWS: Mention changes to 'info [args|functions|locals|variables]'
1403
1404 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1405
1406 * stack.c (print_variable_and_value_data): Add preg and treg.
1407 (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
1408 and update callers.
1409 (print_frame_arg_vars): Likewise.
1410 (prepare_reg): New function.
1411 (info_locals_command): Extract info print args and use them.
1412 (info_args_command): Likewise.
1413 (_initialize_stack): Modify on-line help.
1414 * symtab.c (treg_matches_sym_type_name): New function.
1415 (search_symbols): New arg t_regexp.
1416 (symtab_symbol_info): New args quiet, regexp, t_regexp.
1417 (info_variables_command): Extract info print args and use them.
1418 (info_functions_command): Likewise.
1419 (info_types_command): Update call to symtab_symbol_info.
1420 (_initialize_symtab): Modify on-line help.
1421 * symtab.h (treg_matches_sym_type_name): New function.
1422 (search_symbols): New t_regexp arg.
1423
1424 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1425
1426 * cli-utils.c (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 * cli-utils.h (extract_arg_maybe_quoted): New function.
1431 (extract_info_print_args): New function.
1432 (info_print_args_help): New function.
1433 (report_unrecognized_option_error): New function.
1434
1435 2018-10-26 Tom Tromey <tom@tromey.com>
1436
1437 * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
1438 (compute_compunit_symtab_includes): Update.
1439 * symtab.h: (symtab_ptr): Remove typedef. Don't define a VEC.
1440 (compunit_symtab_ptr): Likewise.
1441
1442 2018-10-26 John Baldwin <jhb@FreeBSD.org>
1443
1444 * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
1445 default_print_auxv_entry for specific tag values.
1446
1447 2018-10-26 John Baldwin <jhb@FreeBSD.org>
1448
1449 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
1450
1451 2018-10-26 Jim Wilson <jimw@sifive.com>
1452
1453 * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
1454 (riscv_linux_sigframe_init): Declare.
1455 (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
1456 (riscv_linux_sigframe): New.
1457 (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
1458 (riscv_linux_sigframe_init): Define.
1459 (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
1460
1461 * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
1462 (riscv_isa_flen): Likewise. Drop static.
1463 * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
1464 (riscv_isa_flen): Likewise. Declare.
1465
1466 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1467 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1468
1469 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
1470 (tdesc_powerpc_isa207_htm_vsx64l): Declare.
1471 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
1472 (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
1473 (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
1474 (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
1475 (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
1476 Define.
1477 (struct ppc_linux_features) <htm>: New field.
1478 (ppc_linux_no_features): Add initializer for htm field.
1479 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1480 new tdescs.
1481 * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
1482 (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
1483 (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
1484 Define if not already defined.
1485 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
1486 and rs6000/powerpc-isa207-htm-vsx64l.
1487 (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
1488 rs6000/powerpc-isa207-htm-vsx64l.xml.
1489 * features/rs6000/power-htm-spr.xml: New file.
1490 * features/rs6000/power-htm-core.xml: New file.
1491 * features/rs6000/power64-htm-core.xml: New file.
1492 * features/rs6000/power-htm-fpu.xml: New file.
1493 * features/rs6000/power-htm-altivec.xml: New file.
1494 * features/rs6000/power-htm-vsx.xml: New file.
1495 * features/rs6000/power-htm-ppr.xml: New file.
1496 * features/rs6000/power-htm-dscr.xml: New file.
1497 * features/rs6000/power-htm-tar.xml: New file.
1498 * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
1499 * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
1500 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
1501 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
1502 * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
1503 * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
1504 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1505 fetch_regset with HTM regsets.
1506 (store_register, store_ppc_registers): Call store_regset with HTM
1507 regsets.
1508 (ppc_linux_nat_target::read_description): Set htm field in the
1509 features struct if needed.
1510 * ppc-linux-tdep.c: Include
1511 features/rs6000/powerpc-isa207-htm-vsx32l.c and
1512 features/rs6000/powerpc-isa207-htm-vsx64l.c.
1513 (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
1514 (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
1515 (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
1516 (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
1517 (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
1518 (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
1519 (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
1520 (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
1521 (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
1522 (ppc32_linux_ctarregset): New globals.
1523 (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
1524 (ppc_linux_collect_core_cpgrregset): New function.
1525 (ppc_linux_iterate_over_regset_sections): Call back with the htm
1526 regsets.
1527 (ppc_linux_core_read_description): Check if the tm spr section is
1528 present and set htm in the features struct.
1529 (_initialize_ppc_linux_tdep): Call
1530 initialize_tdesc_powerpc_isa207_htm_vsx32l and
1531 initialize_tdesc_powerpc_isa207_htm_vsx64l.
1532 * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
1533 Declare.
1534 (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
1535 (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
1536 (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
1537 * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
1538 New fields.
1539 <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
1540 Likewise.
1541 <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
1542 <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
1543 (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
1544 New enum fields.
1545 <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
1546 <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
1547 <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
1548 <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
1549 <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
1550 <PPC_CTAR_REGNUM>: Likewise.
1551 (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
1552 (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
1553 * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
1554 (IS_CEFP_PSEUDOREG): Define.
1555 (rs6000_register_name): Hide the upper halves of checkpointed VSX
1556 registers. Return names for the checkpointed DFP, VSX, and EFP
1557 pseudo registers.
1558 (rs6000_pseudo_register_type): Remove initial assert and raise an
1559 internal error in the else clause instead. Return types for the
1560 checkpointed DFP, VSX, and EFP pseudo registers.
1561 (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
1562 checkpointed DFP pseudo registers.
1563 (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
1564 checkpointed VSX pseudo registers.
1565 (efp_pseudo_register_read, efp_pseudo_register_write): Rename
1566 from efpr_pseudo_register_read and
1567 efpr_pseudo_register_write. Handle checkpointed EFP pseudo
1568 registers.
1569 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
1570 Handle checkpointed DFP, VSX, and EFP registers.
1571 (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
1572 (efp_ax_pseudo_register_collect): New functions.
1573 (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
1574 register logic to new functions. Handle checkpointed DFP, VSX,
1575 and EFP pseudo registers.
1576 (rs6000_gdbarch_init): Look for and validate the htm features.
1577 Include checkpointed DFP, VSX and EFP pseudo-registers.
1578 * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
1579 HTM registers.
1580
1581 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1582
1583 * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
1584 without altivec or fpu.
1585
1586 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1587 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1588
1589 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
1590 (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
1591 * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
1592 Define if not already defined.
1593 * features/rs6000/power-ebb.xml: New file.
1594 * features/rs6000/power-linux-pmu.xml: New file.
1595 * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
1596 features.
1597 * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
1598 * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
1599 * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
1600 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
1601 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
1602 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1603 fetch_regset with ebb and pmu regsets.
1604 (store_register, store_ppc_registers): Call store_regset with ebb
1605 and pmu regsets.
1606 (ppc_linux_nat_target::read_description): Set isa207 field in the
1607 features struct if ebb and pmu are avaiable.
1608 * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
1609 (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
1610 (ppc_linux_iterate_over_regset_sections): Call back with the ebb
1611 and pmu regsets.
1612 (ppc_linux_core_read_description): Check if the pmu section is
1613 present and set isa207 in the features struct.
1614 * ppc-linux-tdep.h (ppc32_linux_ebbregset)
1615 (ppc32_linux_pmuregset): Declare.
1616 * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
1617 <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
1618 <ppc_sier_regnum>: New field.
1619 (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
1620 New enum values.
1621 <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
1622 values.
1623 <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
1624 (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
1625 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
1626 ebb and pmu features.
1627
1628 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1629 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1630
1631 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
1632 (tdesc_powerpc_isa207_vsx64l): Declare.
1633 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
1634 (struct ppc_linux_features) <isa207>: New field.
1635 (ppc_linux_no_features): Add initializer for isa207 field.
1636 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1637 new tdescs.
1638 * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
1639 (NT_PPC_TAR): Define if not already defined.
1640 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
1641 rs6000/powerpc-isa207-vsx64l.
1642 (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
1643 rs6000/powerpc-isa207-vsx64l.xml.
1644 * features/rs6000/power-tar.xml: New file.
1645 * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
1646 * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
1647 * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
1648 * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
1649 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
1650 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
1651 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1652 fetch_regset with the TAR regset.
1653 (store_register, store_ppc_registers): Call store_regset with the
1654 TAR regset.
1655 (ppc_linux_nat_target::read_description): Set isa207 field in the
1656 features struct if needed.
1657 * ppc-linux-tdep.c: Include
1658 features/rs6000/powerpc-isa207-vsx32l.c and
1659 features/rs6000/powerpc-isa207-vsx64l.c.
1660 (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
1661 (ppc_linux_iterate_over_regset_sections): Call back with the tar
1662 regset.
1663 (ppc_linux_core_read_description): Check if the tar section is
1664 present and set isa207 in the features struct.
1665 (_initialize_ppc_linux_tdep): Call
1666 initialize_tdesc_powerpc_isa207_vsx32l and
1667 initialize_tdesc_powerpc_isa207_vsx64l.
1668 * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
1669 * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
1670 (enum) <PPC_TAR_REGNUM>: New enum value.
1671 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
1672 feature.
1673 (ppc_process_record_op31): Record changes to TAR.
1674
1675 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1676 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1677
1678 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
1679 (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
1680 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
1681 (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
1682 (struct ppc_linux_features) <ppr_dscr>: New field.
1683 (ppc_linux_no_features): Add initializer for ppr_dscr field.
1684 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1685 new tdescs.
1686 * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
1687 Define if not already defined.
1688 * features/Makefile (WHICH): Add
1689 rs6000/powerpc-isa205-ppr-dscr-vsx32l and
1690 rs6000/powerpc-isa205-ppr-dscr-vsx64l.
1691 (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
1692 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
1693 * features/rs6000/power-dscr.xml: New file.
1694 * features/rs6000/power-ppr.xml: New file.
1695 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
1696 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
1697 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
1698 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
1699 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
1700 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
1701 * ppc-linux-nat.c: Include <sys/uio.h>.
1702 (fetch_regset, store_regset, check_regset): New functions.
1703 (fetch_register, fetch_ppc_registers): Call fetch_regset with
1704 DSCR and PPR regsets.
1705 (store_register, store_ppc_registers): Call store_regset with
1706 DSCR and PPR regsets.
1707 (ppc_linux_get_hwcap2): New function.
1708 (ppc_linux_nat_target::read_description): Call
1709 ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
1710 features struct if needed.
1711 * ppc-linux-tdep.c: Include
1712 features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
1713 features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
1714 (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
1715 (ppc32_linux_dscrregset): New globals.
1716 (ppc_linux_iterate_over_regset_sections): Call back with the ppr
1717 and dscr regsets.
1718 (ppc_linux_core_read_description): Check if the ppr and dscr
1719 sections are present and set ppr_dscr in the features struct.
1720 (_initialize_ppc_linux_tdep): Call
1721 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
1722 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
1723 * ppc-linux-tdep.h (ppc32_linux_pprregset)
1724 (ppc32_linux_dscrregset): Declare.
1725 * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
1726 <ppc_dscr_regnum>: New field.
1727 (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
1728 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
1729 and dscr features.
1730 (ppc_process_record_op31): Record changes to PPR and DSCR.
1731
1732 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1733
1734 * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
1735 second initializer line for the have_* variables. Initialize
1736 have_fpu to 0 instead of 1.
1737
1738 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1739
1740 * arch/ppc-linux-common.c (ppc_linux_match_description):
1741 Parenthesize tdesc assignements and indent them properly.
1742
1743 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1744
1745 * ppc-linux-nat.c (fetch_register): Change if statement to else
1746 if.
1747 (store_register): Likewise.
1748
1749 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1750
1751 * rs6000-tdep.c: Remove reggroups.h include.
1752 (rs6000_pseudo_register_reggroup_p): Remove.
1753 (rs6000_gdbarch_init): Remove call to
1754 set_tdesc_pseudo_register_reggroup_p.
1755
1756 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1757
1758 * reggroups.c (default_register_reggroup_p): Return true for
1759 decfloat registers and float_reggroup.
1760
1761 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1762
1763 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
1764 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
1765 ppc_linux_collect_vrregset by regcache_collect_regset.
1766
1767 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1768
1769 * linux-tdep.c (linux_collect_regset_section_cb): Use
1770 std::vector<gdb_byte> instead of char * and malloc for buf.
1771 Remove xfree.
1772
1773 2018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1774
1775 * xcoffread.c (read_xcoff_symtab): Pass deduced language to
1776 symtab_start instead of always using language_unknown.
1777
1778 2018-10-26 Andrew Burgess <andrew.burgess@embecosm.com>
1779
1780 * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
1781 READ_P parameter, catch and ignore register access errors from
1782 either the old or new MISA location.
1783 (riscv_has_feature): Update call to riscv_read_misa_reg.
1784
1785 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1786
1787 * python/py-function.c (convert_values_to_python): Return
1788 gdbpy_ref<>. Add header comment.
1789 (fnpy_call): Adjust.
1790
1791 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1792
1793 * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
1794 (cmdpy_completer_handle_brkchars): Adjust.
1795 (cmdpy_completer): Adjust.
1796
1797 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1798
1799 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1800 Pass correct regnum to raw_supply_zeroed.
1801
1802 2018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com>
1803
1804 * regcache.c (cooked_read_test): Add CSKY to the list of
1805 architectures with a save_reggroup
1806
1807 2018-10-23 Simon Marchi <simon.marchi@polymtl.ca>
1808
1809 PR gdb/23368
1810 * infrun.c (follow_exec): In the follow_exec_mode_new case,
1811 transfer terminal state from old new new inferior.
1812 * terminal.h (swap_terminal_info): New function.
1813 * inflow.c (swap_terminal_info): New function.
1814
1815 2018-10-23 Tom Tromey <tom@tromey.com>
1816
1817 * record-btrace.c (get_thread_current_frame_id): Rename from
1818 get_thread_current_frame. Return a frame_id.
1819 (record_btrace_start_replaying): Update.
1820
1821 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1822
1823 * riscv-tdep.c (riscv_register_name): Use the user-friendly names
1824 for CSRs.
1825
1826 2018-10-23 Joel Brobecker <brobecker@adacore.com>
1827
1828 * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
1829 have_nonsteppable_watchpoint attribute to 1.
1830
1831 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1832
1833 * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
1834 register names.
1835 (struct register_alias): Rename to...
1836 (struct riscv_register_alias): ...this, and update comment.
1837 (riscv_register_aliases): Update type, and alias names. Remove
1838 CSR names from this list.
1839 (riscv_register_name): Use riscv_gdb_reg_names for int and float
1840 register names. Add an extra assertion.
1841 (riscv_is_regnum_a_named_csr): New function.
1842 (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
1843
1844 2018-10-23 John Darrington <john@darrington.wattle.id.au>
1845
1846 * configure.tgt: Add configuration for s12z.
1847 * s12z-tdep.c: New file.
1848 * NEWS: Mention new target.
1849
1850 2018-10-22 Jim Wilson <jimw@sifive.com>
1851
1852 * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
1853 FP reg smaller than FP reg size, and fill with -1 instead of 0.
1854
1855 * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
1856 (riscv_register_type): Use them.
1857 (riscv_print_one_register_info): Handle union of floats same as float.
1858 * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
1859 riscv_fpreg_q_type fields.
1860
1861 2018-10-21 Simon Marchi <simon.marchi@ericsson.com>
1862
1863 * gdbarch.sh (gdbarch_num_cooked_regs): New.
1864 * gdbarch.h: Re-generate.
1865 * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
1866 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1867 * eval.c (evaluate_subexp_standard): Likewise.
1868 * findvar.c (value_of_register): Likewise.
1869 (value_of_register_lazy): Likewise.
1870 (address_from_register): Likewise.
1871 * frame.c (get_frame_register_bytes): Likewise.
1872 * gdbarch-selftests.c (register_to_value_test): Likewise.
1873 * h8300-tdep.c (h8300_register_type): Likewise.
1874 * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
1875 (i386_svr4_reg_to_regnum): Likewise.
1876 * infcmd.c (default_print_registers_info): Likewise.
1877 (registers_info): Likewise.
1878 (print_vector_info): Likewise.
1879 (default_print_float_info): Likewise.
1880 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1881 * mdebugread.c (mdebug_reg_to_regnum): Likewise.
1882 * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
1883 (mi_cmd_data_list_changed_registers): Likewise.
1884 (mi_cmd_data_list_register_values): Likewise.
1885 (mi_cmd_data_write_register_values): Likewise.
1886 (mi_cmd_trace_frame_collected): Likewise.
1887 * mips-tdep.c (print_gp_register_row): Likewise.
1888 (mips_print_registers_info): Likewise.
1889 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
1890 * regcache.c (init_regcache_descr): Likewise.
1891 (register_size): Likewise.
1892 (register_dump::dump): Likewise.
1893 (cooked_read_test): Likewise.
1894 (cooked_write_test): Likewise.
1895 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1896 (rs6000_gdbarch_init): Likewise.
1897 * stabsread.c (stab_reg_to_regnum): Likewise.
1898 * stack.c (info_frame_command): Likewise.
1899 * target-descriptions.c (tdesc_register_name): Likewise.
1900 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1901 * tui/tui-regs.c (tui_show_register_group): Likewise.
1902 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1903 (user_reg_map_regnum_to_name): Likewise.
1904 (value_of_user_reg): Likewise.
1905 (maintenance_print_user_registers): Likewise.
1906 * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
1907 (xtensa_register_name): Likewise.
1908 (xtensa_register_type): Likewise.
1909 (xtensa_reg_to_regnum): Likewise.
1910 (xtensa_pseudo_register_read): Likewise.
1911 (xtensa_pseudo_register_write): Likewise.
1912
1913 2018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1914
1915 * amd64-tdep.c (amd64_pseudo_register_read_value): Use
1916 correctly-sized buffer with raw_read.
1917 (amd64_pseudo_register_write): Use correctly-sized buffer for
1918 raw_read/raw_write.
1919
1920 2018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1921
1922 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
1923 in add_prefix_cmd of set print type.
1924
1925 2018-10-19 Tom Tromey <tom@tromey.com>
1926
1927 PR tui/18388:
1928 * NEWS: Mention tabset deprecation.
1929 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
1930 (update_tab_width): New function.
1931 (tui_set_tab_width, tui_show_tab_width): New functions.
1932 (tui_set_tab_width_command): Use update_tab_width.
1933 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
1934 Add new "set tui tab-width" command.
1935 * tui/tui-source.c (tui_set_source_content): Update.
1936 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1937 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
1938 Don't declare.
1939 (tui_tab_width): Declare.
1940 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
1941 (tui_set_default_tab_len): Remove.
1942
1943 2018-10-19 Tom Tromey <tom@tromey.com>
1944
1945 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
1946 (key_is_backspace, tui_getc): Don't declare.
1947 * tui/tui-io.c (key_is_start_sequence): Now static.
1948 (key_is_end_sequence, key_is_backspace): Remove.
1949 (tui_getc): Now static.
1950
1951 2018-10-19 Tom Tromey <tom@tromey.com>
1952
1953 * symfile.c (reread_symbols): Clear "static_links".
1954
1955 2018-10-19 Alan Hayward <alan.hayward@arm.com>
1956
1957 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
1958 define.
1959 (aarch64_linux_sigframe_init): Extra boundary checks.
1960
1961 2018-10-19 Andreas Arnez <arnez@linux.ibm.com>
1962
1963 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
1964 the possibly non-existent tdesc type 'vec128', but the type of raw
1965 register v16 instead.
1966
1967 2018-10-19 Gary Benson <gbenson@redhat.com>
1968
1969 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
1970
1971 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
1972
1973 PR cli/23785
1974 * cli/cli-dump.c (restore_binary_file): Check if "file" is
1975 NULL.
1976
1977 2018-10-17 Paul Koning <paul_koning@dell.com>
1978
1979 * charset.c (convert_between_encodings): Fix unsigned overflow.
1980
1981 2018-10-17 John Baldwin <jhb@FreeBSD.org>
1982
1983 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
1984 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
1985 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
1986 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1987 New functions.
1988 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
1989 and fbsd_info_proc_mappings_header.
1990 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
1991 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1992 New.
1993
1994 2018-10-17 Joel Brobecker <brobecker@adacore.com>
1995
1996 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
1997 Solaris Maintainer.
1998
1999 2018-10-15 Tom Tromey <tom@tromey.com>
2000
2001 * tui/tui.c (strcat_to_buf): Remove casts.
2002 * tui/tui-winsource.c (tui_show_source_line)
2003 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
2004 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
2005 * tui/tui-windata.c (tui_first_data_item_displayed)
2006 (tui_delete_data_content_windows, tui_erase_data_content)
2007 (tui_display_all_data, tui_display_data_from)
2008 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
2009 * tui/tui-win.c (tui_set_win_height)
2010 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
2011 casts.
2012 * tui/tui-win.c (tui_resize_all): Remove casts.
2013 (tui_scroll_backward_command, tui_set_focus)
2014 (tui_set_tab_width_command): Likewise.
2015 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
2016 * tui/tui-regs.c (tui_show_register_group): Remove cast.
2017 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
2018 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
2019 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
2020 Remove casts.
2021
2022 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
2023
2024 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
2025 AArch64/ARM maintainer.
2026
2027 2018-10-11 Gary Benson <gbenson@redhat.com>
2028
2029 * interps.h (interp::m_name): Make private and mutable.
2030 * interps.c (interp::~interp): Free m_name.
2031
2032 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2033 Simon Marchi <simark@simark.ca>
2034
2035 * README (`configure' options): Add documentation for new
2036 "--enable-unit-tests" option.
2037 * acinclude.m4: Include "selftest.m4".
2038 * configure: Regenerate.
2039 * configure.ac: Use "GDB_AC_SELFTEST".
2040 * maint.c (maintenance_selftest): Update message informing
2041 that selftests have been disabled.
2042 (maintenance_info_selftests): Likewise.
2043 * selftest.m4: New file.
2044
2045 2018-10-10 Gary Benson <gbenson@redhat.com>
2046
2047 * remote.c (remote_target::remote_send_printf): Add
2048 missing va_end found by Coverity.
2049
2050 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
2051
2052 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
2053
2054 2018-10-09 Tom Tromey <tom@tromey.com>
2055
2056 * configure: Rebuild.
2057 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
2058 * NEWS: Update --enable-ubsan documentation.
2059
2060 2018-10-09 Gary Benson <gbenson@redhat.com>
2061
2062 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
2063 found by Coverity.
2064
2065 2018-10-08 Tom Tromey <tom@tromey.com>
2066
2067 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
2068 variable.
2069 (riscv_fbsd_init_abi): Likewise.
2070
2071 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
2072 * valops.c (value_struct_elt_for_reference): Rename local variable
2073 to work around the shadowing a previous local warning.
2074
2075 2018-10-08 John Baldwin <jhb@FreeBSD.org>
2076
2077 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
2078 * NEWS: Mention new FreeBSD/riscv native configuration.
2079 * configure.host: Add riscv*-*-freebsd*.
2080 * configure.nat: Likewise.
2081 * riscv-fbsd-nat.c: New file.
2082
2083 2018-10-08 John Baldwin <jhb@FreeBSD.org>
2084
2085 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
2086 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
2087 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
2088 * NEWS: Mention new FreeBSD/riscv target.
2089 * configure.tgt: Add riscv*-*-freebsd*.
2090 * riscv-fbsd-tdep.c: New file.
2091 * riscv-fbsd-tdep.h: New file.
2092
2093 2018-10-08 John Baldwin <jhb@FreeBSD.org>
2094
2095 * regcache.h (struct regcache_map_entry): Note that this type can
2096 be used with traditional frame caches.
2097 * trad-frame.c (trad_frame_set_reg_regmap): New.
2098 * trad-frame.h (trad_frame_set_reg_regmap): New.
2099
2100 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
2101
2102 PR c++/16841
2103 * valops.c (get_virtual_base_offset): New function.
2104 (value_struct_elt_for_reference): Use it to get virtual base offset
2105 and add it in calculating class member address.
2106
2107 2018-10-08 John Darrington <john@darrington.wattle.id.au>
2108
2109 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
2110 (check_producer): Check if the producer is codewarrior.
2111 (producer_is_codewarrior): New function.
2112 (lnp_state_machine::record_line): Ignore is_stmt flag for records
2113 produced by codewarrior.
2114 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
2115
2116 2018-10-06 Tom Tromey <tom@tromey.com>
2117
2118 PR python/19399:
2119 * python/py-inferior.c: Add "architecture" entry.
2120 (infpy_architecture): New function.
2121
2122 2018-10-06 Tom Tromey <tom@tromey.com>
2123
2124 PR python/21765:
2125 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
2126 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
2127 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
2128 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
2129
2130 2018-10-06 Tom Tromey <tom@tromey.com>
2131
2132 PR build/17077:
2133 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
2134 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
2135 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
2136 #include.
2137
2138 2018-10-06 Tom Tromey <tom@tromey.com>
2139
2140 * python/py-breakpoint.c (bppy_get_location): Handle a
2141 bp_breakpoint without a location.
2142
2143 2018-10-06 Tom Tromey <tom@tromey.com>
2144
2145 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
2146 (_RegEx): Reformat help text.
2147 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
2148 (AnyCallerIs, AnyCallerMatches): Reformat help text.
2149 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
2150 text.
2151 * python/lib/gdb/command/xmethods.py (InfoXMethod)
2152 (EnableXMethod, DisableXMethod): Remove help indentation.
2153 Capitalize meta-syntactic variables.
2154 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
2155 (EnableUnwinder, DisableUnwinder): Remove help indentation.
2156 Capitalize meta-syntactic variables.
2157 * python/lib/gdb/command/explore.py (ExploreCommand)
2158 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
2159 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
2160 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
2161 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
2162 Remove help indentation.
2163 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
2164 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
2165 (DisableFrameFilter, SetFrameFilterPriority)
2166 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
2167
2168 2018-10-06 Tom Tromey <tom@tromey.com>
2169
2170 PR tui/28819:
2171 * tui/tui-io.c (gdb_wgetch): New function.
2172 (tui_mld_getc, tui_getc): Use it.
2173
2174 2018-10-05 Tom Tromey <tom@tromey.com>
2175
2176 * sol-thread.c (sol_thread_target::wait): Rename inner
2177 "save_ptid".
2178
2179 2018-10-04 Tom Tromey <tom@tromey.com>
2180
2181 * configure: Rebuild.
2182 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
2183
2184 2018-10-04 Tom Tromey <tom@tromey.com>
2185
2186 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
2187 declaration of "block".
2188
2189 2018-10-04 Tom Tromey <tom@tromey.com>
2190
2191 * common/filestuff.c (fdwalk): Remove inner declaration of
2192 "result".
2193
2194 2018-10-04 Tom Tromey <tom@tromey.com>
2195
2196 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
2197 "structs_addr" and hoist declaration.
2198
2199 2018-10-04 Tom Tromey <tom@tromey.com>
2200
2201 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
2202 variable "size".
2203
2204 2018-10-04 Tom Tromey <tom@tromey.com>
2205
2206 * mdebugread.c (parse_partial_symbols): Use std::string.
2207
2208 2018-10-04 Tom Tromey <tom@tromey.com>
2209
2210 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
2211 * p-valprint.c (pascal_val_print): Split inner "i" variable.
2212 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
2213 header.
2214 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
2215 more inner scope.
2216 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
2217 * varobj.c (varobj_update): Rename inner "newobj",
2218 "type_changed".
2219 * valprint.c (generic_emit_char): Rename inner "buf".
2220 * valops.c (find_overload_match): Rename inner "temp".
2221 (value_struct_elt_for_reference): Declare "v" in more inner
2222 scope.
2223 * v850-tdep.c (v850_push_dummy_call): Rename "len".
2224 * unittests/array-view-selftests.c (run_tests): Rename inner
2225 "vec".
2226 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
2227 header.
2228 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
2229 "tsv" in more inner scope.
2230 (print_one_static_tracepoint_marker): Rename inner
2231 "tuple_emitter".
2232 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
2233 (tic6x_push_dummy_call): Don't redeclare "addr".
2234 * target-float.c: Declare "dto" lower.
2235 * symtab.c (lookup_local_symbol): Rename inner "sym".
2236 (find_pc_sect_line): Rename inner "pc".
2237 * stack.c (print_frame): Don't redeclare "gdbarch".
2238 (return_command): Rename inner "gdbarch".
2239 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
2240 "sp".
2241 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
2242 header.
2243 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
2244 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
2245 scope.
2246 * remote.c (remote_target::update_thread_list): Don't redeclare
2247 "tp".
2248 (remote_target::process_initial_stop_replies): Rename inner
2249 "thread".
2250 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
2251 (remote_target::wait_as): Don't redeclare "stop_reply".
2252 (remote_target::get_thread_local_address): Rename inner
2253 "result".
2254 (remote_target::get_tib_address): Likewise.
2255
2256 * regcache.c (cooked_read_test): Rename "regnum".
2257 * record-btrace.c (cmd_record_btrace_start): Rename inner
2258 "exception".
2259 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
2260 loop header.
2261 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
2262 header.
2263 (ppu2spu_sniffer): Rename inner "buf".
2264 * parse.c (operator_check_standard): Rename inner "type",
2265 "objfile".
2266 * p-valprint.c (pascal_val_print): Introduce new scope for
2267 "low_bound", "high_bound".
2268 * p-exp.y (yylex): Declare "i" in loop header.
2269 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
2270 Lower declaration of "s".
2271 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
2272 header.
2273 (nios2_push_dummy_call): Rename "len".
2274 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
2275 "buf".
2276 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
2277 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
2278 (linux_xfer_osdata_modules): Likewise.
2279 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
2280 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
2281 (mips_o64_push_dummy_call): Likewise.
2282 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
2283 "op".
2284 * mi/mi-main.c (list_available_thread_groups): Rename inner
2285 "tuple_emitter".
2286 (mi_cmd_data_read_memory): Rename inner "opts".
2287 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
2288 "tuple_emitter".
2289 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
2290 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
2291 more inner scope.
2292 (parse_partial_symbols): Rename inner "pst", "p", "name"
2293 * main.c (captured_main_1): Rename inner "i"s.
2294 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
2295 "oso2".
2296 * linux-tdep.c (linux_info_proc): Rename inner "filename".
2297 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
2298 * infrun.c (handle_no_resumed): Don't redeclare "thread".
2299 (handle_signal_stop): Rename inner "gdbarch".
2300 (handle_command): Declare "signum" in loop header.
2301 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
2302 "status".
2303 (examine_prologue): Rename inner "sol" and "sof".
2304 (ia64_extract_return_value): Rename inner "val". Declare another
2305 "val" in a more inner scope.
2306 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
2307 inner scope.
2308 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
2309 "except".
2310 * findvar.c (default_read_var_value): Don't redeclare "addr".
2311 * f-exp.y (yylex): Declare "i" in loop header.
2312 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
2313 Rename inner "type", "expect_type".
2314 (evaluate_subexp_for_sizeof): Rename inner "pc".
2315 * elfread.c (elf_symfile_read): Rename inner "abfd".
2316 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
2317 "bytes_read".
2318 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
2319 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
2320 (dwarf_decode_line_header): Rename inner "lh".
2321 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
2322 "offset". Declare "i" in loop header.
2323 (disassemble_dwarf_expression): Rename inner "addr_size".
2324 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
2325 inner "result".
2326 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
2327 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
2328 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
2329 "inner_list_emitter".
2330 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
2331 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
2332 declaration in a block.
2333 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
2334 * cp-valprint.c (cp_print_value_fields): Don't redeclare
2335 "obstack_final_size".
2336 * cp-support.c (inspect_type): Declare "i" in loop header.
2337 * compile/compile.c (compile_instance::insert_symbol_error):
2338 Rename inner "e".
2339 * common/agent.c (agent_run_command): Remove inner "ret"
2340 declaration.
2341 * coffread.c (coff_symfile_read): Rename inner "name".
2342 (coff_symfile_read): Rename inner "abfd".
2343 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
2344 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
2345 "high".
2346 * c-exp.y (lex_one_token): Move "len" declaration lower.
2347 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
2348 "gdbarch".
2349 (create_exception_master_breakpoint): Likewise. Don't redeclare
2350 "b".
2351 (watch_command_1): Declare "mark" later.
2352 (clear_command): Don't shadow "a" or "b".
2353 (delete_command): Rename inner "b".
2354 (delete_trace_command): Likewise.
2355 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
2356 "op".
2357 (arm_gdbarch_init): Remove inner "e_flags".
2358 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
2359 "offset" in inner blocks.
2360
2361 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
2362
2363 * dwarf-index-write.c (file_write): Don't write if the vector is
2364 empty.
2365
2366 2018-10-05 Tom de Vries <tdevries@suse.de>
2367
2368 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
2369 PyArg_ParseTuple call.
2370
2371 2018-10-05 Tom de Vries <tdevries@suse.de>
2372
2373 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
2374 PyArg_ParseTuple call.
2375
2376 2018-10-04 Joel Brobecker <brobecker@adacore.com>
2377
2378 * psymtab.c (recursively_search_psymtabs): Reformat parameters
2379 to avoid exceeding 80 characters per line limit.
2380
2381 2018-10-04 Tom Tromey <tom@tromey.com>
2382
2383 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2384 (reread_symbols): Update.
2385 * complaints.h (clear_complaints): Remove argument.
2386 * complaints.c (enum complaint_series): Remove.
2387 (series): Remove global.
2388 (complaint_internal): Update.
2389 (clear_complaints): Remove argument.
2390
2391 2018-10-04 Tom Tromey <tom@tromey.com>
2392
2393 * symfile.c (symbol_file_add_with_addrs): Do not print "no
2394 debugging symbols" message if there is a separate debug objfile.
2395
2396 2018-10-04 Tom Tromey <tom@tromey.com>
2397
2398 PR cli/19551:
2399 * symfile.c (symbol_file_add_with_addrs): Update output.
2400 * psymtab.c (require_partial_symbols): Update output.
2401
2402 2018-10-04 Tom Tromey <tom@tromey.com>
2403
2404 PR cli/22234:
2405 * complaints.c: Emit \n.
2406
2407 2018-10-04 Tom Tromey <tom@tromey.com>
2408
2409 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
2410 (separate_debug_file_exists, find_separate_debug_file)
2411 (add_symbol_file_command, reread_symbols, allocate_symtab)
2412 (allocate_compunit_symtab): Use filtered printing, not
2413 unfiltered.
2414 * psymtab.c (require_partial_symbols, dump_psymtab)
2415 (allocate_psymtab): Use filtered printing, not unfiltered.
2416
2417 2018-10-04 Tom Tromey <tom@tromey.com>
2418
2419 * complaints.c (complaint_internal): Correctly check complaint
2420 count.
2421
2422 2018-10-04 Tom Tromey <tom@tromey.com>
2423
2424 * complaints.h (struct complaints): Remove declaration.
2425 * complaints.c (clear_complaints): Remove an unused variable.
2426
2427 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2428
2429 * MAINTAINERS (Write After Approval): Add self.
2430
2431 2018-10-03 Tom Tromey <tom@tromey.com>
2432
2433 * guile/scm-value.c (gdbscm_value_to_string): Initialize
2434 "buffer_contents".
2435 * coffread.c (coff_symtab_read): Initialize "newobj".
2436
2437 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
2438
2439 * dwarf2read.c (read_func_scope): Remove struct keyword in
2440 range-based for.
2441
2442 2018-10-03 Tom Tromey <tom@tromey.com>
2443
2444 * README: Mention --enable-ubsan.
2445 * NEWS: Mention --enable-ubsan.
2446 * acinclude.m4: Include sanitize.m4.
2447 * configure: Rebuild.
2448 * configure.ac: Call AM_GDB_UBSAN.
2449 * sanitize.m4: New file.
2450
2451 2018-10-03 Tom Tromey <tom@tromey.com>
2452
2453 * expression.h (enum exp_opcode): Use uint8_t as base type.
2454 * expprint.c (op_name): Handle invalid opcodes.
2455
2456 2018-10-03 Tom Tromey <tom@tromey.com>
2457
2458 * parse.c (prefixify_expression): Add assert.
2459 (parse_exp_in_context_1): Throw exception if the expression is
2460 empty.
2461
2462 2018-10-03 Tom Tromey <tom@tromey.com>
2463
2464 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
2465
2466 2018-10-03 Tom Tromey <tom@tromey.com>
2467
2468 * c-exp.y (parse_number): Work in unsigned. Remove casts.
2469
2470 2018-10-03 Tom Tromey <tom@tromey.com>
2471
2472 * dwarf2read.c (read_subrange_type): Make "negative_mask"
2473 unsigned.
2474
2475 2018-10-03 Tom Tromey <tom@tromey.com>
2476
2477 * findvar.c (extract_integer): Do work in an unsigned type.
2478
2479 2018-10-03 Tom Tromey <tom@tromey.com>
2480
2481 * common/enum-flags.h (enum_flags::operator~): Add static assert.
2482 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
2483 base type.
2484 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
2485 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
2486 type.
2487 * c-lang.h (enum c_string_type_values): Use unsigned as base
2488 type.
2489 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
2490
2491 2018-10-03 Tom Tromey <tom@tromey.com>
2492
2493 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
2494 <~dwarf2_frame_state_reg_info>: Update.
2495 <dwarf2_frame_state_reg_info>: Update.
2496 <alloc_regs>: Add assertion. Update.
2497 <reg>: Now a std::vector.
2498 <num_regs>: Remove.
2499 <swap>: Update.
2500 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
2501 (execute_cfa_program_test, dwarf2_frame_cache): Update.
2502
2503 2018-10-03 Tom Tromey <tom@tromey.com>
2504
2505 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
2506
2507 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2508
2509 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
2510
2511 2018-10-02 Tom Tromey <tom@tromey.com>
2512
2513 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
2514
2515 2018-10-02 John Darrington <john@darrington.wattle.id.au>
2516
2517 * NEWS: Mention changed commands.
2518 * ser-uds.c: New file.
2519 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
2520 * configure: Regenerate.
2521 * Makefile.in: Add new file.
2522 * serial.c (serial_open): Check if filename is a socket
2523 and lookup the appropriate interface accordingly.
2524
2525 2018-10-01 Alan Hayward <alan.hayward@arm.com>
2526
2527 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
2528 define.
2529 (AARCH64_EXTRA_MAGIC): Likewise.
2530 (AARCH64_FPSIMD_MAGIC): Likewise.
2531 (AARCH64_SVE_MAGIC): Likewise.
2532 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
2533 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
2534 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
2535 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
2536 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
2537 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
2538 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
2539 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
2540 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
2541 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
2542 (read_aarch64_ctx): Add function.
2543 (aarch64_linux_sigframe_init): Detect FP registers.
2544
2545 2018-10-01 Alan Hayward <alan.hayward@arm.com>
2546
2547 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
2548 (AARCH64_D0_REGNUM): Likewise.
2549 (AARCH64_S0_REGNUM): Likewise.
2550 (AARCH64_H0_REGNUM): Likewise.
2551 (AARCH64_B0_REGNUM): Likewise.
2552 (AARCH64_SVE_V0_REGNUM): Likewise.
2553 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
2554 (AARCH64_D0_REGNUM): Likewise.
2555 (AARCH64_S0_REGNUM): Likewise.
2556 (AARCH64_H0_REGNUM): Likewise.
2557 (AARCH64_B0_REGNUM): Likewise.
2558 (AARCH64_SVE_V0_REGNUM): Likewise.
2559
2560 2018-10-01 Gary Benson <gbenson@redhat.com>
2561
2562 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
2563 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
2564 prfpregset_t instead of gdb_prfpregset_t.
2565 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
2566 * configure, config.in: Rebuild.
2567
2568 2018-10-01 Gary Benson <gbenson@redhat.com>
2569
2570 * common/gdb_proc_service.h: New file, factored out from...
2571 * gdb_proc_service.h: Moved common code to the above file.
2572 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
2573
2574 2018-10-01 Gary Benson <gbenson@redhat.com>
2575
2576 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
2577 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
2578
2579 2018-10-01 Gary Benson <gbenson@redhat.com>
2580
2581 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
2582 (AC_CHECK_HEADERS): Check for linux/elf.h.
2583 * configure, config.in: Rebuild.
2584 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
2585 doesn't define elf_fpregset_t.
2586
2587 2018-10-01 Gary Benson <gbenson@redhat.com>
2588
2589 * gdb_proc_service.h: Whitespace change.
2590
2591 2018-10-01 Tom Tromey <tom@tromey.com>
2592
2593 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
2594 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
2595 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
2596
2597 2018-10-01 Tom Tromey <tom@tromey.com>
2598
2599 * README: Minor change.
2600
2601 2018-09-30 Pedro Alves <palves@redhat.com>
2602
2603 * darwin-nat-info.c (darwin_debug_regions_recurse)
2604 (info_mach_exceptions_command): Remove unused local variables.
2605 * darwin-nat.c (darwin_decode_notify_message)
2606 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
2607 (darwin_stop_inferior, darwin_setup_exceptions)
2608 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
2609 (darwin_nat_target::attach, darwin_nat_target::detach)
2610 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
2611 local variables.
2612 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
2613 variables.
2614
2615 2018-09-29 Tom Tromey <tom@tromey.com>
2616
2617 * README: Remove some leftover text.
2618
2619 2018-09-29 Tom Tromey <tom@tromey.com>
2620
2621 * PROBLEMS: Rewrite.
2622 * README: Update.
2623
2624 2018-09-28 John Baldwin <jhb@FreeBSD.org>
2625
2626 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
2627 case with explicit breakpoint kind.
2628 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
2629 'additional_info' and related logic.
2630 (riscv_debug_breakpoints): New variable.
2631 (riscv_breakpoint_kind_from_pc): Use the length of the existing
2632 instruction to determine the breakpoint kind.
2633 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
2634 flag. Update description of 'set/show riscv
2635 use-compressed-breakpoints' flag.
2636
2637 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
2638
2639 (NEWS): Mention changes to frame related commands.
2640 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
2641 (add_prefix_cmd_suppress_notification): New function.
2642 (add_com_suppress_notification): Call
2643 add_cmd_suppress_notification.
2644 * command.h (add_cmd_suppress_notification): Declare.
2645 (add_prefix_cmd_suppress_notification): Declare.
2646 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
2647 (parse_frame_specification): Moved from stack.c, with
2648 simplification to handle a single argument.
2649 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
2650 switch to the selected frame. Add a header comment.
2651 * stack.c: Remove 'safe-ctype.h' include.
2652 (find_frame_for_function): Add declaration.
2653 (find_frame_for_address): New function.
2654 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
2655 (frame_selection_by_function_completer): New function.
2656 (info_frame_command): Rename to...
2657 (info_frame_command_core): ...this, and update parameter types.
2658 (select_frame_command): Rename to...
2659 (select_frame_command_core): ...this, and update parameter types.
2660 (frame_command): Rename to...
2661 (frame_command_core): ...this, and update parameter types.
2662 (class frame_command_helper): New class to wrap implementations of
2663 frame related sub-commands.
2664 (frame_apply_cmd_list): New static global.
2665 (frame_cmd_list): Make static.
2666 (select_frame_cmd_list): New global for sub-commands.
2667 (info_frame_cmd_list): New global for sub-commands.
2668 (_initialize_stack): Register sub-commands for 'frame',
2669 'select-frame', and 'info frame'. Update 'frame apply' commands
2670 to use frame_apply_cmd_list. Move function local static
2671 frame_apply_list to file static frame_apply_cmd_list for
2672 consistency.
2673 * stack.h (select_frame_command): Delete declarationn.
2674 (select_frame_for_mi): Declare new function.
2675
2676 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
2677
2678 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
2679 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
2680 and NOP.
2681
2682 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
2683
2684 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
2685
2686 2018-09-26 Tom Tromey <tom@tromey.com>
2687
2688 * valops.c (auto_abandon): Remove dead code.
2689
2690 2018-09-26 Tom Tromey <tom@tromey.com>
2691
2692 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
2693
2694 2018-09-24 Tom Tromey <tom@tromey.com>
2695
2696 * common/pathstuff.c (get_standard_cache_dir): Make
2697 "xdg_cache_home" and "home" const.
2698 * top.c (init_history): Make "tmpenv" const.
2699 * main.c (get_init_files): Make "homedir" const.
2700
2701 2018-09-23 Tom Tromey <tom@tromey.com>
2702
2703 PR python/18852:
2704 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
2705
2706 2018-09-23 Tom Tromey <tom@tromey.com>
2707
2708 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
2709 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
2710 * python/python-internal.h (gdbpy_handle_exception): Declare.
2711 * python/py-utils.c (gdbpy_handle_exception): New function.
2712
2713 2018-09-23 Tom Tromey <tom@tromey.com>
2714
2715 PR python/17284:
2716 * python/py-type.c (typy_template_argument): Check for negative
2717 argument number.
2718
2719 2018-09-23 Tom Tromey <tom@tromey.com>
2720
2721 PR python/14062:
2722 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
2723
2724 2018-09-23 Tom Tromey <tom@tromey.com>
2725
2726 PR python/18170:
2727 * python/py-value.c (valpy_int): Allow conversion from pointer
2728 type.
2729
2730 2018-09-23 Tom Tromey <tom@tromey.com>
2731
2732 PR python/20126:
2733 * python/py-value.c (valpy_int): Respect type sign.
2734
2735 2018-09-23 Tom Tromey <tom@tromey.com>
2736
2737 PR python/18352;
2738 * python/py-value.c (valpy_float): Allow conversions from int or
2739 char.
2740 (valpy_int, valpy_long): Allow conversions from float.
2741
2742 2018-09-23 Tom Tromey <tom@tromey.com>
2743
2744 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
2745 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
2746
2747 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2748
2749 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
2750 __sighndlr.
2751 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
2752
2753 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
2754
2755 * windows-nat.c (windows_nat_target::wait): Remove a spurious
2756 target_terminal::ours().
2757
2758 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
2759
2760 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
2761 of vl to ULONGEST.
2762
2763 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
2764
2765 * breakpoint.c (update_inserted_breakpoint_locations): Remove
2766 redundant condition.
2767
2768 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2769
2770 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
2771
2772 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
2773 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
2774 * sol-thread.c (ps_pdmodel): Don't guard definition.
2775
2776 * procfs.c: Fix formatting.
2777
2778 * procfs.c (sysset_t_alloc): Remove.
2779 (create_procinfo): Use XNEW instead of sysset_t_alloc.
2780 (procfs_debug_inferior): Likewise.
2781 (procfs_set_exec_trap): Likewise.
2782 (proc_set_traced_sysentry): Don't allocate argp dynamically.
2783 (proc_set_traced_sysexit): Likewise.
2784
2785 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
2786 (dead_procinfo): Likewise.
2787 (proc_warn): Likewise.
2788 (proc_error): Likewise.
2789 (proc_get_LDT_entry): Likewise.
2790 (do_attach): Likewise.
2791 (procfs_target::pid_to_str): Likewise.
2792 (iterate_over_mappings): Likewise.
2793
2794 * procfs.c (create_procinfo): Fix ARI warning.
2795 (proc_get_status): Likewise.
2796 (proc_stop_process): Likewise.
2797 (proc_run_process): Likewise.
2798 (proc_kill): Likewise.
2799 (proc_get_LDT_entry): Likewise.
2800 (procfs_find_LDT_entry): Likewise.
2801 (proc_update_threads): Likewise.
2802 (proc_iterate_over_threads): Likewise.
2803 (do_attach): Likewise.
2804 (procfs_xfer_memory): Likewise.
2805 (invalidate_cache): Likewise.
2806 (procfs_target::resume): Likewise.
2807 (procfs_init_inferior): Likewise.
2808 (procfs_set_exec_trap): Likewise.
2809 (procfs_target::thread_alive): Likewise.
2810 (procfs_target::pid_to_exec_file): Likewise.
2811 (iterate_over_mappings): Likewise.
2812 (procfs_target::make_corefile_notes): Likewise.
2813 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
2814
2815 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
2816 (procfs_find_LDT_entry): Likewise.
2817 * sol-thread.c (ps_lgetLDT): Likewise.
2818
2819 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2820
2821 PR tdep/17903
2822 * procfs.c (procfs_target): Declare pid_to_exec_file.
2823 (procfs_target::pid_to_exec_file): New.
2824
2825 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2826
2827 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
2828 renaming.
2829 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
2830 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
2831
2832 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2833
2834 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
2835 (supply_fpregset, fill_fpregset): Move ...
2836 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
2837 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
2838 Remove references to ioctl-based procfs.
2839 Include <sys/reg.h>.
2840 Remove PR_MODEL_NATIVE guards.
2841 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
2842 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
2843
2844 2018-09-19 Xavier Roirand <roirand@adacore.com>
2845
2846 PR gdb/20981:
2847 * solib-darwin.c (darwin_get_dyld_bfd): New function.
2848 (darwin_solib_get_all_image_info_addr_at_init): Update call.
2849 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
2850
2851 2018-09-19 John Baldwin <jhb@FreeBSD.org>
2852
2853 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
2854 (fbsd_print_sockaddr_in6): Likewise.
2855
2856 2018-09-19 Richard Bunt <richard.bunt@arm.com>
2857 Chris January <chris.january@arm.com>
2858
2859 * eval.c (skip_undetermined_arglist): Skip argument list helper.
2860 (evaluate_subexp_standard): Return a dummy type when
2861 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
2862 OP_F77_UNDETERMINED_ARGLIST case.
2863 * expression.h (enum noside): Update comment.
2864
2865 2018-09-19 George Vasick <george.vasick@oracle.com>
2866
2867 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
2868
2869 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
2870 April Chin <april.chin@oracle.com>
2871 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2872
2873 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
2874 uint_t lwpid_t.
2875 (create_procinfo): Print pids in /proc without leading zeros.
2876
2877 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
2878
2879 * nios2-tdep.c (nios2_gcc_target_options): New.
2880 (nios2_gdb_arch_init): Install new hook.
2881
2882 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
2883
2884 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
2885 New file.
2886 * update-gnulib.sh: Apply patch.
2887 * configure: Re-generate.
2888
2889 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2890
2891 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
2892 description. Make "info proc" command descriptions more
2893 consistent.
2894
2895 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2896
2897 * NEWS: Mention 'info proc files' command.
2898
2899 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2900
2901 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
2902 descriptors for IP_FILES and IP_ALL.
2903
2904 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2905
2906 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
2907 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
2908 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
2909 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
2910 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
2911 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
2912 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
2913 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
2914 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
2915 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
2916 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
2917 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
2918 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
2919 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
2920 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
2921 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
2922 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
2923 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
2924 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
2925 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
2926 (struct fbsd_sockaddr_un): New types.
2927 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
2928 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
2929 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
2930 (fbsd_core_info_proc_files): New functions.
2931 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
2932 IP_ALL.
2933 * fbsd-tdep.h (fbsd_info_proc_files_header)
2934 (fbsd_info_proc_files_entry): New.
2935
2936 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2937
2938 * defs.h (enum info_proc_what) [IP_FILES]: New value.
2939 * infcmd.c (info_proc_cmd_files): New function.
2940 (_initialize_infcmd): Register 'info proc files' command.
2941
2942 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2943
2944 * gnulib/aclocal-m4-deps.mk: Re-generate.
2945 * gnulib/aclocal.m4: Re-generate.
2946 * gnulib/config.in: Re-generate.
2947 * gnulib/configure: Re-generate.
2948 * gnulib/import/Makefile.am: Re-generate.
2949 * gnulib/import/Makefile.in: Re-generate.
2950 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2951 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2952 * gnulib/import/arpa_inet.in.h: New file.
2953 * gnulib/import/inet_ntop.c: New file.
2954 * gnulib/import/m4/arpa_inet_h.m4: New file.
2955 * gnulib/import/m4/inet_ntop.m4: New file.
2956 * gnulib/import/m4/netinet_in_h.m4: New file.
2957 * gnulib/import/m4/socklen.m4: New file.
2958 * gnulib/import/m4/sockpfaf.m4: New file.
2959 * gnulib/import/m4/stdalign.m4: New file.
2960 * gnulib/import/m4/sys_uio_h.m4: New file.
2961 * gnulib/import/netinet_in.in.h: New file.
2962 * gnulib/import/stdalign.in.h: New file.
2963 * gnulib/import/sys_socket.c: New file.
2964 * gnulib/import/sys_socket.in.h: New file.
2965 * gnulib/import/sys_uio.in.h: New file.
2966 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
2967 module.
2968
2969 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2970
2971 * gnulib/aclocal-m4-deps.mk: New file.
2972 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
2973 deterministically.
2974
2975 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2976
2977 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
2978 KVE_PATH.
2979
2980 2018-09-18 Tom Tromey <tom@tromey.com>
2981
2982 * compile/compile-object-load.c (struct
2983 link_hash_table_cleanup_data): Add constructor and destructor.
2984 Use DISABLE_COPY_AND_ASSIGN.
2985 (~link_hash_table_cleanup_data): Rename from
2986 link_hash_table_free. Now a destructor.
2987 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
2988
2989 2018-09-18 Tom Tromey <tom@tromey.com>
2990
2991 * compile/compile-object-run.c (do_module_cleanup): Use delete.
2992 * compile/compile-object-load.c (struct munmap_list): Move to
2993 header file.
2994 (munmap_list::add): Rename from munmap_list_add; rewrite.
2995 (munmap_list::~munmap_list): Rename from munmap_list_free.
2996 (munmap_listp_free_cleanup): Remove.
2997 (compile_object_load): Update.
2998 * compile/compile-object-load.h (struct munmap_list): Move from
2999 compile-object-load.c. Rewrite.
3000
3001 2018-09-18 Alan Hayward <alan.hayward@arm.com>
3002
3003 * aarch64-tdep.c (pass_in_v): Use register size.
3004 (aarch64_extract_return_value): Likewise.
3005 (aarch64_store_return_value): Likewise.
3006
3007 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3008
3009 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
3010 rlim_t.
3011
3012 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3013
3014 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
3015 Fix short help line.
3016
3017 2018-09-17 Tom Tromey <tom@tromey.com>
3018
3019 PR python/20445:
3020 * configure: Rebuild.
3021 * configure.ac: Conditionally use -DNDEBUG for Python.
3022
3023 2018-09-17 Tom Tromey <tom@tromey.com>
3024
3025 * configure: Rebuild.
3026 * configure.ac: Use gmp as a library dependency when checking for
3027 mpfr.
3028
3029 2018-09-17 Pedro Alves <palves@redhat.com>
3030
3031 * python/py-inferior.c (find_inferior_object): Delete.
3032
3033 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
3034
3035 * compile/compile-cplus-types.c
3036 (compile_cplus_instance::enter_scope): Don't use new_scope after
3037 std::move.
3038
3039 2018-09-17 Tom Tromey <tom@tromey.com>
3040
3041 * common/pathstuff.c (get_standard_cache_dir): Use
3042 ~/Library/Caches on macOS.
3043 * common/pathstuff.h (get_standard_cache_dir): Update comment.
3044
3045 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
3046
3047 PR python/23669
3048 * breakpoint.c (commands_cmd_element): New.
3049 (_initialize_breakpoint): Assign commands_cmd_element.
3050 * breakpoint.h (commands_cmd_element): New.
3051 * cli/cli-script.c (while_cmd_element, if_command,
3052 define_cmd_element): New.
3053 (command_name_equals): Remove.
3054 (process_next_line): Compare commands by pointer, not by name.
3055 (_initialize_cli_script): Assign the various cmd_list_element
3056 variables.
3057 * compile/compile.c (compile_cmd_element): New.
3058 (_initialize_compile): Assign compile_cmd_element.
3059 * compile/compile.h (compile_cmd_element): New.
3060 * guile/guile.c (guile_cmd_element): New.
3061 (install_gdb_commands): Assign guile_cmd_element.
3062 * guile/guile.h (guile_cmd_element): New.
3063 * python/python.c (python_cmd_element): New.
3064 (_initialize_python): Assign python_cmd_element.
3065 * python/python.h (python_cmd_element): New.
3066 * tracepoint.c (while_stepping_cmd_element): New.
3067 (_initialize_tracepoint): Assign while_stepping_cmd_element.
3068 * tracepoint.h (while_stepping_cmd_element): New.
3069
3070 2018-09-17 Tom Tromey <tom@tromey.com>
3071
3072 * infrun.c (save_infcall_suspend_state): Return
3073 infcall_suspend_state_up.
3074 (save_infcall_control_state): Return infcall_control_state_up.
3075 * inferior.h (save_infcall_suspend_state)
3076 (save_infcall_control_state): Declare later. Return unique
3077 pointers.
3078
3079 2018-09-17 Tom Tromey <tom@tromey.com>
3080
3081 * infrun.c (struct stop_context): Declare constructor,
3082 destructor, "changed" method.
3083 (stop_context::stop_context): Rename from save_stop_context.
3084 (stop_context::~stop_context): Rename from
3085 release_stop_context_cleanup.
3086 (normal_stop): Update.
3087 (stop_context::changed): Rename from stop_context_changed. Return
3088 bool.
3089
3090 2018-09-17 Tom Tromey <tom@tromey.com>
3091
3092 * inferior.h (struct infcall_suspend_state_deleter): New.
3093 (infcall_suspend_state_up): New typedef.
3094 (struct infcall_control_state_deleter): New.
3095 (infcall_control_state_up): New typedef.
3096 (make_cleanup_restore_infcall_suspend_state)
3097 (make_cleanup_restore_infcall_control_state): Don't declare.
3098 * infcall.c (call_function_by_hand_dummy): Update.
3099 * infrun.c (do_restore_infcall_suspend_state_cleanup)
3100 (make_cleanup_restore_infcall_suspend_state): Remove.
3101 (do_restore_infcall_control_state_cleanup)
3102 (make_cleanup_restore_infcall_control_state): Remove.
3103
3104 2018-09-17 Tom Tromey <tom@tromey.com>
3105
3106 * gdbthread.h (struct thread_control_state): Add initializer.
3107 (class thread_info) <control>: Remove initializer.
3108 * inferior.h (struct inferior_control_state): Add initializer.
3109 (class inferior) <control>: Remove initializer.
3110 (exit_inferior_1): Update.
3111 * infrun.c (struct infcall_control_state): Add constructors.
3112 (save_infcall_control_state): Use new.
3113 (restore_infcall_control_state, discard_infcall_control_state):
3114 Use delete.
3115
3116 2018-09-17 Tom Tromey <tom@tromey.com>
3117
3118 * infrun.c (struct infcall_suspend_state) <registers>: Now a
3119 unique_ptr.
3120 <siginfo_data>: Now a unique_xmalloc_ptr.
3121 (save_infcall_suspend_state, restore_infcall_suspend_state)
3122 (discard_infcall_suspend_state)
3123 (get_infcall_suspend_state_regcache): Update.
3124
3125 2018-09-17 Tom Tromey <tom@tromey.com>
3126
3127 * gdbthread.h (struct thread_suspend_state): Add initializers.
3128 (class thread_info) <suspend>: Remove initializer.
3129 * infrun.c (struct infcall_suspend_state): Add initializers.
3130 (save_infcall_suspend_state): Use new.
3131 (discard_infcall_suspend_state): Use delete.
3132
3133 2018-09-16 Tom Tromey <tom@tromey.com>
3134
3135 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
3136 Remove.
3137 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
3138 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
3139 (py_varobj_iter_new): Likewise.
3140 (py_varobj_get_iterator): Use gdbpy_ref.
3141
3142 2018-09-16 Tom Tromey <tom@tromey.com>
3143
3144 * python/py-threadevent.c (py_get_event_thread): Simplify.
3145 * python/py-inferior.c (infpy_thread_from_thread_handle):
3146 Return immediately after calling thread_to_thread_object. Use
3147 Py_RETURN_NONE.
3148 (thread_to_thread_object): Set the exception on a NULL return.
3149
3150 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3151
3152 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
3153
3154 2018-09-16 Tom Tromey <tom@tromey.com>
3155
3156 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
3157 Remove.
3158
3159 2018-09-16 Tom Tromey <tom@tromey.com>
3160
3161 * python/python-internal.h (thread_to_thread_object): Change
3162 return type.
3163 * python/py-inferior.c (thread_to_thread_object): Return a new
3164 reference.
3165 (infpy_thread_from_thread_handle): Update.
3166 * python/py-infthread.c (gdbpy_selected_thread): Update.
3167 * python/py-stopevent.c (create_stop_event_object): Update.
3168 * python/py-threadevent.c (py_get_event_thread): Return a new
3169 reference.
3170 (py_get_event_thread): Update.
3171 * python/py-event.h (py_get_event_thread): Change return type.
3172 * python/py-continueevent.c (create_continue_event_object):
3173 Update.
3174
3175 2018-09-16 Tom Tromey <tom@tromey.com>
3176
3177 * python/py-progspace.c (pspy_get_objfiles): Update.
3178 * python/python-internal.h (objfile_to_objfile_object): Change
3179 return type.
3180 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3181 Update.
3182 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
3183 Update.
3184 * python/python.c (gdbpy_get_current_objfile): Update.
3185 (gdbpy_objfiles): Update.
3186 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
3187 Update.
3188 (objfile_to_objfile_object): Return a new reference.
3189 * python/py-symtab.c (stpy_get_objfile): Update.
3190 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
3191 Update.
3192
3193 2018-09-16 Tom Tromey <tom@tromey.com>
3194
3195 * python/py-inferior.c (infpy_get_progspace): Update.
3196 * python/python-internal.h (pspace_to_pspace_object): Change
3197 return type.
3198 * python/py-newobjfileevent.c
3199 (create_clear_objfiles_event_object): Update.
3200 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
3201 Update.
3202 * python/python.c (gdbpy_get_current_progspace): Update.
3203 (gdbpy_progspaces): Update.
3204 * python/py-progspace.c (pspace_to_pspace_object): Return a new
3205 reference.
3206 * python/py-objfile.c (objfpy_get_progspace): Update.
3207 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
3208 Update.
3209
3210 2018-09-16 Tom Tromey <tom@tromey.com>
3211
3212 * python/lib/gdb/__init__.py (current_progspace, objfiles)
3213 (solib_name, block_for_pc, find_pc_line): New functions.
3214 (execute_unwinders): Update.
3215 * python/py-block.c (gdbpy_block_for_pc): Remove.
3216 * python/py-inferior.c (infpy_get_progspace): New function.
3217 (inferior_object_getset) <progspace>: Add.
3218 * python/py-progspace.c (pspy_objfiles): Rewrite.
3219 (pspy_solib_name, pspy_block_for_pc)
3220 (pspy_find_pc_line, pspy_is_valid): New functions.
3221 (progspace_object_methods): Add entries for solib_name,
3222 block_for_pc, find_pc_line, is_valid.
3223 * python/python-internal.h (gdbpy_block_for_pc)
3224 (build_objfiles_list): Don't declare.
3225 * python/python.c: Don't include solib.h.
3226 (gdbpy_solib_name, gdbpy_find_pc_line)
3227 (gdbpy_get_current_progspace, build_objfiles_list)
3228 (gdbpy_objfiles): Remove.
3229 (GdbMethods) <current_progspace, objfiles, block_for_pc,
3230 solib_name, find_pc_line>: Remove entries.
3231
3232 2018-09-16 Tom Tromey <tom@tromey.com>
3233
3234 * top.c (new_ui_command): Use GNU style for metasyntactic
3235 variables.
3236 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
3237 variables.
3238 * maint.c (maintenance_translate_address): Remove "<>" around
3239 text.
3240 * interps.c (interpreter_exec_cmd): Use GNU style for
3241 metasyntactic variables.
3242 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
3243 metasyntactic variables.
3244 * tracepoint.c (tfind_range_command): Use GNU style for
3245 metasyntactic variables.
3246 (tfind_outside_command): Likewise.
3247 (_initialize_tracepoint): Likewise.
3248 * remote.c (extended_remote_target::create_inferior): Use GNU
3249 style for metasyntactic variables.
3250 * sparc64-tdep.c (adi_examine_command): Use GNU style for
3251 metasyntactic variables.
3252 (adi_assign_command): Likewise.
3253
3254 2018-09-16 Tom Tromey <tom@tromey.com>
3255
3256 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
3257 metasyntactic variables. Print message if no disassembler options
3258 are available.
3259
3260 2018-09-15 Tom Tromey <tom@tromey.com>
3261
3262 * infcmd.c (get_inferior_args): Return const char *.
3263 * inferior.h (get_inferior_args): Return type now const.
3264 * linux-tdep.c (linux_fill_prpsinfo): Update.
3265 * procfs.c (procfs_target::make_corefile_notes): Update.
3266
3267 2018-09-07 Tom Tromey <tom@tromey.com>
3268
3269 * python/python.c (execute_gdb_command): Call bpstat_do_actions
3270 inside the TRY.
3271
3272 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
3273
3274 * nios2-tdep.c (nios2_type_align): New.
3275 (nios2_gdb_arch_init): Install type_align hook.
3276
3277 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3278
3279 * eval.c (fake_method::fake_method): Call xzalloc directly for a
3280 type that is neither object file owned, nor gdbarch owned.
3281 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
3282 gdbarch is non-NULL.
3283 (alloc_type_instance): Allocate non-objfile owned types on the
3284 gdbarch obstack.
3285 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
3286 using TYPE_ALLOC to ensure memory is allocated on the correct
3287 obstack.
3288 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
3289 obstack, or the gdbarch obstack.
3290 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
3291
3292 2018-09-14 Tom Tromey <tom@tromey.com>
3293
3294 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
3295 block.
3296
3297 2018-09-14 Tom Tromey <tom@tromey.com>
3298
3299 * nat/fork-inferior.c (get_startup_shell): Remove "static".
3300
3301 2018-09-13 Tom Tromey <tom@tromey.com>
3302
3303 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
3304 static.
3305
3306 2018-09-13 Tom Tromey <tom@tromey.com>
3307
3308 * exec.c (try_open_exec_file): Use std::string.
3309
3310 2018-09-13 Tom Tromey <tom@tromey.com>
3311
3312 * utils.h (gdb_bfd_errmsg): Return std::string.
3313 * exec.c (exec_file_attach): Update.
3314 * compile/compile-object-load.c (compile_object_load): Update.
3315 * utils.c (gdb_bfd_errmsg): Return std::string.
3316
3317 2018-09-13 Tom Tromey <tom@tromey.com>
3318
3319 * procfs.c (struct procinfo_deleter): New.
3320 (procinfo_up): New typedef.
3321 (do_destroy_procinfo_cleanup): Remove.
3322 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
3323
3324 2018-09-13 Tom Tromey <tom@tromey.com>
3325
3326 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
3327
3328 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3329 2018-09-13 Tom Tromey <tom@tromey.com>
3330
3331 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
3332 (pspy_get_objfiles): New function.
3333 (progspace_object_methods): New.
3334 (pspace_object_type): Add tp_methods callback.
3335 * python/python-internal.h (build_objfiles_list): New
3336 declaration.
3337 * python/python.c (build_objfiles_list): New function.
3338 (gdbpy_objfiles): Implement using build_objfiles_list.
3339 * NEWS: Mention the Progspace.objfiles method.
3340
3341 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3342
3343 * python/py-inferior.c (infpy_get_progspace): New function.
3344 (inferior_object_getset): Add progspace property.
3345 * NEWS: Mention the new property.
3346
3347 2018-09-13 Tom Tromey <tom@tromey.com>
3348
3349 PR rust/23650:
3350 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
3351
3352 2018-09-13 Tom Tromey <tom@tromey.com>
3353
3354 PR rust/23626:
3355 * rust-lang.c (rust_enum_variant): Now static.
3356 (rust_empty_enum_p): New function.
3357 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
3358 Handle empty enum.
3359
3360 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3361
3362 * python/py-inferior.c (infpy_repr): New.
3363 (inferior_object_type): Register infpy_repr.
3364 * python/py-objfile.c (objfpy_repr): New.
3365 (objfile_object_type): Register objfpy_repr.
3366
3367 2018-09-12 John Baldwin <jhb@FreeBSD.org>
3368
3369 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
3370
3371 2018-09-12 John Baldwin <jhb@FreeBSD.org>
3372
3373 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
3374 typo.
3375
3376 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
3377
3378 * common/common-utils.c: Don't include '<sys/stat.h>'.
3379 (is_regular_file): Move to...
3380 * common/filestuff.c (is_regular_file): ... here.
3381 * common/common-utils.h (is_regular_file): Move to...
3382 * common/filestuff.h (is_regular_file): ... here.
3383
3384 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
3385
3386 * skip.c (debug_skip): New variable.
3387 (skiplist_entry::do_skip_file_p): Add debug output.
3388 (skiplist_entry::do_skip_gfile_p): Likewise.
3389 (skiplist_entry::skip_function_p): Likewise.
3390 (_initialize_step_skip): Create debug command.
3391 * NEWS: Mention set/show debug skip.
3392
3393 2018-09-11 Xavier Roirand <roirand@adacore.com>
3394
3395 * darwin-nat.c (should_disable_startup_with_shell):
3396 New function.
3397 (darwin_nat_target::create_inferior): Add call.
3398
3399 2018-09-11 Xavier Roirand <roirand@adacore.com>
3400
3401 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
3402 inf_port, msg_state>: Initialize.
3403 (struct darwin_thread_info) <signaled, single_step>: Change
3404 type and initialize.
3405 (struct darwin_thread_info) <event>: Initialize.
3406
3407 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3408
3409 PR gdb/23555
3410 PR gdb/23558
3411 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
3412 guesses.
3413
3414 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3415
3416 Revert:
3417 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
3418
3419 PR gdb/23555
3420 PR gdb/23558
3421 * gnulib/aclocal.m4: Regenerate.
3422 * gnulib/config.in: Regenerate.
3423 * gnulib/configure: Regenerate.
3424 * gnulib/import/Makefile.am: Update.
3425 * gnulib/import/Makefile.in: Update.
3426 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3427 * gnulib/import/_Noreturn.h: ... this.
3428 * gnulib/import/alloca.in.h: Update.
3429 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3430 * gnulib/import/arg-nonnull.h: ... this.
3431 * gnulib/import/assure.h: Update.
3432 * gnulib/import/at-func.c: Update.
3433 * gnulib/import/basename-lgpl.c: Update.
3434 * gnulib/import/extra/snippet/c++defs.h: Rename to...
3435 * gnulib/import/c++defs.h: ... this.
3436 * gnulib/import/canonicalize-lgpl.c: Update.
3437 * gnulib/import/cdefs.h: Update.
3438 * gnulib/import/chdir-long.c: Update.
3439 * gnulib/import/chdir-long.h: Update.
3440 * gnulib/import/cloexec.c: Update.
3441 * gnulib/import/cloexec.h: Update.
3442 * gnulib/import/close.c: Update.
3443 * gnulib/import/closedir.c: Update.
3444 * gnulib/import/config.charset: Update.
3445 * gnulib/import/dirent-private.h: Update.
3446 * gnulib/import/dirent.in.h: Update.
3447 * gnulib/import/dirfd.c: Update.
3448 * gnulib/import/dirname-lgpl.c: Update.
3449 * gnulib/import/dirname.h: Update.
3450 * gnulib/import/dosname.h: Update.
3451 * gnulib/import/dup-safer-flag.c: Update.
3452 * gnulib/import/dup-safer.c: Update.
3453 * gnulib/import/dup.c: Update.
3454 * gnulib/import/dup2.c: Update.
3455 * gnulib/import/errno.in.h: Update.
3456 * gnulib/import/error.c: Update.
3457 * gnulib/import/error.h: Update.
3458 * gnulib/import/exitfail.c: Update.
3459 * gnulib/import/exitfail.h: Update.
3460 * gnulib/import/extra/update-copyright: Update.
3461 * gnulib/import/fchdir.c: Update.
3462 * gnulib/import/fcntl.c: Update.
3463 * gnulib/import/fcntl.in.h: Update.
3464 * gnulib/import/fd-hook.c: Update.
3465 * gnulib/import/fd-hook.h: Update.
3466 * gnulib/import/fd-safer-flag.c: Update.
3467 * gnulib/import/fd-safer.c: Update.
3468 * gnulib/import/fdopendir.c: Update.
3469 * gnulib/import/filename.h: Update.
3470 * gnulib/import/filenamecat-lgpl.c: Update.
3471 * gnulib/import/filenamecat.h: Update.
3472 * gnulib/import/flexmember.h: Update.
3473 * gnulib/import/float+.h: Update.
3474 * gnulib/import/float.c: Update.
3475 * gnulib/import/float.in.h: Update.
3476 * gnulib/import/fnmatch.c: Update.
3477 * gnulib/import/fnmatch.in.h: Update.
3478 * gnulib/import/fnmatch_loop.c: Update.
3479 * gnulib/import/fpucw.h: Update.
3480 * gnulib/import/frexp.c: Update.
3481 * gnulib/import/frexpl.c: Update.
3482 * gnulib/import/fstat.c: Update.
3483 * gnulib/import/fstatat.c: Update.
3484 * gnulib/import/getcwd-lgpl.c: Update.
3485 * gnulib/import/getcwd.c: Update.
3486 * gnulib/import/getdtablesize.c: Update.
3487 * gnulib/import/getlogin_r.c: Update.
3488 * gnulib/import/getprogname.c: Update.
3489 * gnulib/import/getprogname.h: Update.
3490 * gnulib/import/gettext.h: Update.
3491 * gnulib/import/gettimeofday.c: Update.
3492 * gnulib/import/glob-libc.h: Update.
3493 * gnulib/import/glob.c: Update.
3494 * gnulib/import/glob.in.h: Update.
3495 * gnulib/import/glob_internal.h: Update.
3496 * gnulib/import/glob_pattern_p.c: Update.
3497 * gnulib/import/globfree.c: Update.
3498 * gnulib/import/hard-locale.c: Update.
3499 * gnulib/import/hard-locale.h: Update.
3500 * gnulib/import/intprops.h: Update.
3501 * gnulib/import/inttypes.in.h: Update.
3502 * gnulib/import/isnan.c: Update.
3503 * gnulib/import/isnand-nolibm.h: Update.
3504 * gnulib/import/isnand.c: Update.
3505 * gnulib/import/isnanl-nolibm.h: Update.
3506 * gnulib/import/isnanl.c: Update.
3507 * gnulib/import/itold.c: Update.
3508 * gnulib/import/libc-config.h: Update.
3509 * gnulib/import/limits.in.h: Update.
3510 * gnulib/import/localcharset.c: Update.
3511 * gnulib/import/localcharset.h: Update.
3512 * gnulib/import/localtime-buffer.c: Update.
3513 * gnulib/import/localtime-buffer.h: Update.
3514 * gnulib/import/lstat.c: Update.
3515 * gnulib/import/m4/00gnulib.m4: Update.
3516 * gnulib/import/m4/__inline.m4: Update.
3517 * gnulib/import/m4/absolute-header.m4: Update.
3518 * gnulib/import/m4/alloca.m4: Update.
3519 * gnulib/import/m4/builtin-expect.m4: Update.
3520 * gnulib/import/m4/canonicalize.m4: Update.
3521 * gnulib/import/m4/chdir-long.m4: Update.
3522 * gnulib/import/m4/close.m4: Update.
3523 * gnulib/import/m4/closedir.m4: Update.
3524 * gnulib/import/m4/configmake.m4: Update.
3525 * gnulib/import/m4/d-ino.m4: Update.
3526 * gnulib/import/m4/d-type.m4: Update.
3527 * gnulib/import/m4/dirent_h.m4: Update.
3528 * gnulib/import/m4/dirfd.m4: Update.
3529 * gnulib/import/m4/dirname.m4: Update.
3530 * gnulib/import/m4/double-slash-root.m4: Update.
3531 * gnulib/import/m4/dup.m4: Update.
3532 * gnulib/import/m4/dup2.m4: Update.
3533 * gnulib/import/m4/eealloc.m4: Update.
3534 * gnulib/import/m4/environ.m4: Update.
3535 * gnulib/import/m4/errno_h.m4: Update.
3536 * gnulib/import/m4/error.m4: Update.
3537 * gnulib/import/m4/exponentd.m4: Update.
3538 * gnulib/import/m4/exponentl.m4: Update.
3539 * gnulib/import/m4/extensions.m4: Update.
3540 * gnulib/import/m4/extern-inline.m4: Update.
3541 * gnulib/import/m4/fchdir.m4: Update.
3542 * gnulib/import/m4/fcntl-o.m4: Update.
3543 * gnulib/import/m4/fcntl.m4: Update.
3544 * gnulib/import/m4/fcntl_h.m4: Update.
3545 * gnulib/import/m4/fdopendir.m4: Update.
3546 * gnulib/import/m4/filenamecat.m4: Update.
3547 * gnulib/import/m4/flexmember.m4: Update.
3548 * gnulib/import/m4/float_h.m4: Update.
3549 * gnulib/import/m4/fnmatch.m4: Update.
3550 * gnulib/import/m4/fnmatch_h.m4: Update.
3551 * gnulib/import/m4/fpieee.m4: Update.
3552 * gnulib/import/m4/frexp.m4: Update.
3553 * gnulib/import/m4/frexpl.m4: Update.
3554 * gnulib/import/m4/fstat.m4: Update.
3555 * gnulib/import/m4/fstatat.m4: Update.
3556 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3557 * gnulib/import/m4/getcwd-path-max.m4: Update.
3558 * gnulib/import/m4/getcwd.m4: Update.
3559 * gnulib/import/m4/getdtablesize.m4: Update.
3560 * gnulib/import/m4/getlogin.m4: Update.
3561 * gnulib/import/m4/getlogin_r.m4: Update.
3562 * gnulib/import/m4/getpagesize.m4: Update.
3563 * gnulib/import/m4/getprogname.m4: Update.
3564 * gnulib/import/m4/gettimeofday.m4: Update.
3565 * gnulib/import/m4/glibc21.m4: Update.
3566 * gnulib/import/m4/glob.m4: Update.
3567 * gnulib/import/m4/glob_h.m4: Update.
3568 * gnulib/import/m4/gnulib-cache.m4: Update.
3569 * gnulib/import/m4/gnulib-common.m4: Update.
3570 * gnulib/import/m4/gnulib-comp.m4: Update.
3571 * gnulib/import/m4/gnulib-tool.m4: Update.
3572 * gnulib/import/m4/hard-locale.m4: Update.
3573 * gnulib/import/m4/include_next.m4: Update.
3574 * gnulib/import/m4/inttypes-pri.m4: Update.
3575 * gnulib/import/m4/inttypes.m4: Update.
3576 * gnulib/import/m4/isnand.m4: Update.
3577 * gnulib/import/m4/isnanl.m4: Update.
3578 * gnulib/import/m4/largefile.m4: Update.
3579 * gnulib/import/m4/limits-h.m4: Update.
3580 * gnulib/import/m4/localcharset.m4: Update.
3581 * gnulib/import/m4/locale-fr.m4: Update.
3582 * gnulib/import/m4/locale-ja.m4: Update.
3583 * gnulib/import/m4/locale-zh.m4: Update.
3584 * gnulib/import/m4/localtime-buffer.m4: Update.
3585 * gnulib/import/m4/longlong.m4: Update.
3586 * gnulib/import/m4/lstat.m4: Update.
3587 * gnulib/import/m4/malloc.m4: Update.
3588 * gnulib/import/m4/malloca.m4: Update.
3589 * gnulib/import/m4/math_h.m4: Update.
3590 * gnulib/import/m4/mbrtowc.m4: Update.
3591 * gnulib/import/m4/mbsinit.m4: Update.
3592 * gnulib/import/m4/mbsrtowcs.m4: Update.
3593 * gnulib/import/m4/mbstate_t.m4: Update.
3594 * gnulib/import/m4/memchr.m4: Update.
3595 * gnulib/import/m4/memmem.m4: Update.
3596 * gnulib/import/m4/mempcpy.m4: Update.
3597 * gnulib/import/m4/memrchr.m4: Update.
3598 * gnulib/import/m4/mkdir.m4: Update.
3599 * gnulib/import/m4/mkstemp.m4: Update.
3600 * gnulib/import/m4/mmap-anon.m4: Update.
3601 * gnulib/import/m4/mode_t.m4: Update.
3602 * gnulib/import/m4/msvc-inval.m4: Update.
3603 * gnulib/import/m4/msvc-nothrow.m4: Update.
3604 * gnulib/import/m4/multiarch.m4: Update.
3605 * gnulib/import/m4/nocrash.m4: Update.
3606 * gnulib/import/m4/off_t.m4: Update.
3607 * gnulib/import/m4/onceonly.m4: Update.
3608 * gnulib/import/m4/open-cloexec.m4: Update.
3609 * gnulib/import/m4/open.m4: Update.
3610 * gnulib/import/m4/openat.m4: Update.
3611 * gnulib/import/m4/opendir.m4: Update.
3612 * gnulib/import/m4/pathmax.m4: Update.
3613 * gnulib/import/m4/rawmemchr.m4: Update.
3614 * gnulib/import/m4/readdir.m4: Update.
3615 * gnulib/import/m4/readlink.m4: Update.
3616 * gnulib/import/m4/realloc.m4: Update.
3617 * gnulib/import/m4/rename.m4: Update.
3618 * gnulib/import/m4/rewinddir.m4: Update.
3619 * gnulib/import/m4/rmdir.m4: Update.
3620 * gnulib/import/m4/save-cwd.m4: Update.
3621 * gnulib/import/m4/secure_getenv.m4: Update.
3622 * gnulib/import/m4/setenv.m4: Update.
3623 * gnulib/import/m4/signal_h.m4: Update.
3624 * gnulib/import/m4/ssize_t.m4: Update.
3625 * gnulib/import/m4/stat-time.m4: Update.
3626 * gnulib/import/m4/stat.m4: Update.
3627 * gnulib/import/m4/std-gnu11.m4: Update.
3628 * gnulib/import/m4/stdbool.m4: Update.
3629 * gnulib/import/m4/stddef_h.m4: Update.
3630 * gnulib/import/m4/stdint.m4: Update.
3631 * gnulib/import/m4/stdio_h.m4: Update.
3632 * gnulib/import/m4/stdlib_h.m4: Update.
3633 * gnulib/import/m4/strchrnul.m4: Update.
3634 * gnulib/import/m4/strdup.m4: Update.
3635 * gnulib/import/m4/strerror.m4: Update.
3636 * gnulib/import/m4/string_h.m4: Update.
3637 * gnulib/import/m4/strstr.m4: Update.
3638 * gnulib/import/m4/strtok_r.m4: Update.
3639 * gnulib/import/m4/sys_socket_h.m4: Update.
3640 * gnulib/import/m4/sys_stat_h.m4: Update.
3641 * gnulib/import/m4/sys_time_h.m4: Update.
3642 * gnulib/import/m4/sys_types_h.m4: Update.
3643 * gnulib/import/m4/tempname.m4: Update.
3644 * gnulib/import/m4/time_h.m4: Update.
3645 * gnulib/import/m4/unistd-safer.m4: Update.
3646 * gnulib/import/m4/unistd_h.m4: Update.
3647 * gnulib/import/m4/warn-on-use.m4: Update.
3648 * gnulib/import/m4/wchar_h.m4: Update.
3649 * gnulib/import/m4/wchar_t.m4: Update.
3650 * gnulib/import/m4/wctype_h.m4: Update.
3651 * gnulib/import/m4/wint_t.m4: Update.
3652 * gnulib/import/malloc.c: Update.
3653 * gnulib/import/malloc/scratch_buffer.h: Update.
3654 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3655 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3656 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3657 * gnulib/import/malloca.c: Update.
3658 * gnulib/import/malloca.h: Update.
3659 * gnulib/import/malloca.valgrind: Update.
3660 * gnulib/import/math.in.h: Update.
3661 * gnulib/import/mbrtowc.c: Update.
3662 * gnulib/import/mbsinit.c: Update.
3663 * gnulib/import/mbsrtowcs-impl.h: Update.
3664 * gnulib/import/mbsrtowcs-state.c: Update.
3665 * gnulib/import/mbsrtowcs.c: Update.
3666 * gnulib/import/memchr.c: Update.
3667 * gnulib/import/memmem.c: Update.
3668 * gnulib/import/mempcpy.c: Update.
3669 * gnulib/import/memrchr.c: Update.
3670 * gnulib/import/mkdir.c: Update.
3671 * gnulib/import/mkstemp.c: Update.
3672 * gnulib/import/msvc-inval.c: Update.
3673 * gnulib/import/msvc-inval.h: Update.
3674 * gnulib/import/msvc-nothrow.c: Update.
3675 * gnulib/import/msvc-nothrow.h: Update.
3676 * gnulib/import/open.c: Update.
3677 * gnulib/import/openat-die.c: Update.
3678 * gnulib/import/openat-priv.h: Update.
3679 * gnulib/import/openat-proc.c: Update.
3680 * gnulib/import/openat.c: Update.
3681 * gnulib/import/openat.h: Update.
3682 * gnulib/import/opendir.c: Update.
3683 * gnulib/import/pathmax.h: Update.
3684 * gnulib/import/pipe-safer.c: Update.
3685 * gnulib/import/rawmemchr.c: Update.
3686 * gnulib/import/readdir.c: Update.
3687 * gnulib/import/readlink.c: Update.
3688 * gnulib/import/realloc.c: Update.
3689 * gnulib/import/ref-add.sin: Update.
3690 * gnulib/import/ref-del.sin: Update.
3691 * gnulib/import/rename.c: Update.
3692 * gnulib/import/rewinddir.c: Update.
3693 * gnulib/import/rmdir.c: Update.
3694 * gnulib/import/same-inode.h: Update.
3695 * gnulib/import/save-cwd.c: Update.
3696 * gnulib/import/save-cwd.h: Update.
3697 * gnulib/import/scratch_buffer.h: Update.
3698 * gnulib/import/secure_getenv.c: Update.
3699 * gnulib/import/setenv.c: Update.
3700 * gnulib/import/signal.in.h: Update.
3701 * gnulib/import/stat-time.c: Update.
3702 * gnulib/import/stat-time.h: Update.
3703 * gnulib/import/stat-w32.c: Update.
3704 * gnulib/import/stat-w32.h: Update.
3705 * gnulib/import/stat.c: Update.
3706 * gnulib/import/stdbool.in.h: Update.
3707 * gnulib/import/stddef.in.h: Update.
3708 * gnulib/import/stdint.in.h: Update.
3709 * gnulib/import/stdio.in.h: Update.
3710 * gnulib/import/stdlib.in.h: Update.
3711 * gnulib/import/str-two-way.h: Update.
3712 * gnulib/import/strchrnul.c: Update.
3713 * gnulib/import/strdup.c: Update.
3714 * gnulib/import/streq.h: Update.
3715 * gnulib/import/strerror-override.c: Update.
3716 * gnulib/import/strerror-override.h: Update.
3717 * gnulib/import/strerror.c: Update.
3718 * gnulib/import/string.in.h: Update.
3719 * gnulib/import/stripslash.c: Update.
3720 * gnulib/import/strnlen1.c: Update.
3721 * gnulib/import/strnlen1.h: Update.
3722 * gnulib/import/strstr.c: Update.
3723 * gnulib/import/strtok_r.c: Update.
3724 * gnulib/import/sys_stat.in.h: Update.
3725 * gnulib/import/sys_time.in.h: Update.
3726 * gnulib/import/sys_types.in.h: Update.
3727 * gnulib/import/tempname.c: Update.
3728 * gnulib/import/tempname.h: Update.
3729 * gnulib/import/time.in.h: Update.
3730 * gnulib/import/unistd--.h: Update.
3731 * gnulib/import/unistd-safer.h: Update.
3732 * gnulib/import/unistd.in.h: Update.
3733 * gnulib/import/unsetenv.c: Update.
3734 * gnulib/import/verify.h: Update.
3735 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3736 * gnulib/import/wchar.in.h: Update.
3737 * gnulib/import/wctype.in.h: Update.
3738 * gnulib/import/xalloc-oversized.h: Update.
3739 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3740 "53e2c179f26a890fa6685af4b6c1397ee370433b".
3741
3742 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
3743
3744 * record-btrace.c (get_thread_current_frame): Remove
3745 old_inferior_ptid.
3746
3747 2018-09-10 Jerome Guitton <guitton@adacore.com>
3748
3749 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
3750 with check_tag to 1 if and only if the type is tagged and the
3751 component being searched cannot been found in the current
3752 view. Otherwise, always call ada_to_fixed_type with
3753 check_tag to 0.
3754
3755 2018-09-10 Xavier Roirand <roirand@adacore.com>
3756
3757 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
3758 declaration.
3759 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
3760 * ada-varobj.c (ada_varobj_get_number_of_children,
3761 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
3762
3763 2018-09-10 Xavier Roirand <roirand@adacore.com>
3764
3765 * ada-valprint.c (ada_value_print): Use type instead of
3766 enclosing type.
3767
3768 2018-09-10 Xavier Roirand <roirand@adacore.com>
3769
3770 * ada-lang.c (ada_value_subscript): Handle case when parameter is
3771 an array of access to unconstrained array.
3772
3773 2018-09-10 Xavier Roirand <roirand@adacore.com>
3774
3775 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
3776 (ada_check_typedef): Use it.
3777
3778 2018-09-10 Xavier Roirand <roirand@adacore.com>
3779
3780 * ada-varobj.c (ada_varobj_describe_struct_child)
3781 (ada_varobj_describe_child): Handle union case like struct one.
3782
3783 2018-09-10 Tom Tromey <tom@tromey.com>
3784
3785 PR python/18380:
3786 * python/python.c (_initialize_python): Make example in "python"
3787 help work in Python 3.
3788
3789 2018-09-10 Eli Zaretskii <eliz@gnu.org>
3790
3791 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
3792 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
3793 $(EXEEXT) to the script, as it is not a program.
3794
3795 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
3796
3797 * python/py-prettyprint.c (pretty_print_one_value): Return
3798 gdbpy_ref<>.
3799 (print_string_repr): Adjust.
3800 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
3801 * python/python-internal.h (apply_varobj_pretty_printer): Return
3802 gdbpy_ref<>.
3803 * varobj.c (varobj_value_get_print_value): Adjust.
3804
3805 2018-09-08 Tom Tromey <tom@tromey.com>
3806
3807 PR python/16047:
3808 * python/py-prettyprint.c (pretty_print_one_value): Check for
3809 to_string method.
3810
3811 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3812
3813 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
3814 replace_operator_with_call.
3815
3816 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3817
3818 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
3819
3820 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3821
3822 * ada-typeprint.c (print_range): Print the bounds using TYPE
3823 rather than its TYPE_TARGET_TYPE.
3824
3825 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3826
3827 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
3828 call to ada_to_fixed_value_create.
3829
3830 2018-09-08 Jerome Guitton <guitton@adacore.com>
3831
3832 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
3833
3834 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3835
3836 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
3837 by calls to error.
3838
3839 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3840
3841 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
3842 Move update of loop variable "fi".
3843
3844 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3845
3846 * ada-lang.c (value_assign_to_component): In the case of
3847 big-endian targets, extract the bits of the given VAL
3848 using an src_offset of zero if container is not a scalar.
3849
3850 2018-09-06 Simon Ser <contact@emersion.fr>
3851
3852 PR gdb/23105
3853 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
3854 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3855 * fbsd-tdep.c (fbsd_make_note_desc): New.
3856 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
3857 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
3858 * target.h (enum target_object) Add FreeBSD-specific
3859 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3860
3861 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3862
3863 * compile/compile-c.h (generate_c_for_variable_locations):
3864 Change reference to pointer.
3865 * compile/compile-c-support.c (compile_program) <compute>:
3866 Likewise.
3867 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
3868 (generate_c_for_for_one_variable): Likewise
3869 (generate_c_for_variable_locations): Likewise
3870 * compile/compile-c-types.c (compile_c_instance::convert_type):
3871 Likewise
3872 * compile/compile-cplus-symbols.c (convert_one_symbol):
3873 std::move the scope passed to enter_scope.
3874 * compile/compile-cplus-types.c
3875 (compile_cplus_instance::enter_scope): Make parameter
3876 rvalue-reference.
3877 (compile_cplus_instance::new_scope): Change reference to
3878 pointer.
3879 (compile_cplus_instance::convert_type): Likewise
3880 (compile_cplus_convert_typedef): std::move the scope passed to
3881 enter_scope.
3882 (compile_cplus_convert_struct_or_union): Likewise.
3883 (compile_cplus_convert_enum): Likewise.
3884 (compile_cplus_convert_namespace): Likewise.
3885 * compile/compile-cplus.h (compile_cplus_instance)
3886 <enter_scope>: Make parameter rvalue-reference.
3887 * compile/compile-internal.h (compile_instance)
3888 <get_cached_type>: Likewise
3889 * compile/compile-loc2c.c (push): Likewise
3890 (pushf): Likewise
3891 (unary): Likewise
3892 (binary): Likewise
3893 (print_label): Likewise
3894 (pushf_register_address): Likewise
3895 (pushf_register): Likewise
3896 (do_compile_dwarf_expr_to_c): Likewise
3897 (compile_dwarf_expr_to_c): Likewise
3898 (compile_dwarf_bounds_to_c): Likewise
3899 * compile/compile.c (compile_instance::get_cached_type):
3900 Likewise
3901 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
3902 (compile_dwarf_bounds_to_c): Likewise
3903 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
3904 (dwarf2_compile_property_to_c): Likewise
3905 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
3906 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3907 Likewise
3908
3909 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3910
3911 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
3912 * tui/tui-data.c (init_content_element): Don't initialize it.
3913
3914 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3915
3916 * tui/tui-data.h (struct tui_win_info)
3917 <detail::opaque>: Remove.
3918 * tui/tui-data.c (init_win_info): Remove assignment.
3919
3920 2018-09-05 Tom Tromey <tom@tromey.com>
3921
3922 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
3923 -Wformat-nonliteral.
3924 * target-float.c (host_float_ops<T>::to_string)
3925 (host_float_ops<T>::from_string): Use
3926 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3927 * configure: Rebuild.
3928
3929 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
3930
3931 * printcmd.c (printf_c_string): Use
3932 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3933 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
3934
3935 2018-09-05 Tom Tromey <tom@tromey.com>
3936
3937 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
3938
3939 2018-09-05 Tom de Vries <tdevries@suse.de>
3940
3941 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
3942 with resolve_abstract_p == true.
3943 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
3944 defaulting to false. Propagate resolve_abstract_p to
3945 dwarf2_fetch_die_loc_sect_off.
3946 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
3947 parameter, defaulting to false.
3948 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
3949 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
3950 parameter.
3951 * dwarf2read.h (struct die_info): Forward-declare.
3952 (die_info_ptr): New typedef.
3953 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
3954
3955 2018-09-05 Joel Brobecker <brobecker@adacore.com>
3956
3957 GDB 8.2 released.
3958
3959 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3960 Pedro Alves <palves@redhat.com>
3961
3962 * gnulib/Makefile.in (aclocal_m4_deps): Move to
3963 "aclocal-m4-deps.mk". Include file here.
3964 $(srcdir)/aclocal.m4: Add "configure.ac".
3965 * gnulib/aclocal-m4-deps.mk: New file.
3966 * gnulib/update-gnulib.sh: Automatically update
3967 "aclocal-m4-deps.mk".
3968
3969 2018-09-04 Tom Tromey <tom@tromey.com>
3970
3971 * configure: Rebuild.
3972 * configure.ac: Remove multi-ice code.
3973
3974 2018-09-04 Tom Tromey <tom@tromey.com>
3975
3976 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
3977 (ada-exp.o): Update.
3978
3979 2018-09-04 Tom Tromey <tom@tromey.com>
3980
3981 * Makefile.in (printcmd.o, target-float.o): Remove.
3982 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
3983
3984 2018-09-04 Tom Tromey <tom@tromey.com>
3985
3986 * gnulib/Makefile.in: Remove obsolete comment.
3987 * Makefile.in: Remove obsolete comment.
3988
3989 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3990
3991 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
3992 line with '+'.
3993
3994 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3995
3996 * riscv-tdep.c: Add 'prologue-value.h' include.
3997 (struct riscv_unwind_cache): New struct.
3998 (riscv_debug_unwinder): New global.
3999 (riscv_scan_prologue): Update arguments, capture register details
4000 from prologue scan.
4001 (riscv_skip_prologue): Reformat arguments line, move end of
4002 prologue calculation into riscv_scan_prologue.
4003 (riscv_frame_cache): Update return type, create
4004 riscv_unwind_cache, scan the prologue, and fill in remaining cache
4005 details.
4006 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
4007 (riscv_frame_prev_register): Use the trad_frame within the
4008 riscv_unwind_cache.
4009 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
4010 flag.
4011
4012 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4013
4014 * trad-frame.h (trad_frame_set_realreg): Declare.
4015 (trad_frame_set_addr): Declare.
4016 * trad-frame.c (trad_frame_set_realreg): Define new function.
4017 (trad_frame_set_addr): Define new function.
4018 (trad_frame_set_reg_realreg): Use new function.
4019 (trad_frame_set_reg_addr): Use new function.
4020
4021 2018-09-01 Keith Seitz <keiths@redhat.com>
4022
4023 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
4024 pulongest instead of "%lld".
4025 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
4026 ATTRIBUTE_UNUSED.
4027
4028 2018-08-31 Tom Tromey <tom@tromey.com>
4029
4030 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
4031 variant part type.
4032
4033 2018-08-31 Pedro Alves <palves@redhat.com>
4034
4035 * gdbarch.h: Regenerate.
4036
4037 2018-08-31 Pedro Alves <palves@redhat.com>
4038
4039 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
4040 * target.h (Hardware watchpoint interfaces): Describe
4041 continuable/steppable/non-steppable watchpoints.
4042 * gdbarch.h, gdbarch.c: Regenerate.
4043
4044 2018-08-31 Pedro Alves <palves@redhat.com>
4045
4046 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
4047 Delete.
4048 * s390-linux-nat.c
4049 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
4050 * target.h (target_ops::have_continuable_watchpoint): Delete.
4051 (target_have_continuable_watchpoint): Delete.
4052 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
4053 * target-delegates.c: Regenerate.
4054
4055 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4056
4057 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
4058 the files present in "gnulib/import/m4/".
4059
4060 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
4061
4062 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
4063 c.sw, c.swsp, and c.sdsp.
4064
4065 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
4066
4067 * riscv-tdep.c (struct riscv_inferior_data): Delete.
4068 (riscv_read_misa_reg): Don't cache value read into inferior data.
4069 (riscv_new_inferior_data): Delete.
4070 (riscv_inferior_data_cleanup): Delete.
4071 (riscv_inferior_data): Delete.
4072 (riscv_invalidate_inferior_data): Delete.
4073 (_initialize_riscv_tdep): Remove initialisation of inferior data.
4074
4075 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
4076
4077 * compile/compile-cplus-types.c
4078 (compile_cplus_instance::leave_scope): Take the address of scope
4079 object.
4080 (compile_cplus_instance::convert_qualified_base): Compare quals
4081 to 0.
4082
4083 2018-08-30 Keith Seitz <keiths@redhat.com>
4084
4085 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
4086 Use "%s" and host_address_to_string instead of "%p" in printf.
4087
4088 2018-08-29 Keith Seitz <keiths@redhat.com>
4089
4090 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
4091 and compile-cplus-types.c.
4092 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
4093 * c-lang.c (cplus_language_defn): Set C++ compile functions.
4094 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
4095 Declare.
4096 * compile/compile-c-support.c: Include compile-cplus.h.
4097 (load_libcompile): Templatize.
4098 (get_compile_context): "New" function.
4099 (c_get_compile_context): Use get_compile_context.
4100 (cplus_get_compile_context): New function.
4101 (cplus_push_user_expression, cplus_pop_user_expression)
4102 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
4103 (cplus_compute_program): Define new structs/functions.
4104 * compile/compile-cplus-symmbols.c: New file.
4105 * compile/compile-cplus-types.c: New file.
4106 * compile/compile-cplus.h: New file.
4107 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
4108 Declare.
4109 * compile/compile-object-load.c (get_out_value_type): Use
4110 strncmp_iw when comparing symbol names.
4111 (compile_object_load): Add mst_bss and mst_data.
4112 * compile/compile.c (_initialize_compile): Remove
4113 -Wno-implicit-function-declaration from `compile_args'.
4114 * compile/gcc-cp-plugin.h: New file.
4115 * NEWS: Mention C++ compile support and new debug options.
4116
4117 2018-08-29 Keith Seitz <keiths@redhat.com>
4118
4119 * linespec.c (collect_info::add_symbol): Make virtual.
4120 (struct symbol_searcher_collect_info): New struct.
4121 (symbol_searcher::find_all_symbols): New method.
4122 * symtab.h (class symbol_searcher): New class.
4123
4124 2018-08-29 Keith Seitz <keiths@redhat.com>
4125
4126 * linespec.c (struct linespec) <function_symbols, label_symbols>:
4127 Change to vector of block_symbol. Update all users.
4128 (struct collect_info) <symbols>: Likewise.
4129 (collect_info::add_symbol): Take block_symbol as argument.
4130 Update all callers.
4131 (decode_compound_collector) <m_symbols>: Change type to vector
4132 of block_symbol. Update all users.
4133 (decode_compound_collector::operator ()): Change parameter type
4134 to block_symbol.
4135 (find_method, find_function_symbols, find_linespec_symbols)
4136 (find_label_symbols_in_block, find_label_symbols): Change symbol
4137 vectors to block_symbol vectors.
4138 * symtab.h (symbol_found_callback_ftype): Change parameter type to
4139 block_symbol.
4140
4141 2018-08-29 Keith Seitz <keiths@redhat.com>
4142
4143 * linespec.c (symbolp): Remove typedef and VEC definitions.
4144 (bound_minimal_symbol_d): Likewise.
4145
4146 2018-08-29 Keith Seitz <keiths@redhat.com>
4147
4148 * linespec.c (decode_compound_collector::decode_compound_collector):
4149 Remove initialization for `m_symtabs'.
4150 (decode_compound_collector::release_symbols): Change return type
4151 to std::vector. Update all callers.
4152 (class decode_compound_collector) <m_symbols>: Change type to
4153 std::vector.
4154 (lookup_prefix_sym): Change return type to std::vector. Update all
4155 callers.
4156 (compare_symbols): Remove.
4157 (std_compare_symbols): Rename to `compare_symbols'.
4158 (find_method): Change `sym_classes' parameter to std::vector.
4159 Update all callers. Use std::sort to sort sym_classes.
4160 (find_linespec_symbols): Remove cleanup.
4161
4162 2018-08-29 Keith Seitz <keiths@redhat.com>
4163
4164 * linespec.c (struct linespec) <minimal_symbols>: Change type to
4165 std::vector. Update all users.
4166 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
4167 (struct collect_info) <minimal_symbols>: Likewise.
4168 (compare_msymbols): Return bool. Change parameters to const
4169 bound_minimal_symbol references.
4170 (find_method, find_function_symbols, find_linespec_symbols): Change
4171 `minsyms' parameter to std::vector. Update all callers.
4172
4173 2018-08-29 Keith Seitz <keiths@redhat.com>
4174
4175 * linespec.c (struct linespec) <label_symbols>: Change type to
4176 std::vector. Update all users.
4177 (find_label_symbols_in_block): Change `result' parameter to
4178 std::vector. Update all callers.
4179 (find_label_symbols): Return std::vector. Update all callers.
4180
4181 2018-08-29 Keith Seitz <keiths@redhat.com>
4182
4183 * linespec.c (struct linespec) <function_symbols>: Change type to
4184 std::vector. Update all users.
4185 (struct collect_info) <function_symbols>: Likewise.
4186 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
4187 (std_compare_symbols): New function.
4188 (find_method, find_function_symbols, find_linespec_symbols)
4189 (find_label_symbols_in_block): Change `symbols' parameter to
4190 std::vector. Update all callers.
4191 (find_label_symbols): Likewise for `function_symbols' and
4192 `label_funcs_ret'.
4193
4194 2018-08-29 Keith Seitz <keiths@redhat.com>
4195
4196 * linespec.c (symtab_vector_up): Define.
4197 (struct linespec) <file_symtabs>: Change type to std::vector *.
4198 Update all uses.
4199 (struct collect_info) <file_symtabs>: Likewise.
4200 (collect_symtabs_from_filename): Return symtab_vector_up.
4201 Update all callers.
4202 (decode_objc): Remove cleanup.
4203 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
4204 (symtab_collector::release_symtabs): Return symtab_vector_up.
4205 Update all callers.
4206 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
4207 Update all users.
4208 (collect_symtabs_from_filename, symtabs_from_filename): Return
4209 symtab_vector_up. Update all callers.
4210
4211 2018-08-29 Tom Tromey <tom@tromey.com>
4212
4213 * csky-tdep.c (csky_analyze_prologue): Use
4214 core_addr_to_string_nz.
4215
4216 2018-08-29 Tom Tromey <tom@tromey.com>
4217
4218 * windows-nat.c (struct xlate_exception) <them>: Change type to
4219 DWORD.
4220 (xlate): Fix formatting. Remove last entry.
4221 (struct xlate_exception, xlate): Comment out.
4222 (windows_nat_target::resume): Use ranged for.
4223
4224 2018-08-29 Jim Wilson <jimw@sifive.com>
4225
4226 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
4227 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
4228 of NT_PRFPREG.
4229 (riscv_linux_nat_target::store_registers): Likewise.
4230
4231 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
4232
4233 PR gdb/23555
4234 PR gdb/23558
4235 * gnulib/aclocal.m4: Regenerate.
4236 * gnulib/config.in: Regenerate.
4237 * gnulib/configure: Regenerate.
4238 * gnulib/import/Makefile.am: Update.
4239 * gnulib/import/Makefile.in: Update.
4240 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
4241 * gnulib/import/_Noreturn.h: ... this.
4242 * gnulib/import/alloca.in.h: Update.
4243 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
4244 * gnulib/import/arg-nonnull.h: ... this.
4245 * gnulib/import/assure.h: Update.
4246 * gnulib/import/at-func.c: Update.
4247 * gnulib/import/basename-lgpl.c: Update.
4248 * gnulib/import/extra/snippet/c++defs.h: Rename to...
4249 * gnulib/import/c++defs.h: ... this.
4250 * gnulib/import/canonicalize-lgpl.c: Update.
4251 * gnulib/import/cdefs.h: Update.
4252 * gnulib/import/chdir-long.c: Update.
4253 * gnulib/import/chdir-long.h: Update.
4254 * gnulib/import/cloexec.c: Update.
4255 * gnulib/import/cloexec.h: Update.
4256 * gnulib/import/close.c: Update.
4257 * gnulib/import/closedir.c: Update.
4258 * gnulib/import/config.charset: Update.
4259 * gnulib/import/dirent-private.h: Update.
4260 * gnulib/import/dirent.in.h: Update.
4261 * gnulib/import/dirfd.c: Update.
4262 * gnulib/import/dirname-lgpl.c: Update.
4263 * gnulib/import/dirname.h: Update.
4264 * gnulib/import/dosname.h: Update.
4265 * gnulib/import/dup-safer-flag.c: Update.
4266 * gnulib/import/dup-safer.c: Update.
4267 * gnulib/import/dup.c: Update.
4268 * gnulib/import/dup2.c: Update.
4269 * gnulib/import/errno.in.h: Update.
4270 * gnulib/import/error.c: Update.
4271 * gnulib/import/error.h: Update.
4272 * gnulib/import/exitfail.c: Update.
4273 * gnulib/import/exitfail.h: Update.
4274 * gnulib/import/extra/update-copyright: Update.
4275 * gnulib/import/fchdir.c: Update.
4276 * gnulib/import/fcntl.c: Update.
4277 * gnulib/import/fcntl.in.h: Update.
4278 * gnulib/import/fd-hook.c: Update.
4279 * gnulib/import/fd-hook.h: Update.
4280 * gnulib/import/fd-safer-flag.c: Update.
4281 * gnulib/import/fd-safer.c: Update.
4282 * gnulib/import/fdopendir.c: Update.
4283 * gnulib/import/filename.h: Update.
4284 * gnulib/import/filenamecat-lgpl.c: Update.
4285 * gnulib/import/filenamecat.h: Update.
4286 * gnulib/import/flexmember.h: Update.
4287 * gnulib/import/float+.h: Update.
4288 * gnulib/import/float.c: Update.
4289 * gnulib/import/float.in.h: Update.
4290 * gnulib/import/fnmatch.c: Update.
4291 * gnulib/import/fnmatch.in.h: Update.
4292 * gnulib/import/fnmatch_loop.c: Update.
4293 * gnulib/import/fpucw.h: Update.
4294 * gnulib/import/frexp.c: Update.
4295 * gnulib/import/frexpl.c: Update.
4296 * gnulib/import/fstat.c: Update.
4297 * gnulib/import/fstatat.c: Update.
4298 * gnulib/import/getcwd-lgpl.c: Update.
4299 * gnulib/import/getcwd.c: Update.
4300 * gnulib/import/getdtablesize.c: Update.
4301 * gnulib/import/getlogin_r.c: Update.
4302 * gnulib/import/getprogname.c: Update.
4303 * gnulib/import/getprogname.h: Update.
4304 * gnulib/import/gettext.h: Update.
4305 * gnulib/import/gettimeofday.c: Update.
4306 * gnulib/import/glob-libc.h: Update.
4307 * gnulib/import/glob.c: Update.
4308 * gnulib/import/glob.in.h: Update.
4309 * gnulib/import/glob_internal.h: Update.
4310 * gnulib/import/glob_pattern_p.c: Update.
4311 * gnulib/import/globfree.c: Update.
4312 * gnulib/import/hard-locale.c: Update.
4313 * gnulib/import/hard-locale.h: Update.
4314 * gnulib/import/intprops.h: Update.
4315 * gnulib/import/inttypes.in.h: Update.
4316 * gnulib/import/isnan.c: Update.
4317 * gnulib/import/isnand-nolibm.h: Update.
4318 * gnulib/import/isnand.c: Update.
4319 * gnulib/import/isnanl-nolibm.h: Update.
4320 * gnulib/import/isnanl.c: Update.
4321 * gnulib/import/itold.c: Update.
4322 * gnulib/import/libc-config.h: Update.
4323 * gnulib/import/limits.in.h: Update.
4324 * gnulib/import/localcharset.c: Update.
4325 * gnulib/import/localcharset.h: Update.
4326 * gnulib/import/localtime-buffer.c: Update.
4327 * gnulib/import/localtime-buffer.h: Update.
4328 * gnulib/import/lstat.c: Update.
4329 * gnulib/import/m4/00gnulib.m4: Update.
4330 * gnulib/import/m4/__inline.m4: Update.
4331 * gnulib/import/m4/absolute-header.m4: Update.
4332 * gnulib/import/m4/alloca.m4: Update.
4333 * gnulib/import/m4/builtin-expect.m4: Update.
4334 * gnulib/import/m4/canonicalize.m4: Update.
4335 * gnulib/import/m4/chdir-long.m4: Update.
4336 * gnulib/import/m4/close.m4: Update.
4337 * gnulib/import/m4/closedir.m4: Update.
4338 * gnulib/import/m4/configmake.m4: Update.
4339 * gnulib/import/m4/d-ino.m4: Update.
4340 * gnulib/import/m4/d-type.m4: Update.
4341 * gnulib/import/m4/dirent_h.m4: Update.
4342 * gnulib/import/m4/dirfd.m4: Update.
4343 * gnulib/import/m4/dirname.m4: Update.
4344 * gnulib/import/m4/double-slash-root.m4: Update.
4345 * gnulib/import/m4/dup.m4: Update.
4346 * gnulib/import/m4/dup2.m4: Update.
4347 * gnulib/import/m4/eealloc.m4: Update.
4348 * gnulib/import/m4/environ.m4: Update.
4349 * gnulib/import/m4/errno_h.m4: Update.
4350 * gnulib/import/m4/error.m4: Update.
4351 * gnulib/import/m4/exponentd.m4: Update.
4352 * gnulib/import/m4/exponentl.m4: Update.
4353 * gnulib/import/m4/extensions.m4: Update.
4354 * gnulib/import/m4/extern-inline.m4: Update.
4355 * gnulib/import/m4/fchdir.m4: Update.
4356 * gnulib/import/m4/fcntl-o.m4: Update.
4357 * gnulib/import/m4/fcntl.m4: Update.
4358 * gnulib/import/m4/fcntl_h.m4: Update.
4359 * gnulib/import/m4/fdopendir.m4: Update.
4360 * gnulib/import/m4/filenamecat.m4: Update.
4361 * gnulib/import/m4/flexmember.m4: Update.
4362 * gnulib/import/m4/float_h.m4: Update.
4363 * gnulib/import/m4/fnmatch.m4: Update.
4364 * gnulib/import/m4/fnmatch_h.m4: Update.
4365 * gnulib/import/m4/fpieee.m4: Update.
4366 * gnulib/import/m4/frexp.m4: Update.
4367 * gnulib/import/m4/frexpl.m4: Update.
4368 * gnulib/import/m4/fstat.m4: Update.
4369 * gnulib/import/m4/fstatat.m4: Update.
4370 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
4371 * gnulib/import/m4/getcwd-path-max.m4: Update.
4372 * gnulib/import/m4/getcwd.m4: Update.
4373 * gnulib/import/m4/getdtablesize.m4: Update.
4374 * gnulib/import/m4/getlogin.m4: Update.
4375 * gnulib/import/m4/getlogin_r.m4: Update.
4376 * gnulib/import/m4/getpagesize.m4: Update.
4377 * gnulib/import/m4/getprogname.m4: Update.
4378 * gnulib/import/m4/gettimeofday.m4: Update.
4379 * gnulib/import/m4/glibc21.m4: Update.
4380 * gnulib/import/m4/glob.m4: Update.
4381 * gnulib/import/m4/glob_h.m4: Update.
4382 * gnulib/import/m4/gnulib-cache.m4: Update.
4383 * gnulib/import/m4/gnulib-common.m4: Update.
4384 * gnulib/import/m4/gnulib-comp.m4: Update.
4385 * gnulib/import/m4/gnulib-tool.m4: Update.
4386 * gnulib/import/m4/hard-locale.m4: Update.
4387 * gnulib/import/m4/include_next.m4: Update.
4388 * gnulib/import/m4/inttypes-pri.m4: Update.
4389 * gnulib/import/m4/inttypes.m4: Update.
4390 * gnulib/import/m4/isnand.m4: Update.
4391 * gnulib/import/m4/isnanl.m4: Update.
4392 * gnulib/import/m4/largefile.m4: Update.
4393 * gnulib/import/m4/limits-h.m4: Update.
4394 * gnulib/import/m4/localcharset.m4: Update.
4395 * gnulib/import/m4/locale-fr.m4: Update.
4396 * gnulib/import/m4/locale-ja.m4: Update.
4397 * gnulib/import/m4/locale-zh.m4: Update.
4398 * gnulib/import/m4/localtime-buffer.m4: Update.
4399 * gnulib/import/m4/longlong.m4: Update.
4400 * gnulib/import/m4/lstat.m4: Update.
4401 * gnulib/import/m4/malloc.m4: Update.
4402 * gnulib/import/m4/malloca.m4: Update.
4403 * gnulib/import/m4/math_h.m4: Update.
4404 * gnulib/import/m4/mbrtowc.m4: Update.
4405 * gnulib/import/m4/mbsinit.m4: Update.
4406 * gnulib/import/m4/mbsrtowcs.m4: Update.
4407 * gnulib/import/m4/mbstate_t.m4: Update.
4408 * gnulib/import/m4/memchr.m4: Update.
4409 * gnulib/import/m4/memmem.m4: Update.
4410 * gnulib/import/m4/mempcpy.m4: Update.
4411 * gnulib/import/m4/memrchr.m4: Update.
4412 * gnulib/import/m4/mkdir.m4: Update.
4413 * gnulib/import/m4/mkstemp.m4: Update.
4414 * gnulib/import/m4/mmap-anon.m4: Update.
4415 * gnulib/import/m4/mode_t.m4: Update.
4416 * gnulib/import/m4/msvc-inval.m4: Update.
4417 * gnulib/import/m4/msvc-nothrow.m4: Update.
4418 * gnulib/import/m4/multiarch.m4: Update.
4419 * gnulib/import/m4/nocrash.m4: Update.
4420 * gnulib/import/m4/off_t.m4: Update.
4421 * gnulib/import/m4/onceonly.m4: Update.
4422 * gnulib/import/m4/open-cloexec.m4: Update.
4423 * gnulib/import/m4/open.m4: Update.
4424 * gnulib/import/m4/openat.m4: Update.
4425 * gnulib/import/m4/opendir.m4: Update.
4426 * gnulib/import/m4/pathmax.m4: Update.
4427 * gnulib/import/m4/rawmemchr.m4: Update.
4428 * gnulib/import/m4/readdir.m4: Update.
4429 * gnulib/import/m4/readlink.m4: Update.
4430 * gnulib/import/m4/realloc.m4: Update.
4431 * gnulib/import/m4/rename.m4: Update.
4432 * gnulib/import/m4/rewinddir.m4: Update.
4433 * gnulib/import/m4/rmdir.m4: Update.
4434 * gnulib/import/m4/save-cwd.m4: Update.
4435 * gnulib/import/m4/secure_getenv.m4: Update.
4436 * gnulib/import/m4/setenv.m4: Update.
4437 * gnulib/import/m4/signal_h.m4: Update.
4438 * gnulib/import/m4/ssize_t.m4: Update.
4439 * gnulib/import/m4/stat-time.m4: Update.
4440 * gnulib/import/m4/stat.m4: Update.
4441 * gnulib/import/m4/std-gnu11.m4: Update.
4442 * gnulib/import/m4/stdbool.m4: Update.
4443 * gnulib/import/m4/stddef_h.m4: Update.
4444 * gnulib/import/m4/stdint.m4: Update.
4445 * gnulib/import/m4/stdio_h.m4: Update.
4446 * gnulib/import/m4/stdlib_h.m4: Update.
4447 * gnulib/import/m4/strchrnul.m4: Update.
4448 * gnulib/import/m4/strdup.m4: Update.
4449 * gnulib/import/m4/strerror.m4: Update.
4450 * gnulib/import/m4/string_h.m4: Update.
4451 * gnulib/import/m4/strstr.m4: Update.
4452 * gnulib/import/m4/strtok_r.m4: Update.
4453 * gnulib/import/m4/sys_socket_h.m4: Update.
4454 * gnulib/import/m4/sys_stat_h.m4: Update.
4455 * gnulib/import/m4/sys_time_h.m4: Update.
4456 * gnulib/import/m4/sys_types_h.m4: Update.
4457 * gnulib/import/m4/tempname.m4: Update.
4458 * gnulib/import/m4/time_h.m4: Update.
4459 * gnulib/import/m4/unistd-safer.m4: Update.
4460 * gnulib/import/m4/unistd_h.m4: Update.
4461 * gnulib/import/m4/warn-on-use.m4: Update.
4462 * gnulib/import/m4/wchar_h.m4: Update.
4463 * gnulib/import/m4/wchar_t.m4: Update.
4464 * gnulib/import/m4/wctype_h.m4: Update.
4465 * gnulib/import/m4/wint_t.m4: Update.
4466 * gnulib/import/malloc.c: Update.
4467 * gnulib/import/malloc/scratch_buffer.h: Update.
4468 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
4469 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
4470 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
4471 * gnulib/import/malloca.c: Update.
4472 * gnulib/import/malloca.h: Update.
4473 * gnulib/import/malloca.valgrind: Update.
4474 * gnulib/import/math.in.h: Update.
4475 * gnulib/import/mbrtowc.c: Update.
4476 * gnulib/import/mbsinit.c: Update.
4477 * gnulib/import/mbsrtowcs-impl.h: Update.
4478 * gnulib/import/mbsrtowcs-state.c: Update.
4479 * gnulib/import/mbsrtowcs.c: Update.
4480 * gnulib/import/memchr.c: Update.
4481 * gnulib/import/memmem.c: Update.
4482 * gnulib/import/mempcpy.c: Update.
4483 * gnulib/import/memrchr.c: Update.
4484 * gnulib/import/mkdir.c: Update.
4485 * gnulib/import/mkstemp.c: Update.
4486 * gnulib/import/msvc-inval.c: Update.
4487 * gnulib/import/msvc-inval.h: Update.
4488 * gnulib/import/msvc-nothrow.c: Update.
4489 * gnulib/import/msvc-nothrow.h: Update.
4490 * gnulib/import/open.c: Update.
4491 * gnulib/import/openat-die.c: Update.
4492 * gnulib/import/openat-priv.h: Update.
4493 * gnulib/import/openat-proc.c: Update.
4494 * gnulib/import/openat.c: Update.
4495 * gnulib/import/openat.h: Update.
4496 * gnulib/import/opendir.c: Update.
4497 * gnulib/import/pathmax.h: Update.
4498 * gnulib/import/pipe-safer.c: Update.
4499 * gnulib/import/rawmemchr.c: Update.
4500 * gnulib/import/readdir.c: Update.
4501 * gnulib/import/readlink.c: Update.
4502 * gnulib/import/realloc.c: Update.
4503 * gnulib/import/ref-add.sin: Update.
4504 * gnulib/import/ref-del.sin: Update.
4505 * gnulib/import/rename.c: Update.
4506 * gnulib/import/rewinddir.c: Update.
4507 * gnulib/import/rmdir.c: Update.
4508 * gnulib/import/same-inode.h: Update.
4509 * gnulib/import/save-cwd.c: Update.
4510 * gnulib/import/save-cwd.h: Update.
4511 * gnulib/import/scratch_buffer.h: Update.
4512 * gnulib/import/secure_getenv.c: Update.
4513 * gnulib/import/setenv.c: Update.
4514 * gnulib/import/signal.in.h: Update.
4515 * gnulib/import/stat-time.c: Update.
4516 * gnulib/import/stat-time.h: Update.
4517 * gnulib/import/stat-w32.c: Update.
4518 * gnulib/import/stat-w32.h: Update.
4519 * gnulib/import/stat.c: Update.
4520 * gnulib/import/stdbool.in.h: Update.
4521 * gnulib/import/stddef.in.h: Update.
4522 * gnulib/import/stdint.in.h: Update.
4523 * gnulib/import/stdio.in.h: Update.
4524 * gnulib/import/stdlib.in.h: Update.
4525 * gnulib/import/str-two-way.h: Update.
4526 * gnulib/import/strchrnul.c: Update.
4527 * gnulib/import/strdup.c: Update.
4528 * gnulib/import/streq.h: Update.
4529 * gnulib/import/strerror-override.c: Update.
4530 * gnulib/import/strerror-override.h: Update.
4531 * gnulib/import/strerror.c: Update.
4532 * gnulib/import/string.in.h: Update.
4533 * gnulib/import/stripslash.c: Update.
4534 * gnulib/import/strnlen1.c: Update.
4535 * gnulib/import/strnlen1.h: Update.
4536 * gnulib/import/strstr.c: Update.
4537 * gnulib/import/strtok_r.c: Update.
4538 * gnulib/import/sys_stat.in.h: Update.
4539 * gnulib/import/sys_time.in.h: Update.
4540 * gnulib/import/sys_types.in.h: Update.
4541 * gnulib/import/tempname.c: Update.
4542 * gnulib/import/tempname.h: Update.
4543 * gnulib/import/time.in.h: Update.
4544 * gnulib/import/unistd--.h: Update.
4545 * gnulib/import/unistd-safer.h: Update.
4546 * gnulib/import/unistd.in.h: Update.
4547 * gnulib/import/unsetenv.c: Update.
4548 * gnulib/import/verify.h: Update.
4549 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4550 * gnulib/import/wchar.in.h: Update.
4551 * gnulib/import/wctype.in.h: Update.
4552 * gnulib/import/xalloc-oversized.h: Update.
4553 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4554 "53e2c179f26a890fa6685af4b6c1397ee370433b".
4555
4556 2018-08-16 Gary Benson <gbenson@redhat.com>
4557
4558 PR gdb/13000:
4559 * gdb/main.c (captured_main_1): Exit with nonzero status
4560 in batch mode if the last command to be executed failed.
4561 * NEWS: Mention the above.
4562
4563 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
4564
4565 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
4566 end of warning message.
4567
4568 2018-08-29 Alan Hayward <alan.hayward@arm.com>
4569
4570 PR gdb/22943:
4571 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
4572 (aarch64_extract_return_value): Use
4573 aapcs_is_vfp_call_or_return_candidate.
4574 (aarch64_return_in_memory): Likewise.
4575 (aarch64_store_return_value): Likewise.
4576
4577 2018-08-29 Alan Hayward <alan.hayward@arm.com>
4578
4579 * aarch64-tdep.c
4580 (aapcs_is_vfp_call_or_return_candidate): Make static
4581 (pass_in_v_or_stack): Remove function.
4582 (pass_in_v_vfp_candidate): New function.
4583 (aarch64_push_dummy_call): Check for float register candidates.
4584
4585 2018-08-29 Alan Hayward <alan.hayward@arm.com>
4586
4587 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
4588 (aapcs_is_vfp_call_or_return_candidate_1): New function.
4589 (aapcs_is_vfp_call_or_return_candidate): Likewise.
4590
4591 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4592
4593 PR build/23399
4594 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
4595 (struct ipa_sym_addresses): Rename to...
4596 (struct ipa_sym_addresses_common): ... this.
4597 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
4598
4599 2018-08-28 Tom Tromey <tom@tromey.com>
4600
4601 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4602 (token_fifo): Now a std::vector.
4603 (yylex, c_parse): Update.
4604 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4605 (token_fifo): Now a std::vector.
4606 (yylex, d_parse): Update.
4607 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4608 (token_fifo): Now a std::vector.
4609 (yylex, go_parse): Update.
4610
4611 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
4612
4613 * parser-defs.h (struct type_stack) <elements>: Change type to
4614 std::vector<union type_stack_elt>.
4615 <depth, size>: Remove.
4616 * parse.c (parse_exp_in_context_1): Adjust.
4617 (type_stack_reserve): Remove.
4618 (check_type_stack_depth): Remove.
4619 (insert_into_type_stack): Adjust to std::vector.
4620 (insert_type): Likewise.
4621 (push_type): Likewise.
4622 (push_type_int): Likewise.
4623 (insert_type_address_space): Likewise.
4624 (pop_type): Likewise.
4625 (pop_type_int): Likewise.
4626 (pop_typelist): Likewise.
4627 (pop_type_stack): Likewise.
4628 (append_type_stack): Likewise.
4629 (push_type_stack): Likewise.
4630 (get_type_stack): Likewise.
4631 (type_stack_cleanup): Likewise.
4632 (push_typelist): Likewise.
4633 (follow_types): Likewise.
4634 (_initialize_parse): Likewise.
4635
4636 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
4637
4638 * NEWS: Mention csky target.
4639
4640 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
4641 Hafiz Abid Qadeer <abidh@codesourcery.com>
4642 Don Breazeal <donb@codesourcery.com>
4643
4644 * csky-linux-tdep.c: New file.
4645 * csky-tdep.c: Likewise.
4646 * csky-tdep.h: Likewise.
4647 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
4648 csky-tdep.o.
4649 (HFILES_NO_SRCDIR): Add csky-tdep.h.
4650 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
4651 * configure.tgt: Add csky support.
4652
4653 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
4654
4655 * python/py-framefilter.c (py_print_frame): Print frame architecture
4656 when printing on an MI output.
4657
4658 2018-08-27 Tom Tromey <tom@tromey.com>
4659
4660 PR build/23087:
4661 * configure: Rebuild.
4662 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
4663
4664 2018-08-27 Tom Tromey <tom@tromey.com>
4665
4666 * aarch64-linux-tdep.c
4667 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
4668 casts to int.
4669
4670 2018-08-27 Tom Tromey <tom@tromey.com>
4671
4672 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
4673 unsigned.
4674 (ppc64_standard_linkage1, ppc64_standard_linkage2)
4675 (ppc64_standard_linkage3, ppc64_standard_linkage4)
4676 (ppc64_standard_linkage5, ppc64_standard_linkage6)
4677 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
4678 unsigned.
4679
4680 2018-08-27 Tom Tromey <tom@tromey.com>
4681
4682 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
4683 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
4684
4685 2018-08-27 Tom Tromey <tom@tromey.com>
4686
4687 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
4688 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
4689 ULONGEST_MAX.
4690 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
4691 ULONGEST_MAX.
4692 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
4693 ULONGEST_MAX.
4694 * sparc-linux-tdep.c (sparc32_linux_sigframe)
4695 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
4696 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
4697 ULONGEST_MAX.
4698 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
4699 (ppc64_linux_sigaction_tramp_frame)
4700 (ppc32_linux_sighandler_tramp_frame)
4701 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4702 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
4703 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
4704 * mn10300-linux-tdep.c (am33_linux_sigframe)
4705 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
4706 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
4707 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4708 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4709 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
4710 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
4711 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
4712 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
4713 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
4714 * microblaze-linux-tdep.c
4715 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4716 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
4717 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
4718 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
4719 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
4720 * common/common-types.h (ULONGEST_MAX): New define.
4721 (CORE_ADDR_MAX): Fix formatting.
4722 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
4723 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
4724 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
4725 (arm_linux_rt_sigreturn_tramp_frame)
4726 (arm_eabi_linux_sigreturn_tramp_frame)
4727 (arm_eabi_linux_rt_sigreturn_tramp_frame)
4728 (thumb2_eabi_linux_sigreturn_tramp_frame)
4729 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
4730 (arm_linux_restart_syscall_tramp_frame)
4731 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
4732 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
4733 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
4734 ULONGEST_MAX.
4735 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
4736
4737 2018-08-27 Tom Tromey <tom@tromey.com>
4738
4739 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
4740 CORE_ADDR_MAX.
4741 * mips-tdep.c (mips_deal_with_atomic_sequence)
4742 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
4743 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
4744 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
4745 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
4746 CORE_ADDR_MAX.
4747 * aarch64-tdep.c (aarch64_software_single_step): Use
4748 CORE_ADDR_MAX.
4749
4750 2018-08-27 Tom Tromey <tom@tromey.com>
4751
4752 * linespec.c (complete_linespec_component): Add cast to "char".
4753 * completer.c (completion_tracker::build_completion_result): Add
4754 cast to "char".
4755
4756 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4757
4758 * solist.h (struct solist, struct target_so_ops): Fix
4759 indentation.
4760
4761 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4762
4763 * ada-tasks.c (ada_task_info_s): Remove typedef.
4764 (DEF_VEC_O(ada_task_info_s)): Remove.
4765 (struct ada_tasks_inferior_data): Initialize fields.
4766 <task_list>: Make an std::vector.
4767 (get_ada_tasks_inferior_data): Allocate with new.
4768 (ada_get_task_number): Adjust.
4769 (get_task_number_from_id): Likewise.
4770 (valid_task_id): Likewise.
4771 (ada_get_task_info_from_ptid): Likewise.
4772 (iterate_over_live_ada_tasks): Likewise.
4773 (add_ada_task): Likewise.
4774 (read_known_tasks): Likewise.
4775 (ada_build_task_list): Likewise.
4776 (print_ada_task_info): Likewise.
4777 (info_task): Likewise.
4778 (task_command_1): Likewise.
4779
4780 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4781
4782 * ada-lang.c (add_angle_brackets): Return std::string.
4783
4784 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
4785
4786 * python/py-threadevent.c (py_get_event_thread): Initialize
4787 pythread.
4788
4789 2018-08-24 Pedro Alves <palves@redhat.com>
4790
4791 * python/py-bpevent.c (create_breakpoint_event_object): Use
4792 copy-initialization.
4793 * python/py-continueevent.c (emit_continue_event): Use
4794 copy-initialization.
4795 * python/py-exitedevent.c (create_exited_event_object): Return a
4796 gdbpy_ref<>.
4797 (emit_exited_event): Use copy-initialization.
4798 * python/py-inferior.c (python_new_inferior)
4799 (python_inferior_deleted, add_thread_object): Use
4800 copy-initialization.
4801 * python/py-infevents.c (create_inferior_call_event_object)
4802 (create_register_changed_event_object)
4803 (create_memory_changed_event_object): Return a gdbpy_ref<>.
4804 (emit_inferior_call_event, emit_memory_changed_event)
4805 (emit_register_changed_event): Use copy-initialization.
4806 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4807 Return a gdbpy_ref<>.
4808 (emit_new_objfile_event): Use copy-initialization.
4809 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
4810 (emit_clear_objfiles_event): Use copy-initialization.
4811 * python/py-signalevent.c (create_signal_event_object): Use
4812 copy-initialization.
4813 * python/py-threadevent.c (create_thread_event_object): Use
4814 copy-initialization.
4815
4816 2018-08-24 Pedro Alves <palves@redhat.com>
4817 Simon Marchi <simon.marchi@ericsson.com>
4818
4819 PR gdb/23379
4820 * python/py-continueevent.c: Include "gdbthread.h".
4821 (create_continue_event_object): Add intro comment. Add 'ptid'
4822 parameter. Use it to find thread to pass to
4823 create_thread_event_object.
4824 (emit_continue_event): Pass PTID down to
4825 create_continue_event_object.
4826 * python/py-event.h (py_get_event_thread): Declare.
4827 (create_thread_event_object): Remove default from 'thread'
4828 parameter.
4829 * python/py-stopevent.c (create_stop_event_object): Use
4830 py_get_event_thread.
4831 * python/py-threadevent.c (get_event_thread): Rename to ...
4832 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
4833 and use it to find the thread.
4834 (create_thread_event_object): Assert that THREAD isn't null.
4835 Don't find the event thread here.
4836
4837 2018-08-23 Kevin Buettner <kevinb@redhat.com>
4838
4839 * block.h (blockrange, blockranges): New struct declarations.
4840 (struct block): Add new field named `ranges'.
4841 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
4842 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
4843 macros for accessing ranges in struct block.
4844 (make_blockranges): New declaration.
4845 block.c (make_blockranges): New function.
4846 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
4847 for block.
4848 * symtab.h (find_pc_partial_function): Add new parameter `block'.
4849 * blockframe.c (cache_pc_function_block): New static global.
4850 (clear_pc_function_cache): Clear cache_pc_function_block.
4851 (find_pc_partial_function): Move comment to symtab.h. Add
4852 support for non-contiguous blocks.
4853 * cli/cli-cmds.c (block.h): Include.
4854 (print_disassembly): Handle printing of non-contiguous blocks.
4855 (disassemble_current_function): Likewise.
4856 (disassemble_command): Likewise.
4857
4858 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
4859 BLOCK_START.
4860 * blockframe.c (get_pc_function_start): Likewise.
4861 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
4862 (gcc_symbol_address): Likewise.
4863 * compile/compile-object-run.c (compile_object_run): Likewise.
4864 * compile/compile.c (get_expr_block_and_pc): Likewise.
4865 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
4866 (func_addr_to_tail_call_list): Likewise.
4867 * findvar.c (default_read_var_value): Likewise.
4868 * inline-frame.c (inline_frame_this_id): Likewise.
4869 (skip-inline_frames): Likewise.
4870 * infcmd.c (until_next_command): Likewise.
4871 * linespec.c (convert_linespec_to_sals): Likewise.
4872 * parse.c (parse_exp_in_context_1): Likewise.
4873 * printcmd.c (build_address_symbolic): likewise.
4874 (info_address_command): Likewise.
4875 symtab.c (find_function_start_sal): Likewise.
4876 (skip_prologue_sal): Likewise.
4877 (find_function_alias_target): Likewise.
4878 (find_gnu_ifunc): Likewise.
4879 * stack.c (find_frame_funname): Likewise.
4880 * symtab.c (fixup_symbol_section): Likewise.
4881 (find_function_start_sal): Likewise.
4882 (skip_prologue_sal): Likewsie.
4883 (find_function_alias_target): Likewise.
4884 (find_gnu_ifunc): Likewise.
4885 * tracepoint.c (info_scope_command): Likewise.
4886 * value.c (value_fn_field): Likewise.
4887
4888 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
4889 in place of find_pc_partial_function.
4890 * blockframe.c (find_function_entry_range_from_pc): New function.
4891 * symtab.h (find_function_entry_range_from_pc): Declare and document.
4892 * objfiles.c (objfile_relocate1): Relocate start and end addresses
4893 for each range in a block.
4894
4895
4896 2018-08-23 Xavier Roirand <roirand@adacore.com>
4897
4898 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
4899 incrementation.
4900
4901 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4902
4903 * solib-svr4.c (read_program_headers_from_bfd): Return
4904 gdb::optional<gdb::byte_vector>.
4905 (svr4_exec_displacement): Adjust.
4906
4907 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4908
4909 * solib-svr4.c (read_program_header): Return
4910 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
4911 (find_program_interpreter): Return
4912 gdb::optional<gdb::byte_vector>.
4913 (scan_dyntag_auxv): Adjust.
4914 (enable_break): Adjust.
4915 (svr4_exec_displacement): Adjust.
4916
4917 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4918
4919 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
4920 * inf-child.c (inf_child_target::terminal_save_inferior): New.
4921
4922 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4923
4924 * guile/scm-string.c (gdbscm_scm_from_printf): Use
4925 string_vprintf.
4926 * guile/scm-utils.c (gdbscm_printf): Likewise.
4927 * serial.c (serial_printf): Likewise.
4928 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
4929
4930 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
4931
4932 * stack.c (print_frame): Print frame architecture when printing on
4933 an MI output.
4934 * NEWS: Mention new "arch" attribute in frame output.
4935
4936 2018-08-21 Alan Hayward <alan.hayward@arm.com>
4937
4938 * arch/aarch64.h (aarch64_regnum): Update comment.
4939
4940 2018-08-21 Alan Hayward <alan.hayward@arm.com>
4941
4942 * NEWS: Add SVE to 8.2 section.
4943
4944 2018-08-21 Pedro Alves <palves@redhat.com>
4945
4946 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
4947 out from gdbscm_parse_function_args.
4948 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
4949 gdbscm_parse_function_args_1.
4950
4951 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
4952
4953 PR gdb/17816
4954 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
4955 operator.
4956
4957 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
4958
4959 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
4960
4961 2018-08-19 Michael Spang <spang@google.com>
4962
4963 PR gdb/11786
4964 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
4965 for PT_TLS segments.
4966
4967 2018-08-18 Kevin Buettner <kevinb@redhat.com>
4968
4969 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
4970 dwarf_variable_value.
4971 * dwarf2-frame.c (class dwarf_expr_executor):
4972 Add override for dwarf_variable_value.
4973 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
4974 (class symbol_needs_eval_context): Likewise.
4975 (indirect_synthetic_pointer): Add forward declaration.
4976 (sect_variable_value): New function.
4977 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
4978 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
4979 for DW_OP_GNU_variable_value.
4980
4981 2018-08-16 Tom Tromey <tom@tromey.com>
4982
4983 * top.c (read_command_file): Update.
4984 (command_line_input): Remove "repeat" argument.
4985 * ada-lang.c (get_selections): Update.
4986 * linespec.c (decode_line_2): Update.
4987 * defs.h (command_line_input): Remove argument.
4988 * cli/cli-script.c (read_next_line): Update.
4989 * python/py-gdb-readline.c: Update.
4990
4991 2018-08-17 Tom Tromey <tom@tromey.com>
4992
4993 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
4994 command_line_input.
4995
4996 2018-08-15 Tom Tromey <tom@tromey.com>
4997
4998 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
4999
5000 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
5001
5002 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
5003 If used, use find_pc_partial_function to find address range
5004 to disassemble.
5005 * mi/mi-main.c (mi_cmd_list_features): Report
5006 "data-disassemble-a-option" feature.
5007 * NEWS: Mention new -data-disassemble option -a.
5008
5009 2018-08-13 Tom Tromey <tom@tromey.com>
5010
5011 * common/common-defs.h (_FORTIFY_SOURCE): Define.
5012
5013 2018-08-13 Alan Hayward <alan.hayward@arm.com>
5014
5015 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
5016 (aarch64_linux_collect_sve_regset): Likewise.
5017 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
5018 * regcache.h (regcache_map_entry_size): New function.
5019
5020 2018-08-13 Alan Hayward <alan.hayward@arm.com>
5021
5022 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
5023 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
5024 (SVE_HEADER_VL_LENGTH): Likewise.
5025 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
5026 (SVE_HEADER_FLAGS_LENGTH): Likewise.
5027 (SVE_HEADER_RESERVED_LENGTH): Likewise.
5028 (SVE_HEADER_SIZE_OFFSET): Likewise.
5029 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
5030 (SVE_HEADER_VL_OFFSET): Likewise.
5031 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
5032 (SVE_HEADER_FLAGS_OFFSET): Likewise.
5033 (SVE_HEADER_RESERVED_OFFSET): Likewise.
5034 (SVE_HEADER_SIZE): Likewise.
5035 (aarch64_linux_core_read_vq): Add function.
5036 (aarch64_linux_core_read_description): Check for SVE section.
5037
5038 2018-08-13 Alan Hayward <alan.hayward@arm.com>
5039
5040 * aarch64-fbsd-tdep.c
5041 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
5042 collect_size.
5043 * aarch64-linux-tdep.c
5044 (aarch64_linux_iterate_over_regset_sections): Likewise.
5045 * alpha-linux-tdep.c
5046 (alpha_linux_iterate_over_regset_sections):
5047 * alpha-nbsd-tdep.c
5048 (alphanbsd_iterate_over_regset_sections): Likewise.
5049 * amd64-fbsd-tdep.c
5050 (amd64fbsd_iterate_over_regset_sections): Likewise.
5051 * amd64-linux-tdep.c
5052 (amd64_linux_iterate_over_regset_sections): Likewise.
5053 * arm-bsd-tdep.c
5054 (armbsd_iterate_over_regset_sections): Likewise.
5055 * arm-fbsd-tdep.c
5056 (arm_fbsd_iterate_over_regset_sections): Likewise.
5057 * arm-linux-tdep.c
5058 (arm_linux_iterate_over_regset_sections): Likewise.
5059 * corelow.c (get_core_registers_cb): Likewise.
5060 (core_target::fetch_registers): Likewise.
5061 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
5062 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
5063 * gdbarch.h (void): Regenerate.
5064 * gdbarch.sh: Add supply_size and collect_size.
5065 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
5066 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
5067 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
5068 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
5069 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
5070 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
5071 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
5072 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
5073 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
5074 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
5075 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
5076 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
5077 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
5078 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
5079 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections):
5080 Likewise.
5081 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
5082 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
5083 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
5084 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
5085 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
5086 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
5087 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections):
5088 Likewise.
5089 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
5090 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
5091 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
5092 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
5093 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
5094 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
5095 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
5096 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
5097
5098 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
5099
5100 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
5101 with string_printf.
5102
5103 2018-08-10 Keith Seitz <keiths@redhat.com>
5104
5105 * compile/compile-c-support.c (add_code_header, add_code_footer):
5106 Move into policy class.
5107 (c_push_user_expression, pop_user_expression_nop)
5108 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
5109 (compile_program): New host class.
5110 (c_compile_program): New typedef.
5111 (c_compute_porgram): Use c_compile_program.
5112
5113 2018-08-10 Keith Seitz <keiths@redhat.com>
5114
5115 * compile/compile-internal.h (compile_instance::~compile_instance):
5116 Remove calls to htab_delete.
5117 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
5118 * compile.c (compile_instance::compile_instance): Initialize
5119 htab unique pointers.
5120 (compile_instance::get_cached_type, compile_instance::insert_type)
5121 (compile_instance::error_symbol_once): Update for unique_ptr.
5122
5123 2018-08-10 Keith Seitz <keiths@redhat.com>
5124
5125 * compile/compile-c-symbols.c (struct symbol_error)
5126 (hash_symbol_error, eq_symbol_error, del_symbol_error)
5127 (compile_instance::insert_symbol_error)
5128 (compile_instance::error_symbol_once): Move to ...
5129 * compile/compile.c: ... here.
5130
5131 2018-08-10 Keith Seitz <keiths@redhat.com>
5132
5133 * compile/compile-c-support.c (c_get_compile_context): Use `new'
5134 instead of `new_compile_instance'.
5135 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
5136 Update description.
5137 If the symbol error map is not initialized, create it.
5138 (generate_c_for_for_one_symbol): Do not check/initialize
5139 the symbol error map.
5140 * compile/compile-c-types.c (compile_c_instance): Make a class.
5141 Update all callers.
5142 (compile_instance::compile_instance): Initialize the type cache.
5143 (get_cached_type): New function.
5144 (insert_type): Update description.
5145 (compile_c_instance::m_default_cflags): Define.
5146 (convert_type): Update description. Use get_cached_type.
5147 (delete_instance): Moved to destructor.
5148 (new_compile_instance): Moved to constructor.
5149 * compile/compile-c.h (compile_c_instance): Make class inheriting
5150 from compile_instance.
5151 <base>: Remove field.
5152 <type_map, symbol_err_map>: Move to base class.
5153 <c_plugin>: Rename to `m_plugin' and remove pointer type.
5154 * compile/compile-internal.h (compile_instance): Make class.
5155 <type_map_t, symbol_err_map_t>: Define.
5156 <fe>: Rename to `m_gcc_fe'.
5157 <scope, block, gcc_target_options>: Add `m_' prefix.
5158 <m_type_map, m_symbol_err_map>: New fields, moved from
5159 compile_c_instance.
5160 <destroy>: Remove.
5161 (convert_type, new_compile_instance): Remove.
5162 * compile/compile.c (cleanup_compile_instance): Remove.
5163 (compile_to_object): Use unique_ptr to eliminate cleanups.
5164 (compile_instance::set_print_callback, compile_instance::version)
5165 (compile_instance::set_verbose)
5166 (compile_instance::set_driver_filename)
5167 (compile_instance::set_triplet_regexp)
5168 (compile_instance::set_arguments)
5169 (compile_instance::set_source_file)
5170 (compile_instance::compile): Define.
5171
5172 2018-08-10 Keith Seitz <keiths@redhat.com>
5173
5174 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
5175 * compile/compile-c-types.c: Define GCC_METHODN macros and include
5176 gcc-c-fe.def to define C plugin.
5177 (delete_instance): Delete `c_plugin'.
5178 (new_compile_instance): Initialize `c_plugin'.
5179 * compile/compile-c.h: Include gcc_c_plugin.h.
5180 (struct compile_c_instance) <c_plugin>: New member.
5181 * gcc-c-plugin.h: New file.
5182 Update all callers with API change.
5183
5184 2018-08-10 Keith Seitz <keiths@redhat.com>
5185
5186 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
5187 (HFILES_NO_SRCDIR): ... to here.
5188 Add compile-internal.h and compile-c.h.
5189 * compile/compile-c-support.c: Include compile-c.h.
5190 * compile/compile-c-symbols.c: Include compile-c.h.
5191 (generate_c_for_variable_locations): Update comment.
5192 * compile/compile-c-types.c: Include compile-c.h.
5193 * compile/compile-c.h: New file -- moved C language declarations
5194 from other files here.
5195 * compile/compile-internal.h: Do not include hashtab.h or
5196 common/enum-flags.h.
5197 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
5198 (gcc_convert_symbol, gcc_symbol_address)
5199 (generate_c_for_variable_locations, c_get_mode_for_size)
5200 (c_get_range_decl_name): Definitions moved to compile-c.h.
5201 * compile/compile-loc2c.c: Include compile-c.h.
5202
5203 2018-08-10 Keith Seitz <keiths@redhat.com>
5204
5205 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
5206 (c_symbol_substitution_name): ... this.
5207 Update all callers.
5208
5209 2018-08-10 Keith Seitz <keiths@redhat.com>
5210
5211 * compile/compile-c-support.c (c_compute_program): Use
5212 unique_xmalloc_ptr to eliminate cleanup.
5213 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
5214 Return a unique_xmalloc_ptr and eliminate cleanup.
5215 * compile/compile-internal.h (generate_c_for_variable_locations):
5216 Return unique_xmalloc_ptr and update description.
5217
5218 2018-08-10 Alan Hayward <alan.hayward@arm.com>
5219
5220 * corelow.c (core_target::get_core_register_section): Rename
5221 min_size to section_min_size.
5222
5223 2018-08-09 Jim Wilson <jimw@sifive.com>
5224
5225 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
5226 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
5227 * NEWS: Mention new GNU/Linux RISC-V target.
5228 * configure.host: Add riscv*-*-linux*.
5229 * configure.nat: Add riscv*.
5230 * configure.tgt: Add riscv*-*-linux*.
5231 * riscv-linux-nat.c: New file.
5232 * riscv-linux-tdep.c: New file.
5233
5234 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
5235
5236 * infrun.c (resume): Make static, add forward declaration.
5237 (proceed): Update header comment.
5238 * infrun.h (resume): Delete declaration.
5239
5240 2018-08-09 Tom Tromey <tom@tromey.com>
5241
5242 * riscv-tdep.h: Minor formatting fixes.
5243
5244 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
5245
5246 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
5247 * dwarf-index-cache.c (create_dir_and_check): Likewise.
5248 (test_mkdir_recursive): Likewise.
5249 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
5250
5251 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
5252
5253 * valarith.c (value_subscripted_rvalue): If an array is not in
5254 memory, and we don't know the upper bound, then we can't know that
5255 the requested element exists or not.
5256
5257 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
5258
5259 * target.c (str_comma_list_concat_elem): Fix typo in comment.
5260 (target_options_to_string): Add comment.
5261
5262 2018-08-08 Tom Tromey <tom@tromey.com>
5263
5264 * unittests/scoped_mmap-selftests.c: Check result of "write".
5265
5266 2018-08-08 Jim Wilson <jimw@sifive.com>
5267
5268 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
5269 (decode_register_index_short): New.
5270 (decode_j_type_insn, decode_cj_type_insn): New.
5271 (decode_b_type_insn, decode_cb_type_insn): New.
5272 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
5273 local xlen. Check xlen when decoding ambiguous compressed insns. In
5274 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
5275 is_c_sw_insn instead of is_sw_insn.
5276 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
5277 (riscv_software_single_step): New.
5278 * riscv-tdep.h (riscv_software_single_step): Declare.
5279
5280 * riscv-tdep.c (riscv_isa_xlen): Drop static.
5281 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
5282
5283 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
5284
5285 PR gdb/18050:
5286 * target.c (dispose_inferior): Don't dispose of inferiors that are
5287 already killed.
5288
5289 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
5290
5291 * remote.c (remote_target::download_tracepoint): Change char* to
5292 const char*.
5293
5294 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5295
5296 * target.h (target_options_to_string): Return an std::string.
5297 * target.c (str_comma_list_concat_elem): Return void, use
5298 std::string.
5299 (do_option): Likewise.
5300 (target_options_to_string): Return an std::string.
5301 * linux-nat.c (linux_nat_target::wait): Adjust.
5302 * target-debug.h (target_debug_print_options): Adjust.
5303
5304 2018-08-07 Tom Tromey <tom@tromey.com>
5305
5306 * Makefile.in (CPPFLAGS): New variable.
5307 (INTERNAL_CPPFLAGS): Use it.
5308
5309 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5310
5311 * NEWS: Mention the index cache.
5312
5313 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5314
5315 * common/pathstuff.h (get_standard_cache_dir): New.
5316 * common/pathstuff.c (get_standard_cache_dir): New.
5317 * build-id.h (build_id_to_string): New.
5318 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
5319 DEBUG_STR_SUFFIX): Move to here.
5320 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
5321 DEBUG_STR_SUFFIX): Move from there.
5322 (write_psymtabs_to_index): Make non-static, add basename
5323 parameter. Write to temporary files, rename when done.
5324 (save_gdb_index_command): Adjust call to
5325 write_psymtabs_to_index.
5326 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
5327 field.
5328 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
5329 (get_gdb_index_contents_from_cache): New.
5330 (get_gdb_index_contents_from_cache_dwz): New.
5331 (dwarf2_initialize_objfile): Read index from cache.
5332 (dwarf2_build_psymtabs): Save to index.
5333 * dwarf-index-cache.h: New file.
5334 * dwarf-index-cache.c: New file.
5335 * dwarf-index-write.h: New file.
5336
5337 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5338
5339 * gnulib/aclocal.m4: Re-generate.
5340 * gnulib/config.in: Re-generate.
5341 * gnulib/configure: Re-generate.
5342 * gnulib/import/Makefile.am: Re-generate.
5343 * gnulib/import/Makefile.in: Re-generate.
5344 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
5345 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
5346 * gnulib/import/m4/mkdir.m4: New file.
5347 * gnulib/import/mkdir.c: New file.
5348 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
5349 module.
5350
5351 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5352
5353 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
5354 * common/scoped_mmap.c: New file.
5355 * common/scoped_mmap.h (destroy): New method.
5356 (~scoped_mmap, reset): Use destroy.
5357 (scoped_mmap): New move constructor.
5358 (mmap_file): New declaration.
5359 * unittests/scoped_mmap-selftests.c (test_normal,
5360 test_invalid_filename, run_tests): New functions.
5361 (_initialize_scoped_mmap_selftests): Register selftest.
5362
5363 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5364
5365 * dwarf2read.c (read_gdb_index_from_section): Rename to...
5366 (read_gdb_index_from_buffer): ... this. Remove section
5367 parameter, add buffer parameter.
5368 (get_gdb_index_contents_ftype,
5369 get_gdb_index_contents_dwz_ftype): New typedefs.
5370 (dwarf2_read_gdb_index): Add callback parameters to get the
5371 index contents.
5372 (get_gdb_index_contents_from_section): New.
5373 (dwarf2_initialize_objfile): Update call to
5374 dwarf2_read_gdb_index.
5375
5376 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5377
5378 * common/filestuff.h (gdb_fopen_cloexec): New overload.
5379 (gdb_open_cloexec): Likewise.
5380 * nat/linux-osdata.c (command_from_pid): Use string_printf.
5381 (commandline_from_pid): Likewise.
5382 (linux_xfer_osdata_threads): Likewise.
5383 (linux_xfer_osdata_fds): Likewise.
5384 * ada-lang.c (is_package_name): Likewise.
5385 * auxv.c (procfs_xfer_auxv): Likewise.
5386 * breakpoint.c (print_one_breakpoint_location): Use
5387 uiout::field_fmt.
5388 (print_one_catch_solib): Use string_printf.
5389 * coff-pe-read.c (add_pe_exported_sym): Likewise.
5390 (add_pe_forwarded_sym): Likewise.
5391 * dwarf2read.c (create_type_unit_group): Likewise.
5392 (build_error_marker_type): Likewise.
5393 * infcall.c (get_function_name): Likewise.
5394 * valprint.c (print_converted_chars_to_obstack): Likewise.
5395 * xtensa-tdep.c (xtensa_register_type): Likewise.
5396
5397 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
5398
5399 * remote.c (remote_target::download_tracepoint): Fix format
5400 string errors.
5401
5402 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5403
5404 * tracefile.c: Include common/byte-vector.h.
5405 (trace_save): Change type of buf to gdb::byte_vector. Initialize
5406 with trace_regblock_size if needed. Update uses of buf.
5407
5408 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5409
5410 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
5411 std::vector<unsigned char>.
5412 * tracepoint.c (collection_list::collection_list): Remove
5413 m_regs_mask initializer from initializer list. Resize
5414 m_regs_mask using the largest remote register number.
5415 (collection_list::add_remote_register): Remove size check on
5416 m_regs_mask. Use at to access element.
5417 (collection_list::stringify): Change type of temp_buf to
5418 gdb::char_vector. Update uses of temp_buf. Resize if needed to
5419 stringify the register mask. Use pack_hex_byte for the register
5420 mask.
5421
5422 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5423
5424 * tracepoint.h (class collection_list) <add_register>: Remove.
5425 <add_remote_register, add_ax_registers, add_local_register>:
5426 Declare.
5427 <add_memrange>: Add scope parameter.
5428 * tracepoint.c (encode_actions_1): Likewise.
5429 (collection_list::add_register): Rename to ...
5430 (collection_list::add_remote_register): ... this. Update
5431 comment.
5432 (collection_list::add_ax_registers, add_local_register): New
5433 methods.
5434 (collection_list::add_memrange): Add scope parameter. Call
5435 add_local_register instead of add_register.
5436 (finalize_tracepoint_aexpr): New function.
5437 (collection_list::collect_symbol): Update calls to add_memrange.
5438 Call add_local_register instead of add_register. Call
5439 add_ax_registers. Call finalize_tracepoint_aexpr.
5440 (encode_actions_1): Get remote regnos for $reg action. Call
5441 add_remote_register, add_ax_registers, and add_local_register.
5442 Update call to add_memrange. Call finalize_tracepoint_aexpr.
5443 (validate_actionline): Call finalize_tracepoint_aexpr.
5444
5445 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5446
5447 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
5448 Replace array buf with gdb::char_vector buf, of size
5449 get_remote_packet_size (). Replace references to buf and
5450 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
5451 and xsnprintf with snprintf. Raise errors if the buffer is too
5452 small.
5453
5454 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5455
5456 * remote.c (remote_target::download_tracepoint): Fix the has_more
5457 predicate in the QTDP action list iteration.
5458
5459 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5460
5461 * remote.c (remote_target::download_tracepoint): Fix indentation
5462 in for block.
5463
5464 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5465
5466 * proc-api.c (_initialize_proc_api): Remove c, unused.
5467 * procfs.c (procfs_init_inferior): Remove signals, unused.
5468 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
5469 unused.
5470
5471 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
5472 Andrew Burgess <andrew.burgess@embecosm.com>
5473
5474 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
5475 'W_STOPCODE (0)' as this could be ambiguous.
5476
5477 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
5478
5479 * ser-tcp.c (net_open): Fix thinko when deciding whether to
5480 disable TCP's Nagle algorithm (use "ai_protocol" instead of
5481 "ai_socktype").
5482
5483 2018-08-02 Tom Tromey <tom@tromey.com>
5484
5485 PR symtab/16842.
5486 * dwarf2read.c (read_func_scope): Set symtab on template parameter
5487 symbols.
5488 (process_structure_scope): Likewise.
5489
5490 2018-08-02 Xavier Roirand <roirand@adacore.com>
5491
5492 PR gdb/22629:
5493 * darwin-nat.c (darwin_kill_inferior): Fix handling of
5494 kill inferior.
5495
5496 2018-08-02 Tom Tromey <tom@tromey.com>
5497
5498 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
5499 (darwin_suspend_inferior, darwin_resume_inferior)
5500 (darwin_decode_notify_message, darwin_resume_inferior_threads)
5501 (darwin_check_new_threads): Check result of get_darwin_inferior.
5502
5503 2018-07-31 Joel Brobecker <brobecker@adacore.com>
5504
5505 GDB 8.1.1 released.
5506
5507 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
5508
5509 * varobj.c (varobj_get_path_expr_parent): Report an error if
5510 parent is a dynamic varobj.
5511
5512 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
5513
5514 * gnulib/aclocal.m4: Re-generate.
5515 * gnulib/config.in: Re-generate.
5516 * gnulib/configure: Re-generate.
5517 * gnulib/import/Makefile.in: Re-generate.
5518 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
5519 * gnulib/import/m4/onceonly.m4: Re-generate.
5520
5521 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
5522
5523 * target-descriptions.c (struct xml_test_tdesc): New.
5524 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
5525 (record_xml_tdesc): Update.
5526 (maintenance_check_xml_descriptions): Update.
5527 * target-descriptions.h (record_xml_tdesc): Update comment.
5528
5529 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
5530
5531 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
5532 checking array bounds are defined.
5533
5534 2018-07-30 Tom Tromey <tom@tromey.com>
5535
5536 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
5537 irreflexivity violation.
5538
5539 2018-07-30 Tom Tromey <tom@tromey.com>
5540
5541 * cli/cli-decode.c (lookup_cmd): Remove lint code.
5542 * value.c (unpack_long): Remove lint code.
5543 * valops.c (value_ind): Remove lint code.
5544 * valarith.c (value_x_binop, value_x_unop, value_equal)
5545 (value_pos): Remove lint code.
5546
5547 2018-07-28 Tom de Vries <tdevries@suse.de>
5548
5549 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
5550 with undefined upper bound as <optimized out>.
5551
5552 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
5553
5554 * gcore.in: Rename variable "name" to "prefix". Expand
5555 "usage" text.
5556
5557 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
5558
5559 * windows-nat.c (windows_nat_target::create_inferior): Update to
5560 call close() in global namespace.
5561
5562 2018-07-26 Tom Tromey <tom@tromey.com>
5563
5564 * dwarf-index-write.c (add_address_entry): Don't add objfile
5565 offsets.
5566 * dbxread.c (find_stab_function): Rename from
5567 find_stab_function_addr. Return a bound_minimal_symbol.
5568 (read_dbx_symtab): Use raw_text_low, raw_text_high.
5569 Don't add objfile offsets.
5570 (end_psymtab): Use raw_text_low, raw_text_high,
5571 MSYMBOL_VALUE_RAW_ADDRESS.
5572 (read_ofile_symtab): Update.
5573 (process_one_symbol): Update.
5574 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
5575 offsets.
5576 (dw2_relocate): Remove.
5577 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
5578 searching addrmap.
5579 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
5580 Update.
5581 (process_psymtab_comp_unit_reader, add_partial_symbol)
5582 (add_partial_subprogram, dwarf2_ranges_read): Update.
5583 (load_partial_dies): Update.
5584 (add_address_entry): Don't add objfile offsets.
5585 (dwarf2_build_include_psymtabs): Update.
5586 (create_addrmap_from_aranges): Don't add objfile offsets.
5587 (dw2_find_pc_sect_compunit_symtab): Update.
5588 * mdebugread.c (parse_symbol): Don't add objfile offsets.
5589 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
5590 Update.
5591 (parse_partial_symbols): Don't add objfile offsets. Use
5592 raw_text_low, raw_text_high. Update.
5593 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
5594 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
5595 or call 'relocate' quick function. Clear psymbol_map.
5596 * psympriv.h (struct partial_symbol) <address>: Add section
5597 offset.
5598 <set_unrelocated_address>: Rename from set_address.
5599 <raw_text_low, raw_text_high>: New methods.
5600 <text_low, text_high>: Add objfile parameter.
5601 (add_psymbol_to_bcache): Add 'section' parameter. Call
5602 set_unrelocated_address.
5603 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5604 (find_pc_psymbol): Update.
5605 (fixup_psymbol_section, relocate_psymtabs): Remove.
5606 (dump_psymtab, psym_functions): Update.
5607 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
5608 parameter.
5609 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5610 (start_psymtab_common): Update.
5611 * symfile-debug.c (debug_qf_relocate): Remove.
5612 (debug_sym_quick_functions): Update.
5613 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
5614 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
5615 Update.
5616
5617 2018-07-26 Tom Tromey <tromey@redhat.com>
5618
5619 * dbxread.c (end_psymtab): Use text_high_valid and
5620 text_low_valid.
5621 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
5622 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
5623 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5624 Update comment.
5625 <text_low_valid, text_high_valid>: New fields.
5626 <set_text_low, set_text_high>: Update.
5627 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
5628
5629 2018-07-26 Tom Tromey <tom@tromey.com>
5630
5631 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
5632 Update.
5633 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
5634 textlow and texthigh fields.
5635 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
5636 Update.
5637 * mdebugread.c (parse_lines, parse_partial_symbols)
5638 (psymtab_to_symtab_1): Update.
5639 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5640 Rename fields. Update comment. Now private.
5641 <text_low, text_high, set_text_low, set_text_high>: New methods.
5642 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5643 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
5644 (start_psymtab_common, maintenance_info_psymtabs)
5645 (maintenance_check_psymtabs): Update.
5646 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
5647 texthigh fields.
5648 (scan_xcoff_symtab): Update.
5649
5650 2018-07-26 Tom Tromey <tromey@redhat.com>
5651
5652 * psympriv.h (struct partial_symbol) <unrelocated_address,
5653 address, set_address>: New methods.
5654 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
5655 (fixup_psymbol_section, relocate_psymtabs): Update.
5656 (print_partial_symbols): Add 'objfile' parameter. Update.
5657 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
5658 Update.
5659
5660 2018-07-26 Tom Tromey <tom@tromey.com>
5661
5662 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5663 (debug_names::write_psymbols): Update.
5664 * psympriv.h (struct partial_symbol): Derive from
5665 general_symbol_info.
5666 <obj_section>: New method.
5667 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
5668 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5669 (find_pc_sect_psymbol, fixup_psymbol_section)
5670 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
5671 (print_partial_symbols, recursively_search_psymtabs)
5672 (compare_psymbols, psymbol_hash, psymbol_compare)
5673 (add_psymbol_to_bcache, maintenance_check_psymtabs)
5674 (psymbol_name_matches, psym_fill_psymbol_map): Update.
5675
5676 2018-07-26 Tom Tromey <tromey@redhat.com>
5677
5678 * dbxread.c (end_psymtab): Remove dead code.
5679
5680 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
5681
5682 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
5683 DWARF unwinders are disabled.
5684 * dwarf2-frame.c: Add dwarf2read.h include.
5685 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
5686 disabled.
5687 (dwarf2_frame_unwinders_enabled_p): Define.
5688 (show_dwarf_unwinders_enabled_p): New function.
5689 (_initialize_dwarf2_frame): Register switch to control DWARF
5690 unwinder use.
5691 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
5692 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
5693 (show_dwarf_cmdlist): Remove static keyword.
5694 * dwarf2read.h (set_dwarf_cmdlist): Declare.
5695 (show_dwarf_cmdlist): Declare.
5696 * NEWS: Document new feature.
5697
5698 2018-07-26 Tom de Vries <tdevries@suse.de>
5699
5700 PR breakpoints/23366
5701 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
5702
5703 2018-07-26 Tom de Vries <tdevries@suse.de>
5704
5705 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
5706 DW_AT_count can't be translated to a dynamic prop.
5707
5708 2018-07-25 Tom de Vries <tdevries@suse.de>
5709
5710 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
5711 try/catch.
5712
5713 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
5714
5715 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
5716
5717 2018-07-25 Joel Brobecker <brobecker@adacore.com>
5718
5719 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
5720
5721 2018-07-24 Keith Seitz <keiths@redhat.comt
5722
5723 PR symtab/23010
5724 * dwarf2read.c (dw2_add_symbol_to_list): New function.
5725 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
5726 instead of add_symbol_to_list.
5727 (read_file_scope): Call prepare_one_comp_unit before reading
5728 any other DIEs.
5729
5730 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
5731
5732 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
5733
5734 2018-07-24 Tom Tromey <tom@tromey.com>
5735
5736 * utils.c (malloc, realloc, free): Don't declare.
5737 * configure, config.in: Rebuild.
5738 * configure.ac: Don't check for declarations of free, malloc, or
5739 realloc.
5740
5741 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5742
5743 * aarch64-linux-nat.c
5744 (aarch64_linux_nat_target::stopped_data_address): Remove unused
5745 variable.
5746 * arm-linux-nat.c (fetch_regs): Likewise.
5747 (store_regs): Likewise.
5748 (fetch_vfp_regs): Likewise.
5749 (store_vfp_regs): Likewise.
5750 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
5751 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
5752 (arm_linux_nat_target::insert_watchpoint): Likewise.
5753 (arm_linux_nat_target::remove_watchpoint): Likewise.
5754 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
5755 Likewise.
5756 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
5757 Likewise.
5758 * ppc-linux-nat.c (fetch_register): Likewise.
5759 (fetch_all_gp_regs): Likewise.
5760 (fetch_ppc_registers): Likewise.
5761 (store_all_gp_regs): Likewise.
5762 (store_ppc_registers): Likewise.
5763 (hwdebug_insert_point): Likewise.
5764 (can_use_watchpoint_cond_accel): Likewise.
5765 * remote-sim.c (gdb_os_write_stdout): Likewise.
5766
5767 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5768 Tom Tromey <tom@tromey.com>
5769
5770 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
5771 test for it.
5772 * configure: Rebuild.
5773
5774 2018-07-22 Tom Tromey <tom@tromey.com>
5775
5776 * regformats/regdat.sh: Define xmltarget_${name} inside
5777 #ifndef IN_PROCESS_AGENT.
5778
5779 2018-07-22 Tom Tromey <tom@tromey.com>
5780
5781 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
5782
5783 2018-07-22 Tom Tromey <tom@tromey.com>
5784
5785 * symfile.c (reread_symbols): Notify iter, not objfile.
5786
5787 2018-07-22 Tom Tromey <tom@tromey.com>
5788
5789 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
5790 Use arch_ops.
5791 (ravenscar_thread_target::prepare_to_store): Likewise.
5792
5793 2018-07-22 Tom Tromey <tom@tromey.com>
5794
5795 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
5796 unused variable. Call value_fetch_lazy when needed.
5797 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5798 Remove unused variable. Call value_fetch_lazy when needed.
5799
5800 2018-07-22 Tom Tromey <tom@tromey.com>
5801
5802 * m32c-tdep.c (mark_dma): Return void.
5803 (make_regs): Remove unused declarations.
5804
5805 2018-07-22 Tom Tromey <tom@tromey.com>
5806
5807 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
5808 cmdscm_get_valid_command_smob_arg_unsafe for effect.
5809 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
5810 bkscm_get_valid_block_smob_arg_unsafe for effect.
5811
5812 2018-07-22 Tom Tromey <tom@tromey.com>
5813
5814 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
5815 value_type.
5816
5817 2018-07-22 Tom Tromey <tom@tromey.com>
5818
5819 * windows-nat.c (saved_context): Conditionally define.
5820 * remote.c (remote_target::remote_btrace_maybe_reopen):
5821 Conditionally declare "warned".
5822 * inflow.c (sigquit_ours): Conditionally define.
5823 (new_tty): Move "tty" declaration inside #if.
5824 * guile/guile.c (guile_datadir): Conditionally define.
5825 * charset.c (set_be_le_names): Move some declarations inside #if.
5826 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
5827 #if.
5828 (parse_xml_btrace_conf): Likewise.
5829
5830 2018-07-22 Tom Tromey <tom@tromey.com>
5831
5832 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
5833
5834 2018-07-22 Tom Tromey <tom@tromey.com>
5835
5836 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
5837 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
5838 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
5839 * buildsym-legacy.c (get_macro_table): Remove unused variable.
5840 * stack.c (frame_apply_level_command): Remove unused variable.
5841 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
5842 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
5843 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
5844 unused variable.
5845 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
5846 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
5847 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
5848 variable.
5849 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
5850 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
5851 variable.
5852 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
5853 Remove unused variable.
5854 * cli/cli-script.c (recurse_read_control_structure): Remove unused
5855 variable.
5856 * common/tdesc.c (print_xml_feature::visit): Remove unused
5857 variable.
5858 * compile/compile-object-load.c (store_regs): Remove unused
5859 variables.
5860 * complaints.c (clear_complaints): Remove unused variable.
5861 * corelow.c (core_target_open): Remove unused variable.
5862 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
5863 variable.
5864 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
5865 variable.
5866 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
5867 variable.
5868 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
5869 variable.
5870 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
5871 variable.
5872 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
5873 variable.
5874 * ia64-tdep.c (examine_prologue): Remove unused variable.
5875 * infcall.c (run_inferior_call): Remove unused variable.
5876 * inferior.c (exit_inferior): Remove unused variable.
5877 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
5878 * linespec.c (decode_line_2): Remove unused variable.
5879 * linux-nat.c (super_close): Remove.
5880 * linux-tdep.c (linux_info_proc): Remove unused variable.
5881 * mi/mi-main.c (mi_execute_command): Remove unused variable.
5882 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
5883 Remove unused variable.
5884 * parse.c (find_minsym_type_and_address): Remove unused variable.
5885 * printcmd.c (info_symbol_command, printf_floating): Remove unused
5886 variable.
5887 * python/py-breakpoint.c (bppy_set_commands): Remove unused
5888 variable.
5889 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
5890 variables.
5891 * record-btrace.c (record_btrace_target::store_registers): Remove
5892 unused variable.
5893 (cmd_show_record_btrace_cpu): Remove unused variable.
5894 * riscv-tdep.c (riscv_register_reggroup_p)
5895 (riscv_push_dummy_call, riscv_return_value): Remove unused
5896 variable.
5897 * rust-exp.y (literal): Remove unused variable.
5898 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
5899 unused variable.
5900 <STRUCTOP_ANONYMOUS>: Likewise.
5901 * s390-linux-tdep.c (s390_linux_init_abi_31)
5902 (s390_linux_init_abi_64): Remove unused variable.
5903 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
5904 (file_select_thread, net_windows_open, _initialize_ser_windows):
5905 Remove unused variables.
5906 * symtab.c (find_pc_sect_line): Remove unused variable.
5907 * target-memory.c (compute_garbled_blocks): Remove unused
5908 variable.
5909 (target_write_memory_blocks): Remove unused variable.
5910 * target.c (target_stack::unpush): Remove unused variables.
5911 * tracepoint.c (start_tracing, all_tracepoint_actions)
5912 (merge_uploaded_trace_state_variables)
5913 (print_one_static_tracepoint_marker): Remove unused variable.
5914 * unittests/basic_string_view/element_access/char/1.cc (test01):
5915 Remove unused variable.
5916 * windows-nat.c (windows_continue, windows_add_all_dlls)
5917 (do_initial_windows_stuff, windows_nat_target::create_inferior):
5918 Remove unused variables.
5919
5920 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5921
5922 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
5923 attr_profile in HAVE_ELF.
5924 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
5925 HAVE_ELF.
5926
5927 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
5928
5929 * frame.c (frame_register_unwind): Change parameter name.
5930 (frame_unwind_register): Likewise.
5931 (frame_unwind_register_value): Likewise.
5932 (frame_unwind_register_signed): Likewise.
5933 (frame_unwind_register_unsigned): Likewise.
5934 * frame.h (frame_register_unwind): Likewise.
5935 (frame_unwind_register): Likewise.
5936 (frame_unwind_register_value): Likewise.
5937 (frame_unwind_register_signed): Likewise.
5938 (frame_unwind_register_unsigned): Likewise.
5939 (frame_unwind_arch): Likewise.
5940
5941 2018-07-20 Maciej W. Rozycki <macro@mips.com>
5942
5943 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
5944 ISA maintenance.
5945
5946 2018-07-20 Maciej W. Rozycki <macro@mips.com>
5947
5948 * mips-linux-nat.c (mips_linux_nat_target::read_description):
5949 Call `get_ptrace_pid' rather than extracting the ptrace PID by
5950 hand.
5951
5952 2018-07-20 Keith Seitz <keiths@redhat.com>
5953
5954 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
5955 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
5956 m_compunit_symtab, m_language>: Add "m_" prefix.
5957 Update all uses.
5958 * buildsym.c: Update all uses.
5959
5960 2018-07-20 Tom Tromey <tom@tromey.com>
5961
5962 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
5963 * buildsym.h (record_line_ftype): Remove typedef.
5964
5965 2018-07-20 Tom Tromey <tom@tromey.com>
5966
5967 * buildsym-legacy.h (augment_type_symtab): Don't declare.
5968 (end_expandable_symtab): Likewise.
5969 (end_symtab_get_static_block): Likewise.
5970 (end_symtab_from_static_block): Likewise.
5971 * buildsym-legacy.c (augment_type_symtab): Remove.
5972 (end_expandable_symtab): Remove.
5973 (end_symtab_get_static_block): Remove.
5974 (end_symtab_from_static_block): Remove.
5975
5976 2018-07-20 Tom Tromey <tom@tromey.com>
5977
5978 * dwarf2read.c: Include buildsym.h.
5979 (struct dwarf2_cu) <builder>: New method.
5980 (fixup_go_packaging): Update.
5981 (process_full_comp_unit, process_full_type_unit): Update. Don't
5982 use scoped_free_pendings.
5983 (using_directives): Add "cu" parameter, remove "language".
5984 (read_import_statement, setup_type_unit_groups, )
5985 (read_func_scope, read_lexical_block_scope)
5986 (dwarf2_record_block_ranges, read_namespace): Update.
5987 (lnp_state_machine::lnp_state_machine): Add cu parameter.
5988 (lnp_state_machine::handle_end_sequence): Update.
5989 (class lnp_state_machine) <m_cu>: New member.
5990 <m_record_line_callback>: Remove.
5991 <m_currently_recording_lines>: New member.
5992 (lnp_state_machine::handle_set_file): Update.
5993 (noop_record_line): Remove.
5994 (dwarf_record_line_p): Add cu parameter.
5995 (dwarf_record_line_1, dwarf_finish_line): Likewise.
5996 (lnp_state_machine::record_line)
5997 (lnp_state_machine::lnp_state_machine)
5998 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5999 (dwarf_decode_lines): Update.
6000 (dwarf2_start_subfile): Add cu parameter.
6001 (dwarf2_start_symtab, new_symbol): Update.
6002 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
6003 Remove dwarf2_per_objfile parameter.
6004 (dwarf_decode_macros): Update.
6005
6006 2018-07-20 Tom Tromey <tom@tromey.com>
6007
6008 * stabsread.c (define_symbol): Update.
6009 * buildsym-legacy.h (get_buildsym_compunit): Declare.
6010 * dwarf2read.c (new_symbol): Update.
6011 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
6012 * cp-namespace.c: Include buildsym.h.
6013 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
6014 * buildsym-legacy.c (get_buildsym_compunit): New function.
6015
6016 2018-07-20 Tom Tromey <tom@tromey.com>
6017
6018 * xcoffread.c: Include buildsym-legacy.h.
6019 * windows-nat.c: Include buildsym-legacy.h.
6020 * stabsread.c: Include buildsym-legacy.h.
6021 * mdebugread.c: Include buildsym-legacy.h.
6022 * buildsym-legacy.h: New file.
6023 * buildsym-legacy.c: New file, from buildsym.c.
6024 * go32-nat.c: Include buildsym-legacy.h.
6025 * dwarf2read.c: Include buildsym-legacy.h.
6026 * dbxread.c: Include buildsym-legacy.h.
6027 * cp-namespace.c: Include buildsym-legacy.h.
6028 * coffread.c: Include buildsym-legacy.h.
6029 * buildsym.h: Move some contents to buildsym-legacy.h.
6030 * buildsym.c: Include buildsym-legacy.h. Move many functions to
6031 buildsym-legacy.c.
6032 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
6033
6034 2018-07-20 Tom Tromey <tom@tromey.com>
6035
6036 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
6037 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
6038 (buildsym_compunit::buildsym_compunit)
6039 (buildsym_compunit::~buildsym_compunit)
6040 (buildsym_compunit::get_macro_table): Define.
6041
6042 2018-07-20 Tom Tromey <tom@tromey.com>
6043
6044 * buildsym.c (reset_symtab_globals): Remove.
6045 (buildsym_compunit::end_symtab_from_static_block): Update.
6046 (buildsym_compunit::augment_type_symtab): Update.
6047 (end_symtab_from_static_block): Call free_buildsym_compunit.
6048 (augment_type_symtab, end_symtab, end_expandable_symtab):
6049 Likewise.
6050
6051 2018-07-20 Tom Tromey <tom@tromey.com>
6052
6053 * arch-utils.c: Do not include buildsym.h.
6054 * mipsread.c: Do not include buildsym.h.
6055 * machoread.c: Do not include buildsym.h.
6056 * elfread.c: Do not include buildsym.h.
6057
6058 2018-07-20 Tom Tromey <tom@tromey.com>
6059
6060 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
6061 initialization.
6062 (buildsym_compunit): Add new constructor.
6063 (struct buildsym_compunit) <get_last_source_file, finish_block,
6064 record_block_range, start_subfile, patch_subfile_names,
6065 push_subfile, pop_subfile, record_line, get_compunit_symtab,
6066 set_last_source_start_addr, get_last_source_start_addr,
6067 get_local_using_directives, set_local_using_directives,
6068 get_global_using_directives, outermost_context_p,
6069 get_current_context_stack, get_context_stack_depth,
6070 get_current_subfile, get_local_symbols, get_file_symbols,
6071 get_global_symbols, record_debugformat, record_producer,
6072 push_context, pop_context, end_symtab_get_static_block,
6073 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
6074 New public methods.
6075 <record_pending_block, finish_block_internal, make_blockvector,
6076 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
6077 private methods.
6078 Update all users.
6079
6080 2018-05-22 Tom Tromey <tom@tromey.com>
6081
6082 * buildsym.c (record_pending_block): Move earlier. Remove objfile
6083 parameter.
6084 (finish_block_internal): Update.
6085
6086 2018-07-20 Tom Tromey <tom@tromey.com>
6087
6088 * buildsym.c (record_pending_block): Move earlier. Remove objfile
6089 parameter.
6090 (finish_block_internal): Update.
6091
6092 2018-07-20 Tom Tromey <tom@tromey.com>
6093
6094 * buildsym.h (EXTERN): Don't define or undef.
6095 * buildsym.c (EXTERN): Don't define.
6096
6097 2018-07-20 Tom Tromey <tom@tromey.com>
6098
6099 * buildsym.c: Remove TODO comment.
6100
6101 2018-07-20 Tom Tromey <tom@tromey.com>
6102
6103 * coffread.c (coff_symtab_read): Update.
6104 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6105 (xcoff_new_init): Update.
6106 * mipsread.c (mipscoff_new_init): Update.
6107 * mdebugread.c (mdebug_build_psymtabs): Update.
6108 * elfread.c (elf_new_init): Update.
6109 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
6110 Update.
6111 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
6112 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6113 (stabsect_build_psymtabs): Update.
6114 * buildsym.h (buildsym_init): Don't declare.
6115 * buildsym.c: Update comment.
6116 (prepare_for_building): Remove.
6117 (start_symtab, restart_symtab): Update.
6118 (reset_symtab_globals): Update comment.
6119 (buildsym_init): Remove.
6120
6121 2018-07-20 Tom Tromey <tom@tromey.com>
6122
6123 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
6124 * stabsread.c (patch_block_stabs, define_symbol, read_type)
6125 (read_enum_type, common_block_start, common_block_end)
6126 (cleanup_undefined_types_1, finish_global_stabs): Update.
6127 * mdebugread.c (psymtab_to_symtab_1): Update.
6128 * dwarf2read.c (fixup_go_packaging, read_func_scope)
6129 (read_lexical_block_scope, new_symbol): Update.
6130 * dbxread.c (process_one_symbol): Update.
6131 * coffread.c (coff_symtab_read, process_coff_symbol)
6132 (coff_read_enum_type): Update.
6133 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
6134 declare.
6135 (get_local_symbols, get_file_symbols, get_global_symbols): New
6136 functions.
6137 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
6138 m_global_symbols.
6139 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
6140 (~scoped_free_pendings): Update.
6141 (finish_block, prepare_for_building, reset_symtab_globals)
6142 (end_symtab_get_static_block, end_symtab_with_blockvector)
6143 (augment_type_symtab, push_context): Update.
6144 (get_local_symbols, get_file_symbols, get_global_symbols): New
6145 functions.
6146 (buildsym_init): Update.
6147
6148 2018-07-20 Tom Tromey <tom@tromey.com>
6149
6150 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
6151 (process_full_type_unit): Likewise.
6152 (dwarf2_start_symtab): Set list_in_scope.
6153
6154 2018-07-20 Tom Tromey <tom@tromey.com>
6155
6156 * dwarf2read.c (process_psymtab_comp_unit_reader)
6157 (build_type_psymtabs_reader): Do not set list_in_scope.
6158
6159 2018-07-20 Tom Tromey <tom@tromey.com>
6160
6161 * buildsym.c (free_pendings): Remove.
6162 (add_symbol_to_list, scoped_free_pendings)
6163 (finish_block_internal, buildsym_init): Update.
6164
6165 2018-07-20 Tom Tromey <tom@tromey.com>
6166
6167 * xcoffread.c (read_xcoff_symtab): Update.
6168 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
6169 Update.
6170 * dbxread.c (process_one_symbol): Update.
6171 * coffread.c (coff_symtab_read): Update.
6172 * buildsym.h (finish_block): Update.
6173 * buildsym.c (finish_block): Remove "listhead" argument.
6174 (end_symtab_get_static_block): Update.
6175
6176 2018-07-20 Tom Tromey <tom@tromey.com>
6177
6178 * buildsym.h (class scoped_free_pendings): Remove constructor.
6179 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
6180 method.
6181 <m_pending_block_obstack, m_pending_blocks>: New members.
6182 (pending_block_obstack, pending_blocks): Remove.
6183 (scoped_free_pendings::scoped_free_pendings): Default.
6184 (~scoped_free_pendings): Update.
6185 (free_pending_blocks): Remove.
6186 (finish_block_internal, record_pending_block, make_blockvector)
6187 (end_symtab_get_static_block, augment_type_symtab, push_context)
6188 (buildsym_init): Update.
6189
6190 2018-07-20 Tom Tromey <tom@tromey.com>
6191
6192 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
6193 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
6194 members.
6195 (pending_addrmap, pending_addrmap_obstack)
6196 (pending_addrmap_interesting): Remove.
6197 (scoped_free_pendings, record_block_range, make_blockvector)
6198 (prepare_for_building, reset_symtab_globals, buildsym_init):
6199 Update.
6200
6201 2018-07-20 Tom Tromey <tom@tromey.com>
6202
6203 * xcoffread.c (process_linenos): Update.
6204 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
6205 * mdebugread.c (psymtab_to_symtab_1): Update.
6206 * dwarf2read.c (setup_type_unit_groups)
6207 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
6208 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
6209 * dbxread.c (process_one_symbol): Update.
6210 * coffread.c (coff_symtab_read, enter_linenos)
6211 (process_coff_symbol): Update.
6212 * buildsym.h (current_subfile): Don't declare.
6213 (get_current_subfile): Declare.
6214 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
6215 member.
6216 (start_subfile, free_buildsym_compunit, push_subfile)
6217 (prepare_for_building, start_symtab): Update.
6218 (get_current_subfile): New function.
6219
6220 2018-07-20 Tom Tromey <tom@tromey.com>
6221
6222 * coffread.c (coff_symtab_read): Update.
6223 * xcoffread.c (read_xcoff_symtab): Update.
6224 * dwarf2read.c (new_symbol): Update.
6225 (read_func_scope, read_lexical_block_scope): Update.
6226 * dbxread.c (process_one_symbol): Update.
6227 * buildsym.h (context_stack, context_stack_depth): Don't declare.
6228 (outermost_context_p): Remove macro.
6229 (outermost_context_p, get_current_context_stack)
6230 (get_context_stack_depth): Declare.
6231 (pop_context): Return struct context_stack.
6232 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
6233 member.
6234 (context_stack_size): Remove.
6235 (INITIAL_CONTEXT_STACK_SIZE): Remove.
6236 (prepare_for_building, end_symtab_get_static_block)
6237 (augment_type_symtab, push_context): Update.
6238 (pop_context): Return struct context_stack.
6239 (outermost_context_p, get_current_context_stack)
6240 (get_context_stack_depth): New functions.
6241 (buildsym_init): Update.
6242
6243 2018-07-20 Tom Tromey <tom@tromey.com>
6244
6245 * rust-exp.y: Now a pure parser. Update all rules.
6246 (%union): Move earlier.
6247 (current_parser, work_obstack): Remove globals.
6248 (rust_parser, ~rust_parser): Update.
6249 (class rust_parser) <copy_name, concat3, crate_name, super_name,
6250 lex_character, lex_number, lex_string, lex_identifier,
6251 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
6252 convert_name, convert_params_to_expression,
6253 convert_ast_to_expression, ast_basic_type, ast_operation,
6254 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
6255 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
6256 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
6257 ast_array_type, ast_slice_type, ast_reference_type,
6258 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
6259 (rust_parse): Update.
6260 (rustyyerror, rustyylex): Add parser parameter.
6261 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
6262 (rust_lex_stringish_test, rust_lex_test_sequence)
6263 (rust_lex_test_trailing_dot, rust_lex_test_completion)
6264 (rust_lex_test_push_back, rust_lex_tests): Update.
6265
6266 2018-07-19 Pedro Alves <palves@redhat.com>
6267
6268 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
6269 gdb::unique_xmalloc_ptr.
6270 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
6271 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
6272 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
6273 copy-initialization.
6274 * guile/scm-pretty-print.c (ppscm_print_children): Use
6275 gdb::unique_xmalloc_ptr instead of cleanups.
6276 (gdbscm_apply_val_pretty_printer): Remove cleanups.
6277 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
6278 gdb::unique_xmalloc_ptr.
6279 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
6280 Adjust to use gdb::unique_xmalloc_ptr.
6281 * guile/scm-utils.c (extract_arg): Adjust.
6282 * guile/scm-value.c (gdbscm_value_field): Adjust to use
6283 gdb::unique_xmalloc_ptr instead of a cleanup.
6284
6285 2018-07-19 Tom Tromey <tom@tromey.com>
6286
6287 * utils.c (do_value_free_to_mark)
6288 (make_cleanup_value_free_to_mark): Remove.
6289 * utils.h (make_cleanup_value_free_to_mark): Remove.
6290
6291 2018-07-19 Pedro Alves <palves@redhat.com>
6292
6293 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
6294 forwarding reference.
6295
6296 2018-07-18 Pedro Alves <palves@redhat.com>
6297
6298 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
6299 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
6300 cleanup.
6301
6302 2018-07-18 Pedro Alves <palves@redhat.com>
6303
6304 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
6305 exceptions.
6306 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
6307 (gdbscm_wrap): New.
6308 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
6309 directly instead of a cleanup.
6310 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
6311 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
6312 (vlscm_binop_gdbthrow): New, factored out from ...
6313 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
6314 (vlscm_rich_compare): Use gdbscm_wrap.
6315 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
6316 instead of a cleanup.
6317 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
6318 cleanup.
6319 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
6320 Use xfree directly instead of a cleanup.
6321 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
6322 Adjust to use gdbscm_wrap and scoped_value_mark.
6323 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
6324 (gdbscm_value_address, gdbscm_value_dereference)
6325 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
6326 scoped_value_mark.
6327 (gdbscm_value_dynamic_type): Use scoped_value_mark.
6328 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
6329 scoped_value_mark.
6330 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
6331 gdbscm_wrap and scoped_value_mark.
6332 (gdbscm_value_to_string): Use xfree directly instead of a
6333 cleanup. Move 'buffer' unique_ptr to TRY scope.
6334 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
6335 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
6336 scoped_value_mark.
6337 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
6338 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
6339 scoped_value_mark.
6340 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
6341 gdbscm_wrap.
6342
6343 2018-07-18 Tom de Vries <tdevries@suse.de>
6344
6345 * findvar.c (default_read_var_value): Also resolve dynamic type for
6346 LOC_OPTIMIZED_OUT vars.
6347
6348 2018-07-18 Maciej W. Rozycki <macro@mips.com>
6349
6350 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
6351 decoding.
6352
6353 2018-07-17 Tom Tromey <tom@tromey.com>
6354
6355 * guile/scm-param.c (pascm_set_func, pascm_show_func)
6356 (compute_enum_list, pascm_set_param_value_x)
6357 (gdbscm_parameter_value): Update.
6358 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
6359 (gdbscm_scm_to_host_string): Update.
6360 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
6361 Update.
6362 * guile/scm-cmd.c (cmdscm_add_completion): Update.
6363 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
6364 * guile/scm-string.c (gdbscm_scm_to_string): Return
6365 unique_xmalloc_ptr.
6366 (gdbscm_scm_to_host_string): Likewise.
6367
6368 2018-07-17 Tom Tromey <tom@tromey.com>
6369
6370 * guile/guile.c (gdbscm_eval_from_control_command): Update.
6371 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
6372 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
6373 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
6374 unique_xmalloc_ptr.
6375
6376 2018-07-17 Tom Tromey <tom@tromey.com>
6377
6378 * guile/scm-param.c (pascm_signal_setshow_error): Update.
6379 * guile/guile-internal.h (gdbscm_exception_message_to_string):
6380 Update.
6381 * guile/scm-cmd.c (cmdscm_function): Update.
6382 * guile/scm-pretty-print.c
6383 (ppscm_print_exception_unless_memory_error): Update.
6384 * guile/scm-exception.c (gdbscm_exception_message_to_string):
6385 Return unique_xmalloc_ptr.
6386
6387 2018-07-17 Tom Tromey <tom@tromey.com>
6388
6389 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
6390 Use string_printf.
6391
6392 2018-07-17 Jim Wilson <jimw@sifive.com>
6393
6394 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
6395 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
6396 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
6397 unecessary braces after EF_RISCV_RVC test. Delete call to
6398 set_gdbarch_decr_pc_after_break.
6399
6400 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
6401 RISCV_LAST_FP_REGNUM + 1.
6402 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
6403
6404 2018-07-17 Tom Tromey <tom@tromey.com>
6405
6406 * configure.ac: Remove --disable-gdbcli.
6407 * configure: Rebuild.
6408 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
6409 (SUBDIR_CLI_CFLAGS): Remove.
6410 (SFILES): Use SUBDIR_CLI_SRCS.
6411 (COMMON_OBS): Use SUBDIR_CLI_OBS.
6412
6413 2018-07-17 Tom Tromey <tom@tromey.com>
6414
6415 PR gdb/18624:
6416 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
6417
6418 2018-07-16 Jim Wilson <jimw@sifive.com>
6419
6420 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
6421
6422 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6423
6424 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
6425 variable.
6426 (libunwind_frame_sniffer): Likewise.
6427 (libunwind_frame_prev_register): Likewise.
6428 (libunwind_sigtramp_frame_sniffer): Likewise.
6429 * ia64-tdep.c (ia64_access_reg): Likewise.
6430 (ia64_access_rse_reg): Likewise.
6431 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
6432 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
6433
6434 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6435
6436 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
6437
6438 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6439
6440 * remote-sim.c (gdbsim_target::close,
6441 gdbsim_target::mourn_inferior): Remove unused variables.
6442
6443 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
6444
6445 * ia64-tdep.c (ktab_buf): New global.
6446 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
6447 (get_kernel_table): Adjust.
6448
6449 2018-07-16 Tom Tromey <tom@tromey.com>
6450
6451 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
6452 * dwarf2read.c (using_directives, new_symbol): Use
6453 outermost_context_p.
6454 * dbxread.c (process_one_symbol): Use outermost_context_p.
6455 * coffread.c (coff_symtab_read): Use outermost_context_p.
6456
6457 2018-07-16 Tom Tromey <tom@tromey.com>
6458
6459 * dwarf2read.c (using_directives, read_func_scope)
6460 (read_lexical_block_scope): Update.
6461 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6462 * buildsym.h (local_using_directives, global_using_directives):
6463 Don't declare.
6464 (get_local_using_directives, set_local_using_directives)
6465 (get_global_using_directives): Declare.
6466 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
6467 m_global_using_directives>: New members.
6468 (finish_block_internal, prepare_for_building)
6469 (reset_symtab_globals, end_symtab_get_static_block)
6470 (push_context): Update.
6471 (get_local_using_directives, set_local_using_directives)
6472 (get_global_using_directives): New functions.
6473 (buildsym_init): Update.
6474
6475 2018-07-16 Tom Tromey <tom@tromey.com>
6476
6477 * xcoffread.c (xcoff_initial_scan): Don't call
6478 free_pending_blocks.
6479 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
6480 * buildsym.h (class scoped_free_pendings): Add constructor.
6481 (free_pending_blocks): Don't declare.
6482 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
6483 (free_pending_blocks): Now static.
6484
6485 2018-07-16 Tom Tromey <tom@tromey.com>
6486
6487 * buildsym.h (push_subfile, pop_subfile): Update declarations.
6488 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
6489 member.
6490 (struct subfile_stack): Remove.
6491 (subfile_stack): Remove.
6492 (push_subfile, pop_subfile, buildsym_init): Update.
6493
6494 2018-07-16 Tom Tromey <tom@tromey.com>
6495
6496 * buildsym.c (push_subfile): Use gdb_assert.
6497 (pop_subfile): Use gdb_assert.
6498
6499 2018-07-16 Tom Tromey <tom@tromey.com>
6500
6501 * buildsym.h (merge_symbol_lists): Remove.
6502 * buildsym.c (merge_symbol_lists): Remove.
6503
6504 2018-07-16 Tom Tromey <tom@tromey.com>
6505
6506 * stabsread.c (scan_file_globals): Update comment.
6507 * stabsread.h (scan_file_globals): Move from buildsym.h.
6508 * buildsym.h (scan_file_globals): Move to stabsread.h.
6509
6510 2018-07-16 Tom Tromey <tom@tromey.com>
6511
6512 * xcoffread.c (xcoff_new_init): Update.
6513 * mipsread.c (mipscoff_new_init): Update.
6514 * mdebugread.c (mdebug_build_psymtabs): Update.
6515 * elfread.c (elf_new_init): Update.
6516 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
6517 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
6518 * buildsym.h (buildsym_new_init): Don't declare.
6519 * buildsym.c (buildsym_new_init): Remove.
6520
6521 2018-07-16 Tom Tromey <tom@tromey.com>
6522
6523 * stabsread.h (within_function): Move from buildsym.h.
6524 * stabsread.c (start_stabs): Clear within_function.
6525 * coffread.c (coff_start_symtab): Clear within_function.
6526 * buildsym.h (within_function): Move to stabsread.h.
6527 * buildsym.c (prepare_for_building): Update.
6528
6529 2018-07-16 Tom Tromey <tom@tromey.com>
6530
6531 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
6532 * dwarf2read.c (dwarf2_start_symtab): Don't set
6533 processing_gcc_compilation.
6534 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
6535
6536 2018-07-16 Tom Tromey <tom@tromey.com>
6537
6538 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
6539 (next_symbol_text_func): Move from buildsym.h.
6540 * stabsread.c (hashname): Move from buildsym.c.
6541 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
6542 (next_symbol_text_func, hashname): Move to stabsread.h.
6543 * buildsym.c: Don't include bcache.h
6544 (hashname): Move to stasbread.c.
6545
6546 2018-07-16 Tom Tromey <tom@tromey.com>
6547
6548 * buildsym.h (context_stack_size): Don't declare.
6549 * buildsym.c (context_stack_size): New global.
6550
6551 2018-07-16 Tom Tromey <tom@tromey.com>
6552
6553 * dbxread.c (processing_acc_compilation): New global.
6554 * buildsym.h (processing_acc_compilation): Don't declare.
6555
6556 2018-07-16 Tom Tromey <tom@tromey.com>
6557
6558 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
6559 * dbxread.c (read_ofile_symtab): Update.
6560 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
6561 * buildsym.h (last_source_start_addr): Remove.
6562 (set_last_source_start_addr, get_last_source_start_addr):
6563 Declare.
6564 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
6565 parameter.
6566 (struct buildsym_compunit) <m_last_source_start_addr>: New
6567 member.
6568 (prepare_for_building): Remove start_addr parameter.
6569 (start_symtab, restart_symtab, end_symtab_get_static_block)
6570 (end_symtab_with_blockvector): Update.
6571 (set_last_source_start_addr, get_last_source_start_addr): New
6572 functions.
6573
6574 2018-07-16 Tom Tromey <tom@tromey.com>
6575
6576 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
6577 member.
6578 (have_line_numbers): Remove.
6579 (record_line, prepare_for_building, end_symtab_get_static_block)
6580 (augment_type_symtab): Update.
6581
6582 2018-07-16 Tom Tromey <tom@tromey.com>
6583
6584 * buildsym.c (~buildsym_compunit): Free the macro table.
6585 (struct buildsym_compunit) <get_macro_table, release_macros>: New
6586 methods.
6587 <m_pending_macros>: New member.
6588 (pending_macros): Remove.
6589 (~scoped_free_pendings, get_macro_table, prepare_for_building)
6590 (reset_symtab_globals, end_symtab_get_static_block)
6591 (end_symtab_with_blockvector, augment_type_symtab)
6592 (buildsym_init): Update.
6593
6594 2018-07-16 Tom Tromey <tom@tromey.com>
6595
6596 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
6597 parameter.
6598 (buildsym_compunit::set_last_source_file): New method.
6599 <m_last_source_file>: New member.
6600 (prepare_for_building): Remove "name" parameter.
6601 (start_symtab, restart_symtab, reset_symtab_globals): Update.
6602 (last_source_file): Remove.
6603 (set_last_source_file, get_last_source_file): Update.
6604
6605 2018-07-16 Tom Tromey <tom@tromey.com>
6606
6607 * buildsym.c (prepare_for_building): Add assert.
6608
6609 2018-07-16 Tom Tromey <tom@tromey.com>
6610
6611 * buildsym.c (~buildsym_compunit): Update.
6612 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
6613 (start_subfile, patch_subfile_names)
6614 (end_symtab_with_blockvector): Update.
6615
6616 2018-07-16 Tom Tromey <tom@tromey.com>
6617
6618 * buildsym.c (struct buildsym_compunit): Add constructor,
6619 destructor, initializers.
6620 (start_buildsym_compunit): Remove.
6621 (free_buildsym_compunit): Use "delete".
6622 (start_symtab, restart_symtab): Use "new".
6623
6624 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
6625
6626 * symfile.c (set_objfile_default_section_offset): Remove struct
6627 keyword.
6628
6629 2018-07-14 Stafford Horne <shorne@gmail.com>
6630
6631 * (Responsible Maintainers): Add myself as or1k maintainer.
6632
6633 2018-07-13 Tom Tromey <tom@tromey.com>
6634
6635 * symfile.c (set_objfile_default_section_offset): Use extra braces
6636 around initializer.
6637
6638 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6639
6640 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
6641 non-branching basr.
6642
6643 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6644
6645 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6646 unittests/cli-utils-selftests.c
6647 * unittests/cli-utils-selftests.c: New file.
6648
6649 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6650
6651 * NEWS: Mention new commands. Mention change to 'thread apply'.
6652
6653 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6654
6655 * thread.c (thr_try_catch_cmd): New function.
6656 (thread_apply_all_command): Handle qcs flags.
6657 (thread_apply_command): Handle qcs flags.
6658 (taas_command): New function.
6659 (tfaas_command): New function.
6660 (_initialize_thread): Update to setup the new commands 'taas
6661 and 'tfaas'. Change doc string for 'thread apply'.
6662
6663 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6664
6665 * stack.c: (trailing_outermost_frame): New function, mostly
6666 extracted from backtrace_command_1.
6667 (leading_innermost_frame): New function.
6668 (backtrace_command_1): Update to call trailing_outermost_frame.
6669 (frame_apply_command_count): New function.
6670 (frame_apply_level_command): New function.
6671 (frame_apply_all_command): New function.
6672 (frame_apply_command): New function.
6673 (faas_command): New function.
6674 (frame_cmd_list): New variable.
6675 (_initialize_stack): Update to setup the new commands 'frame apply'
6676 and 'faas'.
6677
6678 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6679
6680 * cli-utils.c (number_or_range_parser::get_number): Only handle
6681 numbers or convenience var as numbers.
6682 (parse_flags): New function.
6683 (parse_flags_qcs): New function.
6684 (number_or_range_parser::finished): Ensure parsing end is detected
6685 before end of string.
6686 * cli-utils.h (parse_flags): New function.
6687 (parse_flags_qcs): New function.
6688 (number_or_range_parser): Remove m_finished bool.
6689 (number_or_range_parser::skip_range): Set m_in_range to false.
6690
6691 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
6692
6693 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
6694 on Windows.
6695
6696 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6697 Jan Kratochvil <jan.kratochvil@redhat.com>
6698 Paul Fertser <fercerpav@gmail.com>
6699 Tsutomu Seki <sekiriki@gmail.com>
6700 Pedro Alves <palves@redhat.com>
6701
6702 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6703 'unittests/parse-connection-spec-selftests.c'.
6704 (COMMON_SFILES): Add 'common/netstuff.c'.
6705 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
6706 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
6707 * common/netstuff.c: New file.
6708 * common/netstuff.h: New file.
6709 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
6710 (wait_for_connect): Update comment. New parameter
6711 'gdb::optional<int> sock' instead of 'struct serial *scb'.
6712 Use 'sock' directly instead of 'scb->fd'.
6713 (try_connect): New function, with code from 'net_open'.
6714 (net_open): Rewrite main loop to deal with multiple
6715 sockets/addresses. Handle IPv6-style hostnames; implement
6716 support for IPv6 connections.
6717 * unittests/parse-connection-spec-selftests.c: New file.
6718
6719 2018-07-11 Pedro Alves <palves@redhat.com>
6720
6721 PR gdb/23377
6722 * remote.c (remote_target::remote_detach_pid): Call
6723 set_current_process.
6724
6725 2018-07-11 Pedro Alves <palves@redhat.com>
6726
6727 * h8300-tdep.c (h8300_gdbarch_init): Remove
6728 set_gdbarch_ecoff_reg_to_regnum calls.
6729
6730 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6731
6732 PR c++/23373
6733 * c-typeprint.c (c_type_print_base_struct_union): Don't print
6734 offsets/sizes for static members of a class/struct.
6735
6736 2018-07-11 Alan Hayward <alan.hayward@arm.com>
6737
6738 * target-descriptions.c (tdesc_register_bitsize): Rename.
6739 * target-descriptions.h (tdesc_register_bitsize): Likewise.
6740 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
6741 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
6742
6743 2018-07-10 Tom Tromey <tom@tromey.com>
6744
6745 * breakpoint.c (moribund_locations): Now static and a
6746 std::vector.
6747 (breakpoint_init_inferior, moribund_breakpoint_here_p)
6748 (build_bpstat_chain, update_global_location_list)
6749 (breakpoint_retire_moribund): Update.
6750 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
6751 VEC.
6752
6753 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6754
6755 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
6756 (riscv_register_reggroup_p): Use new function, remove unneeded
6757 parenthesis.
6758 (riscv_push_dummy_call): Extend assert to compare against xlen or
6759 flen based on register type.
6760
6761 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6762
6763 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
6764
6765 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6766
6767 * remote.c (show_hardware_watchpoint_limit): New function.
6768 (show_hardware_watchpoint_length_limit): New function.
6769 (show_hardware_breakpoint_limit): New function.
6770 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
6771 where appropriate, update help text.
6772
6773 2018-07-09 Tom Tromey <tom@tromey.com>
6774
6775 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
6776 (CLIBS): Don't mention NAT_CLIBS.
6777
6778 2018-07-09 Tom Tromey <tom@tromey.com>
6779
6780 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
6781 (LIBGDB_OBS, clean mostlyclean): Update.
6782 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
6783
6784 2018-07-09 Tom Tromey <tom@tromey.com>
6785
6786 * Makefile.in (%.c: %.y): Use ECHO_YACC.
6787 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
6788 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
6789
6790 2018-07-09 Tom Tromey <tom@tromey.com>
6791
6792 * Makefile.in (ALLDEPFILES): Remove exec.c.
6793 (COMMON_OBS): Remove exec.o.
6794 (COMMON_SFILES): Add exec.c.
6795
6796 2018-07-09 Tom Tromey <tom@tromey.com>
6797
6798 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
6799
6800 2018-07-09 Tom Tromey <tom@tromey.com>
6801
6802 * Makefile.in (clean mostlyclean): Remove stamp-version.
6803 (version.c): Depend on stamp-version.
6804 (stamp-version): New rule, from version.c rule.
6805
6806 2018-07-09 Tom Tromey <tom@tromey.com>
6807
6808 * Makefile.in (init.c): Depend on stamp-init.
6809 (stamp-init): New rule, from init.c rule.
6810 (clean mostlyclean): Remove stamp-init.
6811
6812 2018-07-09 Tom Tromey <tom@tromey.com>
6813
6814 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
6815 SUBDIR_GCC_COMPILE_SRCS.
6816
6817 2018-07-09 Tom Tromey <tom@tromey.com>
6818
6819 * Makefile.in (init.c): Remove some unused sed rules.
6820
6821 2018-07-09 Tom Tromey <tom@tromey.com>
6822
6823 * Makefile.in (TSOBS): Remove.
6824 (INIT_FILES): Update.
6825 (LIBGDB_OBS): Update.
6826 (COMMON_SFILES): Add inflow.c.
6827 (SFILES): Remove inflow.c.
6828
6829 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6830
6831 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
6832
6833 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
6834
6835 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
6836 get_saveloc_name, is_signal_frame_name, step_name,
6837 init_remote_name, create_addr_space_name,
6838 destroy_addr_space_name, search_unwind_table_name,
6839 find_dyn_list_name): Constify.
6840
6841 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
6842
6843 * darwin-nat.c (darwin_pthread_kill): New function.
6844 (darwin_resume_thread): Use darwin_pthread_kill.
6845
6846 2018-07-05 Tom de Vries <tdevries@suse.de>
6847
6848 * macroexp.c (macro_buffer) <operator=>: New member function.
6849
6850 2018-07-04 Tom Tromey <tom@tromey.com>
6851
6852 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
6853
6854 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
6855
6856 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
6857 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
6858 * maint.c: Likewise.
6859 * top.c: Likewise.
6860
6861 2018-07-04 Joel Brobecker <brobecker@adacore.com>
6862
6863 * NEWS: Create a new section for the next release branch.
6864 Rename the section of the current branch, now that it has
6865 been cut.
6866
6867 2018-07-04 Joel Brobecker <brobecker@adacore.com>
6868
6869 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
6870 * version.in: Bump version to 8.2.50.DATE-git.
6871
6872 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6873 Pedro Alves <palves@redhat.com>
6874
6875 * linux-nat.c (linux_init_ptrace): Rename to ...
6876 (linux_init_ptrace_procfs): ... this. Call
6877 linux_proc_init_warnings.
6878 (linux_nat_target::post_attach)
6879 (linux_nat_target::post_startup_inferior): Adjust.
6880 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
6881 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
6882
6883 2018-07-04 Tom de Vries <tdevries@suse.de>
6884
6885 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
6886 check ...
6887 (read_comp_unit_head): ... here.
6888
6889 2018-07-03 Tom Tromey <tom@tromey.com>
6890
6891 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
6892 (stop_tracing, tstatus_command)
6893 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
6894 (print_one_static_tracepoint_marker): Update.
6895 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
6896 std::vector.
6897 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
6898 VEC.
6899 (all_tracepoints, static_tracepoints_here): Return std::vector.
6900
6901 2018-07-03 Tom Tromey <tom@tromey.com>
6902
6903 * common/ptid.c (ptid_equal): Remove.
6904 * common/ptid.h (ptid_equal): Don't declare.
6905 * ada-tasks.c: Update.
6906 * breakpoint.c: Update.
6907 * common/agent.c: Update.
6908 * corelow.c: Update.
6909 * darwin-nat-info.c: Update.
6910 * darwin-nat.c: Update.
6911 * dcache.c: Update.
6912 * dtrace-probe.c: Update.
6913 * dummy-frame.c: Update.
6914 * fbsd-nat.c: Update.
6915 * frame.c: Update.
6916 * gdbthread.h: Update.
6917 * gnu-nat.c: Update.
6918 * go32-nat.c: Update.
6919 * inf-loop.c: Update.
6920 * inf-ptrace.c: Update.
6921 * infcall.c: Update.
6922 * infcmd.c: Update.
6923 * inflow.c: Update.
6924 * infrun.c: Update.
6925 * linux-fork.c: Update.
6926 * linux-nat.c: Update.
6927 * linux-thread-db.c: Update.
6928 * mi/mi-cmd-var.c: Update.
6929 * mi/mi-interp.c: Update.
6930 * mi/mi-main.c: Update.
6931 * nto-procfs.c: Update.
6932 * ppc-linux-tdep.c: Update.
6933 * procfs.c: Update.
6934 * python/py-inferior.c: Update.
6935 * python/py-record-btrace.c: Update.
6936 * python/py-record.c: Update.
6937 * ravenscar-thread.c: Update.
6938 * regcache.c: Update.
6939 * remote-sim.c: Update.
6940 * remote.c: Update.
6941 * sol-thread.c: Update.
6942 * solib.c: Update.
6943 * target.c: Update.
6944 * tui/tui-stack.c: Update.
6945 * varobj.c: Update.
6946 * windows-nat.c: Update.
6947 * windows-tdep.c: Update.
6948
6949 2018-07-03 Tom Tromey <tom@tromey.com>
6950
6951 * common/ptid.c (ptid_match): Remove.
6952 * common/ptid.h (ptid_match): Don't declare.
6953 * fbsd-nat.c: Update.
6954 * infcmd.c: Update.
6955 * infrun.c: Update.
6956 * linux-nat.c: Update.
6957 * record-btrace.c: Update.
6958 * regcache.c: Update.
6959 * remote.c: Update.
6960
6961 2018-07-03 Tom Tromey <tom@tromey.com>
6962
6963 * common/ptid.c (ptid_tid_p): Remove.
6964 * common/ptid.h (ptid_tid_p): Don't declare.
6965 * sol-thread.c: Update.
6966
6967 2018-07-03 Tom Tromey <tom@tromey.com>
6968
6969 * common/ptid.c (ptid_lwp_p): Remove.
6970 * common/ptid.h (ptid_lwp_p): Don't declare.
6971 * fbsd-nat.c: Update.
6972 * linux-nat.c: Update.
6973 * nat/linux-procfs.c: Update.
6974 * nat/x86-linux-dregs.c: Update.
6975 * sol-thread.c: Update.
6976
6977 2018-07-03 Tom Tromey <tom@tromey.com>
6978
6979 * common/ptid.c (ptid_is_pid): Remove.
6980 * common/ptid.h (ptid_is_pid): Don't declare.
6981 * infrun.c: Update.
6982 * linux-nat.c: Update.
6983 * mi/mi-interp.c: Update.
6984 * remote.c: Update.
6985 * thread.c: Update.
6986
6987 2018-07-03 Tom Tromey <tom@tromey.com>
6988
6989 * common/ptid.c (ptid_get_tid): Remove.
6990 * common/ptid.h (ptid_get_tid): Don't declare.
6991 * ada-tasks.c: Update.
6992 * aix-thread.c: Update.
6993 * bsd-uthread.c: Update.
6994 * darwin-nat.c: Update.
6995 * fbsd-nat.c: Update.
6996 * i386-darwin-nat.c: Update.
6997 * infrun.c: Update.
6998 * linux-tdep.c: Update.
6999 * nto-procfs.c: Update.
7000 * ppc-ravenscar-thread.c: Update.
7001 * python/py-infthread.c: Update.
7002 * ravenscar-thread.c: Update.
7003 * sol-thread.c: Update.
7004 * sparc-ravenscar-thread.c: Update.
7005 * windows-nat.c: Update.
7006
7007 2018-07-03 Tom Tromey <tom@tromey.com>
7008
7009 * common/ptid.c (ptid_get_lwp): Remove.
7010 * common/ptid.h (ptid_get_lwp): Don't declare.
7011 * aarch64-linux-nat.c: Update.
7012 * ada-tasks.c: Update.
7013 * aix-thread.c: Update.
7014 * amd64-linux-nat.c: Update.
7015 * arm-linux-nat.c: Update.
7016 * corelow.c: Update.
7017 * fbsd-nat.c: Update.
7018 * fbsd-tdep.c: Update.
7019 * gnu-nat.c: Update.
7020 * i386-cygwin-tdep.c: Update.
7021 * i386-gnu-nat.c: Update.
7022 * i386-linux-nat.c: Update.
7023 * ia64-linux-nat.c: Update.
7024 * inf-ptrace.c: Update.
7025 * infrun.c: Update.
7026 * linux-fork.c: Update.
7027 * linux-nat.c: Update.
7028 * linux-tdep.c: Update.
7029 * linux-thread-db.c: Update.
7030 * mips-linux-nat.c: Update.
7031 * nat/aarch64-linux-hw-point.c: Update.
7032 * nat/aarch64-linux.c: Update.
7033 * nat/linux-btrace.c: Update.
7034 * nat/linux-osdata.c: Update.
7035 * nat/linux-procfs.c: Update.
7036 * nat/x86-linux-dregs.c: Update.
7037 * obsd-nat.c: Update.
7038 * ppc-fbsd-nat.c: Update.
7039 * ppc-linux-nat.c: Update.
7040 * procfs.c: Update.
7041 * python/py-infthread.c: Update.
7042 * ravenscar-thread.c: Update.
7043 * remote.c: Update.
7044 * s390-linux-nat.c: Update.
7045 * sol-thread.c: Update.
7046 * sol2-tdep.c: Update.
7047 * spu-linux-nat.c: Update.
7048 * x86-linux-nat.c: Update.
7049 * xtensa-linux-nat.c: Update.
7050
7051 2018-07-03 Tom Tromey <tom@tromey.com>
7052
7053 * common/ptid.c (ptid_get_pid): Remove.
7054 * common/ptid.h (ptid_get_pid): Don't declare.
7055 * aarch64-linux-nat.c: Update.
7056 * ada-lang.c: Update.
7057 * aix-thread.c: Update.
7058 * alpha-bsd-nat.c: Update.
7059 * amd64-fbsd-nat.c: Update.
7060 * amd64-linux-nat.c: Update.
7061 * arm-linux-nat.c: Update.
7062 * arm-nbsd-nat.c: Update.
7063 * auxv.c: Update.
7064 * break-catch-syscall.c: Update.
7065 * breakpoint.c: Update.
7066 * bsd-uthread.c: Update.
7067 * corelow.c: Update.
7068 * ctf.c: Update.
7069 * darwin-nat.c: Update.
7070 * fbsd-nat.c: Update.
7071 * fbsd-tdep.c: Update.
7072 * gcore.c: Update.
7073 * gnu-nat.c: Update.
7074 * hppa-nbsd-nat.c: Update.
7075 * hppa-obsd-nat.c: Update.
7076 * i386-fbsd-nat.c: Update.
7077 * ia64-linux-nat.c: Update.
7078 * inf-ptrace.c: Update.
7079 * infcmd.c: Update.
7080 * inferior.c: Update.
7081 * inferior.h: Update.
7082 * inflow.c: Update.
7083 * infrun.c: Update.
7084 * linux-fork.c: Update.
7085 * linux-nat.c: Update.
7086 * linux-tdep.c: Update.
7087 * linux-thread-db.c: Update.
7088 * m68k-bsd-nat.c: Update.
7089 * mi/mi-interp.c: Update.
7090 * mi/mi-main.c: Update.
7091 * mips-linux-nat.c: Update.
7092 * mips-nbsd-nat.c: Update.
7093 * mips64-obsd-nat.c: Update.
7094 * nat/aarch64-linux-hw-point.c: Update.
7095 * nat/aarch64-linux.c: Update.
7096 * nat/linux-btrace.c: Update.
7097 * nat/linux-osdata.c: Update.
7098 * nat/linux-procfs.c: Update.
7099 * nat/x86-linux-dregs.c: Update.
7100 * nto-procfs.c: Update.
7101 * obsd-nat.c: Update.
7102 * ppc-linux-nat.c: Update.
7103 * ppc-nbsd-nat.c: Update.
7104 * ppc-obsd-nat.c: Update.
7105 * proc-service.c: Update.
7106 * procfs.c: Update.
7107 * python/py-inferior.c: Update.
7108 * python/py-infthread.c: Update.
7109 * ravenscar-thread.c: Update.
7110 * record.c: Update.
7111 * remote-sim.c: Update.
7112 * remote.c: Update.
7113 * rs6000-nat.c: Update.
7114 * s390-linux-nat.c: Update.
7115 * sh-nbsd-nat.c: Update.
7116 * sol-thread.c: Update.
7117 * sparc-nat.c: Update.
7118 * sparc64-tdep.c: Update.
7119 * spu-linux-nat.c: Update.
7120 * spu-tdep.c: Update.
7121 * target-debug.h: Update.
7122 * target.c: Update.
7123 * thread.c: Update.
7124 * tid-parse.c: Update.
7125 * tracefile-tfile.c: Update.
7126 * vax-bsd-nat.c: Update.
7127 * windows-nat.c: Update.
7128 * x86-linux-nat.c: Update.
7129 * x86-nat.c: Update.
7130
7131 2018-07-03 Tom Tromey <tom@tromey.com>
7132
7133 * common/ptid.c (pid_to_ptid): Remove.
7134 * common/ptid.h (pid_to_ptid): Don't declare.
7135 * aix-thread.c: Update.
7136 * arm-linux-nat.c: Update.
7137 * common/ptid.c: Update.
7138 * common/ptid.h: Update.
7139 * corelow.c: Update.
7140 * ctf.c: Update.
7141 * darwin-nat.c: Update.
7142 * fbsd-nat.c: Update.
7143 * fork-child.c: Update.
7144 * gnu-nat.c: Update.
7145 * go32-nat.c: Update.
7146 * inf-ptrace.c: Update.
7147 * infcmd.c: Update.
7148 * inferior.c: Update.
7149 * infrun.c: Update.
7150 * linux-fork.c: Update.
7151 * linux-nat.c: Update.
7152 * nat/aarch64-linux-hw-point.c: Update.
7153 * nat/fork-inferior.c: Update.
7154 * nat/x86-linux-dregs.c: Update.
7155 * nto-procfs.c: Update.
7156 * obsd-nat.c: Update.
7157 * procfs.c: Update.
7158 * progspace.c: Update.
7159 * remote.c: Update.
7160 * rs6000-nat.c: Update.
7161 * s390-linux-nat.c: Update.
7162 * sol-thread.c: Update.
7163 * spu-linux-nat.c: Update.
7164 * target.c: Update.
7165 * top.c: Update.
7166 * tracefile-tfile.c: Update.
7167 * windows-nat.c: Update.
7168
7169 2018-07-03 Tom Tromey <tom@tromey.com>
7170
7171 * common/ptid.h (ptid_build): Don't declare.
7172 * common/ptid.c (ptid_build): Remove.
7173 * aix-thread.c: Update.
7174 * bsd-kvm.c: Update.
7175 * bsd-uthread.c: Update.
7176 * common/agent.c: Update.
7177 * common/ptid.c: Update.
7178 * common/ptid.h: Update.
7179 * corelow.c: Update.
7180 * darwin-nat.c: Update.
7181 * fbsd-nat.c: Update.
7182 * gnu-nat.c: Update.
7183 * linux-fork.c: Update.
7184 * linux-nat.c: Update.
7185 * linux-thread-db.c: Update.
7186 * nat/linux-osdata.c: Update.
7187 * nat/linux-procfs.c: Update.
7188 * nto-procfs.c: Update.
7189 * obsd-nat.c: Update.
7190 * proc-service.c: Update.
7191 * procfs.c: Update.
7192 * ravenscar-thread.c: Update.
7193 * remote-sim.c: Update.
7194 * remote.c: Update.
7195 * sol-thread.c: Update.
7196 * target.c: Update.
7197 * windows-nat.c: Update.
7198
7199 2018-07-03 Tom Tromey <tom@tromey.com>
7200
7201 * infrun.c (follow_exec): Use exit_inferior_silent.
7202 * inferior.c (exit_inferior_num_silent): Remove.
7203 * inferior.h (exit_inferior_num_silent): Don't declare.
7204
7205 2018-07-03 Tom Tromey <tom@tromey.com>
7206
7207 PR cli/23340:
7208 * darwin-nat.c (darwin_attach_pid): Reset inferior and
7209 inferior_ptid on error.
7210
7211 2018-07-02 Maciej W. Rozycki <macro@mips.com>
7212 Simon Marchi <simon.marchi@polymtl.ca>
7213
7214 PR tdep/8282
7215 * disasm.h (gdb_disassembler): Add
7216 `m_disassembler_options_holder'. member
7217 * disasm.c (get_all_disassembler_options): New function.
7218 (gdb_disassembler::gdb_disassembler): Use it.
7219 (gdb_buffered_insn_length_init_dis): Likewise.
7220 (gdb_buffered_insn_length): Adjust accordingly.
7221 (set_disassembler_options): Handle options with arguments.
7222 (show_disassembler_options_sfunc): Likewise. Add a leading new
7223 line if showing options with descriptions.
7224 (disassembler_options_completer): Adapt to using the
7225 `disasm_options_and_args_t' structure.
7226 * mips-tdep.c (mips_disassembler_options): New variable.
7227 (mips_disassembler_options_o32): Likewise.
7228 (mips_disassembler_options_n32): Likewise.
7229 (mips_disassembler_options_n64): Likewise.
7230 (gdb_print_insn_mips): Don't set `disassembler_options'.
7231 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
7232 functions.
7233 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
7234 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
7235 `gdbarch_disassembler_options_implicit' and
7236 `gdbarch_valid_disassembler_options'.
7237 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
7238 `disasm_options_and_args_t' structure.
7239 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
7240 method.
7241 (valid_disassembler_options): Switch from `disasm_options_t' to
7242 the `disasm_options_and_args_t' structure.
7243 * NEWS: Document `set disassembler-options' support for the MIPS
7244 target.
7245 * gdbarch.h: Regenerate.
7246 * gdbarch.c: Regenerate.
7247
7248 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
7249
7250 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
7251
7252 2018-06-29 Joel Brobecker <brobecker@adacore.com>
7253
7254 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
7255 parameter in call to amd64_target_description.
7256 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
7257 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
7258 (amd64fbsd_init_abi): Likewise.
7259 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7260 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7261 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7262 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
7263
7264 2018-06-29 Pedro Alves <palves@redhat.com>
7265
7266 * gdb/amd64-tdep.h (amd64_create_target_description): Add
7267 "segments" parameter.
7268 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
7269 (_initialize_amd64_tdep): Update call to
7270 amd64_create_target_description.
7271 (amd64_target_description): Add "segments" parameter. Adjust
7272 the implementation to use it.
7273 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
7274 call to amd64_create_target_description.
7275 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
7276 * gdb/arch/amd64.h (amd64_create_target_description): Add
7277 "segments" register.
7278 * gdb/arch/amd64.c (amd64_create_target_description): Add
7279 "segments" parameter. Call create_feature_i386_64bit_segments
7280 only if SEGMENTS is true.
7281 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
7282 call to amd64_create_target_description.
7283
7284 2018-06-29 Pedro Alves <palves@redhat.com>
7285
7286 * thread.c (thread_target_id_str): New, factored out from ...
7287 (print_thread_info_1): ... here. Use it to compute the max
7288 "Target Id" column width.
7289
7290 2018-06-29 Pedro Alves <palves@redhat.com>
7291
7292 * remote.c (remote_target::extra_thread_info): Delete
7293 'display_buf' and 'n' locals. from the cache, regardless of
7294 packet mechanims is in use. Use cache for qThreadExtra and qP
7295 methods too.
7296
7297 2018-06-29 Pedro Alves <palves@redhat.com>
7298
7299 * blockframe.c (find_pc_sect_containing_function): New function.
7300 * breakpoint.c (print_breakpoint_location): Don't call
7301 find_pc_sect_function.
7302 * linespec.c (create_sals_line_offset): Record the location's
7303 symbol in the sal.
7304 * linespec.c (convert_address_location_to_sals): Fill in sal's
7305 symbol with find_pc_sect_containing_function.
7306 * symtab.c (find_function_start_sal): Rename to ...
7307 (find_function_start_sal_1): ... this.
7308 (find_function_start_sal): Reimplement as wrapper around
7309 find_function_start_sal_1, and use
7310 find_pc_sect_containing_function to fill in the sal's symbol.
7311 (find_function_start_sal(symbol*, bool)): Adjust.
7312 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
7313 comments.
7314 (find_pc_sect_containing_function): Declare.
7315
7316 2018-06-29 Pedro Alves <palves@redhat.com>
7317
7318 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
7319 true if the the location has no symbol.
7320
7321 2018-06-28 Tom Tromey <tom@tromey.com>
7322
7323 * NEWS: Mention --enable-codesign.
7324 * silent-rules.mk (ECHO_SIGN): New variable.
7325 * configure.ac: Add --enable-codesign.
7326 * configure: Rebuild.
7327 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
7328 (gdb$(EXEEXT)): Optionally invoke codesign.
7329
7330 2018-06-28 Pedro Alves <palves@redhat.com>
7331
7332 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
7333 comments.
7334 (switch_to_thread_no_regs): Adjust comment.
7335 * infcmd.c (stop_pc): Delete.
7336 (post_create_inferior, info_program_command): Replace references
7337 to stop_pc with references to thread_info->suspend.stop_pc.
7338 * inferior.h (stop_pc): Delete declaration.
7339 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
7340 (handle_inferior_event_1, handle_signal_stop)
7341 (process_event_stop_test, keep_going_stepped_thread)
7342 (handle_step_into_function, handle_step_into_function_backward)
7343 (print_stop_location): Replace references to stop_pc with
7344 references to thread_info->suspend.stop_pc.
7345 (struct infcall_suspend_state) <stop_pc>: Delete field.
7346 (save_infcall_suspend_state, restore_infcall_suspend_state):
7347 Remove references to inf_stat->stop_pc.
7348 * linux-fork.c (fork_load_infrun_state): Likewise.
7349 * record-btrace.c (record_btrace_set_replay): Likewise.
7350 * record-full.c (record_full_goto_entry): Likewise.
7351 * remote.c (print_one_stopped_thread): Likewise.
7352 * target.c (target_resume): Extend comment.
7353 * thread.c (set_executing_thread): New.
7354 (set_executing): Use it.
7355 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
7356 Remove references to stop_pc.
7357
7358 2018-06-28 Pedro Alves <palves@redhat.com>
7359
7360 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
7361 Moving fetching stop_pc until after ecs->event_thread is refreshed.
7362
7363 2018-06-28 Tom Tromey <tom@tromey.com>
7364
7365 * coffread.c (coff_symfile_finish): Update.
7366 * xcoffread.c (xcoff_symfile_finish): Update.
7367 * elfread.c (elf_symfile_finish): Update.
7368 * symfile.h (dwarf2_free_objfile): Don't declare.
7369 * dwarf2read.c (_initialize_dwarf2_read): Use
7370 register_objfile_data_with_cleanup.
7371 (dwarf2_free_objfile): Now static. Change signature.
7372
7373 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
7374
7375 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
7376 option "-o" to add-symbol-file-load to add an offset to each
7377 section's load address.
7378 * symfile.c (set_objfile_default_section_offset): New function.
7379
7380 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
7381
7382 * symfile.c (add_symbol_file_command): Make sure that sections
7383 with the same name are sorted in the same order.
7384
7385 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
7386
7387 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
7388 require the second argument. If omitted, load sections at the
7389 addresses specified in the file.
7390
7391 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
7392
7393 * symfile.c (symbol_file_command, symbol_file_add_main_1)
7394 (_initialize_symfile): Add option "-o" to symbol-file to add an
7395 offset to each section of the symbol file.
7396
7397 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
7398
7399 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
7400
7401 2018-06-27 Tom Tromey <tom@tromey.com>
7402
7403 * stack.c (_initialize_stack): Update "func" help text.
7404
7405 2018-06-27 Tom Tromey <tom@tromey.com>
7406
7407 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
7408 std::vector.
7409 (unwind_infopy_str, pyuw_create_unwind_info)
7410 (unwind_infopy_add_saved_register, pyuw_sniffer)
7411 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
7412 Update.
7413 (struct saved_reg): Add constructor.
7414 <value>: Now a gdbpy_ref<>.
7415
7416 2018-06-27 Tom Tromey <tom@tromey.com>
7417
7418 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
7419
7420 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7421
7422 * gdb-gdb.py.in: Format using autopep8.
7423
7424 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7425
7426 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
7427 (type_lookup_function): Recognize CORE_ADDR values.
7428
7429 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7430
7431 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
7432 print tag_name.
7433
7434 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7435
7436 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
7437 <__lt__>: Add.
7438
7439 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7440
7441 * gdb-gdb.py: Move to...
7442 * gdb-gdb.py.in: ... here.
7443 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
7444 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
7445 dependencies.
7446 (distclean): Remove gdb-gdb.py when cleaning.
7447 (gdb-gdb.py, gdb-gdb.gdb): New rules.
7448 * configure: Re-generate.
7449
7450 2018-06-27 Pedro Alves <palves@redhat.com>
7451
7452 * proc-service.c (get_ps_regcache): New.
7453 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7454 (ps_lsetfpregs): Use it.
7455
7456 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
7457
7458 PR gdb/21695
7459 * dwarf2read.c (lnp_state_machine::check_line_address): Update
7460 declaration.
7461 (dwarf_decode_lines_1): Adjust.
7462
7463 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7464
7465 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
7466 override.
7467 <info_proc>: Likewise.
7468
7469 2018-06-26 Joel Brobecker <brobecker@adacore.com>
7470
7471 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
7472 to windows_fetch_one_register, and only handle the case of
7473 fetching one register. Move the code that reloads the context
7474 and iterates over all registers if R is negative to...
7475 (windows_nat_target::fetch_registers): ... here.
7476 (do_windows_store_inferior_registers): Rename to
7477 windows_store_one_register, and only handle the case of storing
7478 one register. Move the code that handles the case where r is
7479 negative to...
7480 (windows_nat_target::store_registers) ... here.
7481
7482 2018-06-26 Tom Tromey <tom@tromey.com>
7483
7484 PR rust/22574:
7485 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
7486 * rust-lang.c (rust_print_struct_def): Add podata parameter.
7487 Update.
7488 (rust_internal_print_type): Add podata parameter.
7489 (rust_print_type): Update.
7490
7491 2018-06-26 Tom Tromey <tom@tromey.com>
7492
7493 * typeprint.h (struct print_offset_data) <update, finish,
7494 maybe_print_hole>: New methods.
7495 <indentation>: New constant.
7496 * typeprint.c (print_offset_data::indentation): Define.
7497 (print_offset_data::maybe_print_hole, print_offset_data::update)
7498 (print_offset_data::finish): Move from c-typeprint.c and rename.
7499 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
7500 (print_spaces_filtered_with_print_options): Update.
7501 (c_print_type_union_field_offset, maybe_print_hole)
7502 (c_print_type_struct_field_offset): Move to typeprint.c and
7503 rename.
7504 (c_type_print_base_struct_union): Update.
7505
7506 2018-06-25 Pedro Alves <palves@redhat.com>
7507
7508 * gdbthread.h (thread_info_ref, delete_thread)
7509 (delete_thread_silent, first_thread_of_inferior)
7510 (any_thread_of_inferior, switch_to_thread)
7511 (enable_thread_stack_temporaries)
7512 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7513 (get_last_thread_stack_temporary)
7514 (value_in_thread_stack_temporaries, can_access_registers_thread):
7515 Spell out "struct thread_info" instead of just "thread_info".
7516 * inferior.h (notice_new_inferior): Likewise.
7517
7518 2018-06-25 Pedro Alves <palves@redhat.com>
7519
7520 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
7521 pass thread_info pointer to delete_thread.
7522 (windows_nat_target::detach): Pass inferior pointer to
7523 detach_inferior.
7524 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
7525 delete_thread.
7526 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
7527 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
7528 and pass a thread_info pointer to delete_thread.
7529 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
7530 pass thread_info pointer to delete_thread.
7531 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
7532 delete_thread_silent call.
7533 * procfs.c (procfs_target::detach): Pass inferior pointer to
7534 detach_inferior.
7535 (procfs_target::wait): Pass thread_info pointer to delete_thread.
7536 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
7537 delete_thread_silent call.
7538 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
7539 pass thread_info pointer to delete_thread.
7540 (windows_nat_target::detach): Pass inferior pointer to
7541 delete_inferior.
7542
7543 2018-06-22 Alan Hayward <alan.hayward@arm.com>
7544
7545 * regcache.c (readable_regcache::read_part): Fix asserts.
7546 (reg_buffer::raw_collect_part): New function.
7547 (regcache::write_part): Fix asserts.
7548 (reg_buffer::raw_supply_part): New function.
7549 (regcache::transfer_regset_register): New helper function.
7550 (regcache::transfer_regset): Call new functions.
7551 (regcache_supply_regset): Use gdb_byte*.
7552 (regcache::supply_regset): Likewise.
7553 (regcache_collect_regset): Likewise.
7554 (regcache::collect_regset): Likewise.
7555 * regcache.h (reg_buffer::raw_collect_part): New declaration.
7556 (reg_buffer::raw_supply_part): Likewise.
7557 (regcache::transfer_regset_register): Likewise.
7558 (regcache::transfer_regset): Use gdb_byte*.
7559
7560 2018-06-22 Alan Hayward <alan.hayward@arm.com>
7561
7562 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
7563
7564 2018-06-21 Pedro Alves <palves@redhat.com>
7565
7566 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
7567 instead of a ptid_t. All callers adjusted.
7568 * ada-tasks.c (ada_get_task_number): Likewise. All callers
7569 adjusted.
7570 (print_ada_task_info, display_current_task_id, task_command_1):
7571 Adjust.
7572 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
7573 inferior_thread.
7574 (breakpoint_kind): Adjust.
7575 (remove_breakpoints_pid): Rename to ...
7576 (remove_breakpoints_inf): ... this. Adjust to take an inferior
7577 pointer. All callers adjusted.
7578 (bpstat_clear_actions): Use inferior_thread.
7579 (get_bpstat_thread): New.
7580 (bpstat_do_actions): Use it.
7581 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
7582 to take a thread_info pointer. All callers adjusted.
7583 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
7584 (breakpoint_re_set_thread): Use inferior_thread.
7585 * breakpoint.h (struct inferior): Forward declare.
7586 (bpstat_stop_status): Update.
7587 (remove_breakpoints_pid): Delete.
7588 (remove_breakpoints_inf): New.
7589 * bsd-uthread.c (bsd_uthread_target::wait)
7590 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
7591 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
7592 (maint_btrace_packet_history_cmd)
7593 (maint_btrace_clear_packet_history_cmd): Adjust.
7594 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
7595 inferior_thread.
7596 * cli/cli-interp.c: Include "inferior.h".
7597 * common/refcounted-object.h (struct
7598 refcounted_object_ref_policy): New.
7599 * compile/compile-object-load.c: Include gdbthread.h.
7600 (store_regs): Use inferior_thread.
7601 * corelow.c (core_target::close): Use current_inferior.
7602 (core_target_open): Adjust to use first_thread_of_inferior and use
7603 the current inferior.
7604 * ctf.c (ctf_target::close): Adjust to use current_inferior.
7605 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
7606 <thread>: ... this new field. All references adjusted.
7607 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
7608 Take a thread_info pointer instead of a ptid_t.
7609 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
7610 (dummy_frame_discard, register_dummy_frame_dtor): Take a
7611 thread_info pointer instead of a ptid_t.
7612 * elfread.c: Include "inferior.h".
7613 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
7614 Use inferior_thread.
7615 * eval.c (evaluate_subexp): Likewise.
7616 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
7617 inferior_thread.
7618 * gdb_proc_service.h (struct thread_info): Forward declare.
7619 (struct ps_prochandle) <ptid>: Delete, replaced by ...
7620 <thread>: ... this new field. All references adjusted.
7621 * gdbarch.h, gdbarch.c: Regenerate.
7622 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
7623 'thread' parameter. All implementations and callers adjusted.
7624 * gdbthread.h (thread_info) <set_running>: New method.
7625 (delete_thread, delete_thread_silent): Take a thread_info pointer
7626 instead of a ptid.
7627 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
7628 (first_thread_of_process): Delete, replaced by ...
7629 (first_thread_of_inferior): ... this new function. All callers
7630 adjusted.
7631 (any_live_thread_of_process): Delete, replaced by ...
7632 (any_live_thread_of_inferior): ... this new function. All callers
7633 adjusted.
7634 (switch_to_thread, switch_to_no_thread): Declare.
7635 (is_executing): Delete.
7636 (enable_thread_stack_temporaries): Update comment.
7637 <enable_thread_stack_temporaries>: Take a thread_info pointer
7638 instead of a ptid_t. Incref the thread.
7639 <~enable_thread_stack_temporaries>: Decref the thread.
7640 <m_ptid>: Delete
7641 <m_thr>: New.
7642 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7643 (get_last_thread_stack_temporary)
7644 (value_in_thread_stack_temporaries, can_access_registers_thread):
7645 Take a thread_info pointer instead of a ptid_t. All callers
7646 adjusted.
7647 * infcall.c (get_call_return_value): Use inferior_thread.
7648 (run_inferior_call): Work with thread pointers instead of ptid_t.
7649 (call_function_by_hand_dummy): Work with thread pointers instead
7650 of ptid_t. Use thread_info_ref.
7651 * infcmd.c (proceed_thread_callback): Access thread's state
7652 directly.
7653 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
7654 access thread's state directly.
7655 (continue_command): Use inferior_thread.
7656 (info_program_command): Use find_thread_ptid and access thread
7657 state directly.
7658 (proceed_after_attach_callback): Use thread state directly.
7659 (notice_new_inferior): Take a thread_info pointer instead of a
7660 ptid_t. All callers adjusted.
7661 (exit_inferior): Take an inferior pointer instead of a pid. All
7662 callers adjusted.
7663 (exit_inferior_silent): New.
7664 (detach_inferior): Delete.
7665 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
7666 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
7667 (detach_inferior_command, kill_inferior_command): Use
7668 find_inferior_id instead of valid_gdb_inferior_id and
7669 gdb_inferior_id_to_pid.
7670 (inferior_command): Use inferior and thread pointers.
7671 * inferior.h (struct thread_info): Forward declare.
7672 (notice_new_inferior): Take a thread_info pointer instead of a
7673 ptid_t. All callers adjusted.
7674 (detach_inferior): Delete declaration.
7675 (exit_inferior, exit_inferior_silent): Take an inferior pointer
7676 instead of a pid. All callers adjusted.
7677 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
7678 (valid_gdb_inferior_id): Delete.
7679 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
7680 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
7681 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
7682 ...
7683 <inf>: ... this new field.
7684 <step_ptid>: Delete, replaced by ...
7685 <step_thread>: ... this new field.
7686 (get_displaced_stepping_state): Take an inferior pointer instead
7687 of a pid. All callers adjusted.
7688 (displaced_step_in_progress_any_inferior): Adjust.
7689 (displaced_step_in_progress_thread): Take a thread pointer instead
7690 of a ptid_t. All callers adjusted.
7691 (displaced_step_in_progress, add_displaced_stepping_state): Take
7692 an inferior pointer instead of a pid. All callers adjusted.
7693 (get_displaced_step_closure_by_addr): Adjust.
7694 (remove_displaced_stepping_state): Take an inferior pointer
7695 instead of a pid. All callers adjusted.
7696 (displaced_step_prepare_throw, displaced_step_prepare)
7697 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
7698 All callers adjusted.
7699 (start_step_over): Adjust.
7700 (infrun_thread_ptid_changed): Remove bit updating ptids in the
7701 displaced step queue.
7702 (do_target_resume): Adjust.
7703 (fetch_inferior_event): Use inferior_thread.
7704 (context_switch, get_inferior_stop_soon): Take an
7705 execution_control_state pointer instead of a ptid_t. All callers
7706 adjusted.
7707 (switch_to_thread_cleanup): Delete.
7708 (stop_all_threads): Use scoped_restore_current_thread.
7709 * inline-frame.c: Include "gdbthread.h".
7710 (inline_state) <inline_state>: Take a thread pointer instead of a
7711 ptid_t. All callers adjusted.
7712 <ptid>: Delete, replaced by ...
7713 <thread>: ... this new field.
7714 (find_inline_frame_state): Take a thread pointer instead of a
7715 ptid_t. All callers adjusted.
7716 (skip_inline_frames, step_into_inline_frame)
7717 (inline_skipped_frames, inline_skipped_symbol): Take a thread
7718 pointer instead of a ptid_t. All callers adjusted.
7719 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
7720 (inline_skipped_frames, inline_skipped_symbol): Likewise.
7721 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
7722 pointers directly.
7723 * linux-nat.c (get_detach_signal): Likewise.
7724 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
7725 (thread_db_notice_clone): Adjust.
7726 (thread_db_find_new_threads_silently)
7727 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
7728 a thread pointer instead of a ptid_t. All callers adjusted.
7729 * mi/mi-cmd-var.c: Include "inferior.h".
7730 (mi_cmd_var_update_iter): Update to use thread pointers.
7731 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
7732 inferior directly.
7733 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
7734 out to ...
7735 (mi_output_running): ... this new function.
7736 (mi_on_resume_1): Adjust to use it.
7737 (mi_user_selected_context_changed): Adjust to use inferior_thread.
7738 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
7739 directly.
7740 (interrupt_thread_callback): : Adjust to use thread and inferior
7741 pointers.
7742 * proc-service.c: Include "gdbthread.h".
7743 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
7744 * progspace-and-thread.c: Include "inferior.h".
7745 * progspace.c: Include "inferior.h".
7746 * python/py-exitedevent.c (create_exited_event_object): Adjust to
7747 hold a reference to an inferior_object.
7748 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
7749 inferior_thread.
7750 * python/py-inferior.c (struct inferior_object): Give the type a
7751 tag name instead of a typedef.
7752 (python_on_normal_stop): No need to check if the current thread is
7753 listed.
7754 (inferior_to_inferior_object): Change return type to
7755 inferior_object. All callers adjusted.
7756 (find_thread_object): Delete, bits factored out to ...
7757 (thread_to_thread_object): ... this new function.
7758 * python/py-infthread.c (create_thread_object): Use
7759 inferior_to_inferior_object.
7760 (thpy_is_stopped): Use thread pointer directly.
7761 (gdbpy_selected_thread): Use inferior_thread.
7762 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
7763 field, replaced with ...
7764 <thread>: ... this new field. All users adjusted.
7765 (btpy_insn_or_gap_new): Drop const.
7766 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
7767 callers adjusted.
7768 * python/py-record.c: Include "gdbthread.h".
7769 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7770 a ptid_t. All callers adjusted.
7771 (gdbpy_current_recording): Use inferior_thread.
7772 * python/py-record.h (recpy_record_object) <ptid>: Delete
7773 field, replaced with ...
7774 <thread>: ... this new field. All users adjusted.
7775 (recpy_element_object) <ptid>: Delete
7776 field, replaced with ...
7777 <thread>: ... this new field. All users adjusted.
7778 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7779 a ptid_t. All callers adjusted.
7780 * python/py-threadevent.c: Include "gdbthread.h".
7781 (get_event_thread): Use thread_to_thread_object.
7782 * python/python-internal.h (struct inferior_object): Forward
7783 declare.
7784 (find_thread_object, find_inferior_object): Delete declarations.
7785 (thread_to_thread_object, inferior_to_inferior_object): New
7786 declarations.
7787 * record-btrace.c: Include "inferior.h".
7788 (require_btrace_thread): Use inferior_thread.
7789 (record_btrace_frame_sniffer)
7790 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
7791 (get_thread_current_frame): Use scoped_restore_current_thread and
7792 switch_to_thread.
7793 (get_thread_current_frame): Use thread pointer directly.
7794 (record_btrace_replay_at_breakpoint): Use thread's inferior
7795 pointer directly.
7796 * record-full.c: Include "inferior.h".
7797 * regcache.c: Include "gdbthread.h".
7798 (get_thread_arch_regcache): Use the inferior's address space
7799 directly.
7800 (get_thread_regcache, registers_changed_thread): New.
7801 * regcache.h (get_thread_regcache(thread_info *thread)): New
7802 overload.
7803 (registers_changed_thread): New.
7804 (remote_target) <remote_detach_1>: Swap order of parameters.
7805 (remote_add_thread): <remote_add_thread>: Return the new thread.
7806 (get_remote_thread_info(ptid_t)): New overload.
7807 (remote_target::remote_notice_new_inferior): Use thread pointers
7808 directly.
7809 (remote_target::process_initial_stop_replies): Use
7810 thread_info::set_running.
7811 (remote_target::remote_detach_1, remote_target::detach)
7812 (extended_remote_target::detach): Adjust.
7813 * stack.c (frame_show_address): Use inferior_thread.
7814 * target-debug.h (target_debug_print_thread_info_pp): New.
7815 * target-delegates.c: Regenerate.
7816 * target.c (default_thread_address_space): Delete.
7817 (memory_xfer_partial_1): Use current_inferior.
7818 (target_detach): Use current_inferior.
7819 (target_thread_address_space): Delete.
7820 (generic_mourn_inferior): Use current_inferior.
7821 * target.h (struct target_ops) <thread_address_space>: Delete.
7822 (target_thread_address_space): Delete.
7823 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
7824 pointers directly.
7825 (delete_thread_1, delete_thread, delete_thread_silent): Take a
7826 thread pointer instead of a ptid_t. Adjust all callers.
7827 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
7828 (first_thread_of_process): Delete, replaced by ...
7829 (first_thread_of_inferior): ... this new function. All callers
7830 adjusted.
7831 (any_thread_of_process): Rename to ...
7832 (any_thread_of_inferior): ... this, and take an inferior pointer.
7833 (any_live_thread_of_process): Rename to ...
7834 (any_live_thread_of_inferior): ... this, and take an inferior
7835 pointer.
7836 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7837 (value_in_thread_stack_temporaries)
7838 (get_last_thread_stack_temporary): Take a thread pointer instead
7839 of a ptid_t. Adjust all callers.
7840 (thread_info::set_running): New.
7841 (validate_registers_access): Use inferior_thread.
7842 (can_access_registers_ptid): Rename to ...
7843 (can_access_registers_thread): ... this, and take a thread
7844 pointer.
7845 (print_thread_info_1): Adjust to compare thread pointers instead
7846 of ptids.
7847 (switch_to_no_thread, switch_to_thread): Make extern.
7848 (scoped_restore_current_thread::~scoped_restore_current_thread):
7849 Use m_thread pointer directly.
7850 (scoped_restore_current_thread::scoped_restore_current_thread):
7851 Use inferior_thread.
7852 (thread_command): Use thread pointer directly.
7853 (thread_num_make_value_helper): Use inferior_thread.
7854 * top.c (execute_command): Use inferior_thread.
7855 * tui/tui-interp.c: Include "inferior.h".
7856 * varobj.c (varobj_create): Use inferior_thread.
7857 (value_of_root_1): Use find_thread_global_id instead of
7858 global_thread_id_to_ptid.
7859
7860 2018-06-21 Alan Hayward <alan.hayward@arm.com>
7861
7862 * regcache.c (readable_regcache::read_part): Avoid memcpy when
7863 possible.
7864 (regcache::write_part): Likewise.
7865 (readable_regcache::cooked_read_part): Update comment.
7866 (readable_regcache::cooked_write_part): Likewise.
7867 * regcache.h: (readable_regcache::read_part): Likewise.
7868 (regcache::write_part): Likewise.
7869
7870 2018-06-21 Richard Bunt <richard.bunt@arm.com>
7871 Dirk Schubert <dirk.schubert@arm.com>
7872
7873 * aarch64-linux-nat.c (post_attach): New.
7874 (aarch64_linux_nat_target::post_attach): Override post_attach to
7875 record the number of hardware debug registers.
7876
7877 2018-06-20 Tom Tromey <tom@tromey.com>
7878
7879 * python/py-param.c (add_setshow_generic): Make parameters const.
7880 (parmpy_init): Update.
7881
7882 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
7883
7884 * regcache.h (regcache_cooked_read_ftype): Rename to...
7885 (register_read_ftype): ...this, change type to function_view.
7886 (class reg_buffer) <save>: Remove src parameter.
7887 (readonly_detached_regcache) <readonly_detached_regcache>: Make
7888 parameter non-const in first overload. Remove src parameter in
7889 second overload.
7890 * regcache.c (do_cooked_read): Remove.
7891 (readonly_detached_regcache::readonly_detached_regcache): Make
7892 parameter non-const, adjust call to other constructor.
7893 (reg_buffer::save): Remove src parameter.
7894 * frame.c (do_frame_register_read): Remove.
7895 (frame_save_as_regcache): Use lambda function.
7896 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
7897 parameter to ppu2spu_data *.
7898 (ppu2spu_sniffer): Use lambda function.
7899
7900 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
7901
7902 * record-full.c (record_full_target::insert_breakpoint): Remove
7903 "struct" keyword, add const.
7904
7905 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
7906
7907 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
7908 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
7909 * configure.ac: Remove AC_PREREQ, add missing quoting.
7910 * gnulib/configure.ac: Modernize usage of
7911 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
7912 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
7913 (AUTOMAKE_VERSION): Bump to 1.15.1.
7914 * configure: Re-generate.
7915 * config.in: Re-generate.
7916 * aclocal.m4: Re-generate.
7917 * gnulib/aclocal.m4: Re-generate.
7918 * gnulib/config.in: Re-generate.
7919 * gnulib/configure: Re-generate.
7920 * gnulib/import/Makefile.in: Re-generate.
7921
7922 2018-06-19 Pedro Alves <palves@redhat.com>
7923
7924 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
7925 (lookup_minimal_symbol_by_pc_section): ... here with
7926 gdb_assert_not_reached added.
7927
7928 2018-06-19 Pedro Alves <palves@redhat.com>
7929
7930 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
7931 parameter with a block parameter. Compare location's block symbol
7932 with the frame's block instead of addresses.
7933 (skip_inline_frames): Pass the current block instead of the
7934 frame's address. Break out as soon as we determine the frame
7935 should not be skipped.
7936
7937 2018-06-18 Tom Tromey <tom@tromey.com>
7938
7939 * solib-aix.c (solib_aix_get_section_offsets): Return
7940 unique_xmalloc_ptr.
7941 (solib_aix_solib_create_inferior_hook): Update.
7942
7943 2018-06-18 Tom Tromey <tom@tromey.com>
7944
7945 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
7946
7947 2018-06-18 Tom Tromey <tom@tromey.com>
7948
7949 * solib-frv.c (frv_relocate_main_executable): Use
7950 unique_xmalloc_ptr.
7951 * solib-dsbt.c (dsbt_relocate_main_executable): Use
7952 unique_xmalloc_ptr.
7953
7954 2018-06-18 Tom Tromey <tom@tromey.com>
7955
7956 * objfiles.h (inhibit_section_map_updates): Update.
7957 (resume_section_map_updates, resume_section_map_updates_cleanup):
7958 Remove.
7959 * solib-svr4.c (svr4_handle_solib_event): Update.
7960 * objfiles.c (inhibit_section_map_updates): Return
7961 scoped_restore_tmpl<int>.
7962 (resume_section_map_updates, resume_section_map_updates_cleanup):
7963 Remove.
7964
7965 2018-06-18 Tom Tromey <tom@tromey.com>
7966
7967 * valprint.h (read_string): Update.
7968 * valprint.c (read_string): Change type of "buffer".
7969 (val_print_string): Update.
7970 * python/py-value.c (valpy_string): Update.
7971 * language.h (struct language_defn) <la_get_string>: Change
7972 type of "buffer".
7973 (default_get_string, c_get_string): Update.
7974 * language.c (default_get_string): Change type of "buffer".
7975 * guile/scm-value.c (gdbscm_value_to_string): Update.
7976 * c-lang.c (c_get_string): Change type of "buffer".
7977
7978 2018-06-18 Tom Tromey <tom@tromey.com>
7979
7980 * ser-mingw.c (struct pipe_state_destroyer): New.
7981 (pipe_state_up): New typedef.
7982 (cleanup_pipe_state): Remove.
7983 (pipe_windows_open): Use pipe_state_up. Don't release argv.
7984
7985 2018-06-18 Tom Tromey <tom@tromey.com>
7986
7987 * rust-lang.h (rust_yyerror): Don't declare.
7988 * rust-lang.c (rust_language_defn): Update.
7989 * rust-exp.y (yyerror): Now static.
7990 * parse.c (parse_exp_in_context_1): Update.
7991 * p-lang.h (p_yyerror): Don't declare.
7992 * p-lang.c (p_language_defn): Update.
7993 * p-exp.y (yyerror): Now static.
7994 * opencl-lang.c (opencl_language_defn): Update.
7995 * objc-lang.c (objc_language_defn): Update.
7996 * m2-lang.h (m2_yyerror): Don't declare.
7997 * m2-lang.c (m2_language_defn): Update.
7998 * m2-exp.y (yyerror): Now static.
7999 * language.h (struct language_defn) <la_error>: Remove.
8000 * language.c (unk_lang_error): Remove.
8001 (unknown_language_defn, auto_language_defn): Remove.
8002 * go-lang.h (go_yyerror): Don't declare.
8003 * go-lang.c (go_language_defn): Update.
8004 * go-exp.y (yyerror): Now static.
8005 * f-lang.h (f_yyerror): Don't declare.
8006 * f-lang.c (f_language_defn): Update.
8007 * f-exp.y (yyerror): Now static.
8008 * d-lang.h (d_yyerror): Don't declare.
8009 * d-lang.c (d_language_defn): Update.
8010 * d-exp.y (yyerror): Now static.
8011 * c-lang.h (c_yyerror): Don't declare.
8012 * c-lang.c (c_language_defn, cplus_language_defn)
8013 (asm_language_defn, minimal_language_defn): Update.
8014 * c-exp.y (yyerror): Now static.
8015 * ada-lang.h (ada_yyerror): Don't declare.
8016 * ada-lang.c (ada_language_defn): Update.
8017 * ada-exp.y (yyerror): Now static.
8018
8019 2018-06-18 Alan Hayward <alan.hayward@arm.com>
8020
8021 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
8022 (store_sveregs_to_thread): Likewise.
8023 (aarch64_linux_fetch_inferior_registers): Check for SVE.
8024 (aarch64_linux_store_inferior_registers): Likewise.
8025 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
8026 function.
8027 (aarch64_sve_regs_copy_to_regcache): Likewise.
8028 (aarch64_sve_regs_copy_from_regcache): Likewise.
8029 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
8030 declaration.
8031 (aarch64_sve_regs_copy_to_regcache): Likewise.
8032 (aarch64_sve_regs_copy_from_regcache): Likewise.
8033 (sve_context): Structure from Linux headers.
8034 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
8035 (SVE_SIG_ZREG_SIZE): Likewise.
8036 (SVE_SIG_PREG_SIZE): Likewise.
8037 (SVE_SIG_FFR_SIZE): Likewise.
8038 (SVE_SIG_REGS_OFFSET): Likewise.
8039 (SVE_SIG_ZREGS_OFFSET): Likewise.
8040 (SVE_SIG_ZREG_OFFSET): Likewise.
8041 (SVE_SIG_ZREGS_SIZE): Likewise.
8042 (SVE_SIG_PREGS_OFFSET): Likewise.
8043 (SVE_SIG_PREG_OFFSET): Likewise.
8044 (SVE_SIG_PREGS_SIZE): Likewise.
8045 (SVE_SIG_FFR_OFFSET): Likewise.
8046 (SVE_SIG_REGS_SIZE): Likewise.
8047 (SVE_SIG_CONTEXT_SIZE): Likewise.
8048 (SVE_PT_REGS_MASK): Likewise.
8049 (SVE_PT_REGS_FPSIMD): Likewise.
8050 (SVE_PT_REGS_SVE): Likewise.
8051 (SVE_PT_VL_INHERIT): Likewise.
8052 (SVE_PT_VL_ONEXEC): Likewise.
8053 (SVE_PT_REGS_OFFSET): Likewise.
8054 (SVE_PT_FPSIMD_OFFSET): Likewise.
8055 (SVE_PT_FPSIMD_SIZE): Likewise.
8056 (SVE_PT_SVE_ZREG_SIZE): Likewise.
8057 (SVE_PT_SVE_PREG_SIZE): Likewise.
8058 (SVE_PT_SVE_FFR_SIZE): Likewise.
8059 (SVE_PT_SVE_FPSR_SIZE): Likewise.
8060 (SVE_PT_SVE_FPCR_SIZE): Likewise.
8061 (__SVE_SIG_TO_PT): Likewise.
8062 (SVE_PT_SVE_OFFSET): Likewise.
8063 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
8064 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
8065 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
8066 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
8067 (SVE_PT_SVE_PREG_OFFSET): Likewise.
8068 (SVE_PT_SVE_PREGS_SIZE): Likewise.
8069 (SVE_PT_SVE_FFR_OFFSET): Likewise.
8070 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
8071 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
8072 (SVE_PT_SVE_SIZE): Likewise.
8073 (SVE_PT_SIZE): Likewise.
8074 (HAS_SVE_STATE): New define.
8075
8076 2018-06-18 Alan Hayward <alan.hayward@arm.com>
8077
8078 * nat/aarch64-sve-linux-sigcontext.h: New file.
8079 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
8080 new files.
8081 (SVE_VQ_MIN): Likewise.
8082 (SVE_VQ_MAX): Likewise.
8083 (SVE_VL_MIN): Likewise.
8084 (SVE_VL_MAX): Likewise.
8085 (SVE_NUM_ZREGS): Likewise.
8086 (SVE_NUM_PREGS): Likewise.
8087 (sve_vl_valid): Likewise.
8088 (struct user_sve_header): Likewise.
8089
8090 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8091 Richard Bunt <Richard.Bunt@arm.com>
8092
8093 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
8094 was requested by GDB.
8095
8096 2018-06-15 Tom de Vries <tdevries@suse.de>
8097
8098 * MAINTAINERS (Write After Approval): Add Tom de Vries.
8099
8100 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
8101
8102 * gnulib/update-gnulib.sh: Print expected versions of
8103 autoconf/aclocal.
8104
8105 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
8106
8107 * arch-utils.c (default_type_align): Use type_length_units.
8108 * gdbtypes.c (type_align): Use type_length_units.
8109
8110 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8111
8112 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
8113 of 'define' command.
8114
8115 2018-06-14 Tom de Vries <tdevries@suse.de>
8116
8117 PR cli/22573
8118 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
8119 get_no_prettyformat_print_options.
8120
8121 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
8122
8123 * sparc-nat.h: Include target.h.
8124 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
8125 <fetch_registers>: Remove this argument in function call.
8126 <store_registers>: Remove this argument in function call, remove
8127 extra semicolon.
8128 <low_forget_process>: Call sparc64_forget_process instead of
8129 sparc_forget_process.
8130
8131 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8132
8133 * procfs.c (_initialize_procfs): Use add_inf_child_target.
8134 (procfs_target::make_corefile_notes): Adjust to new
8135 target_read_alloc return type.
8136
8137 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8138 Stephen Roberts <stephen.roberts@arm.com>
8139
8140 PR gdb/22882
8141 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
8142 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
8143 Move should_notify_stop local into more inner scope.
8144
8145 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8146 Stephen Roberts <stephen.roberts@arm.com>
8147
8148 PR gdb/22882
8149 * infrun.c (resume_1): Add call to mark_async_event_handler.
8150
8151 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8152
8153 * infrun.c (do_target_wait): Change old version of $pc printed.
8154
8155 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
8156
8157 * dwarf2read.c (read_index_from_section): Rename to...
8158 (read_gdb_index_from_section): ... this, update all callers.
8159 (dwarf2_read_index): Rename to...
8160 (dwarf2_read_gdb_index): ... this, update all callers.
8161
8162 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
8163
8164 * hppa-linux-nat.c
8165 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
8166 hppa_linux_nat_target::fetch_registers.
8167
8168 2018-06-11 Alan Hayward <alan.hayward@arm.com>
8169
8170 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
8171 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
8172 (AARCH64_DWARF_SVE_FFR): Likewise.
8173 (AARCH64_DWARF_SVE_P0): Likewise.
8174 (AARCH64_DWARF_SVE_Z0): Likewise.
8175
8176 2018-06-11 Alan Hayward <alan.hayward@arm.com>
8177
8178 * common/common-regcache.h (raw_compare): New function.
8179 * regcache.c (regcache::raw_compare): Likewise.
8180 * regcache.h (regcache::raw_compare): New declaration.
8181
8182 2018-06-11 Alan Hayward <alan.hayward@arm.com>
8183
8184 * common/common-regcache.h (reg_buffer_common): New structure.
8185 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
8186 (reg_buffer::raw_supply): Likewise.
8187 (reg_buffer::raw_supply_integer): Likewise.
8188 (reg_buffer::raw_supply_zeroed): Likewise.
8189 (reg_buffer::raw_collect): Likewise.
8190 (reg_buffer::raw_collect_integer): Likewise.
8191 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
8192 (reg_buffer::raw_supply): Likewise.
8193 (reg_buffer::raw_supply_integer): Likewise.
8194 (reg_buffer::raw_supply_zeroed): Likewise.
8195 (reg_buffer::raw_collect): Likewise.
8196 (reg_buffer::raw_collect_integer): Likewise.
8197
8198 2018-06-10 Tom Tromey <tom@tromey.com>
8199
8200 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
8201 (class remote_state) <stop_reply_queue>: Now std::vector.
8202 (remote_state::~remote_state)
8203 (remote_target::stop_reply_queue_length): Update.
8204 (struct queue_iter_param, remove_child_of_pending_fork)
8205 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
8206 (check_pending_event_prevents_wildcard_vcont_callback)
8207 (remove_stop_reply_for_inferior)
8208 (remove_stop_reply_of_remote_state)
8209 (remote_notif_remove_once_on_match)
8210 (stop_reply_match_ptid_and_ws)
8211 (remote_kill_child_of_pending_fork): Remove.
8212 (remote_target::remove_new_fork_children)
8213 (remote_target::check_pending_events_prevent_wildcard_vcont)
8214 (remote_target::discard_pending_stop_replies)
8215 (remote_target::discard_pending_stop_replies_in_queue)
8216 (remote_target::remote_notif_remove_queued_reply)
8217 (remote_target::queued_stop_reply)
8218 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
8219 (remote_target::wait, remote_target::kill_new_fork_children)
8220 (remote_target::async): Update.
8221
8222 2018-06-10 Tom Tromey <tom@tromey.com>
8223
8224 * record-full.c (record_full_arch_list_cleanups): Remove.
8225 (record_full_message): Use try/catch.
8226 (record_full_wait_cleanups): Remove.
8227 (record_full_wait_1): Use try/catch.
8228 (record_full_restore): Likewise.
8229
8230 2018-06-10 Tom Tromey <tom@tromey.com>
8231
8232 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
8233 declare VEC. Add constructor.
8234 <in_target_beneath>: Now bool.
8235 (record_full_breakpoints): Now a std::vector, static.
8236 (record_full_sync_record_breakpoints)
8237 (record_full_init_record_breakpoints)
8238 (record_full_target::insert_breakpoint)
8239 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
8240
8241 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8242
8243 * dwarf2read.c (process_cu_includes): Remove struct keyword.
8244 * serial.c (serial_interface_lookup): Remove struct keyword.
8245
8246 2018-06-10 Tom Tromey <tom@tromey.com>
8247
8248 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
8249 method.
8250 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
8251 a method.
8252 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
8253 method.
8254 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
8255 "beneath" as a method.
8256 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
8257 Use "beneath" as a method.
8258
8259 2018-06-10 Tom Tromey <tom@tromey.com>
8260
8261 * tracefile.c (struct trace_file_writer_deleter): New.
8262 <operator()>: Rename from trace_file_writer_xfree.
8263 (trace_file_writer_up): New typedef.
8264 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
8265
8266 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
8267
8268 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
8269 <m_registers, m_register_status>: Change type to
8270 std::unique_ptr.
8271 * regcache.c (reg_buffer::reg_buffer): Use new instead of
8272 XCNEWVEC.
8273
8274 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
8275
8276 * common/common-regcache.h (enum register_status): Add
8277 underlying type "signed char".
8278 * regcache.h (reg_buffer) <m_register_status>: Change type to
8279 register_status *.
8280 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
8281 register_status instead of signed char.
8282 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
8283 (reg_buffer::get_register_status): Remove cast.
8284 (readable_regcache::raw_read): Remove cast.
8285 (readable_regcache::cooked_read): Remove cast.
8286
8287 2018-06-09 Tom Tromey <tom@tromey.com>
8288
8289 * source.c (reverse_search_command, forward_search_command): Use
8290 scoped_fd.
8291
8292 2018-06-09 Tom Tromey <tom@tromey.com>
8293
8294 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
8295 (serial_ops_list): Now static, std::vector.
8296 (serial_interface_lookup, serial_add_interface): Update.
8297
8298 2018-06-09 Tom Tromey <tom@tromey.com>
8299
8300 * dwarf2read.c (process_cu_includes): Update.
8301 (process_full_comp_unit): Update.
8302 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
8303 std::vector.
8304
8305 2018-06-08 Paul Koning <paul_koning@dell.com>
8306
8307 PR gdb/23252
8308
8309 * python/python.c (do_start_initialization):
8310 Avoid call to internal Python API.
8311 (init__gdb_module): New function.
8312
8313 2018-06-08 Gary Benson <gbenson@redhat.com>
8314
8315 * linux-thread-db.c (valprint.h): New include.
8316 (struct check_thread_db_info): New structure.
8317 (check_thread_db_on_load, tdb_testinfo): New static globals.
8318 (check_thread_db, check_thread_db_callback): New functions.
8319 (try_thread_db_load_1): Run integrity checks if requested.
8320 (maintenance_check_libthread_db): New function.
8321 (_initialize_thread_db): Register "maint check libthread-db"
8322 and "maint set/show check-libthread-db".
8323 * NEWS: Mention the above new commands.
8324
8325 2018-06-08 Tom Tromey <tom@tromey.com>
8326
8327 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
8328 now a method.
8329
8330 2018-06-08 Tom Tromey <tom@tromey.com>
8331
8332 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
8333
8334 2018-06-08 Tom Tromey <tom@tromey.com>
8335
8336 * common/btrace-common.h (struct btrace_data): Add constructor,
8337 destructor, move assignment operator.
8338 <empty, clear, fini>: New methods.
8339 <format>: Initialize.
8340 (btrace_data_init, btrace_data_fini, btrace_data_clear)
8341 (btrace_data_empty): Don't declare.
8342 * common/btrace-common.c (btrace_data_init): Remove.
8343 (btrace_data::fini): Rename from btrace_data_fini.
8344 (btrace_data::empty): Rename from btrace_data_empty.
8345 (btrace_data::clear): Rename from btrace_data_clear. Return
8346 bool.
8347 * btrace.h (make_cleanup_btrace_data): Don't declare.
8348 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
8349 (parse_xml_btrace): Update.
8350 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
8351 (maint_btrace_clear_packet_history_cmd): Update.
8352
8353 2018-06-07 Pedro Alves <palves@redhat.com>
8354
8355 * target.h (target_ops) <beneath>: Now a method. All references
8356 updated.
8357 (class target_stack): New.
8358 * target.c (g_target_stack): New.
8359 (g_current_top_target): Delete.
8360 (current_top_target): Get the top target out of g_target_stack.
8361 (target_stack::push, target_stack::unpush): New.
8362 (push_target, unpush_target): Reimplement.
8363 (target_is_pushed): Reimplement in terms of g_target_stack.
8364 (target_ops::beneath, target_stack::find_beneath): New.
8365
8366 2018-06-07 Pedro Alves <palves@redhat.com>
8367
8368 * target.h (find_target_beneath): Delete declaration.
8369 * target.c (find_target_beneath): Delete definition.
8370 * aix-thread.c: All callers of find_target_beneath adjusted to
8371 call target_ops::beneath instead.
8372 * bsd-uthread.c: Likewise.
8373 * linux-thread-db.c: Likewise.
8374 * ravenscar-thread.c: Likewise.
8375 * sol-thread.c: Likewise.
8376 * spu-multiarch.c: Likewise.
8377
8378 2018-06-07 Pedro Alves <palves@redhat.com>
8379
8380 * target.h (target_ops) <beneath>: Now a method. All references
8381 updated.
8382 (target_ops) <m_beneath>: New.
8383 * target.c (target_ops::beneath): New.
8384 * corelow.c: Adjust all references to target_ops::beneath.
8385 * linux-thread-db.c: Likewise.
8386 * make-target-delegates: Likewise.
8387 * record-btrace.c: Likewise.
8388 * record-full.c: Likewise.
8389 * remote.c: Likewise.
8390 * target.c: Likewise.
8391 * target-delegates.c: Regenerate.
8392
8393 2018-06-07 Pedro Alves <palves@redhat.com>
8394
8395 * target.h (target_stack): Delete.
8396 (current_top_target): Declare function.
8397 * target.c (target_stack): Delete.
8398 (g_current_top_target): New.
8399 (current_top_target): New function.
8400 * auxv.c: Use current_top_target instead of target_stack
8401 throughout.
8402 * avr-tdep.c: Likewise.
8403 * breakpoint.c: Likewise.
8404 * corefile.c: Likewise.
8405 * elfread.c: Likewise.
8406 * eval.c: Likewise.
8407 * exceptions.c: Likewise.
8408 * frame.c: Likewise.
8409 * gdbarch-selftests.c: Likewise.
8410 * gnu-v3-abi.c: Likewise.
8411 * ia64-tdep.c: Likewise.
8412 * ia64-vms-tdep.c: Likewise.
8413 * infcall.c: Likewise.
8414 * infcmd.c: Likewise.
8415 * infrun.c: Likewise.
8416 * linespec.c: Likewise.
8417 * linux-tdep.c: Likewise.
8418 * minsyms.c: Likewise.
8419 * ppc-linux-nat.c: Likewise.
8420 * ppc-linux-tdep.c: Likewise.
8421 * procfs.c: Likewise.
8422 * regcache.c: Likewise.
8423 * remote.c: Likewise.
8424 * rs6000-tdep.c: Likewise.
8425 * s390-linux-nat.c: Likewise.
8426 * s390-tdep.c: Likewise.
8427 * solib-aix.c: Likewise.
8428 * solib-darwin.c: Likewise.
8429 * solib-dsbt.c: Likewise.
8430 * solib-spu.c: Likewise.
8431 * solib-svr4.c: Likewise.
8432 * solib-target.c: Likewise.
8433 * sparc-tdep.c: Likewise.
8434 * sparc64-tdep.c: Likewise.
8435 * spu-tdep.c: Likewise.
8436 * symfile.c: Likewise.
8437 * symtab.c: Likewise.
8438 * target-descriptions.c: Likewise.
8439 * target-memory.c: Likewise.
8440 * target.c: Likewise.
8441 * target.h: Likewise.
8442 * tracefile-tfile.c: Likewise.
8443 * tracepoint.c: Likewise.
8444 * valops.c: Likewise.
8445 * valprint.c: Likewise.
8446 * value.c: Likewise.
8447 * windows-tdep.c: Likewise.
8448 * mi/mi-main.c: Likewise.
8449
8450 2018-06-07 Tom Tromey <tom@tromey.com>
8451
8452 * valprint.h (build_address_symbolic): Declare.
8453 * printcmd.c (print_address_symbolic): Update.
8454 (build_address_symbolic): Change "name" and "filename" to
8455 std::string.
8456 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
8457 Update.
8458 * defs.h (build_address_symbolic): Remove declaration.
8459
8460 2018-06-07 Alan Hayward <alan.hayward@arm.com>
8461
8462 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
8463 (aarch64_vnv_type): Add function.
8464 (aarch64_pseudo_register_name): Add V regs for SVE.
8465 (aarch64_pseudo_register_type): Likewise.
8466 (aarch64_pseudo_register_reggroup_p): Likewise.
8467 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
8468 (aarch64_pseudo_read_value): Add V regs for SVE.
8469 (aarch64_pseudo_write_2): Use V0 offset for SVE
8470 (aarch64_pseudo_write): Add V regs for SVE.
8471 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
8472
8473 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
8474
8475 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
8476 (sve_vl_from_vq): Likewise.
8477
8478 2018-06-05 Tom Tromey <tom@tromey.com>
8479
8480 * cli/cli-cmds.c (show_version): Update.
8481 * top.c (print_gdb_version): Add "interactive" parameter.
8482 Update.
8483 * main.c (captured_main_1): Update.
8484 * top.h (print_gdb_version): Add "interactive" parameter and a
8485 comment.
8486
8487 2018-06-05 David Malcolm <dmalcolm@redhat.com>
8488
8489 * common/enum-flags.h: Add trailing semicolon to example in
8490 comment.
8491
8492 2018-06-05 Tom Tromey <tom@tromey.com>
8493
8494 PR cli/12326:
8495 * NEWS: Add entry about pager.
8496 * utils.c (pagination_disabled_for_command): New global.
8497 (prompt_for_continue): Allow "c" response to prompt.
8498 (reinitialize_more_filter): Clear
8499 pagination_disabled_for_command.
8500 (fputs_maybe_filtered): Check pagination_disabled_for_command.
8501
8502 2018-06-04 Tom Tromey <tom@tromey.com>
8503
8504 * ada-lang.h (ada_lookup_symbol_list): Update.
8505 * ada-lang.c (resolve_subexp): Update.
8506 (symbols_are_identical_enums): Change type of syms. Remove nsyms
8507 parameter.
8508 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
8509 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
8510 results parameter to std::vector.
8511 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
8512 Update.
8513 * ada-exp.y (block_lookup): Update.
8514 (select_possible_type_sym): Change type of syms. Remove nsyms
8515 parameter.
8516 (write_var_or_type, write_name_assoc): Update.
8517
8518 2018-06-04 Joel Brobecker <brobecker@adacore.com>
8519
8520 * windows-nat.c (windows_nat_target::xfer_partial): Return
8521 TARGET_XFER_E_IO if we need to delegate to the target beneath
8522 but BENEATH is NULL.
8523
8524 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
8525
8526 * Makefile.in (config.status): Add configure.nat as a
8527 dependency.
8528
8529 2018-06-04 Tom Tromey <tom@tromey.com>
8530
8531 * cp-name-parser.y (cpname_state): Add method declarations.
8532 (HANDLE_QUAL): Update.
8533 (cpname_state::d_grab, cpname_state::fill_comp)
8534 (cpname_state::make_operator, cpname_state::make_dtor)
8535 (cpname_state::make_builtin_type, cpname_state::make_name)
8536 (cpname_state::d_qualify, cpname_state::d_int_type)
8537 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
8538 (%union): Move earlier.
8539
8540 2018-06-04 Alan Hayward <alan.hayward@arm.com>
8541
8542 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
8543
8544 2018-06-04 Alan Hayward <alan.hayward@arm.com>
8545
8546 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
8547 (aarch64_pseudo_write_1): Likewise.
8548 (aarch64_pseudo_read_value): Use helper.
8549 (aarch64_pseudo_write): Likewise.
8550
8551 2018-06-04 Pedro Alves <palves@redhat.com>
8552
8553 * darwin-nat.c (darwin_ops): Delete.
8554 (darwin_attach_pid): Use get_native_target.
8555
8556 2018-06-04 Alan Hayward <alan.hayward@arm.com>
8557
8558 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
8559 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
8560
8561 2018-06-04 Alan Hayward <alan.hayward@arm.com>
8562
8563 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
8564 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
8565 (aarch64_gdbarch_init): Check for SVE.
8566 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
8567
8568 2018-06-04 Alan Hayward <alan.hayward@arm.com>
8569
8570 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
8571 * aarch64-tdep.h (aarch64_read_description): Likewise.
8572 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8573 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8574 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
8575 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
8576 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
8577
8578 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
8579
8580 * value.c (value_fetch_lazy_bitfield): New.
8581 (value_fetch_lazy_memory): New.
8582 (value_fetch_lazy_register): New.
8583 (value_fetch_lazy): Factor out to smaller functions.
8584
8585 2018-06-01 Tom Tromey <tom@tromey.com>
8586
8587 * cp-name-parser.y (backslashable, represented): Now const.
8588
8589 2018-06-01 Tom Tromey <tom@tromey.com>
8590
8591 * cp-name-parser.y: Include parser-defs.h.
8592 (parser_fprintf): Remove declaration.
8593
8594 2018-06-01 Tom Tromey <tom@tromey.com>
8595
8596 * cp-name-parser.y: Use %pure-parser, %lex-param, and
8597 %parse-param.
8598 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
8599 (global_result): Remove globals.
8600 (struct cpname_state): New.
8601 (yyparse): Don't declare.
8602 (yylex, yyerror): Move declarations after %union.
8603 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
8604 (make_name): Add state parameter.
8605 Update all callers.
8606 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
8607 parameter.
8608 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
8609 Update.
8610 (yylex): Add lvalp, state parameters.
8611 (yyerror): Add state parameter.
8612 (cp_demangled_name_to_comp): Update.
8613
8614 2018-06-01 Tom Tromey <tom@tromey.com>
8615
8616 * cp-name-parser.y (parser_fprintf): Declare.
8617 (GDB_YY_REMAP_PREFIX): Define.
8618 Include yy-remap.h. Don't redefine yy* identifiers.
8619
8620 2018-06-01 Tom Tromey <tom@tromey.com>
8621
8622 * python/py-type.c (typy_legacy_template_argument): Update.
8623 * cp-support.h (cp_demangled_name_to_comp): Update.
8624 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
8625 parameter to be a "std::string *".
8626 (main): Update.
8627
8628 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
8629
8630 * ada-lex.l: Include "diagnostics.h" instead of
8631 "common/diagnostics.h".
8632 * unittests/environ-selftests.c: Likewise.
8633 * common/diagnostics.h: Moved to ../include.
8634
8635 2018-06-01 Joel Brobecker <brobecker@adacore.com>
8636
8637 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
8638 to language_mode_manual while calling breakpoint_re_set_one.
8639
8640 2018-06-01 Tom Tromey <tom@tromey.com>
8641
8642 * valops.c (value_cast_structs, destructor_name_p): Update.
8643 * symtab.c (gdb_mangle_name): Update.
8644 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
8645 Update.
8646 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
8647 (pascal_object_print_value_fields, pascal_object_print_value):
8648 Update.
8649 * p-typeprint.c (pascal_type_print_derivation_info): Update.
8650 * linespec.c (find_methods): Update.
8651 * gdbtypes.h (type_name_no_tag): Remove.
8652 (type_name_or_error): Rename from type_name_no_tag_or_error.
8653 * gdbtypes.c (type_name_no_tag): Remove.
8654 (type_name_or_error): Rename from type_name_no_tag_or_error.
8655 (lookup_struct_elt_type, check_typedef): Update.
8656 * expprint.c (print_subexp_standard): Update.
8657 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
8658 * d-namespace.c (d_lookup_nested_symbol): Update.
8659 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
8660 (cp_print_class_member): Update.
8661 * cp-namespace.c (cp_lookup_nested_symbol): Update.
8662 * completer.c (add_struct_fields): Update.
8663 * c-typeprint.c (cp_type_print_derivation_info)
8664 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
8665 Update.
8666 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
8667 (ada_prefer_type, ada_is_exception_sym): Update.
8668
8669 2018-06-01 Tom Tromey <tom@tromey.com>
8670
8671 * valops.c (enum_constant_from_type, value_namespace_elt)
8672 (value_maybe_namespace_elt): Update.
8673 * valarith.c (find_size_for_pointer_math): Update.
8674 * target-descriptions.c (make_gdb_type): Update.
8675 * symmisc.c (print_symbol): Update.
8676 * stabsread.c (define_symbol, read_type)
8677 (complain_about_struct_wipeout, add_undefined_type)
8678 (cleanup_undefined_types_1): Update.
8679 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
8680 (rust_range_type_p, val_print_struct, rust_print_struct_def)
8681 (rust_internal_print_type, rust_composite_type)
8682 (rust_evaluate_funcall, rust_evaluate_subexp)
8683 (rust_inclusive_range_type_p): Update.
8684 * python/py-type.c (typy_get_tag): Update.
8685 * p-typeprint.c (pascal_type_print_base): Update.
8686 * mdebugread.c (parse_symbol, parse_type): Update.
8687 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
8688 Update.
8689 * guile/scm-type.c (gdbscm_type_tag): Update.
8690 * go-lang.c (sixg_string_p): Update.
8691 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
8692 Update.
8693 * gdbtypes.h (struct main_type) <tag_name>: Remove.
8694 (TYPE_TAG_NAME): Remove.
8695 * gdbtypes.c (type_name_no_tag): Simplify.
8696 (check_typedef, check_types_equal, recursive_dump_type)
8697 (copy_type_recursive, arch_composite_type): Update.
8698 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
8699 in summary mode when needed.
8700 * eval.c (evaluate_funcall): Update.
8701 * dwarf2read.c (fixup_go_packaging, read_structure_type)
8702 (process_structure_scope, read_enumeration_type)
8703 (read_namespace_type, read_module_type, determine_prefix): Update.
8704 * cp-support.c (inspect_type): Update.
8705 * coffread.c (process_coff_symbol, decode_base_type): Update.
8706 * c-varobj.c (c_is_path_expr_parent): Update.
8707 * c-typeprint.c (c_type_print_base_struct_union): Update.
8708 (c_type_print_base_1): Update. Print struct/class/union/enum in
8709 summary when using C language.
8710 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
8711 (gen_maybe_namespace_elt): Update.
8712 * ada-lang.c (ada_type_name): Simplify.
8713 (empty_record, ada_template_to_fixed_record_type_1)
8714 (template_to_static_fixed_type)
8715 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
8716
8717 2018-06-01 Tom Tromey <tom@tromey.com>
8718
8719 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
8720 c_print_type.
8721 * c-typeprint.c (c_print_type_1): Add "language" parameter.
8722 (c_print_type): Update.
8723 (c_print_type): New overload.
8724 (c_type_print_varspec_prefix, c_type_print_args)
8725 (c_type_print_varspec_suffix, c_print_type_no_offsets)
8726 (c_type_print_base_struct_union, c_type_print_base_1)
8727 (cp_type_print_method_args): Add "language" parameter.
8728 (c_type_print_base): Update.
8729 * c-lang.h (c_print_type): Add new overload.
8730
8731 2018-06-01 Tom Tromey <tom@tromey.com>
8732
8733 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
8734 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
8735
8736 2018-06-01 Alan Hayward <alan.hayward@arm.com>
8737
8738 * aarch64-tdep.c (aarch64_sve_register_names): New const
8739 var.
8740 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
8741 (AARCH64_SVE_Z_REGS_NUM): New define.
8742 (AARCH64_SVE_P_REGS_NUM): Likewise.
8743 (AARCH64_SVE_NUM_REGS): Likewise.
8744
8745 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
8746
8747 * nat/linux-ptrace.h [__alpha__]
8748 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
8749 definitions.
8750
8751 2018-05-31 Maciej W. Rozycki <macro@mips.com>
8752
8753 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
8754 the endianness selected.
8755 * NEWS: Document `set endian auto' mode operation update.
8756
8757 2018-05-31 Alan Hayward <alan.hayward@arm.com>
8758
8759 * Makefile.in: Add new header.
8760 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
8761 (sve_vl_from_vg): Likewise.
8762 (sve_vq_from_vl): Likewise.
8763 (sve_vl_from_vq): Likewise.
8764 (sve_vq_from_vg): Likewise.
8765 (sve_vg_from_vq): Likewise.
8766 * configure.nat: Add new c file.
8767 * nat/aarch64-sve-linux-ptrace.c: New file.
8768 * nat/aarch64-sve-linux-ptrace.h: New file.
8769
8770 2018-05-31 Alan Hayward <alan.hayward@arm.com>
8771
8772 * aarch64-linux-nat.c (aarch64_linux_read_description):
8773 Add parmeter zero.
8774 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8775 Likewise.
8776 * aarch64-tdep.c (tdesc_aarch64_list): Add.
8777 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
8778 (aarch64_gdbarch_init): Add parmeter zero.
8779 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
8780 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
8781 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
8782 parmeter.
8783 * doc/gdb.texinfo: Describe SVE feature
8784 * features/aarch64-sve.c: New file.
8785
8786 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
8787
8788 PR gdb/23210
8789 * gdbarch.sh (significant_addr_bit): Default to zero when
8790 not set by target architecture.
8791 * gdbarch.c: Re-generated.
8792 * utils.c (address_significant): Update.
8793
8794 2018-05-30 Joel Brobecker <brobecker@adacore.com>
8795
8796 * stack.c (func_command): Remove trailing newline in call to error.
8797
8798 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8799
8800 * regcache.h (regcache_raw_collect): Remove, update callers to
8801 use regcache::raw_collect.
8802 * regcache.c (regcache_raw_collect): Remove.
8803
8804 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8805
8806 * regcache.h (regcache_raw_supply): Remove, update callers to
8807 use detached_regcache::raw_supply.
8808 * regcache.c (regcache_raw_supply): Remove.
8809
8810 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8811
8812 * regcache.h (regcache_cooked_write_part): Remove, update
8813 callers to use regcache::cooked_write_part.
8814 * regcache.c (regcache_cooked_write_part): Remove.
8815
8816 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8817
8818 * regcache.h (regcache_cooked_read_part): Remove, update callers
8819 to use readable_regcache::cooked_read_part.
8820 * regcache.c (regcache_cooked_read_part): Remove.
8821
8822 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8823
8824 * regcache.h (regcache_cooked_read_value): Remove, update
8825 callers to use readable_regcache::cooked_read_value.
8826 * regcache.c (regcache_cooked_read_value): Remove.
8827
8828 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8829
8830 * regcache.h (regcache_cooked_write): Remove, update callers to
8831 use regcache::cooked_write.
8832 * regcache.c (regcache_cooked_write): Remove.
8833
8834 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8835
8836 * regcache.h (regcache_invalidate): Remove, update callers to
8837 use detached_regcache::invalidate instead.
8838 * regcache.c (regcache_invalidate): Remove.
8839
8840 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8841
8842 * regcache.h (regcache_raw_write_part): Remove, update callers
8843 to use regcache::raw_write_part instead.
8844 * regcache.c (regcache_raw_write_part): Remove.
8845
8846 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8847
8848 * regcache.h (regcache_raw_read_part): Remove, update callers to
8849 use readable_regcache::raw_read_part instead.
8850 * regcache.c (regcache_raw_read_part): Remove.
8851
8852 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8853
8854 * regcache.h (regcache_cooked_read): Remove, update callers to
8855 use readable_regcache::cooked_read instead.
8856 * regcache.c (regcache_cooked_read): Remove.
8857
8858 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8859
8860 * regcache.h (regcache_raw_write): Remove, update callers to use
8861 regcache::raw_write instead.
8862 * regcache.c (regcache_raw_write): Remove.
8863
8864 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8865
8866 * regcache.h (regcache_raw_read): Remove, update callers to use
8867 readable_regcache::raw_read instead.
8868 * regcache.c (regcache_raw_read): Remove.
8869
8870 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8871
8872 * regcache.h (regcache_raw_update): Remove, update callers to
8873 use readable_regcache::raw_update instead.
8874 * regcache.c (regcache_raw_update): Remove.
8875
8876 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8877
8878 * regcache.h (regcache_register_status): Remove, update callers
8879 to use reg_buffer::get_register_status directly instead.
8880 * regcache.c (regcache_register_status): Remove.
8881
8882 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8883
8884 * regcache.h (regcache_get_ptid): Remove, update all callers to
8885 call regcache::ptid instead.
8886 * regcache.c (regcache_get_ptid): Remove.
8887
8888 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8889
8890 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
8891
8892 2018-05-30 Pedro Alves <palves@redhat.com>
8893
8894 * common/common-exceptions.h (exception_rethrow): Use
8895 ATTRIBUTE_NORETURN.
8896
8897 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
8898
8899 * breakpoint.c (print_solib_event, check_status_catch_solib):
8900 Remove struct keyword in range-based for loops.
8901 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
8902 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
8903 Likewise.
8904 * linespec.c (find_superclass_methods, search_minsyms_for_name):
8905 Likewise.
8906 * symfile.c (addr_info_make_relative): Likewise.
8907 * thread.c (value_in_thread_stack_temporaries): Likewise.
8908
8909 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
8910
8911 PR gdb/16841
8912 * valops.c (value_struct_elt_for_reference): Call check_typedef on
8913 aggregate type to get its real type before accessing it.
8914
8915 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
8916
8917 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
8918 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
8919 * coff-pe-read.c (add_pe_forwarded_sym): Replace
8920 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
8921 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
8922 * jit.c (jit_breakpoint_re_set_internal): Likewise.
8923 * printcmd.c (info_address_command): Likewise.
8924
8925 2018-05-29 Tom Tromey <tom@tromey.com>
8926
8927 * windows-nat.c (handle_exception): Update fall-through comment.
8928
8929 2018-05-29 Tom Tromey <tom@tromey.com>
8930
8931 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
8932 (struct program_space) <added_solibs>: Now a std::vector.
8933 * breakpoint.c (print_solib_event): Update.
8934 (check_status_catch_solib): Update.
8935 * progspace.c (clear_program_space_solib_cache): Update.
8936 * solib.c (update_solib_list): Update.
8937
8938 2018-05-29 Tom Tromey <tom@tromey.com>
8939
8940 * python/py-type.c (typy_richcompare): Update.
8941 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
8942 * gdbtypes.h (types_deeply_equal): Return bool.
8943 (types_equal): Likewise.
8944 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
8945 declare VEC.
8946 (check_types_equal): Change worklist to std::vector. Return
8947 bool.
8948 (struct type_equality_entry): Add constructor.
8949 (compare_maybe_null_strings): Return bool.
8950 (check_types_worklist): Return bool. Change worklist to
8951 std::vector.
8952 (types_deeply_equal): Use std::vector.
8953 (types_equal): Return bool.
8954 (compare_maybe_null_strings): Simplify.
8955
8956 2018-05-29 Tom Tromey <tom@tromey.com>
8957
8958 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
8959
8960 2018-05-29 Tom Tromey <tom@tromey.com>
8961
8962 * objc-lang.h: Don't include cp-support.h.
8963 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
8964 declare VEC.
8965
8966 2018-05-27 Tom Tromey <tom@tromey.com>
8967
8968 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
8969
8970 2018-05-25 Tom Tromey <tom@tromey.com>
8971
8972 * value.c (value::location): Initialize.
8973
8974 2018-05-25 Tom Tromey <tom@tromey.com>
8975
8976 * dbxread.c (init_bincl_list): Remove.
8977 (bincl_list): Now a std::vector.
8978 (bincls_allocated, next_bincl): Remove.
8979 (free_bincl_list, do_free_bincl_list_cleanup)
8980 (make_cleanup_free_bincl_list): Remove.
8981 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
8982 unique_xmalloc_ptr.
8983 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
8984 (struct header_file_location): Add constructor.
8985 (add_bincl_to_list): Remove.
8986
8987 2018-05-25 Tom Tromey <tom@tromey.com>
8988
8989 * tui/tui.c (tui_enable): Update.
8990 * mi/mi-interp.c (mi_interp::init): Update.
8991 * interps.h (class interp) <name>: New method.
8992 <m_name>: Rename from name.
8993 (~scoped_restore_interp): Update.
8994 * interps.c (interp::interp): Update.
8995 (interp_add, interp_set, interp_lookup_existing)
8996 (current_interp_named_p): Update.
8997
8998 2018-05-25 Tom Tromey <tom@tromey.com>
8999
9000 * interps.c (interp_name): Remove.
9001 * mi/mi-interp.c (mi_interp::init): Update.
9002 * interps.h (interp_name): Remove.
9003 (~scoped_restore_interp): Update.
9004 * tui/tui.c (tui_enable): Update.
9005
9006 2018-05-25 Tom Tromey <tom@tromey.com>
9007
9008 * utils.c (fputs_maybe_filtered): Update.
9009 * linespec.c (decode_line_full): Update.
9010 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
9011 (mi_print_breakpoint_for_event, mi_solib_loaded)
9012 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
9013 (mi_user_selected_context_changed): Update.
9014 * mi/mi-main.c (mi_execute_command): Update.
9015 * cli/cli-script.c (execute_control_command): Update.
9016 * python/python.c (execute_gdb_command): Update.
9017 * solib.c (info_sharedlibrary_command): Update.
9018 * interps.c (interp_ui_out): Remove.
9019 * interps.h (interp_ui_out): Remove.
9020
9021 2018-05-25 Tom Tromey <tom@tromey.com>
9022
9023 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
9024 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
9025 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
9026
9027 2018-05-25 Tom Tromey <tom@tromey.com>
9028
9029 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
9030 * interps.c (interp_exec): Use scoped_restore.
9031
9032 2018-05-25 Tom Tromey <tom@tromey.com>
9033
9034 * remote.c (remote_target::remote_file_get): Use
9035 gdb::byte_vector.
9036 (remote_target::remote_file_put): Likewise.
9037
9038 2018-05-25 Tom Tromey <tom@tromey.com>
9039
9040 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
9041 a std::string.
9042 (get_pe_section_index, add_pe_exported_sym): Update.
9043 (read_pe_exported_syms): Use gdb::def_vector.
9044
9045 2018-05-25 Tom Tromey <tom@tromey.com>
9046
9047 * frame.c (remove_prev_frame): Remove.
9048 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
9049
9050 2018-05-25 Maciej W. Rozycki <macro@mips.com>
9051
9052 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
9053 Remove prototypes.
9054 * mips-linux-nat.c (supply_fpregset): Always call
9055 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
9056 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
9057 `mips_fill_fpregset'.
9058 * mips-linux-tdep.c (mips_supply_fpregset)
9059 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
9060 (mips_fill_fpregset_wrapper): Remove functions.
9061 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
9062 (mips_linux_fpregset): Remove variable.
9063 (mips_linux_iterate_over_regset_sections): Use
9064 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
9065 (mips_linux_o32_sigframe_init): Remove comment.
9066
9067 2018-05-25 Pedro Alves <palves@redhat.com>
9068
9069 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
9070 (struct readahead_cache, struct packet_reg, struct
9071 remote_arch_state, class remote_state): Move higher up in the
9072 file.
9073 (remote_target::m_remote_state): Now an object instead of a pointer.
9074 (remote_target::get_remote_state): Adjust.
9075
9076 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
9077
9078 * stack.c (select_and_print_frame): Delete.
9079 (struct function_bounds): Move struct within function.
9080 (func_command): Most content moved into new function
9081 find_frame_for_function, use new function, print result, add
9082 function comment.
9083 (find_frame_for_function): New function, now returns a result.
9084
9085 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9086
9087 * stack.c (iterate_over_block_arg_vars): Fix comment.
9088 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
9089
9090 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
9091
9092 PR gdb/23203
9093 * frame.c
9094 (scoped_restore_selected_frame::scoped_restore_selected_frame):
9095 Define.
9096 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
9097 Define.
9098 * frame.h (class scoped_restore_selected_frame): New class.
9099 * stack.c (print_frame_local_vars): Remove catching and rethrowing
9100 of any exception, use scoped_restore_selected_frame to restore the
9101 frame instead.
9102
9103 2018-05-24 Pedro Alves <palves@redhat.com>
9104
9105 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
9106 override.
9107
9108 2018-05-23 Tom Tromey <tom@tromey.com>
9109
9110 * complaints.c (struct complaints): Remove.
9111 (symfile_complaint_book): Remove.
9112 (series): New global.
9113 (complaint_internal): Update.
9114 (clear_complaints): Update.
9115
9116 2018-05-23 Tom Tromey <tom@tromey.com>
9117
9118 * complaints.c (counters): New global.
9119 (struct complain): Remove.
9120 (struct complaints) <root>: Remove.
9121 (complaint_sentinel): Remove.
9122 (symfile_complaint_book): Update.
9123 (find_complaint) Remove.
9124 (complaint_internal, clear_complaints): Update.
9125
9126 2018-05-23 Tom Tromey <tom@tromey.com>
9127
9128 * complaints.c (struct complain) <file, line>: Remove.
9129 (find_complaint): Remove file, line parameters.
9130 (complaint_internal): Update.
9131
9132 2018-05-23 Tom Tromey <tom@tromey.com>
9133
9134 * complaints.c (vcomplaint): Remove.
9135 (complaint_internal) Merge in contents of vcomplaint.
9136
9137 2018-05-23 Tom Tromey <tom@tromey.com>
9138
9139 * complaints.c (struct complaints) <explanation>: Remove.
9140 (symfile_explanations): Remove.
9141 (symfile_complaint_book): Update.
9142 (vcomplaint): Update.
9143 (struct explanation): Remove.
9144
9145 2018-05-23 Tom Tromey <tom@tromey.com>
9146
9147 * complaints.c (symfile_complaints): Remove.
9148 (complaint_internal): Remove "complaints" parameter.
9149 (clear_complaints, vcomplaint): Remove "c" parameter.
9150 (get_complaints): Remove.
9151 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
9152 (dwarf2_debug_line_missing_file_complaint)
9153 (dwarf2_debug_line_missing_end_sequence_complaint)
9154 (dwarf2_complex_location_expr_complaint)
9155 (dwarf2_const_value_length_mismatch_complaint)
9156 (dwarf2_section_buffer_overflow_complaint)
9157 (dwarf2_macro_malformed_definition_complaint)
9158 (dwarf2_invalid_attrib_class_complaint)
9159 (create_addrmap_from_index, dw2_symtab_iter_next)
9160 (dw2_expand_marked_cus)
9161 (dw2_debug_names_iterator::find_vec_in_debug_names)
9162 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
9163 (create_debug_type_hash_table, init_cutu_and_read_dies)
9164 (partial_die_parent_scope, add_partial_enumeration)
9165 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
9166 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
9167 (read_import_statement, read_file_scope, create_dwo_cu_reader)
9168 (create_cus_hash_table, create_dwp_hash_table)
9169 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9170 (dwarf2_rnglists_process, dwarf2_ranges_process)
9171 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
9172 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
9173 (handle_struct_member_die, process_structure_scope)
9174 (read_array_type, read_common_block, read_module_type)
9175 (read_tag_pointer_type, read_typedef, read_base_type)
9176 (read_subrange_type, load_partial_dies, partial_die_info::read)
9177 (partial_die_info::read, partial_die_info::read)
9178 (partial_die_info::read, read_checked_initial_length_and_offset)
9179 (dwarf2_string_attr, read_formatted_entries)
9180 (dwarf_decode_line_header)
9181 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
9182 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
9183 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
9184 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9185 (get_signatured_type, get_DW_AT_signature_type)
9186 (decode_locdesc, file_file_name, consume_improper_spaces)
9187 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
9188 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9189 (dwarf2_symbol_mark_computed, set_die_type)
9190 (read_attribute_value): Update.
9191 * stap-probe.c (handle_stap_probe, get_stap_base_address):
9192 Update.
9193 * dbxread.c (unknown_symtype_complaint)
9194 (lbrac_mismatch_complaint, repeated_header_complaint)
9195 (set_namestring, function_outside_compilation_unit_complaint)
9196 (read_dbx_symtab, process_one_symbol): Update.
9197 * gdbtypes.c (stub_noname_complaint): Update.
9198 * windows-nat.c (handle_unload_dll): Update.
9199 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
9200 (decode_base_type): Update.
9201 * xcoffread.c (bf_notfound_complaint, ef_complaint)
9202 (eb_complaint, record_include_begin, record_include_end)
9203 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
9204 (process_xcoff_symbol, read_symbol)
9205 (function_outside_compilation_unit_complaint)
9206 (scan_xcoff_symtab): Update.
9207 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
9208 * buildsym.c (finish_block_internal, make_blockvector)
9209 (end_symtab_get_static_block, augment_type_symtab): Update.
9210 * dtrace-probe.c (dtrace_process_dof)
9211 (dtrace_static_probe_ops::get_probes): Update.
9212 * complaints.h (struct complaint): Don't declare.
9213 (symfile_complaints): Remove.
9214 (complaint_internal): Remove "complaints" parameter.
9215 (complaint): Likewise.
9216 (clear_complaints): Likewise.
9217 * symfile.c (syms_from_objfile_1, finish_new_objfile)
9218 (reread_symbols): Update.
9219 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
9220 (dwarf2_frame_cache, decode_frame_entry): Update.
9221 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
9222 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9223 (info_selectors_command): Update.
9224 * macrotab.c (macro_include, check_for_redefinition)
9225 (macro_undef): Update.
9226 * objfiles.c (filter_overlapping_sections): Update.
9227 * stabsread.c (invalid_cpp_abbrev_complaint)
9228 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
9229 (define_symbol, error_type, read_type, rs6000_builtin_type)
9230 (stabs_method_name_from_physname, read_member_functions)
9231 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
9232 (attach_fields_to_type, complain_about_struct_wipeout)
9233 (read_range_type, read_args, common_block_start)
9234 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
9235 Update.
9236 * mdebugread.c (index_complaint, unknown_ext_complaint)
9237 (basic_type_complaint, bad_tag_guess_complaint)
9238 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
9239 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
9240 (parse_procedure, parse_lines)
9241 (function_outside_compilation_unit_complaint)
9242 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
9243 (bad_tag_guess_complaint, reg_value_complaint): Update.
9244 * cp-support.c (demangled_name_complaint): Update.
9245 * macroscope.c (sal_macro_scope): Update.
9246 * dwarf-index-write.c (class debug_names): Update.
9247
9248 2018-05-23 Tom Tromey <tom@tromey.com>
9249
9250 * complaints.c (clear_complaints): Remove "noisy" parameter.
9251 * complaints.h (clear_complaints): Update.
9252 * symfile.c (syms_from_objfile_1, finish_new_objfile)
9253 (reread_symbols): Update.
9254
9255 2018-05-23 Tom Tromey <tom@tromey.com>
9256
9257 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
9258 SUBSEQUENT_MESSAGE.
9259 (vcomplaint, clear_complaints): Update.
9260 (symfile_explanations): Remove some messages.
9261
9262 2018-05-23 Tom Tromey <tom@tromey.com>
9263
9264 * complaints.c (internal_complaint): Remove.
9265 * complaints.h (internal_complaint): Remove.
9266
9267 2018-05-22 Maciej W. Rozycki <macro@mips.com>
9268
9269 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
9270
9271 2018-05-22 Pedro Alves <palves@redhat.com>
9272
9273 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
9274 (remote_fileio_badfd, remote_fileio_return_errno)
9275 (remote_fileio_return_success, remote_fileio_func_open)
9276 (remote_fileio_func_open, remote_fileio_func_close)
9277 (remote_fileio_func_read, remote_fileio_func_write)
9278 (remote_fileio_func_lseek, remote_fileio_func_rename)
9279 (remote_fileio_func_unlink, remote_fileio_func_stat)
9280 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
9281 (remote_fileio_func_isatty, remote_fileio_func_system): Add
9282 remote_target parameter.
9283 (remote_fio_func_map) <func>: Add remote_target parameter.
9284 (do_remote_fileio_request, remote_fileio_request):
9285 * remote-fileio.h (remote_fileio_request):
9286 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
9287 remote_target parameter.
9288 (remote_notif_process, handle_notification): Adjust to pass down
9289 the remote.
9290 (remote_notif_state_allocate): Add remote_target parameter. Save
9291 it.
9292 * remote-notif.h (struct remote_target): Forward declare.
9293 (struct notif_client) <parse, ack, can_get_pending_events>: Add
9294 remote_target parameter.
9295 (struct remote_notif_state) <remote>: New field.
9296 (remote_notif_ack, remote_notif_parse): Add remote_target
9297 parameter.
9298 (remote_notif_state_allocate, remote_notif_state_allocate): Add
9299 remote_target parameter.
9300 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
9301 (threads_listing_context, rmt_thread_action, protocol_feature)
9302 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
9303 (packet_result, struct threads_listing_context, remote_state):
9304 Move definitions and declarations higher up.
9305 (remote_target) <~remote_target>: Declare.
9306 (remote_download_command_source, remote_file_put, remote_file_get)
9307 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
9308 (remote_hostio_pread_vFile, remote_hostio_send_command)
9309 (remote_hostio_set_filesystem, remote_hostio_open)
9310 (remote_hostio_close, remote_hostio_unlink, remote_state)
9311 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
9312 (get_memory_write_packet_size, get_memory_read_packet_size)
9313 (append_pending_thread_resumptions, remote_detach_1)
9314 (append_resumption, remote_resume_with_vcont)
9315 (add_current_inferior_and_thread, wait_ns, wait_as)
9316 (process_stop_reply, remote_notice_new_inferior)
9317 (process_initial_stop_replies, remote_add_thread)
9318 (btrace_sync_conf, remote_btrace_maybe_reopen)
9319 (remove_new_fork_children, kill_new_fork_children)
9320 (discard_pending_stop_replies, stop_reply_queue_length)
9321 (check_pending_events_prevent_wildcard_vcont)
9322 (discard_pending_stop_replies_in_queue, stop_reply)
9323 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
9324 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
9325 (remote_interrupt_as, remote_interrupt_ns)
9326 (remote_get_noisy_reply, remote_query_attached)
9327 (remote_add_inferior, remote_current_thread, get_current_thread)
9328 (set_thread, set_general_thread, set_continue_thread)
9329 (set_general_process, write_ptid)
9330 (remote_unpack_thread_info_response, remote_get_threadinfo)
9331 (parse_threadlist_response, remote_get_threadlist)
9332 (remote_threadlist_iterator, remote_get_threads_with_ql)
9333 (remote_get_threads_with_qxfer)
9334 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
9335 (get_offsets, remote_check_symbols, remote_supported_packet)
9336 (remote_query_supported, remote_packet_size)
9337 (remote_serial_quit_handler, remote_detach_pid)
9338 (remote_vcont_probe, remote_resume_with_hc)
9339 (send_interrupt_sequence, interrupt_query)
9340 (remote_notif_get_pending_events, fetch_register_using_p)
9341 (send_g_packet, process_g_packet, fetch_registers_using_g)
9342 (store_register_using_P, store_registers_using_G)
9343 (set_remote_traceframe, check_binary_download)
9344 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
9345 (remote_xfer_live_readonly_partial, remote_read_bytes)
9346 (remote_send_printf, remote_flash_write, readchar)
9347 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
9348 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
9349 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
9350 (extended_remote_disable_randomization, extended_remote_run)
9351 (send_environment_packet, extended_remote_environment_support)
9352 (extended_remote_set_inferior_cwd, remote_write_qxfer)
9353 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
9354 (packet_command): Now methods of ...
9355 (remote_target): ... this class.
9356 (m_remote_state) <remote_target>: New field.
9357 (struct remote_state) <stop_reply_queue,
9358 remote_async_inferior_event_token, wait_forever_enabled_p>: New
9359 fields.
9360 (remote_state::remote_state): Allocate stop_reply_queue.
9361 (remote_state): Delete global.
9362 (get_remote_state_raw): Delete.
9363 (remote_target::get_remote_state): Allocate m_remote_state on
9364 demand.
9365 (get_current_remote_target): New.
9366 (remote_ops, extended_remote_ops): Delete.
9367 (wait_forever_enabled_p, remote_async_inferior_event_token):
9368 Delete, moved to struct remote_state.
9369 (remote_target::close): Delete self. Destruction bits split to
9370 ...
9371 (remote_target::~remote_target): ... this.
9372 (show_memory_packet_size): Adjust to use
9373 get_current_remote_target.
9374 (struct protocol_feature) <func>: Add remote_target parameter.
9375 All callers adjusted.
9376 (curr_quit_handler_target): New.
9377 (remote_serial_quit_handler): Reimplement.
9378 (remote_target::open_1): Adjust to use get_current_remote_target.
9379 Heap-allocate remote_target/extended_remote_target instances.
9380 (vcont_builder::vcont_builder): Add remote_target parameter, and
9381 save it in m_remote. All callers adjusted.
9382 (vcont_builder::m_remote): New field.
9383 (vcont_builder::restart, vcont_builder::flush)
9384 (vcont_builder::push_action): Use it.
9385 (remote_target::commit_resume): Use it.
9386 (struct queue_iter_param) <remote>: New field.
9387 (remote_target::remove_new_fork_children): Fill in 'remote' field.
9388 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
9389 (check_pending_event_prevents_wildcard_vcont_callback)
9390 (remote_target::check_pending_events_prevent_wildcard_vcont)
9391 (remote_target::discard_pending_stop_replies)
9392 (remote_target::discard_pending_stop_replies_in_queue)
9393 (remote_target::remote_notif_remove_queued_reply): Fill in
9394 'remote' field.
9395 (remote_notif_get_pending_events): New.
9396 (remote_target::readchar, remote_target::remote_serial_write):
9397 Save/restore curr_quit_handler_target.
9398 (putpkt): New.
9399 (kill_new_fork_children): Fill in 'remote' field.
9400 (packet_command): Use get_current_remote_target, defer to
9401 remote_target method of same name.
9402 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
9403 parameter, and save it in m_remote. All callers adjusted.
9404 (scoped_remote_fd::release): Use m_remote.
9405 (scoped_remote_fd::m_remote): New field.
9406 (remote_file_put, remote_file_get, remote_file_delete): Use
9407 get_current_remote_target, defer to remote_target method of same
9408 name.
9409 (remote_btrace_reset): Add remote_state paremeter. Update all
9410 callers.
9411 (remote_async_inferior_event_handler). Pass down 'data'.
9412 (remote_new_objfile): Use get_current_remote_target.
9413 (remote_target::vcont_r_supported): New.
9414 (set_range_stepping): Use get_current_remote_target and
9415 remote_target::vcont_r_supported.
9416 (_initialize_remote): Don't allocate 'remote_state' and
9417 'stop_reply_queue' globals.
9418 * remote.h (struct remote_target): Forward declare.
9419 (getpkt, putpkt, remote_notif_get_pending_events): Add
9420 'remote_target' parameter.
9421
9422 2018-05-22 Pedro Alves <palves@redhat.com>
9423
9424 * remote.c (vcont_builder): Now a class. Make all data members
9425 private.
9426 (vcont_builder) <vcont_builder, restart, flush, push_action>:
9427 Declare methods.
9428 (vcont_builder_restart): Rename to ...
9429 (vcont_builder::restart): ... this.
9430 (vcont_builder_flush): Rename to ...
9431 (vcont_builder::flush): ... this.
9432 (vcont_builder_push_action): Rename to ...
9433 (vcont_builder::push_action): ... this.
9434 (remote_target::commit_resume): Adjust.
9435
9436 2018-05-22 Pedro Alves <palves@redhat.com>
9437
9438 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
9439 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
9440 (get_fixed_memory_packet_size): New.
9441 (get_memory_packet_size): Use it.
9442 (set_memory_packet_size): Don't override the config size with
9443 DEFAULT_MAX_MEMORY_PACKET_SIZE.
9444 (show_memory_packet_size): Use get_fixed_memory_packet_size.
9445 Don't refer to get_memory_packet_size if not connected to a remote
9446 target. Show "(default)" if configured size is 0.
9447
9448 2018-05-22 Pedro Alves <palves@redhat.com>
9449
9450 * remote.c (remote_target::mourn_inferior): Move
9451 discard_pending_stop_replies call here from ...
9452 (_initialize_remote): ... here.
9453
9454 2018-05-22 Pedro Alves <palves@redhat.com>
9455
9456 * remote.c (compare_section_command): Remove set_general_process
9457 call.
9458
9459 2018-05-22 Pedro Alves <palves@redhat.com>
9460
9461 * remote.c (struct packet_reg, struct remote_arch_state):
9462 Move higher up in the file.
9463 (remote_state) <m_arch_states>: Store remote_arch_state values
9464 instead of remote_arch_state pointers.
9465 (remote_state::get_remote_arch_state): Adjust.
9466
9467 2018-05-22 Pedro Alves <palves@redhat.com>
9468
9469 * remote.c: Include <unordered_map>.
9470 (remote_state): Now a class.
9471 (remote_state) <get_remote_arch_state>: Declare method.
9472 <get_remote_arch_state>: New field.
9473 (remote_arch_state) <remote_arch_state>: Declare ctor.
9474 <regs>: Now a unique_ptr.
9475 (remote_gdbarch_data_handle): Delete.
9476 (get_remote_arch_state): Delete.
9477 (remote_state::get_remote_arch_state): New.
9478 (get_remote_state): Adjust to call remote_state's
9479 get_remote_arch_state method.
9480 (init_remote_state): Delete, bits factored out to ...
9481 (remote_arch_state::remote_arch_state): ... this new method.
9482 (get_remote_packet_size, get_memory_packet_size)
9483 (process_g_packet, remote_target::fetch_registers)
9484 (remote_target::prepare_to_store, store_registers_using_G)
9485 (remote_target::store_registers, remote_target::get_trace_status):
9486 Adjust to call remote_state's method.
9487 (_initialize_remote): Remove reference to
9488 remote_gdbarch_data_handle.
9489
9490 2018-05-22 Pedro Alves <palves@redhat.com>
9491
9492 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
9493 pread>: New method declarations.
9494 (remote_target::open_1): Adjust.
9495 (readahead_cache_invalidate): Rename to ...
9496 (readahead_cache::invalidate): ... this, and adjust to be a class
9497 method.
9498 (readahead_cache_invalidate_fd): Rename to ...
9499 (readahead_cache::invalidate_fd): ... this, and adjust to be a
9500 class method.
9501 (remote_hostio_pwrite): Adjust.
9502 (remote_hostio_pread_from_cache): Rename to ...
9503 (readahead_cache::pread): ... this, and adjust to be a class
9504 method.
9505 (remote_hostio_close): Adjust.
9506
9507 2018-05-22 Pedro Alves <palves@redhat.com>
9508
9509 * remote.c (remote_hostio_close_cleanup): Delete.
9510 (class scoped_remote_fd): New.
9511 (remote_file_put, remote_file_get): Use it.
9512
9513 2018-05-22 Pedro Alves <palves@redhat.com>
9514
9515 (struct vCont_action_support): Use bool and initialize all fields.
9516 (struct readahead_cache): Initialize all fields.
9517 (remote_state): Use bool and initialize all fields.
9518 (remote_state::remote_state, remote_state::~remote_state): New.
9519 (new_remote_state): Delete.
9520 (_initialize_remote): Use new to allocate remote_state.
9521
9522 2018-05-22 Pedro Alves <palves@redhat.com>
9523 張俊芝 <zjz@zjz.name>
9524
9525 PR gdb/22973
9526 * c-exp.y: Include "c-support.h".
9527 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
9528 of tolower. Use c_ident_is_alpha to scan names.
9529 * c-lang.c: Include "c-support.h".
9530 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
9531 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
9532 * c-support.h: New file, with bits factored out from ...
9533 * cp-name-parser.y: ... this file.
9534 Include "c-support.h".
9535 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
9536 c-support.h and renamed.
9537 (symbol_end, yylex): Adjust.
9538
9539 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9540
9541 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
9542 parameter type to CORE_ADDR.
9543 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
9544 parameter type in declaration to CORE_ADDR.
9545 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
9546 target_auxv_search to get AT_HWCAP and use the result to get the
9547 target description.
9548 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
9549 to CORE_ADDR. Remove the cast of the return value to unsigned
9550 long. Fix error predicate of target_auxv_search.
9551 (ppc_linux_nat_target::read_description): Change the type of the
9552 hwcap variable to CORE_ADDR.
9553
9554 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9555
9556 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
9557 if the size of fpscr is larger than 32 bits.
9558
9559 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9560
9561 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
9562 (ppc32_linux_vsxregmap): New global.
9563 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
9564 regcache_supply_regset, and regcache_collect_regset.
9565 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
9566 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
9567 (fetch_vsx_register, store_vsx_register): Remove.
9568 (fetch_vsx_registers): Add regno parameter. Get regset using
9569 ppc_linux_vsxregset. Use regset to supply registers.
9570 (store_vsx_registers): Add regno parameter. Get regset using
9571 ppc_linux_vsxregset. Use regset to collect registers.
9572 (fetch_register): Call fetch_vsx_registers instead of
9573 fetch_vsx_register.
9574 (store_register): Call store_vsx_registers instead of
9575 store_vsx_register.
9576 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
9577 new regno parameter.
9578 (store_ppc_registers): Call store_vsx_registers with -1 for the
9579 new regno parameter.
9580 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
9581 (ppc_collect_vsxregset): Remove.
9582
9583 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9584
9585 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
9586 offset fields.
9587 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
9588 for vector register offset fields.
9589 (ppc64_fbsd_reg_offsets): Likewise.
9590 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9591 to vector register offset fields.
9592 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9593 to vector register offset fields.
9594 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
9595 vector register offset fields.
9596 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
9597 initializers for vector register offset fields.
9598 (rs6000_aix64_reg_offsets): Likewise.
9599 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
9600 (ppc_supply_vrregset): Remove.
9601 (ppc_collect_vrregset): Remove.
9602 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
9603 (ppc_linux_vrregset) : New function.
9604 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
9605 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
9606 (ppc32_linux_vrregset): Remove.
9607 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
9608 and use result instead of ppc32_linux_vrregset.
9609 (ppc32_linux_reg_offsets): Remove initializers for vector register
9610 offset fields.
9611 (ppc64_linux_reg_offsets): Likewise.
9612 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
9613 * ppc-linux-nat.c: Include regset.h.
9614 (gdb_vrregset_t): Adjust comment to account for little-endian
9615 mode.
9616 (supply_vrregset, fill_vrregset): Remove.
9617 (fetch_altivec_register, store_altivec_register): Remove.
9618 (fetch_altivec_registers): Add regno parameter. Get regset using
9619 ppc_linux_vrregset. Use regset to supply registers.
9620 (store_altivec_registers): Add regno parameter. Get regset using
9621 ppc_linux_vrregset. Use regset to collect registers.
9622 (fetch_register): Call fetch_altivec_registers instead of
9623 fetch_altivec_register.
9624 (store_register): Call store_altivec_registers instead of
9625 store_altivec_register.
9626 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
9627 the new regno parameter.
9628 (store_ppc_registers): Call store_altivec_registers with -1 for
9629 the new regno parameter.
9630
9631 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9632
9633 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
9634 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
9635 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
9636 (gdb_vrregset_t): Change array type size to
9637 PPC_LINUX_SIZEOF_VRREGSET.
9638 (gdb_vsxregset_t): Change array type size to
9639 PPC_LINUX_SIZEOF_VSXREGSET.
9640 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
9641 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
9642 PPC_LINUX_SIZEOF_VSXREGSET.
9643
9644 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9645
9646 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
9647 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
9648 nat/ppc-linux.c.
9649 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
9650 ppc_linux_target_wordsize with tid.
9651 (ppc_linux_nat_target::read_description): Call ppc_linux_target
9652 wordsize with tid.
9653 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
9654 (ppc64_64bit_inferior_p): Add static and inline specifiers.
9655 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
9656 tid parameter. Remove static specifier.
9657 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
9658 (ppc_linux_target_wordsize): New declaration.
9659
9660 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9661
9662 * arch/ppc-linux-common.c: New file.
9663 * arch/ppc-linux-common.h: New file.
9664 * arch/ppc-linux-tdesc.h: New file.
9665 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
9666 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
9667 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
9668 arch/ppc-linux-tdesc.h.
9669 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
9670 arch/ppc-linux-tdesc.h.
9671 (ppc_linux_nat_target::read_description): Remove target
9672 description matching code. Fill a ppc_linux_features struct and
9673 call ppc_linux_match_description with it. Move comment about ISA
9674 2.05 to ppc-linux-common.c.
9675 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
9676 arch/ppc-linux-tdesc.h.
9677 (ppc_linux_core_read_description): Remove target description
9678 matching code. Fill a ppc_linux_features struct and call
9679 ppc_linux_match_description with it.
9680 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
9681 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
9682 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
9683 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
9684 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
9685 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
9686 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
9687 (tdesc_powerpc_e500l): Remove.
9688
9689 2018-05-22 Joel Brobecker <brobecker@adacore.com>
9690
9691 * ada-lang.c (catch_assert_command): Pass empty string instead
9692 of NULL for excep_string argument.
9693
9694 2018-05-22 Maciej W. Rozycki <macro@mips.com>
9695
9696 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
9697 the width of the requested register exceeds the width of the
9698 `ptrace' data type.
9699
9700 2018-05-21 Tom Tromey <tom@tromey.com>
9701
9702 * printcmd.c (output_command): Remove.
9703 (output_command_const): Rename to output_command.
9704 * valprint.h (output_command): Rename from output_command_const.
9705 * tracepoint.c (trace_dump_actions): Call output_command.
9706
9707 2018-05-21 Tom Tromey <tom@tromey.com>
9708
9709 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
9710 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
9711 * ada-lang.h (create_ada_exception_catchpoint): Update.
9712 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
9713 std::string.
9714 (create_excep_cond_exprs, ~ada_catchpoint)
9715 (should_stop_exception, print_one_exception)
9716 (print_mention_exception, print_recreate_exception): Update.
9717 (ada_get_next_arg): Remove.
9718 (catch_ada_exception_command_split): Use std::string. Change type
9719 of "excep_string", "cond_string".
9720 (catch_ada_exception_command): Update.
9721 (create_ada_exception_catchpoint): Change type of excep_string.
9722 (ada_exception_sal): Remove excep_string parameter.
9723 (~ada_catchpoint): Remove.
9724
9725 2018-05-21 Tom Tromey <tom@tromey.com>
9726
9727 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
9728 cleanup.
9729
9730 2018-05-21 Tom Tromey <tom@tromey.com>
9731
9732 * ada-lang.c (ada_exception_message_1, ada_exception_message):
9733 Return unique_xmalloc_ptr.
9734 (print_it_exception): Update.
9735
9736 2018-05-21 Tom Tromey <tom@tromey.com>
9737
9738 * tracepoint.c (trace_dump_actions): Use std::string.
9739
9740 2018-05-21 Tom Tromey <tom@tromey.com>
9741
9742 * symfile.c (reread_symbols): Use std::string for original_name.
9743
9744 2018-05-21 Tom Tromey <tom@tromey.com>
9745
9746 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
9747 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
9748 constructor.
9749
9750 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
9751
9752 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
9753 instance to...
9754 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
9755 * objfiles.c (get_objfile_bfd_data): Allocate
9756 objfile_per_bfd_storage with obstack_new when allocating on
9757 obstack.
9758
9759 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9760
9761 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
9762 OBSTACK_ZALLOC.
9763 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
9764 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
9765 * mdebugread.c (mdebug_build_psymtabs): Likewise.
9766 (add_pending): Likewise.
9767 (parse_symbol): Likewise.
9768 (parse_partial_symbols): Likewise.
9769 (psymtab_to_symtab_1): Likewise.
9770 (new_psymtab): Likewise.
9771 (elfmdebug_build_psymtabs): Likewise.
9772 * minsyms.c (terminate_minimal_symbol_table): Likewise.
9773 * objfiles.c (get_objfile_bfd_data): Likewise.
9774 (objfile_register_static_link): Likewise.
9775 * psymtab.c (allocate_psymtab): Likewise.
9776 * stabsread.c (read_member_functions): Likewise.
9777 * xcoffread.c (xcoff_end_psymtab): Likewise.
9778
9779 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9780
9781 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
9782 compiler supports std::is_trivially_constructible.
9783 * common/poison.h: Include obstack.h.
9784 (IsMallocable): Define to is_trivially_constructible if the
9785 compiler supports it, define to true_type otherwise.
9786 (xobnew): New.
9787 (XOBNEW): Redefine.
9788 (xobnewvec): New.
9789 (XOBNEWVEC): Redefine.
9790 * gdb_obstack.h (obstack_zalloc): New.
9791 (OBSTACK_ZALLOC): Redefine.
9792 (obstack_calloc): New.
9793 (OBSTACK_CALLOC): Redefine.
9794 (obstack_new): New.
9795 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
9796 (gdbarch_obstack): New declaration in gdbarch.h, definition in
9797 gdbarch.c.
9798 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
9799 obstack_calloc/obstack_zalloc.
9800 (gdbarch_obstack_zalloc): Remove.
9801 * target-descriptions.c (tdesc_data_init): Use obstack_new.
9802
9803 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9804
9805 * stack.c (backtrace_command_1): Remove useless variable int i.
9806
9807 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9808
9809 * stack.c (print_frame_info): Fix comment.
9810
9811 2018-05-18 Tom Tromey <tom@tromey.com>
9812
9813 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
9814 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
9815 (~dwarf2_per_objfile): Update
9816 (dwarf2_get_dwz_file): Use new.
9817 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
9818 unique_ptr.
9819
9820 2018-05-18 Tom Tromey <tom@tromey.com>
9821
9822 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
9823 unique_ptr.
9824 * dwarf2read.c (struct dwp_file): Add constructor and
9825 initializers.
9826 (open_and_init_dwp_file): Return a unique_ptr.
9827 (dwarf2_per_objfile, create_dwp_hash_table)
9828 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
9829 (lookup_dwo_unit_in_dwp): Update.
9830 (open_and_init_dwp_file, get_dwp_file): Update.
9831
9832 2018-05-18 Tom Tromey <tom@tromey.com>
9833
9834 * dwarf2read.c (dwarf2_per_objfile): Update.
9835 (struct mapped_index): Add initializers.
9836 (dwarf2_read_index): Use new.
9837 (dw2_symtab_iter_init): Update.
9838 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
9839 unique_ptr.
9840
9841 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
9842
9843 * dwarf2read.c (mapped_index) <total_size>: Remove.
9844
9845 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
9846
9847 * unittests/format_pieces-selftests.c (test_format_specifier):
9848 Add ARI comments.
9849
9850 2018-05-18 Tom Tromey <tom@tromey.com>
9851
9852 * c-typeprint.c (maybe_print_hole): New function.
9853 (c_print_type_struct_field_offset): Update.
9854 (c_type_print_base_struct_union): Call maybe_print_hole.
9855
9856 2018-05-17 Keith Seitz <keiths@redhat.com>
9857
9858 * breakpoint.c (build_bpstat_chain): New function, moved from
9859 bpstat_stop_status.
9860 (bpstat_stop_status): Add optional parameter, `stop_chain'.
9861 If no stop chain is passed, call build_bpstat_chain to build it.
9862 * breakpoint.h (build_bpstat_chain): Declare.
9863 (bpstat_stop_status): Move documentation here from breakpoint.c.
9864 * infrun.c (handle_signal_stop): Before eliding inlined frames,
9865 build the stop chain and pass it to skip_inline_frames.
9866 Pass this stop chain to bpstat_stop_status.
9867 * inline-frame.c: Include breakpoint.h.
9868 (stopped_by_user_bp_inline_frame): New function.
9869 (skip_inline_frames): Add parameter `stop_chain'.
9870 Move documention to inline-frame.h.
9871 If non-NULL, use stopped_by_user_bp_inline_frame to determine
9872 whether the frame should be elided.
9873 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
9874 Add moved documentation and update for new parameter.
9875
9876 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
9877
9878 PR cli/14975
9879 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9880 unittests/format_pieces-selftests.c.
9881 * common/format.h (format_piece) <operator==>: New.
9882 (format_pieces) <operator[]>: Remove.
9883 * common/format.c (format_pieces::format_pieces): Handle \e.
9884 * unittests/format_pieces-selftests.c: New.
9885
9886 2018-05-17 Tom Tromey <tom@tromey.com>
9887
9888 PR symtab/23010:
9889 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
9890 (dw2_instantiate_symtab): Add skip_partial parameter.
9891 (dw2_find_last_source_symtab, dw2_map_expand_apply)
9892 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
9893 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
9894 (dw2_expand_symtabs_matching_one)
9895 (dw2_find_pc_sect_compunit_symtab)
9896 (dw2_debug_names_lookup_symbol)
9897 (dw2_debug_names_expand_symtabs_for_function): Update.
9898 (init_cutu_and_read_dies): Add skip_partial parameter.
9899 (process_psymtab_comp_unit, build_type_psymtabs_1)
9900 (process_skeletonless_type_unit, load_partial_comp_unit)
9901 (psymtab_to_symtab_1): Update.
9902 (load_full_comp_unit): Add skip_partial parameter.
9903 (process_imported_unit_die, dwarf2_read_addr_index)
9904 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
9905 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
9906 (read_signatured_type): Update.
9907
9908 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
9909
9910 * value.c (release_value): Remove unused variable.
9911 (record_latest_value): Likewise.
9912 (access_value_history): Likewise.
9913 (preserve_values): Likewise.
9914
9915 2018-05-17 Tom Tromey <tom@tromey.com>
9916
9917 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
9918 Initialize.
9919
9920 2018-05-16 Maciej W. Rozycki <macro@mips.com>
9921
9922 PR gdb/22286
9923 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
9924 Also handle registers whose width is not a multiple of
9925 PTRACE_TYPE_RET.
9926 (linux_nat_trad_target::store_register): Likewise.
9927
9928 2018-05-16 Tom Tromey <tom@tromey.com>
9929
9930 * gdbcore.h (core_bfd): Redefine.
9931 * corelow.c (core_target::close): Update.
9932 (core_target_open): Update.
9933 * progspace.h (struct program_space) <cbfd>: Now a
9934 gdb_bfd_ref_ptr.
9935
9936 2018-05-16 Tom Tromey <tom@tromey.com>
9937
9938 PR cli/19551:
9939 * symfile-add-flags.h (enum symfile_add_flags)
9940 <SYMFILE_NOT_FILENAME>: New constant.
9941 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
9942 objfile name from BFD.
9943 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
9944 * minidebug.c (find_separate_debug_file_in_section): Put
9945 ".gnu_debugdata" into BFD's file name.
9946
9947 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
9948
9949 * regcache.c (regcache_read_ftype, regcache_write_ftype):
9950 Remove.
9951
9952 2018-05-15 Tamar Christina <tamar.christina@arm.com>
9953
9954 PR binutils/21446
9955 * aarch64-tdep.c (aarch64_analyze_prologue,
9956 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
9957 Indicate not interested in errors.
9958
9959 2018-05-15 Maciej W. Rozycki <macro@mips.com>
9960
9961 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
9962 Supply the MIPS_ZERO_REGNUM register.
9963
9964 2018-05-15 Maciej W. Rozycki <macro@mips.com>
9965
9966 * mips-tdep.c (mask_address_var): Make variable static.
9967
9968 2018-05-14 Tom Tromey <tom@tromey.com>
9969
9970 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
9971
9972 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
9973
9974 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
9975 FXSAVE_ADDR for the mxcsr register.
9976
9977 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
9978
9979 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
9980
9981 2018-05-11 Pedro Alves <palves@redhat.com>
9982
9983 * corelow.c (core_target) <core_target>: No longer inline.
9984 Initialize m_core_gdbarch, m_core_vec and build the section table
9985 here.
9986 <~core_target>: New.
9987 <core_gdbarch, get_core_register_section>: New methods.
9988 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
9989 factored out from ...
9990 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
9991 (core_ops): Delete.
9992 (sniff_core_bfd): Add gdbarch parameter.
9993 (core_close): Delete, merged into ...
9994 (core_target::close): ... here. Delete self.
9995 (core_close_cleanup): Delete.
9996 (core_target_open): Allocate a core_target on the heap. Use a
9997 unique_ptr instead of a cleanup. Bits moved into the core_target
9998 ctor. Adjust to use core_target methods instead of globals.
9999 (get_core_register_section): Rename to ...
10000 (core_target::get_core_register_section): ... this and adjust.
10001 (struct get_core_registers_cb_data): New.
10002 (get_core_registers_cb): Use it. Use bool.
10003 (core_target::fetch_registers, core_target::files_info)
10004 (core_target::xfer_partial, core_target::read_description)
10005 (core_target::pid_to, core_target::thread_name): Adjust to
10006 reference class fields instead of globals.
10007 * target.h (struct target_ops_deleter, target_ops_up): New.
10008
10009 2018-05-11 Pedro Alves <palves@redhat.com>
10010
10011 * corefile.c (core_file_command): Move to corelow.c.
10012 * corelow.c (the_core_target): Delete.
10013 (core_file_command): Moved from corefile.c. Check exec_bfd
10014 instead of the_core_target. Use target_detach instead of calling
10015 into the_core_target directly.
10016 (maybe_say_no_core_file_now): New.
10017 (core_target::detach): Use it.
10018 (_initialize_corelow): Remove references to the_core_target.
10019 * gdbcore.h (the_core_target): Delete.
10020
10021 2018-05-11 Tom Tromey <tromey@redhat.com>
10022 Pedro Alves <palves@redhat.com>
10023
10024 * corefile.c (core_bfd): Remove.
10025 * gdbcore.h (core_bfd): Now a macro.
10026 * progspace.h (struct program_space) <cbfd>: New field.
10027
10028 2018-05-11 Tom Tromey <tom@tromey.com>
10029
10030 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
10031 gdb::def_vector.
10032
10033 2018-05-10 Tom Tromey <tom@tromey.com>
10034
10035 * configure: Rebuild.
10036 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
10037
10038 2018-05-10 Joel Brobecker <brobecker@adacore.com>
10039
10040 PR server/23158:
10041 * regformats/regdat.sh: Adjust script, following the addition
10042 of the new expedite_regs parameter to init_target_desc.
10043
10044 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
10045
10046 PR gdb/23127
10047 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
10048 set_gdbarch_significant_addr_bit.
10049 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
10050 set_gdbarch_significant_addr_bit.
10051 * utils.c (address_significant): Update to sign extend addr.
10052
10053 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
10054
10055 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
10056 (xtensa_linux_init_abi): Limit tdep->num_regs by
10057 tdep->num_nopriv_regs.
10058 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
10059 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
10060 not initialized.
10061
10062 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
10063
10064 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
10065
10066 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10067
10068 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
10069 (I387_MXCSR_INIT_VAL): New constant.
10070 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
10071 buffer if it was supplied by the inferior.
10072 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
10073 (i387_xsave_get_clear_bv): New function.
10074 (i387_supply_xsave): Only read x87 control registers from the
10075 xsave buffer if the feature is enabled, and the state will have
10076 been written, otherwise, provide a suitable default.
10077 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
10078 including x87 control registers. Update control registers if they
10079 have changed from the default value, and mark features as enabled
10080 as required.
10081 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
10082
10083 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
10084
10085 * spu-tdep.c (info_spu_event_command): Fix output formatting.
10086
10087 2018-05-07 Tom Tromey <tom@tromey.com>
10088
10089 * configure: Rebuild.
10090 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
10091
10092 2018-05-07 Tom Tromey <tom@tromey.com>
10093
10094 PR tdep/20362:
10095 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
10096 bit. Use correct value for VDIV.
10097
10098 2018-05-04 Tom Tromey <tom@tromey.com>
10099
10100 * configure: Rebuild.
10101 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
10102
10103 2018-05-04 Tom Tromey <tom@tromey.com>
10104
10105 * linux-record.c (record_linux_system_call) <case
10106 RECORD_SYS_RECVFROM>: Add "break".
10107
10108 2018-05-04 Tom Tromey <tom@tromey.com>
10109
10110 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
10111 Add missing "break".
10112 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
10113 Add missing "break".
10114
10115 2018-05-04 Tom Tromey <tom@tromey.com>
10116
10117 * rs6000-tdep.c (ppc_process_record_op4)
10118 (ppc_process_record_op63): Add fall-through comment.
10119
10120 2018-05-04 Tom Tromey <tom@tromey.com>
10121
10122 * i386-tdep.c (i386_process_record): Add fall-through comment.
10123
10124 2018-05-04 Tom Tromey <tom@tromey.com>
10125
10126 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
10127 comment.
10128
10129 2018-05-04 Tom Tromey <tom@tromey.com>
10130
10131 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
10132 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
10133 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
10134 comment.
10135 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
10136 comment.
10137 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
10138 comment.
10139
10140 2018-05-04 Tom Tromey <tom@tromey.com>
10141
10142 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
10143
10144 2018-05-04 Tom Tromey <tom@tromey.com>
10145
10146 * s390-tdep.c (s390_process_record): Fix fall-through comments.
10147 * xcoffread.c (scan_xcoff_symtab): Move comment later.
10148 * symfile.c (section_is_mapped): Fix fall-through comment.
10149 * stabsread.c (define_symbol, read_member_functions): Fix
10150 fall-through comment.
10151 * s390-linux-tdep.c (s390_process_record): Fix fall-through
10152 comment.
10153 * remote.c (remote_wait_as): Fix fall-through comment.
10154 * p-exp.y (yylex): Fix fall-through comment.
10155 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
10156 comment.
10157 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
10158 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
10159 * jv-exp.y (yylex): Fix fall-through comment.
10160 * go-exp.y (lex_one_token): Fix fall-through comment.
10161 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
10162 fall-through comment.
10163 * f-exp.y (yylex): Fix fall-through comment.
10164 * dwarf2read.c (process_die): Fix fall-through comments.
10165 * dbxread.c (process_one_symbol): Fix fall-through comment.
10166 * d-exp.y (lex_one_token): Fix fall-through comment.
10167 * cp-name-parser.y (yylex): Fix fall-through comment.
10168 * coffread.c (coff_symtab_read): Fix fall-through comment.
10169 * c-exp.y (lex_one_token): Fix fall-through comment.
10170 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
10171 comment.
10172 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
10173 comment.
10174
10175 2018-05-04 Tom Tromey <tom@tromey.com>
10176
10177 PR python/22730:
10178 * NEWS: Mention gdb.execute change.
10179 * gdbcmd.h (execute_control_command): Don't declare.
10180 * python/python.c (execute_gdb_command): Use read_command_lines_1,
10181 execute_control_commands, execute_control_commands_to_string.
10182 * cli/cli-script.h (execute_control_commands)
10183 (execute_control_commands_to_string): Declare.
10184 (execute_control_command): Add from_tty parameter.
10185 * cli/cli-script.c (execute_control_commands)
10186 (execute_control_commands_to_string): New functions.
10187 (execute_user_command): Use execute_control_commands.
10188 (execute_control_command_1): Add "from_tty" parameter. Update.
10189 (execute_control_command): Likewise.
10190
10191 2018-05-04 Tom Tromey <tom@tromey.com>
10192
10193 PR python/22731:
10194 * NEWS: Mention that breakpoint commands are writable.
10195 * python/py-breakpoint.c (bppy_set_commands): New function.
10196 (breakpoint_object_getset) <"commands">: Use it.
10197
10198 2018-05-04 Tom Tromey <tom@tromey.com>
10199
10200 * tracepoint.c (actions_command): Update.
10201 * mi/mi-cmd-break.c (mi_command_line_array)
10202 (mi_command_line_array_cnt, mi_command_line_array_ptr)
10203 (mi_read_next_line): Remove.
10204 (mi_cmd_break_commands): Update.
10205 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
10206 function_view.
10207 * cli/cli-script.c (get_command_line): Update.
10208 (process_next_line): Use function_view. Constify.
10209 (recurse_read_control_structure, read_command_lines)
10210 (read_command_lines_1): Change argument types to function_view.
10211 (do_define_command, document_command): Update.
10212 * breakpoint.h (check_tracepoint_command): Don't declare.
10213 * breakpoint.c (check_tracepoint_command): Remove.
10214 (commands_command_1, create_tracepoint_from_upload): Update.
10215
10216 2018-05-04 Tom Tromey <tom@tromey.com>
10217
10218 PR gdb/11750:
10219 * cli/cli-script.h (enum command_control_type) <define_control>:
10220 New constant.
10221 * cli/cli-script.c (multi_line_command_p): Handle define_control.
10222 (build_command_line, execute_control_command_1)
10223 (process_next_line): Likewise.
10224 (do_define_command): New function, extracted from define_command.
10225 (define_command): Use it.
10226
10227 2018-05-04 Tom Tromey <tom@tromey.com>
10228
10229 * tracepoint.c (actions_command): Update.
10230 * cli/cli-script.h (read_command_lines): Update.
10231 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
10232 (MAX_TMPBUF): Remove define.
10233 (define_command): Use string_printf.
10234 (document_command): Likewise.
10235 * breakpoint.c (commands_command_1): Update.
10236
10237 2018-05-04 Tom Tromey <tom@tromey.com>
10238
10239 * top.c (execute_command): Update.
10240 * cli/cli-script.h (print_command_lines): Now varargs.
10241 * cli/cli-script.c (print_command_lines): Now varargs.
10242 (execute_control_command_1) <case while_control, case if_control>:
10243 Update.
10244
10245 2018-05-04 Tom Tromey <tom@tromey.com>
10246
10247 * tracepoint.c (all_tracepoint_actions): Rename from
10248 all_tracepoint_actions_and_cleanup. Change return type.
10249 (actions_command, encode_actions_1, encode_actions)
10250 (trace_dump_actions, tdump_command): Update.
10251 * remote.c (remote_download_command_source): Update.
10252 * python/python.c (gdbpy_eval_from_control_command)
10253 (python_command, python_interactive_command): Update.
10254 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10255 * guile/guile.c (guile_command)
10256 (gdbscm_eval_from_control_command, guile_command): Update.
10257 * compile/compile.c (compile_code_command)
10258 (compile_print_command, compile_to_object): Update.
10259 * cli/cli-script.h (struct command_lines_deleter): New.
10260 (counted_command_line): New typedef.
10261 (struct command_line): Add constructor, destructor.
10262 <body_list>: Remove.
10263 <body_list_0, body_list_1>: New members.
10264 (command_line_up): Remove typedef.
10265 (read_command_lines, read_command_lines_1, get_command_line):
10266 Update.
10267 (copy_command_lines): Don't declare.
10268 * cli/cli-script.c (build_command_line): Use "new".
10269 (get_command_line): Return counted_command_line.
10270 (print_command_lines, execute_user_command)
10271 (execute_control_command_1, while_command, if_command): Update.
10272 (realloc_body_list): Remove.
10273 (process_next_line, recurse_read_control_structure): Update.
10274 (read_command_lines, read_command_lines_1): Return counted_command_line.
10275 (free_command_lines): Use "delete".
10276 (copy_command_lines): Remove.
10277 (define_command, document_command, show_user_1): Update.
10278 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
10279 a counted_command_line.
10280 * breakpoint.h (counted_command_line): Remove typedef.
10281 (breakpoint_set_commands): Update.
10282 * breakpoint.c (check_no_tracepoint_commands)
10283 (validate_commands_for_breakpoint): Update.
10284 (breakpoint_set_commands): Change commands to be a
10285 counted_command_line.
10286 (commands_command_1, update_dprintf_command_list)
10287 (create_tracepoint_from_upload): Update.
10288
10289 2018-05-04 Tom Tromey <tom@tromey.com>
10290
10291 * cli/cli-decode.h (cmd_list_element): New constructor.
10292 (~cmd_list_element): New destructor.
10293 (struct cmd_list_element): Add initializers.
10294 * cli/cli-decode.c (do_add_cmd): Use "new".
10295 (delete_cmd): Use "delete".
10296
10297 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10298 Pedro Alves <palves@redhat.com>
10299
10300 PR breakpoints/19806 and support for PR external/20207.
10301 * NEWS: Mention Aarch64 watchpoint improvements.
10302 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
10303 watchpoints and PR external/20207 watchpoints.
10304 * nat/aarch64-linux-hw-point.c
10305 (kernel_supports_any_contiguous_range): New.
10306 (aarch64_watchpoint_offset): New.
10307 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
10308 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
10309 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
10310 (aarch64_align_watchpoint): New parameters aligned_offset_p and
10311 next_addr_orig_p. Support PR external/20207 watchpoints.
10312 (aarch64_downgrade_regs): New.
10313 (aarch64_dr_state_insert_one_point): New parameters offset and
10314 addr_orig.
10315 (aarch64_dr_state_remove_one_point): Likewise.
10316 (aarch64_handle_breakpoint): Update caller.
10317 (aarch64_handle_aligned_watchpoint): Likewise.
10318 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
10319 aligned_offset.
10320 (aarch64_linux_set_debug_regs): Remove const from state. Call
10321 aarch64_downgrade_regs.
10322 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
10323 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
10324 (DR_CONTROL_MASK): ... this.
10325 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
10326 (unsigned int aarch64_watchpoint_offset): New prototype.
10327 (aarch64_linux_set_debug_regs): Remove const from state.
10328 * utils.c (align_up, align_down): Move to ...
10329 * common/common-utils.c (align_up, align_down): ... here.
10330 * utils.h (align_up, align_down): Move to ...
10331 * common/common-utils.h (align_up, align_down): ... here.
10332
10333 2018-05-04 Joel Brobecker <brobecker@adacore.com>
10334
10335 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
10336 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
10337 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
10338 Re-implement to match the ABI as summarized in GCC's
10339 gcc/config/sparc/sparc.c. All callers updated.
10340 (sparc32_store_arguments): Remove assertion.
10341
10342 2018-05-04 Tom Tromey <tom@tromey.com>
10343
10344 * printcmd.c: Don't include tui.h.
10345 (decode_format): Use skip_spaces.
10346
10347 2018-05-04 Tom Tromey <tom@tromey.com>
10348
10349 PR gdb/22619:
10350 * printcmd.c (last_count): New global.
10351 (x_command): Use saved count when repeating.
10352
10353 2018-05-04 Tom Tromey <tom@tromey.com>
10354
10355 * nto-procfs.c (do_closedir_cleanup): Remove.
10356 (procfs_pidlist): Use gdb_dir_up.
10357 * procfs.c (do_closedir_cleanup): Remove.
10358 (proc_update_threads): Use gdb_dir_up.
10359 * common/filestuff.h (struct gdb_dir_deleter): New.
10360 (gdb_dir_up): New typedef.
10361
10362 2018-05-04 Tom Tromey <tom@tromey.com>
10363
10364 * ada-lang.c (print_mention_exception): Use std::string.
10365
10366 2018-05-04 Tom Tromey <tom@tromey.com>
10367
10368 * ada-lang.c (create_excep_cond_exprs): Update.
10369 (ada_exception_catchpoint_cond_string): Use std::string.
10370
10371 2018-05-04 Tom Tromey <tom@tromey.com>
10372
10373 * ada-lang.c (xget_renaming_scope): Return std::string.
10374 (old_renaming_is_invisible): Update.
10375
10376 2018-05-04 Tom Tromey <tom@tromey.com>
10377
10378 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
10379 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
10380
10381 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
10382
10383 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
10384
10385 2018-05-04 Tom Tromey <tom@tromey.com>
10386
10387 * remote.c (remote_query_supported_append): Change type.
10388 (remote_check_symbols): Update.
10389
10390 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
10391
10392 PR gdb/11420
10393 * configure.ac: Prepend libpython.
10394 * python/python-config.py: Likewise.
10395 * configure: Regenerate.
10396
10397 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
10398
10399 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
10400
10401 2018-05-03 Pedro Alves <palves@redhat.com>
10402
10403 * s390-linux-nat.c
10404 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
10405 override. Write 'true' instead of '1'.
10406 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
10407 declaration.
10408
10409 2018-05-02 Pedro Alves <palves@redhat.com>
10410
10411 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
10412 add_inf_child_target.
10413 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
10414 add_inf_child_target.
10415 * aix-thread.c (aix_thread_target_info): New.
10416 (aix_thread_target) <shortname, longname, doc>: Delete.
10417 <info>: New.
10418 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
10419 add_inf_child_target.
10420 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
10421 add_inf_child_target.
10422 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
10423 add_inf_child_target.
10424 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
10425 add_inf_child_target.
10426 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
10427 add_inf_child_target.
10428 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
10429 add_inf_child_target.
10430 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
10431 add_inf_child_target.
10432 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
10433 add_inf_child_target.
10434 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
10435 add_inf_child_target.
10436 * bfd-target.c (target_bfd_target_info): New.
10437 (target_bfd) <shortname, longname, doc>: Delete.
10438 <info>: New.
10439 * bsd-kvm.c (bsd_kvm_target_info): New.
10440 (bsd_kvm_target) <shortname, longname, doc>: Delete.
10441 <info>: New.
10442 (bsd_kvm_target::open): Rename to ...
10443 (bsd_kvm_target_open): ... this. Adjust.
10444 * bsd-uthread.c (bsd_uthread_target_info): New.
10445 (bsd_uthread_target) <shortname, longname, doc>: Delete.
10446 <info>: New.
10447 * corefile.c (core_file_command): Adjust.
10448 * corelow.c (core_target_info): New.
10449 (core_target) <shortname, longname, doc>: Delete.
10450 <info>: New.
10451 (core_target::open): Rename to ...
10452 (core_target_open): ... this. Adjust.
10453 * ctf.c (ctf_target_info): New.
10454 (ctf_target) <shortname, longname, doc>: Delete.
10455 <info>: New.
10456 (ctf_target::open): Rename to ...
10457 (ctf_target_open): ... this.
10458 (_initialize_ctf): Adjust.
10459 * exec.c (exec_target_info): New.
10460 (exec_target) <shortname, longname, doc>: Delete.
10461 <info>: New.
10462 (exec_target::open): Rename to ...
10463 (exec_target_open): ... this.
10464 * gdbcore.h (core_target_open): Declare.
10465 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
10466 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
10467 add_inf_child_target.
10468 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
10469 add_inf_child_target.
10470 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
10471 add_inf_child_target.
10472 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
10473 add_inf_child_target.
10474 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
10475 add_inf_child_target.
10476 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
10477 add_inf_child_target.
10478 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
10479 add_inf_child_target.
10480 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
10481 add_inf_child_target.
10482 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
10483 add_inf_child_target.
10484 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
10485 add_inf_child_target.
10486 * inf-child.c (inf_child_target_info): New.
10487 (inf_child_target::info): New.
10488 (inf_child_open_target): Remove 'target' parameter. Use
10489 get_native_target instead.
10490 (inf_child_target::open): Delete.
10491 (add_inf_child_target): New.
10492 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
10493 Delete.
10494 <info>: New.
10495 (add_inf_child_target): Declare.
10496 (inf_child_open_target): Declare.
10497 * linux-thread-db.c (thread_db_target_info): New.
10498 (thread_db_target) <shortname, longname, doc>: Delete.
10499 <info>: New.
10500 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
10501 add_inf_child_target.
10502 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
10503 add_inf_child_target.
10504 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
10505 add_inf_child_target.
10506 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
10507 add_inf_child_target.
10508 * make-target-delegates (print_class): Adjust.
10509 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
10510 add_inf_child_target.
10511 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
10512 add_inf_child_target.
10513 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
10514 add_inf_child_target.
10515 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
10516 add_inf_child_target.
10517 * nto-procfs.c (nto_native_target_info): New.
10518 (nto_procfs_target_native) <shortname, longname, doc>:
10519 Delete.
10520 <info>: New.
10521 (nto_procfs_target_info): New.
10522 (nto_procfs_target_procfs) <shortname, longname, doc>:
10523 Delete.
10524 <info>: New.
10525 (init_procfs_targets): Adjust.
10526 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
10527 add_inf_child_target.
10528 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
10529 add_inf_child_target.
10530 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
10531 add_inf_child_target.
10532 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
10533 add_inf_child_target.
10534 * ravenscar-thread.c (ravenscar_target_info): New.
10535 (ravenscar_thread_target) <shortname, longname, doc>:
10536 Delete.
10537 <info>: New.
10538 * record-btrace.c (record_btrace_target_info):
10539 (record_btrace_target) <shortname, longname, doc>: Delete.
10540 <info>: New.
10541 (record_btrace_target::open): Rename to ...
10542 (record_btrace_target_open): ... this. Adjust.
10543 * record-full.c (record_longname, record_doc): New.
10544 (record_full_base_target) <shortname, longname, doc>: Delete.
10545 <info>: New.
10546 (record_full_target_info): New.
10547 (record_full_target): <shortname>: Delete.
10548 <info>: New.
10549 (record_full_core_open_1, record_full_open_1): Update comments.
10550 (record_full_base_target::open): Rename to ...
10551 (record_full_open): ... this.
10552 (cmd_record_full_restore): Update.
10553 (_initialize_record_full): Update.
10554 * remote-sim.c (remote_sim_target_info): New.
10555 (gdbsim_target) <shortname, longname, doc>: Delete.
10556 <info>: New.
10557 (gdbsim_target::open): Rename to ...
10558 (gdbsim_target_open): ... this.
10559 (_initialize_remote_sim): Adjust.
10560 * remote.c (remote_doc): New.
10561 (remote_target_info): New.
10562 (remote_target) <shortname, longname, doc>: Delete.
10563 <info>: New.
10564 (extended_remote_target_info): New.
10565 (extended_remote_target) <shortname, longname, doc>: Delete.
10566 <info>: New.
10567 (remote_target::open_1): Make static. Adjust.
10568 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
10569 * s390-linux-nat.c (_initialize_s390_nat): Use
10570 add_inf_child_target.
10571 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
10572 add_inf_child_target.
10573 * sol-thread.c (thread_db_target_info): New.
10574 (sol_thread_target) <shortname, longname, doc>: Delete.
10575 <info>: New.
10576 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
10577 add_inf_child_target.
10578 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
10579 add_inf_child_target.
10580 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
10581 add_inf_child_target.
10582 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
10583 add_inf_child_target.
10584 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
10585 add_inf_child_target.
10586 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
10587 add_inf_child_target.
10588 * spu-linux-nat.c (_initialize_spu_nat): Use
10589 add_inf_child_target.
10590 * spu-multiarch.c (spu_multiarch_target_info): New.
10591 (spu_multiarch_target) <shortname, longname, doc>: Delete.
10592 <info>: New.
10593 * target-delegates.c: Regenerate.
10594 * target.c: Include <unordered_map>.
10595 (target_ops_p): Delete.
10596 (DEF_VEC_P(target_ops_p)): Delete.
10597 (target_factories): New.
10598 (test_target_info): New.
10599 (test_target_ops::info): New.
10600 (open_target): Adjust to use target_factories.
10601 (add_target_with_completer): Rename to ...
10602 (add_target): ... this. Change prototype. Register target_info
10603 and open callback in target_factories. Register target_info in
10604 command context instead of target_ops.
10605 (add_target): Delete old implementation.
10606 (add_deprecated_target_alias): Change prototype. Adjust.
10607 (the_native_target): New.
10608 (set_native_target, get_native_target): New.
10609 (find_default_run_target): Use the_native_target.
10610 (find_attach_target, find_run_target): Simplify.
10611 (target_ops::open): Delete.
10612 (dummy_target_info): New.
10613 (dummy_target::shortname, dummy_target::longname)
10614 (dummy_target::doc): Delete.
10615 (dummy_target::info): New.
10616 (debug_target::shortname, debug_target::longname)
10617 (debug_target::doc): Delete.
10618 (debug_target::info): New.
10619 * target.h (struct target_info): New.
10620 (target_ops::~target_ops): Add comment.
10621 (target_ops::info): New.
10622 (target_ops::shortname, target_ops::longname, target_ops::doc): No
10623 longer virtual. Implement in terms of target_info.
10624 (set_native_target, get_native_target): Declare.
10625 (target_open_ftype): New.
10626 (add_target, add_target_with_completer)
10627 (add_deprecated_target_alias): Change prototype.
10628 (test_target) <shortname, longname, doc>: Delete.
10629 <info>: New.
10630 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
10631 add_inf_child_target.
10632 * tracefile-tfile.c (tfile_target_info): New.
10633 (tfile_target) <shortname, longname, doc>: Delete.
10634 <info>: New.
10635 (tfile_target::open): Rename to ...
10636 (tfile_target_open): ... this.
10637 (_initialize_tracefile_tfile): Adjust.
10638 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
10639 add_inf_child_target.
10640 * windows-nat.c (_initialize_windows_nat): Use
10641 add_inf_child_target.
10642 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
10643 add_inf_child_target.
10644
10645 2018-05-02 Pedro Alves <palves@redhat.com>
10646
10647 * linux-nat.h (linux_nat_target) <low_new_thread,
10648 low_delete_thread, low_new_fork, low_forget_process,
10649 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
10650 New virtual methods.
10651 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10652 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
10653 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
10654 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10655 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
10656 Delete.
10657 * linux-fork.c (delete_fork): Adjust to call low method.
10658 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
10659 (linux_nat_new_fork, linux_nat_forget_process_hook)
10660 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
10661 (linux_nat_status_is_event):
10662 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
10663 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
10664 to call low method.
10665 (sigtrap_is_event): Rename to ...
10666 (linux_nat_target::low_status_is_event): ... this.
10667 (linux_nat_set_status_is_event): Delete.
10668 (save_stop_reason, linux_nat_wait_1)
10669 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
10670 low methods.
10671 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10672 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10673 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10674 (linux_nat_set_prepare_to_resume): Delete.
10675 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
10676 low virtual methods.
10677 * amd64-linux-nat.c: Likewise.
10678 * arm-linux-nat.c: Likewise.
10679 * i386-linux-nat.c: Likewise.
10680 * ia64-linux-nat.c: Likewise.
10681 * mips-linux-nat.c: Likewise.
10682 * ppc-linux-nat.c: Likewise.
10683 * s390-linux-nat.c: Likewise.
10684 * sparc64-linux-nat.c: Likewise.
10685 * x86-linux-nat.c: Likewise.
10686 * x86-linux-nat.h: Include "nat/x86-linux.h".
10687 (x86_linux_nat_target) <low_new_fork, low_forget_process,
10688 low_prepare_to_resume, low_new_thread, low_delete_thread>:
10689 Override methods.
10690
10691 2018-05-02 Pedro Alves <palves@redhat.com>
10692
10693 * target.h (target_ops)
10694 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10695 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
10696 stopped_by_watchpoint, have_continuable_watchpoint,
10697 stopped_data_address, watchpoint_addr_within_range,
10698 can_accel_watchpoint_condition, can_run, thread_alive,
10699 has_all_memory, has_memory, has_stack, has_registers,
10700 has_execution, can_async_p, is_async_p, supports_non_stop,
10701 always_non_stop_p, can_execute_reverse, supports_multi_process,
10702 supports_enable_disable_tracepoint,
10703 supports_disable_randomization, supports_string_tracing,
10704 supports_evaluation_of_breakpoint_conditions,
10705 can_run_breakpoint_commands, filesystem_is_local,
10706 can_download_tracepoint, get_trace_state_variable_value,
10707 set_trace_notes, get_tib_address, use_agent, can_use_agent,
10708 record_is_replaying, record_will_replay,
10709 augmented_libraries_svr4_read>: Adjust to return bool.
10710 * aarch64-linux-nat.c: All implementations adjusted.
10711 * aix-thread.c: All implementations adjusted.
10712 * arm-linux-nat.c: All implementations adjusted.
10713 * breakpoint.c: All implementations adjusted.
10714 * bsd-kvm.c: All implementations adjusted.
10715 * bsd-uthread.c: All implementations adjusted.
10716 * corelow.c: All implementations adjusted.
10717 * ctf.c: All implementations adjusted.
10718 * darwin-nat.c: All implementations adjusted.
10719 * darwin-nat.h: All implementations adjusted.
10720 * exec.c: All implementations adjusted.
10721 * fbsd-nat.c: All implementations adjusted.
10722 * fbsd-nat.h: All implementations adjusted.
10723 * gnu-nat.c: All implementations adjusted.
10724 * gnu-nat.h: All implementations adjusted.
10725 * go32-nat.c: All implementations adjusted.
10726 * ia64-linux-nat.c: All implementations adjusted.
10727 * inf-child.c: All implementations adjusted.
10728 * inf-child.h: All implementations adjusted.
10729 * inf-ptrace.c: All implementations adjusted.
10730 * inf-ptrace.h: All implementations adjusted.
10731 * linux-nat.c: All implementations adjusted.
10732 * linux-nat.h: All implementations adjusted.
10733 * mips-linux-nat.c: All implementations adjusted.
10734 * nto-procfs.c: All implementations adjusted.
10735 * ppc-linux-nat.c: All implementations adjusted.
10736 * procfs.c: All implementations adjusted.
10737 * ravenscar-thread.c: All implementations adjusted.
10738 * record-btrace.c: All implementations adjusted.
10739 * record-full.c: All implementations adjusted.
10740 * remote-sim.c: All implementations adjusted.
10741 * remote.c: All implementations adjusted.
10742 * s390-linux-nat.c: All implementations adjusted.
10743 * sol-thread.c: All implementations adjusted.
10744 * spu-multiarch.c: All implementations adjusted.
10745 * target-delegates.c: All implementations adjusted.
10746 * target.c: All implementations adjusted.
10747 * target.h: All implementations adjusted.
10748 * tracefile-tfile.c: All implementations adjusted.
10749 * tracefile.c: All implementations adjusted.
10750 * tracefile.h: All implementations adjusted.
10751 * windows-nat.c: All implementations adjusted.
10752 * x86-linux-nat.h: All implementations adjusted.
10753 * x86-nat.h: All implementations adjusted.
10754
10755 2018-05-02 Pedro Alves <palves@redhat.com>
10756
10757 * make-target-delegates (scan_target_h): Don't trim lines here.
10758 Replace sequences of tabs and/or whitespace with a single
10759 whitespace.
10760 (top level, parsing methods): Trim each line before processing it
10761 here.
10762
10763 2018-05-02 Pedro Alves <palves@redhat.com>
10764 John Baldwin <jhb@freebsd.org>
10765
10766 * target.h (enum strata) <debug_stratum>: New.
10767 (struct target_ops) <all delegation methods>: Replace by C++
10768 virtual methods, and drop "to_" prefix. All references updated
10769 throughout.
10770 <to_shortname, to_longname, to_doc, to_data,
10771 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
10772 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
10773 virtual methods. All references updated throughout.
10774 <can_attach, supports_terminal_ours, can_create_inferior,
10775 get_thread_control_capabilities, attach_no_wait>: New
10776 virtual methods.
10777 <insert_breakpoint, remove_breakpoint>: Now
10778 TARGET_DEFAULT_NORETURN methods.
10779 <info_proc>: Now returns bool.
10780 <to_magic>: Delete.
10781 (OPS_MAGIC): Delete.
10782 (current_target): Delete. All references replaced by references
10783 to ...
10784 (target_stack): ... this. New.
10785 (target_shortname, target_longname): Adjust.
10786 (target_can_run): Now a function declaration.
10787 (default_child_has_all_memory, default_child_has_memory)
10788 (default_child_has_stack, default_child_has_registers)
10789 (default_child_has_execution): Remove target_ops parameter.
10790 (complete_target_initialization): Delete.
10791 (memory_breakpoint_target): New template class.
10792 (test_target_ops): Refactor as a C++ class with virtual methods.
10793 * make-target-delegates (NAME_PART): Tighten.
10794 (POINTER_PART, CP_SYMBOL): New.
10795 (SIMPLE_RETURN_PART): Reimplement.
10796 (VEC_RETURN_PART): Expect less.
10797 (RETURN_PART, VIRTUAL_PART): New.
10798 (METHOD): Adjust to C++ virtual methods.
10799 (scan_target_h): Remove reference to C99.
10800 (dname): Output "target_ops::" prefix.
10801 (write_function_header): Adjust to output a C++ class method.
10802 (write_declaration): New.
10803 (write_delegator): Adjust to output a C++ class method.
10804 (tdname): Output "dummy_target::" prefix.
10805 (write_tdefault, write_debugmethod): Adjust to output a C++ class
10806 method.
10807 (tdefault_names, debug_names): Delete.
10808 (return_types, tdefaults, styles, argtypes_array): New.
10809 (top level): All methods are delegators.
10810 (print_class): New.
10811 (top level): Print dummy_target and debug_target classes.
10812 * target-delegates.c: Regenerate.
10813 * target-debug.h (target_debug_print_enum_info_proc_what)
10814 (target_debug_print_thread_control_capabilities)
10815 (target_debug_print_thread_info_p): New.
10816 * target.c (dummy_target): Delete.
10817 (the_dummy_target, the_debug_target): New.
10818 (target_stack): Now extern.
10819 (set_targetdebug): Push/unpush debug target.
10820 (default_child_has_all_memory, default_child_has_memory)
10821 (default_child_has_stack, default_child_has_registers)
10822 (default_child_has_execution): Remove target_ops parameter.
10823 (complete_target_initialization): Delete.
10824 (add_target_with_completer): No longer call
10825 complete_target_initialization.
10826 (target_supports_terminal_ours): Use regular delegation.
10827 (update_current_target): Delete.
10828 (push_target): No longer check magic number. Don't call
10829 update_current_target.
10830 (unpush_target): Don't call update_current_target.
10831 (target_is_pushed): No longer check magic number.
10832 (target_require_runnable): Skip for all stratums over
10833 process_stratum.
10834 (target_ops::info_proc): New.
10835 (target_info_proc): Use find_target_at and
10836 find_default_run_target.
10837 (target_supports_disable_randomization): Use regular delegation.
10838 (target_get_osdata): Use find_target_at.
10839 (target_ops::open, target_ops::close, target_ops::can_attach)
10840 (target_ops::attach, target_ops::can_create_inferior)
10841 (target_ops::create_inferior, target_ops::can_run)
10842 (target_can_run): New.
10843 (default_fileio_target): Use regular delegation.
10844 (target_ops::fileio_open, target_ops::fileio_pwrite)
10845 (target_ops::fileio_pread, target_ops::fileio_fstat)
10846 (target_ops::fileio_close, target_ops::fileio_unlink)
10847 (target_ops::fileio_readlink): New.
10848 (target_fileio_open_1, target_fileio_unlink)
10849 (target_fileio_readlink): Always call the target method. Handle
10850 FILEIO_ENOSYS.
10851 (return_zero, return_zero_has_execution): Delete.
10852 (init_dummy_target): Delete.
10853 (dummy_target::dummy_target, dummy_target::shortname)
10854 (dummy_target::longname, dummy_target::doc)
10855 (debug_target::debug_target, debug_target::shortname)
10856 (debug_target::longname, debug_target::doc): New.
10857 (target_supports_delete_record): Use regular delegation.
10858 (setup_target_debug): Delete.
10859 (maintenance_print_target_stack): Skip debug_stratum.
10860 (initialize_targets): Instantiate the_dummy_target and
10861 the_debug_target.
10862 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
10863 use target_stack.
10864 (target_auxv_search, fprint_target_auxv): Adjust.
10865 (info_auxv_command): Adjust to use target_stack.
10866 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
10867 * exceptions.c (print_flush): Handle a NULL target_stack.
10868 * regcache.c (target_ops_no_register): Refactor as class with
10869 virtual methods.
10870
10871 * exec.c (exec_target): New class.
10872 (exec_ops): Now an exec_target.
10873 (exec_open, exec_close_1, exec_get_section_table)
10874 (exec_xfer_partial, exec_files_info, exec_has_memory)
10875 (exec_make_note_section): Refactor as exec_target methods.
10876 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
10877 Delete.
10878 (exec_target::find_memory_regions): New.
10879 (_initialize_exec): Don't call init_exec_ops.
10880 * gdbcore.h (exec_file_clear): Delete.
10881
10882 * corefile.c (core_target): Delete.
10883 (core_file_command): Adjust.
10884 * corelow.c (core_target): New class.
10885 (the_core_target): New.
10886 (core_close): Remove target_ops parameter.
10887 (core_close_cleanup): Adjust.
10888 (core_target::close): New.
10889 (core_open, core_detach, get_core_registers, core_files_info)
10890 (core_xfer_partial, core_thread_alive, core_read_description)
10891 (core_pid_to_str, core_thread_name, core_has_memory)
10892 (core_has_stack, core_has_registers, core_info_proc): Rework as
10893 core_target methods.
10894 (ignore, core_remove_breakpoint, init_core_ops): Delete.
10895 (_initialize_corelow): Initialize the_core_target.
10896 * gdbcore.h (core_target): Delete.
10897 (the_core_target): New.
10898
10899 * ctf.c: (ctf_target): New class.
10900 (ctf_ops): Now a ctf_target.
10901 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
10902 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
10903 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
10904 methods.
10905 (init_ctf_ops): Delete.
10906 (_initialize_ctf): Don't call it.
10907 * tracefile-tfile.c (tfile_target): New class.
10908 (tfile_ops): Now a tfile_target.
10909 (tfile_open, tfile_close, tfile_files_info)
10910 (tfile_get_tracepoint_status, tfile_trace_find)
10911 (tfile_fetch_registers, tfile_xfer_partial)
10912 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
10913 Refactor as tfile_target methods.
10914 (tfile_xfer_partial_features): Remove target_ops parameter.
10915 (init_tfile_ops): Delete.
10916 (_initialize_tracefile_tfile): Don't call it.
10917 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
10918 (tracefile_has_stack, tracefile_has_registers)
10919 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
10920 tracefile_target methods.
10921 (init_tracefile_ops): Delete.
10922 (tracefile_target::tracefile_target): New.
10923 * tracefile.h: Include "target.h".
10924 (tracefile_target): New class.
10925 (init_tracefile_ops): Delete.
10926
10927 * spu-multiarch.c (spu_multiarch_target): New class.
10928 (spu_ops): Now a spu_multiarch_target.
10929 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
10930 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
10931 (spu_search_memory, spu_mourn_inferior): Refactor as
10932 spu_multiarch_target methods.
10933 (init_spu_ops): Delete.
10934 (_initialize_spu_multiarch): Remove references to init_spu_ops,
10935 complete_target_initialization.
10936
10937 * ravenscar-thread.c (ravenscar_thread_target): New class.
10938 (ravenscar_ops): Now a ravenscar_thread_target.
10939 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
10940 (ravenscar_thread_alive, ravenscar_pid_to_str)
10941 (ravenscar_fetch_registers, ravenscar_store_registers)
10942 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
10943 (ravenscar_stopped_by_hw_breakpoint)
10944 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
10945 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
10946 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
10947 methods.
10948 (init_ravenscar_thread_ops): Delete.
10949 (_initialize_ravenscar): Remove references to
10950 init_ravenscar_thread_ops and complete_target_initialization.
10951
10952 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
10953 (bsd_uthread_target): New class.
10954 (bsd_uthread_ops): Now a bsd_uthread_target.
10955 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
10956 (bsd_uthread_close, bsd_uthread_mourn_inferior)
10957 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
10958 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
10959 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
10960 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
10961 (bsd_uthread_target): Delete function.
10962 (_initialize_bsd_uthread): Remove reference to
10963 complete_target_initialization.
10964
10965 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
10966 (target_bfd): ... this new class.
10967 (target_bfd_xfer_partial, target_bfd_get_section_table)
10968 (target_bfd_close): Refactor as target_bfd methods.
10969 (target_bfd::~target_bfd): New.
10970 (target_bfd_reopen): Adjust.
10971 (target_bfd::close): New.
10972
10973 * record-btrace.c (record_btrace_target): New class.
10974 (record_btrace_ops): Now a record_btrace_target.
10975 (record_btrace_open, record_btrace_stop_recording)
10976 (record_btrace_disconnect, record_btrace_close)
10977 (record_btrace_async, record_btrace_info)
10978 (record_btrace_insn_history, record_btrace_insn_history_range)
10979 (record_btrace_insn_history_from, record_btrace_call_history)
10980 (record_btrace_call_history_range)
10981 (record_btrace_call_history_from, record_btrace_record_method)
10982 (record_btrace_is_replaying, record_btrace_will_replay)
10983 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
10984 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
10985 (record_btrace_store_registers, record_btrace_prepare_to_store)
10986 (record_btrace_to_get_unwinder)
10987 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
10988 (record_btrace_commit_resume, record_btrace_wait)
10989 (record_btrace_stop, record_btrace_can_execute_reverse)
10990 (record_btrace_stopped_by_sw_breakpoint)
10991 (record_btrace_supports_stopped_by_sw_breakpoint)
10992 (record_btrace_stopped_by_hw_breakpoint)
10993 (record_btrace_supports_stopped_by_hw_breakpoint)
10994 (record_btrace_update_thread_list, record_btrace_thread_alive)
10995 (record_btrace_goto_begin, record_btrace_goto_end)
10996 (record_btrace_goto, record_btrace_stop_replaying_all)
10997 (record_btrace_execution_direction)
10998 (record_btrace_prepare_to_generate_core)
10999 (record_btrace_done_generating_core): Refactor as
11000 record_btrace_target methods.
11001 (init_record_btrace_ops): Delete.
11002 (_initialize_record_btrace): Remove reference to
11003 init_record_btrace_ops.
11004 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
11005 the execution_direction global.
11006 (record_full_base_target, record_full_target)
11007 (record_full_core_target): New classes.
11008 (record_full_ops): Now a record_full_target.
11009 (record_full_core_ops): Now a record_full_core_target.
11010 (record_full_target::detach, record_full_target::disconnect)
11011 (record_full_core_target::disconnect)
11012 (record_full_target::mourn_inferior, record_full_target::kill):
11013 New.
11014 (record_full_open, record_full_close, record_full_async): Refactor
11015 as methods of the record_full_base_target class.
11016 (record_full_resume, record_full_commit_resume): Refactor
11017 as methods of the record_full_target class.
11018 (record_full_wait, record_full_stopped_by_watchpoint)
11019 (record_full_stopped_data_address)
11020 (record_full_stopped_by_sw_breakpoint)
11021 (record_full_supports_stopped_by_sw_breakpoint)
11022 (record_full_stopped_by_hw_breakpoint)
11023 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
11024 methods of the record_full_base_target class.
11025 (record_full_store_registers, record_full_xfer_partial)
11026 (record_full_insert_breakpoint, record_full_remove_breakpoint):
11027 Refactor as methods of the record_full_target class.
11028 (record_full_can_execute_reverse, record_full_get_bookmark)
11029 (record_full_goto_bookmark, record_full_execution_direction)
11030 (record_full_record_method, record_full_info, record_full_delete)
11031 (record_full_is_replaying, record_full_will_replay)
11032 (record_full_goto_begin, record_full_goto_end, record_full_goto)
11033 (record_full_stop_replaying): Refactor as methods of the
11034 record_full_base_target class.
11035 (record_full_core_resume, record_full_core_kill)
11036 (record_full_core_fetch_registers)
11037 (record_full_core_prepare_to_store)
11038 (record_full_core_store_registers, record_full_core_xfer_partial)
11039 (record_full_core_insert_breakpoint)
11040 (record_full_core_remove_breakpoint)
11041 (record_full_core_has_execution): Refactor
11042 as methods of the record_full_core_target class.
11043 (record_full_base_target::supports_delete_record): New.
11044 (init_record_full_ops): Delete.
11045 (init_record_full_core_ops): Delete.
11046 (record_full_save): Refactor as method of the
11047 record_full_base_target class.
11048 (_initialize_record_full): Remove references to
11049 init_record_full_ops and init_record_full_core_ops.
11050
11051 * remote.c (remote_target, extended_remote_target): New classes.
11052 (remote_ops): Now a remote_target.
11053 (extended_remote_ops): Now an extended_remote_target.
11054 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
11055 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
11056 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
11057 (remote_pass_signals, remote_set_syscall_catchpoint)
11058 (remote_program_signals, )
11059 (remote_thread_always_alive): Remove target_ops parameter.
11060 (remote_thread_alive, remote_thread_name)
11061 (remote_update_thread_list, remote_threads_extra_info)
11062 (remote_static_tracepoint_marker_at)
11063 (remote_static_tracepoint_markers_by_strid)
11064 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
11065 (remote_open): Refactor as methods of remote_target.
11066 (extended_remote_open, extended_remote_detach)
11067 (extended_remote_attach, extended_remote_post_attach):
11068 (extended_remote_supports_disable_randomization)
11069 (extended_remote_create_inferior): : Refactor as method of
11070 extended_remote_target.
11071 (remote_set_permissions, remote_open_1, remote_detach)
11072 (remote_follow_fork, remote_follow_exec, remote_disconnect)
11073 (remote_resume, remote_commit_resume, remote_stop)
11074 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
11075 (remote_terminal_ours, remote_wait, remote_fetch_registers)
11076 (remote_prepare_to_store, remote_store_registers)
11077 (remote_flash_erase, remote_flash_done, remote_files_info)
11078 (remote_kill, remote_mourn, remote_insert_breakpoint)
11079 (remote_remove_breakpoint, remote_insert_watchpoint)
11080 (remote_watchpoint_addr_within_range)
11081 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
11082 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
11083 (remote_supports_stopped_by_sw_breakpoint)
11084 (remote_stopped_by_hw_breakpoint)
11085 (remote_supports_stopped_by_hw_breakpoint)
11086 (remote_stopped_by_watchpoint, remote_stopped_data_address)
11087 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
11088 (remote_verify_memory): Refactor as methods of remote_target.
11089 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
11090 parameter.
11091 (remote_xfer_partial, remote_get_memory_xfer_limit)
11092 (remote_search_memory, remote_rcmd, remote_memory_map)
11093 (remote_pid_to_str, remote_get_thread_local_address)
11094 (remote_get_tib_address, remote_read_description): Refactor as
11095 methods of remote_target.
11096 (remote_target::fileio_open, remote_target::fileio_pwrite)
11097 (remote_target::fileio_pread, remote_target::fileio_close): New.
11098 (remote_hostio_readlink, remote_hostio_fstat)
11099 (remote_filesystem_is_local, remote_can_execute_reverse)
11100 (remote_supports_non_stop, remote_supports_disable_randomization)
11101 (remote_supports_multi_process, remote_supports_cond_breakpoints)
11102 (remote_supports_enable_disable_tracepoint)
11103 (remote_supports_string_tracing)
11104 (remote_can_run_breakpoint_commands, remote_trace_init)
11105 (remote_download_tracepoint, remote_can_download_tracepoint)
11106 (remote_download_trace_state_variable, remote_enable_tracepoint)
11107 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
11108 (remote_trace_start, remote_get_trace_status)
11109 (remote_get_tracepoint_status, remote_trace_stop)
11110 (remote_trace_find, remote_get_trace_state_variable_value)
11111 (remote_save_trace_data, remote_get_raw_trace_data)
11112 (remote_set_disconnected_tracing, remote_core_of_thread)
11113 (remote_set_circular_trace_buffer, remote_traceframe_info)
11114 (remote_get_min_fast_tracepoint_insn_len)
11115 (remote_set_trace_buffer_size, remote_set_trace_notes)
11116 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
11117 (remote_disable_btrace, remote_teardown_btrace)
11118 (remote_read_btrace, remote_btrace_conf)
11119 (remote_augmented_libraries_svr4_read, remote_load)
11120 (remote_pid_to_exec_file, remote_can_do_single_step)
11121 (remote_execution_direction, remote_thread_handle_to_thread_info):
11122 Refactor as methods of remote_target.
11123 (init_remote_ops, init_extended_remote_ops): Delete.
11124 (remote_can_async_p, remote_is_async_p, remote_async)
11125 (remote_thread_events, remote_upload_tracepoints)
11126 (remote_upload_trace_state_variables): Refactor as methods of
11127 remote_target.
11128 (_initialize_remote): Remove references to init_remote_ops and
11129 init_extended_remote_ops.
11130
11131 * remote-sim.c (gdbsim_target): New class.
11132 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
11133 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
11134 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
11135 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
11136 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
11137 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
11138 Refactor as methods of gdbsim_target.
11139 (gdbsim_ops): Now a gdbsim_target.
11140 (init_gdbsim_ops): Delete.
11141 (gdbsim_cntrl_c): Adjust.
11142 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
11143
11144 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
11145 (the_amd64_linux_nat_target): New.
11146 (amd64_linux_fetch_inferior_registers)
11147 (amd64_linux_store_inferior_registers): Refactor as methods of
11148 amd64_linux_nat_target.
11149 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
11150 * i386-linux-nat.c: Don't include "linux-nat.h".
11151 (i386_linux_nat_target): New class.
11152 (the_i386_linux_nat_target): New.
11153 (i386_linux_fetch_inferior_registers)
11154 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
11155 as methods of i386_linux_nat_target.
11156 (_initialize_i386_linux_nat): Adjust. Set linux_target.
11157 * inf-child.c (inf_child_ops): Delete.
11158 (inf_child_fetch_inferior_registers)
11159 (inf_child_store_inferior_registers): Delete.
11160 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
11161 methods of inf_child_target.
11162 (inf_child_target::supports_terminal_ours)
11163 (inf_child_target::terminal_init)
11164 (inf_child_target::terminal_inferior)
11165 (inf_child_target::terminal_ours_for_output)
11166 (inf_child_target::terminal_ours, inf_child_target::interrupt)
11167 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
11168 New.
11169 (inf_child_open, inf_child_disconnect, inf_child_close)
11170 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
11171 (inf_child_post_startup_inferior, inf_child_can_run)
11172 (inf_child_pid_to_exec_file): Refactor as methods of
11173 inf_child_target.
11174 (inf_child_follow_fork): Delete.
11175 (inf_child_target::can_create_inferior)
11176 (inf_child_target::can_attach): New.
11177 (inf_child_target::has_all_memory, inf_child_target::has_memory)
11178 (inf_child_target::has_stack, inf_child_target::has_registers)
11179 (inf_child_target::has_execution): New.
11180 (inf_child_fileio_open, inf_child_fileio_pwrite)
11181 (inf_child_fileio_pread, inf_child_fileio_fstat)
11182 (inf_child_fileio_close, inf_child_fileio_unlink)
11183 (inf_child_fileio_readlink, inf_child_use_agent)
11184 (inf_child_can_use_agent): Refactor as methods of
11185 inf_child_target.
11186 (return_zero, inf_child_target): Delete.
11187 (inf_child_target::inf_child_target): New.
11188 * inf-child.h: Include "target.h".
11189 (inf_child_target): Delete function prototype.
11190 (inf_child_target): New class.
11191 (inf_child_open_target, inf_child_mourn_inferior)
11192 (inf_child_maybe_unpush_target): Delete.
11193 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
11194 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
11195 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
11196 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
11197 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
11198 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
11199 (inf_ptrace_wait, inf_ptrace_xfer_partial)
11200 (inf_ptrace_thread_alive, inf_ptrace_files_info)
11201 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
11202 methods of inf_ptrace_target.
11203 (inf_ptrace_target): Delete function.
11204 * inf-ptrace.h: Include "inf-child.h".
11205 (inf_ptrace_target): Delete function declaration.
11206 (inf_ptrace_target): New class.
11207 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
11208 * linux-nat.c (linux_target): New.
11209 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
11210 (linux_nat_target::~linux_nat_target): New.
11211 (linux_child_post_attach, linux_child_post_startup_inferior)
11212 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
11213 (linux_child_remove_fork_catchpoint)
11214 (linux_child_insert_vfork_catchpoint)
11215 (linux_child_remove_vfork_catchpoint)
11216 (linux_child_insert_exec_catchpoint)
11217 (linux_child_remove_exec_catchpoint)
11218 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
11219 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
11220 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
11221 (linux_nat_stopped_data_address)
11222 (linux_nat_stopped_by_sw_breakpoint)
11223 (linux_nat_supports_stopped_by_sw_breakpoint)
11224 (linux_nat_stopped_by_hw_breakpoint)
11225 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
11226 (linux_nat_kill, linux_nat_mourn_inferior)
11227 (linux_nat_xfer_partial, linux_nat_thread_alive)
11228 (linux_nat_update_thread_list, linux_nat_pid_to_str)
11229 (linux_nat_thread_name, linux_child_pid_to_exec_file)
11230 (linux_child_static_tracepoint_markers_by_strid)
11231 (linux_nat_is_async_p, linux_nat_can_async_p)
11232 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
11233 (linux_nat_supports_multi_process)
11234 (linux_nat_supports_disable_randomization, linux_nat_async)
11235 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
11236 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
11237 (linux_nat_fileio_open, linux_nat_fileio_readlink)
11238 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
11239 methods of linux_nat_target.
11240 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
11241 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
11242 parameter.
11243 (check_stopped_by_watchpoint): Adjust.
11244 (linux_xfer_partial): Delete.
11245 (linux_target_install_ops, linux_target, linux_nat_add_target):
11246 Delete.
11247 (linux_nat_target::linux_nat_target): New.
11248 * linux-nat.h: Include "inf-ptrace.h".
11249 (linux_nat_target): New.
11250 (linux_target, linux_target_install_ops, linux_nat_add_target):
11251 Delete function declarations.
11252 (linux_target): Declare global.
11253 * linux-thread-db.c (thread_db_target): New.
11254 (thread_db_target::thread_db_target): New.
11255 (thread_db_ops): Delete.
11256 (the_thread_db_target): New.
11257 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
11258 (thread_db_update_thread_list, thread_db_pid_to_str)
11259 (thread_db_extra_thread_info)
11260 (thread_db_thread_handle_to_thread_info)
11261 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
11262 (thread_db_resume): Refactor as methods of thread_db_target.
11263 (init_thread_db_ops): Delete.
11264 (_initialize_thread_db): Remove reference to init_thread_db_ops.
11265 * x86-linux-nat.c: Don't include "linux-nat.h".
11266 (super_post_startup_inferior): Delete.
11267 (x86_linux_nat_target::~x86_linux_nat_target): New.
11268 (x86_linux_child_post_startup_inferior)
11269 (x86_linux_read_description, x86_linux_enable_btrace)
11270 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
11271 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
11272 methods of x86_linux_nat_target.
11273 (x86_linux_create_target): Delete. Bits folded ...
11274 (x86_linux_add_target): ... here. Now takes a linux_nat_target
11275 pointer.
11276 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
11277 (x86_linux_nat_target): New class.
11278 (x86_linux_create_target): Delete.
11279 (x86_linux_add_target): Now takes a linux_nat_target pointer.
11280 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
11281 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
11282 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
11283 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
11284 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
11285 make extern.
11286 (x86_use_watchpoints): Delete.
11287 * x86-nat.h: Include "breakpoint.h" and "target.h".
11288 (x86_use_watchpoints): Delete.
11289 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
11290 (x86_stopped_by_watchpoint, x86_stopped_data_address)
11291 (x86_insert_watchpoint, x86_remove_watchpoint)
11292 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
11293 (x86_stopped_by_hw_breakpoint): New declarations.
11294 (x86_nat_target): New template class.
11295
11296 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
11297 (the_ppc_linux_nat_target): New.
11298 (ppc_linux_fetch_inferior_registers)
11299 (ppc_linux_can_use_hw_breakpoint)
11300 (ppc_linux_region_ok_for_hw_watchpoint)
11301 (ppc_linux_ranged_break_num_registers)
11302 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
11303 (ppc_linux_insert_mask_watchpoint)
11304 (ppc_linux_remove_mask_watchpoint)
11305 (ppc_linux_can_accel_watchpoint_condition)
11306 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
11307 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
11308 (ppc_linux_watchpoint_addr_within_range)
11309 (ppc_linux_masked_watch_num_registers)
11310 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
11311 (ppc_linux_read_description): Refactor as methods of
11312 ppc_linux_nat_target.
11313 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
11314
11315 * procfs.c (procfs_xfer_partial): Delete forward declaration.
11316 (procfs_target): New class.
11317 (the_procfs_target): New.
11318 (procfs_target): Delete function.
11319 (procfs_auxv_parse, procfs_attach, procfs_detach)
11320 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
11321 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
11322 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
11323 (procfs_create_inferior, procfs_update_thread_list)
11324 (procfs_thread_alive, procfs_pid_to_str)
11325 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
11326 (procfs_stopped_data_address, procfs_insert_watchpoint)
11327 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
11328 (proc_find_memory_regions, procfs_info_proc)
11329 (procfs_make_note_section): Refactor as methods of procfs_target.
11330 (_initialize_procfs): Adjust.
11331 * sol-thread.c (sol_thread_target): New class.
11332 (sol_thread_ops): Now a sol_thread_target.
11333 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
11334 (sol_thread_fetch_registers, sol_thread_store_registers)
11335 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
11336 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
11337 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
11338 (init_sol_thread_ops): Delete.
11339 (_initialize_sol_thread): Adjust. Remove references to
11340 init_sol_thread_ops and complete_target_initialization.
11341
11342 * windows-nat.c (windows_nat_target): New class.
11343 (windows_fetch_inferior_registers)
11344 (windows_store_inferior_registers, windows_resume, windows_wait)
11345 (windows_attach, windows_detach, windows_pid_to_exec_file)
11346 (windows_files_info, windows_create_inferior)
11347 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
11348 (windows_close, windows_pid_to_str, windows_xfer_partial)
11349 (windows_get_tib_address, windows_get_ada_task_ptid)
11350 (windows_thread_name, windows_thread_alive): Refactor as
11351 windows_nat_target methods.
11352 (do_initial_windows_stuff): Adjust.
11353 (windows_target): Delete function.
11354 (_initialize_windows_nat): Adjust.
11355
11356 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
11357 (darwin_mourn_inferior, darwin_kill_inferior)
11358 (darwin_create_inferior, darwin_attach, darwin_detach)
11359 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
11360 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
11361 (darwin_supports_multi_process): Refactor as darwin_nat_target
11362 methods.
11363 (darwin_resume_to, darwin_files_info): Delete.
11364 (_initialize_darwin_inferior): Rename to ...
11365 (_initialize_darwin_nat): ... this. Adjust to C++ification.
11366 * darwin-nat.h: Include "inf-child.h".
11367 (darwin_nat_target): New class.
11368 (darwin_complete_target): Delete.
11369 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
11370 (darwin_target): New.
11371 (i386_darwin_fetch_inferior_registers)
11372 (i386_darwin_store_inferior_registers): Refactor as methods of
11373 darwin_nat_target.
11374 (darwin_complete_target): Delete, with ...
11375 (_initialize_i386_darwin_nat): ... bits factored out here.
11376
11377 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
11378 (the_alpha_linux_nat_target): New.
11379 (alpha_linux_register_u_offset): Refactor as
11380 alpha_linux_nat_target method.
11381 (_initialize_alpha_linux_nat): Adjust.
11382 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
11383 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11384 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
11385 methods of linux_nat_trad_target.
11386 (linux_trad_target): Delete.
11387 * linux-nat-trad.h (linux_trad_target): Delete function.
11388 (linux_nat_trad_target): New class.
11389 * mips-linux-nat.c (mips_linux_nat_target): New class.
11390 (super_fetch_registers, super_store_registers, super_close):
11391 Delete.
11392 (the_mips_linux_nat_target): New.
11393 (mips64_linux_regsets_fetch_registers)
11394 (mips64_linux_regsets_store_registers)
11395 (mips64_linux_fetch_registers, mips64_linux_store_registers)
11396 (mips_linux_register_u_offset, mips_linux_read_description)
11397 (mips_linux_can_use_hw_breakpoint)
11398 (mips_linux_stopped_by_watchpoint)
11399 (mips_linux_stopped_data_address)
11400 (mips_linux_region_ok_for_hw_watchpoint)
11401 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
11402 (mips_linux_close): Refactor as methods of mips_linux_nat.
11403 (_initialize_mips_linux_nat): Adjust to C++ification.
11404
11405 * aix-thread.c (aix_thread_target): New class.
11406 (aix_thread_ops): Now an aix_thread_target.
11407 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
11408 (aix_thread_fetch_registers, aix_thread_store_registers)
11409 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
11410 (aix_thread_thread_alive, aix_thread_pid_to_str)
11411 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
11412 Refactor as methods of aix_thread_target.
11413 (init_aix_thread_ops): Delete.
11414 (_initialize_aix_thread): Remove references to init_aix_thread_ops
11415 and complete_target_initialization.
11416 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
11417 (rs6000_nat_target): New class.
11418 (the_rs6000_nat_target): New.
11419 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
11420 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
11421 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
11422 (super_create_inferior): Delete.
11423 (_initialize_rs6000_nat): Adjust to C++ification.
11424
11425 * arm-linux-nat.c (arm_linux_nat_target): New class.
11426 (the_arm_linux_nat_target): New.
11427 (arm_linux_fetch_inferior_registers)
11428 (arm_linux_store_inferior_registers, arm_linux_read_description)
11429 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
11430 (arm_linux_remove_hw_breakpoint)
11431 (arm_linux_region_ok_for_hw_watchpoint)
11432 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
11433 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
11434 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
11435 arm_linux_nat_target.
11436 (_initialize_arm_linux_nat): Adjust to C++ification.
11437
11438 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
11439 (the_aarch64_linux_nat_target): New.
11440 (aarch64_linux_fetch_inferior_registers)
11441 (aarch64_linux_store_inferior_registers)
11442 (aarch64_linux_child_post_startup_inferior)
11443 (aarch64_linux_read_description)
11444 (aarch64_linux_can_use_hw_breakpoint)
11445 (aarch64_linux_insert_hw_breakpoint)
11446 (aarch64_linux_remove_hw_breakpoint)
11447 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
11448 (aarch64_linux_region_ok_for_hw_watchpoint)
11449 (aarch64_linux_stopped_data_address)
11450 (aarch64_linux_stopped_by_watchpoint)
11451 (aarch64_linux_watchpoint_addr_within_range)
11452 (aarch64_linux_can_do_single_step): Refactor as methods of
11453 aarch64_linux_nat_target.
11454 (super_post_startup_inferior): Delete.
11455 (_initialize_aarch64_linux_nat): Adjust to C++ification.
11456
11457 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
11458 (the_hppa_linux_nat_target): New.
11459 (hppa_linux_fetch_inferior_registers)
11460 (hppa_linux_store_inferior_registers): Refactor as methods of
11461 hppa_linux_nat_target.
11462 (_initialize_hppa_linux_nat): Adjust to C++ification.
11463
11464 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
11465 (the_ia64_linux_nat_target): New.
11466 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
11467 (ia64_linux_stopped_data_address)
11468 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
11469 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
11470 ia64_linux_nat_target methods.
11471 (super_xfer_partial): Delete.
11472 (_initialize_ia64_linux_nat): Adjust to C++ification.
11473
11474 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
11475 (the_m32r_linux_nat_target): New.
11476 (m32r_linux_fetch_inferior_registers)
11477 (m32r_linux_store_inferior_registers): Refactor as
11478 m32r_linux_nat_target methods.
11479 (_initialize_m32r_linux_nat): Adjust to C++ification.
11480
11481 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
11482 (the_m68k_linux_nat_target): New.
11483 (m68k_linux_fetch_inferior_registers)
11484 (m68k_linux_store_inferior_registers): Refactor as
11485 m68k_linux_nat_target methods.
11486 (_initialize_m68k_linux_nat): Adjust to C++ification.
11487
11488 * s390-linux-nat.c (s390_linux_nat_target): New class.
11489 (the_s390_linux_nat_target): New.
11490 (s390_linux_fetch_inferior_registers)
11491 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
11492 (s390_insert_watchpoint, s390_remove_watchpoint)
11493 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
11494 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
11495 (s390_auxv_parse, s390_read_description): Refactor as methods of
11496 s390_linux_nat_target.
11497 (_initialize_s390_nat): Adjust to C++ification.
11498
11499 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
11500 (the_sparc_linux_nat_target): New.
11501 (_initialize_sparc_linux_nat): Adjust to C++ification.
11502 * sparc-nat.c (sparc_fetch_inferior_registers)
11503 (sparc_store_inferior_registers): Remove target_ops parameter.
11504 * sparc-nat.h (sparc_fetch_inferior_registers)
11505 (sparc_store_inferior_registers): Remove target_ops parameter.
11506 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
11507 (the_sparc64_linux_nat_target): New.
11508 (_initialize_sparc64_linux_nat): Adjust to C++ification.
11509
11510 * spu-linux-nat.c (spu_linux_nat_target): New class.
11511 (the_spu_linux_nat_target): New.
11512 (spu_child_post_startup_inferior, spu_child_post_attach)
11513 (spu_child_wait, spu_fetch_inferior_registers)
11514 (spu_store_inferior_registers, spu_xfer_partial)
11515 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
11516 methods.
11517 (_initialize_spu_nat): Adjust to C++ification.
11518
11519 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
11520 (the_tilegx_linux_nat_target): New.
11521 (fetch_inferior_registers, store_inferior_registers):
11522 Refactor as methods.
11523 (_initialize_tile_linux_nat): Adjust to C++ification.
11524
11525 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
11526 (the_xtensa_linux_nat_target): New.
11527 (xtensa_linux_fetch_inferior_registers)
11528 (xtensa_linux_store_inferior_registers): Refactor as
11529 xtensa_linux_nat_target methods.
11530 (_initialize_xtensa_linux_nat): Adjust to C++ification.
11531
11532 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
11533 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
11534 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
11535 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
11536 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
11537 (fbsd_stopped_by_sw_breakpoint)
11538 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
11539 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
11540 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
11541 (fbsd_post_startup_inferior, fbsd_post_attach)
11542 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
11543 (fbsd_set_syscall_catchpoint)
11544 (super_xfer_partial, super_resume, super_wait)
11545 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
11546 (fbsd_handle_debug_trap): Remove target_ops parameter.
11547 (fbsd_nat_add_target): Delete.
11548 * fbsd-nat.h: Include "inf-ptrace.h".
11549 (fbsd_nat_add_target): Delete.
11550 (USE_SIGTRAP_SIGINFO): Define.
11551 (fbsd_nat_target): New class.
11552
11553 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
11554 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
11555 (amd64bsd_target): Delete.
11556 * amd64-bsd-nat.h: New file.
11557 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
11558 "x86-bsd-nat.h".
11559 (amd64_fbsd_nat_target): New class.
11560 (the_amd64_fbsd_nat_target): New.
11561 (amd64fbsd_read_description): Refactor as method of
11562 amd64_fbsd_nat_target.
11563 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11564 (_initialize_amd64fbsd_nat): Adjust to C++ification.
11565 * amd64-nat.h (amd64bsd_target): Delete function declaration.
11566 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
11567 (i386bsd_store_inferior_registers): Remove target_ops parameter.
11568 (i386bsd_target): Delete.
11569 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
11570 (i386bsd_fetch_inferior_registers)
11571 (i386bsd_store_inferior_registers): Declare.
11572 (i386_bsd_nat_target): New class.
11573 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
11574 (the_i386_fbsd_nat_target): New.
11575 (i386fbsd_resume, i386fbsd_read_description): Refactor as
11576 i386_fbsd_nat_target methods.
11577 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11578 (_initialize_i386fbsd_nat): Adjust to C++ification.
11579 * x86-bsd-nat.c (super_mourn_inferior): Delete.
11580 (x86bsd_mourn_inferior, x86bsd_target): Delete.
11581 (_initialize_x86_bsd_nat): Adjust to C++ification.
11582 * x86-bsd-nat.h: Include "x86-nat.h".
11583 (x86bsd_target): Delete declaration.
11584 (x86bsd_nat_target): New class.
11585
11586 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
11587 (the_aarch64_fbsd_nat_target): New.
11588 (aarch64_fbsd_fetch_inferior_registers)
11589 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
11590 aarch64_fbsd_nat_target.
11591 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
11592 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
11593 (the_alpha_bsd_nat_target): New.
11594 (alphabsd_fetch_inferior_registers)
11595 (alphabsd_store_inferior_registers): Refactor as
11596 alpha_bsd_nat_target methods.
11597 (_initialize_alphabsd_nat): Refactor as methods of
11598 alpha_bsd_nat_target.
11599 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
11600 (the_amd64_nbsd_nat_target): New.
11601 (_initialize_amd64nbsd_nat): Adjust to C++ification.
11602 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
11603 (the_amd64_obsd_nat_target): New.
11604 (_initialize_amd64obsd_nat): Adjust to C++ification.
11605 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
11606 (the_arm_fbsd_nat_target): New.
11607 (arm_fbsd_fetch_inferior_registers)
11608 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
11609 (_initialize_arm_fbsd_nat): Refactor as methods of
11610 arm_fbsd_nat_target.
11611 (_initialize_arm_fbsd_nat): Adjust to C++ification.
11612 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
11613 (the_arm_netbsd_nat_target): New.
11614 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
11615 arm_netbsd_nat_target.
11616 (_initialize_arm_netbsd_nat): Adjust to C++ification.
11617 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
11618 (the_hppa_nbsd_nat_target): New.
11619 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
11620 hppa_nbsd_nat_target methods.
11621 (_initialize_hppanbsd_nat): Adjust to C++ification.
11622 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
11623 (the_hppa_obsd_nat_target): New.
11624 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
11625 methods of hppa_obsd_nat_target.
11626 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
11627 add_target.
11628 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
11629 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
11630 add_target.
11631 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
11632 (_initialize_i386obsd_nat): Use add_target.
11633 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
11634 (the_m68k_bsd_nat_target): New.
11635 (m68kbsd_fetch_inferior_registers)
11636 (m68kbsd_store_inferior_registers): Refactor as methods of
11637 m68k_bsd_nat_target.
11638 (_initialize_m68kbsd_nat): Adjust to C++ification.
11639 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
11640 (the_mips_fbsd_nat_target): New.
11641 (mips_fbsd_fetch_inferior_registers)
11642 (mips_fbsd_store_inferior_registers): Refactor as methods of
11643 mips_fbsd_nat_target.
11644 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
11645 add_target.
11646 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
11647 (the_mips_nbsd_nat_target): New.
11648 (mipsnbsd_fetch_inferior_registers)
11649 (mipsnbsd_store_inferior_registers): Refactor as methods of
11650 mips_nbsd_nat_target.
11651 (_initialize_mipsnbsd_nat): Adjust to C++ification.
11652 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
11653 (the_mips64_obsd_nat_target): New.
11654 (mips64obsd_fetch_inferior_registers)
11655 (mips64obsd_store_inferior_registers): Refactor as methods of
11656 mips64_obsd_nat_target.
11657 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
11658 add_target.
11659 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
11660 nbsd_nat_target.
11661 * nbsd-nat.h: Include "inf-ptrace.h".
11662 (nbsd_nat_target): New class.
11663 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
11664 (obsd_wait): Refactor as methods of obsd_nat_target.
11665 (obsd_add_target): Delete.
11666 * obsd-nat.h: Include "inf-ptrace.h".
11667 (obsd_nat_target): New class.
11668 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
11669 (the_ppc_fbsd_nat_target): New.
11670 (ppcfbsd_fetch_inferior_registers)
11671 (ppcfbsd_store_inferior_registers): Refactor as methods of
11672 ppc_fbsd_nat_target.
11673 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
11674 add_target.
11675 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
11676 (the_ppc_nbsd_nat_target): New.
11677 (ppcnbsd_fetch_inferior_registers)
11678 (ppcnbsd_store_inferior_registers): Refactor as methods of
11679 ppc_nbsd_nat_target.
11680 (_initialize_ppcnbsd_nat): Adjust to C++ification.
11681 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
11682 (the_ppc_obsd_nat_target): New.
11683 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
11684 methods of ppc_obsd_nat_target.
11685 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
11686 add_target.
11687 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
11688 (the_sh_nbsd_nat_target): New.
11689 (shnbsd_fetch_inferior_registers)
11690 (shnbsd_store_inferior_registers): Refactor as methods of
11691 sh_nbsd_nat_target.
11692 (_initialize_shnbsd_nat): Adjust to C++ification.
11693 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
11694 (inf_ptrace_xfer_partial): Delete.
11695 (sparc_xfer_partial, sparc_target): Delete.
11696 * sparc-nat.h (sparc_fetch_inferior_registers)
11697 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
11698 (sparc_target): Delete function declaration.
11699 (sparc_target): New template class.
11700 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
11701 (_initialize_sparcnbsd_nat): Adjust to C++ification.
11702 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
11703 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
11704 add_target.
11705 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
11706 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
11707 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
11708 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
11709 add_target.
11710 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
11711 (the_vax_bsd_nat_target): New.
11712 (vaxbsd_fetch_inferior_registers)
11713 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
11714 methods.
11715 (_initialize_vaxbsd_nat): Adjust to C++ification.
11716
11717 * bsd-kvm.c (bsd_kvm_target): New class.
11718 (bsd_kvm_ops): Now a bsd_kvm_target.
11719 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
11720 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
11721 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
11722 bsd_kvm_target.
11723 (bsd_kvm_return_one): Delete.
11724 (bsd_kvm_add_target): Adjust to C++ification.
11725
11726 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
11727 (nto_procfs_target_procfs): New classes.
11728 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
11729 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
11730 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
11731 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
11732 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
11733 (procfs_remove_hw_breakpoint, procfs_resume)
11734 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
11735 (procfs_kill_inferior, procfs_store_registers)
11736 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
11737 as methods of nto_procfs_target.
11738 (nto_procfs_ops): Now an nto_procfs_target_procfs.
11739 (nto_native_ops): Delete.
11740 (procfs_open, procfs_native_open): Delete.
11741 (nto_native_ops): Now an nto_procfs_target_native.
11742 (init_procfs_targets): Adjust to C++ification.
11743 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
11744 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
11745 Refactor as methods of nto_procfs_target.
11746
11747 * go32-nat.c (go32_nat_target): New class.
11748 (the_go32_nat_target): New.
11749 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
11750 (go32_store_registers, go32_xfer_partial, go32_files_info)
11751 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
11752 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
11753 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
11754 (go32_pid_to_str): Refactor as methods of go32_nat_target.
11755 (go32_target): Delete.
11756 (_initialize_go32_nat): Adjust to C++ification.
11757
11758 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
11759 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
11760 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
11761 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
11762 gnu_nat_target.
11763 (gnu_target): Delete.
11764 * gnu-nat.h (gnu_target): Delete.
11765 (gnu_nat_target): New class.
11766 * i386-gnu-nat.c (gnu_base_target): New.
11767 (i386_gnu_nat_target): New class.
11768 (the_i386_gnu_nat_target): New.
11769 (_initialize_i386gnu_nat): Adjust to C++ification.
11770
11771 2018-05-02 Pedro Alves <palves@redhat.com>
11772
11773 * bfd-target.c (target_bfd_xclose): Rename to ...
11774 (target_bfd_close): ... this.
11775 (target_bfd_reopen): Adjust.
11776 * target.c (target_close): Remove references to to_xclose.
11777 * target.h (target_ops::to_xclose): Delete.
11778 (target_ops::to_close): Update comments.
11779
11780 2018-05-02 Pedro Alves <palves@redhat.com>
11781
11782 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
11783 "linux-nat.h".
11784 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
11785 * inf-ptrace.c (inf_ptrace_register_u_offset)
11786 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11787 (inf_ptrace_store_register, inf_ptrace_store_registers)
11788 (inf_ptrace_trad_target): Move to ...
11789 * linux-nat-trad.c: ... this new file.
11790 * linux-nat-trad.h: New file.
11791 * linux-nat.c (linux_target_install_ops): Make extern.
11792 (linux_trad_target): Delete.
11793 * linux-nat.h (linux_trad_target): Delete declaration.
11794 (linux_target_install_ops): Declare.
11795 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
11796 "linux-nat.h".
11797
11798 2018-05-02 Pedro Alves <palves@redhat.com>
11799
11800 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11801 procfs_target/add_target here.
11802 * procfs.c (procfs_target): Make static.
11803 (_initialize_procfs): Call add_target here.
11804 * procfs.h (struct target_ops): Remove forward declaration.
11805 (procfs_target): Remove declaration.
11806 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
11807
11808 2018-05-02 Pedro Alves <palves@redhat.com>
11809
11810 * procfs.c (procfs_stopped_by_watchpoint)
11811 (procfs_insert_watchpoint, procfs_remove_watchpoint)
11812 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
11813 Forward declare.
11814 (procfs_use_watchpoints): Delete, move contents...
11815 (procfs_target): ... here.
11816 * procfs.h (procfs_use_watchpoints): Delete declaration.
11817 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11818 procfs_use_watchpoints.
11819 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
11820 procfs_use_watchpoints.
11821
11822 2018-05-02 Tom Tromey <tom@tromey.com>
11823
11824 PR python/20084:
11825 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
11826 and var_zuinteger_unlimited.
11827 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
11828 and PARAM_ZUINTEGER_UNLIMITED.
11829 (set_parameter_value): Handle var_zuinteger and
11830 var_zuinteger_unlimited.
11831 (add_setshow_generic): Likewise.
11832 (parmpy_init): Likewise.
11833
11834 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
11835
11836 PR rust/23124
11837 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
11838 pointer is not null before dereferencing it.
11839
11840 2018-04-30 Tom Tromey <tom@tromey.com>
11841
11842 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
11843 is_mi_like_p.
11844
11845 2018-04-30 Tom Tromey <tom@tromey.com>
11846
11847 * breakpoint.c (mention): Remove use of is_mi_like_p.
11848 (print_mention_ranged_breakpoint): Likewise.
11849 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
11850 of is_mi_like_p.
11851
11852 2018-04-30 Tom Tromey <tom@tromey.com>
11853
11854 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
11855
11856 2018-04-30 Tom Tromey <tom@tromey.com>
11857
11858 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
11859 (info_spu_event_command): Remove some uses of is_mi_like_p.
11860
11861 2018-04-30 Tom Tromey <tom@tromey.com>
11862
11863 * python/py-framefilter.c (py_print_single_arg)
11864 (enumerate_locals, py_print_args, py_print_frame): Remove some
11865 uses of is_mi_like_p.
11866
11867 2018-04-30 Tom Tromey <tom@tromey.com>
11868
11869 * ui-out.c: Update.
11870 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
11871 * ui-out.h (ui_out::is_mi_like_p): Now const.
11872 (ui_out::do_is_mi_like_p): Now const.
11873 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
11874
11875 2018-04-30 Tom Tromey <tom@tromey.com>
11876
11877 * varobj.c (varobj_set_visualizer): Use new_reference.
11878 * python/python.c (gdbpy_decode_line): Use new_reference.
11879 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
11880 new_reference.
11881
11882 2018-04-30 Tom Tromey <tom@tromey.com>
11883
11884 * varobj.c (install_new_value): Use new_reference.
11885 * value.h (value_incref): Return void. Swap intro comment with
11886 value_decref.
11887 * value.c (set_value_parent): Use new_reference.
11888 (value_incref): Return void. Update intro comment.
11889 (release_value): Use new_reference.
11890 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
11891
11892 2018-04-30 Tom Tromey <tom@tromey.com>
11893
11894 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
11895 * gdb_bfd.h (new_bfd_ref): Remove.
11896 (gdb_bfd_open): Update comment.
11897 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11898 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
11899 (gdb_bfd_fdopenr): Use new_reference.
11900 * exec.c (exec_file_attach): Use new_reference.
11901
11902 2018-04-30 Tom Tromey <tom@tromey.com>
11903
11904 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
11905 method.
11906
11907 2018-04-30 Tom Tromey <tom@tromey.com>
11908
11909 * jit.c (jit_read_code_entry): Use type_align.
11910 * i386-tdep.c (i386_gdbarch_init): Don't call
11911 set_gdbarch_long_long_align_bit.
11912 * gdbarch.sh: Remove long_long_align_bit.
11913 * gdbarch.c, gdbarch.h: Rebuild.
11914 * arc-tdep.c (arc_type_align): New function.
11915 (arc_gdbarch_init): Use arc_type_align. Don't call
11916 set_gdbarch_long_long_align_bit.
11917
11918 2018-04-30 Tom Tromey <tom@tromey.com>
11919
11920 * rust-lang.c (rust_type_alignment): Remove.
11921 (rust_composite_type): Use type_align.
11922
11923 2018-04-30 Tom Tromey <tom@tromey.com>
11924
11925 * NEWS: Mention Type.align.
11926 * python/py-type.c (typy_get_alignof): New function.
11927 (type_object_getset): Add "alignof".
11928
11929 2018-04-30 Tom Tromey <tom@tromey.com>
11930
11931 PR exp/17095:
11932 * NEWS: Update.
11933 * std-operator.def (UNOP_ALIGNOF): New operator.
11934 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
11935 New.
11936 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
11937 * c-lang.c (c_op_print_tab): Add alignof.
11938 * c-exp.y (ALIGNOF): New token.
11939 (exp): Add "ALIGNOF" production.
11940 (ident_tokens): Add _Alignof and alignof.
11941
11942 2018-04-30 Tom Tromey <tom@tromey.com>
11943
11944 * i386-tdep.c (i386_type_align): New function.
11945 (i386_gdbarch_init): Update.
11946 * gdbarch.sh (type_align): New method.
11947 * gdbarch.c, gdbarch.h: Rebuild.
11948 * arch-utils.h (default_type_align): Declare.
11949 * arch-utils.c (default_type_align): New function.
11950 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
11951 (struct type) <align_log2>: New field.
11952 <instance_flags>: Now a bitfield.
11953 (TYPE_RAW_ALIGN): New macro.
11954 (type_align, type_raw_align, set_type_align): Declare.
11955 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
11956 functions.
11957 * dwarf2read.c (quirk_rust_enum): Set type alignment.
11958 (get_alignment, maybe_set_alignment): New functions.
11959 (read_structure_type, read_enumeration_type, read_array_type)
11960 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
11961 (read_subrange_type, read_base_type): Set type alignment.
11962
11963 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
11964
11965 * dwarf2read.c (read_index_from_section): Use bool.
11966
11967 2018-04-29 Fabian Groffen <grobian@gentoo.org>
11968
11969 PR gdb/22950
11970 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
11971 with #ifdef.
11972
11973 2018-04-29 John Reiser <jreiser@BitWagon.com>
11974
11975 PR build/22873
11976 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
11977 last step, and do it atomically.
11978
11979 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
11980
11981 * compile/compile-c-types.c (convert_int, convert_float):
11982 Update for C FE v1.
11983
11984 2018-04-27 Tom Tromey <tom@tromey.com>
11985
11986 PR rust/22545:
11987 * rust-lang.c (rust_inclusive_range_type_p): New function.
11988 (rust_range): Handle inclusive ranges.
11989 (rust_compute_range): Likewise.
11990 * rust-exp.y (struct rust_op) <inclusive>: New field.
11991 (DOTDOTEQ): New constant.
11992 (range_expr): Add "..=" productions.
11993 (operator_tokens): Add "..=" token.
11994 (ast_range): Add "inclusive" parameter.
11995 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
11996 ranges.
11997 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
11998 bounds values.
11999 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
12000 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
12001 Update comments.
12002 * expprint.c (print_subexp_standard): Handle new bounds values.
12003 (dump_subexp_body_standard): Likewise.
12004
12005 2018-04-27 Tom Tromey <tom@tromey.com>
12006
12007 * configure: Rebuild.
12008 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
12009 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
12010 "OVERRIDE".
12011 (class symbol_needs_eval_context): Likewise.
12012 * dwarf2read.c (mock_mapped_index::symbol_name_count)
12013 (mock_mapped_index::symbol_name_at): Use "override". Remove
12014 "virtual".
12015 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
12016 "override".
12017 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
12018 * aarch64-tdep.c (instruction_reader::read): Use "override".
12019 (instruction_reader_test::read): Likewise.
12020 * arm-tdep.c (instruction_reader::read): Use "override".
12021 (instruction_reader_thumb::read): Likewise.
12022
12023 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
12024
12025 PR remote/9665
12026 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
12027 instead of remote_send.
12028 (remote_send): Remove.
12029
12030 2018-04-26 Pedro Alves <palves@redhat.com>
12031
12032 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
12033 find_function_start_sal instead of find_pc_line.
12034
12035 2018-04-26 Pedro Alves <palves@redhat.com>
12036
12037 * breakpoint.c (set_breakpoint_location_function): Handle
12038 mst_data_gnu_ifunc.
12039 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
12040 * elfread.c (elf_symtab_read): Give data symbols with
12041 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
12042 (elf_rel_plt_read): Update comment.
12043 * linespec.c (convert_linespec_to_sals): Handle
12044 mst_data_gnu_ifunc.
12045 (minsym_found): Handle mst_data_gnu_ifunc.
12046 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
12047 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
12048 * parse.c (find_minsym_type_and_address): Handle
12049 mst_data_gnu_ifunc.
12050 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
12051 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
12052 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
12053 comment.
12054 <mst_data_gnu_ifunc>: New enumerator.
12055
12056 2018-04-26 Pedro Alves <palves@redhat.com>
12057
12058 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
12059 (lookup_minimal_symbol_by_pc_section): ... this. Replace
12060 'want_trampoline' parameter by a lookup_msym_prefer parameter.
12061 Handle it.
12062 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
12063 (lookup_minimal_symbol_by_pc): Adjust.
12064 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
12065 (lookup_solib_trampoline_symbol_by_pc): Adjust.
12066 * minsyms.h (lookup_msym_prefer): New enum.
12067 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
12068 parameter by a lookup_msym_prefer parameter.
12069
12070 2018-04-26 Pedro Alves <palves@redhat.com>
12071
12072 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
12073 ends in "@plt" instead of looking at the symbol's section.
12074
12075 2018-04-26 Pedro Alves <palves@redhat.com>
12076
12077 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
12078 all references.
12079 (find_pc_partial_function_gnu_ifunc): Rename to ...
12080 (find_pc_partial_function): ... this, and remove references to
12081 'is_gnu_ifunc_p'.
12082 (find_pc_partial_function): Delete old implementation.
12083 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
12084
12085 2018-04-26 Pedro Alves <palves@redhat.com>
12086
12087 * linespec.c (struct bound_minimal_symbol_search_key): New.
12088 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
12089 skip first line if we found a GNU ifunc minimal symbol by name.
12090 (compare_msymbols): Change parameters to work with a destructured
12091 lhs minsym.
12092 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
12093 functions.
12094
12095 2018-04-26 Pedro Alves <palves@redhat.com>
12096
12097 * breakpoint.c (set_breakpoint_location_function): Don't resolve
12098 ifunc targets here. Instead, if we have an ifunc minsym, use its
12099 address/name.
12100 (add_location_to_breakpoint): Store the minsym and the objfile in
12101 the breakpoint location.
12102 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
12103 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
12104 Record the minsym in the sal.
12105 * symtab.h (symtab_and_line) <msymbol>: New field.
12106
12107 2018-04-26 Pedro Alves <palves@redhat.com>
12108
12109 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
12110 unless we actually resolved the ifunc.
12111
12112 2018-04-26 Pedro Alves <palves@redhat.com>
12113
12114 * c-exp.y (variable production): Prefer ifunc minsyms over
12115 regular function symbols.
12116 * symtab.c (find_gnu_ifunc): New function.
12117 * minsyms.h (lookup_msym_prefer): New enum.
12118 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
12119 parameter by a lookup_msym_prefer parameter.
12120 * symtab.h (find_gnu_ifunc): New declaration.
12121
12122 2018-04-26 Pedro Alves <palves@redhat.com>
12123
12124 * blockframe.c (find_gnu_ifunc_target_type): New function.
12125 (find_function_type): New.
12126 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
12127 return a value with a memory address.
12128 (eval_call): For calls to GNU ifunc functions, try to find the
12129 type of the target function from the type that the resolver
12130 returns.
12131 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
12132 symbols.
12133 * infcall.c (find_function_return_type): Delete.
12134 (find_function_addr): Add 'function_type' parameter. For calls to
12135 GNU ifunc functions, try to find the type of the target function
12136 from the type that the resolver returns, and return it via
12137 FUNCTION_TYPE.
12138 (call_function_by_hand_dummy): Adjust to use the function type
12139 returned by find_function_addr.
12140 (find_function_addr): Add 'function_type' parameter and move
12141 description here.
12142 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
12143 declarations.
12144
12145 2018-04-26 Pedro Alves <palves@redhat.com>
12146
12147 * c-exp.y (variable production): Skip finding an alias for ifunc
12148 symbols.
12149
12150 2018-04-26 Pedro Alves <palves@redhat.com>
12151
12152 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
12153
12154 2018-04-25 Pedro Alves <palves@redhat.com>
12155
12156 * infcmd.c (kill_command): Print the pid as string, not the whole
12157 thread's ptid. Add comment. s/has been killed/killed/ in output
12158 message.
12159 * remote.c (remote_detach_1): Print the pid as string, not the
12160 whole thread's ptid.
12161
12162 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12163 Sergio Durigan Junior <sergiodj@redhat.com>
12164 Pedro Alves <palves@redhat.com>
12165
12166 * infcmd.c (kill_command): Print message when inferior has
12167 been killed.
12168 * inferior.c (print_inferior_events): Remove 'static'. Set as
12169 '1'.
12170 (add_inferior): Improve message printed when
12171 'print_inferior_events' is on.
12172 (exit_inferior): Remove message printed when
12173 'print_inferior_events' is on.
12174 (detach_inferior): Improve message printed when
12175 'print_inferior_events' is on.
12176 (initialize_inferiors): Use 'add_inferior_silent' to set
12177 'current_inferior_'.
12178 * inferior.h (print_inferior_events): Declare here as
12179 'extern'.
12180 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
12181 '[Detaching...]' messages when 'print_inferior_events' is on.
12182 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
12183 as prefix/suffix for messages. Remove periods. Fix erroneous
12184 'Detaching after fork from child...', replace it by '... from
12185 parent...'.
12186 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
12187 prefix/suffix when printing 'Detaching...' messages. Print
12188 them when 'print_inferior_events' is on.
12189 * remote.c (remote_detach_1): Print message when detaching
12190 from inferior and '!is_fork_parent'.
12191
12192 2018-04-24 Tom Tromey <tom@tromey.com>
12193
12194 * cli-out.h: Reindent.
12195
12196 2018-04-24 Tom Tromey <tom@tromey.com>
12197
12198 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
12199 (cli_ui_out::do_field_string): Use fputs_filtered.
12200 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
12201
12202 2018-04-23 Tom Tromey <tom@tromey.com>
12203
12204 * guile/scm-frame.c (gdbscm_frame_read_var): Use
12205 gdb::unique_xmalloc_ptr.
12206
12207 2018-04-23 Tom Tromey <tom@tromey.com>
12208
12209 * configure: Rebuild.
12210
12211 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
12212
12213 PR gdb/23095
12214 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
12215 prepare_for_testing. Set normal_bp to r_debug_state if target
12216 is bsd.
12217
12218 2018-04-21 Pedro Alves <palves@redhat.com>
12219 Rajendra SY <rajendra.sy@gmail.com>
12220
12221 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
12222 * remote.c (extended_remote_attach): In all-stop mode, mark the
12223 thread as executing.
12224
12225 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12226
12227 * thread.c (thread_apply_all_command): Fix comment.
12228 (thread_command): Fix comment.
12229
12230 2018-04-10 Alan Hayward <alan.hayward@arm.com>
12231
12232 * common/tdesc.h (tdesc_create_feature): Remove xml filename
12233 parameter.
12234 * features/aarch64-core.c (create_feature_aarch64_core):
12235 Regenerate.
12236 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
12237 Likewise.
12238 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
12239 Likewise.
12240 * features/i386/32bit-avx512.c
12241 (create_feature_i386_32bit_avx512): Likewise.
12242 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
12243 Likewise.
12244 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
12245 Likewise.
12246 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
12247 Likewise.
12248 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
12249 Likewise.
12250 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
12251 Likewise.
12252 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
12253 Likewise.
12254 * features/i386/64bit-avx512.c
12255 (create_feature_i386_64bit_avx512): Likewise.
12256 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
12257 Likewise.
12258 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
12259 Likewise.
12260 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
12261 Likewise.
12262 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
12263 Likewise.
12264 * features/i386/64bit-segments.c
12265 (create_feature_i386_64bit_segments): Likewise.
12266 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
12267 Likewise.
12268 * features/i386/x32-core.c
12269 (create_feature_i386_x32_core): Likewise.
12270 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
12271 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
12272 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
12273 * target-descriptions.c: In generated code, don't pass xml
12274 filename.
12275
12276 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12277
12278 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
12279 (print_xml_feature::visit_post): Likewise.
12280 (print_xml_feature::visit): Likewise.
12281 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
12282 (print_xml_feature): Add new class.
12283 * regformats/regdat.sh: Null xmltarget on feature targets.
12284 * target-descriptions.c (struct target_desc): Add xmltarget.
12285 (maintenance_check_tdesc_xml_convert): Add unittest function.
12286 (tdesc_get_features_xml): Add function to get xml.
12287 (maintenance_check_xml_descriptions): Test xml generation.
12288 * xml-tdesc.c (string_read_description_xml): Add function.
12289 * xml-tdesc.h (string_read_description_xml): Add declaration.
12290
12291 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12292
12293 * features/Makefile: Add feature marker to targets with new style
12294 target descriptions.
12295 * regformats/aarch64.dat: Regenerate.
12296 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
12297 * regformats/i386/amd64-avx-linux.dat: Likewise.
12298 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
12299 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
12300 * regformats/i386/amd64-linux.dat: Likewise.
12301 * regformats/i386/amd64-mpx-linux.dat: Likewise.
12302 * regformats/i386/amd64.dat: Likewise.
12303 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
12304 * regformats/i386/i386-avx-linux.dat: Likewise.
12305 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
12306 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
12307 * regformats/i386/i386-linux.dat: Likewise.
12308 * regformats/i386/i386-mmx-linux.dat: Likewise.
12309 * regformats/i386/i386-mpx-linux.dat: Likewise.
12310 * regformats/i386/i386.dat: Likewise.
12311 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
12312 * regformats/i386/x32-avx-linux.dat: Likewise.
12313 * regformats/i386/x32-linux.dat: Likewise.
12314 * regformats/tic6x-c62x-linux.dat: Likewise.
12315 * regformats/tic6x-c64x-linux.dat: Likewise.
12316 * regformats/tic6x-c64xp-linux.dat: Likewise.
12317 * regformats/regdat.sh: Parse feature marker.
12318
12319 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12320
12321 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
12322 (tdesc_osabi_name): Likewise.
12323 * target-descriptions.c (tdesc_architecture_name): Add new
12324 function.
12325 (tdesc_osabi_name): Likewise.
12326
12327 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12328
12329 * common/tdesc.c (tdesc_predefined_type): Move to here.
12330 (tdesc_named_type): Likewise.
12331 (tdesc_create_vector): Likewise.
12332 (tdesc_create_struct): Likewise.
12333 (tdesc_set_struct_size): Likewise.
12334 (tdesc_create_union): Likewise.
12335 (tdesc_create_flags): Likewise.
12336 (tdesc_create_enum): Likewise.
12337 (tdesc_add_field): Likewise.
12338 (tdesc_add_typed_bitfield): Likewise.
12339 (tdesc_add_bitfield): Likewise.
12340 (tdesc_add_flag): Likewise.
12341 (tdesc_add_enum_value): Likewise.
12342 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
12343 (struct tdesc_type_vector): Likewise.
12344 (struct tdesc_type_field): Likewise.
12345 (struct tdesc_type_with_fields): Likewise.
12346 (tdesc_create_enum): Add declaration.
12347 (tdesc_add_typed_bitfield): Likewise.
12348 (tdesc_add_enum_value): Likewise.
12349 * target-descriptions.c (tdesc_type_field): Move from here.
12350 (tdesc_type_builtin): Likewise.
12351 (tdesc_type_vector): Likewise.
12352 (tdesc_type_with_fields): Likewise.
12353 (tdesc_predefined_types): Likewise.
12354 (tdesc_named_type): Likewise.
12355 (tdesc_create_vector): Likewise.
12356 (tdesc_create_struct): Likewise.
12357 (tdesc_set_struct_size): Likewise.
12358 (tdesc_create_union): Likewise.
12359 (tdesc_create_flags): Likewise.
12360 (tdesc_create_enum): Likewise.
12361 (tdesc_add_field): Likewise.
12362 (tdesc_add_typed_bitfield): Likewise.
12363 (tdesc_add_bitfield): Likewise.
12364 (tdesc_add_flag): Likewise.
12365 (tdesc_add_enum_value): Likewise.
12366 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
12367 (tdesc_add_typed_bitfield): Likewise.
12368 (tdesc_add_enum_value): Likewise.
12369
12370 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12371
12372 * common/tdesc.c (tdesc_feature::accept): Move to here.
12373 (tdesc_feature::operator==): Likewise.
12374 (tdesc_create_reg): Likewise.
12375 * common/tdesc.h (tdesc_type_kind): Likewise.
12376 (struct tdesc_type): Likewise.
12377 (struct tdesc_feature): Likewise.
12378 * regformats/regdat.sh: Create a feature.
12379 * target-descriptions.c (tdesc_type_kind): Move from here.
12380 (tdesc_type): Likewise.
12381 (tdesc_type_up): Likewise.
12382 (tdesc_feature): Likewise.
12383 (tdesc_create_reg): Likewise.
12384
12385 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12386
12387 * Makefile.in: Add arch/tdesc.c
12388 * common/tdesc.c: New file.
12389 * common/tdesc.h (tdesc_element_visitor): Move to here.
12390 (tdesc_element): Likewise.
12391 (tdesc_reg): Likewise.
12392 (tdesc_reg_up): Likewise.
12393 * regformats/regdef.h (reg): Add offset to constructors.
12394 * target-descriptions.c (tdesc_element_visitor): Move from here.
12395 (tdesc_element): Likewise.
12396 (tdesc_reg): Likewise.
12397 (tdesc_reg_up): Likewise.
12398
12399 2018-04-17 Tom Tromey <tom@tromey.com>
12400
12401 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
12402 discriminant field.
12403
12404 2018-04-17 Tom Tromey <tom@tromey.com>
12405
12406 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
12407
12408 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
12409
12410 * symtab.c (print_symbol_info): Skip printing filename and line
12411 number when `last' is NULL.
12412 (symtab_symbol_info): Use empty string instead of NULL for first
12413 invocation of print_symbol_info.
12414 (rbreak_command): Pass NULL to `last' parameter of
12415 print_symbol_info.
12416
12417 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
12418
12419 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
12420 instead of nullptr.
12421
12422 2018-04-16 Pedro Alves <palves@redhat.com>
12423
12424 * MAINTAINERS (sh): Remove.
12425 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
12426 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
12427 (ALLDEPFILES): Remove sh64-tdep.c.
12428 * NEWS: Mentions that support for SH-5/SH64 is removed.
12429 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
12430 (sh*-*-openbsd*): Ditto.
12431 (sh64-*-elf*): Remove.
12432 (sh*): Remove.
12433 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
12434 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
12435 * sh-tdep.c: No longer include "sh64-tdep.h".
12436 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
12437 * sh64-tdep.c, sh64-tdep.h: Remove files.
12438
12439 2018-04-16 Pedro Alves <palves@redhat.com>
12440
12441 * MAINTAINERS: Remove m88k.
12442 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
12443 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
12444 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
12445 * NEWS: Mention that support for m88k was removed.
12446 * configure.host (m88*-*-*): Remove support.
12447 * configure.nat (m88k-*-*): Remove support.
12448 * configure.tgt (m88*-*-openbsd*): Remove.
12449 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
12450
12451 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
12452
12453 * configure.tgt (x86_tobjs): New variable.
12454 (amd64_tobjs, i386_tobjs): Use it.
12455
12456 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12457
12458 * symtab.c (print_symbol_info): Precede the symbol definition by
12459 the line number when available.
12460 * NEWS: Advertise this enhancement.
12461
12462 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12463
12464 * NEWS (New options): announce set/show record btrace cpu.
12465 * btrace.c: Include record-btrace.h.
12466 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
12467 the vendor is unknown.
12468 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
12469 Maybe overwrite the btrace configuration's cpu.
12470 (btrace_compute_ftrace): Add cpu parameter. Update callers.
12471 (btrace_fetch): Add cpu parameter. Update callers.
12472 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
12473 Maybe overwrite the btrace configuration's cpu. Skip enabling
12474 errata workarounds if the vendor is unknown.
12475 * python/py-record-btrace.c: Include record-btrace.h.
12476 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
12477 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
12478 * record-btrace.c (record_btrace_cpu_state_kind): New.
12479 (record_btrace_cpu): New.
12480 (set_record_btrace_cpu_cmdlist): New.
12481 (record_btrace_get_cpu): New.
12482 (require_btrace_thread, record_btrace_info)
12483 (record_btrace_resume_thread): Call record_btrace_get_cpu.
12484 (cmd_set_record_btrace_cpu_none): New.
12485 (cmd_set_record_btrace_cpu_auto): New.
12486 (cmd_set_record_btrace_cpu): New.
12487 (cmd_show_record_btrace_cpu): New.
12488 (_initialize_record_btrace): Initialize set/show record btrace cpu
12489 commands.
12490 * record-btrace.h (record_btrace_get_cpu): New.
12491
12492 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12493
12494 * record.c (set_record_command): Fix typo in message.
12495
12496 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12497
12498 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
12499
12500 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12501
12502 * infrun.c (process_event_stop_test): Call
12503 gdbarch_in_indirect_branch_thunk.
12504 * gdbarch.sh (in_indirect_branch_thunk): New.
12505 * gdbarch.c: Regenerated.
12506 * gdbarch.h: Regenerated.
12507 * x86-tdep.h: New.
12508 * x86-tdep.c: New.
12509 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
12510 (HFILES_NO_SRCDIR): Add x86-tdep.h.
12511 (ALLDEPFILES): Add x86-tdep.c.
12512 * arch-utils.h (default_in_indirect_branch_thunk): New.
12513 * arch-utils.c (default_in_indirect_branch_thunk): New.
12514 * i386-tdep: Include x86-tdep.h.
12515 (i386_in_indirect_branch_thunk): New.
12516 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
12517 function.
12518 * amd64-tdep: Include x86-tdep.h.
12519 (amd64_in_indirect_branch_thunk): New.
12520 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
12521
12522 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12523
12524 PR gdb/23053
12525 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
12526 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
12527 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
12528 regression.
12529
12530 2018-04-12 Tom Tromey <tom@tromey.com>
12531
12532 * rust-lang.c (rust_print_struct_def): Remove univariant code.
12533 (rust_evaluate_subexp): Likewise.
12534
12535 2018-04-12 Pedro Alves <palves@redhat.com>
12536
12537 * procfs.c (procfs_detach): Make forward declaration's prototype
12538 match definition's protototype.
12539 (proc_get_LDT_entry): Remove stale do_cleanups call.
12540
12541 2018-04-12 Pedro Alves <palves@redhat.com>
12542
12543 * target.h (target_ops::to_has_exited): Delete.
12544 (target_has_exited): Delete.
12545 * target-delegates.c: Regenerate.
12546
12547 2018-04-11 Pedro Alves <palves@redhat.com>
12548
12549 * target.c (fileio_fh_t::t): Add comment.
12550 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12551 (target_fileio_close): Handle a NULL target.
12552 (invalidate_fileio_fh): New.
12553 (target_close): Call it.
12554 * remote.c (remote_hostio_send_command): No longer check whether
12555 remote_desc is open.
12556
12557 2018-04-11 Pedro Alves <palves@redhat.com>
12558
12559 * target.c (fileio_fh_t): Make it a named struct instead of a
12560 typedef.
12561 (fileio_fh_t::is_closed): New method.
12562 (DEF_VEC_O (fileio_fh_t)): Remove.
12563 (fileio_fhandles): Now a std::vector.
12564 (is_closed_fileio_fh): Delete.
12565 (acquire_fileio_fd): Adjust. Rename parameters.
12566 (release_fileio_fd): Adjust.
12567 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
12568 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12569 (target_fileio_close): Adjust.
12570
12571 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
12572
12573 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
12574 index.
12575
12576 2018-04-10 Pedro Alves <palves@redhat.com>
12577
12578 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
12579 (scoped_finish_thread_state): New class.
12580 * infcmd.c (run_command_1): Use it instead of finish_thread_state
12581 cleanup.
12582 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
12583 (fetch_inferior_event, normal_stop): Likewise.
12584 * thread.c (finish_thread_state_cleanup): Delete.
12585
12586 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12587 Pedro Alves <palves@redhat.com>
12588
12589 * value.c: Include "selftest.h" and "common/array-view.h".
12590 (struct range) <operator ==>: New.
12591 (test_ranges_contain): New.
12592 (check_ranges_vector): New.
12593 (test_insert_into_bit_range_vector): New.
12594 (_initialize_values): Register selftests.
12595 * common/array-view.h (operator==, operator!=): New.
12596
12597 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12598
12599 * common/gdb_vecs.h (unordered_remove): Add overload that takes
12600 an iterator.
12601 * inline-frame.c: Include <algorithm>.
12602 (struct inline_state): Add constructor.
12603 (inline_state_s): Remove.
12604 (DEF_VEC_O(inline_state_s)): Remove.
12605 (inline_states): Change type to std::vector.
12606 (find_inline_frame_state): Adjust to std::vector.
12607 (allocate_inline_frame_state): Remove.
12608 (clear_inline_frame_state): Adjust to std::vector.
12609 (skip_inline_frames): Adjust to std::vector.
12610
12611 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12612
12613 * tracepoint.h (struct trace_state_variable): Add constructor.
12614 <name>: Change type to std::string.
12615 * tracepoint.c (tsv_s): Remove.
12616 (DEF_VEC_O(tsv_s)): Remove.
12617 (tvariables): Change to std::vector.
12618 (create_trace_state_variable): Adjust to std::vector.
12619 (find_trace_state_variable): Likewise.
12620 (find_trace_state_variable_by_number): Likewise.
12621 (delete_trace_state_variable): Likewise.
12622 (trace_variable_command): Adjust to std::string.
12623 (delete_trace_variable_command): Likewise.
12624 (tvariables_info_1): Adjust to std::vector.
12625 (save_trace_state_variables): Likewise.
12626 (start_tracing): Likewise.
12627 (merge_uploaded_trace_state_variables): Adjust to std::vector
12628 and std::string.
12629 * target.h (struct target_ops)
12630 <to_download_trace_state_variable>: Pass reference to
12631 trace_state_variable.
12632 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
12633 * target-delegates.c: Re-generate.
12634 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
12635 (mi_tsv_deleted): Likewise.
12636 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
12637 * remote.c (remote_download_trace_state_variable): Change
12638 pointer to reference and adjust.
12639 * make-target-delegates (parse_argtypes): Handle references.
12640 (write_function_header): Likewise.
12641 (munge_type): Likewise.
12642
12643 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12644
12645 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12646 string_view-selftests.c.
12647 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
12648 testsuite.
12649 * unittests/basic_string_view/cons/char/1.cc: Likewise.
12650 * unittests/basic_string_view/cons/char/2.cc: Likewise.
12651 * unittests/basic_string_view/cons/char/3.cc: Likewise.
12652 * unittests/basic_string_view/element_access/char/1.cc:
12653 Likewise.
12654 * unittests/basic_string_view/element_access/char/empty.cc:
12655 Likewise.
12656 * unittests/basic_string_view/element_access/char/front_back.cc:
12657 Likewise.
12658 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
12659 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
12660 Likewise.
12661 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
12662 Likewise.
12663 * unittests/basic_string_view/modifiers/swap/char/1.cc:
12664 Likewise.
12665 * unittests/basic_string_view/operations/compare/char/1.cc:
12666 Likewise.
12667 * unittests/basic_string_view/operations/compare/char/13650.cc:
12668 Likewise.
12669 * unittests/basic_string_view/operations/copy/char/1.cc:
12670 Likewise.
12671 * unittests/basic_string_view/operations/data/char/1.cc:
12672 Likewise.
12673 * unittests/basic_string_view/operations/find/char/1.cc:
12674 Likewise.
12675 * unittests/basic_string_view/operations/find/char/2.cc:
12676 Likewise.
12677 * unittests/basic_string_view/operations/find/char/3.cc:
12678 Likewise.
12679 * unittests/basic_string_view/operations/find/char/4.cc:
12680 Likewise.
12681 * unittests/basic_string_view/operations/rfind/char/1.cc:
12682 Likewise.
12683 * unittests/basic_string_view/operations/rfind/char/2.cc:
12684 Likewise.
12685 * unittests/basic_string_view/operations/rfind/char/3.cc:
12686 Likewise.
12687 * unittests/basic_string_view/operations/substr/char/1.cc:
12688 Likewise.
12689 * unittests/basic_string_view/operators/char/2.cc: Likewise.
12690 * unittests/string_view-selftests.c: New file.
12691
12692 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12693
12694 * unittests/basic_string_view/capacity/1.cc: New file.
12695 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
12696 * unittests/basic_string_view/cons/char/1.cc: New file.
12697 * unittests/basic_string_view/cons/char/2.cc: New file.
12698 * unittests/basic_string_view/cons/char/3.cc: New file.
12699 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
12700 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
12701 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
12702 * unittests/basic_string_view/element_access/char/1.cc: New file.
12703 * unittests/basic_string_view/element_access/char/2.cc: New file.
12704 * unittests/basic_string_view/element_access/char/empty.cc: New file.
12705 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
12706 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
12707 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
12708 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
12709 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
12710 * unittests/basic_string_view/include.cc: New file.
12711 * unittests/basic_string_view/inserters/char/1.cc: New file.
12712 * unittests/basic_string_view/inserters/char/2.cc: New file.
12713 * unittests/basic_string_view/inserters/char/3.cc: New file.
12714 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
12715 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
12716 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
12717 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
12718 * unittests/basic_string_view/literals/types.cc: New file.
12719 * unittests/basic_string_view/literals/values.cc: New file.
12720 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
12721 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
12722 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
12723 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
12724 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
12725 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
12726 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
12727 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
12728 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
12729 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
12730 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
12731 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
12732 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
12733 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
12734 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
12735 * unittests/basic_string_view/operations/data/char/1.cc: New file.
12736 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
12737 * unittests/basic_string_view/operations/find/char/1.cc: New file.
12738 * unittests/basic_string_view/operations/find/char/2.cc: New file.
12739 * unittests/basic_string_view/operations/find/char/3.cc: New file.
12740 * unittests/basic_string_view/operations/find/char/4.cc: New file.
12741 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
12742 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
12743 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
12744 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
12745 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
12746 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
12747 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
12748 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
12749 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
12750 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
12751 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
12752 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
12753 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
12754 * unittests/basic_string_view/operators/char/2.cc: New file.
12755 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
12756 * unittests/basic_string_view/range_access/char/1.cc: New file.
12757 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
12758 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
12759 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
12760 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
12761 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
12762 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
12763 * unittests/basic_string_view/requirements/typedefs.cc: New file.
12764 * unittests/basic_string_view/typedefs.cc: New file.
12765 * unittests/basic_string_view/types/1.cc: New file.
12766
12767 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12768
12769 * common/gdb_string_view.h: Remove libstdc++ implementation
12770 details, adjust to gdb reality.
12771 * common/gdb_string_view.tcc: Likewise.
12772 * cli/cli-script.c (struct string_view): Remove.
12773 (user_args) <m_args>: Change element type to gdb::string_view.
12774 (user_args::insert_args): Adjust.
12775
12776 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12777
12778 * common/gdb_string_view.h: New file.
12779 * common/gdb_string_view.tcc: New file.
12780
12781 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12782
12783 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
12784 * configure: Re-generate.
12785
12786 2018-04-09 Pedro Alves <palves@redhat.com>
12787
12788 * gdbarch.sh: Include "observable.h" instead of "observer.h".
12789 (set_target_gdbarch): Call
12790 gdb::observers::architecture_changed.notify instead of
12791 observer_notify_architecture_changed.
12792
12793 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12794
12795 * tracepoint.c (struct current_traceframe_cleanup): Remove.
12796 (do_restore_current_traceframe_cleanup): Remove.
12797 (restore_current_traceframe_cleanup_dtor): Remove.
12798 (make_cleanup_restore_current_traceframe): Remove.
12799 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
12800 New.
12801 * tracepoint.h (struct scoped_restore_current_traceframe): New.
12802 * infrun.c (fetch_inferior_event): Use
12803 scoped_restore_current_traceframe.
12804
12805 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12806
12807 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
12808 Remove.
12809 <n_allocated_type_units>: Remove.
12810 <all_type_units>: Change to std::vector.
12811 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12812 to std::vector change.
12813 (dwarf2_per_objfile::get_cutu): Likewise.
12814 (dwarf2_per_objfile::get_tu): Likewise.
12815 (create_signatured_type_table_from_index): Likewise.
12816 (create_signatured_type_table_from_debug_names): Likewise.
12817 (dw2_symtab_iter_next): Likewise.
12818 (dw2_print_stats): Likewise.
12819 (dw2_expand_all_symtabs): Likewise.
12820 (dw2_expand_marked_cus): Likewise.
12821 (dw2_debug_names_iterator::next): Likewise.
12822 (dwarf2_initialize_objfile): Likewise.
12823 (add_signatured_type_cu_to_table): Likewise.
12824 (create_all_type_units): Likewise.
12825 (add_type_unit): Likewise.
12826 (struct tu_abbrev_offset): Add constructor.
12827 (build_type_psymtabs_1): Adjust to std::vector change.
12828 (print_tu_stats): Likewise.
12829 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12830 (write_debug_names): Likewise.
12831
12832 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12833
12834 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
12835 Make an std::vector.
12836 <n_comp_units>: Remove.
12837 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12838 to std::vector change.
12839 (dwarf2_per_objfile::get_cutu): Likewise.
12840 (dwarf2_per_objfile::get_cu): Likewise.
12841 (create_cus_from_index): Likewise.
12842 (create_addrmap_from_index): Likewise.
12843 (create_addrmap_from_aranges): Likewise.
12844 (dwarf2_read_index): Likewise.
12845 (dw2_find_last_source_symtab): Likewise.
12846 (dw2_map_symtabs_matching_filename): Likewise.
12847 (dw2_symtab_iter_next): Likewise.
12848 (dw2_print_stats): Likewise.
12849 (dw2_expand_all_symtabs): Likewise.
12850 (dw2_expand_symtabs_with_fullname): Likewise.
12851 (dw2_expand_marked_cus): Likewise.
12852 (dw2_map_symbol_filenames): Likewise.
12853 (create_cus_from_debug_names): Likewise.
12854 (dwarf2_read_debug_names): Likewise.
12855 (dw2_debug_names_iterator::next): Likewise.
12856 (dwarf2_initialize_objfile): Likewise.
12857 (set_partial_user): Likewise.
12858 (dwarf2_build_psymtabs_hard): Likewise.
12859 (read_comp_units_from_section): Remove arguments, adjust to
12860 std::vector change.
12861 (create_all_comp_units): Adjust to std::vector and
12862 read_comp_units_from_section changes.
12863 (dwarf2_find_containing_comp_unit): Adjust to std::vector
12864 change.
12865 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12866 (psyms_seen_size): Likewise.
12867 (write_gdbindex): Likewise.
12868 (write_debug_names): Likewise.
12869
12870 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12871
12872 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
12873 with dwarf2_per_objfile.
12874 (create_cus_from_index): Likewise.
12875 (create_signatured_type_table_from_index): Likewise.
12876 (dwarf2_read_index): Likewise.
12877 (dwarf2_initialize_objfile): Likewise.
12878 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
12879 per_cu rather than get_dwarf2_per_objfile.
12880
12881 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12882
12883 * dwarf2read.h (struct signatured_type): Forward declare.
12884 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
12885 New methods.
12886 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
12887 (dw2_get_cutu): ...this.
12888 (dwarf2_per_objfile::get_cu): Rename from...
12889 (dw2_get_cu): ...this.
12890 (dwarf2_per_objfile::get_tu): New.
12891 (create_addrmap_from_index): Adjust.
12892 (create_addrmap_from_aranges): Adjust.
12893 (dw2_find_last_source_symtab): Adjust.
12894 (dw2_map_symtabs_matching_filename): Adjust.
12895 (dw2_symtab_iter_next): Adjust.
12896 (dw2_print_stats): Adjust.
12897 (dw2_expand_all_symtabs): Adjust.
12898 (dw2_expand_symtabs_with_fullname): Adjust.
12899 (dw2_expand_marked_cus): Adjust.
12900 (dw_expand_symtabs_matching_file_matcher): Adjust.
12901 (dw2_map_symbol_filenames): Adjust.
12902 (dw2_debug_names_iterator::next): Adjust.
12903 (dwarf2_initialize_objfile): Adjust.
12904 (set_partial_user): Adjust.
12905 (dwarf2_build_psymtabs_hard): Adjust.
12906
12907 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12908
12909 * dwarf2read.c (create_signatured_type_table_from_debug_names):
12910 Remove unused variables.
12911 (dw2_map_symtabs_matching_filename): Likewise.
12912 (dwarf2_record_block_ranges): Likewise.
12913 (dwarf2_read_addr_index): Likewise.
12914 (follow_die_offset): Likewise.
12915
12916 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12917
12918 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
12919 to symbol_file_add_main.
12920
12921 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12922
12923 PR mi/22299
12924 * mi/mi-console.c (do_fputc_async_safe): New.
12925 (mi_console_file::write_async_safe): New.
12926 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
12927 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
12928 New.
12929 * ui-file.c (ui_file::putstrn): Adjust call to
12930 fputstrn_unfiltered.
12931 * utils.c (printchar): Replace do_fputs and do_fprintf
12932 parameters by do_fputc.
12933 (fputstr_filtered): Adjust call to printchar.
12934 (fputstr_unfiltered): Likewise.
12935 (fputstrn_filtered): Likewise.
12936 (fputstrn_unfiltered): Add do_fputc parameter, pass to
12937 printchar.
12938 * utils.h (do_fputc_ftype): New typedef.
12939 (fputstrn_unfiltered): Add do_fputc parameter.
12940
12941 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12942
12943 * regformats/i386/i386-avx.dat: Remove.
12944
12945 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12946
12947 PR gdb/22979
12948 * amd64-tdep.c (amd64_none_init_abi): New function.
12949 (amd64_x32_none_init_abi): New function.
12950 (_initialize_amd64_tdep): Register handlers for x86-64 and
12951 x64_32 with GDB_OSABI_NONE.
12952 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
12953 GDB_OSABI_NONE osabi.
12954
12955 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12956
12957 PR gdb/22980
12958 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
12959 GDB_OSABI_NONE.
12960 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
12961 * osabi.c (gdb_osabi_names): Add "unknown" entry.
12962
12963 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12964
12965 * common/byte-vector.h (char_vector): New type.
12966 * target.h (target_read_alloc): Return
12967 gdb::optional<byte_vector>.
12968 (target_read_stralloc): Return gdb::optional<char_vector>.
12969 (target_get_osdata): Return gdb::optional<char_vector>.
12970 * target.c (target_read_alloc_1): Templatize. Replacement
12971 manual memory management with vector.
12972 (target_read_alloc): Change return type, adjust.
12973 (target_read_stralloc): Change return type, adjust.
12974 (target_get_osdata): Change return type, adjust.
12975 * auxv.c (struct auxv_info) <length>: Remove.
12976 <data>: Change type to gdb::optional<byte_vector>.
12977 (auxv_inferior_data_cleanup): Free auxv_info with delete.
12978 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
12979 (target_auxv_search): Adjust.
12980 (fprint_target_auxv): Adjust.
12981 * avr-tdep.c (avr_io_reg_read_command): Adjust.
12982 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
12983 (linux_make_corefile_notes): Adjust.
12984 * osdata.c (get_osdata): Adjust.
12985 * remote.c (remote_get_threads_with_qxfer): Adjust.
12986 (remote_memory_map): Adjust.
12987 (remote_traceframe_info): Adjust.
12988 (btrace_read_config): Adjust.
12989 (remote_read_btrace): Adjust.
12990 (remote_pid_to_exec_file): Adjust.
12991 * solib-aix.c (solib_aix_get_library_list): Adjust.
12992 * solib-dsbt.c (decode_loadmap): Don't free buf.
12993 (dsbt_get_initial_loadmaps): Adjust.
12994 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
12995 * solib-target.c (solib_target_current_sos): Adjust.
12996 * tracepoint.c (sdata_make_value): Adjust.
12997 * xml-support.c (xinclude_start_include): Adjust.
12998 (xml_fetch_content_from_file): Adjust.
12999 * xml-support.h (xml_fetch_another): Change return type.
13000 (xml_fetch_content_from_file): Change return type.
13001 * xml-syscall.c (xml_init_syscalls_info): Adjust.
13002 * xml-tdesc.c (file_read_description_xml): Adjust.
13003 (fetch_available_features_from_target): Change return type.
13004 (target_fetch_description_xml): Adjust.
13005 (target_read_description_xml): Adjust.
13006
13007 2018-04-06 Tom Tromey <tom@tromey.com>
13008
13009 * value.c (~value): Update.
13010 (struct value) <contents>: Now unique_xmalloc_ptr.
13011 (value_contents_bits_eq, allocate_value_contents)
13012 (value_contents_raw, value_contents_all_raw)
13013 (value_contents_for_printing, value_contents_for_printing_const)
13014 (set_value_enclosing_type): Update.
13015
13016 2018-04-06 Tom Tromey <tom@tromey.com>
13017
13018 * value.c (range_s): Remove typedef, VEC.
13019 (struct range): Add operator<.
13020 (range_lessthan): Remove.
13021 (ranges_contain): Change type.
13022 (~value): Update.
13023 (struct value) <unavailable, optimized_out>: Now std::vector.
13024 (value_entirely_available)
13025 (value_entirely_covered_by_range_vector)
13026 (value_entirely_unavailable, value_entirely_optimized_out):
13027 Update.
13028 (insert_into_bit_range_vector): Change argument type.
13029 (find_first_range_overlap): Likewise.
13030 (struct ranges_and_idx, value_contents_bits_eq)
13031 (require_not_optimized_out, require_available): Update.
13032 (ranges_copy_adjusted): Change argument types.
13033 (value_optimized_out, value_copy, value_fetch_lazy): Update.
13034
13035 2018-04-06 Tom Tromey <tom@tromey.com>
13036
13037 * value.c (~value): Update.
13038 (struct value) <parent>: Now a value_ref_ptr.
13039 (value_parent, set_value_parent, value_address, value_copy):
13040 Update.
13041
13042 2018-04-06 Tom Tromey <tom@tromey.com>
13043
13044 * value.c (struct value): Add constructor, destructor, and member
13045 initializers.
13046 (allocate_value_lazy, value_decref): Update.
13047
13048 2018-04-06 Tom Tromey <tom@tromey.com>
13049
13050 * value.c (struct value) <released, next>: Remove.
13051 (all_values): Now a std::vector.
13052 (allocate_value_lazy): Update.
13053 (value_next): Remove.
13054 (value_mark, value_free_to_mark, release_value)
13055 (value_release_to_mark): Update.
13056
13057 2018-04-06 Tom Tromey <tom@tromey.com>
13058
13059 * value.h (fetch_subexp_value, value_release_to_mark): Update.
13060 (free_value_chain): Remove.
13061 * value.c (free_value_chain): Remove.
13062 (value_release_to_mark): Return a std::vector.
13063 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
13064 std::vector.
13065 (check_condition): Update.
13066 * eval.c (fetch_subexp_value): Change "val_chain" to a
13067 std::vector.
13068 * breakpoint.c (update_watchpoint): Update.
13069 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
13070
13071 2018-04-06 Tom Tromey <tom@tromey.com>
13072
13073 * value.h (free_all_values): Remove.
13074 * value.c (free_all_values): Remove.
13075
13076 2018-04-06 Tom Tromey <tom@tromey.com>
13077
13078 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
13079 (value_history_chain, value_history_count): Remove.
13080 (value_history): New global.
13081 (record_latest_value, access_value_history, show_values)
13082 (preserve_values): Update.
13083
13084 2018-04-06 Tom Tromey <tom@tromey.com>
13085
13086 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
13087 * varobj.c (varobj_set_display_format, varobj_set_value)
13088 (install_default_visualizer, construct_visualizer)
13089 (install_new_value, ~varobj, varobj_get_value_type)
13090 (my_value_of_variable, varobj_editable_p): Update.
13091 * c-varobj.c (c_describe_child, c_value_of_variable)
13092 (cplus_number_of_children, cplus_describe_child): Update.
13093 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
13094 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
13095 (ada_value_of_variable, ada_value_is_changeable_p): Update.
13096
13097 2018-04-06 Tom Tromey <tom@tromey.com>
13098
13099 * printcmd.c (last_examine_address): Change type to
13100 value_ref_ptr.
13101 (do_examine, x_command): Update.
13102
13103 2018-04-06 Tom Tromey <tom@tromey.com>
13104
13105 * value.c (release_value): Update.
13106 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
13107 (struct bpstats) <val>: Now a value_ref_ptr.
13108 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
13109 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
13110 (~watchpoint, print_it_watchpoint, watch_command_1)
13111 (invalidate_bp_value_on_memory_change): Update.
13112
13113 2018-04-06 Tom Tromey <tom@tromey.com>
13114
13115 * varobj.c (varobj_clear_saved_item)
13116 (update_dynamic_varobj_children, install_new_value, ~varobj):
13117 Update.
13118 * value.h (value_incref): Move declaration earlier.
13119 (value_decref): Rename from value_free.
13120 (struct value_ref_policy): New.
13121 (value_ref_ptr): New typedef.
13122 (struct value_deleter): Remove.
13123 (gdb_value_up): Remove typedef.
13124 (release_value): Change return type.
13125 (release_value_or_incref): Remove.
13126 * value.c (set_value_parent): Update.
13127 (value_incref): Change return type.
13128 (value_decref): Rename from value_free.
13129 (value_free_to_mark, free_all_values, free_value_chain): Update.
13130 (release_value): Return value_ref_ptr.
13131 (release_value_or_incref): Remove.
13132 (record_latest_value, set_internalvar, clear_internalvar):
13133 Update.
13134 * stack.c (info_frame_command): Don't call value_free.
13135 * python/py-value.c (valpy_dealloc, valpy_new)
13136 (value_to_value_object): Update.
13137 * printcmd.c (do_examine): Update.
13138 * opencl-lang.c (lval_func_free_closure): Update.
13139 * mi/mi-main.c (register_changed_p): Don't call value_free.
13140 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
13141 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
13142 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
13143 value_free.
13144 * guile/scm-value.c (vlscm_free_value_smob)
13145 (vlscm_scm_from_value): Update.
13146 * frame.c (frame_register_unwind, frame_unwind_register_signed)
13147 (frame_unwind_register_unsigned, get_frame_register_bytes)
13148 (put_frame_register_bytes): Don't call value_free.
13149 * findvar.c (address_from_register): Don't call value_free.
13150 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
13151 * dwarf2loc.c (entry_data_value_free_closure)
13152 (value_of_dwarf_reg_entry, free_pieced_value_closure)
13153 (dwarf2_evaluate_loc_desc_full): Update.
13154 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
13155 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
13156 (~watchpoint, watch_command_1)
13157 (invalidate_bp_value_on_memory_change): Update.
13158 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
13159
13160 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
13161
13162 PR gdb/23022
13163 * warning.m4: Add -Wno-error=deprecated-register.
13164 * configure: Re-generate.
13165
13166 2018-04-05 Tom Tromey <tom@tromey.com>
13167
13168 * linespec.h: Remove include of "vec.h".
13169
13170 2018-04-05 Tom Tromey <tom@tromey.com>
13171
13172 * linespec.c (typep): Remove typedef.
13173 (find_methods, find_superclass_methods): Take a std::vector.
13174 (find_method): Use std::vector.
13175
13176 2018-04-05 Tom Tromey <tom@tromey.com>
13177
13178 * utils.c (compare_strings): Remove.
13179 * utils.h (compare_strings): Remove.
13180 * objc-lang.h (find_imps): Update.
13181 * objc-lang.c (find_methods): Take a std::vector.
13182 (uniquify_strings, find_imps): Likewise.
13183 * linespec.c (find_methods): Take a std::vector.
13184 (decode_objc): Use std::vector.
13185 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
13186 a std::vector.
13187 (find_method, find_function_symbols): Use std::vector.
13188
13189 2018-04-05 Tom Tromey <tom@tromey.com>
13190
13191 * completer.c (completion_tracker::completion_tracker): Remove
13192 cast.
13193 (completion_tracker::discard_completions): Likewise.
13194 * breakpoint.c (ambiguous_names_p): Remove cast.
13195 * ada-lang.c (_initialize_ada_language): Remove cast.
13196 * utils.h (streq): Update.
13197 (streq_hash): Add new declaration.
13198 * utils.c (streq): Return bool.
13199 (streq_hash): New function.
13200
13201 2018-04-05 Tom Tromey <tom@tromey.com>
13202
13203 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
13204 Remove a string copy.
13205
13206 2018-04-05 Tom Tromey <tom@tromey.com>
13207
13208 * linespec.c (filter_results): Use std::vector.
13209 (decode_line_2, decode_line_full): Update.
13210
13211 2018-04-05 Tom Tromey <tom@tromey.com>
13212
13213 * linespec.c (canonical_to_fullform): Return std::string.
13214 (filter_results): Update.
13215 (struct decode_line_2_item): Add constructor.
13216 <fullform, displayform>: Now std::string.
13217 (decode_line_2_compare_items): Now a std::sort comparator.
13218 (decode_line_2): Update.
13219
13220 2018-04-05 Tom Tromey <tom@tromey.com>
13221
13222 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
13223 (unexpected_linespec_error): Update.
13224 (linespec_parse_basic, parse_linespec): Update.
13225
13226 2018-04-05 Tom Tromey <tom@tromey.com>
13227
13228 * linespec.c (linespec_parse_basic): Reindent.
13229
13230 2018-04-05 Tom Tromey <tom@tromey.com>
13231
13232 * minsyms.h (iterate_over_minimal_symbols): Update.
13233 * minsyms.c (iterate_over_minimal_symbols): Take a
13234 gdb::function_view.
13235 * linespec.c (struct collect_minsyms): Remove.
13236 (compare_msyms): Now a std::sort comparator.
13237 (add_minsym): Add parameters.
13238 (search_minsyms_for_name): Update. Use std::vector.
13239
13240 2018-04-03 Tom Tromey <tom@tromey.com>
13241
13242 * mipsread.c (read_alphacoff_dynamic_symtab): Use
13243 gdb::byte_vector.
13244
13245 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
13246
13247 * MAINTAINERS (Write After Approval): Add Weimin Pan.
13248
13249 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
13250
13251 PR gdb/16959
13252 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
13253 printing static type.
13254
13255 2018-04-01 Tom Tromey <tom@tromey.com>
13256
13257 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
13258 (rs6000_xfer_shared_libraries): Update.
13259
13260 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13261
13262 * common/gdb_vecs.h (char_ptr): Remove.
13263 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
13264
13265 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
13266
13267 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
13268 with std::vector.
13269 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
13270
13271 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
13272
13273 * tracepoint.h (struct uploaded_tp): Initialize fields.
13274 <actions, step_actions, cmd_strings>: Change type to
13275 std::vector<char *>.
13276 * tracepoint.c (get_uploaded_tp): Allocate with new.
13277 (free_uploaded_tps): Free with delete.
13278 (parse_tracepoint_definition): Adjust to std::vector change.
13279 * breakpoint.c (read_uploaded_action): Likewise.
13280 (create_tracepoint_from_upload): Likewise.
13281 * ctf.c (ctf_write_uploaded_tp): Likewise.
13282 (SET_ARRAY_FIELD): Likewise.
13283 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
13284
13285 2018-03-30 Tom Tromey <tom@tromey.com>
13286
13287 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
13288 std::unique_ptr.
13289 (svr4_keep_data_in_core): Update.
13290 (svr4_read_so_list): Update.
13291
13292 2018-03-30 Tom Tromey <tom@tromey.com>
13293
13294 * windows-nat.c (handle_output_debug_string, handle_exception):
13295 Update.
13296 * target.h (target_read_string): Update.
13297 * target.c (target_read_string): Change "string" to
13298 unique_xmalloc_ptr.
13299 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
13300 Update.
13301 * solib-frv.c (frv_current_sos): Update.
13302 * solib-dsbt.c (dsbt_current_sos): Update.
13303 * solib-darwin.c (darwin_current_sos): Update.
13304 * linux-thread-db.c (inferior_has_bug): Update.
13305 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
13306 Update. Remove alloca.
13307 * ada-lang.c (ada_main_name): Update.
13308
13309 2018-03-30 Tom Tromey <tom@tromey.com>
13310
13311 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
13312 (struct dwo_file_deleter): New.
13313 (dwo_file_up): New typedef.
13314 (open_and_init_dwo_file): Use dwo_file_up.
13315 (free_dwo_file_cleanup): Remove.
13316
13317 2018-03-30 Tom Tromey <tom@tromey.com>
13318
13319 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
13320 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
13321
13322 2018-03-30 Tom Tromey <tom@tromey.com>
13323
13324 * dwarf2read.c (class free_cached_comp_units): New class.
13325 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
13326 (free_cached_comp_units): Remove function.
13327
13328 2018-03-30 Tom Tromey <tom@tromey.com>
13329
13330 * utils.h (make_cleanup_unpush_target): Remove.
13331 * inf-ptrace.c (struct target_unpusher): New.
13332 (target_unpush_up) New typedef.
13333 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
13334 target_unpush_up.
13335 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
13336
13337 2018-03-27 Tom Tromey <tom@tromey.com>
13338
13339 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
13340
13341 2018-03-27 Pedro Alves <palves@redhat.com>
13342 Tom Tromey <tom@tromey.com>
13343
13344 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
13345 destructor. Now a class.
13346 (gdb_readline_wrapper_cleanup): Remove function.
13347 (gdb_readline_wrapper): Remove cleanups.
13348
13349 2018-03-27 Tom Tromey <tom@tromey.com>
13350
13351 * typeprint.h (struct type_print_options) <local_typedefs,
13352 global_typedefs>: Remove "struct" keyword.
13353 (class typedef_hash_table): New class.
13354 (recursively_update_typedef_hash, add_template_parameters)
13355 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
13356 (find_typedef_in_hash): Don't declare.
13357 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
13358 (typedef_hash_table::recursively_update): Rename from
13359 recursively_update_typedef_hash. Now a member.
13360 (typedef_hash_table::add_template_parameters): Rename from
13361 add_template_parameters. Now a member.
13362 (typedef_hash_table::typedef_hash_table): Now a constructor;
13363 rename from create_typedef_hash.
13364 (typedef_hash_table::~typedef_hash_table): Now a destructor;
13365 rename from free_typedef_hash.
13366 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
13367 (do_free_global_table): Remove.
13368 (typedef_hash_table::typedef_hash_table): New constructor; renamed
13369 from copy_type_recursive.
13370 (create_global_typedef_table): Remove.
13371 (typedef_hash_table::find_global_typedef): Now a member of
13372 typedef_hash_table.
13373 (typedef_hash_table::find_typedef): Rename from
13374 find_typedef_in_hash; now a member.
13375 (whatis_exp): Update.
13376 * extension.h (struct ext_lang_type_printers): Add constructor and
13377 destructor.
13378 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
13379 declare.
13380 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
13381 Now a constructor; rename from start_ext_lang_type_printers.
13382 (ext_lang_type_printers): Now a destructor; rename from
13383 free_ext_lang_type_printers.
13384 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
13385 Update.
13386 (c_type_print_base_struct_union): Update. Remove cleanups.
13387
13388 2018-03-27 Tom Tromey <tom@tromey.com>
13389
13390 * dwarf-index-write.c: Include <cmath>.
13391
13392 2018-03-27 Joel Brobecker <brobecker@adacore.com>
13393
13394 * NEWS: Add entry describing new "set|show varsize-limit" command.
13395 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
13396 command.
13397 * printcmd.c (_initialize_printcmd): Add "set var" alias of
13398 "set variable".
13399
13400 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
13401
13402 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
13403 dwarf-index-write.c
13404 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
13405 * dwarf-index-common.c: New file.
13406 * dwarf-index-common.h: New file.
13407 * dwarf-index-write.c: New file.
13408 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
13409 (struct dwarf2_section_info): Move from here.
13410 (dwarf2_section_info_def): Likewise.
13411 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
13412 (offset_type): Likewise.
13413 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
13414 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
13415 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
13416 (byte_swap): Likewise.
13417 (MAYBE_SWAP): Likewise.
13418 (dwarf2_per_cu_ptr): Likewise.
13419 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
13420 (struct tu_stats): Likewise.
13421 (struct dwarf2_per_objfile): Likewise.
13422 (struct dwarf2_per_cu_data): Likewise.
13423 (struct signatured_type): Likewise.
13424 (sig_type_ptr): Likewise.
13425 (DEF_VEC_P (sig_type_ptr)): Likewise.
13426 (INDEX4_SUFFIX): Likewise.
13427 (INDEX5_SUFFIX): Likewise.
13428 (DEBUG_STR_SUFFIX): Likewise.
13429 (dwarf2_read_section): Make non-static.
13430 (mapped_index_string_hash): Move from here.
13431 (dwarf5_djb_hash): Likewise.
13432 (file_write): Likewise.
13433 (class data_buf): Likewise.
13434 (struct symtab_index_entry): Likewise.
13435 (struct mapped_symtab): Likewise.
13436 (find_slot): Likewise.
13437 (hash_expand): Likewise.
13438 (add_index_entry): Likewise.
13439 (uniquify_cu_indices): Likewise.
13440 (class c_str_view): Likewise.
13441 (class c_str_view_hasher): Likewise.
13442 (class vector_hasher): Likewise.
13443 (write_hash_table): Likewise.
13444 (psym_index_map): Likewise.
13445 (struct addrmap_index_data): Likewise.
13446 (add_address_entry): Likewise.
13447 (add_address_entry_worker): Likewise.
13448 (write_address_map): Likewise.
13449 (symbol_kind): Likewise.
13450 (write_psymbols): Likewise.
13451 (struct signatured_type_index_data): Likewise.
13452 (write_one_signatured_type): Likewise.
13453 (recursively_count_psymbols): Likewise.
13454 (recursively_write_psymbols): Likewise.
13455 (class debug_names): Likewise.
13456 (check_dwarf64_offsets): Likewise.
13457 (psyms_seen_size): Likewise.
13458 (write_gdbindex): Likewise.
13459 (write_debug_names): Likewise.
13460 (assert_file_size): Likewise.
13461 (write_psymtabs_to_index): Likewise.
13462 (save_gdb_index_command): Likewise.
13463 (_initialize_dwarf2_read): Don't register the "save gdb-index"
13464 command.
13465 * dwarf2read.h: New file.
13466
13467 2018-03-27 Joel Brobecker <brobecker@adacore.com>
13468
13469 PR gdb/22670
13470 * dwarf2read.c (dwarf2_physname): Do not return the demangled
13471 symbol name if the CU's language stores symbol names in linkage
13472 format.
13473 * language.h (struct language_defn)
13474 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
13475 all instances of this struct.
13476
13477 2018-03-26 Tom Tromey <tom@tromey.com>
13478
13479 * stack.c (backtrace_command_1): Remove verbose code.
13480
13481 2018-03-26 Tom Tromey <tom@tromey.com>
13482
13483 * python/py-framefilter.c (py_print_type): Don't catch
13484 exceptions. Return void.
13485 (py_print_value): Likewise.
13486 (py_print_single_arg): Likewise.
13487 (enumerate_args): Don't catch exceptions.
13488 (py_print_args): Likewise.
13489 (py_print_frame): Likewise.
13490 (gdbpy_apply_frame_filter): Catch exceptions here.
13491
13492 2018-03-26 Tom Tromey <tom@tromey.com>
13493
13494 * stack.c (_initialize_stack): Remove trailing newlines from help
13495 text. Add "Usage" line to "backtrace" help.
13496
13497 2018-03-26 Tom Tromey <tom@tromey.com>
13498
13499 PR python/16486:
13500 * python/py-framefilter.c (py_print_args): Call wrap_hint.
13501
13502 2018-03-26 Tom Tromey <tom@tromey.com>
13503
13504 * python/py-framefilter.c (py_print_single_arg): Return
13505 EXT_LANG_BT_ERROR from catch.
13506
13507 2018-03-26 Tom Tromey <tom@tromey.com>
13508
13509 PR backtrace/15584:
13510 * stack.c (backtrace_command_1): Move some code into no-filters
13511 "if".
13512
13513 2018-03-26 Tom Tromey <tom@tromey.com>
13514
13515 * python/py-framefilter.c (throw_quit_or_print_exception): New
13516 function.
13517 (gdbpy_apply_frame_filter): Use it.
13518
13519 2018-03-26 Tom Tromey <tom@tromey.com>
13520
13521 PR cli/17716:
13522 * python/py-framefilter.c (py_print_type, py_print_value)
13523 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
13524 RETURN_MASK_ERROR.
13525
13526 2018-03-26 Tom Tromey <tom@tromey.com>
13527
13528 * python/py-framefilter.c (enumerate_args): Use
13529 gdb::unique_xmalloc_ptr.
13530
13531 2018-03-26 Tom Tromey <tom@tromey.com>
13532
13533 * python/py-framefilter.c (py_print_frame): Return
13534 EXT_LANG_BT_OK.
13535 (gdbpy_apply_frame_filter): Update comment.
13536 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
13537 Remove.
13538 <EXT_LANG_BT_NO_FILTERS>: Change value.
13539
13540 2018-03-26 Tom Tromey <tom@tromey.com>
13541
13542 PR backtrace/15582:
13543 * stack.c (backtrace_command): Parse "hide" argument.
13544 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
13545 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
13546 constant.
13547
13548 2018-03-26 Tom Tromey <tom@tromey.com>
13549
13550 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
13551 add "flags".
13552 (backtrace_command): Remove "fulltrace", add "flags".
13553
13554 2018-03-26 Tom Tromey <tom@tromey.com>
13555
13556 * stack.c (backtrace_command): Rewrite command line parsing.
13557
13558 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
13559
13560 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
13561
13562 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
13563
13564 * filename-seen-cache.h: Add include guard.
13565
13566 2018-03-26 Keith Seitz <keiths@redhat.com>
13567
13568 * symfile.c (place_section): Remove "struct" from section_addr_info
13569 in comment.
13570 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
13571 "struct" keyword from section_addr_info.
13572
13573 2018-03-26 Alan Hayward <alan.hayward@arm.com>
13574
13575 * regformats/regdef.h (reg): Add constructors.
13576
13577 2018-03-25 Pedro Alves <palves@redhat.com>
13578
13579 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
13580 if then/else bodies in var_func_name extraction.
13581
13582 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
13583
13584 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
13585 lookup_minimal_symbol() to find symbol entry.
13586 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
13587
13588 2018-03-23 Keith Seitz <keiths@redhat.com>
13589
13590 PR c++/22968
13591 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
13592 nested type definitions for C++, too.
13593
13594 2018-03-23 Tom Tromey <tom@tromey.com>
13595
13596 * machoread.c (struct oso_el): Add a constructor. Don't define as
13597 a typedef.
13598 (macho_register_oso): Remove.
13599 (macho_symtab_read): Take a std::vector.
13600 (oso_el_compare_name): Now a std::sort comparator.
13601 (macho_symfile_read_all_oso): Take a std::vector.
13602 (macho_symfile_read): Use std::vector. Remove cleanups.
13603
13604 2018-03-22 Tom Tromey <tom@tromey.com>
13605
13606 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
13607 (record_full_goto_bookmark): Use std::string.
13608
13609 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13610
13611 PR tdep/18295
13612 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
13613 a single mask.
13614
13615 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13616
13617 * rs6000-tdep.c (store_insn_p): New function.
13618 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
13619 and cr_reg to their unshifted values. Use store_insn_p to
13620 match LR saves using either R1 or fdata->alloca_reg. Use
13621 store_insn_p to match CR saves. Set alloca_reg_offset
13622 when alloca_reg and framep are set. Remove lr_reg shift
13623 when assigning to fdata->lr_register.
13624
13625 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
13626
13627 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
13628 command line args instead of emitting a warning.
13629
13630 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13631
13632 * tracepoint.h (struct static_tracepoint_marker): Initialize
13633 fields, define default constructor, move constructor and move
13634 assignment, disable the rest.
13635 <str_id, extra>: Make std::string.
13636 (release_static_tracepoint_marker): Remove.
13637 (free_current_marker): Remove.
13638 * tracepoint.c (free_current_marker): Remove.
13639 (parse_static_tracepoint_marker_definition): Adjust to
13640 std::string, use new hex2str overload.
13641 (release_static_tracepoint_marker): Remove.
13642 (print_one_static_tracepoint_marker): Get marker by reference
13643 and adjust to std::string.
13644 (info_static_tracepoint_markers_command): Adjust to std::vector
13645 changes
13646 * target.h (static_tracepoint_marker_p): Remove typedef.
13647 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
13648 (struct target_ops) <to_static_tracepoint_marker_at>: Return
13649 bool.
13650 <to_static_tracepoint_markers_by_strid>: Return std::vector.
13651 * target-debug.h
13652 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
13653 (target_debug_print_std_vector_static_tracepoint_marker): New.
13654 (target_debug_print_struct_static_tracepoint_marker_p): Rename
13655 to...
13656 (target_debug_print_static_tracepoint_marker_p): ... this.
13657 * target-delegates.c: Re-generate.
13658 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
13659 Make std::string.
13660 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
13661 (decode_static_tracepoint_spec): Adjust to std::vector.
13662 (tracepoint_print_one_detail): Adjust to std::string.
13663 (strace_marker_decode_location): Adjust to std::string.
13664 (update_static_tracepoint): Adjust to std::string, remove call
13665 to release_static_tracepoint_marker.
13666 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
13667 Adjust to std::vector.
13668 * remote.c (remote_static_tracepoint_marker_at): Return bool.
13669 (remote_static_tracepoint_markers_by_strid): Adjust to
13670 std::vector.
13671 * common/rsp-low.h (hex2str): New overload with explicit count
13672 of bytes.
13673 * common/rsp-low.c (hex2str): New overload with explicit count
13674 of bytes.
13675 * unittests/rsp-low-selftests.c (test_hex2str): New function.
13676 (_initialize_rsp_low_selftests): Add test_hex2str test.
13677 * unittests/tracepoint-selftests.c
13678 (test_parse_static_tracepoint_marker_definition): Adjust to
13679 std::string.
13680
13681 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13682
13683 * tracepoint.c (parse_static_tracepoint_marker_definition):
13684 Consider case where the definition is followed by more
13685 definitions.
13686 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13687 tracepoint-selftests.c.
13688 * unittests/tracepoint-selftests.c: New.
13689
13690 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13691
13692 * MAINTAINERS (Write After Approval): Add Pedro Franco de
13693 Carvalho.
13694
13695 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13696
13697 * symtab.c (find_pc_sect_line): fixed indentation.
13698
13699 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13700
13701 * symtab.c (find_pc_sect_line): now uses binary search.
13702
13703 2018-03-19 Tom Tromey <tom@tromey.com>
13704
13705 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
13706 "IDENT" production.
13707
13708 2018-03-19 Pedro Alves <palves@redhat.com>
13709 Tom Tromey <tom@tromey.com>
13710
13711 * unittests/observable-selftests.c: New file.
13712 * common/observable.h: New file.
13713 * observable.h: New file.
13714 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
13715 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
13716 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
13717 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
13718 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
13719 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
13720 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
13721 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
13722 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
13723 python/py-breakpoint.c, python/py-finishbreakpoint.c,
13724 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
13725 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
13726 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
13727 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
13728 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
13729 tui/tui-interp.c, valops.c: Update all users.
13730 * tui/tui-hooks.c (tui_bp_created_observer)
13731 (tui_bp_deleted_observer, tui_bp_modified_observer)
13732 (tui_inferior_exit_observer, tui_before_prompt_observer)
13733 (tui_normal_stop_observer, tui_register_changed_observer):
13734 Remove.
13735 (tui_observers_token): New global.
13736 (attach_or_detach, tui_attach_detach_observers): New functions.
13737 (tui_install_hooks, tui_remove_hooks): Use
13738 tui_attach_detach_observers.
13739 * record-btrace.c (record_btrace_thread_observer): Remove.
13740 (record_btrace_thread_observer_token): New global.
13741 * observer.sh: Remove.
13742 * observer.c: Rename to observable.c.
13743 * observable.c (namespace gdb_observers): Define new objects.
13744 (observer_debug): Move into gdb_observers namespace.
13745 (struct observer, struct observer_list, xalloc_observer_list_node)
13746 (xfree_observer_list_node, generic_observer_attach)
13747 (generic_observer_detach, generic_observer_notify): Remove.
13748 (_initialize_observer): Update.
13749 Don't include observer.inc.
13750 * Makefile.in (generated_files): Remove observer.h, observer.inc.
13751 (clean mostlyclean): Likewise.
13752 (observer.h, observer.inc): Remove targets.
13753 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
13754 (COMMON_SFILES): Use observable.c, not observer.c.
13755 * .gitignore: Remove observer.h.
13756
13757 2018-03-18 Tom Tromey <tom@tromey.com>
13758
13759 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
13760 gdb::def_vector.
13761 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
13762
13763 2018-03-17 Tom Tromey <tom@tromey.com>
13764
13765 * auto-load.c (auto_load_objfile_script_1): Use std::string.
13766
13767 2018-03-17 Tom Tromey <tom@tromey.com>
13768
13769 * target.c (class scoped_target_fd): New.
13770 (target_fileio_close_cleanup): Remove.
13771 (target_fileio_read_alloc_1): Use scoped_target_fd.
13772
13773 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
13774
13775 * silent-rules.mk: New.
13776 * Makefile.in: Include silent-rules.mk
13777 (srcdir, VPATH, top_srcdir): Move up.
13778 (COMPILE): Add ECHO_CXX.
13779 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
13780 (init.c): Add ECHO_INIT_C.
13781 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
13782 (version.c): Add ECHO_GEN.
13783 (printcmd.o): Add ECHO_CXX.
13784 (target-float.o): Add ECHO_CXX.
13785 (ada-exp.o): Add ECHO_CXX.
13786 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
13787 (insight$(EXEEXT)): Add ECHO_CXXLD.
13788 * gnulib/configure.ac: Add AM_SILENT_RULES.
13789 * gnulib/aclocal.m4: Re-generate.
13790 * gnulib/configure: Re-generate.
13791 * gnulib/import/Makefile.in: Re-generate.
13792
13793 2018-03-16 Tom Tromey <tom@tromey.com>
13794
13795 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
13796 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
13797 * utils.c (do_free_section_addr_info)
13798 (make_cleanup_free_section_addr_info): Remove.
13799 * symfile.h (struct other_sections): Add constructor.
13800 (struct section_addr_info): Remove.
13801 (section_addr_info): New typedef.
13802 (struct sym_fns) <sym_offsets>: Change type of parameter.
13803 (build_section_addr_info_from_objfile)
13804 (relative_addr_info_to_section_offsets, addr_info_make_relative)
13805 (default_symfile_offsets, symbol_file_add)
13806 (symbol_file_add_from_bfd)
13807 (build_section_addr_info_from_section_table): Update.
13808 (alloc_section_addr_info, free_section_addr_info): Don't declare.
13809 * symfile.c (alloc_section_addr_info): Remove.
13810 (build_section_addr_info_from_section_table): Change return type.
13811 Update.
13812 (build_section_addr_info_from_bfd)
13813 (build_section_addr_info_from_objfile): Likewise.
13814 (free_section_addr_info): Remove.
13815 (relative_addr_info_to_section_offsets): Change type of "addrs".
13816 (addrs_section_compar): Now a std::sort comparator.
13817 (addrs_section_sort): Change return type.
13818 (addr_info_make_relative): Change type of "addrs". Update.
13819 (default_symfile_offsets, syms_from_objfile_1)
13820 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
13821 (symbol_file_add_separate): Update.
13822 (symbol_file_add): Change type of "addrs". Update.
13823 (add_symbol_file_command): Update. Remove cleanups.
13824 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
13825 cleanups.
13826 * symfile-debug.c (debug_sym_offsets): Change type of "info".
13827 * solib.c (solib_read_symbols): Update.
13828 * objfiles.c (objfile_relocate): Update. Remove cleanups.
13829 * machoread.c (macho_symfile_offsets): Update.
13830 * jit.c (jit_bfd_try_read_symtab): Update.
13831
13832 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
13833
13834 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13835 unittests/utils-selftests.c.
13836 * unittests/utils-selftests.c: New file.
13837
13838 2018-03-14 Tom Tromey <tom@tromey.com>
13839
13840 PR cli/14977:
13841 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
13842 for NULL.
13843
13844 2018-03-14 Tom Tromey <tom@tromey.com>
13845
13846 PR cli/19918:
13847 * printcmd.c (printf_pointer): Allow "-" in format.
13848
13849 2018-03-14 Tom Tromey <tom@tromey.com>
13850
13851 * printcmd.c (_initialize_printcmd): Add usage to printf.
13852
13853 2018-03-14 Yao Qi <qiyao@sourceware.org>
13854
13855 * MAINTAINERS: Update my email address.
13856
13857 2018-03-13 Tom Tromey <tom@tromey.com>
13858
13859 * machoread.c (macho_check_dsym): Change filenamep to a
13860 std::string*.
13861 (macho_symfile_read): Update.
13862 * symfile.c (load_command): Use std::string.
13863
13864 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
13865
13866 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
13867 to error message string.
13868 (riscv_register_name): Use xsnprintf instead of sprintf.
13869 (riscv_insn::fetch_instruction): Use gdb_assert instead of
13870 internal_error.
13871 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
13872 error.
13873 (riscv_push_dummy_call): Likewise.
13874
13875 2018-03-12 Tom Tromey <tom@tromey.com>
13876
13877 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
13878 Use gdb::byte_vector.
13879 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
13880
13881 2018-03-12 Yao Qi <yao.qi@linaro.org>
13882
13883 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
13884 parameter type to readable_regcache.
13885 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
13886 the declaration.
13887
13888 2018-03-11 Tom Tromey <tom@tromey.com>
13889
13890 * dwarf2read.c (struct nextfield): Add initializers.
13891 (struct nextfnfield): Remove.
13892 (struct fnfieldlist): Add initializers. Remove "length" and
13893 "head", use std::vector.
13894 (struct decl_field_list): Remove.
13895 (struct field_info): Add initializers.
13896 <fields, baseclasses>: Now std::vector.
13897 <nbaseclasses, nfnfields, typedef_field_list_count,
13898 nested_types_list_count>: Remove.
13899 (dwarf2_add_field, dwarf2_add_type_defn)
13900 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
13901 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
13902 (process_structure_scope): Update.
13903
13904 2018-03-11 Tom Tromey <tom@tromey.com>
13905
13906 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
13907 for use by std::sort.
13908 (build_type_psymtabs_1): Use std::vector.
13909
13910 2018-03-09 Eli Zaretskii <eliz@gnu.org>
13911
13912 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
13913 and LIBMPFR in the printed configuration.
13914
13915 2018-03-08 Tom Tromey <tom@tromey.com>
13916
13917 * source.c (get_filename_and_charpos): Use scoped_fd.
13918 * nto-procfs.c (procfs_open_1): Use scoped_fd.
13919 (procfs_pidlist): Likewise.
13920 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
13921 (iterate_over_mappings): Likewise.
13922
13923 2018-03-08 Tom Tromey <tom@tromey.com>
13924
13925 * infcall.c (struct call_return_meta_info)
13926 <stack_temporaries_enabled>: Remove.
13927 (get_call_return_value, call_function_by_hand_dummy): Update.
13928 * thread.c (disable_thread_stack_temporaries): Remove.
13929 (enable_thread_stack_temporaries): Remove.
13930 (thread_stack_temporaries_enabled_p): Return bool.
13931 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
13932 (get_last_thread_stack_temporary): Update.
13933 * eval.c (evaluate_subexp): Update.
13934 * gdbthread.h (class enable_thread_stack_temporaries): Now a
13935 class, not a function.
13936 (value_ptr, value_vec): Remove typedefs.
13937 (class thread_info) <stack_temporaries_enabled>: Now bool.
13938 <stack_temporaries>: Now a std::vector.
13939 (thread_stack_temporaries_enabled_p)
13940 (value_in_thread_stack_temporaries): Return bool.
13941
13942 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
13943
13944 * remote.c (putpkt_binary): Fix omitted bytes reporting.
13945 (getpkt_or_notif_sane_1): Likewise.
13946
13947 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13948
13949 * build-id.c (build_id_to_debug_bfd): Use std::string.
13950
13951 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13952
13953 * build-id.c (find_separate_debug_file_by_buildid): Return
13954 std::string.
13955 * build-id.h (find_separate_debug_file_by_buildid): Return
13956 std::string.
13957 * coffread.c (coff_symfile_read): Adjust to std::string.
13958 * elfread.c (elf_symfile_read): Adjust to std::string.
13959 * symfile.c (separate_debug_file_exists): Change parameter to
13960 std::string.
13961 (find_separate_debug_file): Return std::string.
13962 (find_separate_debug_file_by_debuglink): Return std::string.
13963 * symfile.h (find_separate_debug_file_by_debuglink): Return
13964 std::string.
13965
13966 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13967
13968 * common/xml-utils.c (xml_escape_text): Move code to...
13969 (xml_escape_text_append): ... this new function.
13970 * common/xml-utils.h (xml_escape_text_append): New declaration.
13971 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
13972 New function.
13973 (_initialize_xml_utils): register test_xml_escape_text_append as
13974 a selftest.
13975
13976 2018-03-07 Alan Hayward <alan.hayward@arm.com>
13977
13978 * defs.h: Remove MAX_REGISTER_SIZE.
13979 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
13980 asserts.
13981 * python/py-unwind.c (pyuw_sniffer): Likewise.
13982
13983 2018-03-07 Tom Tromey <tom@tromey.com>
13984
13985 * linux-tdep.c (linux_info_proc): Update.
13986 * target.h (struct target_ops) <to_fileio_readlink>: Return
13987 optional<string>.
13988 (target_fileio_readlink): Return optional<string>.
13989 * remote.c (remote_hostio_readlink): Return optional<string>.
13990 * inf-child.c (inf_child_fileio_readlink): Return
13991 optional<string>.
13992 * target.c (target_fileio_readlink): Return optional<string>.
13993
13994 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13995
13996 * regcache.c (cooked_read_test): Add riscv to the list of
13997 architectures that have a save_reggroup.
13998
13999 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
14000
14001 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
14002 value is not a dynamic class object.
14003
14004 2018-03-06 Tom Tromey <tom@tromey.com>
14005
14006 * rust-exp.y: Formatting fixes.
14007
14008 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14009
14010 * riscv-tdep.c (riscv_register_name): Remove target description
14011 support.
14012 (riscv_gdbarch_init): Remove target description check.
14013
14014 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14015
14016 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
14017 comment.
14018 * riscv-tdep.h: Likewise.
14019
14020 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14021
14022 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
14023 (riscv_pseudo_register_write): Delete.
14024 (riscv_gdbarch_init): Remove all use of pseudo registers.
14025
14026 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14027
14028 * record-btrace.c (btrace_print_lines): Replace cleanup
14029 parameter with RAII equivalents.
14030 (btrace_insn_history): Replace cleanup with RAII equivalents.
14031 * ui-out.h (make_cleanup_ui_out_list_begin_end,
14032 make_cleanup_ui_out_tuple_begin_end): Remove.
14033 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
14034 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
14035 make_cleanup_ui_out_list_begin_end): Remove.
14036
14037 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14038
14039 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
14040 parameter types to std::vector. Use bool.
14041 (record_btrace_wait): Replace VEC(tp_t) with
14042 std::vector<thread_info *>.
14043 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
14044
14045 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14046
14047 * record-btrace.c (record_btrace_disable_callback): Remove.
14048 (struct scoped_btrace_disable): New.
14049 (record_btrace_open): Use scoped_btrace_disable.
14050
14051 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14052
14053 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
14054 reading values from registers.
14055
14056 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14057
14058 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
14059 where appropriate.
14060
14061 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14062
14063 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
14064 change parameter type. Use GDB's print functions, and use
14065 core_addr_to_string where appropriate.
14066 (riscv_push_dummy_call): Use core_addr_to_string where
14067 appropriate, update call to riscv_print_arg_location, and reindent
14068 a few lines.
14069 (riscv_return_value): Update call to riscv_print_arg_location.
14070
14071 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14072 Tim Newsome <tim@sifive.com>
14073 Albert Ou <a0u@eecs.berkeley.edu>
14074 Darius Rad <darius@bluespec.com>
14075
14076 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
14077 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
14078 (ALLDEPFILES): Add riscv-tdep.c
14079 * configure.tgt: Add riscv support.
14080 * riscv-tdep.c: New file.
14081 * riscv-tdep.h: New file.
14082 * NEWS: Mention new target.
14083 * MAINTAINERS: Add entry for riscv.
14084
14085 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14086
14087 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
14088 fields within aggregates.
14089
14090 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
14091
14092 * record-btrace.c (btrace_print_lines): Change type of flags to
14093 gdb_disassembly_flags.
14094
14095 2018-03-04 John Baldwin <jhb@FreeBSD.org>
14096
14097 * fbsd-nat.c: Include "inf-ptrace.h".
14098 (USE_SIGTRAP_SIGINFO): Conditionally define.
14099 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
14100 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
14101 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
14102 function.
14103 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
14104 Likewise.
14105 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
14106 Likewise.
14107 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
14108 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
14109 "supports_stopped_by_hw_breakpoint" target methods.
14110
14111 2018-03-04 John Baldwin <jhb@FreeBSD.org>
14112
14113 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
14114 * fbsd-nat.c (debug_fbsd_nat): New variable.
14115 (show_fbsd_nat_debug): New function.
14116 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
14117 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
14118
14119 2018-03-04 John Baldwin <jhb@FreeBSD.org>
14120
14121 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
14122 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
14123 prototype.
14124 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
14125 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
14126 method.
14127
14128 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14129
14130 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
14131 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
14132
14133 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14134
14135 * charset.c (struct charset_vector): New.
14136 (charsets): Change type to charset_vector.
14137 (find_charset_names): Adjust.
14138 (add_one): Adjust.
14139 (_initialize_charset): Adjust.
14140
14141 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14142
14143 * progspace.h (struct program_space) <deleted_solibs>: Change
14144 type to std::vector<std::string>.
14145 * progspace.c (clear_program_space_solib_cache): Adjust.
14146 * breakpoint.c (print_solib_event): Adjust.
14147 (check_status_catch_solib): Adjust.
14148 * solib.c (update_solib_list): Adjust.
14149 * ui-out.h (class ui_out) <field_string>: New overload.
14150 * ui-out.c (ui_out::field_string): New overload.
14151
14152 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14153
14154 * progspace.h (struct program_space): Add constructor and
14155 destructor, initialize fields.
14156 (add_program_space): Remove.
14157 * progspace.c (add_program_space): Rename to...
14158 (program_space::program_space): ... this.
14159 (release_program_space): Rename to...
14160 (program_space::~program_space): ... this.
14161 (delete_program_space): Use delete to delete program_space.
14162 (initialize_progspace): Use new to allocate program_space.
14163 * inferior.c (add_inferior_with_spaces): Likewise.
14164 (clone_inferior_command): Likewise.
14165 * infrun.c (follow_fork_inferior): Likewise.
14166 (handle_vfork_child_exec_or_exit): Likewise.
14167
14168 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14169
14170 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
14171 (delim_string_to_char_ptr_vec): Return std::vector of
14172 gdb::unique_xmalloc_ptr.
14173 (dirnames_to_char_ptr_vec_append): Take std::vector of
14174 gdb::unique_xmalloc_ptr.
14175 (dirnames_to_char_ptr_vec): Return std::vector of
14176 gdb::unique_xmalloc_ptr.
14177 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
14178 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
14179 (delim_string_to_char_ptr_vec): Return an std::vector of
14180 gdb::unique_xmalloc_ptr, adjust the code.
14181 (dirnames_to_char_ptr_vec_append): Take an std::vector of
14182 gdb::unique_xmalloc_ptr, adjust the code.
14183 (dirnames_to_char_ptr_vec): Return an std::vector of
14184 gdb::unique_xmalloc_ptr, adjust the code.
14185 * auto-load.c (auto_load_safe_path_vec): Change type to
14186 std::vector of gdb::unique_xmalloc_ptr.
14187 (auto_load_expand_dir_vars): Return an std::vector of
14188 gdb::unique_xmalloc_ptr, adjust the code.
14189 (auto_load_safe_path_vec_update): Adjust.
14190 (filename_is_in_auto_load_safe_path_vec): Adjust.
14191 (auto_load_objfile_script_1): Adjust.
14192 * build-id.c (build_id_to_debug_bfd): Adjust.
14193 * linux-thread-db.c (thread_db_load_search): Adjust.
14194 * source.c (add_path): Adjust.
14195 (openp): Adjust.
14196 * symfile.c (find_separate_debug_file): Adjust.
14197 * utils.c (do_free_char_ptr_vec): Remove.
14198 (make_cleanup_free_char_ptr_vec): Remove.
14199
14200 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
14201
14202 PR gdb/22907
14203 * common/pathstuff.c: Conditionally include "<windows.h>".
14204
14205 2018-03-01 Georg Sauthoff <mail@georg.so>
14206
14207 PR gdb/22888
14208 * gcore.in: Quote variables and switch interpreter to bash.
14209
14210 2018-03-01 Tom Tromey <tom@tromey.com>
14211
14212 * dwarf2read.c (alloc_discriminant_info): Fix default_index
14213 assertion. Add assertion for discriminant_index.
14214 (quirk_rust_enum): Use correct base type name in univariant case.
14215
14216 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
14217
14218 * record.c (get_call_history_modifiers): Return a
14219 record_print_flags.
14220 (cmd_record_call_history): Adjust.
14221 * record-btrace.c (record_btrace_call_history): Adjust.
14222 (record_btrace_call_history_range): Adjust.
14223 (record_btrace_call_history_from): Adjust.
14224 * target-debug.h (target_debug_print_record_print_flags): New.
14225 * target-delegates.c: Re-generate.
14226 * target.c (target_call_history): Change flags type.
14227 (target_call_history_from): Likewise.
14228 (target_call_history_range): Likewise.
14229 * target.h (struct target_ops) <target_call_history>: Likewise.
14230 (target_call_history_from): Likewise.
14231 (target_call_history_range): Likewise.
14232
14233 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
14234 Simon Marchi <simon.marchi@polymtl.ca>
14235
14236 * common/common-utils.c: Include "sys/stat.h".
14237 (is_regular_file): Move here from "source.c"; change return
14238 type to "bool".
14239 * common/common-utils.h (is_regular_file): New prototype.
14240 * common/pathstuff.c (contains_dir_separator): New function.
14241 * common/pathstuff.h (contains_dir_separator): New prototype.
14242 * source.c: Don't include "sys/stat.h".
14243 (is_regular_file): Move to "common/common-utils.c".
14244
14245 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
14246
14247 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
14248 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
14249 * auto-load.c: Include "common/pathstuff.h".
14250 * common/common-def.h (current_directory): Move here.
14251 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
14252 function.
14253 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
14254 prototype.
14255 * common/pathstuff.c: New file.
14256 * common/pathstuff.h: New file.
14257 * compile/compile.c: Include "common/pathstuff.h".
14258 * defs.h (current_directory): Move to "common/common-defs.h".
14259 * dwarf2read.c: Include "common/pathstuff.h".
14260 * exec.c: Likewise.
14261 * guile/scm-safe-call.c: Likewise.
14262 * linux-thread-db.c: Likewise.
14263 * main.c: Likewise.
14264 * nto-tdep.c: Likewise.
14265 * objfiles.c: Likewise.
14266 * source.c: Likewise.
14267 * symtab.c: Likewise.
14268 * utils.c: Include "common/pathstuff.h".
14269 (gdb_realpath): Move to "common/pathstuff.c".
14270 (gdb_realpath_keepfile): Likewise.
14271 (gdb_abspath): Likewise.
14272 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
14273 (gdb_realpath_keepfile): Likewise.
14274 (gdb_abspath): Likewise.
14275
14276 2018-02-28 John Baldwin <jhb@FreeBSD.org>
14277
14278 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
14279 wildcard process pid for super_resume for kernels with a
14280 specific bug.
14281
14282 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
14283
14284 * compile/compile.c (get_args): Add additional comments
14285 explaining function.
14286
14287 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
14288 Tom Tromey <tom@tromey.com>
14289
14290 * target.h (memory_write_request_s): Remove typedef. Don't define
14291 VEC.
14292 (target_write_memory_blocks): Change argument to std::vector.
14293 (struct memory_write_request): Add constructor.
14294 * target-memory.c (compare_block_starting_address): Return bool.
14295 Change argument types.
14296 (claim_memory): Change arguments to use std::vector.
14297 (split_regular_and_flash_blocks, blocks_to_erase)
14298 (compute_garbled_blocks): Likewise.
14299 (cleanup_request_data, cleanup_write_requests_vector): Remove.
14300 (target_write_memory_blocks): Change argument to std::vector.
14301 * symfile.c (struct load_section_data): Add constructor and
14302 destructor. Use std::vector for "requests".
14303 (struct load_progress_data): Add initializers.
14304 (load_section_callback): Update. Use "new".
14305 (clear_memory_write_data): Remove.
14306 (generic_load): Update.
14307
14308 2018-02-27 Alan Hayward <alan.hayward@arm.com>
14309
14310 * arch/aarch64.h: Use common/tdesc.h.
14311
14312 2018-02-26 Maciej W. Rozycki <macro@mips.com>
14313
14314 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
14315 architecture with a 64-bit ABI.
14316
14317 2018-02-26 Maciej W. Rozycki <macro@mips.com>
14318
14319 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
14320 ahead of target description loading.
14321
14322 2018-02-26 Tom Tromey <tom@tromey.com>
14323
14324 * stack.c (backtrace_command_1): Update.
14325 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
14326 of "flags".
14327 * python/py-framefilter.c (py_print_frame)
14328 (gdbpy_apply_frame_filter): Change type of "flags".
14329 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
14330 of "flags".
14331 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
14332 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
14333 * extension.h (enum frame_filter_flag): Rename from
14334 frame_filter_flags.
14335 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
14336 (apply_ext_lang_frame_filter): Change type of "flags".
14337 * extension.c (apply_ext_lang_frame_filter): Change type of
14338 "flags".
14339 * extension-priv.h (struct extension_language_ops)
14340 <apply_frame_filter>: Change type of "flags".
14341
14342 2018-02-26 Tom Tromey <tom@tromey.com>
14343
14344 PR python/16497:
14345 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
14346 off-by-one in py_end computation.
14347 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
14348 PRINT_MORE_FRAMES.
14349 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
14350 constant.
14351
14352 2018-02-26 Tom Tromey <tom@tromey.com>
14353
14354 * dwarf2read.c (struct variant_field): New.
14355 (struct nextfield) <variant>: New field.
14356 (dwarf2_add_field): Handle DW_TAG_variant_part.
14357 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
14358 discriminated union.
14359 (read_structure_type): Handle DW_TAG_variant_part.
14360 (handle_struct_member_die): New function, extracted from
14361 process_structure_scope. Handle DW_TAG_variant.
14362 (process_structure_scope): Handle discriminated unions. Call
14363 handle_struct_member_die.
14364
14365 2018-02-26 Tom Tromey <tom@tromey.com>
14366
14367 * rust-lang.h (rust_last_path_segment): Declare.
14368 * rust-lang.c (rust_last_path_segment): Now public. Change
14369 contract.
14370 (struct disr_info): Remove.
14371 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
14372 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
14373 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
14374 (rust_enum_p, rust_enum_variant): New function.
14375 (rust_underscore_fields): Remove "offset" parameter.
14376 (rust_print_enum): New function.
14377 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
14378 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
14379 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
14380 enums.
14381 (rust_internal_print_type): New function, from rust_print_type.
14382 Remove enum code.
14383 (rust_print_type): Call rust_internal_print_type.
14384 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
14385 Update enum handling.
14386 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
14387 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
14388 (rust_union_quirks): New functions.
14389 (process_full_comp_unit, process_full_type_unit): Call
14390 rust_union_quirks.
14391 (process_structure_scope): Update rust_unions if necessary.
14392
14393 2018-02-26 Tom Tromey <tom@tromey.com>
14394
14395 * value.h (value_union_variant): Declare.
14396 * valops.c (value_union_variant): New function.
14397 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
14398 (struct discriminant_info): New.
14399 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
14400 enumerator.
14401 (struct main_type) <flag_discriminated_union>: New field.
14402
14403 2018-02-26 Tom Tromey <tom@tromey.com>
14404
14405 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14406 unittests/unpack-selftests.c.
14407 * unittests/unpack-selftests.c: New file.
14408 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
14409
14410 2018-02-26 Yao Qi <yao.qi@linaro.org>
14411
14412 * dwarf2read.c (struct partial_die_info) <read>: New method.
14413 (read_partial_die): Remove the declaration.
14414 (load_partial_dies): Update.
14415 (partial_die_info::partial_die_info):
14416 (read_partial_die): Change it to partial_die_info::read.
14417
14418 2018-02-26 Yao Qi <yao.qi@linaro.org>
14419
14420 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
14421 (fixup_partial_die): Remove declaration.
14422 (scan_partial_symbols): Update.
14423 (partial_die_parent_scope): Likewise.
14424 (partial_die_full_name): Likewise.
14425 (fixup_partial_die): Change it to partial_die_info::fixup.
14426
14427 2018-02-26 Yao Qi <yao.qi@linaro.org>
14428
14429 * dwarf2read.c (read_partial_die): Update the declaration.
14430 (load_partial_dies): Caller update.
14431 (read_partial_die): Remove one argument abbrev_len.
14432
14433 2018-02-26 Yao Qi <yao.qi@linaro.org>
14434
14435 * dwarf2read.c (struct partial_die_info): Add ctor, delete
14436 assignment operator.
14437 (load_partial_dies): Use ctor and copy ctor.
14438 (read_partial_die): Update.
14439 (dwarf2_cu::find_partial_die): Use ctor.
14440
14441 2018-02-26 Yao Qi <yao.qi@linaro.org>
14442
14443 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
14444 (find_partial_die_in_comp_unit): Change it to
14445 dwarf2_cu::find_partial_die.
14446 (find_partial_die): Update.
14447
14448 2018-02-26 Yao Qi <yao.qi@linaro.org>
14449
14450 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
14451 is NULL.
14452
14453 2018-02-26 Yao Qi <yao.qi@linaro.org>
14454
14455 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
14456
14457 2018-02-26 Alan Hayward <alan.hayward@arm.com>
14458
14459 * arch/amd64.h: Use common/tdesc.h.
14460 * arch/i386.c: Likewise.
14461 * arch/i386.h: Likewise.
14462 * arch/tic6x.c: Likewise.
14463 * arch/tdesc.h: Move file from here...
14464 * common/tdesc.h: ...to here.
14465 * features/aarch64-core.c: Regenerate.
14466 * features/aarch64-fpu.c: Regenerate.
14467 * features/i386/32bit-avx.c: Regenerate.
14468 * features/i386/32bit-avx512.c: Regenerate.
14469 * features/i386/32bit-core.c: Regenerate.
14470 * features/i386/32bit-linux.c: Regenerate.
14471 * features/i386/32bit-mpx.c: Regenerate.
14472 * features/i386/32bit-pkeys.c: Regenerate.
14473 * features/i386/32bit-sse.c: Regenerate.
14474 * features/i386/64bit-avx.c: Regenerate.
14475 * features/i386/64bit-avx512.c: Regenerate.
14476 * features/i386/64bit-core.c: Regenerate.
14477 * features/i386/64bit-linux.c: Regenerate.
14478 * features/i386/64bit-mpx.c: Regenerate.
14479 * features/i386/64bit-pkeys.c: Regenerate.
14480 * features/i386/64bit-segments.c: Regenerate.
14481 * features/i386/64bit-sse.c: Regenerate.
14482 * features/i386/x32-core.c: Regenerate.
14483 * features/tic6x-c6xp.c: Regenerate.
14484 * features/tic6x-core.c: Regenerate.
14485 * features/tic6x-gp.c: Regenerate.
14486 * target-descriptions.c: Use common/tdesc.h.
14487 * target-descriptions.h: Likewise.
14488
14489 2018-02-24 Tom Tromey <tom@tromey.com>
14490
14491 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
14492 (try_thread_db_load_from_dir, thread_db_load_search): Use
14493 std::string.
14494 (info_auto_load_libthread_db_compare): Return bool. Change
14495 argument types.
14496 (info_auto_load_libthread_db): Use std::vector, std::string.
14497 Remove cleanups.
14498
14499 2018-02-24 Tom Tromey <tom@tromey.com>
14500
14501 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
14502 std::string.
14503 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
14504 std::string*.
14505 * gdbarch.c: Rebuild.
14506 * gdbarch.h: Rebuild.
14507 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
14508 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
14509 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
14510 std::string*.
14511
14512 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
14513
14514 * gdbtypes.h (sect_offset): Change type to uint64_t.
14515 (sect_offset_str): New function.
14516 * dwarf2read.c (create_addrmap_from_aranges): Use
14517 sect_offset_str.
14518 (error_check_comp_unit_head): Likewise.
14519 (create_debug_type_hash_table): Likewise.
14520 (read_cutu_die_from_dwo): Likewise.
14521 (init_cutu_and_read_dies): Likewise.
14522 (init_cutu_and_read_dies_no_follow): Likewise.
14523 (process_psymtab_comp_unit_reader): Likewise.
14524 (partial_die_parent_scope): Likewise.
14525 (peek_die_abbrev): Likewise.
14526 (process_queue): Likewise.
14527 (dwarf2_physname): Likewise.
14528 (read_namespace_alias): Likewise.
14529 (read_import_statement): Likewise.
14530 (create_dwo_cu_reader): Likewise.
14531 (create_cus_hash_table): Likewise.
14532 (lookup_dwo_cutu): Likewise.
14533 (inherit_abstract_dies): Likewise.
14534 (read_func_scope): Likewise.
14535 (read_call_site_scope): Likewise.
14536 (dwarf2_add_member_fn): Likewise.
14537 (read_common_block): Likewise.
14538 (read_module_type): Likewise.
14539 (read_typedef): Likewise.
14540 (read_subrange_type): Likewise.
14541 (load_partial_dies): Likewise.
14542 (read_partial_die): Likewise.
14543 (find_partial_die): Likewise.
14544 (read_str_index): Likewise.
14545 (dwarf2_string_attr): Likewise.
14546 (build_error_marker_type): Likewise.
14547 (lookup_die_type): Likewise.
14548 (dump_die_shallow): Likewise.
14549 (follow_die_ref): Likewise.
14550 (dwarf2_fetch_die_loc_sect_off): Likewise.
14551 (dwarf2_fetch_constant_bytes): Likewise.
14552 (follow_die_sig): Likewise.
14553 (get_signatured_type): Likewise.
14554 (get_DW_AT_signature_type): Likewise.
14555 (dwarf2_find_containing_comp_unit): Likewise.
14556 (set_die_type): Likewise.
14557
14558 2018-02-21 John Baldwin <jhb@FreeBSD.org>
14559
14560 * arch/aarch64.c: Include "common-defs.h".
14561 * arch/amd64.c: Likewise.
14562 * arch/i386.c: Likewise.
14563
14564 2018-02-21 Tom Tromey <tom@tromey.com>
14565
14566 * value.h: (extract_field_op): Update.
14567 * eval.c (extract_field_op): Return a const char *.
14568 * expression.h (parse_expression_for_completion): Update.
14569 * completer.c (complete_expression): Update.
14570 (add_struct_fields): Make fieldname const.
14571 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
14572 (mark_completion_tag, parse_exp_in_context_1): Update.
14573 (parse_expression_for_completion): Change "name" to
14574 unique_xmalloc_ptr*.
14575
14576 2018-02-21 Tom Tromey <tom@tromey.com>
14577
14578 * infcall.c (call_function_by_hand_dummy): Use std::vector.
14579
14580 2018-02-21 Yao Qi <yao.qi@linaro.org>
14581
14582 * avr-tdep.c (avr_read_pc): Change parameter type to
14583 readable_regcache.
14584 * gdbarch.sh (read_pc): Likewise.
14585 * gdbarch.c: Re-generated.
14586 * gdbarch.h: Re-generated.
14587 * hppa-tdep.c (hppa_read_pc): Change parameter type to
14588 readable_regcache.
14589 * ia64-tdep.c (ia64_read_pc): Likewise.
14590 * mips-tdep.c (mips_read_pc): Likewise.
14591 * spu-tdep.c (spu_read_pc): Likewise.
14592
14593 2018-02-21 Yao Qi <yao.qi@linaro.org>
14594
14595 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
14596 * regcache-dump.c: New file.
14597 * regcache.c: Move register_dump to regcache-dump.c.
14598 (maintenance_print_registers): Likewise.
14599 (maintenance_print_raw_registers): Likewise.
14600 (maintenance_print_cooked_registers): Likewise.
14601 (maintenance_print_register_groups): Likewise.
14602 (maintenance_print_remote_registers): Likewise.
14603 (_initialize_regcache): Likewise.
14604 * regcache.h (register_dump): Moved from regcache.c.
14605
14606 2018-02-21 Yao Qi <yao.qi@linaro.org>
14607
14608 * regcache.c (regcache::regcache): Update.
14609 (regcache::invalidate): Move it to detached_regcache::invalidate.
14610 (get_thread_arch_aspace_regcache): Update.
14611 (regcache::raw_update): Update.
14612 (regcache::cooked_read): Remove some code.
14613 (regcache::cooked_read_value): Likewise.
14614 (regcache::raw_write): Remove assert on m_readonly_p.
14615 (regcache::raw_supply_integer): Move it to
14616 detached_regcache::raw_supply_integer.
14617 (regcache::raw_supply_zeroed): Likewise.
14618 * regcache.h (detached_regcache) <raw_supply_integer>: New
14619 declaration.
14620 <raw_supply_zeroed, invalidate>: Likewise.
14621 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
14622 <invalidate>: Likewise.
14623 <m_readonly_p>: Removed.
14624
14625 2018-02-21 Yao Qi <yao.qi@linaro.org>
14626
14627 * infcmd.c (get_return_value): Let stop_regs point to
14628 get_current_regcache.
14629 * regcache.c (regcache::regcache): Remove.
14630 (register_dump_reg_buffer): New class.
14631 (regcache_print): Adjust.
14632 * regcache.h (regcache): Remove constructors.
14633
14634 2018-02-21 Yao Qi <yao.qi@linaro.org>
14635
14636 * regcache.c (class register_dump): New class.
14637 (register_dump_regcache, register_dump_none): New class.
14638 (register_dump_remote, register_dump_groups): New class.
14639 (regcache_print): Update.
14640 * regcache.h (regcache_dump_what): Move it to regcache.c.
14641 (regcache) <dump>: Remove.
14642
14643 2018-02-21 Yao Qi <yao.qi@linaro.org>
14644
14645 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
14646 reg_buffer_rw *.
14647 (jit_unwind_reg_set_impl): Call raw_supply.
14648 (jit_frame_sniffer): Use reg_buffer_rw.
14649 * record-full.c (record_full_core_regbuf): Change its type.
14650 (record_full_core_open_1): Use reg_buffer_rw.
14651 (record_full_close): Likewise.
14652 (record_full_core_fetch_registers): Use regcache->raw_supply.
14653 (record_full_core_store_registers): Likewise.
14654 * regcache.c (regcache::get_register_status): Move it to
14655 reg_buffer.
14656 (regcache_raw_set_cached_value): Remove.
14657 (regcache::raw_set_cached_value): Remove.
14658 (regcache::raw_write): Call raw_supply.
14659 (regcache::raw_supply): Move it to reg_buffer_rw.
14660 * regcache.h (regcache_raw_set_cached_value): Remove.
14661 (reg_buffer_rw): New class.
14662
14663 2018-02-21 Yao Qi <yao.qi@linaro.org>
14664
14665 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
14666 readonly_detached_regcache.
14667 (dummy_frame_prev_register): Use regcache->cooked_read.
14668 * frame.c (frame_save_as_regcache): Change return type.
14669 (frame_pop): Update.
14670 * frame.h (frame_save_as_regcache): Update declaration.
14671 * inferior.h (get_infcall_suspend_state_regcache): Update
14672 declaration.
14673 * infrun.c (infcall_suspend_state) <registers>: use
14674 readonly_detached_regcache.
14675 (save_infcall_suspend_state): Don't use regcache_dup.
14676 (get_infcall_suspend_state_regcache): Change return type.
14677 * linux-fork.c (struct fork_info) <savedregs>: Change to
14678 readonly_detached_regcache.
14679 <pc>: New field.
14680 (fork_save_infrun_state): Don't use regcache_dup.
14681 (info_checkpoints_command): Adjust.
14682 * mi/mi-main.c (register_changed_p): Update declaration.
14683 (mi_cmd_data_list_changed_registers): Use
14684 readonly_detached_regcache.
14685 (register_changed_p): Change parameter type to
14686 readonly_detached_regcache.
14687 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
14688 readonly_detached_regcache.
14689 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
14690 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
14691 New.
14692 (regcache::save): Move it to reg_buffer.
14693 (regcache::restore): Change parameter type.
14694 (regcache_dup): Remove.
14695 * regcache.h (reg_buffer) <save>: New method.
14696 (readonly_detached_regcache): New class.
14697 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
14698 readonly_detached_regcache.
14699 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
14700
14701 2018-02-21 Yao Qi <yao.qi@linaro.org>
14702
14703 * frame.c (frame_save_as_regcache): Use regcache method save.
14704 (frame_pop): Use regcache method restore.
14705 * infrun.c (restore_infcall_suspend_state): Likewise.
14706 * linux-fork.c (fork_load_infrun_state): Likewise.
14707 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
14708 save.
14709 * regcache.c (regcache_save): Remove.
14710 (regcache::restore): More asserts.
14711 (regcache_cpy): Remove.
14712 * regcache.h (regcache_save): Remove the declaration.
14713 (regcache::restore): Move from private to public.
14714 Remove the friend declaration of regcache_cpy.
14715 (regcache_cpy): Remove declaration.
14716
14717 2018-02-21 Yao Qi <yao.qi@linaro.org>
14718
14719 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
14720 parameter type to 'readable_regcache *'.
14721 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14722 * arm-tdep.c (arm_neon_quad_read): Likewise.
14723 (arm_pseudo_read): Likewise.
14724 * avr-tdep.c (avr_pseudo_register_read): Likewise.
14725 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14726 * frv-tdep.c (frv_pseudo_register_read): Likewise.
14727 * gdbarch.c: Re-generated.
14728 * gdbarch.h: Re-generated.
14729 * gdbarch.sh (pseudo_register_read): Change parameter type to
14730 'readable_regcache *'.
14731 (pseudo_register_read_value): Likewise.
14732 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
14733 (h8300_pseudo_register_read): Likewise.
14734 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
14735 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14736 (i386_pseudo_register_read_into_value): Likewise.
14737 (i386_pseudo_register_read_value): Likewise.
14738 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
14739 declaration.
14740 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
14741 * m32c-tdep.c (m32c_raw_read): Likewise.
14742 (m32c_read_flg): Likewise.
14743 (m32c_banked_register): Likewise.
14744 (m32c_banked_read): Likewise.
14745 (m32c_sb_read): Likewise.
14746 (m32c_part_read): Likewise.
14747 (m32c_cat_read): Likewise.
14748 (m32c_r3r2r1r0_read): Likewise.
14749 (m32c_pseudo_register_read): Likewise.
14750 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14751 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14752 (mep_pseudo_cr64_read): Likewise.
14753 (mep_pseudo_register_read): Likewise.
14754 * mips-tdep.c (mips_pseudo_register_read): Likewise.
14755 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14756 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14757 * regcache.c (regcache::raw_read): Move it to readable_regcache.
14758 (regcache::cooked_read): Likewise.
14759 (regcache::cooked_read_value): Likewise.
14760 (regcache_cooked_read_signed):
14761 (regcache::cooked_read): Likewise.
14762 * regcache.h (readable_regcache): New class.
14763 (regcache): Inherit readable_regcache. Move some methods to
14764 readable_regcache.
14765 * rl78-tdep.c (rl78_pseudo_register_read): Change
14766 parameter type to 'readable_regcache *'.
14767 * rs6000-tdep.c (do_regcache_raw_read): Remove.
14768 (e500_pseudo_register_read): Change parameter type to
14769 'readable_regcache *'.
14770 (dfp_pseudo_register_read): Likewise.
14771 (vsx_pseudo_register_read): Likewise.
14772 (efpr_pseudo_register_read): Likewise.
14773 * s390-tdep.c (s390_pseudo_register_read): Likewise.
14774 * sh-tdep.c (sh_pseudo_register_read): Likewise.
14775 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
14776 (sh64_pseudo_register_read): Likewise.
14777 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14778 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14779 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14780 (spu_pseudo_register_read): Likewise.
14781 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14782 (xtensa_pseudo_register_read): Likewise.
14783
14784 2018-02-21 Yao Qi <yao.qi@linaro.org>
14785
14786 * regcache.c (regcache::regcache): Call reg_buffer ctor.
14787 (regcache::arch): Move it to reg_buffer::arch.
14788 (regcache::register_buffer): Likewise.
14789 (regcache::assert_regnum): Likewise.
14790 (regcache::num_raw_registers): Likewise.
14791 * regcache.h (reg_buffer): New class.
14792 (regcache): Inherit reg_buffer.
14793
14794 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
14795
14796 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
14797 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
14798
14799 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
14800
14801 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
14802
14803 2018-02-19 Alan Hayward <alan.hayward@arm.com>
14804
14805 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
14806 (SFILES): Remove common/*.c files.
14807 (COMMON_OBS): Remove some *.o files built from common/*.c files.
14808 * common/common.host: Add common reference.
14809 * configure.ac: Likewise.
14810 * configure: Regenerate.
14811
14812 2018-02-16 Yao Qi <yao.qi@linaro.org>
14813
14814 * block.c (block_namespace_info): Inherit allocate_on_obstack.
14815 (block_initialize_namespace): Use new.
14816 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
14817 (dwarf2_free_objfile): Use delete.
14818 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
14819 (copy_type_recursive): Use new.
14820 * gdb_obstack.h (allocate_on_obstack): New.
14821
14822 2018-02-15 Yao Qi <yao.qi@linaro.org>
14823
14824 PR gdb/22849
14825 * inferior.c (exit_inferior_1): Reset inf->control.
14826
14827 2018-02-15 Joel Brobecker <brobecker@adacore.com>
14828
14829 * ada-lang.c (ada_to_fixed_value_create): Delete advance
14830 declaration.
14831
14832 2018-02-14 Pedro Alves <palves@redhat.com>
14833
14834 * frame-unwind.c (frame_unwind_try_unwinder): Always call
14835 frame_cleanup_after_sniffer on exception.
14836
14837 2018-02-14 Tom Tromey <tom@tromey.com>
14838
14839 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
14840 const.
14841 (solib_bfd_open): Make pathname const.
14842 * solib.c (solib_bfd_open): Make pathname const.
14843 * solib-spu.c (spu_bfd_fopen): Make name const.
14844 (spu_bfd_open): Make pathname const.
14845 * solib-darwin.c (darwin_bfd_open): Make pathname const.
14846 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
14847
14848 2018-02-14 Tom Tromey <tom@tromey.com>
14849
14850 * symfile.c (symfile_bfd_open): Update.
14851 * source.h (openp, source_full_path_of, find_and_open_source):
14852 Change argument type to unique_xmalloc_ptr.
14853 * source.c (openp): Take a unique_xmalloc_ptr.
14854 (source_full_path_of, find_and_open_source): Likewise.
14855 (open_source_file, symtab_to_fullname): Update.
14856 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
14857 unique_xmalloc_ptr.
14858 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
14859 (exec_file_find): Update.
14860 * psymtab.c (psymtab_to_fullname): Update.
14861 * nto-tdep.h (nto_find_and_open_solib): Update.
14862 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
14863 unique_xmalloc_ptr.
14864 * exec.c (exec_file_attach): Update.
14865 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
14866 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
14867
14868 2018-02-14 Tom Tromey <tom@tromey.com>
14869
14870 * solib.c: Include source.h.
14871 * nto-tdep.c: Include source.h.
14872 * mi/mi-cmd-env.c: Include source.h.
14873 * infcmd.c: Include source.h.
14874 * exec.c: Include source.h.
14875 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
14876 (add_path, directory_switch, source_path, init_source_path): Move
14877 declarations...
14878 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
14879 (add_path, directory_switch, source_path, init_source_path):
14880 ...here.
14881
14882 2018-02-14 Tom Tromey <tom@tromey.com>
14883
14884 * solist.h (exec_file_find, solib_find): Return
14885 unique_xmalloc_ptr.
14886 (solib_bfd_fopen): Take a const char *.
14887 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
14888 (exec_file_find, solib_find): Likewise.
14889 (solib_bfd_fopen): Do not take ownership of "pathname".
14890 (solib_bfd_open): Use unique_xmalloc_ptr.
14891 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
14892 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
14893 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
14894 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
14895
14896 2018-02-14 Joel Brobecker <brobecker@adacore.com>
14897
14898 * ada-lang.c (name_match_type_from_name): Remove reference to
14899 ada_name_for_lookup in function's documentation.
14900 * ada-lang.h (ada_name_for_lookup): Delete declaration.
14901
14902 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
14903
14904 * defs.h (enum openp_flags): New enum.
14905 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
14906 Move to enum openp_flags.
14907 (openp_flags): New enum flags.
14908 (openp): Change parameter type to openp_flags.
14909 * source.c (openp): Change parameter type to openp_flags.
14910 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
14911 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
14912
14913 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
14914
14915 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
14916 per-command.
14917
14918 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
14919
14920 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
14921 into...
14922 (class dwarf2_queue_guard): ...the destructor of this new class.
14923 (dw2_do_instantiate_symtab): Create instance of the new class
14924 dwarf2_queue_guard, remove cleanup.
14925
14926 2018-02-09 Tom Tromey <tom@tromey.com>
14927
14928 * source.c (find_source_lines): Don't reference past the end of
14929 the vector.
14930
14931 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14932
14933 * remote.c (remote_btrace_maybe_reopen): Change error message.
14934 * btrace.c (btrace_enable): Likewise.
14935 (parse_xml_btrace): Likewise.
14936 (parse_xml_btrace_conf): Likewise.
14937
14938 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14939
14940 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
14941 (linux_enable_pt, linux_enable_bts): Call
14942 diagnose_perf_event_open_fail.
14943
14944 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14945
14946 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
14947 Remove parameter and change return type. Update callers. Move it.
14948 (linux_enable_bts, linux_enable_pt): Improve error message.
14949 (linux_enable_pt): Remove zero buffer size check.
14950 (linux_enable_btrace): Improve error messages. Remove NULL return
14951 check.
14952
14953 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14954
14955 * btrace.c (btrace_enable): Remove target_supports_btrace call.
14956 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
14957 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
14958 (linux_supports_pt, linux_supports_btrace): Remove.
14959 (linux_enable_bts): Call cpu_supports_bts.
14960 * nat/linux-btrace.h (linux_supports_btrace): Remove.
14961 * remote.c (remote_supports_btrace): Remove.
14962 (init_remote_ops): Remove remote_supports_btrace.
14963 * target-delegates.c: Regenerated.
14964 * target.c (target_supports_btrace): Remove.
14965 * target.h (target_ops) <to_supports_btrace>: Remove
14966 (target_supports_btrace): Remove.
14967 * x86-linux-nat.c (x86_linux_create_target): Remove
14968 linux_supports_btrace.
14969
14970 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14971
14972 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
14973 btrace failed.
14974 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
14975 exception and use message in own exception.
14976
14977 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14978
14979 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
14980 (perf_event_pt_event_type): Use gdb_file_up.
14981 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
14982 scoped_fd, and scoped_mmap.
14983
14984 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14985
14986 * common/scoped_mmap.h: New.
14987 * unittests/scoped_mmap-selftest.c: New.
14988 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14989 unittests/scoped_mmap-selftest.c.
14990
14991 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14992
14993 * common/scoped_fd.h: New.
14994 * unittests/scoped_fd-selftest.c: New.
14995 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14996 unittests/scoped_fd-selftest.c.
14997
14998 2018-02-09 Tom Tromey <tom@tromey.com>
14999
15000 * auto-load.c (auto_load_section_scripts): Use
15001 gdb::unique_xmalloc_ptr.
15002
15003 2018-02-09 Tom Tromey <tom@tromey.com>
15004
15005 * auto-load.c (execute_script_contents): Use std::string.
15006
15007 2018-02-09 Joel Brobecker <brobecker@adacore.com>
15008
15009 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
15010 Python function, rather than a new command.
15011
15012 2018-02-08 Tom Tromey <tom@tromey.com>
15013
15014 * solib.c (solib_find_1): Use std::string.
15015 (solib_bfd_fopen): Use unique_xmalloc_ptr.
15016
15017 2018-02-08 Tom Tromey <tom@tromey.com>
15018
15019 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
15020
15021 2018-02-08 Tom Tromey <tom@tromey.com>
15022
15023 * source.c (find_source_lines): Use gdb::def_vector.
15024
15025 2018-02-08 Tom Tromey <tom@tromey.com>
15026
15027 * macrocmd.c (struct temporary_macro_definition): New.
15028 (macro_define_command): Use temporary_macro_definition. Remove
15029 cleanups.
15030 (free_macro_definition_ptr): Remove.
15031
15032 2018-02-08 Tom Tromey <tom@tromey.com>
15033
15034 * macroexp.c (maybe_expand): Use std::string.
15035
15036 2018-02-08 Tom Tromey <tom@tromey.com>
15037
15038 * macroexp.c (struct macro_buffer): Add initializers for some
15039 members.
15040 (init_buffer, init_shared_buffer, free_buffer)
15041 (free_buffer_return_text): Remove.
15042 (macro_buffer): New constructors.
15043 (~macro_buffer): New destructor.
15044 (macro_buffer::set_shared): New method.
15045 (macro_buffer::resize_buffer, macro_buffer::appendc)
15046 (macro_buffer::appendmem): Now methods, not free functions.
15047 (set_token, append_tokens_without_splicing, stringify)
15048 (macro_stringify): Update.
15049 (gather_arguments): Change return type. Remove argc_p argument,
15050 add args_ptr argument. Use std::vector.
15051 (substitute_args): Remove argc argument. Accept std::vector.
15052 (expand): Update. Use std::vector.
15053 (scan, macro_expand, macro_expand_next): Update.
15054
15055 2018-02-08 Tom Tromey <tom@tromey.com>
15056
15057 * symtab.c (default_collect_symbol_completion_matches_break_on):
15058 Use unique_xmalloc_ptr.
15059 * macroscope.h: (sal_macro_scope, user_macro_scope)
15060 (default_macro_scope): Return unique_xmalloc_ptr.
15061 * macroscope.c (sal_macro_scope, user_macro_scope)
15062 (default_macro_scope): Return unique_xmalloc_ptr.
15063 * macroexp.h (macro_expand, macro_expand_once): Return
15064 unique_xmalloc_ptr.
15065 * macroexp.c (macro_expand, macro_expand_once): Return
15066 unique_xmalloc_ptr.
15067 * macrocmd.c (macro_expand_command, macro_expand_once_command)
15068 (info_macro_command, info_macros_command): Use
15069 unique_xmalloc_ptr.
15070 * compile/compile-c-support.c (write_macro_definitions): Use
15071 unique_xmalloc_ptr.
15072 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
15073
15074 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
15075
15076 * value.c (value_static_field): Assign field type instead of
15077 containing type when returning an optimized out value.
15078
15079 2018-02-06 Yao Qi <yao.qi@linaro.org>
15080
15081 * ft32-tdep.c (ft32_read_pc): Remove.
15082 (ft32_write_pc): Remove.
15083 (ft32_gdbarch_init): Update.
15084 * m32r-tdep.c (m32r_read_pc): Remove.
15085 (m32r_gdbarch_init): Update.
15086 * mep-tdep.c (mep_read_pc): Remove.
15087 (mep_gdbarch_init): Update.
15088 * microblaze-tdep.c (microblaze_write_pc): Remove.
15089 (microblaze_gdbarch_init): Update.
15090 * mn10300-tdep.c (mn10300_read_pc): Remove.
15091 (mn10300_write_pc): Remove.
15092 (mn10300_gdbarch_init): Update.
15093 * moxie-tdep.c (moxie_read_pc): Remove.
15094 (moxie_write_pc): Remove.
15095 (moxie_gdbarch_init): Update.
15096
15097 2018-02-06 Yao Qi <yao.qi@linaro.org>
15098
15099 * expprint.c (print_subexp_standard): Handle
15100 OP_F77_UNDETERMINED_ARGLIST.
15101 (dump_subexp_body_standard): Likewise.
15102
15103 2018-02-05 Alan Hayward <alan.hayward@arm.com>
15104
15105 * target-descriptions.c (tdesc_element_visitor) Add empty
15106 implementations.
15107 (tdesc_type): Move make_gdb_type from here.
15108 (tdesc_type_builtin): Likewise.
15109 (tdesc_type_vector): Likewise.
15110 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
15111 (make_gdb_type_struct): Move from tdesc_type_with_fields.
15112 (make_gdb_type_union): Likewise.
15113 (make_gdb_type_flags): Likewise.
15114 (make_gdb_type_enum): Likewise.
15115 (make_gdb_type): New function.
15116 (tdesc_register_type): Use static make_gdb_type.
15117
15118 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
15119
15120 * infcmd.c (default_print_one_register_info): Align natural-format
15121 column values consistently one under another.
15122 (pad_to_column): New function.
15123
15124 2018-02-05 Joel Brobecker <brobecker@adacore.com>
15125
15126 * dwarf2read.c (dwarf2_physname): Move commment.
15127
15128 2018-02-01 Leszek Swirski <leszeks@google.com>
15129
15130 * varobj.c (varobj_formatted_print_options): Allow recursive
15131 pretty printing if pretty printing is enabled.
15132
15133 2018-02-01 Leszek Swirski <leszeks@google.com>
15134
15135 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
15136 names after a structop as a filename.
15137
15138 2018-02-01 Yao Qi <yao.qi@linaro.org>
15139
15140 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
15141 (arm_record_coproc_data_proc): Likewise.
15142
15143 2018-02-01 Yao Qi <yao.qi@linaro.org>
15144
15145 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
15146
15147 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
15148
15149 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
15150 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
15151
15152 2018-01-31 Pedro Alves <palves@redhat.com>
15153
15154 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
15155 * inflow.c (child_terminal_save_inferior): Wrap reference to
15156 tcgetpgrp in HAVE_TERMIOS_H.
15157 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
15158 _WIN32.
15159 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
15160 always iterate over all inferiors.
15161 (gdbsim_cntrl_c): Adjust.
15162 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
15163
15164 2018-01-31 Joel Brobecker <brobecker@adacore.com>
15165
15166 * gdbtypes.c (lookup_array_range_type): Make sure the array's
15167 index type is objfile-owned if the element type is as well.
15168
15169 2018-01-31 Joel Brobecker <brobecker@adacore.com>
15170
15171 GDB 8.1 released.
15172
15173 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
15174
15175 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
15176 "features/s390x-linux64.c".
15177 (_initialize_s390_linux_tdep): Remove initialization of tdescs
15178 s390_linux32 and s390x_linux64.
15179 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
15180 default tdesc.
15181 * s390-tdep.c: Include "features/s390-linux32.c" and
15182 "features/s390x-linux64.c".
15183 (s390_tdesc_valid): Add check for tdesc_has_registers.
15184 (s390_gdbarch_init): Make sure there is always a valid tdesc.
15185 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
15186 tdesc_s390x_linux64.
15187 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
15188 tdesc_s390x_linux64 to...
15189 * s390-tdep.h: ...here.
15190
15191 2018-01-30 Pedro Alves <palves@redhat.com>
15192
15193 PR gdb/13211
15194 * config.in, configure: Regenerate.
15195 * configure.ac: Check for getpgid.
15196 * go32-nat.c (go32_pass_ctrlc): New.
15197 (go32_target): Install it.
15198 * inf-child.c (inf_child_target): Install
15199 child_terminal_save_inferior, child_pass_ctrlc and
15200 child_interrupt.
15201 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
15202 (inf_ptrace_target): No longer install it.
15203 * infcmd.c (interrupt_target_1): Adjust.
15204 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
15205 (child_interrupt): Declare.
15206 (inferior::terminal_state): New.
15207 * inflow.c (struct terminal_info): Update comments.
15208 (inferior_process_group): Delete.
15209 (terminal_is_ours): Delete.
15210 (gdb_tty_state): New.
15211 (child_terminal_init): Adjust.
15212 (is_gdb_terminal, sharing_input_terminal_1)
15213 (sharing_input_terminal): New functions.
15214 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
15215 Set the process's actual process group in the foreground if
15216 possible. Handle is_ours_for_output/is_ours distinction. Don't
15217 mark terminal as the inferior's if not sharing GDB's terminal.
15218 Don't check attach_flag.
15219 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
15220 pass down a target_terminal_state.
15221 (child_terminal_save_inferior): New, factored out from ...
15222 (child_terminal_ours_1): ... this. Handle
15223 target_terminal_state::is_ours_for_output.
15224 (child_interrupt, child_pass_ctrlc): New.
15225 (inflow_inferior_exit): Clear the inferior's terminal_state.
15226 (copy_terminal_info): Copy the inferior's terminal state.
15227 (_initialize_inflow): Remove reference to terminal_is_ours.
15228 * inflow.h (inferior_process_group): Delete.
15229 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
15230 * procfs.c (procfs_target): Don't install procfs_interrupt.
15231 (procfs_interrupt): Delete.
15232 * remote.c (remote_serial_quit_handler): Adjust.
15233 (remote_interrupt): Remove ptid parameter. Adjust.
15234 * target-delegates.c: Regenerate.
15235 * target.c: Include "terminal.h".
15236 (target_terminal::terminal_state): Rename to ...
15237 (target_terminal::m_terminal_state): ... this.
15238 (target_terminal::init): Adjust.
15239 (target_terminal::inferior): Adjust to per-inferior
15240 terminal_state.
15241 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
15242 (target_terminal::ours, target_terminal::ours_for_output): Use
15243 target_terminal_is_ours_kind.
15244 (target_interrupt): Remove ptid parameter. Adjust.
15245 (default_target_pass_ctrlc): Adjust.
15246 * target.h (target_ops::to_terminal_save_inferior): New field.
15247 (target_ops::to_interrupt): Remove ptid_t parameter.
15248 (target_interrupt): Remove ptid_t parameter. Update comment.
15249 (target_pass_ctrlc): Update comment.
15250 * target/target.h (target_terminal_state): New scoped enum,
15251 factored out of ...
15252 (target_terminal::terminal_state): ... here.
15253 (target_terminal::inferior): Update comments.
15254 (target_terminal::restore_inferior): New.
15255 (target_terminal::is_inferior, target_terminal::is_ours)
15256 (target_terminal::is_ours_for_output): Adjust.
15257 (target_terminal::scoped_restore_terminal_state): Adjust to
15258 rename, and call restore_inferior() instead of inferior().
15259 (target_terminal::scoped_restore_terminal_state::m_state): Change
15260 type.
15261 (target_terminal::terminal_state): Rename to ...
15262 (target_terminal::m_terminal_state): ... this and change type.
15263
15264 2018-01-30 Pedro Alves <palves@redhat.com>
15265
15266 * linux-nat.c (wait_for_signal): New function.
15267 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
15268 directly.
15269 (async_terminal_is_ours)
15270 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
15271 (linux_nat_add_target): Don't override
15272 to_terminal_inferior/to_terminal_ours.
15273
15274 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
15275
15276 * remote.c (remote_follow_fork): Don't call "detach_inferior".
15277
15278 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
15279
15280 * dwarf2read.c (free_dwo_files): Add forward-declaration.
15281 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
15282 dwarf2_per_objfile_free here.
15283 (dwarf2_per_objfile_free): Remove.
15284 (_initialize_dwarf2_read): Don't register
15285 dwarf2_per_objfile_free as a registry cleanup.
15286
15287 2018-01-27 Eli Zaretskii <eliz@gnu.org>
15288
15289 Avoid compilation errors in MinGW native builds
15290
15291 The error is triggered by including python-internal.h, and the
15292 error message is:
15293
15294 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
15295 from build-gnulib/import/math.h:27,
15296 from d:/usr/Python26/include/pyport.h:235,
15297 from d:/usr/Python26/include/Python.h:58,
15298 from python/python-internal.h:94,
15299 from python/py-arch.c:24:
15300 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
15301 using ::hypot;
15302 ^~~~~
15303
15304 This happens because Python headers define 'hypot' to expand t
15305 '_hypot' in the Windows builds.
15306 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
15307 'hypoth'. This avoids a compilation error.
15308
15309 2018-01-26 Alan Hayward <alan.hayward@arm.com>
15310
15311 * MAINTAINERS (Write After Approval): Fix ordering.
15312
15313 2018-01-26 Alan Hayward <alan.hayward@arm.com>
15314
15315 * MAINTAINERS (Write After Approval): Add Alan Hayward.
15316
15317 2018-01-26 Alan Modra <amodra@gmail.com>
15318
15319 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
15320 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
15321 Remove nop. Make const. Comment.
15322 (powerpc32_plt_stub_so_2): New.
15323 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
15324 Correct count. Update uses.
15325 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
15326 Move common code reading PLT entry word. Correct
15327 powerpc32_plt_stub PLT address calculation.
15328 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
15329 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
15330 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
15331 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
15332 (ppc64_standard_linkage8): Likewise.
15333 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
15334 Correct insns description.
15335 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
15336
15337 2018-01-24 Pedro Alves <palves@redhat.com>
15338
15339 GCC PR libstdc++/83906
15340 * gdbtypes.c (operator==(const dynamic_prop &,
15341 const dynamic_prop &)): New.
15342 (operator==(const range_bounds &, const range_bounds &)): New.
15343 (check_types_equal): Use them instead of memcmp.
15344 * gdbtypes.h (operator==(const dynamic_prop &,
15345 const dynamic_prop &)): Declare.
15346 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
15347 (operator==(const range_bounds &, const range_bounds &)): Declare.
15348 (operator!=(const range_bounds &, const range_bounds &)): Declare.
15349
15350 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15351
15352 * s390-linux-tdep.c (s390_record_address_mask)
15353 (s390_record_calc_disp_common, s390_record_calc_disp)
15354 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
15355 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
15356 (s390_process_record): Move to s390-tdep.c.
15357 (s390_linux_init_abi_any): Adjust.
15358 * s390-tdep.c (s390_record_address_mask)
15359 (s390_record_calc_disp_common, s390_record_calc_disp)
15360 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
15361 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
15362 (s390_process_record): Moved from s390-linux-tdep.c
15363 (s390_gdbarch_init): Adjust.
15364
15365 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15366
15367 * s390-linux-nat.c (s390-tdep.h): New include.
15368 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
15369 (HFILES_NO_SRCDIR): Add s390-tdep.h.
15370 (ALLDEPFILES): Add s390-tdep.c.
15371 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
15372 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
15373 * s390-tdep.h: ...this. New file.
15374 * s390-linux-tdep.c (s390-tdep.h): New include.
15375 (_initialize_s390_tdep): Rename to...
15376 (_initialize_s390_linux_tdep): ...this and adjust.
15377 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
15378 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
15379 s390-tdep.h.
15380 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
15381 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
15382 (s390_is_partial_instruction, s390_software_single_step)
15383 (is_non_branch_ril, s390_displaced_step_copy_insn)
15384 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
15385 (s390_prologue_data, s390_addr, s390_store, s390_load)
15386 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
15387 (s390_register_call_saved, s390_guess_tracepoint_registers)
15388 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
15389 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
15390 (s390_pseudo_register_name, s390_pseudo_register_type)
15391 (s390_pseudo_register_read, s390_pseudo_register_write)
15392 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
15393 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
15394 (s390_addr_bits_remove, s390_address_class_type_flags)
15395 (s390_address_class_type_flags_to_name)
15396 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
15397 (s390_function_arg_float, s390_function_arg_vector)
15398 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
15399 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
15400 (s390_frame_align, s390_register_return_value, s390_return_value)
15401 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
15402 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
15403 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
15404 (s390_trad_frame_prev_register, s390_unwind_cache)
15405 (s390_prologue_frame_unwind_cache)
15406 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
15407 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
15408 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
15409 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
15410 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
15411 (s390_frame_base_address, s390_local_base_address)
15412 (s390_frame_base, s390_gcc_target_options)
15413 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
15414 (s390_validate_reg_range, s390_tdesc_valid)
15415 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
15416 * s390-tdep.c: ...this. New file.
15417
15418 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15419
15420 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
15421 (s390_process_record, s390_gdbarch_tdep_alloc)
15422 (s390_linux_init_abi_any): Use/set new hook.
15423
15424 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15425
15426 * s390-linux-tdep.c (osabi.h): New include.
15427 (s390_linux_init_abi_31, s390_linux_init_abi_64)
15428 (s390_linux_init_abi_any): New functions.
15429 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
15430
15431 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15432
15433 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
15434 tdesc_has_registers check
15435
15436 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15437
15438 * s390-linux-tdep.c (s390_tdesc_valid): New function.
15439 (s390_validate_reg_range): New macro.
15440 (s390_gdbarch_init): Adjust.
15441
15442 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15443
15444 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
15445 (s390_gdbarch_tdep_alloc): Adjust.
15446 (s390_gdbarch_init): Adjust.
15447
15448 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15449
15450 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
15451 <have_tdb>: Change type to bool.
15452 (s390_gdbarch_tdep_alloc): Adjust.
15453 (s390_gdbarch_init): Adjust.
15454
15455 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15456
15457 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
15458 (gdbarch_tdep) <have_upper, have_vx>: New fields.
15459 (s390_gdbarch_tdep_alloc): New function.
15460 (s390_gdbarch_init): Allocate tdep at start and use its fields
15461 instead of separate variables.
15462
15463 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15464
15465 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
15466 when looking for cached gdbarch and add comment for remaining.
15467
15468 2018-01-22 Pedro Alves <palves@redhat.com>
15469 Sergio Durigan Junior <sergiodj@redhat.com>
15470
15471 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
15472 case.
15473
15474 2018-01-22 Maciej W. Rozycki <macro@mips.com>
15475
15476 * MAINTAINERS: Update my company e-mail address.
15477
15478 2018-01-22 Yao Qi <yao.qi@linaro.org>
15479
15480 * regcache.c (cooked_write_test): New function.
15481 (_initialize_regcache): Register the test.
15482
15483 2018-01-22 Yao Qi <yao.qi@linaro.org>
15484
15485 * ia64-tdep.c (ia64_pseudo_register_read): Call
15486 regcache->cooked_read instead of regcache_cooked_read_unsigned.
15487 * m32c-tdep.c (m32c_cat_read): Likewise.
15488 (m32c_r3r2r1r0_read): Likewise.
15489 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
15490 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
15491
15492 2018-01-22 Yao Qi <yao.qi@linaro.org>
15493
15494 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
15495 method raw_read instead of regcache_raw_read.
15496 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
15497 * arm-tdep.c (arm_neon_quad_read): Likewise.
15498 * avr-tdep.c (avr_pseudo_register_read): Likewise.
15499 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
15500 * frv-tdep.c (frv_pseudo_register_read): Likewise.
15501 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
15502 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
15503 (i386_pseudo_register_read_into_value): Likewise.
15504 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
15505 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
15506 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
15507 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
15508 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
15509 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
15510 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
15511 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
15512 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
15513
15514 2018-01-22 Yao Qi <yao.qi@linaro.org>
15515
15516 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
15517 * configure.tgt: Remove target mt.
15518 * mt-tdep.c: Remove.
15519 * regcache.c (cooked_read_test): Remove the check for mt.
15520
15521 2018-01-22 Yao Qi <yao.qi@linaro.org>
15522
15523 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
15524 instead of gdbarch_pseudo_register_read_value.
15525
15526 2018-01-22 Joel Brobecker <brobecker@adacore.com>
15527
15528 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
15529 language is Ada.
15530
15531 2018-01-22 Joel Brobecker <brobecker@adacore.com>
15532
15533 * linespec.c (create_sals_line_offset): Remove code that preserved
15534 the symtab_and_line's line number.
15535
15536 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15537
15538 * varobj.c (varobj_create): Don't set valid_block when creating a
15539 floating varobj.
15540
15541 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15542
15543 * varobj.c (varobj_create): Remove out of date comment.
15544
15545 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15546
15547 PR mi/20395
15548 * ada-exp.y (write_var_from_sym): Pass extra parameter when
15549 updating innermost block.
15550 * parse.c (innermost_block_tracker::update): Take extra type
15551 parameter, and check types match before updating innermost block.
15552 (write_dollar_variable): Update innermost block for registers.
15553 * parser-defs.h (enum innermost_block_tracker_type): New enum.
15554 (innermost_block_tracker::innermost_block_tracker): Initialise
15555 m_types member.
15556 (innermost_block_tracker::reset): Take type parameter.
15557 (innermost_block_tracker::update): Take type parameter, and pass
15558 type through as needed.
15559 (innermost_block_tracker::m_types): New member.
15560 * varobj.c (varobj_create): Pass type when reseting innermost
15561 block.
15562
15563 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15564
15565 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
15566 * ada-lang.c (resolve_subexp): Likewise.
15567 * breakpoint.c (set_breakpoint_condition) Likewise.
15568 (watch_command_1) Likewise.
15569 * c-exp.y (variable): Likewise.
15570 * d-exp.y (PrimaryExpression): Likewise.
15571 * f-exp.y (variable): Likewise.
15572 * go-exp.y (variable): Likewise.
15573 * m2-exp.y (variable): Likewise.
15574 * objfiles.c (objfile::~objfile): Likewise.
15575 * p-exp.y (variable): Likewise.
15576 * parse.c (innermost_block): Change type.
15577 * parser-defs.h (class innermost_block_tracker): New.
15578 (innermost_block): Change to innermost_block_tracker.
15579 * printcmd.c (display_command): Switch to innermost_block API.
15580 (do_one_display): Likewise.
15581 * rust-exp.y (do_one_display): Likewise.
15582 * symfile.c (clear_symtab_users): Likewise.
15583 * varobj.c (varobj_create): Switch to innermost_block API, replace
15584 use of innermost_block with block stored on varobj object.
15585
15586 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15587
15588 * expression.h (innermost_block): Remove declaration.
15589 * varobj.c: Add 'parser-defs.h' include.
15590
15591 2018-01-19 Tom Tromey <tom@tromey.com>
15592
15593 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
15594 symbols in the static and global blocks.
15595
15596 2018-01-19 James Clarke <jrtc27@jrtc27.com>
15597
15598 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
15599 gdb_ptrace.h, and move including gdb_wait.h ...
15600 * nat/linux-ptrace.h: ... to here.
15601
15602 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15603
15604 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
15605 inf_ptrace_detach_success.
15606 (inf_ptrace_detach_success): Add inferior parameter, use it
15607 instead of inferior_ptid, pass it to detach_inferior.
15608 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
15609 parameter.
15610 * inferior.c (detach_inferior): Add overload that takes an
15611 inferior object.
15612 * inferior.h (detach_inferior): Likewise.
15613 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
15614 use inferior_ptid, adjust call to inf_ptrace_detach_success.
15615 * linux-thread-db.c (thread_db_detach): Use inf parameter.
15616
15617 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15618
15619 * target.h (struct target_ops) <to_detach>: Add inferior
15620 parameter.
15621 (target_detach): Likewise.
15622 * target.c (dispose_inferior): Pass inferior down.
15623 (target_detach): Pass inferior down. Assert that it is equal to
15624 the current inferior.
15625 * aix-thread.c (aix_thread_detach): Pass inferior down.
15626 * corefile.c (core_file_command): Pass current_inferior() down.
15627 * corelow.c (core_detach): Add inferior parameter.
15628 * darwin-nat.c (darwin_detach): Likewise.
15629 * gnu-nat.c (gnu_detach): Likewise.
15630 * inf-ptrace.c (inf_ptrace_detach): Likewise.
15631 * infcmd.c (detach_command): Pass current_inferior() down to
15632 target_detach.
15633 * infrun.c (follow_fork_inferior): Pass parent_inf to
15634 target_detach.
15635 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
15636 target_detach.
15637 * linux-nat.c (linux_nat_detach): Add inferior parameter.
15638 * linux-thread-db.c (thread_db_detach): Likewise.
15639 * nto-procfs.c (procfs_detach): Likewise.
15640 * procfs.c (procfs_detach): Likewise.
15641 * record.c (record_detach): Likewise.
15642 * record.h (struct inferior): Forward-declare.
15643 (record_detach): Add inferior parameter.
15644 * remote-sim.c (gdbsim_detach): Likewise.
15645 * remote.c (remote_detach_1): Likewise.
15646 (remote_detach): Likewise.
15647 (extended_remote_detach): Likewise.
15648 * sol-thread.c (sol_thread_detach): Likewise.
15649 * target-debug.h (target_debug_print_inferior_p): New macro.
15650 * target-delegates.c: Re-generate.
15651 * top.c (kill_or_detach): Pass inferior down to target_detach.
15652 * windows-nat.c (windows_detach): Add inferior parameter.
15653
15654 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15655
15656 * target.h (struct target_ops) <to_detach>: Remove args
15657 parameter.
15658 (target_detach): Likewise.
15659 * target.c (dispose_inferior): Adjust.
15660 (target_detach): Remove args parameter, adjust.
15661 * aix-thread.c (aix_thread_detach): Adjust.
15662 * corefile.c (core_file_command): Adjust.
15663 * corelow.c (core_detach): Adjust.
15664 * darwin-nat.c (darwin_detach): Adjust.
15665 * gnu-nat.c (gnu_detach): Adjust.
15666 * inf-ptrace.c (inf_ptrace_detach): Adjust.
15667 * infcmd.c (detach_command): Adjust
15668 * infrun.c (follow_fork_inferior): Adjust.
15669 (handle_vfork_child_exec_or_exit): Adjust.
15670 * linux-fork.c (linux_fork_detach): Remove args parameter.
15671 * linux-fork.h (linux_fork_detach): Likewise.
15672 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
15673 * linux-thread-db.c (thread_db_detach): Likewise.
15674 * nto-procfs.c (procfs_detach): Likewise.
15675 * procfs.c (procfs_detach): Likewise.
15676 (do_detach): Remove signo parameter.
15677 * record.c (record_detach): Remove args parameter.
15678 * record.h (record_detach): Likewise.
15679 * remote-sim.c (gdbsim_detach): Likewise.
15680 * remote.c (remote_detach_1): Likewise.
15681 (remote_detach): Likewise.
15682 (extended_remote_detach): Likewise.
15683 * sol-thread.c (sol_thread_detach): Likewise.
15684 * target-delegates.c: Re-generate.
15685 * top.c (struct qt_args) <args>: Remove field.
15686 (kill_or_detach): Don't pass args.
15687 (quit_force): Don't set args.
15688 * windows-nat.c (windows_detach): Remove args parameter.
15689
15690 2018-01-19 Yao Qi <yao.qi@linaro.org>
15691
15692 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
15693 (arm_linux_init_abi): Install it.
15694
15695 2018-01-19 Yao Qi <yao.qi@linaro.org>
15696
15697 * osabi.c (gdb_osabi_names): Extend the regexp for
15698 arm-linux-gnueabihf.
15699
15700 2018-01-18 Yao Qi <yao.qi@linaro.org>
15701
15702 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
15703 m_abbrevs.
15704 (abbrev_table::add_abbrev): Update.
15705 (abbrev_table::lookup_abbrev): Update.
15706
15707 2018-01-18 Yao Qi <yao.qi@linaro.org>
15708
15709 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
15710
15711 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15712
15713 * compile/compile.c (compile_to_object): Convert "triplet_rx"
15714 to "std::string".
15715
15716 2018-01-17 Tom Tromey <tom@tromey.com>
15717
15718 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
15719
15720 2018-01-17 Tom Tromey <tom@tromey.com>
15721
15722 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
15723 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
15724 (create_array_type_with_stride): Update.
15725 * dwarf2read.c (set_die_type): Update.
15726
15727 2018-01-17 Tom Tromey <tom@tromey.com>
15728
15729 * dwarf2read.c (delayed_method_info): Remove typedef.
15730 (dwarf2_cu::method_info): Now a std::vector.
15731 (add_to_method_list): Update.
15732 (free_delayed_list): Remove.
15733 (compute_delayed_physnames): Update.
15734 (process_full_comp_unit, process_full_type_unit): Clear the method
15735 list. Remove cleanups.
15736 (psymtab_include_file_name): Add name_holder parameter. Use
15737 unique_xmalloc_ptr.
15738 (dwarf_decode_lines): Update.
15739
15740 2018-01-17 Tom Tromey <tom@tromey.com>
15741 Simon Marchi <simon.marchi@ericsson.com>
15742
15743 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
15744 (dwarf2_per_objfile::free_cached_comp_units)
15745 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15746 (init_cutu_and_read_dies_no_follow): Update.
15747 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
15748 (dwarf2_cu::~dwarf2_cu): New.
15749 (free_heap_comp_unit, free_stack_comp_unit): Remove.
15750 (age_cached_comp_units, free_one_cached_comp_unit): Update.
15751
15752 2018-01-17 Tom Tromey <tom@tromey.com>
15753 Simon Marchi <simon.marchi@ericsson.com>
15754
15755 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
15756 (struct die_reader_specs) <abbrev_table>: New member.
15757 (struct abbrev_table): Add constructor.
15758 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
15759 <abbrev_obstack>: Now an auto_obstack.
15760 (abbrev_table_up): New typedef.
15761 (init_cu_die_reader): Add abbrev_table parameter.
15762 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
15763 Add result_dwo_abbrev_table.
15764 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15765 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
15766 Update.
15767 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
15768 parameter.
15769 (skip_children): Update.
15770 (abbrev_table::alloc_abbrev): Rename from
15771 abbrev_table_alloc_abbrev.
15772 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
15773 (abbrev_table::lookup_abbrev): Rename from
15774 abbrev_table_lookup_abbrev.
15775 (abbrev_table_read_table): Return abbrev_table_up.
15776 (abbrev_table_free, abbrev_table_free_cleanup)
15777 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
15778 (load_partial_dies): Update.
15779
15780 2018-01-17 Tom Tromey <tom@tromey.com>
15781
15782 * dwarf2read.c (dwarf2_compute_name): Update comment.
15783 (read_func_scope, read_variable): Update.
15784 (new_symbol): Remove.
15785 (new_symbol_full): Rename to new_symbol.
15786
15787 2018-01-17 Mike Gulick <mgulick@mathworks.com>
15788
15789 PR gdb/16577
15790 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
15791 a warning instead of throwing an error, set section size to 0 and return
15792 NULL.
15793 * gdb_bfd.h (gdb_bfd_map_section): Update description.
15794
15795 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15796
15797 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
15798 std::string.
15799 (linux_ptrace_attach_fail_reason_string): Likewise.
15800 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
15801 Likewise.
15802 (linux_ptrace_attach_fail_reason_string): Likewise.
15803 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
15804
15805 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15806
15807 * linux-nat.c (linux_nat_attach): Remove xstrdup.
15808
15809 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
15810
15811 PR gdb/21559
15812 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
15813 checking for fs_base/gs_base fields in struct user_regs_struct.
15814 * configure: Regenerate.
15815
15816 2018-01-17 Yao Qi <yao.qi@linaro.org>
15817
15818 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
15819 function.
15820 (aarch64_linux_init_abi): Install it to gdbarch hook
15821 gcc_target_options.
15822
15823 2018-01-15 Pedro Alves <palves@redhat.com>
15824
15825 * common/signals-state-save-restore.c
15826 (save_original_signals_state): Fix typos.
15827
15828 2017-01-12 Tom Tromey <tom@tromey.com>
15829 Sergio Durigan Junior <sergiodj@redhat.com>
15830
15831 * Makefile.in (install-only): Install gdb-add-index.
15832
15833 2018-01-12 John Baldwin <jhb@FreeBSD.org>
15834
15835 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
15836
15837 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
15838
15839 * infrun.c (keep_going_pass_signal): Clear step-over info when
15840 insert_breakpoints fails.
15841
15842 2018-01-11 Pedro Alves <palves@redhat.com>
15843
15844 PR gdb/22583
15845 * infrun.c (resume): Rename to ...
15846 (resume_1): ... this.
15847 (resume): Reimplement as wrapper around resume_1.
15848
15849 2018-01-11 Pedro Alves <palves@redhat.com>
15850
15851 PR remote/22597
15852 * remote.c (remote_parse_stop_reply): Default to the last-set
15853 general thread instead of to 'magic_null_ptid'.
15854
15855 2018-01-10 Pedro Alves <palves@redhat.com>
15856
15857 * language.h (language_get_symbol_name_matcher): Rename ...
15858 (get_symbol_name_matcher): ... this.
15859 * language.c (language_get_symbol_name_matcher): Ditto.
15860 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
15861 callers adjusted.
15862
15863 2018-01-10 Pedro Alves <palves@redhat.com>
15864
15865 PR gdb/22670
15866 * dwarf2read.c
15867 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
15868 Adjust to use language_get_symbol_name_matcher instead of
15869 language_defn::la_get_symbol_name_matcher.
15870 * language.c (language_get_symbol_name_matcher): If in Ada mode
15871 and the lookup name is a verbatim match, return Ada's matcher.
15872 * language.h (language_get_symbol_name_matcher): Adjust comment.
15873 (ada_lookup_name_info::verbatim_p):: New method.
15874
15875 2018-01-10 Pedro Alves <palves@redhat.com>
15876
15877 PR gdb/22670
15878 * ada-lang.c (ada_collect_symbol_completion_matches): If the
15879 minsym's language is language_auto or language_cplus, pass down
15880 language_ada instead.
15881 * symtab.c (compare_symbol_name): Don't frob symbol language here.
15882
15883 2018-01-10 Pedro Alves <palves@redhat.com>
15884
15885 PR gdb/22670
15886 * minsyms.c (linkage_name_str): New function.
15887 (iterate_over_minimal_symbols): Use it.
15888
15889 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15890
15891 * NEWS: Document that 'info proc' now works on FreeBSD.
15892
15893 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15894
15895 * configure.ac: Check for kinfo_getfile in libutil.
15896 * configure: Regenerate.
15897 * config.in: Regenerate.
15898 * fbsd-nat.c: Include "fbsd-tdep.h".
15899 (fbsd_fetch_cmdline): New.
15900 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
15901 rather than calling error.
15902 (fbsd_info_proc): New.
15903 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
15904 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
15905 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
15906
15907 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15908
15909 * fbsd-nat.c (struct free_deleter): Remove.
15910 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
15911
15912 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15913
15914 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
15915 NULL for an empty pathname.
15916
15917 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15918
15919 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
15920 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
15921 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
15922 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
15923 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
15924 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
15925 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
15926 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
15927 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
15928 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
15929 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
15930 (fbsd_core_fetch_timeval, fbsd_print_sigset)
15931 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
15932 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
15933 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
15934
15935 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
15936
15937 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
15938 (gnu_xfer_auxv): New function.
15939 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
15940 TARGET_OBJECT_AUXV.
15941
15942 2018-01-08 Yao Qi <yao.qi@linaro.org>
15943 Simon Marchi <simon.marchi@ericsson.com>
15944
15945 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
15946 common/selftest.c.
15947 (COMMON_OBS): Remove selftest.o.
15948 * configure.ac: Append selftest-arch.c and common/selftest.c to
15949 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
15950 * configure: Re-generated.
15951 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
15952 GDB_SELF_TEST.
15953 (maintenance_info_selftests): Likewise.
15954
15955 2018-01-08 Xavier Roirand <roirand@adacore.com>
15956
15957 * ada-valprint.c (val_print_packed_array_elements): Use
15958 proper number of elements when printing an array indexed
15959 by an enumeration type.
15960
15961 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15962
15963 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
15964 (dw2_get_file_names_reader): Adjust.
15965 (lookup_dwo_signatured_type): Adjust.
15966 (lookup_dwp_signatured_type): Adjust.
15967 (lookup_signatured_type): Adjust.
15968 (create_type_unit_group): Adjust.
15969 (get_type_unit_group): Adjust.
15970 (process_psymtab_comp_unit_reader): Adjust.
15971 (build_type_psymtabs_reader): Adjust.
15972 (scan_partial_symbols): Adjust.
15973 (add_partial_symbol): Adjust.
15974 (add_partial_subprogram): Adjust.
15975 (peek_die_abbrev): Adjust.
15976 (fixup_go_packaging): Adjust.
15977 (process_imported_unit_die): Adjust.
15978 (dwarf2_compute_name): Adjust.
15979 (dwarf2_physname): Adjust.
15980 (read_import_statement): Adjust.
15981 (handle_DW_AT_stmt_list): Adjust.
15982 (read_file_scope): Adjust.
15983 (read_func_scope): Adjust.
15984 (read_lexical_block_scope): Adjust.
15985 (read_call_site_scope): Adjust.
15986 (read_variable): Adjust.
15987 (dwarf2_rnglists_process): Adjust.
15988 (dwarf2_ranges_process): Adjust.
15989 (dwarf2_ranges_read): Adjust.
15990 (dwarf2_get_pc_bounds): Adjust.
15991 (dwarf2_record_block_ranges): Adjust.
15992 (dwarf2_add_field): Adjust.
15993 (dwarf2_add_member_fn): Adjust.
15994 (read_structure_type): Adjust.
15995 (process_structure_scope): Adjust.
15996 (read_enumeration_type): Adjust.
15997 (read_array_type): Adjust.
15998 (mark_common_block_symbol_computed): Adjust.
15999 (read_common_block): Adjust.
16000 (read_namespace_type): Adjust.
16001 (read_namespace): Adjust.
16002 (read_module_type): Adjust.
16003 (read_tag_pointer_type): Adjust.
16004 (read_tag_ptr_to_member_type): Adjust.
16005 (read_tag_string_type): Adjust.
16006 (read_subroutine_type): Adjust.
16007 (read_typedef): Adjust.
16008 (read_base_type): Adjust.
16009 (attr_to_dynamic_prop): Adjust.
16010 (read_subrange_type): Adjust.
16011 (read_unspecified_type): Adjust.
16012 (dwarf2_read_abbrevs): Adjust.
16013 (load_partial_dies): Adjust.
16014 (read_partial_die): Adjust.
16015 (find_partial_die): Adjust.
16016 (guess_partial_die_structure_name): Adjust.
16017 (fixup_partial_die): Adjust.
16018 (read_attribute_value): Adjust.
16019 (read_addr_index): Adjust.
16020 (read_addr_index_from_leb128): Adjust.
16021 (read_str_index): Adjust.
16022 (dwarf2_string_attr): Adjust.
16023 (get_debug_line_section): Adjust.
16024 (dwarf_decode_line_header): Adjust.
16025 (lnp_state_machine::check_line_address): Adjust.
16026 (dwarf_decode_lines_1): Adjust.
16027 (dwarf_decode_lines): Adjust.
16028 (dwarf2_start_symtab): Adjust.
16029 (var_decode_location): Adjust.
16030 (new_symbol_full): Adjust.
16031 (dwarf2_const_value_data): Adjust.
16032 (dwarf2_const_value_attr): Adjust.
16033 (dwarf2_const_value): Adjust.
16034 (die_type): Adjust.
16035 (die_containing_type): Adjust.
16036 (build_error_marker_type): Adjust.
16037 (lookup_die_type): Adjust.
16038 (guess_full_die_structure_name): Adjust.
16039 (anonymous_struct_prefix): Adjust.
16040 (determine_prefix): Adjust.
16041 (dwarf2_name): Adjust.
16042 (follow_die_ref_or_sig): Adjust.
16043 (follow_die_offset): Adjust.
16044 (follow_die_ref): Adjust.
16045 (follow_die_sig_1): Adjust.
16046 (follow_die_sig): Adjust.
16047 (get_signatured_type): Adjust.
16048 (get_DW_AT_signature_type): Adjust.
16049 (decode_locdesc): Adjust.
16050 (dwarf_decode_macros): Adjust.
16051 (cu_debug_loc_section): Adjust.
16052 (fill_in_loclist_baton): Adjust.
16053 (dwarf2_symbol_mark_computed): Adjust.
16054 (init_one_comp_unit): Don't assign
16055 dwarf2_cu::dwarf2_per_objfile.
16056 (set_die_type): Adjust.
16057
16058 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16059
16060 * dwarf2read.c (struct mapped_debug_names): Add constructor.
16061 <dwarf2_per_objfile>: New field.
16062 (dwarf2_per_objfile): Remove global.
16063 (get_dwarf2_per_objfile): New function.
16064 (set_dwarf2_per_objfile): New function.
16065 (dwarf2_build_psymtabs_hard): Change objfile parameter to
16066 dwarf2_per_objfile.
16067 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
16068 (read_abbrev_offset): Likewise.
16069 (read_indirect_string): Likewise.
16070 (read_indirect_line_string): Likewise.
16071 (read_indirect_string_at_offset): Likewise.
16072 (read_indirect_string_from_dwz): Likewise.
16073 (dwarf2_find_containing_comp_unit): Change objfile parameter to
16074 dwarf2_per_objfile.
16075 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
16076 (create_all_comp_units): Change objfile parameter to
16077 dwarf2_per_objfile.
16078 (create_all_type_units): Likewise.
16079 (process_queue): Add dwarf2_per_objfile parameter.
16080 (read_and_check_comp_unit_head): Likewise.
16081 (lookup_dwo_unit_in_dwp): Likewise.
16082 (get_dwp_file): Likewise.
16083 (process_cu_includes): Likewise.
16084 (struct free_dwo_file_cleanup_data): New struct.
16085 (dwarf2_has_info): Use get_dwarf2_per_objfile and
16086 set_dwarf2_per_objfile.
16087 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
16088 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
16089 context, adjust calls.
16090 (dw2_instantiate_symtab): Likewise.
16091 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
16092 (dw2_get_cu): Likewise.
16093 (create_cu_from_index_list): Change objfile parameter to
16094 dwarf2_per_objfile.
16095 (create_cus_from_index_list): Get dwarf2_per_objfile from
16096 context, adjust calls.
16097 (create_cus_from_index): Likewise.
16098 (create_signatured_type_table_from_index): Change objfile
16099 parameter to dwarf2_per_objfile.
16100 (create_signatured_type_table_from_debug_names): Change objfile
16101 parameter to dwarf2_per_objfile.
16102 (create_addrmap_from_index): Likewise.
16103 (create_addrmap_from_aranges): Likewise.
16104 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
16105 (dw2_setup): Remove.
16106 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
16107 context.
16108 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
16109 get_dwarf2_per_objfile.
16110 (dw2_forget_cached_source_info): Likewise.
16111 (dw2_map_symtabs_matching_filename): Likewise.
16112 (struct dw2_symtab_iterator) <index>: Remove.
16113 <dwarf2_per_objfile>: New field.
16114 (dw2_symtab_iter_init): Replace index parameter with
16115 dwarf2_per_objfile.
16116 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
16117 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
16118 (dw2_print_stats): Likewise.
16119 (dw2_dump): Likewise.
16120 (dw2_expand_symtabs_for_function): Likewise.
16121 (dw2_expand_all_symtabs): Likewise.
16122 (dw2_expand_symtabs_with_fullname): Likewise.
16123 (dw2_expand_marked_cus): Replace index and objfile parameters
16124 with dwarf2_per_objfile.
16125 (dw_expand_symtabs_matching_file_matcher): Add
16126 dwarf2_per_objfile parameter and adjust calls.
16127 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
16128 adjust calls.
16129 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
16130 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
16131 adjust calls.
16132 (create_cus_from_debug_names_list): Replace objfile parameter
16133 with dwarf2_per_objfile and adjust calls.
16134 (create_cus_from_debug_names): Likewise.
16135 (dwarf2_read_debug_names): Likewise.
16136 (mapped_debug_names::namei_to_name): Adjust call.
16137 (dw2_debug_names_iterator::next): Likewise.
16138 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
16139 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
16140 (dw2_debug_names_dump): Likewise.
16141 (dw2_debug_names_expand_symtabs_for_function): Likewise.
16142 (dw2_debug_names_expand_symtabs_matching): Likewise.
16143 (dwarf2_initialize_objfile): Likewise.
16144 (dwarf2_build_psymtabs): Likewise.
16145 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
16146 this_cu.
16147 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
16148 (read_and_check_comp_unit_head): Likewise.
16149 (read_abbrev_offset): Likewise.
16150 (create_debug_type_hash_table): Likewise.
16151 (create_debug_types_hash_table): Likewise.
16152 (create_all_type_units): Replace objfile parameter with
16153 dwarf2_per_objfile.
16154 (add_type_unit): Add dwarf2_per_objfile parameter.
16155 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
16156 with dwarf2_per_objfile.
16157 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
16158 (lookup_dwp_signatured_type): Likewise.
16159 (lookup_signatured_type): Likewise.
16160 (read_cutu_die_from_dwo): Likewise.
16161 (init_tu_and_read_dwo_dies): Likewise.
16162 (init_cutu_and_read_dies): Likewise.
16163 (init_cutu_and_read_dies_no_follow): Likewise.
16164 (allocate_type_unit_groups_table): Add objfile parameter.
16165 (create_type_unit_group): Use dwarf2_per_objfile from cu.
16166 (get_type_unit_group): Likewise.
16167 (process_psymtab_comp_unit): Update call.
16168 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
16169 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
16170 (print_tu_stats): Likewise.
16171 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
16172 in void* parameter.
16173 (build_type_psymtabs): Change objfile parameter to
16174 dwarf2_per_objfile.
16175 (process_skeletonless_type_unit): Use dwarf2_per_objfile
16176 passed in void* parameter.
16177 (process_skeletonless_type_units): Change objfile parameter to
16178 dwarf2_per_objfile.
16179 (set_partial_user): Likewise.
16180 (dwarf2_build_psymtabs_hard): Likewise.
16181 (read_comp_units_from_section): Likewise.
16182 (create_all_comp_units): Likewise.
16183 (scan_partial_symbols): Update calls.
16184 (add_partial_symbol): Likewise.
16185 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
16186 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
16187 (process_queue): Add dwarf2_per_objfile parameter.
16188 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
16189 (compute_compunit_symtab_includes): Likewise.
16190 (process_cu_includes): Add dwarf2_per_objfile parameter.
16191 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
16192 (process_full_type_unit): Likewise.
16193 (process_imported_unit_die): Update call.
16194 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
16195 (read_file_scope): Likewise.
16196 (allocate_dwo_file_hash_table): Add objfile parameter.
16197 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
16198 (create_cus_hash_table): Likewise.
16199 (create_dwp_hash_table): Likewise.
16200 (create_dwo_unit_in_dwp_v1): Likewise.
16201 (create_dwp_v2_section): Likewise.
16202 (create_dwo_unit_in_dwp_v2): Likewise.
16203 (lookup_dwo_unit_in_dwp): Likewise.
16204 (try_open_dwop_file): Likewise.
16205 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
16206 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
16207 cleanup to include a reference to dwarf2_per_objfile.
16208 (open_dwp_file): Add dwarf2_per_objfile parameter.
16209 (open_and_init_dwp_file): Likewise.
16210 (get_dwp_file): Likewise.
16211 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
16212 (queue_and_load_all_dwo_tus): Update call.
16213 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
16214 data.
16215 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
16216 (dwarf2_ranges_process): Likewise.
16217 (dwarf2_get_pc_bounds): Likewise.
16218 (mark_common_block_symbol_computed): Likewise.
16219 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
16220 (dwarf2_read_abbrevs): Update call.
16221 (read_partial_die): Use dwarf2_per_objfile from cu.
16222 (find_partial_die): Likewise.
16223 (fixup_partial_die): Likewise.
16224 (read_attribute_value): Likewise.
16225 (read_indirect_string_at_offset_from): Add objfile parameter.
16226 (read_indirect_string_at_offset): Add dwarf2_per_objfile
16227 parameter.
16228 (read_indirect_string_from_dwz): Add objfile parameter.
16229 (read_indirect_string): Add objfile parameter.
16230 (read_addr_index_1): Add dwarf2_per_objfile parameter.
16231 (read_addr_index): Use dwarf2_per_objfile from cu.
16232 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
16233 call dw2_setup.
16234 (read_str_index): Use dwarf2_per_objfile from cu.
16235 (get_debug_line_section): Likewise.
16236 (read_formatted_entries): Add dwarf2_per_objfile parameter.
16237 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
16238 (new_symbol_full): Use dwarf2_per_objfile from cu.
16239 (build_error_marker_type): Likewise.
16240 (lookup_die_type): Likewise.
16241 (determine_prefix): Likewise.
16242 (follow_die_offset): Likewise.
16243 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
16244 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
16245 (dwarf2_fetch_die_type_sect_off): Likewise.
16246 (dwarf2_get_die_type): Likewise.
16247 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
16248 (get_signatured_type): Likewise.
16249 (get_DW_AT_signature_type): Likewise.
16250 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
16251 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
16252 (cu_debug_loc_section): Likewise.
16253 (fill_in_loclist_baton): Likewise.
16254 (dwarf2_symbol_mark_computed): Likewise.
16255 (dwarf2_find_containing_comp_unit): Change objfile parameter to
16256 dwarf2_per_objfile.
16257 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
16258 parameter.
16259 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
16260 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
16261 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
16262 (set_die_type): Use dwarf2_free_objfile from cu.
16263 (get_die_type_at_offset): Likewise.
16264 (dwarf2_per_objfile_free): Don't assign global variable.
16265 (debug_names) <constructor>: Add dwarf2_per_objfile
16266 parameter, update m_debugstrlookup construction.
16267 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
16268 parameter.
16269 <m_dwarf2_per_objfile>: New field.
16270 <lookup>: Use m_dwarf2_per_objfile.
16271 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
16272 (psyms_seen_size): Likewise.
16273 (write_gdbindex): Replace objfile parameter with
16274 dwarf2_per_objfile.
16275 (write_debug_names): Likewise.
16276 (write_psymtabs_to_index): Likewise.
16277 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
16278 calls.
16279
16280 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16281
16282 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
16283 <dwarf2_per_objfile>: New field.
16284 (struct dwarf2_per_cu_data) <objfile>: Remove.
16285 <dwarf2_per_objfile>: New field.
16286 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
16287 of objfile.
16288 (create_signatured_type_table_from_index): Likewise.
16289 (create_debug_type_hash_table): Likewise.
16290 (fill_in_sig_entry_from_dwo_entry): Likewise.
16291 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
16292 (create_type_unit_group): Assign dwarf2_per_objfile instead of
16293 objfile.
16294 (create_partial_symtab): Access objfile through
16295 dwarf2_per_objfile.
16296 (process_psymtab_comp_unit_reader): Likewise.
16297 (read_comp_units_from_section): Likewise.
16298 (scan_partial_symbols): Likewise.
16299 (add_partial_symbol): Likewise.
16300 (add_partial_subprogram): Likewise.
16301 (peek_die_abbrev): Likewise.
16302 (fixup_go_packaging): Likewise.
16303 (process_full_comp_unit): Likewise.
16304 (process_full_type_unit): Likewise.
16305 (process_imported_unit_die): Likewise.
16306 (dwarf2_compute_name): Likewise.
16307 (dwarf2_physname): Likewise.
16308 (read_import_statement): Likewise.
16309 (create_cus_hash_table): Assign dwarf2_physname instead of
16310 objfile.
16311 (read_func_scope): Access objfile through dwarf2_per_objfile.
16312 (read_lexical_block_scope): Likewise.
16313 (read_call_site_scope): Likewise.
16314 (read_variable): Likewise.
16315 (dwarf2_rnglists_process): Likewise.
16316 (dwarf2_ranges_process): Likewise.
16317 (dwarf2_ranges_read): Likewise.
16318 (dwarf2_record_block_ranges): Likewise.
16319 (dwarf2_add_field): Likewise.
16320 (dwarf2_add_member_fn): Likewise.
16321 (read_structure_type): Likewise.
16322 (process_structure_scope): Likewise.
16323 (read_enumeration_type): Likewise.
16324 (read_array_type): Likewise.
16325 (read_common_block): Likewise.
16326 (read_namespace_type): Likewise.
16327 (read_namespace): Likewise.
16328 (read_module_type): Likewise.
16329 (read_tag_pointer_type): Likewise.
16330 (read_tag_ptr_to_member_type): Likewise.
16331 (read_tag_string_type): Likewise.
16332 (read_subroutine_type): Likewise.
16333 (read_typedef): Likewise.
16334 (read_base_type): Likewise.
16335 (attr_to_dynamic_prop): Likewise.
16336 (read_subrange_type): Likewise.
16337 (read_unspecified_type): Likewise.
16338 (load_partial_dies): Likewise.
16339 (read_partial_die): Likewise.
16340 (find_partial_die): Likewise.
16341 (guess_partial_die_structure_name): Likewise.
16342 (fixup_partial_die): Likewise.
16343 (read_attribute_value): Likewise.
16344 (read_addr_index_from_leb128): Likewise.
16345 (dwarf2_read_addr_index): Likewise.
16346 (dwarf2_string_attr): Likewise.
16347 (lnp_state_machine::check_line_address): Likewise.
16348 (dwarf_decode_lines_1): Likewise.
16349 (dwarf_decode_lines): Likewise.
16350 (dwarf2_start_symtab): Likewise.
16351 (var_decode_location): Likewise.
16352 (new_symbol_full): Likewise.
16353 (dwarf2_const_value_data): Likewise.
16354 (dwarf2_const_value_attr): Likewise.
16355 (dwarf2_const_value): Likewise.
16356 (die_type): Likewise.
16357 (die_containing_type): Likewise.
16358 (lookup_die_type): Likewise.
16359 (guess_full_die_structure_name): Likewise.
16360 (anonymous_struct_prefix): Likewise.
16361 (dwarf2_name): Likewise.
16362 (follow_die_ref_or_sig): Likewise.
16363 (follow_die_offset): Likewise.
16364 (follow_die_ref): Likewise.
16365 (dwarf2_fetch_die_loc_sect_off): Likewise.
16366 (dwarf2_fetch_constant_bytes): Likewise.
16367 (dwarf2_fetch_die_type_sect_off): Likewise.
16368 (dwarf2_get_die_type): Likewise.
16369 (follow_die_sig): Likewise.
16370 (decode_locdesc): Likewise.
16371 (dwarf2_per_cu_objfile): Likewise.
16372 (dwarf2_per_cu_text_offset): Likewise.
16373 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
16374 objfile.
16375 (set_die_type): Access objfile through
16376 dwarf2_per_objfile.
16377
16378 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16379
16380 * valprint.c (converted_character_d): Remove typedef.
16381 (DEF_VEC_O (converted_character_d)): Remove.
16382 (count_next_character): Use std::vector.
16383 (print_converted_chars_to_obstack): Likewise.
16384 (generic_printstr): Likewise.
16385
16386 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16387
16388 * xml-support.h (struct gdb_xml_value): Add constructor.
16389 <value>: Change type to unique_xmalloc_ptr.
16390 (gdb_xml_value_s): Remove typedef.
16391 (DEF_VEC_O (gdb_xml_value_s)): Remove.
16392 (gdb_xml_element_start_handler): Change parameter type to
16393 std::vector.
16394 (xml_find_attribute): Likewise.
16395 * xml-support.c (xml_find_attribute): Change parameter type to
16396 std::vector and adjust.
16397 (gdb_xml_values_cleanup): Remove.
16398 (gdb_xml_parser::start_element): Adjust to std::vector.
16399 (xinclude_start_include): Change paraeter type to std::vector
16400 and adjust.
16401 * btrace.c (check_xml_btrace_version): Likewise.
16402 (parse_xml_btrace_block): Likewise.
16403 (parse_xml_btrace_pt_config_cpu): Likewise.
16404 (parse_xml_btrace_pt): Likewise.
16405 (parse_xml_btrace_conf_bts): Likewise.
16406 (parse_xml_btrace_conf_pt): Likewise.
16407 * memory-map.c (memory_map_start_memory): Likewise.
16408 (memory_map_start_property): Likewise.
16409 * osdata.c (osdata_start_osdata): Likewise.
16410 (osdata_start_item): Likewise.
16411 (osdata_start_column): Likewise.
16412 * remote.c (start_thread): Likewise.
16413 * solib-aix.c (library_list_start_library): Likewise.
16414 (library_list_start_list): Likewise.
16415 * solib-svr4.c (library_list_start_library): Likewise.
16416 (svr4_library_list_start_list): Likewise.
16417 * solib-target.c (library_list_start_segment): Likewise.
16418 (library_list_start_section): Likewise.
16419 (library_list_start_library): Likewise.
16420 (library_list_start_list): Likewise.
16421 * tracepoint.c (traceframe_info_start_memory): Likewise.
16422 (traceframe_info_start_tvar): Likewise.
16423 * xml-syscall.c (syscall_start_syscall): Likewise.
16424 * xml-tdesc.c (tdesc_start_target): Likewise.
16425 (tdesc_start_feature): Likewise.
16426 (tdesc_start_reg): Likewise.
16427 (tdesc_start_union): Likewise.
16428 (tdesc_start_struct): Likewise.
16429 (tdesc_start_flags): Likewise.
16430 (tdesc_start_enum): Likewise.
16431 (tdesc_start_field): Likewise.
16432 (tdesc_start_enum_value): Likewise.
16433 (tdesc_start_vector): Likewise.
16434
16435 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16436
16437 * extension.h (struct xmethod_worker) <clone>: Remove.
16438 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
16439 Remove.
16440 (python_xmethod_worker::clone): Remove.
16441 * valops.c (find_overload_match): Use std::move instead of
16442 clone.
16443
16444 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16445
16446 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
16447 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
16448 <free_xmethod_worker_data>: Remove.
16449 <get_matching_xmethod_workers>: Chance VEC to std::vector.
16450 <get_xmethod_arg_types>: Remove.
16451 <get_xmethod_result_type>: Remove.
16452 <invoke_xmethod>: Remove.
16453 * extension.c (new_xmethod_worker): Remove.
16454 (clone_xmethod_worker): Remove.
16455 (get_matching_xmethod_workers): Return void, pass std::vector by
16456 pointer.
16457 (get_xmethod_arg_types): Rename to...
16458 (xmethod_worker::get_arg_types): ... this, and adjust.
16459 (get_xmethod_result_type): Rename to...
16460 (xmethod_worker::get_result_type): ... this, and adjust.
16461 (invoke_xmethod): Remove.
16462 (free_xmethod_worker): Remove.
16463 (free_xmethod_worker_vec): Remove.
16464 * extension.h (enum ext_lang_rc): Move here from
16465 extension-priv.h.
16466 (struct xmethod_worker): Add constructor and destructor.
16467 <data>: Remove.
16468 <value>: Remove.
16469 <invoke, clone, do_get_result_type, do_get_arg_types>: New
16470 virtual pure methods.
16471 <get_arg_types, get_result_type>: New methods.
16472 (xmethod_worker_ptr): Remove typedef.
16473 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
16474 (xmethod_worker_vec): Remove typedef.
16475 (xmethod_worker_up): New typedef.
16476 (invoke_xmethod): Remove.
16477 (clone_xmethod_worker): Remove.
16478 (free_xmethod_worker): Remove.
16479 (free_xmethod_worker_vec): Remove.
16480 (get_xmethod_arg_types): Remove.
16481 (get_xmethod_result_type): Remove.
16482 * valops.c (find_method_list): Use std::vector, don't use
16483 intermediate vector.
16484 (value_find_oload_method_list): Use std::vector.
16485 (find_overload_match): Use std::vector.
16486 (find_oload_champ): Use std::vector.
16487 * value.c (value_free): Use operator delete.
16488 (value_of_xmethod): Rename to...
16489 (value_from_xmethod): ... this. Don't assign
16490 xmethod_worker::value, take rvalue-reference.
16491 (result_type_of_xmethod): Adjust.
16492 (call_xmethod): Adjust.
16493 * value.h: Include extension.h.
16494 (struct xmethod_worker): Don't forward-declare.
16495 (value_of_xmethod): Rename to...
16496 (value_from_xmethod): ... this, take rvalue-reference.
16497 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
16498 (struct python_xmethod_worker): ... this, add constructor and
16499 destructor.
16500 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
16501 (gdbpy_free_xmethod_worker_data): Rename to...
16502 (python_xmethod_worker::~python_xmethod_worker): ... this and
16503 adjust.
16504 (gdbpy_clone_xmethod_worker_data): Rename to...
16505 (python_xmethod_worker::clone): ... this and adjust.
16506 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
16507 temporary vector.
16508 (gdbpy_get_xmethod_arg_types): Rename to...
16509 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
16510 (gdbpy_get_xmethod_result_type): Rename to...
16511 (python_xmethod_worker::do_get_result_type): ... this and
16512 adjust.
16513 (gdbpy_invoke_xmethod): Rename to...
16514 (python_xmethod_worker::invoke): ... this and adjust.
16515 (new_python_xmethod_worker): Rename to...
16516 (python_xmethod_worker::python_xmethod_worker): ... this and
16517 adjust.
16518 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
16519 Remove.
16520 (gdbpy_free_xmethod_worker_data): Remove.
16521 (gdbpy_get_matching_xmethod_workers): Use std::vector.
16522 (gdbpy_get_xmethod_arg_types): Remove.
16523 (gdbpy_get_xmethod_result_type): Remove.
16524 (gdbpy_invoke_xmethod): Remove.
16525 * python/python.c (python_extension_ops): Remove obsolete
16526 callbacks.
16527
16528 2018-01-05 Pedro Alves <palves@redhat.com>
16529
16530 PR gdb/18653
16531 * common/signals-state-save-restore.c
16532 (save_original_signals_state): New parameter 'quiet'. Warn if we
16533 find a custom handler preinstalled, instead of internal erroring.
16534 But only warn if !quiet.
16535 * common/signals-state-save-restore.h
16536 (save_original_signals_state): New parameter 'quiet'.
16537 * main.c (captured_main_1): Move save_original_signals_state call
16538 after option handling, and pass QUIET.
16539
16540 2018-01-05 Pedro Alves <palves@redhat.com>
16541
16542 * spu-tdep.c (spu_catch_start): Pass
16543 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
16544
16545 2018-01-05 Pedro Alves <palves@redhat.com>
16546
16547 PR gdb/22670
16548 * ada-lang.c (literal_symbol_name_matcher): New function.
16549 (ada_get_symbol_name_matcher): Use it for
16550 symbol_name_match_type::SEARCH_NAME.
16551 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
16552 it down instead of assuming symbol_name_match_type::FULL.
16553 * block.h (block_lookup_symbol): New parameter 'match_type'.
16554 * c-valprint.c (print_unpacked_pointer): Use
16555 lookup_symbol_search_name instead of lookup_symbol.
16556 * compile/compile-object-load.c (get_out_value_type): Pass down
16557 symbol_name_match_type::SEARCH_NAME.
16558 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
16559 symbol_name_match_type::FULL.
16560 * cp-support.c (cp_get_symbol_name_matcher): Handle
16561 symbol_name_match_type::SEARCH_NAME.
16562 * infrun.c (insert_exception_resume_breakpoint): Use
16563 lookup_symbol_search_name.
16564 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
16565 * psymtab.c (maintenance_check_psymtabs): Use
16566 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
16567 * stack.c (print_frame_args): Use lookup_symbol_search_name and
16568 SYMBOL_SEARCH_NAME.
16569 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
16570 if symbol_name_match_type::SEARCH_NAME.
16571 (lookup_symbol_in_language): Pass down
16572 symbol_name_match_type::FULL.
16573 (lookup_symbol_search_name): New.
16574 (lookup_language_this): Pass down
16575 symbol_name_match_type::SEARCH_NAME.
16576 (lookup_symbol_aux, lookup_local_symbol): New parameter
16577 'match_type'. Pass it down.
16578 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
16579 (lookup_symbol_search_name): New declaration.
16580 (lookup_symbol_in_block): New 'match_type' parameter.
16581
16582 2018-01-05 Pedro Alves <palves@redhat.com>
16583
16584 PR gdb/22670
16585 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
16586 ada_lookup_symbol.
16587 (ada_lookup_symbol): Reimplement in terms of
16588 ada_lookup_symbol_list, bits factored out from
16589 ada_lookup_encoded_symbol.
16590
16591 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16592
16593 * ada-exp.y (write_object_renaming): When subscripting an array
16594 using a symbol as the index, pass the block in call to
16595 ada_lookup_encoded_symbol when looking that symbol up.
16596
16597 2018-01-05 Jerome Guitton <guitton@adacore.com>
16598
16599 * ada-lang.c (ada_array_length): Use ada_index_type instead of
16600 TYPE_INDEX_TYPE.
16601
16602 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16603
16604 * ada-lang.c (ada_to_fixed_value_create): Add handling of
16605 the case where VALUE_LVAL (val0) is not lval_memory.
16606
16607 2018-01-05 Xavier Roirand <roirand@adacore.com>
16608
16609 * ada-valprint.c (print_optional_low_bound): Handle
16610 character-indexed array printing like boolean-indexed array
16611 printing.
16612
16613 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16614
16615 * NEWS: Create a new section for the next release branch.
16616 Rename the section of the current branch, now that it has
16617 been cut.
16618
16619 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16620
16621 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
16622 * version.in: Bump version to 8.1.50.DATE-git.
16623
16624 2018-01-03 Xavier Roirand <roirand@adacore.com>
16625
16626 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
16627 Add field.
16628 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
16629 Add field.
16630 (default_exception_support_info) <catch_handlers_sym>: Add field.
16631 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
16632 (ada_exception_name_addr_1): Add "catch handlers" handling.
16633 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
16634 Update all callers.
16635 (create_excep_cond_exprs) <ex>: Add parameter.
16636 (re_set_exception): Update create_excep_cond_exprs call.
16637 (print_it_exception, print_one_exception, print_mention_exception)
16638 (print_recreate_exception): Add "catch handler" handling.
16639 (allocate_location_catch_handlers, re_set_catch_handlers)
16640 (check_status_catch_handlers, print_it_catch_handlers)
16641 (print_one_catch_handlers, print_mention_catch_handlers)
16642 (print_recreate_catch_handlers): New function.
16643 (catch_handlers_breakpoint_ops): New variable.
16644 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
16645 Add parameter. Add "catch handler" handling.
16646 (ada_exception_sym_name, ada_exception_breakpoint_ops):
16647 Add "catch handler" handling.
16648 (ada_exception_catchpoint_cond_string): Add "catch handler"
16649 handling.
16650 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
16651 call.
16652 (catch_ada_handlers_command): New function.
16653 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
16654 operations structure.
16655 (_initialize_ada_language): Add "catch handlers" command entry.
16656 * NEWS: Document "catch handlers" feature.
16657
16658 2018-01-02 Joel Brobecker <brobecker@adacore.com>
16659
16660 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
16661 account when creating the array type of the slice.
16662 (ada_value_slice): Likewise.
16663
16664 2018-01-02 Joel Brobecker <brobecker@adacore.com>
16665
16666 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
16667 New enum value.
16668 (create_array_type_with_stride): Add byte_stride_prop parameter.
16669 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
16670 New parameter. Update all callers in this file.
16671 (array_type_has_dynamic_stride): New function.
16672 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
16673 of arrays with dynamic byte strides.
16674 * dwarf2read.c (read_array_type): Add support for dynamic
16675 DW_AT_byte_stride attributes.
16676
16677 2018-01-02 Joel Brobecker <brobecker@adacore.com>
16678
16679 * dwarf2read.c (read_unspecified_type): Treat
16680 DW_TAG_enumeration_type DIEs from Ada units as stubs.
16681
16682 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16683
16684 Update copyright year range in all GDB files.
16685
16686 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
16687
16688 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
16689 and gdb/testsuite/gdb.base/step-line.c.
16690
16691 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16692
16693 * copyright.py (main): Dump the contents of
16694 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
16695 even if BY_HAND is empty.
16696
16697 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16698
16699 * top.c (print_gdb_version): Update Copyright year in version
16700 message.
16701
16702 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16703
16704 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
16705
16706 For older changes see ChangeLog-2017.
16707 \f
16708 Local Variables:
16709 mode: change-log
16710 left-margin: 8
16711 fill-column: 74
16712 version-control: never
16713 coding: utf-8
16714 End: