[GOLD] icf_safe_so_test
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d9c859da
AB
12018-12-07 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * .dir-locals.el: Copy most of the settings from c-mode over to
4 c++-mode.
5
42e151bf
SH
62018-12-08 Stafford Horne <shorne@gmail.com>
7
8 * Makefile.in (ALL_TARGET_OBS): Add or1k-linux-tdep.o.
9 * configure.tgt: Add or1k*-*-linux*.
10 * or1k-linux-tdep.c: New file.
11 * or1k-tdep.c (or1k_gdbarch_init): Call gdbarch_init_osabi.
12
8bebfcda
PA
132018-12-07 Pedro Alves <palves@redhat.com>
14
15 * dwarf2read.c (get_gdb_index_contents_from_section): Use
16 gdb::make_array_view.
17
4a811000
PW
182018-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
19
20 * language.c (_initialize_language): Fix leak by assigning
21 a static string to language. Same for range and case_sensitive,
22 even if no leak is detected for these variables.
23
2861ee4f
JB
242018-12-05 John Baldwin <jhb@FreeBSD.org>
25
26 * configure: Re-generate.
27 * configure.ac: Use separate sed expressions to escape variables
28 in auto-load directories.
29
90af0679
AB
302018-12-05 Andrew Burgess <andrew.burgess@embecosm.com>
31
32 * riscv-tdep.c (riscv_features_from_gdbarch_info): New function.
33 (riscv_find_default_target_description): Use new function to
34 extract feature from gdbarch_info.
35 (riscv_gdbarch_init): Add error checks for xlen and flen between
36 target description and bfd headers. Be smarter about when we
37 think the hardware floating point abi should be used.
38
754e3168
AH
392018-12-05 Alan Hayward <alan.hayward@arm.com>
40
41 * nat/aarch64-linux-hw-point.c
42 (aarch64_linux_any_set_debug_regs_state): New function.
43 * nat/aarch64-linux-hw-point.h
44 (aarch64_linux_any_set_debug_regs_state): New declaration.
45 * nat/aarch64-linux.c (aarch64_linux_new_thread): Check if any
46 BPs or WPs are set.
47
93579f6f
JB
482018-11-30 John Baldwin <jhb@FreeBSD.org>
49
50 * common/filestuff.c [HAVE_KINFO_GETFILE]: Include headers.
51 (fdwalk) [HAVE_KINFO_GETFILE]: Use kinfo_getfile.
52
4717cec4
SM
532018-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
54 Simon Marchi <simon.marchi@ericsson.com>
55
56 * linespec.c (symtab_vector_up): Remove.
57 (symtabs_from_filename): Change return type to std::vector.
58 (collect_symtabs_from_filename): Likewise.
59 (create_sals_line_offset): Assign return value of
60 collect_symtabs_from_filename to *ls->file_symtabs.
61 (convert_explicit_location_to_linespec): Remove call to release.
62 (parse_linespec): Likewise.
63 (symtab_collector) <symtab_collector>: Remove initialization of
64 m_symtabs.
65 <release_symtabs>: Change return type to std::vector<symtab *>.
66 <operator ()>: Adjust.
67
f8eb6a9e
JB
682018-11-30 John Baldwin <jhb@FreeBSD.org>
69
70 * fbsd-nat.c [__FreeBSD_version >= 700009] (USE_SIGINFO): Macro
71 defined.
72 (union sigval32, struct siginfo32, fbsd_siginfo_size)
73 (fbsd_convert_siginfo): Make conditional on USE_SIGINFO instead
74 of KERN_PROC_AUXV and PT_LWPINFO.
75 (fbsd_nat_target::xfer_partial): Define method unconditionally.
76 Make TARGET_OBJECT_SIGNAL_INFO conditional on USE_SIGINFO.
77 Make TARGET_OBJECT_AUXV conditional on KERN_PROC_AUXV.
78 Make TARGET_OBJECT_FREEBSD_VMMAP and
79 TARGET_OBJECT_FREEBSD_PS_STRINGS conditional on KERN_PROC_VMMAP
80 and KERN_PROC_PS_STRINGS.
81 * fbsd-nat.h: Include <sys/proc.h>.
82 (fbsd_nat_target::xfer_partial): Declare method unconditionally.
83
92528b67
AB
842018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
85
86 * riscv-linux-nat.c: Add 'inferior.h' and 'target-descriptions.h'
87 header files.
88 (riscv_linux_nat_target::read_description): New method.
89
63449436
AB
902018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
91
92 * arch/riscv.h (riscv_gdbarch_features::hash): New method.
93 * arch/riscv.c (struct riscv_gdbarch_features_hasher): New.
94 (riscv_tdesc_cache): New global.
95 (riscv_create_target_description): Look in the cache before
96 creating a new target description.
97
65a4b373
AB
982018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
99
100 * arch/riscv.h (riscv_gdb_features::operator==): New.
101 (riscv_gdb_features::operator!=): New.
102 * riscv-tdep.c (riscv_gdbarch_init): Make use of the inequality
103 operator.
104
0ff80bf7
AB
1052018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
106
107 * arch/riscv.h (riscv_create_target_description): Make return type
108 const.
109 * arch/riscv.c (riscv_create_target_description): Likewise.
110 * riscv-tdep.c (riscv_find_default_target_description): Likewise.
111
81fbbaf9
SDJ
1122018-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
113 Keith Seitz <keiths@redhat.com>
114 Tom Tromey <tom@tromey.com>
115 Sergio Durigan Junior <sergiodj@redhat.com>
116
117 https://bugzilla.redhat.com/show_bug.cgi?id=1613614
118 * dwarf2read.c (dwarf2_find_containing_comp_unit): Add
119 'mid_cu->length' to '*cu_off' when checking if 'sect_off' is
120 inside the CU.
121
66b4deae
PA
1222018-11-30 Pedro Alves <palves@redhat.com>
123
124 * aix-thread.c (aix_thread_target) <aix_thread_target>: Delete.
125 <stratum>: New override.
126 * bfd-target.c (aix_thread_target) <aix_thread_target>: Delete.
127 <stratum>: New override.
128 * bsd-uthread.c (bsd_uthread_target) <bsd_uthread_target>: Delete.
129 <stratum>: New override.
130 * exec.c (exec_target) <exec_target>: Delete.
131 <stratum>: New override.
132 * gdbarch-selftests.c (register_to_value_test): Adjust to use the
133 stratum method instead of the to_stratum field.
134 * linux-thread-db.c (thread_db_target) <thread_db_target>: Delete.
135 <stratum>: New override.
136 (thread_db_target::thread_db_target): Delete.
137 * make-target-delegates (print_class): Don't print a ctor
138 declaration. Print a stratum method override declaration.
139 * process-stratum-target.h (process_stratum_target)
140 <process_stratum_target>: Delete.
141 <stratum>: New override.
142 * ravenscar-thread.c (ravenscar_thread_target)
143 <ravenscar_thread_target>: Delete.
144 <stratum>: New override.
145 * record-btrace.c (record_btrace_target)
146 <record_btrace_target>: Delete.
147 <stratum>: New override.
148 * record-full.c (record_full_base_target)
149 <record_full_base_target>: Delete.
150 <stratum>: New override.
151 * record.c (record_disconnect, record_detach)
152 (record_mourn_inferior, record_kill): Adjust to use the stratum
153 method instead of the to_stratum field.
154 * regcache.c (cooked_read_test, cooked_write_test): Likewise.
155 * sol-thread.c (sol_thread_target)
156 <sol_thread_target>: Delete.
157 <stratum>: New override.
158 * spu-multiarch.c (spu_multiarch_target)
159 <spu_multiarch_target>: Delete.
160 <stratum>: New override.
161 * target-delegates.c: Regenerate.
162 * target.c (target_stack::push, target_stack::unpush)
163 (pop_all_targets_above, pop_all_targets_at_and_above)
164 (info_target_command, target_require_runnable)
165 (target_stack::find_beneath): Adjust to use the stratum method
166 instead of the to_stratum field.
167 (dummy_target::dummy_target): Delete.
168 (dummy_target::stratum): New.
169 (debug_target::debug_target): Delete.
170 (debug_target::stratum): New.
171 (maintenance_print_target_stack): Adjust to use the stratum method
172 instead of the to_stratum field.
173 * target.h (struct target_ops) <stratum>: New method.
174 <to_stratum>: Delete.
175 <is_pushed>: Adjust to use the stratum method
176 instead of the to_stratum field.
177
f3d11a9a
PA
1782018-11-30 Pedro Alves <palves@redhat.com>
179
180 * corelow.c (core_target) <has_all_memory, has_execution>: New
181 overrides.
182 * inf-child.c (inf_child_target::has_all_memory)
183 (inf_child_target::has_memory, inf_child_target::has_stack)
184 (inf_child_target::has_registers)
185 (inf_child_target::has_execution): Delete.
186 * inf-child.h (inf_child_target) <has_all_memory, has_memory,
187 has_stack, has_registers, has_execution>: Delete.
188 * process-stratum-target.c
189 (process_stratum_target::has_all_memory)
190 (process_stratum_target::has_memory)
191 (process_stratum_target::has_stack)
192 (process_stratum_target::has_registers)
193 (process_stratum_target::has_execution): New.
194 * process-stratum-target.h (process_stratum_target)
195 <has_all_memory, has_memory, has_stack, has_registers,
196 has_execution>: New method overrides.
197 * ravenscar-thread.c (ravenscar_thread_target) <has_all_memory,
198 has_memory, has_stack, has_registers, has_execution>: Delete.
199 * remote-sim.c (gdbsim_target) <has_stack, has_registers,
200 has_execution>: Delete.
201 * remote.c (remote_target) <has_all_memory, has_memory, has_stack,
202 has_registers, has_execution>: Delete.
203 * target.c (default_child_has_all_memory)
204 (default_child_has_memory, default_child_has_stack)
205 (default_child_has_registers, default_child_has_execution):
206 Delete.
207 * target.h (default_child_has_all_memory)
208 (default_child_has_memory, default_child_has_stack)
209 (default_child_has_registers, default_child_has_execution):
210 Delete.
211 * tracefile.h (tracefile_target) <has_execution>: New override.
212
3b3dac9b
PA
2132018-11-30 Pedro Alves <palves@redhat.com>
214
215 * Makefile.in (COMMON_SFILES): Add process-stratum-target.c.
216 * bsd-kvm.c: Include "process-stratum-target.h".
217 (bsd_kvm_target): Now inherits from process_stratum_target.
218 (bsd_kvm_target::bsd_kvm_target): Default it.
219 * corelow.c: Include "process-stratum-target.h".
220 (core_target): Now inherits from process_stratum_target.
221 (core_target::core_target): Don't set to_stratum here.
222 * inf-child.c (inf_child_target::inf_child_target): Delete.
223 * inf-child.h: Include "process-stratum-target.h".
224 (inf_child_target): Inherit from process_stratum_target.
225 (inf_child_target) <inf_child_target>: Default it.
226 <can_async_p, supports_non_stop, supports_disable_randomization>:
227 Delete overrides.
228 * process-stratum-target.c: New file.
229 * process-stratum-target.h: New file.
230 * remote-sim.c: Include "process-stratum-target.h".
231 (gdbsim_target): Inherit from process_stratum_target.
232 <gdbsim_target>: Default it.
233 * remote.c: Include "process-stratum-target.h".
234 (remote_target): Inherit from process_stratum_target.
235 <remote_target>: Default it.
236 * target.c (default_thread_address_space)
237 (default_thread_architecture): Delete.
238 * target.h (target_ops) <thread_architecture>: Now returns NULL by
239 default.
240 <thread_address_space>: Ditto.
241 * test-target.h: Include "process-stratum-target.h" instead of
242 "target.h".
243 (test_target_ops): Inherit from process_stratum_target.
244 <test_target_ops>: Default it.
245 * tracefile.c (tracefile_target::tracefile_target): Delete.
246 * tracefile.h: Include "process-stratum-target.h".
247 (tracefile_target): Inherit from process_stratum_target.
248 <tracefile_target>: Default it.
249 * target-delegates.c: Regenerate.
250
c180496d
PA
2512018-11-30 Pedro Alves <palves@redhat.com>
252
253 * Makefile.in (COMMON_SFILES): Add test-target.c.
254 * gdbarch-selftests.c: Include "test-target.h".
255 * regcache.c: Include "test-target.h".
256 * target.c (test_target_info, test_target_ops::info): Move to ...
257 * test-target.c: ... this new file.
258 * target.h (test_target_ops): Move to ...
259 * test-target.h: ... this new file.
260
95b1f9ac
PW
2612018-11-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
262
263 * source.c (forward_search_command): Fix leak by using
264 xrealloc even for the first allocation in the loop, as buf
265 is static.
266
e61667ef
RS
2672018-11-29 Rajendra SY <rajendra.sy@gmail.com>
268
269 PR gdb/23093
270 * gdb/fbsd-tdep.c (fbsd_gdb_signal_from_target)
271 (fbsd_gdb_signal_to_target): New.
272 (fbsd_init_abi): Install gdbarch "signal_from_target" and
273 "signal_to_target" methods.
274
3d5500e9
TT
2752018-11-29 Tom Tromey <tom@tromey.com>
276
277 * valarith.c (value_x_unop): Don't set argvec[3].
278
ed2df75c
SM
2792018-11-26 Simon Marchi <simon.marchi@ericsson.com>
280
281 PR gdb/23917
282 * sparc-linux-nat.c (sparc_linux_nat_target): Remove extraneous
283 semicolon.
284
24bce9bb
PA
2852018-11-26 Pedro Alves <palves@redhat.com>
286
287 * procfs.c (procfs_notice_thread): Replace uses of
288 in_thread_list/is_exited with find_thread_ptid/THREAD_EXITED.
289 * sol-thread.c (sol_thread_target::wait)
290 (sol_update_thread_list_callback): Likewise.
291
b5b12e1d
TT
2922018-11-25 Tom Tromey <tom@tromey.com>
293
294 * ui-out.c (ui_out::field_fmt): Remove comment.
295 * tui/tui-out.c (tui_ui_out::do_field_fmt): Remove comment.
296 * mi/mi-out.c (mi_ui_out::do_field_fmt): Remove comment.
297
54460946
PW
2982018-11-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
299
300 * source.c (open_source_file): Leak fixed in '8e6a5953e1d Fix 4K
301 leak in open_source_file' has been partially undone by '2179fbc36d23
302 Return scoped_fd from open_source_file'. Re-add the transfer of
303 current s->fullname to the unique_xmalloc_ptr fullname given
304 to find_and_open_source.
305
6af05e64
PA
3062018-11-23 Pedro Alves <palves@redhat.com>
307
308 * gdbthread.h (enum thread_state): Move comments here.
309 (is_running, is_stopped, is_exited): Remove declarations.
310
08036331
PA
3112018-11-22 Pedro Alves <palves@redhat.com>
312
313 * Makefile.in (COMMON_SFILES): Add thread-iter.c.
314 * breakpoint.c (breakpoints_should_be_inserted_now): Replace
315 ALL_NON_EXITED_THREADS with all_non_exited_threads.
316 (print_one_breakpoint_location): Replace ALL_INFERIORS with
317 all_inferiors.
318 * bsd-kvm.c: Include inferior.h.
319 * btrace.c (btrace_free_objfile): Replace ALL_NON_EXITED_THREADS
320 with all_non_exited_threads.
321 * common/filtered-iterator.h: New.
322 * common/safe-iterator.h: New.
323 * corelow.c (core_target_open): Don't call init_thread_list here.
324 * darwin-nat.c (thread_info_from_private_thread_info): Replace
325 ALL_THREADS with all_threads.
326 * fbsd-nat.c (fbsd_nat_target::resume): Replace
327 ALL_NON_EXITED_THREADS with inf->non_exited_threads.
328 * fbsd-tdep.c (fbsd_make_corefile_notes): Replace
329 ALL_NON_EXITED_THREADS with inf->non_exited_threads.
330 * fork-child.c (postfork_hook): Don't call init_thread_list here.
331 * gdbarch-selftests.c (register_to_value_test): Adjust.
332 * gdbthread.h: Don't include "inferior.h" here.
333 (struct inferior): Forward declare.
334 (enum step_over_calls_kind): Moved here from inferior.h.
335 (thread_info::deletable): Definition moved to thread.c.
336 (find_thread_ptid (inferior *, ptid_t)): Declare.
337 (ALL_THREADS, ALL_THREADS_BY_INFERIOR, ALL_THREADS_SAFE): Delete.
338 Include "thread-iter.h".
339 (all_threads, all_non_exited_threads, all_threads_safe): New.
340 (any_thread_p): Declare.
341 (thread_list): Delete.
342 * infcmd.c (signal_command): Replace ALL_NON_EXITED_THREADS with
343 all_non_exited_threads.
344 (proceed_after_attach_callback): Delete.
345 (proceed_after_attach): Take an inferior pointer instead of an
346 integer PID. Adjust to use range-for.
347 (attach_post_wait): Pass down inferior pointer instead of pid.
348 Use range-for instead of ALL_NON_EXITED_THREADS.
349 (detach_command): Remove init_thread_list call.
350 * inferior-iter.h: New.
351 * inferior.c (struct delete_thread_of_inferior_arg): Delete.
352 (delete_thread_of_inferior): Delete.
353 (delete_inferior, exit_inferior_1): Use range-for with
354 inf->threads_safe() instead of iterate_over_threads.
355 (inferior_appeared): Call init_thread_list here.
356 (discard_all_inferiors): Use all_non_exited_inferiors.
357 (find_inferior_id, find_inferior_pid): Use all_inferiors.
358 (iterate_over_inferiors): Use all_inferiors_safe.
359 (have_inferiors, number_of_live_inferiors): Use
360 all_non_exited_inferiors.
361 (number_of_inferiors): Use all_inferiors and std::distance.
362 (print_inferior): Use all_inferiors.
363 * inferior.h: Include gdbthread.h.
364 (enum step_over_calls_kind): Moved to gdbthread.h.
365 (struct inferior) <thread_list>: New field.
366 <threads, non_exited_threads, threads_safe>: New methods.
367 (ALL_INFERIORS): Delete.
368 Include "inferior-iter.h".
369 (ALL_NON_EXITED_INFERIORS): Delete.
370 (all_inferiors_safe, all_inferiors, all_non_exited_inferiors): New
371 functions.
372 * inflow.c (child_interrupt, child_pass_ctrlc): Replace
373 ALL_NON_EXITED_THREADS with all_non_exited_threads.
374 * infrun.c (follow_exec): Use all_threads_safe.
375 (clear_proceed_status, proceed): Use all_non_exited_threads.
376 (init_wait_for_inferior): Don't clear inline frame state here.
377 (infrun_thread_stop_requested, for_each_just_stopped_thread): Use
378 all_threads instead of ALL_NON_EXITED_THREADS.
379 (random_pending_event_thread): Use all_non_exited_threads instead
380 of ALL_NON_EXITED_THREADS. Use a lambda for repeated code.
381 (clean_up_just_stopped_threads_fsms): Use all_non_exited_threads
382 instead of ALL_NON_EXITED_THREADS.
383 (handle_no_resumed): Use all_non_exited_threads instead of
384 ALL_NON_EXITED_THREADS. Use all_inferiors instead of
385 ALL_INFERIORS.
386 (restart_threads, switch_back_to_stepped_thread): Use
387 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
388 * linux-nat.c (check_zombie_leaders): Replace ALL_INFERIORS with
389 all_inferiors.
390 (kill_unfollowed_fork_children): Use inf->non_exited_threads
391 instead of ALL_NON_EXITED_THREADS.
392 * linux-tdep.c (linux_make_corefile_notes): Use
393 inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
394 * linux-thread-db.c (thread_db_target::update_thread_list):
395 Replace ALL_INFERIORS with all_inferiors.
396 (thread_db_target::thread_handle_to_thread_info): Use
397 inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
398 * mi/mi-interp.c (multiple_inferiors_p): New.
399 (mi_on_resume_1): Simplify using all_non_exited_threads and
400 multiple_inferiors_p.
401 * mi/mi-main.c (mi_cmd_thread_list_ids): Use all_non_exited_threads
402 instead of ALL_NON_EXITED_THREADS.
403 * nto-procfs.c (nto_procfs_target::open): Don't call
404 init_thread_list here.
405 * record-btrace.c (record_btrace_target_open)
406 (record_btrace_target::stop_recording)
407 (record_btrace_target::close)
408 (record_btrace_target::record_is_replaying)
409 (record_btrace_target::resume, record_btrace_target::wait)
410 (record_btrace_target::record_stop_replaying): Use
411 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
412 * record-full.c (record_full_wait_1): Use all_non_exited_threads
413 instead of ALL_NON_EXITED_THREADS.
414 * regcache.c (cooked_read_test): Remove reference to global
415 thread_list.
416 * remote-sim.c (gdbsim_target::create_inferior): Don't call
417 init_thread_list here.
418 * remote.c (remote_target::update_thread_list): Use
419 all_threads_safe instead of ALL_NON_EXITED_THREADS.
420 (remote_target::process_initial_stop_replies): Replace
421 ALL_INFERIORS with all_non_exited_inferiors and use
422 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
423 (remote_target::open_1): Don't call init_thread_list here.
424 (remote_target::append_pending_thread_resumptions)
425 (remote_target::remote_resume_with_hc): Use all_non_exited_threads
426 instead of ALL_NON_EXITED_THREADS.
427 (remote_target::commit_resume)
428 (remote_target::remove_new_fork_children): Replace ALL_INFERIORS
429 with all_non_exited_inferiors and use all_non_exited_threads
430 instead of ALL_NON_EXITED_THREADS.
431 (remote_target::kill_new_fork_children): Use
432 all_non_exited_threads instead of ALL_NON_EXITED_THREADS. Remove
433 init_thread_list and init_wait_for_inferior calls.
434 (remote_target::remote_btrace_maybe_reopen)
435 (remote_target::thread_handle_to_thread_info): Use
436 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
437 * target.c (target_terminal::restore_inferior)
438 (target_terminal_is_ours_kind): Replace ALL_INFERIORS with
439 all_non_exited_inferiors.
440 * thread-iter.c: New file.
441 * thread-iter.h: New file.
442 * thread.c: Include "inline-frame.h".
443 (thread_list): Delete.
444 (clear_thread_inferior_resources): Call clear_inline_frame_state.
445 (init_thread_list): Use all_threads_safe instead of
446 ALL_THREADS_SAFE. Adjust to per-inferior thread lists.
447 (new_thread): Adjust to per-inferior thread lists.
448 (add_thread_silent): Pass inferior to find_thread_ptid.
449 (thread_info::deletable): New, moved from the header.
450 (delete_thread_1): Adjust to per-inferior thread lists.
451 (find_thread_global_id): Use inf->threads().
452 (find_thread_ptid): Use find_inferior_ptid and pass inferior to
453 find_thread_ptid.
454 (find_thread_ptid(inferior*, ptid_t)): New overload.
455 (iterate_over_threads): Use all_threads_safe.
456 (any_thread_p): New.
457 (thread_count): Use all_threads and std::distance.
458 (live_threads_count): Use all_non_exited_threads and
459 std::distance.
460 (valid_global_thread_id): Use all_threads.
461 (in_thread_list): Use find_thread_ptid.
462 (first_thread_of_inferior): Adjust to per-inferior thread lists.
463 (any_thread_of_inferior, any_live_thread_of_inferior): Use
464 inf->non_exited_threads().
465 (prune_threads, delete_exited_threads): Use all_threads_safe.
466 (thread_change_ptid): Pass inferior pointer to find_thread_ptid.
467 (set_resumed, set_running): Use all_non_exited_threads.
468 (is_thread_state, is_stopped, is_exited, is_running)
469 (is_executing): Delete.
470 (set_executing, set_stop_requested, finish_thread_state): Use
471 all_non_exited_threads.
472 (print_thread_info_1): Use all_inferiors and all_threads.
473 (thread_apply_all_command): Use all_non_exited_threads.
474 (thread_find_command): Use all_threads.
475 (update_threads_executing): Use all_non_exited_threads.
476 * tid-parse.c (parse_thread_id): Use inf->threads.
477 * x86-bsd-nat.c (x86bsd_dr_set): Use inf->non_exited_threads ().
478
c4c17fb0
PA
4792018-11-22 Pedro Alves <palves@redhat.com>
480
481 * infrun.c (follow_exec) <set follow-exec new>: Add thread and
482 switch to it before calling into try_open_exec_file.
483
151bb4a5
PA
4842018-11-22 Pedro Alves <palves@redhat.com>
485
486 * cli/cli-interp.c (cli_on_user_selected_context_changed): Use
487 inferior_thread instead of find_thread_ptid, and only when
488 inferior_ptid is not null_ptid.
489 * inferior.c (add_inferior): Don't include target_pid_to_str
490 output when the inferior is not started.
491 * python/py-inferior.c (python_on_normal_stop): Don't use
492 find_thread_ptid.
493 (tui_on_user_selected_context_changed): Use inferior_thread
494 instead of find_thread_ptid, and only when inferior_ptid is not
495 null_ptid.
496
1c97054b
BF
4972018-11-21 Benno Fünfstück <benno.fuenfstueck@gmail.com>
498
499 PR python/23714
500 * gdb/python/python.c (execute_gdb_command): Call
501 prevent_dont_repeat earlier to avoid affecting dont_repeat.
502
b5ffee31
AB
5032018-11-21 Andrew Burgess <andrew.burgess@embecosm.com>
504
505 * Makefile.in (ALL_TARGET_OBS): Add arch/riscv.o.
506 (HFILES_NO_SRCDIR): Add arch/riscv.h.
507 * arch/riscv.c: New file.
508 * arch/riscv.h: New file.
509 * configure.tgt: Add cpu_obs list of riscv, move riscv-tdep.o into
510 this list, and add arch/riscv.o.
511 * features/Makefile: Add riscv features.
512 * features/riscv/32bit-cpu.c: New file.
513 * features/riscv/32bit-cpu.xml: New file.
514 * features/riscv/32bit-csr.c: New file.
515 * features/riscv/32bit-csr.xml: New file.
516 * features/riscv/32bit-fpu.c: New file.
517 * features/riscv/32bit-fpu.xml: New file.
518 * features/riscv/64bit-cpu.c: New file.
519 * features/riscv/64bit-cpu.xml: New file.
520 * features/riscv/64bit-csr.c: New file.
521 * features/riscv/64bit-csr.xml: New file.
522 * features/riscv/64bit-fpu.c: New file.
523 * features/riscv/64bit-fpu.xml: New file.
524 * features/riscv/rebuild-csr-xml.sh: New file.
525 * riscv-tdep.c: Add 'arch/riscv.h' include.
526 (riscv_gdb_reg_names): Delete.
527 (csr_reggroup): New global.
528 (struct riscv_register_alias): Delete.
529 (struct riscv_register_feature): New structure.
530 (riscv_register_aliases): Delete.
531 (riscv_xreg_feature): New global.
532 (riscv_freg_feature): New global.
533 (riscv_virtual_feature): New global.
534 (riscv_csr_feature): New global.
535 (riscv_create_csr_aliases): New function.
536 (riscv_read_misa_reg): Delete.
537 (riscv_has_feature): Delete.
538 (riscv_isa_xlen): Simplify, just return cached xlen.
539 (riscv_isa_flen): Simplify, just return cached flen.
540 (riscv_has_fp_abi): Update for changes in struct gdbarch_tdep.
541 (riscv_register_name): Update to make use of tdesc_register_name.
542 Look up xreg and freg names in the new globals riscv_xreg_feature
543 and riscv_freg_feature. Don't supply csr aliases here.
544 (riscv_fpreg_q_type): Delete.
545 (riscv_register_type): Use tdesc_register_type in almost all
546 cases, override the returned type in a few specific cases only.
547 (riscv_print_one_register_info): Handle errors reading registers.
548 (riscv_register_reggroup_p): Use tdesc_register_in_reggroup_p for
549 registers that are otherwise unknown to GDB. Also check the
550 csr_reggroup.
551 (riscv_print_registers_info): Remove assert about upper register
552 number, and use gdbarch_register_reggroup_p instead of
553 short-cutting.
554 (riscv_find_default_target_description): New function.
555 (riscv_check_tdesc_feature): New function.
556 (riscv_add_reggroups): New function.
557 (riscv_setup_register_aliases): New function.
558 (riscv_init_reggroups): New function.
559 (_initialize_riscv_tdep): Add calls to setup CSR aliases, and
560 setup register groups. Register new riscv debug variable.
561 * riscv-tdep.h: Add 'arch/riscv.h' include.
562 (struct gdbarch_tdep): Remove abi union, and add
563 riscv_gdbarch_features field. Remove cached quad floating point
564 type, and provide initialisation for double type field.
565 * target-descriptions.c (maint_print_c_tdesc_cmd): Add riscv to
566 the list of targets using the feature based target descriptions.
567 * NEWS: Mention target description support.
568
38139a96
PA
5692018-11-21 Pedro Alves <palves@redhat.com>
570
571 * valops.c (find_method_list, value_find_oload_method_list)
572 (find_overload_match, find_oload_champ): Rename parameters and
573 locals.
574
85cca2bc
PA
5752018-11-21 Pedro Alves <palves@redhat.com>
576
577 * valops.c (find_method_list): Replace pointer and length
578 parameters with an gdb::array_view. Adjust.
579 (value_find_oload_method_list): Likewise.
580 (find_overload_match): Use gdb::array_view for methods list.
581 Adjust to find_oload_champ interface change.
582 (find_oload_champ): 'xm_worker_vec' parameter now a pointer/array.
583 'num_fns' parameter now a size_t. Eliminate 'fn_count' local.
584
82ceee50
PA
5852018-11-21 Pedro Alves <palves@redhat.com>
586
587 * gdbtypes.c (compare_badness): Change type of parameters to const
588 reference. Adjust to badness_vector being a std::vector now.
589 (rank_function): Adjust to badness_vector being a std::vector now.
590 * gdbtypes.h (badness_vector): Now a typedef to std::vector.
591 (LENGTH_MATCH): Delete.
592 (compare_badness): Change type of parameters to const reference.
593 (rank_function): Return a badness_vector by value now.
594 (find_overload_match): Adjust to badness_vector being a
595 std::vector now. Remove cleanups.
596 (find_oload_champ_namespace): 'oload_champ_bv' parameter now a
597 badness_vector pointer.
598 (find_oload_champ_namespace_loop): 'oload_champ_bv' parameter now
599 a badness_vector pointer. Adjust to badness_vector being a
600 std::vector now. Remove cleanups.
601 (find_oload_champ): 'oload_champ_bv' parameter now
602 a badness_vector pointer. Adjust to badness_vector being a
603 std::vector now. Remove cleanups.
604
0891c3cc
PA
6052018-11-21 Pedro Alves <palves@redhat.com>
606
607 * cp-support.c (sym_return_val_size, sym_return_val_index)
608 (sym_return_val): Delete.
609 (overload_list_add_symbol): Add std::vector parameter. Adjust to
610 add to the vector.
611 (make_symbol_overload_list): Adjust to return a std::vector
612 instead of maintaining a global open coded vector.
613 (make_symbol_overload_list_block): Add std::vector parameter.
614 (make_symbol_overload_list_block): Rename to ...
615 (add_symbol_overload_list_block): ... this and add std::vector
616 parameter.
617 (make_symbol_overload_list_namespace): Rename to ...
618 (add_symbol_overload_list_namespace): ... this and add std::vector
619 parameter.
620 (make_symbol_overload_list_adl_namespace): Rename to ...
621 (add_symbol_overload_list_adl_namespace): ... this and add
622 std::vector parameter.
623 (make_symbol_overload_list_adl): Delete.
624 (add_symbol_overload_list_adl): New.
625 (make_symbol_overload_list_using): Rename to ...
626 (add_symbol_overload_list_using): ... this and add std::vector
627 parameter.
628 (make_symbol_overload_list_qualified): Rename to ...
629 (add_symbol_overload_list_qualified): ... this and add std::vector
630 parameter.
631 * cp-support.h: Include "common/array-view.h" and <vector>.
632 (make_symbol_overload_list): Change return type to std::vector.
633 (make_symbol_overload_list_adl): Delete declaration.
634 (add_symbol_overload_list_adl): New declaration.
635 * valops.c (find_overload_match): Local 'oload_syms' now a
636 std::vector.
637 (find_oload_champ_namespace): 'oload_syms' parameter now a
638 std::vector pointer.
639 (find_oload_champ_namespace_loop): 'oload_syms' parameter now a
640 std::vector pointer. Adjust to new make_symbol_overload_list
641 interface.
642
6b1747cd
PA
6432018-11-21 Pedro Alves <palves@redhat.com>
644
645 * common/array-view.h (array_view::splice(size_type, size_t)): New.
646 (array_view::splice(size_type)): New.
647 * eval.c (eval_call, evaluate_funcall): Adjust to use array_view.
648 * extension.c (xmethod_worker::get_arg_types): Adjust to return an
649 std::vector.
650 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
651 * extension.h: Include "common/array-view.h".
652 (xmethod_worker::invoke): Adjust to use gdb::array_view.
653 (xmethod_worker::get_arg_types): Adjust to return an std::vector.
654 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
655 (xmethod_worker::do_get_arg_types): Adjust to use std::vector.
656 (xmethod_worker::do_get_result_type): Adjust to use
657 gdb::array_view.
658 * gdbtypes.c (rank_function): Adjust to use gdb::array_view.
659 * gdbtypes.h: Include "common/array-view.h".
660 (rank_function): Adjust to use gdb::array_view.
661 * python/py-xmethods.c (python_xmethod_worker::invoke)
662 (python_xmethod_worker::do_get_arg_types)
663 (python_xmethod_worker::do_get_result_type)
664 (python_xmethod_worker::invoke): Adjust to new interfaces.
665 * valarith.c (value_user_defined_cpp_op, value_user_defined_op)
666 (value_x_binop, value_x_unop): Adjust to use gdb::array_view.
667 * valops.c (find_overload_match, find_oload_champ_namespace)
668 (find_oload_champ_namespace_loop, find_oload_champ): Adjust to use
669 gdb:array_view and the new xmethod_worker interfaces.
670 * value.c (result_type_of_xmethod, call_xmethod): Adjust to use
671 gdb::array_view.
672 * value.h (find_overload_match, result_type_of_xmethod)
673 (call_xmethod): Adjust to use gdb::array_view.
674 * unittests/array-view-selftests.c: Add slicing tests.
675
e71585ff
PA
6762018-11-21 Pedro Alves <palves@redhat.com>
677
678 * ada-lang.c (ada_evaluate_subexp): Adjust to pass an array_view.
679 * common/array-view.h (make_array_view): New.
680 * compile/compile-object-run.c (compile_object_run): Adjust to
681 pass an array_view.
682 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust.
683 * eval.c (eval_call): Adjust to pass an array_view.
684 (evaluate_subexp_standard): Adjust to pass an array_view.
685 * gcore.c (call_target_sbrk): Adjust to pass an array_view.
686 * guile/scm-value.c (gdbscm_value_call): Likewise.
687 * infcall.c (push_dummy_code): Replace pointer + size parameters
688 with an array_view parameter.
689 (call_function_by_hand, call_function_by_hand_dummy): Likewise and
690 adjust.
691 * infcall.h: Include "common/array-view.h".
692 (call_function_by_hand, call_function_by_hand_dummy): Replace
693 pointer + size parameters with an array_view parameter.
694 * linux-fork.c (inferior_call_waitpid): Adjust to use array_view.
695 * linux-tdep.c (linux_infcall_mmap): Likewise.
696 * objc-lang.c (lookup_objc_class, lookup_child_selector)
697 (value_nsstring, print_object_command): Likewise.
698 * python/py-value.c (valpy_call): Likewise.
699 * rust-lang.c (rust_evaluate_funcall): Likewise.
700 * spu-tdep.c (flush_ea_cache): Likewise.
701 * valarith.c (value_x_binop, value_x_unop): Likewise.
702 * valops.c (value_allocate_space_in_inferior): Likewise.
703 * unittests/array-view-selftests.c (run_tests): Add
704 gdb::make_array_view test.
705
d63095c4
AB
7062018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
707
708 * cli-out.c (cli_ui_out::do_field_int): Use string_printf rather
709 than a fixed size buffer.
710
1871a62d
AB
7112018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
712
713 * breakpoint.c (print_one_breakpoint_location): Reduce whitespace,
714 and remove insertion of extra spaces in GDB's output.
715 * cli-out.c (cli_ui_out::do_field_fmt): Update header comment.
716 Layout field into a temporary buffer, and then output it as a
717 string field.
718
604c4ca9
PW
7192018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
720
721 * NEWS: Document the language choice done by
722 'info [types|functions|variables]|rbreak'.
723
43d397ca
PW
7242018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
725
726 * symtab.c (treg_matches_sym_type_name): Use
727 scoped_switch_to_sym_language_if_auto instead of local logic.
728 (print_symbol_info): Use scoped_switch_to_sym_language_if_auto
729 to switch to SYM language when language mode is auto.
730
9e6a1ab6
PW
7312018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
732
733 * language.h (scoped_switch_to_sym_language_if_auto): New class.
734
a8462bbf
PW
7352018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
736
737 * symtab.c (search_symbols): Properly check absence of type regexp
738 before entering the loop scanning the minimal symbols.
739
4399bce9 7402018-11-20 John Darrington <john@darrington.wattle.id.au>
c3247a98
JD
741
742 * s12z-tdep.c (s12z_extract_return_value): New function.
743 (inv_reg_perm) New array.
744 (s12z_return_value): Populate readbuf if non-null.
745
970d89d8
EZ
7462018-11-20 Eli Zaretskii <eliz@gnu.org>
747
748 * common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode
749 with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater
750 to MinGW fixed by Gnulib.
2fa1b319 751 (O_NOINHERIT): Define if not defined.
970d89d8 752
4399bce9 7532018-11-19 John Darrington <john@darrington.wattle.id.au>
7b5227d1 754
4399bce9 755 * s12z-tdep.c (s12z_frame_cache): Add an assertion.
7b5227d1 756
dbe4e654
SM
7572018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
758
759 * infrun.c (displaced_step_inferior_state) <next>: Remove.
760
0614ef69
TT
7612018-11-19 Tom Tromey <tom@tromey.com>
762
763 * source.c (get_filename_and_charpos): Return void.
764
261f6f79
SM
7652018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
766
767 * skip.c (_initialize_step_skip): Fix "info skip" help.
768
73fc52c4
TT
7692018-11-16 Tom Tromey <tom@tromey.com>
770
771 PR rust/23625:
772 * rust-lang.c (rust_internal_print_type): Handle TYPE_CODE_PTR.
773
39a36629
SM
7742018-11-19 Simon Marchi <simon.marchi@ericsson.com>
775
776 * infrun.c (displaced_step_inferior_states): Change type to
777 std::forward_list.
778 (get_displaced_stepping_state): Adjust.
779 (displaced_step_in_progress_any_inferior): Adjust.
780 (add_displaced_stepping_state): Adjust.
781 (remove_displaced_stepping_state): Adjust.
782
c2a6c5da
TT
7832018-11-18 Tom Tromey <tom@tromey.com>
784
785 PR build/23814:
786 * target-delegates.c: Rebuild.
787 * ia64-linux-nat.c (class ia64_linux_nat_target)
788 <have_steppable_watchpoint>: Use override. Return true, not 1.
789 (ia64_linux_nat_target::can_use_hw_breakpoint): Rename. Remove
790 "self" argument.
791 (ia64_linux_nat_target::low_new_thread): Rename.
792 (class ia64_linux_nat_target) <read_description>: Don't declare.
793 * target.h (struct target_ops) <have_steppable_watchpoint>: Return
794 bool.
795
38a72da0
AH
7962018-11-16 Alan Hayward <alan.hayward@arm.com>
797
798 PR gdb/22736:
799 * aarch64-tdep.c (aarch64_push_dummy_call): Remove
800 lang_struct_return code.
801
cf84fa6b
AH
8022018-11-16 Alan Hayward <alan.hayward@arm.com>
803
804 * aarch64-tdep.c (aarch64_push_dummy_call): Replace arg with
805 return_method.
806 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
807 * amd64-tdep.c (amd64_push_arguments): Likewise.
808 (amd64_push_dummy_call): Likewise.
809 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
810 * arc-tdep.c (arc_push_dummy_call): Likewise.
811 * arm-tdep.c (arm_push_dummy_call): Likewise.
812 * avr-tdep.c (avr_push_dummy_call): Likewise.
813 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
814 * cris-tdep.c (cris_push_dummy_call): Likewise.
815 * csky-tdep.c (csky_push_dummy_call): Likewise.
816 * frv-tdep.c (frv_push_dummy_call): Likewise.
817 * gdbarch.c: Regenerate.
818 * gdbarch.h: Regenerate.
819 * gdbarch.sh (gdbarch_push_dummy_call): Replace arg with
820 return_method.
821 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
822 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
823 (hppa64_push_dummy_call): Likewise.
824 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
825 * i386-tdep.c (i386_push_dummy_call): Likewise.
826 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
827 * infcall.c (call_function_by_hand_dummy): Likewise.
828 * iq2000-tdep.c (iq2000_push_dummy_call): Likewise.
829 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
830 * m32c-tdep.c (m32c_push_dummy_call): Likewise.
831 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
832 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
833 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
834 * mep-tdep.c (mep_push_dummy_call): Likewise.
835 * mips-tdep.c (mips_eabi_push_dummy_call): Likewise.
836 (mips_n32n64_push_dummy_call): Likewise.
837 (mips_o32_push_dummy_call): Likewise.
838 (mips_o64_push_dummy_call): Likewise.
839 * mn10300-tdep.c (mn10300_push_dummy_call): Likewise.
840 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
841 * nds32-tdep.c (nds32_push_dummy_call): Likewise.
842 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
843 * or1k-tdep.c (or1k_push_dummy_call): Likewise.
844 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
845 (ppc64_sysv_abi_push_dummy_call): Likewise.
846 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Likewise.
847 (ppc64_sysv_abi_push_dummy_call): Likewise.
848 * riscv-tdep.c (riscv_push_dummy_call): Likewise.
849 * rl78-tdep.c (rl78_push_dummy_call): Likewise.
850 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
851 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
852 * rx-tdep.c (rx_push_dummy_call): Likewise.
853 * s390-tdep.c (s390_push_dummy_call): Likewise.
854 * score-tdep.c (score_push_dummy_call): Likewise.
855 * sh-tdep.c (sh_push_dummy_call_fpu): Likewise.
856 (sh_push_dummy_call_nofpu): Likewise.
857 * sparc-tdep.c (sparc32_store_arguments): Likewise.
858 (sparc32_push_dummy_call): Likewise.
859 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
860 (sparc64_push_dummy_call): Likewise.
861 * spu-tdep.c (spu_push_dummy_call): Likewise.
862 * tic6x-tdep.c (tic6x_push_dummy_call): Likewise.
863 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
864 * v850-tdep.c (v850_push_dummy_call): Likewise.
865 * vax-tdep.c (vax_push_dummy_call): Likewise.
866 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
867 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
868
c5ac5cbb
AH
8692018-11-16 Alan Hayward <alan.hayward@arm.com>
870
871 * gdbarch.sh (enum function_call_return_method): Add enum.
872 * gdbarch.h: Regenerate.
873 * infcall.c (call_function_by_hand_dummy): Replace vars with enum.
874
f9db0c4c
JB
8752018-11-15 Joel Brobecker <brobecker@adacore.com>
876
877 * unittests/copy_bitwise-selftests.c: New file.
878 * utils.c (selftests::bits_to_str, selftests::check_copy_bitwise)
879 (selftests::copy_bitwise_tests): Delete, moving this code to
880 unittests/copy_bitwise-selftests.c instead.
881 (_initialize_utils): Do not register copy_bitwise tests.
882 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
883 unittests/copy_bitwise-selftests.c.
884
a99bc3d2
JB
8852018-11-14 Joel Brobecker <brobecker@adacore.com>
886
887 * ada-lang.c (move_bits): Delete. Update all callers to use
888 copy_bitwise instead.
889 * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str)
890 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
891 Move from here to utils.c.
892 (_initialize_dwarf2loc): Remove call to register copy_bitwise
893 selftests.
894 * utils.h (copy_bitwise): Add declaration.
895 * utils.c (copy_bitwise, bits_to_str::bits_to_str)
896 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
897 Moved here from dwarf2loc.c.
898 (_initialize_utils): Register copy_bitwise selftests.
899
174f8ac8
JW
9002018-11-14 Jim Wilson <jimw@sifive.com>
901
8b2d40cb
JW
902 * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed.
903 (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment,
904 then increment next_regnum if odd.
905 (riscv_arg_location): New arg is_unnamed. Set ainfo->is_unnamed.
906 (riscv_push_dummy_call): New local ftype. Call check_typedef to set
907 function type. Pass new arg to riscv_arg_location based on function
908 type.
909 (riscv_return_value): Pass new arg to riscv_arg_location.
910
ef2de9e7
JW
911 * riscv-tdep.c (BIGGEST_ALIGNMENT): New.
912 (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min
913 of TYPE_LENGTH and BIGGEST_ALIGNMENT.
914
174f8ac8
JW
915 * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when
916 setting len. New local align, set to max of arg align and xlen,
917 and pass to first riscv_assign_stack_location call.
918
53a89d6e
SM
9192018-11-12 Simon Marchi <simon.marchi@polymtl.ca>
920
921 * skip.c (complete_skip_number): New function.
922 (_initialize_step_skip): Add completers to some skip commands.
923
eefce37f
TT
9242018-11-09 Tom Tromey <tom@tromey.com>
925
926 * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC.
927 (struct remote_g_packet_data): Derive from allocate_on_obstack.
928 <guesses>: Now a std::vector.
929 (remote_g_packet_data_init, register_remote_g_packet_guess):
930 Update.
931 (remote_read_description_p): Update. Return bool.
932 (remote_target::read_description): Update.
933 (struct remote_g_packet_guess): Add constructor.
934
2179fbc3
TT
9352018-11-09 Tom Tromey <tom@tromey.com>
936
937 * common/scoped_fd.h (class scoped_fd): Add move constructor and
938 move assignment operator.
939 * psymtab.c (psymtab_to_fullname): Update.
940 * source.h (open_source_file): Return scoped_fd.
941 (find_and_open_source): Likewise.
942 * source.c (open_source_file): Return scoped_fd.
943 (get_filename_and_charpos): Update.
944 (print_source_lines_base): Update. Use scoped_fd::to_file.
945 (forward_search_command): Likewise.
946 (reverse_search_command): Likewise.
947 (find_and_open_source): Return scoped_fd.
948 * tui/tui-source.c (tui_set_source_content): Update. Use
949 gdb_file_up.
950
9c122c7f
JB
9512018-11-09 John Baldwin <jhb@FreeBSD.org>
952
953 * minsyms.c (minimal_symbol_reader::install): Fix unsigned
954 overflow.
955
5d762de0
HAQ
9562018-11-09 Hafiz Abid Qadeer <abidh@codesourcery.com>
957
958 * configure: Regenerate.
959
9325300d
TV
9602018-11-09 Tom de Vries <tdevries@suse.de>
961
962 * symtab.c (symbol_set_names): Call symbol_find_demangled_name
963 unconditionally, to set the language of the symbol. Manage freeing
964 returned pointer using gdb::unique_xmalloc_ptr.
965
9c710e11
TT
9662018-11-08 Tom Tromey <tom@tromey.com>
967
968 * record.c (require_record_target): Upper-case "<TAB>".
969
3c6618cd
TT
9702018-11-08 Tom Tromey <tom@tromey.com>
971
972 * python/lib/gdb/command/pretty_printers.py
973 (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
974
20f0d60d
TT
9752018-11-08 Tom Tromey <tom@tromey.com>
976
977 PR gdb/23555:
978 PR gdb/23838:
979 * target.h (target_supports_terminal_ours): Return bool.
980 * target.c (target_supports_terminal_ours): Handle case where
981 current_top_target returns nullptr. Return bool.
982
d4718d5c
JB
9832018-11-08 Joel Brobecker <brobecker@adacore.com>
984
985 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1):
986 return the correct count for potential HFAs.
987
b5420128
JB
9882018-11-08 Jan Beulich <jbeulich@suse.com>
989
990 * i387-tdep.c (i387_supply_xsave): Split handling of
991 X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
992 (i387_collect_xsave): Likewise.
993
17cf2897
AB
9942018-11-08 Andrew Burgess <andrew.burgess@embecosm.com>
995
996 * riscv-tdep.c (riscv_insn::decode): Update header comment.
997 (riscv_frame_this_id): Catch errors thrown while building the
998 frame cache, leave the frame id as the default, which is the outer
999 frame id.
1000
76136aed
JB
10012018-11-07 Joel Brobecker <brobecker@adacore.com>
1002
1003 * ada-lang.c (read_atcb): Only set task_info->called_task if
1004 task_info->state == Entry_Caller_Sleep.
1005 (print_ada_task_info): Do not check task_info->state before
1006 checking task_info->called_task.
1007 (info_task): Likewise.
1008
07deea26
JB
10092018-11-07 Joel Brobecker <brobecker@adacore.com>
1010
1011 * ada-tasks.c (read_atcb): Clear task_info before computing
1012 the value of each of its fields.
1013
35ee2dc2
AB
10142018-11-07 Andrew Burgess <andrew.burgess@embecosm.com>
1015
1016 * dwarf2read.c (dwarf2_init_integer_type): Check for name being
1017 NULL before dereferencing it.
1018
31aceee8
TV
10192018-11-06 Tom de Vries <tdevries@suse.de>
1020
1021 * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
1022 program headers.
1023
f11acc5e
MF
10242018-11-06 Max Filippov <jcmvbkbc@gmail.com>
1025
1026 * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
1027 so that it applies to uclinux as well.
1028
9e237747
MM
10292018-11-06 Marius Muench <marius.muench@eurecom.fr>
1030
1031 * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
1032 when on AAPCS.
1033
bcecc11d
JB
10342018-11-06 John Baldwin <jhb@FreeBSD.org>
1035
1036 * riscv-fbsd-nat.c (getregs_supplies): Return true for
1037 RISCV_CSR_SSTATUS_REGNUM.
1038
bb20ccab
PW
10392018-11-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1040
1041 * source.c (open_source_file): Fix leak by transferring the
1042 current s->fullname to the unique_xmalloc_ptr fullname given
1043 to find_and_open_source.
1044
a31abe80
TT
10452018-11-04 Tom Tromey <tom@tromey.com>
1046
1047 * varobj.c (install_default_visualizer): Update.
1048 * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
1049 Return gdbpy_ref.
1050 * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
1051 (find_pretty_printer_from_progspace)
1052 (find_pretty_printer_from_gdb, find_pretty_printer)
1053 (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
1054 (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
1055 Update.
1056
833d985d
TT
10572018-11-04 Tom Tromey <tom@tromey.com>
1058
1059 * python/python.c (gdbpy_parameter_value): Update.
1060 * python/python-internal.h (python_string_to_unicode)
1061 (python_string_to_target_python_string)
1062 (host_string_to_python_string): Return gdbpy_ref.
1063 * python/py-utils.c (python_string_to_unicode)
1064 (unicode_to_encoded_python_string)
1065 (unicode_to_target_python_string)
1066 (python_string_to_target_string)
1067 (python_string_to_target_python_string): Return gdbpy_ref.
1068 (python_string_to_host_string): Update.
1069 (host_string_to_python_string): Return gdbpy_ref.
1070 * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
1071 (stpy_fullname): Update.
1072 * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
1073 Update.
1074 * python/py-prettyprint.c (print_string_repr): Update.
1075 * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
1076 (objfpy_get_build_id): Update.
1077 * python/py-breakpoint.c (bppy_get_location)
1078 (bppy_get_expression, bppy_get_condition, bppy_get_commands):
1079 Update.
1080
12dfa12a
TT
10812018-11-04 Tom Tromey <tom@tromey.com>
1082
1083 * python/python-internal.h (gdb_py_object_from_longest)
1084 (gdb_py_object_from_ulongest): Return gdbpy_ref.
1085 * python/py-value.c (valpy_int): Update.
1086 * python/py-utils.c (gdb_py_object_from_longest): Return
1087 gdbpy_ref.
1088 (gdb_py_object_from_ulongest): Likewise.
1089 * python/py-type.c (typy_get_alignof): Update.
1090 * python/py-linetable.c (ltpy_get_all_source_lines)
1091 (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
1092 * python/py-block.c (blpy_get_start, blpy_get_end): Update.
1093
470678d7
PW
10942018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1095
1096 * ada-lang.c (_initialize_ada_language): Fix typo.
1097
814fa4f6
PW
10982018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1099
1100 * language.c (type): Remove.
1101 (_initialize_language): Remove assignment to type.
1102
3c6dd3d1 11032018-11-02 Joel Brobecker <brobecker@adacore.com>
e8bf1ce4
JB
1104
1105 * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
1106 * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
1107 (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
1108 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
1109 (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
1110 (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
1111 * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
1112 and aarch64-ravenscar-thread.o.
1113 * NEWS: Add entry documenting Ravenscar tasking support
1114 on AArch64 ELF.
1115
d54cfd76
PW
11162018-11-02 Matthew Malcomson <matthew.malcomson@arm.com>
1117
1118 * symtab.c (info_functions_command): Initialize quiet flag.
1119 * stack.c (info_args_command): Likewise.
1120
3ba2ee38
JW
11212018-11-01 Jim Wilson <jimw@sifive.com>
1122
1123 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
1124 Set if pcptr if unaligned. Return 2 if unaligned_p true. Update
1125 debugging messages.
1126
e2b7af72
JB
11272018-11-01 Joel Brobecker <brobecker@adacore.com>
1128
1129 * ada-lang.c (ada_watch_location_expression): New function.
1130 (ada_language_defn): Set la_watch_location_expression to
1131 ada_watch_location_expression.
1132
8b578f9c
JB
11332018-11-01 Joel Brobecker <brobecker@adacore.com>
1134
1135 * print-utils.c (int_string): Remove unnecessary trailing spaces.
1136
1cc62f2e
JB
11372018-11-01 Joel Brobecker <brobecker@adacore.com>
1138
1139 * rs6000-tdep.c (skip_prologue): Fix potential negative left
1140 shifting.
1141
e1c3a373
JG
11422018-11-01 Jerome Guitton <guitton@adacore.com>
1143 Joel Brobecker <brobecker@adacore.com>
1144
1145 * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
1146 * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
1147 * arm-pikeos-tdep.c: New file.
1148 * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
1149 embedded system.
1150 * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
1151
e8d8cce6
SM
11522018-11-01 Simon Marchi <simon.marchi@ericsson.com>
1153
1154 * common/pathstuff.c (get_standard_temp_dir): New.
1155 * common/pathstuff.h (get_standard_temp_dir): New.
1156 * config.in: Re-generate.
1157 * configure: Re-generate.
1158 * configure.ac: Don't check for mkdtemp.
1159 * gnulib/aclocal-m4-deps.mk: Re-generate.
1160 * gnulib/aclocal.m4: Re-generate.
1161 * gnulib/config.in: Re-generate.
1162 * gnulib/configure: Re-generate.
1163 * gnulib/import/Makefile.am: Re-generate.
1164 * gnulib/import/Makefile.in: Re-generate.
1165 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1166 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1167 * gnulib/import/m4/mkdtemp.m4: New file.
1168 * gnulib/import/mkdtemp.c: New file.
1169 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
1170 Add mkdtemp module.
1171 * unittests/mkdir-recursive-selftests.c (test): Use
1172 get_standard_temp_dir.
1173 (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
1174 ifdef.
1175 * compile/compile.c (get_compile_file_tempdir): Likewise.
1176
cdcda965
SM
11772018-11-01 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1178
1179 * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1180 (SIG_FRAME_LR_OFFSET64): New define.
1181 (SIG_FRAME_FP_OFFSET64): New define.
1182 (aix_sighandle_frame_cache): New Function.
1183 (aix_sighandle_frame_this_id): New Function.
1184 (aix_sighandle_frame_prev_register): New Function.
1185 (aix_sighandle_frame_sniffer): New Function.
1186 (aix_sighandle_frame_unwind): New global variable.
1187 (rs6000_aix_init_osabi): Install new frame unwinder.
1188
656efb5e
SDJ
11892018-10-31 Sergio Durigan Junior <sergiodj@redhat.com>
1190
1191 PR gdb/23835
1192 * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
1193 already defined.
1194
64f57f3d
PFC
11952018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1196
1197 * ppc-linux-nat.c: Include nat/linux-ptrace.h.
1198
eb77c9df
AB
11992018-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1200
1201 * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
1202 (producer_is_icc): New function.
1203 (check_producer): Set producer_is_icc field on dwarf2_cu.
1204 (dwarf2_init_integer_type): New function.
1205 (read_base_type): Call dwarf2_init_integer_type instead of
1206 init_integer_type in all cases.
1207 (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
1208 * valprint.c (maybe_negate_by_bytes): Add an assertion that the
1209 LEN is greater than 0.
1210
4d5d1049
TT
12112018-10-30 Tom Tromey <tom@tromey.com>
1212
1213 * main.c (captured_main_1): Check return value of bfd_init.
1214
fd332753
SDJ
12152018-10-29 Sergio Durigan Junior <sergiodj@redhat.com>
1216
1217 * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
1218 Adjust comments.
1219
30a7953d
RO
12202018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1221
1222 * procfs.c: Include common/pathstuff.h.
1223
a3d72268
AB
12242018-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
1225
1226 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1227 Add missing braces. No functional change.
1228
cd948f5b
PW
12292018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1230
1231 * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
1232 to report a bad option and fix indentation.
1233 * demangle.c (demangle_command): Use report_unrecognized_option_error
1234 to report a bad option and correctly report the bad option.
1235
b50a8b9a
TT
12362018-10-27 Tom Tromey <tom@tromey.com>
1237
1238 PR cli/23364:
1239 * darwin-nat.c (copied_shell): New global.
1240 (may_have_sip): Rename from should_disable_startup_with_shell.
1241 (copy_shell_to_cache, maybe_cache_shell): New functions.
1242 (darwin_nat_target::create_inferior): Update. Use
1243 copied_shell.
1244
36033ef5
TT
12452018-10-27 Tom Tromey <tom@tromey.com>
1246
1247 * unittests/scoped_fd-selftests.c (test_to_file): New function.
1248 (run_tests): Call test_to_file.
1249 * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
1250 temporary files.
1251 * common/scoped_fd.h (scoped_fd::to_file): New method.
1252
b3279b60
TT
12532018-10-27 Tom Tromey <tom@tromey.com>
1254
1255 * unittests/scoped_mmap-selftests.c (test_normal): Use
1256 gdb_mkostemp_cloexec.
1257 * unittests/scoped_fd-selftests.c (test_destroy, test_release):
1258 Use gdb_mkostemp_cloexec.
1259 * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
1260 gnulib/config.in, gnulib/configure,
1261 gnulib/import/Makefile.am, gnulib/import/Makefile.in,
1262 gnulib/import/m4/gnulib-cache.m4,
1263 gnulib/import/m4/gnulib-comp.m4: Update.
1264 * gnulib/import/m4/mkostemp.m4: New file.
1265 * gnulib/import/m4/mkstemp.m4: Remove.
1266 * gnulib/import/mkostemp.c: New file.
1267 * gnulib/import/mkstemp.m4: Remove.
1268 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
1269 mkstemp, add mkostemp. Apply new patch.
1270 * gnulib/import/stdlib.in.h: Apply patch.
1271 * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
1272 New file.
1273 * dwarf-index-write.c (write_psymtabs_to_index): Use
1274 gdb_mkostemp_cloexec.
1275 * common/filestuff.h (gdb_mkostemp_cloexec): New function.
1276
e418a61a
TT
12772018-10-27 Tom Tromey <tom@tromey.com>
1278
1279 * unittests/mkdir-recursive-selftests.c: New file.
1280 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1281 unittests/mkdir-recursive-selftests.c.
1282 * dwarf-index-cache.c (mkdir_recursive): Move to
1283 common/filestuff.c.
1284 (index_cache::store): Check return value of mkdir_recursive.
1285 (create_dir_and_check, test_mkdir_recursive): Move to new file.
1286 (_initialize_index_cache): Don't register test.
1287 * common/filestuff.h (mkdir_recursive): Declare.
1288 * common/filestuff.c (mkdir_recursive): Move from
1289 dwarf-index-cache.c. Return bool.
1290
29be4d9d
TT
12912018-10-27 Tom Tromey <tom@tromey.com>
1292
1293 * dwarf-index-write.c (write_psymtabs_to_index): Move
1294 make_temp_filename to common/pathstuff.c.
1295 * common/pathstuff.h (make_temp_filename): Declare.
1296 * common/pathstuff.c (make_temp_filename): New function, moved
1297 from dwarf-index-write.c.
1298
974e6844
TT
12992018-10-27 Tom Tromey <tom@tromey.com>
1300
1301 * procfs.c (procfs_target::create_inferior): Use get_shell.
1302 * cli/cli-cmds.c (shell_escape): Use get_shell.
1303 * windows-nat.c (windows_nat_target::create_inferior): Use
1304 get_shell.
1305 * common/pathstuff.c (get_shell): New function.
1306 * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
1307 (fork_inferior): Use get_shell.
1308 * common/pathstuff.h (get_shell): Declare.
1309
e0a7911f
PW
13102018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1311
1312 * NEWS: Mention changes to 'info [args|functions|locals|variables]'
1313
12615cba
PW
13142018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1315
1316 * stack.c (print_variable_and_value_data): Add preg and treg.
1317 (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
1318 and update callers.
1319 (print_frame_arg_vars): Likewise.
1320 (prepare_reg): New function.
1321 (info_locals_command): Extract info print args and use them.
1322 (info_args_command): Likewise.
1323 (_initialize_stack): Modify on-line help.
1324 * symtab.c (treg_matches_sym_type_name): New function.
1325 (search_symbols): New arg t_regexp.
1326 (symtab_symbol_info): New args quiet, regexp, t_regexp.
1327 (info_variables_command): Extract info print args and use them.
1328 (info_functions_command): Likewise.
1329 (info_types_command): Update call to symtab_symbol_info.
1330 (_initialize_symtab): Modify on-line help.
1331 * symtab.h (treg_matches_sym_type_name): New function.
1332 (search_symbols): New t_regexp arg.
1333
0d4cad90
PW
13342018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1335
1336 * cli-utils.c (extract_arg_maybe_quoted): New function.
1337 (extract_info_print_args): New function.
1338 (info_print_args_help): New function.
1339 (report_unrecognized_option_error): New function.
1340 * cli-utils.h (extract_arg_maybe_quoted): New function.
1341 (extract_info_print_args): New function.
1342 (info_print_args_help): New function.
1343 (report_unrecognized_option_error): New function.
1344
4c39bc03
TT
13452018-10-26 Tom Tromey <tom@tromey.com>
1346
1347 * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
1348 (compute_compunit_symtab_includes): Update.
1349 * symtab.h: (symtab_ptr): Remove typedef. Don't define a VEC.
1350 (compunit_symtab_ptr): Likewise.
1351
fd2b4de5
JB
13522018-10-26 John Baldwin <jhb@FreeBSD.org>
1353
1354 * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
1355 default_print_auxv_entry for specific tag values.
1356
d7ded98f
JB
13572018-10-26 John Baldwin <jhb@FreeBSD.org>
1358
1359 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
1360
8a613826
JW
13612018-10-26 Jim Wilson <jimw@sifive.com>
1362
77c6f5fc
JW
1363 * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
1364 (riscv_linux_sigframe_init): Declare.
1365 (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
1366 (riscv_linux_sigframe): New.
1367 (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
1368 (riscv_linux_sigframe_init): Define.
1369 (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
1370
8a613826
JW
1371 * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
1372 (riscv_isa_flen): Likewise. Drop static.
1373 * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
1374 (riscv_isa_flen): Likewise. Declare.
1375
8d619c01
EBM
13762018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1377 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1378
1379 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
1380 (tdesc_powerpc_isa207_htm_vsx64l): Declare.
1381 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
1382 (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
1383 (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
1384 (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
1385 (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
1386 Define.
1387 (struct ppc_linux_features) <htm>: New field.
1388 (ppc_linux_no_features): Add initializer for htm field.
1389 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1390 new tdescs.
1391 * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
1392 (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
1393 (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
1394 Define if not already defined.
1395 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
1396 and rs6000/powerpc-isa207-htm-vsx64l.
1397 (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
1398 rs6000/powerpc-isa207-htm-vsx64l.xml.
1399 * features/rs6000/power-htm-spr.xml: New file.
1400 * features/rs6000/power-htm-core.xml: New file.
1401 * features/rs6000/power64-htm-core.xml: New file.
1402 * features/rs6000/power-htm-fpu.xml: New file.
1403 * features/rs6000/power-htm-altivec.xml: New file.
1404 * features/rs6000/power-htm-vsx.xml: New file.
1405 * features/rs6000/power-htm-ppr.xml: New file.
1406 * features/rs6000/power-htm-dscr.xml: New file.
1407 * features/rs6000/power-htm-tar.xml: New file.
1408 * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
1409 * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
1410 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
1411 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
1412 * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
1413 * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
1414 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1415 fetch_regset with HTM regsets.
1416 (store_register, store_ppc_registers): Call store_regset with HTM
1417 regsets.
1418 (ppc_linux_nat_target::read_description): Set htm field in the
1419 features struct if needed.
1420 * ppc-linux-tdep.c: Include
1421 features/rs6000/powerpc-isa207-htm-vsx32l.c and
1422 features/rs6000/powerpc-isa207-htm-vsx64l.c.
1423 (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
1424 (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
1425 (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
1426 (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
1427 (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
1428 (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
1429 (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
1430 (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
1431 (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
1432 (ppc32_linux_ctarregset): New globals.
1433 (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
1434 (ppc_linux_collect_core_cpgrregset): New function.
1435 (ppc_linux_iterate_over_regset_sections): Call back with the htm
1436 regsets.
1437 (ppc_linux_core_read_description): Check if the tm spr section is
1438 present and set htm in the features struct.
1439 (_initialize_ppc_linux_tdep): Call
1440 initialize_tdesc_powerpc_isa207_htm_vsx32l and
1441 initialize_tdesc_powerpc_isa207_htm_vsx64l.
1442 * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
1443 Declare.
1444 (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
1445 (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
1446 (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
1447 * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
1448 New fields.
1449 <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
1450 Likewise.
1451 <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
1452 <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
1453 (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
1454 New enum fields.
1455 <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
1456 <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
1457 <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
1458 <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
1459 <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
1460 <PPC_CTAR_REGNUM>: Likewise.
1461 (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
1462 (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
1463 * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
1464 (IS_CEFP_PSEUDOREG): Define.
1465 (rs6000_register_name): Hide the upper halves of checkpointed VSX
1466 registers. Return names for the checkpointed DFP, VSX, and EFP
1467 pseudo registers.
1468 (rs6000_pseudo_register_type): Remove initial assert and raise an
1469 internal error in the else clause instead. Return types for the
1470 checkpointed DFP, VSX, and EFP pseudo registers.
1471 (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
1472 checkpointed DFP pseudo registers.
1473 (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
1474 checkpointed VSX pseudo registers.
1475 (efp_pseudo_register_read, efp_pseudo_register_write): Rename
1476 from efpr_pseudo_register_read and
1477 efpr_pseudo_register_write. Handle checkpointed EFP pseudo
1478 registers.
1479 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
1480 Handle checkpointed DFP, VSX, and EFP registers.
1481 (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
1482 (efp_ax_pseudo_register_collect): New functions.
1483 (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
1484 register logic to new functions. Handle checkpointed DFP, VSX,
1485 and EFP pseudo registers.
1486 (rs6000_gdbarch_init): Look for and validate the htm features.
1487 Include checkpointed DFP, VSX and EFP pseudo-registers.
1488 * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
1489 HTM registers.
1490
81ab84fd
PFC
14912018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1492
1493 * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
1494 without altivec or fpu.
1495
232bfb86
EBM
14962018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1497 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1498
1499 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
1500 (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
1501 * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
1502 Define if not already defined.
1503 * features/rs6000/power-ebb.xml: New file.
1504 * features/rs6000/power-linux-pmu.xml: New file.
1505 * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
1506 features.
1507 * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
1508 * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
1509 * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
1510 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
1511 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
1512 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1513 fetch_regset with ebb and pmu regsets.
1514 (store_register, store_ppc_registers): Call store_regset with ebb
1515 and pmu regsets.
1516 (ppc_linux_nat_target::read_description): Set isa207 field in the
1517 features struct if ebb and pmu are avaiable.
1518 * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
1519 (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
1520 (ppc_linux_iterate_over_regset_sections): Call back with the ebb
1521 and pmu regsets.
1522 (ppc_linux_core_read_description): Check if the pmu section is
1523 present and set isa207 in the features struct.
1524 * ppc-linux-tdep.h (ppc32_linux_ebbregset)
1525 (ppc32_linux_pmuregset): Declare.
1526 * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
1527 <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
1528 <ppc_sier_regnum>: New field.
1529 (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
1530 New enum values.
1531 <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
1532 values.
1533 <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
1534 (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
1535 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
1536 ebb and pmu features.
1537
f2cf6173
EBM
15382018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1539 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1540
1541 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
1542 (tdesc_powerpc_isa207_vsx64l): Declare.
1543 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
1544 (struct ppc_linux_features) <isa207>: New field.
1545 (ppc_linux_no_features): Add initializer for isa207 field.
1546 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1547 new tdescs.
1548 * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
1549 (NT_PPC_TAR): Define if not already defined.
1550 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
1551 rs6000/powerpc-isa207-vsx64l.
1552 (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
1553 rs6000/powerpc-isa207-vsx64l.xml.
1554 * features/rs6000/power-tar.xml: New file.
1555 * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
1556 * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
1557 * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
1558 * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
1559 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
1560 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
1561 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1562 fetch_regset with the TAR regset.
1563 (store_register, store_ppc_registers): Call store_regset with the
1564 TAR regset.
1565 (ppc_linux_nat_target::read_description): Set isa207 field in the
1566 features struct if needed.
1567 * ppc-linux-tdep.c: Include
1568 features/rs6000/powerpc-isa207-vsx32l.c and
1569 features/rs6000/powerpc-isa207-vsx64l.c.
1570 (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
1571 (ppc_linux_iterate_over_regset_sections): Call back with the tar
1572 regset.
1573 (ppc_linux_core_read_description): Check if the tar section is
1574 present and set isa207 in the features struct.
1575 (_initialize_ppc_linux_tdep): Call
1576 initialize_tdesc_powerpc_isa207_vsx32l and
1577 initialize_tdesc_powerpc_isa207_vsx64l.
1578 * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
1579 * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
1580 (enum) <PPC_TAR_REGNUM>: New enum value.
1581 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
1582 feature.
1583 (ppc_process_record_op31): Record changes to TAR.
1584
7ca18ed6
EBM
15852018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1586 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1587
1588 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
1589 (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
1590 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
1591 (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
1592 (struct ppc_linux_features) <ppr_dscr>: New field.
1593 (ppc_linux_no_features): Add initializer for ppr_dscr field.
1594 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1595 new tdescs.
1596 * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
1597 Define if not already defined.
1598 * features/Makefile (WHICH): Add
1599 rs6000/powerpc-isa205-ppr-dscr-vsx32l and
1600 rs6000/powerpc-isa205-ppr-dscr-vsx64l.
1601 (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
1602 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
1603 * features/rs6000/power-dscr.xml: New file.
1604 * features/rs6000/power-ppr.xml: New file.
1605 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
1606 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
1607 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
1608 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
1609 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
1610 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
1611 * ppc-linux-nat.c: Include <sys/uio.h>.
1612 (fetch_regset, store_regset, check_regset): New functions.
1613 (fetch_register, fetch_ppc_registers): Call fetch_regset with
1614 DSCR and PPR regsets.
1615 (store_register, store_ppc_registers): Call store_regset with
1616 DSCR and PPR regsets.
1617 (ppc_linux_get_hwcap2): New function.
1618 (ppc_linux_nat_target::read_description): Call
1619 ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
1620 features struct if needed.
1621 * ppc-linux-tdep.c: Include
1622 features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
1623 features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
1624 (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
1625 (ppc32_linux_dscrregset): New globals.
1626 (ppc_linux_iterate_over_regset_sections): Call back with the ppr
1627 and dscr regsets.
1628 (ppc_linux_core_read_description): Check if the ppr and dscr
1629 sections are present and set ppr_dscr in the features struct.
1630 (_initialize_ppc_linux_tdep): Call
1631 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
1632 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
1633 * ppc-linux-tdep.h (ppc32_linux_pprregset)
1634 (ppc32_linux_dscrregset): Declare.
1635 * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
1636 <ppc_dscr_regnum>: New field.
1637 (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
1638 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
1639 and dscr features.
1640 (ppc_process_record_op31): Record changes to PPR and DSCR.
1641
93b4691f
PFC
16422018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1643
1644 * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
1645 second initializer line for the have_* variables. Initialize
1646 have_fpu to 0 instead of 1.
1647
71733a7b
PFC
16482018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1649
1650 * arch/ppc-linux-common.c (ppc_linux_match_description):
1651 Parenthesize tdesc assignements and indent them properly.
1652
3d907528
PFC
16532018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1654
1655 * ppc-linux-nat.c (fetch_register): Change if statement to else
1656 if.
1657 (store_register): Likewise.
1658
500f01a0
PFC
16592018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1660
1661 * rs6000-tdep.c: Remove reggroups.h include.
1662 (rs6000_pseudo_register_reggroup_p): Remove.
1663 (rs6000_gdbarch_init): Remove call to
1664 set_tdesc_pseudo_register_reggroup_p.
1665
7ed29001
PFC
16662018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1667
1668 * reggroups.c (default_register_reggroup_p): Return true for
1669 decfloat registers and float_reggroup.
1670
5c849b22
PFC
16712018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1672
1673 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
1674 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
1675 ppc_linux_collect_vrregset by regcache_collect_regset.
1676
afde3032
PFC
16772018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1678
1679 * linux-tdep.c (linux_collect_regset_section_cb): Use
1680 std::vector<gdb_byte> instead of char * and malloc for buf.
1681 Remove xfree.
1682
b9718991
SM
16832018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1684
1685 * xcoffread.c (read_xcoff_symtab): Pass deduced language to
1686 symtab_start instead of always using language_unknown.
1687
0b0eff8b
AB
16882018-10-26 Andrew Burgess <andrew.burgess@embecosm.com>
1689
1690 * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
1691 READ_P parameter, catch and ignore register access errors from
1692 either the old or new MISA location.
1693 (riscv_has_feature): Update call to riscv_read_misa_reg.
1694
b352ceb6
AB
16952018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1696
1697 * python/py-function.c (convert_values_to_python): Return
1698 gdbpy_ref<>. Add header comment.
1699 (fnpy_call): Adjust.
1700
50db9ef4
AB
17012018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1702
1703 * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
1704 (cmdpy_completer_handle_brkchars): Adjust.
1705 (cmdpy_completer): Adjust.
1706
ee67fd7f
AB
17072018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1708
1709 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1710 Pass correct regnum to raw_supply_zeroed.
1711
bea556ab
HAQ
17122018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com>
1713
1714 * regcache.c (cooked_read_test): Add CSKY to the list of
1715 architectures with a save_reggroup
1716
35ed81d4
SM
17172018-10-23 Simon Marchi <simon.marchi@polymtl.ca>
1718
1719 PR gdb/23368
1720 * infrun.c (follow_exec): In the follow_exec_mode_new case,
1721 transfer terminal state from old new new inferior.
1722 * terminal.h (swap_terminal_info): New function.
1723 * inflow.c (swap_terminal_info): New function.
1724
79b8d3b0
TT
17252018-10-23 Tom Tromey <tom@tromey.com>
1726
1727 * record-btrace.c (get_thread_current_frame_id): Rename from
1728 get_thread_current_frame. Return a frame_id.
1729 (record_btrace_start_replaying): Update.
1730
420ecd9c
AB
17312018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1732
1733 * riscv-tdep.c (riscv_register_name): Use the user-friendly names
1734 for CSRs.
1735
5a77b1b4
JB
17362018-10-23 Joel Brobecker <brobecker@adacore.com>
1737
1738 * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
1739 have_nonsteppable_watchpoint attribute to 1.
1740
0dbfcfff
AB
17412018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1742
1743 * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
1744 register names.
1745 (struct register_alias): Rename to...
1746 (struct riscv_register_alias): ...this, and update comment.
1747 (riscv_register_aliases): Update type, and alias names. Remove
1748 CSR names from this list.
1749 (riscv_register_name): Use riscv_gdb_reg_names for int and float
1750 register names. Add an extra assertion.
1751 (riscv_is_regnum_a_named_csr): New function.
1752 (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
1753
32641fa9
JD
17542018-10-23 John Darrington <john@darrington.wattle.id.au>
1755
1756 * configure.tgt: Add configuration for s12z.
1757 * s12z-tdep.c: New file.
1758 * NEWS: Mention new target.
1759
270b9329
JW
17602018-10-22 Jim Wilson <jimw@sifive.com>
1761
3399f1b3
JW
1762 * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
1763 FP reg smaller than FP reg size, and fill with -1 instead of 0.
1764
270b9329
JW
1765 * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
1766 (riscv_register_type): Use them.
1767 (riscv_print_one_register_info): Handle union of floats same as float.
1768 * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
1769 riscv_fpreg_q_type fields.
1770
f6efe3f8
SM
17712018-10-21 Simon Marchi <simon.marchi@ericsson.com>
1772
1773 * gdbarch.sh (gdbarch_num_cooked_regs): New.
1774 * gdbarch.h: Re-generate.
1775 * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
1776 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1777 * eval.c (evaluate_subexp_standard): Likewise.
1778 * findvar.c (value_of_register): Likewise.
1779 (value_of_register_lazy): Likewise.
1780 (address_from_register): Likewise.
1781 * frame.c (get_frame_register_bytes): Likewise.
1782 * gdbarch-selftests.c (register_to_value_test): Likewise.
1783 * h8300-tdep.c (h8300_register_type): Likewise.
1784 * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
1785 (i386_svr4_reg_to_regnum): Likewise.
1786 * infcmd.c (default_print_registers_info): Likewise.
1787 (registers_info): Likewise.
1788 (print_vector_info): Likewise.
1789 (default_print_float_info): Likewise.
1790 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1791 * mdebugread.c (mdebug_reg_to_regnum): Likewise.
1792 * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
1793 (mi_cmd_data_list_changed_registers): Likewise.
1794 (mi_cmd_data_list_register_values): Likewise.
1795 (mi_cmd_data_write_register_values): Likewise.
1796 (mi_cmd_trace_frame_collected): Likewise.
1797 * mips-tdep.c (print_gp_register_row): Likewise.
1798 (mips_print_registers_info): Likewise.
1799 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
1800 * regcache.c (init_regcache_descr): Likewise.
1801 (register_size): Likewise.
1802 (register_dump::dump): Likewise.
1803 (cooked_read_test): Likewise.
1804 (cooked_write_test): Likewise.
1805 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1806 (rs6000_gdbarch_init): Likewise.
1807 * stabsread.c (stab_reg_to_regnum): Likewise.
1808 * stack.c (info_frame_command): Likewise.
1809 * target-descriptions.c (tdesc_register_name): Likewise.
1810 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1811 * tui/tui-regs.c (tui_show_register_group): Likewise.
1812 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1813 (user_reg_map_regnum_to_name): Likewise.
1814 (value_of_user_reg): Likewise.
1815 (maintenance_print_user_registers): Likewise.
1816 * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
1817 (xtensa_register_name): Likewise.
1818 (xtensa_register_type): Likewise.
1819 (xtensa_reg_to_regnum): Likewise.
1820 (xtensa_pseudo_register_read): Likewise.
1821 (xtensa_pseudo_register_write): Likewise.
1822
925047fe
SM
18232018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1824
1825 * amd64-tdep.c (amd64_pseudo_register_read_value): Use
1826 correctly-sized buffer with raw_read.
1827 (amd64_pseudo_register_write): Use correctly-sized buffer for
1828 raw_read/raw_write.
1829
4051d2d6
PW
18302018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1831
1832 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
1833 in add_prefix_cmd of set print type.
1834
7806cea7
TT
18352018-10-19 Tom Tromey <tom@tromey.com>
1836
1837 PR tui/18388:
1838 * NEWS: Mention tabset deprecation.
1839 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
1840 (update_tab_width): New function.
1841 (tui_set_tab_width, tui_show_tab_width): New functions.
1842 (tui_set_tab_width_command): Use update_tab_width.
1843 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
1844 Add new "set tui tab-width" command.
1845 * tui/tui-source.c (tui_set_source_content): Update.
1846 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1847 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
1848 Don't declare.
1849 (tui_tab_width): Declare.
1850 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
1851 (tui_set_default_tab_len): Remove.
1852
84371624
TT
18532018-10-19 Tom Tromey <tom@tromey.com>
1854
1855 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
1856 (key_is_backspace, tui_getc): Don't declare.
1857 * tui/tui-io.c (key_is_start_sequence): Now static.
1858 (key_is_end_sequence, key_is_backspace): Remove.
1859 (tui_getc): Now static.
1860
22ad8107
TT
18612018-10-19 Tom Tromey <tom@tromey.com>
1862
1863 * symfile.c (reread_symbols): Clear "static_links".
1864
74b3c713
AH
18652018-10-19 Alan Hayward <alan.hayward@arm.com>
1866
1867 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
1868 define.
1869 (aarch64_linux_sigframe_init): Extra boundary checks.
1870
0667c506
AA
18712018-10-19 Andreas Arnez <arnez@linux.ibm.com>
1872
1873 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
1874 the possibly non-existent tdesc type 'vec128', but the type of raw
1875 register v16 instead.
1876
ba543ca5
GB
18772018-10-19 Gary Benson <gbenson@redhat.com>
1878
1879 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
1880
94c18618
SDJ
18812018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
1882
1883 PR cli/23785
1884 * cli/cli-dump.c (restore_binary_file): Check if "file" is
1885 NULL.
1886
89eb3c54
PK
18872018-10-17 Paul Koning <paul_koning@dell.com>
1888
1889 * charset.c (convert_between_encodings): Fix unsigned overflow.
1890
6f3b1098
JB
18912018-10-17 John Baldwin <jhb@FreeBSD.org>
1892
1893 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
1894 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
1895 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
1896 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1897 New functions.
1898 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
1899 and fbsd_info_proc_mappings_header.
1900 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
1901 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1902 New.
1903
d500b4f2
JB
19042018-10-17 Joel Brobecker <brobecker@adacore.com>
1905
1906 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
1907 Solaris Maintainer.
1908
63a33118
TT
19092018-10-15 Tom Tromey <tom@tromey.com>
1910
1911 * tui/tui.c (strcat_to_buf): Remove casts.
1912 * tui/tui-winsource.c (tui_show_source_line)
1913 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
1914 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
1915 * tui/tui-windata.c (tui_first_data_item_displayed)
1916 (tui_delete_data_content_windows, tui_erase_data_content)
1917 (tui_display_all_data, tui_display_data_from)
1918 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
1919 * tui/tui-win.c (tui_set_win_height)
1920 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
1921 casts.
1922 * tui/tui-win.c (tui_resize_all): Remove casts.
1923 (tui_scroll_backward_command, tui_set_focus)
1924 (tui_set_tab_width_command): Likewise.
1925 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
1926 * tui/tui-regs.c (tui_show_register_group): Remove cast.
1927 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
1928 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
1929 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
1930 Remove casts.
1931
933e62b1
SM
19322018-10-15 Simon Marchi <simon.marchi@ericsson.com>
1933
1934 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
1935 AArch64/ARM maintainer.
1936
fbe61a36
GB
19372018-10-11 Gary Benson <gbenson@redhat.com>
1938
1939 * interps.h (interp::m_name): Make private and mutable.
1940 * interps.c (interp::~interp): Free m_name.
1941
8ecfd7bd
SDJ
19422018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
1943 Simon Marchi <simark@simark.ca>
1944
1945 * README (`configure' options): Add documentation for new
1946 "--enable-unit-tests" option.
1947 * acinclude.m4: Include "selftest.m4".
1948 * configure: Regenerate.
1949 * configure.ac: Use "GDB_AC_SELFTEST".
1950 * maint.c (maintenance_selftest): Update message informing
1951 that selftests have been disabled.
1952 (maintenance_info_selftests): Likewise.
1953 * selftest.m4: New file.
1954
33b031ce
GB
19552018-10-10 Gary Benson <gbenson@redhat.com>
1956
1957 * remote.c (remote_target::remote_send_printf): Add
1958 missing va_end found by Coverity.
1959
2cb2ba9a
MM
19602018-10-10 Markus Metzger <markus.t.metzger@intel.com>
1961
1962 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
1963
eff98030
TT
19642018-10-09 Tom Tromey <tom@tromey.com>
1965
1966 * configure: Rebuild.
1967 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
1968 * NEWS: Update --enable-ubsan documentation.
1969
04fd5eed
GB
19702018-10-09 Gary Benson <gbenson@redhat.com>
1971
1972 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
1973 found by Coverity.
1974
a0c3048e
TT
19752018-10-08 Tom Tromey <tom@tromey.com>
1976
1977 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
1978 variable.
1979 (riscv_fbsd_init_abi): Likewise.
1980
a51bb70c
WP
19812018-10-08 Weimin Pan <weimin.pan@oracle.com>
1982 * valops.c (value_struct_elt_for_reference): Rename local variable
1983 to work around the shadowing a previous local warning.
1984
74792ff7
JB
19852018-10-08 John Baldwin <jhb@FreeBSD.org>
1986
1987 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
1988 * NEWS: Mention new FreeBSD/riscv native configuration.
1989 * configure.host: Add riscv*-*-freebsd*.
1990 * configure.nat: Likewise.
1991 * riscv-fbsd-nat.c: New file.
1992
ed65e20b
JB
19932018-10-08 John Baldwin <jhb@FreeBSD.org>
1994
1995 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
1996 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
1997 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
1998 * NEWS: Mention new FreeBSD/riscv target.
1999 * configure.tgt: Add riscv*-*-freebsd*.
2000 * riscv-fbsd-tdep.c: New file.
2001 * riscv-fbsd-tdep.h: New file.
2002
498f7407
JB
20032018-10-08 John Baldwin <jhb@FreeBSD.org>
2004
2005 * regcache.h (struct regcache_map_entry): Note that this type can
2006 be used with traditional frame caches.
2007 * trad-frame.c (trad_frame_set_reg_regmap): New.
2008 * trad-frame.h (trad_frame_set_reg_regmap): New.
2009
9f6b697b
WP
20102018-10-08 Weimin Pan <weimin.pan@oracle.com>
2011
2012 PR c++/16841
2013 * valops.c (get_virtual_base_offset): New function.
2014 (value_struct_elt_for_reference): Use it to get virtual base offset
2015 and add it in calculating class member address.
2016
4399bce9 20172018-10-08 John Darrington <john@darrington.wattle.id.au>
c258c396 2018
4399bce9
PA
2019 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
2020 (check_producer): Check if the producer is codewarrior.
2021 (producer_is_codewarrior): New function.
2022 (lnp_state_machine::record_line): Ignore is_stmt flag for records
2023 produced by codewarrior.
2024 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
c258c396 2025
add5ded5
TT
20262018-10-06 Tom Tromey <tom@tromey.com>
2027
2028 PR python/19399:
2029 * python/py-inferior.c: Add "architecture" entry.
2030 (infpy_architecture): New function.
2031
51e78fc5
TT
20322018-10-06 Tom Tromey <tom@tromey.com>
2033
2034 PR python/21765:
2035 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
2036 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
2037 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
2038 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
2039
a8a5dbca
TT
20402018-10-06 Tom Tromey <tom@tromey.com>
2041
2042 PR build/17077:
2043 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
2044 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
2045 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
2046 #include.
2047
2a8be203
TT
20482018-10-06 Tom Tromey <tom@tromey.com>
2049
2050 * python/py-breakpoint.c (bppy_get_location): Handle a
2051 bp_breakpoint without a location.
2052
2fb009bb
TT
20532018-10-06 Tom Tromey <tom@tromey.com>
2054
2055 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
2056 (_RegEx): Reformat help text.
2057 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
2058 (AnyCallerIs, AnyCallerMatches): Reformat help text.
2059 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
2060 text.
2061 * python/lib/gdb/command/xmethods.py (InfoXMethod)
2062 (EnableXMethod, DisableXMethod): Remove help indentation.
2063 Capitalize meta-syntactic variables.
2064 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
2065 (EnableUnwinder, DisableUnwinder): Remove help indentation.
2066 Capitalize meta-syntactic variables.
2067 * python/lib/gdb/command/explore.py (ExploreCommand)
2068 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
2069 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
2070 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
2071 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
2072 Remove help indentation.
2073 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
2074 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
2075 (DisableFrameFilter, SetFrameFilterPriority)
2076 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
2077
7a956928
TT
20782018-10-06 Tom Tromey <tom@tromey.com>
2079
2080 PR tui/28819:
2081 * tui/tui-io.c (gdb_wgetch): New function.
2082 (tui_mld_getc, tui_getc): Use it.
2083
f8740dc5
TT
20842018-10-05 Tom Tromey <tom@tromey.com>
2085
2086 * sol-thread.c (sol_thread_target::wait): Rename inner
2087 "save_ptid".
2088
96643e35
TT
20892018-10-04 Tom Tromey <tom@tromey.com>
2090
2091 * configure: Rebuild.
2092 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
2093
d951f98b
TT
20942018-10-04 Tom Tromey <tom@tromey.com>
2095
2096 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
2097 declaration of "block".
2098
b8c88847
TT
20992018-10-04 Tom Tromey <tom@tromey.com>
2100
2101 * common/filestuff.c (fdwalk): Remove inner declaration of
2102 "result".
2103
ef789dc4
TT
21042018-10-04 Tom Tromey <tom@tromey.com>
2105
2106 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
2107 "structs_addr" and hoist declaration.
2108
3fba72f7
TT
21092018-10-04 Tom Tromey <tom@tromey.com>
2110
2111 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
2112 variable "size".
2113
795afcbb
TT
21142018-10-04 Tom Tromey <tom@tromey.com>
2115
2116 * mdebugread.c (parse_partial_symbols): Use std::string.
2117
b926417a
TT
21182018-10-04 Tom Tromey <tom@tromey.com>
2119
2120 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
2121 * p-valprint.c (pascal_val_print): Split inner "i" variable.
2122 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
2123 header.
2124 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
2125 more inner scope.
2126 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
2127 * varobj.c (varobj_update): Rename inner "newobj",
2128 "type_changed".
2129 * valprint.c (generic_emit_char): Rename inner "buf".
2130 * valops.c (find_overload_match): Rename inner "temp".
2131 (value_struct_elt_for_reference): Declare "v" in more inner
2132 scope.
2133 * v850-tdep.c (v850_push_dummy_call): Rename "len".
2134 * unittests/array-view-selftests.c (run_tests): Rename inner
2135 "vec".
2136 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
2137 header.
2138 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
2139 "tsv" in more inner scope.
2140 (print_one_static_tracepoint_marker): Rename inner
2141 "tuple_emitter".
2142 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
2143 (tic6x_push_dummy_call): Don't redeclare "addr".
2144 * target-float.c: Declare "dto" lower.
2145 * symtab.c (lookup_local_symbol): Rename inner "sym".
2146 (find_pc_sect_line): Rename inner "pc".
2147 * stack.c (print_frame): Don't redeclare "gdbarch".
2148 (return_command): Rename inner "gdbarch".
2149 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
2150 "sp".
2151 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
2152 header.
2153 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
2154 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
2155 scope.
2156 * remote.c (remote_target::update_thread_list): Don't redeclare
2157 "tp".
2158 (remote_target::process_initial_stop_replies): Rename inner
2159 "thread".
2160 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
2161 (remote_target::wait_as): Don't redeclare "stop_reply".
2162 (remote_target::get_thread_local_address): Rename inner
2163 "result".
2164 (remote_target::get_tib_address): Likewise.
2165
2166 * regcache.c (cooked_read_test): Rename "regnum".
2167 * record-btrace.c (cmd_record_btrace_start): Rename inner
2168 "exception".
2169 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
2170 loop header.
2171 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
2172 header.
2173 (ppu2spu_sniffer): Rename inner "buf".
2174 * parse.c (operator_check_standard): Rename inner "type",
2175 "objfile".
2176 * p-valprint.c (pascal_val_print): Introduce new scope for
2177 "low_bound", "high_bound".
2178 * p-exp.y (yylex): Declare "i" in loop header.
2179 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
2180 Lower declaration of "s".
2181 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
2182 header.
2183 (nios2_push_dummy_call): Rename "len".
2184 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
2185 "buf".
2186 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
2187 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
2188 (linux_xfer_osdata_modules): Likewise.
2189 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
2190 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
2191 (mips_o64_push_dummy_call): Likewise.
2192 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
2193 "op".
2194 * mi/mi-main.c (list_available_thread_groups): Rename inner
2195 "tuple_emitter".
2196 (mi_cmd_data_read_memory): Rename inner "opts".
2197 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
2198 "tuple_emitter".
2199 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
2200 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
2201 more inner scope.
2202 (parse_partial_symbols): Rename inner "pst", "p", "name"
2203 * main.c (captured_main_1): Rename inner "i"s.
2204 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
2205 "oso2".
2206 * linux-tdep.c (linux_info_proc): Rename inner "filename".
2207 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
2208 * infrun.c (handle_no_resumed): Don't redeclare "thread".
2209 (handle_signal_stop): Rename inner "gdbarch".
2210 (handle_command): Declare "signum" in loop header.
2211 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
2212 "status".
2213 (examine_prologue): Rename inner "sol" and "sof".
2214 (ia64_extract_return_value): Rename inner "val". Declare another
2215 "val" in a more inner scope.
2216 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
2217 inner scope.
2218 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
2219 "except".
2220 * findvar.c (default_read_var_value): Don't redeclare "addr".
2221 * f-exp.y (yylex): Declare "i" in loop header.
2222 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
2223 Rename inner "type", "expect_type".
2224 (evaluate_subexp_for_sizeof): Rename inner "pc".
2225 * elfread.c (elf_symfile_read): Rename inner "abfd".
2226 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
2227 "bytes_read".
2228 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
2229 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
2230 (dwarf_decode_line_header): Rename inner "lh".
2231 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
2232 "offset". Declare "i" in loop header.
2233 (disassemble_dwarf_expression): Rename inner "addr_size".
2234 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
2235 inner "result".
2236 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
2237 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
2238 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
2239 "inner_list_emitter".
2240 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
2241 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
2242 declaration in a block.
2243 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
2244 * cp-valprint.c (cp_print_value_fields): Don't redeclare
2245 "obstack_final_size".
2246 * cp-support.c (inspect_type): Declare "i" in loop header.
2247 * compile/compile.c (compile_instance::insert_symbol_error):
2248 Rename inner "e".
2249 * common/agent.c (agent_run_command): Remove inner "ret"
2250 declaration.
2251 * coffread.c (coff_symfile_read): Rename inner "name".
2252 (coff_symfile_read): Rename inner "abfd".
2253 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
2254 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
2255 "high".
2256 * c-exp.y (lex_one_token): Move "len" declaration lower.
2257 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
2258 "gdbarch".
2259 (create_exception_master_breakpoint): Likewise. Don't redeclare
2260 "b".
2261 (watch_command_1): Declare "mark" later.
2262 (clear_command): Don't shadow "a" or "b".
2263 (delete_command): Rename inner "b".
2264 (delete_trace_command): Likewise.
2265 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
2266 "op".
2267 (arm_gdbarch_init): Remove inner "e_flags".
2268 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
2269 "offset" in inner blocks.
2270
1f88d0c8
SM
22712018-10-04 Simon Marchi <simon.marchi@ericsson.com>
2272
2273 * dwarf-index-write.c (file_write): Don't write if the vector is
2274 empty.
2275
5c4481cc
TV
22762018-10-05 Tom de Vries <tdevries@suse.de>
2277
2278 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
2279 PyArg_ParseTuple call.
2280
96b1ad86
TV
22812018-10-05 Tom de Vries <tdevries@suse.de>
2282
2283 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
2284 PyArg_ParseTuple call.
2285
d2f7dcb2
JB
22862018-10-04 Joel Brobecker <brobecker@adacore.com>
2287
2288 * psymtab.c (recursively_search_psymtabs): Reformat parameters
2289 to avoid exceeding 80 characters per line limit.
2290
5ca8c39f
TT
22912018-10-04 Tom Tromey <tom@tromey.com>
2292
2293 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2294 (reread_symbols): Update.
2295 * complaints.h (clear_complaints): Remove argument.
2296 * complaints.c (enum complaint_series): Remove.
2297 (series): Remove global.
2298 (complaint_internal): Update.
2299 (clear_complaints): Remove argument.
2300
e79497a1
TT
23012018-10-04 Tom Tromey <tom@tromey.com>
2302
2303 * symfile.c (symbol_file_add_with_addrs): Do not print "no
2304 debugging symbols" message if there is a separate debug objfile.
2305
3453e7e4
TT
23062018-10-04 Tom Tromey <tom@tromey.com>
2307
2308 PR cli/19551:
2309 * symfile.c (symbol_file_add_with_addrs): Update output.
2310 * psymtab.c (require_partial_symbols): Update output.
2311
6afcf761
TT
23122018-10-04 Tom Tromey <tom@tromey.com>
2313
2314 PR cli/22234:
2315 * complaints.c: Emit \n.
2316
22068491
TT
23172018-10-04 Tom Tromey <tom@tromey.com>
2318
2319 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
2320 (separate_debug_file_exists, find_separate_debug_file)
2321 (add_symbol_file_command, reread_symbols, allocate_symtab)
2322 (allocate_compunit_symtab): Use filtered printing, not
2323 unfiltered.
2324 * psymtab.c (require_partial_symbols, dump_psymtab)
2325 (allocate_psymtab): Use filtered printing, not unfiltered.
2326
9fdd7193
TT
23272018-10-04 Tom Tromey <tom@tromey.com>
2328
2329 * complaints.c (complaint_internal): Correctly check complaint
2330 count.
2331
3f2cf4dc
TT
23322018-10-04 Tom Tromey <tom@tromey.com>
2333
2334 * complaints.h (struct complaints): Remove declaration.
2335 * complaints.c (clear_complaints): Remove an unused variable.
2336
4f9bdf7f
RO
23372018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2338
2339 * MAINTAINERS (Write After Approval): Add self.
2340
875e5398
TT
23412018-10-03 Tom Tromey <tom@tromey.com>
2342
2343 * guile/scm-value.c (gdbscm_value_to_string): Initialize
2344 "buffer_contents".
2345 * coffread.c (coff_symtab_read): Initialize "newobj".
2346
8634679f
SM
23472018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
2348
2349 * dwarf2read.c (read_func_scope): Remove struct keyword in
2350 range-based for.
2351
f35d5ade
TT
23522018-10-03 Tom Tromey <tom@tromey.com>
2353
2354 * README: Mention --enable-ubsan.
2355 * NEWS: Mention --enable-ubsan.
2356 * acinclude.m4: Include sanitize.m4.
2357 * configure: Rebuild.
2358 * configure.ac: Call AM_GDB_UBSAN.
2359 * sanitize.m4: New file.
2360
1dffa580
TT
23612018-10-03 Tom Tromey <tom@tromey.com>
2362
2363 * expression.h (enum exp_opcode): Use uint8_t as base type.
2364 * expprint.c (op_name): Handle invalid opcodes.
2365
5e70ee09
TT
23662018-10-03 Tom Tromey <tom@tromey.com>
2367
2368 * parse.c (prefixify_expression): Add assert.
2369 (parse_exp_in_context_1): Throw exception if the expression is
2370 empty.
2371
4dd1b460
TT
23722018-10-03 Tom Tromey <tom@tromey.com>
2373
2374 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
2375
20562150
TT
23762018-10-03 Tom Tromey <tom@tromey.com>
2377
2378 * c-exp.y (parse_number): Work in unsigned. Remove casts.
2379
d359392f
TT
23802018-10-03 Tom Tromey <tom@tromey.com>
2381
2382 * dwarf2read.c (read_subrange_type): Make "negative_mask"
2383 unsigned.
2384
0101665f
TT
23852018-10-03 Tom Tromey <tom@tromey.com>
2386
2387 * findvar.c (extract_integer): Do work in an unsigned type.
2388
ad69edbb
TT
23892018-10-03 Tom Tromey <tom@tromey.com>
2390
2391 * common/enum-flags.h (enum_flags::operator~): Add static assert.
2392 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
2393 base type.
2394 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
2395 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
2396 type.
2397 * c-lang.h (enum c_string_type_values): Use unsigned as base
2398 type.
2399 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
2400
780942fc
TT
24012018-10-03 Tom Tromey <tom@tromey.com>
2402
2403 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
2404 <~dwarf2_frame_state_reg_info>: Update.
2405 <dwarf2_frame_state_reg_info>: Update.
2406 <alloc_regs>: Add assertion. Update.
2407 <reg>: Now a std::vector.
2408 <num_regs>: Remove.
2409 <swap>: Update.
2410 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
2411 (execute_cfa_program_test, dwarf2_frame_cache): Update.
2412
10657c04
TT
24132018-10-03 Tom Tromey <tom@tromey.com>
2414
2415 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
2416
34c0fc00
PW
24172018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2418
2419 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
2420
2398abf8
TT
24212018-10-02 Tom Tromey <tom@tromey.com>
2422
2423 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
2424
4399bce9 24252018-10-02 John Darrington <john@darrington.wattle.id.au>
c1168a2f
JD
2426
2427 * NEWS: Mention changed commands.
2428 * ser-uds.c: New file.
2429 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
2430 * configure: Regenerate.
2431 * Makefile.in: Add new file.
2432 * serial.c (serial_open): Check if filename is a socket
4399bce9 2433 and lookup the appropriate interface accordingly.
c1168a2f 2434
05c71722
AH
24352018-10-01 Alan Hayward <alan.hayward@arm.com>
2436
2437 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
2438 define.
2439 (AARCH64_EXTRA_MAGIC): Likewise.
2440 (AARCH64_FPSIMD_MAGIC): Likewise.
2441 (AARCH64_SVE_MAGIC): Likewise.
2442 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
2443 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
2444 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
2445 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
2446 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
2447 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
2448 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
2449 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
2450 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
2451 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
2452 (read_aarch64_ctx): Add function.
2453 (aarch64_linux_sigframe_init): Detect FP registers.
2454
c74e7cb9
AH
24552018-10-01 Alan Hayward <alan.hayward@arm.com>
2456
2457 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
2458 (AARCH64_D0_REGNUM): Likewise.
2459 (AARCH64_S0_REGNUM): Likewise.
2460 (AARCH64_H0_REGNUM): Likewise.
2461 (AARCH64_B0_REGNUM): Likewise.
2462 (AARCH64_SVE_V0_REGNUM): Likewise.
2463 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
2464 (AARCH64_D0_REGNUM): Likewise.
2465 (AARCH64_S0_REGNUM): Likewise.
2466 (AARCH64_H0_REGNUM): Likewise.
2467 (AARCH64_B0_REGNUM): Likewise.
2468 (AARCH64_SVE_V0_REGNUM): Likewise.
2469
12b164e9
GB
24702018-10-01 Gary Benson <gbenson@redhat.com>
2471
2472 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
2473 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
2474 prfpregset_t instead of gdb_prfpregset_t.
2475 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
2476 * configure, config.in: Rebuild.
2477
7c619dbd
GB
24782018-10-01 Gary Benson <gbenson@redhat.com>
2479
2480 * common/gdb_proc_service.h: New file, factored out from...
2481 * gdb_proc_service.h: Moved common code to the above file.
2482 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
2483
358ffcf2
GB
24842018-10-01 Gary Benson <gbenson@redhat.com>
2485
2486 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
2487 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
2488
43b7e92b
GB
24892018-10-01 Gary Benson <gbenson@redhat.com>
2490
2491 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
2492 (AC_CHECK_HEADERS): Check for linux/elf.h.
2493 * configure, config.in: Rebuild.
2494 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
2495 doesn't define elf_fpregset_t.
2496
3795e814
GB
24972018-10-01 Gary Benson <gbenson@redhat.com>
2498
2499 * gdb_proc_service.h: Whitespace change.
2500
4176f14d
TT
25012018-10-01 Tom Tromey <tom@tromey.com>
2502
2503 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
2504 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
2505 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
2506
a95746f9
TT
25072018-10-01 Tom Tromey <tom@tromey.com>
2508
2509 * README: Minor change.
2510
dd203782
PA
25112018-09-30 Pedro Alves <palves@redhat.com>
2512
2513 * darwin-nat-info.c (darwin_debug_regions_recurse)
2514 (info_mach_exceptions_command): Remove unused local variables.
2515 * darwin-nat.c (darwin_decode_notify_message)
2516 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
2517 (darwin_stop_inferior, darwin_setup_exceptions)
2518 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
2519 (darwin_nat_target::attach, darwin_nat_target::detach)
2520 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
2521 local variables.
2522 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
2523 variables.
2524
c82a2e6f
TT
25252018-09-29 Tom Tromey <tom@tromey.com>
2526
2527 * README: Remove some leftover text.
2528
7f0bd420
TT
25292018-09-29 Tom Tromey <tom@tromey.com>
2530
2531 * PROBLEMS: Rewrite.
2532 * README: Update.
2533
f37bc8b1
JB
25342018-09-28 John Baldwin <jhb@FreeBSD.org>
2535
2536 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
2537 case with explicit breakpoint kind.
2538 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
2539 'additional_info' and related logic.
2540 (riscv_debug_breakpoints): New variable.
2541 (riscv_breakpoint_kind_from_pc): Use the length of the existing
2542 instruction to determine the breakpoint kind.
2543 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
2544 flag. Update description of 'set/show riscv
2545 use-compressed-breakpoints' flag.
2546
f67ffa6a
AB
25472018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
2548
2549 (NEWS): Mention changes to frame related commands.
2550 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
2551 (add_prefix_cmd_suppress_notification): New function.
2552 (add_com_suppress_notification): Call
2553 add_cmd_suppress_notification.
2554 * command.h (add_cmd_suppress_notification): Declare.
2555 (add_prefix_cmd_suppress_notification): Declare.
2556 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
2557 (parse_frame_specification): Moved from stack.c, with
2558 simplification to handle a single argument.
2559 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
2560 switch to the selected frame. Add a header comment.
2561 * stack.c: Remove 'safe-ctype.h' include.
2562 (find_frame_for_function): Add declaration.
2563 (find_frame_for_address): New function.
2564 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
2565 (frame_selection_by_function_completer): New function.
2566 (info_frame_command): Rename to...
2567 (info_frame_command_core): ...this, and update parameter types.
2568 (select_frame_command): Rename to...
2569 (select_frame_command_core): ...this, and update parameter types.
2570 (frame_command): Rename to...
2571 (frame_command_core): ...this, and update parameter types.
2572 (class frame_command_helper): New class to wrap implementations of
2573 frame related sub-commands.
2574 (frame_apply_cmd_list): New static global.
2575 (frame_cmd_list): Make static.
2576 (select_frame_cmd_list): New global for sub-commands.
2577 (info_frame_cmd_list): New global for sub-commands.
2578 (_initialize_stack): Register sub-commands for 'frame',
2579 'select-frame', and 'info frame'. Update 'frame apply' commands
2580 to use frame_apply_cmd_list. Move function local static
2581 frame_apply_list to file static frame_apply_cmd_list for
2582 consistency.
2583 * stack.h (select_frame_command): Delete declarationn.
2584 (select_frame_for_mi): Declare new function.
2585
d354055e
AB
25862018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
2587
2588 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
2589 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
2590 and NOP.
2591
85392414
SM
25922018-09-26 Simon Marchi <simon.marchi@ericsson.com>
2593
2594 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
2595
896ee098
TT
25962018-09-26 Tom Tromey <tom@tromey.com>
2597
2598 * valops.c (auto_abandon): Remove dead code.
2599
57dbb3af
TT
26002018-09-26 Tom Tromey <tom@tromey.com>
2601
2602 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
2603
b5a9bfbe
TT
26042018-09-24 Tom Tromey <tom@tromey.com>
2605
2606 * common/pathstuff.c (get_standard_cache_dir): Make
2607 "xdg_cache_home" and "home" const.
2608 * top.c (init_history): Make "tmpenv" const.
2609 * main.c (get_init_files): Make "homedir" const.
2610
ae778caf
TT
26112018-09-23 Tom Tromey <tom@tromey.com>
2612
2613 PR python/18852:
2614 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
2615
2b4ad2fe
TT
26162018-09-23 Tom Tromey <tom@tromey.com>
2617
2618 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
2619 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
2620 * python/python-internal.h (gdbpy_handle_exception): Declare.
2621 * python/py-utils.c (gdbpy_handle_exception): New function.
2622
fd3ba736
TT
26232018-09-23 Tom Tromey <tom@tromey.com>
2624
2625 PR python/17284:
2626 * python/py-type.c (typy_template_argument): Check for negative
2627 argument number.
2628
39a24317
TT
26292018-09-23 Tom Tromey <tom@tromey.com>
2630
2631 PR python/14062:
2632 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
2633
f5769a2c
TT
26342018-09-23 Tom Tromey <tom@tromey.com>
2635
2636 PR python/18170:
2637 * python/py-value.c (valpy_int): Allow conversion from pointer
2638 type.
2639
1c1e54f6
TT
26402018-09-23 Tom Tromey <tom@tromey.com>
2641
2642 PR python/20126:
2643 * python/py-value.c (valpy_int): Respect type sign.
2644
fb4fa946
TT
26452018-09-23 Tom Tromey <tom@tromey.com>
2646
2647 PR python/18352;
2648 * python/py-value.c (valpy_float): Allow conversions from int or
2649 char.
2650 (valpy_int, valpy_long): Allow conversions from float.
2651
65773341
TT
26522018-09-23 Tom Tromey <tom@tromey.com>
2653
2654 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
2655 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
2656
1db88d22
RO
26572018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2658
2659 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
2660 __sighndlr.
2661 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
2662
a44294f5
JT
26632018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
2664
2665 * windows-nat.c (windows_nat_target::wait): Remove a spurious
2666 target_terminal::ours().
2667
0c0a40e0
SM
26682018-09-23 Simon Marchi <simon.marchi@ericsson.com>
2669
2670 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
2671 of vl to ULONGEST.
2672
4daf1902
YS
26732018-09-21 Yacov Simhony <ysimhony@gmail.com>
2674
2675 * breakpoint.c (update_inserted_breakpoint_locations): Remove
2676 redundant condition.
2677
c475f569
RO
26782018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2679
2680 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
2681
2682 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
2683 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
2684 * sol-thread.c (ps_pdmodel): Don't guard definition.
2685
2686 * procfs.c: Fix formatting.
2687
2688 * procfs.c (sysset_t_alloc): Remove.
2689 (create_procinfo): Use XNEW instead of sysset_t_alloc.
2690 (procfs_debug_inferior): Likewise.
2691 (procfs_set_exec_trap): Likewise.
2692 (proc_set_traced_sysentry): Don't allocate argp dynamically.
2693 (proc_set_traced_sysexit): Likewise.
2694
2695 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
2696 (dead_procinfo): Likewise.
2697 (proc_warn): Likewise.
2698 (proc_error): Likewise.
2699 (proc_get_LDT_entry): Likewise.
2700 (do_attach): Likewise.
2701 (procfs_target::pid_to_str): Likewise.
2702 (iterate_over_mappings): Likewise.
2703
2704 * procfs.c (create_procinfo): Fix ARI warning.
2705 (proc_get_status): Likewise.
2706 (proc_stop_process): Likewise.
2707 (proc_run_process): Likewise.
2708 (proc_kill): Likewise.
2709 (proc_get_LDT_entry): Likewise.
2710 (procfs_find_LDT_entry): Likewise.
2711 (proc_update_threads): Likewise.
2712 (proc_iterate_over_threads): Likewise.
2713 (do_attach): Likewise.
2714 (procfs_xfer_memory): Likewise.
2715 (invalidate_cache): Likewise.
2716 (procfs_target::resume): Likewise.
2717 (procfs_init_inferior): Likewise.
2718 (procfs_set_exec_trap): Likewise.
2719 (procfs_target::thread_alive): Likewise.
2720 (procfs_target::pid_to_exec_file): Likewise.
2721 (iterate_over_mappings): Likewise.
2722 (procfs_target::make_corefile_notes): Likewise.
2723 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
2724
2725 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
2726 (procfs_find_LDT_entry): Likewise.
2727 * sol-thread.c (ps_lgetLDT): Likewise.
2728
4206c05e
RO
27292018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2730
2731 PR tdep/17903
2732 * procfs.c (procfs_target): Declare pid_to_exec_file.
2733 (procfs_target::pid_to_exec_file): New.
2734
3d282ac3
RO
27352018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2736
2737 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
2738 renaming.
2739 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
2740 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
2741
8c93fae6
RO
27422018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2743
2744 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
2745 (supply_fpregset, fill_fpregset): Move ...
2746 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
2747 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
2748 Remove references to ioctl-based procfs.
2749 Include <sys/reg.h>.
2750 Remove PR_MODEL_NATIVE guards.
2751 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
2752 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
2753
79b32f4a
XR
27542018-09-19 Xavier Roirand <roirand@adacore.com>
2755
2756 PR gdb/20981:
2757 * solib-darwin.c (darwin_get_dyld_bfd): New function.
2758 (darwin_solib_get_all_image_info_addr_at_init): Update call.
2759 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
2760
07147793
JB
27612018-09-19 John Baldwin <jhb@FreeBSD.org>
2762
2763 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
2764 (fbsd_print_sockaddr_in6): Likewise.
2765
23be8da7
RB
27662018-09-19 Richard Bunt <richard.bunt@arm.com>
2767 Chris January <chris.january@arm.com>
2768
2769 * eval.c (skip_undetermined_arglist): Skip argument list helper.
2770 (evaluate_subexp_standard): Return a dummy type when
2771 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
2772 OP_F77_UNDETERMINED_ARGLIST case.
2773 * expression.h (enum noside): Update comment.
2774
7307a73a
RO
27752018-09-19 George Vasick <george.vasick@oracle.com>
2776
2777 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
2778
13db92d3
RO
27792018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
2780 April Chin <april.chin@oracle.com>
2781 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2782
2783 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
2784 uint_t lwpid_t.
2785 (create_procinfo): Print pids in /proc without leading zeros.
2786
3d50f170
SL
27872018-09-18 Sandra Loosemore <sandra@codesourcery.com>
2788
2789 * nios2-tdep.c (nios2_gcc_target_options): New.
2790 (nios2_gdb_arch_init): Install new hook.
2791
b567ca63
SM
27922018-09-18 Simon Marchi <simon.marchi@ericsson.com>
2793
2794 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
2795 New file.
2796 * update-gnulib.sh: Apply patch.
2797 * configure: Re-generate.
2798
73f1bd76
JB
27992018-09-18 John Baldwin <jhb@FreeBSD.org>
2800
2801 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
2802 description. Make "info proc" command descriptions more
2803 consistent.
2804
8b113111
JB
28052018-09-18 John Baldwin <jhb@FreeBSD.org>
2806
2807 * NEWS: Mention 'info proc files' command.
2808
7e69672e
JB
28092018-09-18 John Baldwin <jhb@FreeBSD.org>
2810
2811 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
2812 descriptors for IP_FILES and IP_ALL.
2813
57c2a98a
JB
28142018-09-18 John Baldwin <jhb@FreeBSD.org>
2815
2816 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
2817 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
2818 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
2819 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
2820 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
2821 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
2822 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
2823 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
2824 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
2825 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
2826 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
2827 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
2828 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
2829 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
2830 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
2831 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
2832 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
2833 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
2834 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
2835 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
2836 (struct fbsd_sockaddr_un): New types.
2837 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
2838 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
2839 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
2840 (fbsd_core_info_proc_files): New functions.
2841 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
2842 IP_ALL.
2843 * fbsd-tdep.h (fbsd_info_proc_files_header)
2844 (fbsd_info_proc_files_entry): New.
2845
e98ee8c4
JB
28462018-09-18 John Baldwin <jhb@FreeBSD.org>
2847
2848 * defs.h (enum info_proc_what) [IP_FILES]: New value.
2849 * infcmd.c (info_proc_cmd_files): New function.
2850 (_initialize_infcmd): Register 'info proc files' command.
2851
725e2999
JB
28522018-09-18 John Baldwin <jhb@FreeBSD.org>
2853
2854 * gnulib/aclocal-m4-deps.mk: Re-generate.
2855 * gnulib/aclocal.m4: Re-generate.
2856 * gnulib/config.in: Re-generate.
2857 * gnulib/configure: Re-generate.
2858 * gnulib/import/Makefile.am: Re-generate.
2859 * gnulib/import/Makefile.in: Re-generate.
2860 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2861 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2862 * gnulib/import/arpa_inet.in.h: New file.
2863 * gnulib/import/inet_ntop.c: New file.
2864 * gnulib/import/m4/arpa_inet_h.m4: New file.
2865 * gnulib/import/m4/inet_ntop.m4: New file.
2866 * gnulib/import/m4/netinet_in_h.m4: New file.
2867 * gnulib/import/m4/socklen.m4: New file.
2868 * gnulib/import/m4/sockpfaf.m4: New file.
2869 * gnulib/import/m4/stdalign.m4: New file.
2870 * gnulib/import/m4/sys_uio_h.m4: New file.
2871 * gnulib/import/netinet_in.in.h: New file.
2872 * gnulib/import/stdalign.in.h: New file.
2873 * gnulib/import/sys_socket.c: New file.
2874 * gnulib/import/sys_socket.in.h: New file.
2875 * gnulib/import/sys_uio.in.h: New file.
2876 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
2877 module.
2878
2afffa7f
JB
28792018-09-18 John Baldwin <jhb@FreeBSD.org>
2880
2881 * gnulib/aclocal-m4-deps.mk: New file.
2882 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
2883 deterministically.
2884
9f235e09
JB
28852018-09-18 John Baldwin <jhb@FreeBSD.org>
2886
2887 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
2888 KVE_PATH.
2889
40f03055
TT
28902018-09-18 Tom Tromey <tom@tromey.com>
2891
2892 * compile/compile-object-load.c (struct
2893 link_hash_table_cleanup_data): Add constructor and destructor.
2894 Use DISABLE_COPY_AND_ASSIGN.
2895 (~link_hash_table_cleanup_data): Rename from
2896 link_hash_table_free. Now a destructor.
2897 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
2898
c9e0a7e3
TT
28992018-09-18 Tom Tromey <tom@tromey.com>
2900
2901 * compile/compile-object-run.c (do_module_cleanup): Use delete.
2902 * compile/compile-object-load.c (struct munmap_list): Move to
2903 header file.
2904 (munmap_list::add): Rename from munmap_list_add; rewrite.
2905 (munmap_list::~munmap_list): Rename from munmap_list_free.
2906 (munmap_listp_free_cleanup): Remove.
2907 (compile_object_load): Update.
2908 * compile/compile-object-load.h (struct munmap_list): Move from
2909 compile-object-load.c. Rewrite.
2910
3ff2c72e
AH
29112018-09-18 Alan Hayward <alan.hayward@arm.com>
2912
2913 * aarch64-tdep.c (pass_in_v): Use register size.
2914 (aarch64_extract_return_value): Likewise.
2915 (aarch64_store_return_value): Likewise.
2916
206c1947
RO
29172018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2918
2919 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
2920 rlim_t.
2921
6eb5dbce
PW
29222018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2923
2924 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
2925 Fix short help line.
2926
ae292b3a
TT
29272018-09-17 Tom Tromey <tom@tromey.com>
2928
2929 PR python/20445:
2930 * configure: Rebuild.
2931 * configure.ac: Conditionally use -DNDEBUG for Python.
2932
da658607
TT
29332018-09-17 Tom Tromey <tom@tromey.com>
2934
2935 * configure: Rebuild.
2936 * configure.ac: Use gmp as a library dependency when checking for
2937 mpfr.
2938
d35da542
PA
29392018-09-17 Pedro Alves <palves@redhat.com>
2940
2941 * python/py-inferior.c (find_inferior_object): Delete.
2942
461464f2
SM
29432018-09-17 Simon Marchi <simon.marchi@ericsson.com>
2944
2945 * compile/compile-cplus-types.c
2946 (compile_cplus_instance::enter_scope): Don't use new_scope after
2947 std::move.
2948
e6cd1dc1
TT
29492018-09-17 Tom Tromey <tom@tromey.com>
2950
2951 * common/pathstuff.c (get_standard_cache_dir): Use
2952 ~/Library/Caches on macOS.
2953 * common/pathstuff.h (get_standard_cache_dir): Update comment.
2954
8588b356
SM
29552018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
2956
2957 PR python/23669
2958 * breakpoint.c (commands_cmd_element): New.
2959 (_initialize_breakpoint): Assign commands_cmd_element.
2960 * breakpoint.h (commands_cmd_element): New.
2961 * cli/cli-script.c (while_cmd_element, if_command,
2962 define_cmd_element): New.
2963 (command_name_equals): Remove.
2964 (process_next_line): Compare commands by pointer, not by name.
2965 (_initialize_cli_script): Assign the various cmd_list_element
2966 variables.
2967 * compile/compile.c (compile_cmd_element): New.
2968 (_initialize_compile): Assign compile_cmd_element.
2969 * compile/compile.h (compile_cmd_element): New.
2970 * guile/guile.c (guile_cmd_element): New.
2971 (install_gdb_commands): Assign guile_cmd_element.
2972 * guile/guile.h (guile_cmd_element): New.
2973 * python/python.c (python_cmd_element): New.
2974 (_initialize_python): Assign python_cmd_element.
2975 * python/python.h (python_cmd_element): New.
2976 * tracepoint.c (while_stepping_cmd_element): New.
2977 (_initialize_tracepoint): Assign while_stepping_cmd_element.
2978 * tracepoint.h (while_stepping_cmd_element): New.
2979
cb524840
TT
29802018-09-17 Tom Tromey <tom@tromey.com>
2981
2982 * infrun.c (save_infcall_suspend_state): Return
2983 infcall_suspend_state_up.
2984 (save_infcall_control_state): Return infcall_control_state_up.
2985 * inferior.h (save_infcall_suspend_state)
2986 (save_infcall_control_state): Declare later. Return unique
2987 pointers.
2988
2d844eaf
TT
29892018-09-17 Tom Tromey <tom@tromey.com>
2990
2991 * infrun.c (struct stop_context): Declare constructor,
2992 destructor, "changed" method.
2993 (stop_context::stop_context): Rename from save_stop_context.
2994 (stop_context::~stop_context): Rename from
2995 release_stop_context_cleanup.
2996 (normal_stop): Update.
2997 (stop_context::changed): Rename from stop_context_changed. Return
2998 bool.
2999
c7c4d3fa
TT
30002018-09-17 Tom Tromey <tom@tromey.com>
3001
3002 * inferior.h (struct infcall_suspend_state_deleter): New.
3003 (infcall_suspend_state_up): New typedef.
3004 (struct infcall_control_state_deleter): New.
3005 (infcall_control_state_up): New typedef.
3006 (make_cleanup_restore_infcall_suspend_state)
3007 (make_cleanup_restore_infcall_control_state): Don't declare.
3008 * infcall.c (call_function_by_hand_dummy): Update.
3009 * infrun.c (do_restore_infcall_suspend_state_cleanup)
3010 (make_cleanup_restore_infcall_suspend_state): Remove.
3011 (do_restore_infcall_control_state_cleanup)
3012 (make_cleanup_restore_infcall_control_state): Remove.
3013
ee841dd8
TT
30142018-09-17 Tom Tromey <tom@tromey.com>
3015
3016 * gdbthread.h (struct thread_control_state): Add initializer.
3017 (class thread_info) <control>: Remove initializer.
3018 * inferior.h (struct inferior_control_state): Add initializer.
3019 (class inferior) <control>: Remove initializer.
3020 (exit_inferior_1): Update.
3021 * infrun.c (struct infcall_control_state): Add constructors.
3022 (save_infcall_control_state): Use new.
3023 (restore_infcall_control_state, discard_infcall_control_state):
3024 Use delete.
3025
117f580a
TT
30262018-09-17 Tom Tromey <tom@tromey.com>
3027
3028 * infrun.c (struct infcall_suspend_state) <registers>: Now a
3029 unique_ptr.
3030 <siginfo_data>: Now a unique_xmalloc_ptr.
3031 (save_infcall_suspend_state, restore_infcall_suspend_state)
3032 (discard_infcall_suspend_state)
3033 (get_infcall_suspend_state_regcache): Update.
3034
dd848631
TT
30352018-09-17 Tom Tromey <tom@tromey.com>
3036
3037 * gdbthread.h (struct thread_suspend_state): Add initializers.
3038 (class thread_info) <suspend>: Remove initializer.
3039 * infrun.c (struct infcall_suspend_state): Add initializers.
3040 (save_infcall_suspend_state): Use new.
3041 (discard_infcall_suspend_state): Use delete.
3042
1a338907
TT
30432018-09-16 Tom Tromey <tom@tromey.com>
3044
3045 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
3046 Remove.
3047 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
3048 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
3049 (py_varobj_iter_new): Likewise.
3050 (py_varobj_get_iterator): Use gdbpy_ref.
3051
4a137fec
TT
30522018-09-16 Tom Tromey <tom@tromey.com>
3053
3054 * python/py-threadevent.c (py_get_event_thread): Simplify.
3055 * python/py-inferior.c (infpy_thread_from_thread_handle):
3056 Return immediately after calling thread_to_thread_object. Use
3057 Py_RETURN_NONE.
3058 (thread_to_thread_object): Set the exception on a NULL return.
3059
8ff03f0b
SM
30602018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3061
3062 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
3063
94c8b725
TT
30642018-09-16 Tom Tromey <tom@tromey.com>
3065
3066 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
3067 Remove.
3068
db1337cc
TT
30692018-09-16 Tom Tromey <tom@tromey.com>
3070
3071 * python/python-internal.h (thread_to_thread_object): Change
3072 return type.
3073 * python/py-inferior.c (thread_to_thread_object): Return a new
3074 reference.
3075 (infpy_thread_from_thread_handle): Update.
3076 * python/py-infthread.c (gdbpy_selected_thread): Update.
3077 * python/py-stopevent.c (create_stop_event_object): Update.
3078 * python/py-threadevent.c (py_get_event_thread): Return a new
3079 reference.
3080 (py_get_event_thread): Update.
3081 * python/py-event.h (py_get_event_thread): Change return type.
3082 * python/py-continueevent.c (create_continue_event_object):
3083 Update.
3084
0a9db5ad
TT
30852018-09-16 Tom Tromey <tom@tromey.com>
3086
3087 * python/py-progspace.c (pspy_get_objfiles): Update.
3088 * python/python-internal.h (objfile_to_objfile_object): Change
3089 return type.
3090 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3091 Update.
3092 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
3093 Update.
3094 * python/python.c (gdbpy_get_current_objfile): Update.
3095 (gdbpy_objfiles): Update.
3096 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
3097 Update.
3098 (objfile_to_objfile_object): Return a new reference.
3099 * python/py-symtab.c (stpy_get_objfile): Update.
3100 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
3101 Update.
3102
3c7aa307
TT
31032018-09-16 Tom Tromey <tom@tromey.com>
3104
3105 * python/py-inferior.c (infpy_get_progspace): Update.
3106 * python/python-internal.h (pspace_to_pspace_object): Change
3107 return type.
3108 * python/py-newobjfileevent.c
3109 (create_clear_objfiles_event_object): Update.
3110 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
3111 Update.
3112 * python/python.c (gdbpy_get_current_progspace): Update.
3113 (gdbpy_progspaces): Update.
3114 * python/py-progspace.c (pspace_to_pspace_object): Return a new
3115 reference.
3116 * python/py-objfile.c (objfpy_get_progspace): Update.
3117 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
3118 Update.
3119
8743a9cd
TT
31202018-09-16 Tom Tromey <tom@tromey.com>
3121
3122 * python/lib/gdb/__init__.py (current_progspace, objfiles)
3123 (solib_name, block_for_pc, find_pc_line): New functions.
3124 (execute_unwinders): Update.
3125 * python/py-block.c (gdbpy_block_for_pc): Remove.
3126 * python/py-inferior.c (infpy_get_progspace): New function.
3127 (inferior_object_getset) <progspace>: Add.
3128 * python/py-progspace.c (pspy_objfiles): Rewrite.
3129 (pspy_solib_name, pspy_block_for_pc)
3130 (pspy_find_pc_line, pspy_is_valid): New functions.
3131 (progspace_object_methods): Add entries for solib_name,
3132 block_for_pc, find_pc_line, is_valid.
3133 * python/python-internal.h (gdbpy_block_for_pc)
3134 (build_objfiles_list): Don't declare.
3135 * python/python.c: Don't include solib.h.
3136 (gdbpy_solib_name, gdbpy_find_pc_line)
3137 (gdbpy_get_current_progspace, build_objfiles_list)
3138 (gdbpy_objfiles): Remove.
3139 (GdbMethods) <current_progspace, objfiles, block_for_pc,
3140 solib_name, find_pc_line>: Remove entries.
3141
65e65158
TT
31422018-09-16 Tom Tromey <tom@tromey.com>
3143
3144 * top.c (new_ui_command): Use GNU style for metasyntactic
3145 variables.
3146 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
3147 variables.
3148 * maint.c (maintenance_translate_address): Remove "<>" around
3149 text.
3150 * interps.c (interpreter_exec_cmd): Use GNU style for
3151 metasyntactic variables.
3152 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
3153 metasyntactic variables.
3154 * tracepoint.c (tfind_range_command): Use GNU style for
3155 metasyntactic variables.
3156 (tfind_outside_command): Likewise.
3157 (_initialize_tracepoint): Likewise.
3158 * remote.c (extended_remote_target::create_inferior): Use GNU
3159 style for metasyntactic variables.
3160 * sparc64-tdep.c (adi_examine_command): Use GNU style for
3161 metasyntactic variables.
3162 (adi_assign_command): Likewise.
3163
f4bab6ff
TT
31642018-09-16 Tom Tromey <tom@tromey.com>
3165
3166 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
3167 metasyntactic variables. Print message if no disassembler options
3168 are available.
3169
cbaaa0ca
TT
31702018-09-15 Tom Tromey <tom@tromey.com>
3171
3172 * infcmd.c (get_inferior_args): Return const char *.
3173 * inferior.h (get_inferior_args): Return type now const.
3174 * linux-tdep.c (linux_fill_prpsinfo): Update.
3175 * procfs.c (procfs_target::make_corefile_notes): Update.
3176
a3a6aef4
TT
31772018-09-07 Tom Tromey <tom@tromey.com>
3178
3179 * python/python.c (execute_gdb_command): Call bpstat_do_actions
3180 inside the TRY.
3181
f70e088f
SL
31822018-09-14 Sandra Loosemore <sandra@codesourcery.com>
3183
3184 * nios2-tdep.c (nios2_type_align): New.
3185 (nios2_gdb_arch_init): Install type_align hook.
3186
2fabdf33
AB
31872018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3188
3189 * eval.c (fake_method::fake_method): Call xzalloc directly for a
3190 type that is neither object file owned, nor gdbarch owned.
3191 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
3192 gdbarch is non-NULL.
3193 (alloc_type_instance): Allocate non-objfile owned types on the
3194 gdbarch obstack.
3195 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
3196 using TYPE_ALLOC to ensure memory is allocated on the correct
3197 obstack.
3198 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
3199 obstack, or the gdbarch obstack.
3200 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
3201
b4b08fa2
TT
32022018-09-14 Tom Tromey <tom@tromey.com>
3203
3204 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
3205 block.
3206
87b240d4
TT
32072018-09-14 Tom Tromey <tom@tromey.com>
3208
3209 * nat/fork-inferior.c (get_startup_shell): Remove "static".
3210
7d221512
TT
32112018-09-13 Tom Tromey <tom@tromey.com>
3212
3213 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
3214 static.
3215
97e67fc6
TT
32162018-09-13 Tom Tromey <tom@tromey.com>
3217
3218 * exec.c (try_open_exec_file): Use std::string.
3219
803c08d0
TT
32202018-09-13 Tom Tromey <tom@tromey.com>
3221
3222 * utils.h (gdb_bfd_errmsg): Return std::string.
3223 * exec.c (exec_file_attach): Update.
3224 * compile/compile-object-load.c (compile_object_load): Update.
3225 * utils.c (gdb_bfd_errmsg): Return std::string.
3226
5b4cbbe3
TT
32272018-09-13 Tom Tromey <tom@tromey.com>
3228
3229 * procfs.c (struct procinfo_deleter): New.
3230 (procinfo_up): New typedef.
3231 (do_destroy_procinfo_cleanup): Remove.
3232 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
3233
db68fbe2
TT
32342018-09-13 Tom Tromey <tom@tromey.com>
3235
3236 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
3237
0ae1a321
SM
32382018-09-13 Simon Marchi <simon.marchi@ericsson.com>
32392018-09-13 Tom Tromey <tom@tromey.com>
3240
3241 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
3242 (pspy_get_objfiles): New function.
3243 (progspace_object_methods): New.
3244 (pspace_object_type): Add tp_methods callback.
3245 * python/python-internal.h (build_objfiles_list): New
3246 declaration.
3247 * python/python.c (build_objfiles_list): New function.
3248 (gdbpy_objfiles): Implement using build_objfiles_list.
3249 * NEWS: Mention the Progspace.objfiles method.
3250
a40bf0c2
SM
32512018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3252
3253 * python/py-inferior.c (infpy_get_progspace): New function.
3254 (inferior_object_getset): Add progspace property.
3255 * NEWS: Mention the new property.
3256
4a3fe98f
TT
32572018-09-13 Tom Tromey <tom@tromey.com>
3258
3259 PR rust/23650:
3260 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
3261
098b2108
TT
32622018-09-13 Tom Tromey <tom@tromey.com>
3263
3264 PR rust/23626:
3265 * rust-lang.c (rust_enum_variant): Now static.
3266 (rust_empty_enum_p): New function.
3267 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
3268 Handle empty enum.
3269
1256af7d
SM
32702018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3271
3272 * python/py-inferior.c (infpy_repr): New.
3273 (inferior_object_type): Register infpy_repr.
3274 * python/py-objfile.c (objfpy_repr): New.
3275 (objfile_object_type): Register objfpy_repr.
3276
f117a62c
JB
32772018-09-12 John Baldwin <jhb@FreeBSD.org>
3278
3279 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
3280
88f22c34
JB
32812018-09-12 John Baldwin <jhb@FreeBSD.org>
3282
3283 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
3284 typo.
3285
3c025cfe
SDJ
32862018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
3287
3288 * common/common-utils.c: Don't include '<sys/stat.h>'.
3289 (is_regular_file): Move to...
3290 * common/filestuff.c (is_regular_file): ... here.
3291 * common/common-utils.h (is_regular_file): Move to...
3292 * common/filestuff.h (is_regular_file): ... here.
3293
3e68067f
SM
32942018-09-12 Simon Marchi <simon.marchi@ericsson.com>
3295
3296 * skip.c (debug_skip): New variable.
3297 (skiplist_entry::do_skip_file_p): Add debug output.
3298 (skiplist_entry::do_skip_gfile_p): Likewise.
3299 (skiplist_entry::skip_function_p): Likewise.
3300 (_initialize_step_skip): Create debug command.
3301 * NEWS: Mention set/show debug skip.
3302
d6be54ef
XR
33032018-09-11 Xavier Roirand <roirand@adacore.com>
3304
3305 * darwin-nat.c (should_disable_startup_with_shell):
3306 New function.
3307 (darwin_nat_target::create_inferior): Add call.
3308
de1ec836
XR
33092018-09-11 Xavier Roirand <roirand@adacore.com>
3310
3311 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
3312 inf_port, msg_state>: Initialize.
3313 (struct darwin_thread_info) <signaled, single_step>: Change
3314 type and initialize.
3315 (struct darwin_thread_info) <event>: Initialize.
3316
e2fc52e7
SDJ
33172018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3318
3319 PR gdb/23555
3320 PR gdb/23558
3321 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
3322 guesses.
3323
5e8754f9
SDJ
33242018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3325
3326 Revert:
3327 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
3328
3329 PR gdb/23555
3330 PR gdb/23558
3331 * gnulib/aclocal.m4: Regenerate.
3332 * gnulib/config.in: Regenerate.
3333 * gnulib/configure: Regenerate.
3334 * gnulib/import/Makefile.am: Update.
3335 * gnulib/import/Makefile.in: Update.
3336 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3337 * gnulib/import/_Noreturn.h: ... this.
3338 * gnulib/import/alloca.in.h: Update.
3339 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3340 * gnulib/import/arg-nonnull.h: ... this.
3341 * gnulib/import/assure.h: Update.
3342 * gnulib/import/at-func.c: Update.
3343 * gnulib/import/basename-lgpl.c: Update.
3344 * gnulib/import/extra/snippet/c++defs.h: Rename to...
3345 * gnulib/import/c++defs.h: ... this.
3346 * gnulib/import/canonicalize-lgpl.c: Update.
3347 * gnulib/import/cdefs.h: Update.
3348 * gnulib/import/chdir-long.c: Update.
3349 * gnulib/import/chdir-long.h: Update.
3350 * gnulib/import/cloexec.c: Update.
3351 * gnulib/import/cloexec.h: Update.
3352 * gnulib/import/close.c: Update.
3353 * gnulib/import/closedir.c: Update.
3354 * gnulib/import/config.charset: Update.
3355 * gnulib/import/dirent-private.h: Update.
3356 * gnulib/import/dirent.in.h: Update.
3357 * gnulib/import/dirfd.c: Update.
3358 * gnulib/import/dirname-lgpl.c: Update.
3359 * gnulib/import/dirname.h: Update.
3360 * gnulib/import/dosname.h: Update.
3361 * gnulib/import/dup-safer-flag.c: Update.
3362 * gnulib/import/dup-safer.c: Update.
3363 * gnulib/import/dup.c: Update.
3364 * gnulib/import/dup2.c: Update.
3365 * gnulib/import/errno.in.h: Update.
3366 * gnulib/import/error.c: Update.
3367 * gnulib/import/error.h: Update.
3368 * gnulib/import/exitfail.c: Update.
3369 * gnulib/import/exitfail.h: Update.
3370 * gnulib/import/extra/update-copyright: Update.
3371 * gnulib/import/fchdir.c: Update.
3372 * gnulib/import/fcntl.c: Update.
3373 * gnulib/import/fcntl.in.h: Update.
3374 * gnulib/import/fd-hook.c: Update.
3375 * gnulib/import/fd-hook.h: Update.
3376 * gnulib/import/fd-safer-flag.c: Update.
3377 * gnulib/import/fd-safer.c: Update.
3378 * gnulib/import/fdopendir.c: Update.
3379 * gnulib/import/filename.h: Update.
3380 * gnulib/import/filenamecat-lgpl.c: Update.
3381 * gnulib/import/filenamecat.h: Update.
3382 * gnulib/import/flexmember.h: Update.
3383 * gnulib/import/float+.h: Update.
3384 * gnulib/import/float.c: Update.
3385 * gnulib/import/float.in.h: Update.
3386 * gnulib/import/fnmatch.c: Update.
3387 * gnulib/import/fnmatch.in.h: Update.
3388 * gnulib/import/fnmatch_loop.c: Update.
3389 * gnulib/import/fpucw.h: Update.
3390 * gnulib/import/frexp.c: Update.
3391 * gnulib/import/frexpl.c: Update.
3392 * gnulib/import/fstat.c: Update.
3393 * gnulib/import/fstatat.c: Update.
3394 * gnulib/import/getcwd-lgpl.c: Update.
3395 * gnulib/import/getcwd.c: Update.
3396 * gnulib/import/getdtablesize.c: Update.
3397 * gnulib/import/getlogin_r.c: Update.
3398 * gnulib/import/getprogname.c: Update.
3399 * gnulib/import/getprogname.h: Update.
3400 * gnulib/import/gettext.h: Update.
3401 * gnulib/import/gettimeofday.c: Update.
3402 * gnulib/import/glob-libc.h: Update.
3403 * gnulib/import/glob.c: Update.
3404 * gnulib/import/glob.in.h: Update.
3405 * gnulib/import/glob_internal.h: Update.
3406 * gnulib/import/glob_pattern_p.c: Update.
3407 * gnulib/import/globfree.c: Update.
3408 * gnulib/import/hard-locale.c: Update.
3409 * gnulib/import/hard-locale.h: Update.
3410 * gnulib/import/intprops.h: Update.
3411 * gnulib/import/inttypes.in.h: Update.
3412 * gnulib/import/isnan.c: Update.
3413 * gnulib/import/isnand-nolibm.h: Update.
3414 * gnulib/import/isnand.c: Update.
3415 * gnulib/import/isnanl-nolibm.h: Update.
3416 * gnulib/import/isnanl.c: Update.
3417 * gnulib/import/itold.c: Update.
3418 * gnulib/import/libc-config.h: Update.
3419 * gnulib/import/limits.in.h: Update.
3420 * gnulib/import/localcharset.c: Update.
3421 * gnulib/import/localcharset.h: Update.
3422 * gnulib/import/localtime-buffer.c: Update.
3423 * gnulib/import/localtime-buffer.h: Update.
3424 * gnulib/import/lstat.c: Update.
3425 * gnulib/import/m4/00gnulib.m4: Update.
3426 * gnulib/import/m4/__inline.m4: Update.
3427 * gnulib/import/m4/absolute-header.m4: Update.
3428 * gnulib/import/m4/alloca.m4: Update.
3429 * gnulib/import/m4/builtin-expect.m4: Update.
3430 * gnulib/import/m4/canonicalize.m4: Update.
3431 * gnulib/import/m4/chdir-long.m4: Update.
3432 * gnulib/import/m4/close.m4: Update.
3433 * gnulib/import/m4/closedir.m4: Update.
3434 * gnulib/import/m4/configmake.m4: Update.
3435 * gnulib/import/m4/d-ino.m4: Update.
3436 * gnulib/import/m4/d-type.m4: Update.
3437 * gnulib/import/m4/dirent_h.m4: Update.
3438 * gnulib/import/m4/dirfd.m4: Update.
3439 * gnulib/import/m4/dirname.m4: Update.
3440 * gnulib/import/m4/double-slash-root.m4: Update.
3441 * gnulib/import/m4/dup.m4: Update.
3442 * gnulib/import/m4/dup2.m4: Update.
3443 * gnulib/import/m4/eealloc.m4: Update.
3444 * gnulib/import/m4/environ.m4: Update.
3445 * gnulib/import/m4/errno_h.m4: Update.
3446 * gnulib/import/m4/error.m4: Update.
3447 * gnulib/import/m4/exponentd.m4: Update.
3448 * gnulib/import/m4/exponentl.m4: Update.
3449 * gnulib/import/m4/extensions.m4: Update.
3450 * gnulib/import/m4/extern-inline.m4: Update.
3451 * gnulib/import/m4/fchdir.m4: Update.
3452 * gnulib/import/m4/fcntl-o.m4: Update.
3453 * gnulib/import/m4/fcntl.m4: Update.
3454 * gnulib/import/m4/fcntl_h.m4: Update.
3455 * gnulib/import/m4/fdopendir.m4: Update.
3456 * gnulib/import/m4/filenamecat.m4: Update.
3457 * gnulib/import/m4/flexmember.m4: Update.
3458 * gnulib/import/m4/float_h.m4: Update.
3459 * gnulib/import/m4/fnmatch.m4: Update.
3460 * gnulib/import/m4/fnmatch_h.m4: Update.
3461 * gnulib/import/m4/fpieee.m4: Update.
3462 * gnulib/import/m4/frexp.m4: Update.
3463 * gnulib/import/m4/frexpl.m4: Update.
3464 * gnulib/import/m4/fstat.m4: Update.
3465 * gnulib/import/m4/fstatat.m4: Update.
3466 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3467 * gnulib/import/m4/getcwd-path-max.m4: Update.
3468 * gnulib/import/m4/getcwd.m4: Update.
3469 * gnulib/import/m4/getdtablesize.m4: Update.
3470 * gnulib/import/m4/getlogin.m4: Update.
3471 * gnulib/import/m4/getlogin_r.m4: Update.
3472 * gnulib/import/m4/getpagesize.m4: Update.
3473 * gnulib/import/m4/getprogname.m4: Update.
3474 * gnulib/import/m4/gettimeofday.m4: Update.
3475 * gnulib/import/m4/glibc21.m4: Update.
3476 * gnulib/import/m4/glob.m4: Update.
3477 * gnulib/import/m4/glob_h.m4: Update.
3478 * gnulib/import/m4/gnulib-cache.m4: Update.
3479 * gnulib/import/m4/gnulib-common.m4: Update.
3480 * gnulib/import/m4/gnulib-comp.m4: Update.
3481 * gnulib/import/m4/gnulib-tool.m4: Update.
3482 * gnulib/import/m4/hard-locale.m4: Update.
3483 * gnulib/import/m4/include_next.m4: Update.
3484 * gnulib/import/m4/inttypes-pri.m4: Update.
3485 * gnulib/import/m4/inttypes.m4: Update.
3486 * gnulib/import/m4/isnand.m4: Update.
3487 * gnulib/import/m4/isnanl.m4: Update.
3488 * gnulib/import/m4/largefile.m4: Update.
3489 * gnulib/import/m4/limits-h.m4: Update.
3490 * gnulib/import/m4/localcharset.m4: Update.
3491 * gnulib/import/m4/locale-fr.m4: Update.
3492 * gnulib/import/m4/locale-ja.m4: Update.
3493 * gnulib/import/m4/locale-zh.m4: Update.
3494 * gnulib/import/m4/localtime-buffer.m4: Update.
3495 * gnulib/import/m4/longlong.m4: Update.
3496 * gnulib/import/m4/lstat.m4: Update.
3497 * gnulib/import/m4/malloc.m4: Update.
3498 * gnulib/import/m4/malloca.m4: Update.
3499 * gnulib/import/m4/math_h.m4: Update.
3500 * gnulib/import/m4/mbrtowc.m4: Update.
3501 * gnulib/import/m4/mbsinit.m4: Update.
3502 * gnulib/import/m4/mbsrtowcs.m4: Update.
3503 * gnulib/import/m4/mbstate_t.m4: Update.
3504 * gnulib/import/m4/memchr.m4: Update.
3505 * gnulib/import/m4/memmem.m4: Update.
3506 * gnulib/import/m4/mempcpy.m4: Update.
3507 * gnulib/import/m4/memrchr.m4: Update.
3508 * gnulib/import/m4/mkdir.m4: Update.
3509 * gnulib/import/m4/mkstemp.m4: Update.
3510 * gnulib/import/m4/mmap-anon.m4: Update.
3511 * gnulib/import/m4/mode_t.m4: Update.
3512 * gnulib/import/m4/msvc-inval.m4: Update.
3513 * gnulib/import/m4/msvc-nothrow.m4: Update.
3514 * gnulib/import/m4/multiarch.m4: Update.
3515 * gnulib/import/m4/nocrash.m4: Update.
3516 * gnulib/import/m4/off_t.m4: Update.
3517 * gnulib/import/m4/onceonly.m4: Update.
3518 * gnulib/import/m4/open-cloexec.m4: Update.
3519 * gnulib/import/m4/open.m4: Update.
3520 * gnulib/import/m4/openat.m4: Update.
3521 * gnulib/import/m4/opendir.m4: Update.
3522 * gnulib/import/m4/pathmax.m4: Update.
3523 * gnulib/import/m4/rawmemchr.m4: Update.
3524 * gnulib/import/m4/readdir.m4: Update.
3525 * gnulib/import/m4/readlink.m4: Update.
3526 * gnulib/import/m4/realloc.m4: Update.
3527 * gnulib/import/m4/rename.m4: Update.
3528 * gnulib/import/m4/rewinddir.m4: Update.
3529 * gnulib/import/m4/rmdir.m4: Update.
3530 * gnulib/import/m4/save-cwd.m4: Update.
3531 * gnulib/import/m4/secure_getenv.m4: Update.
3532 * gnulib/import/m4/setenv.m4: Update.
3533 * gnulib/import/m4/signal_h.m4: Update.
3534 * gnulib/import/m4/ssize_t.m4: Update.
3535 * gnulib/import/m4/stat-time.m4: Update.
3536 * gnulib/import/m4/stat.m4: Update.
3537 * gnulib/import/m4/std-gnu11.m4: Update.
3538 * gnulib/import/m4/stdbool.m4: Update.
3539 * gnulib/import/m4/stddef_h.m4: Update.
3540 * gnulib/import/m4/stdint.m4: Update.
3541 * gnulib/import/m4/stdio_h.m4: Update.
3542 * gnulib/import/m4/stdlib_h.m4: Update.
3543 * gnulib/import/m4/strchrnul.m4: Update.
3544 * gnulib/import/m4/strdup.m4: Update.
3545 * gnulib/import/m4/strerror.m4: Update.
3546 * gnulib/import/m4/string_h.m4: Update.
3547 * gnulib/import/m4/strstr.m4: Update.
3548 * gnulib/import/m4/strtok_r.m4: Update.
3549 * gnulib/import/m4/sys_socket_h.m4: Update.
3550 * gnulib/import/m4/sys_stat_h.m4: Update.
3551 * gnulib/import/m4/sys_time_h.m4: Update.
3552 * gnulib/import/m4/sys_types_h.m4: Update.
3553 * gnulib/import/m4/tempname.m4: Update.
3554 * gnulib/import/m4/time_h.m4: Update.
3555 * gnulib/import/m4/unistd-safer.m4: Update.
3556 * gnulib/import/m4/unistd_h.m4: Update.
3557 * gnulib/import/m4/warn-on-use.m4: Update.
3558 * gnulib/import/m4/wchar_h.m4: Update.
3559 * gnulib/import/m4/wchar_t.m4: Update.
3560 * gnulib/import/m4/wctype_h.m4: Update.
3561 * gnulib/import/m4/wint_t.m4: Update.
3562 * gnulib/import/malloc.c: Update.
3563 * gnulib/import/malloc/scratch_buffer.h: Update.
3564 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3565 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3566 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3567 * gnulib/import/malloca.c: Update.
3568 * gnulib/import/malloca.h: Update.
3569 * gnulib/import/malloca.valgrind: Update.
3570 * gnulib/import/math.in.h: Update.
3571 * gnulib/import/mbrtowc.c: Update.
3572 * gnulib/import/mbsinit.c: Update.
3573 * gnulib/import/mbsrtowcs-impl.h: Update.
3574 * gnulib/import/mbsrtowcs-state.c: Update.
3575 * gnulib/import/mbsrtowcs.c: Update.
3576 * gnulib/import/memchr.c: Update.
3577 * gnulib/import/memmem.c: Update.
3578 * gnulib/import/mempcpy.c: Update.
3579 * gnulib/import/memrchr.c: Update.
3580 * gnulib/import/mkdir.c: Update.
3581 * gnulib/import/mkstemp.c: Update.
3582 * gnulib/import/msvc-inval.c: Update.
3583 * gnulib/import/msvc-inval.h: Update.
3584 * gnulib/import/msvc-nothrow.c: Update.
3585 * gnulib/import/msvc-nothrow.h: Update.
3586 * gnulib/import/open.c: Update.
3587 * gnulib/import/openat-die.c: Update.
3588 * gnulib/import/openat-priv.h: Update.
3589 * gnulib/import/openat-proc.c: Update.
3590 * gnulib/import/openat.c: Update.
3591 * gnulib/import/openat.h: Update.
3592 * gnulib/import/opendir.c: Update.
3593 * gnulib/import/pathmax.h: Update.
3594 * gnulib/import/pipe-safer.c: Update.
3595 * gnulib/import/rawmemchr.c: Update.
3596 * gnulib/import/readdir.c: Update.
3597 * gnulib/import/readlink.c: Update.
3598 * gnulib/import/realloc.c: Update.
3599 * gnulib/import/ref-add.sin: Update.
3600 * gnulib/import/ref-del.sin: Update.
3601 * gnulib/import/rename.c: Update.
3602 * gnulib/import/rewinddir.c: Update.
3603 * gnulib/import/rmdir.c: Update.
3604 * gnulib/import/same-inode.h: Update.
3605 * gnulib/import/save-cwd.c: Update.
3606 * gnulib/import/save-cwd.h: Update.
3607 * gnulib/import/scratch_buffer.h: Update.
3608 * gnulib/import/secure_getenv.c: Update.
3609 * gnulib/import/setenv.c: Update.
3610 * gnulib/import/signal.in.h: Update.
3611 * gnulib/import/stat-time.c: Update.
3612 * gnulib/import/stat-time.h: Update.
3613 * gnulib/import/stat-w32.c: Update.
3614 * gnulib/import/stat-w32.h: Update.
3615 * gnulib/import/stat.c: Update.
3616 * gnulib/import/stdbool.in.h: Update.
3617 * gnulib/import/stddef.in.h: Update.
3618 * gnulib/import/stdint.in.h: Update.
3619 * gnulib/import/stdio.in.h: Update.
3620 * gnulib/import/stdlib.in.h: Update.
3621 * gnulib/import/str-two-way.h: Update.
3622 * gnulib/import/strchrnul.c: Update.
3623 * gnulib/import/strdup.c: Update.
3624 * gnulib/import/streq.h: Update.
3625 * gnulib/import/strerror-override.c: Update.
3626 * gnulib/import/strerror-override.h: Update.
3627 * gnulib/import/strerror.c: Update.
3628 * gnulib/import/string.in.h: Update.
3629 * gnulib/import/stripslash.c: Update.
3630 * gnulib/import/strnlen1.c: Update.
3631 * gnulib/import/strnlen1.h: Update.
3632 * gnulib/import/strstr.c: Update.
3633 * gnulib/import/strtok_r.c: Update.
3634 * gnulib/import/sys_stat.in.h: Update.
3635 * gnulib/import/sys_time.in.h: Update.
3636 * gnulib/import/sys_types.in.h: Update.
3637 * gnulib/import/tempname.c: Update.
3638 * gnulib/import/tempname.h: Update.
3639 * gnulib/import/time.in.h: Update.
3640 * gnulib/import/unistd--.h: Update.
3641 * gnulib/import/unistd-safer.h: Update.
3642 * gnulib/import/unistd.in.h: Update.
3643 * gnulib/import/unsetenv.c: Update.
3644 * gnulib/import/verify.h: Update.
3645 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3646 * gnulib/import/wchar.in.h: Update.
3647 * gnulib/import/wctype.in.h: Update.
3648 * gnulib/import/xalloc-oversized.h: Update.
3649 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3650 "53e2c179f26a890fa6685af4b6c1397ee370433b".
3651
8ec23583
SM
36522018-09-10 Simon Marchi <simon.marchi@ericsson.com>
3653
3654 * record-btrace.c (get_thread_current_frame): Remove
3655 old_inferior_ptid.
3656
1f5d1570
JG
36572018-09-10 Jerome Guitton <guitton@adacore.com>
3658
3659 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
3660 with check_tag to 1 if and only if the type is tagged and the
3661 component being searched cannot been found in the current
3662 view. Otherwise, always call ada_to_fixed_type with
3663 check_tag to 0.
3664
d91e9ea8
XR
36652018-09-10 Xavier Roirand <roirand@adacore.com>
3666
3667 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
3668 declaration.
3669 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
3670 * ada-varobj.c (ada_varobj_get_number_of_children,
3671 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
3672
cc330e39
XR
36732018-09-10 Xavier Roirand <roirand@adacore.com>
3674
3675 * ada-valprint.c (ada_value_print): Use type instead of
3676 enclosing type.
3677
b9c50e9a
XR
36782018-09-10 Xavier Roirand <roirand@adacore.com>
3679
3680 * ada-lang.c (ada_value_subscript): Handle case when parameter is
3681 an array of access to unconstrained array.
3682
736ade86
XR
36832018-09-10 Xavier Roirand <roirand@adacore.com>
3684
3685 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
3686 (ada_check_typedef): Use it.
3687
2963898f
XR
36882018-09-10 Xavier Roirand <roirand@adacore.com>
3689
3690 * ada-varobj.c (ada_varobj_describe_struct_child)
3691 (ada_varobj_describe_child): Handle union case like struct one.
3692
a154931e
TT
36932018-09-10 Tom Tromey <tom@tromey.com>
3694
3695 PR python/18380:
3696 * python/python.c (_initialize_python): Make example in "python"
3697 help work in Python 3.
3698
23c4651c
EZ
36992018-09-10 Eli Zaretskii <eliz@gnu.org>
3700
3701 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
3702 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
3703 $(EXEEXT) to the script, as it is not a program.
3704
a5c5eda7
SM
37052018-09-09 Simon Marchi <simon.marchi@ericsson.com>
3706
3707 * python/py-prettyprint.c (pretty_print_one_value): Return
3708 gdbpy_ref<>.
3709 (print_string_repr): Adjust.
3710 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
3711 * python/python-internal.h (apply_varobj_pretty_printer): Return
3712 gdbpy_ref<>.
3713 * varobj.c (varobj_value_get_print_value): Adjust.
3714
332cf4c9
TT
37152018-09-08 Tom Tromey <tom@tromey.com>
3716
3717 PR python/16047:
3718 * python/py-prettyprint.c (pretty_print_one_value): Check for
3719 to_string method.
3720
424da6cf
JB
37212018-09-08 Joel Brobecker <brobecker@adacore.com>
3722
3723 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
3724 replace_operator_with_call.
3725
95f39a5b
JB
37262018-09-08 Joel Brobecker <brobecker@adacore.com>
3727
3728 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
3729
16b9eb7b
JB
37302018-09-08 Joel Brobecker <brobecker@adacore.com>
3731
3732 * ada-typeprint.c (print_range): Print the bounds using TYPE
3733 rather than its TYPE_TARGET_TYPE.
3734
d8ce9127
JB
37352018-09-08 Joel Brobecker <brobecker@adacore.com>
3736
3737 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
3738 call to ada_to_fixed_value_create.
3739
0d81f350
JG
37402018-09-08 Jerome Guitton <guitton@adacore.com>
3741
3742 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
3743
57aff202
JB
37442018-09-08 Joel Brobecker <brobecker@adacore.com>
3745
3746 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
3747 by calls to error.
3748
fb44b1a7
JB
37492018-09-08 Joel Brobecker <brobecker@adacore.com>
3750
3751 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
3752 Move update of loop variable "fi".
3753
2a62dfa9
JB
37542018-09-08 Joel Brobecker <brobecker@adacore.com>
3755
3756 * ada-lang.c (value_assign_to_component): In the case of
3757 big-endian targets, extract the bits of the given VAL
3758 using an src_offset of zero if container is not a scalar.
3759
739ab2e9
SS
37602018-09-06 Simon Ser <contact@emersion.fr>
3761
3762 PR gdb/23105
3763 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
3764 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3765 * fbsd-tdep.c (fbsd_make_note_desc): New.
3766 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
3767 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
3768 * target.h (enum target_object) Add FreeBSD-specific
3769 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3770
d82b3862
SM
37712018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3772
3773 * compile/compile-c.h (generate_c_for_variable_locations):
3774 Change reference to pointer.
3775 * compile/compile-c-support.c (compile_program) <compute>:
3776 Likewise.
3777 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
3778 (generate_c_for_for_one_variable): Likewise
3779 (generate_c_for_variable_locations): Likewise
3780 * compile/compile-c-types.c (compile_c_instance::convert_type):
3781 Likewise
3782 * compile/compile-cplus-symbols.c (convert_one_symbol):
3783 std::move the scope passed to enter_scope.
3784 * compile/compile-cplus-types.c
3785 (compile_cplus_instance::enter_scope): Make parameter
3786 rvalue-reference.
3787 (compile_cplus_instance::new_scope): Change reference to
3788 pointer.
3789 (compile_cplus_instance::convert_type): Likewise
3790 (compile_cplus_convert_typedef): std::move the scope passed to
3791 enter_scope.
3792 (compile_cplus_convert_struct_or_union): Likewise.
3793 (compile_cplus_convert_enum): Likewise.
3794 (compile_cplus_convert_namespace): Likewise.
3795 * compile/compile-cplus.h (compile_cplus_instance)
3796 <enter_scope>: Make parameter rvalue-reference.
3797 * compile/compile-internal.h (compile_instance)
3798 <get_cached_type>: Likewise
3799 * compile/compile-loc2c.c (push): Likewise
3800 (pushf): Likewise
3801 (unary): Likewise
3802 (binary): Likewise
3803 (print_label): Likewise
3804 (pushf_register_address): Likewise
3805 (pushf_register): Likewise
3806 (do_compile_dwarf_expr_to_c): Likewise
3807 (compile_dwarf_expr_to_c): Likewise
3808 (compile_dwarf_bounds_to_c): Likewise
3809 * compile/compile.c (compile_instance::get_cached_type):
3810 Likewise
3811 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
3812 (compile_dwarf_bounds_to_c): Likewise
3813 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
3814 (dwarf2_compile_property_to_c): Likewise
3815 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
3816 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3817 Likewise
3818
cc5a5ae5
SM
38192018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3820
3821 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
3822 * tui/tui-data.c (init_content_element): Don't initialize it.
3823
137be540
SM
38242018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3825
3826 * tui/tui-data.h (struct tui_win_info)
3827 <detail::opaque>: Remove.
3828 * tui/tui-data.c (init_win_info): Remove assignment.
3829
f1628857
TT
38302018-09-05 Tom Tromey <tom@tromey.com>
3831
3832 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
3833 -Wformat-nonliteral.
3834 * target-float.c (host_float_ops<T>::to_string)
3835 (host_float_ops<T>::from_string): Use
3836 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3837 * configure: Rebuild.
3838
af39b1c2
SM
38392018-09-05 Simon Marchi <simon.marchi@ericsson.com>
3840
3841 * printcmd.c (printf_c_string): Use
3842 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3843 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
3844
081bca4d
TT
38452018-09-05 Tom Tromey <tom@tromey.com>
3846
3847 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
3848
e4a62c65
TV
38492018-09-05 Tom de Vries <tdevries@suse.de>
3850
3851 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
3852 with resolve_abstract_p == true.
3853 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
3854 defaulting to false. Propagate resolve_abstract_p to
3855 dwarf2_fetch_die_loc_sect_off.
3856 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
3857 parameter, defaulting to false.
3858 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
3859 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
3860 parameter.
3861 * dwarf2read.h (struct die_info): Forward-declare.
3862 (die_info_ptr): New typedef.
3863 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
3864
2b69821e
JB
38652018-09-05 Joel Brobecker <brobecker@adacore.com>
3866
3867 GDB 8.2 released.
3868
fcc9b044
SDJ
38692018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3870 Pedro Alves <palves@redhat.com>
3871
3872 * gnulib/Makefile.in (aclocal_m4_deps): Move to
3873 "aclocal-m4-deps.mk". Include file here.
3874 $(srcdir)/aclocal.m4: Add "configure.ac".
3875 * gnulib/aclocal-m4-deps.mk: New file.
3876 * gnulib/update-gnulib.sh: Automatically update
3877 "aclocal-m4-deps.mk".
3878
d53d5436
TT
38792018-09-04 Tom Tromey <tom@tromey.com>
3880
3881 * configure: Rebuild.
3882 * configure.ac: Remove multi-ice code.
3883
8dc9fd87
TT
38842018-09-04 Tom Tromey <tom@tromey.com>
3885
3886 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
3887 (ada-exp.o): Update.
3888
3322c5d9
TT
38892018-09-04 Tom Tromey <tom@tromey.com>
3890
3891 * Makefile.in (printcmd.o, target-float.o): Remove.
3892 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
3893
ba2bf2aa
TT
38942018-09-04 Tom Tromey <tom@tromey.com>
3895
3896 * gnulib/Makefile.in: Remove obsolete comment.
3897 * Makefile.in: Remove obsolete comment.
3898
6c9d681b
AB
38992018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3900
3901 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
3902 line with '+'.
3903
78a3b0fa
AB
39042018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3905
3906 * riscv-tdep.c: Add 'prologue-value.h' include.
3907 (struct riscv_unwind_cache): New struct.
3908 (riscv_debug_unwinder): New global.
3909 (riscv_scan_prologue): Update arguments, capture register details
3910 from prologue scan.
3911 (riscv_skip_prologue): Reformat arguments line, move end of
3912 prologue calculation into riscv_scan_prologue.
3913 (riscv_frame_cache): Update return type, create
3914 riscv_unwind_cache, scan the prologue, and fill in remaining cache
3915 details.
3916 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
3917 (riscv_frame_prev_register): Use the trad_frame within the
3918 riscv_unwind_cache.
3919 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
3920 flag.
3921
23e60e7a
AB
39222018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3923
3924 * trad-frame.h (trad_frame_set_realreg): Declare.
3925 (trad_frame_set_addr): Declare.
3926 * trad-frame.c (trad_frame_set_realreg): Define new function.
3927 (trad_frame_set_addr): Define new function.
3928 (trad_frame_set_reg_realreg): Use new function.
3929 (trad_frame_set_reg_addr): Use new function.
3930
5c889512
KS
39312018-09-01 Keith Seitz <keiths@redhat.com>
3932
3933 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
3934 pulongest instead of "%lld".
3935 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
3936 ATTRIBUTE_UNUSED.
3937
c8c81635
TT
39382018-08-31 Tom Tromey <tom@tromey.com>
3939
3940 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
3941 variant part type.
3942
0c888588
PA
39432018-08-31 Pedro Alves <palves@redhat.com>
3944
3945 * gdbarch.h: Regenerate.
3946
7ea65f08
PA
39472018-08-31 Pedro Alves <palves@redhat.com>
3948
3949 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
3950 * target.h (Hardware watchpoint interfaces): Describe
3951 continuable/steppable/non-steppable watchpoints.
3952 * gdbarch.h, gdbarch.c: Regenerate.
3953
7eb65faf
PA
39542018-08-31 Pedro Alves <palves@redhat.com>
3955
3956 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
3957 Delete.
3958 * s390-linux-nat.c
3959 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
3960 * target.h (target_ops::have_continuable_watchpoint): Delete.
3961 (target_have_continuable_watchpoint): Delete.
3962 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
3963 * target-delegates.c: Regenerate.
3964
dab999b1
SDJ
39652018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3966
3967 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
3968 the files present in "gnulib/import/m4/".
3969
ff3a05b3
AB
39702018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
3971
3972 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
3973 c.sw, c.swsp, and c.sdsp.
3974
0b3f9efc
AB
39752018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
3976
3977 * riscv-tdep.c (struct riscv_inferior_data): Delete.
3978 (riscv_read_misa_reg): Don't cache value read into inferior data.
3979 (riscv_new_inferior_data): Delete.
3980 (riscv_inferior_data_cleanup): Delete.
3981 (riscv_inferior_data): Delete.
3982 (riscv_invalidate_inferior_data): Delete.
3983 (_initialize_riscv_tdep): Remove initialisation of inferior data.
3984
a0dc02a6
SM
39852018-08-30 Simon Marchi <simon.marchi@ericsson.com>
3986
3987 * compile/compile-cplus-types.c
3988 (compile_cplus_instance::leave_scope): Take the address of scope
3989 object.
3990 (compile_cplus_instance::convert_qualified_base): Compare quals
3991 to 0.
3992
fdad7678
KS
39932018-08-30 Keith Seitz <keiths@redhat.com>
3994
3995 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
3996 Use "%s" and host_address_to_string instead of "%p" in printf.
3997
078a0207
KS
39982018-08-29 Keith Seitz <keiths@redhat.com>
3999
4000 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
4001 and compile-cplus-types.c.
4002 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
4003 * c-lang.c (cplus_language_defn): Set C++ compile functions.
4004 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
4005 Declare.
4006 * compile/compile-c-support.c: Include compile-cplus.h.
4007 (load_libcompile): Templatize.
4008 (get_compile_context): "New" function.
4009 (c_get_compile_context): Use get_compile_context.
4010 (cplus_get_compile_context): New function.
4011 (cplus_push_user_expression, cplus_pop_user_expression)
4012 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
4013 (cplus_compute_program): Define new structs/functions.
4014 * compile/compile-cplus-symmbols.c: New file.
4015 * compile/compile-cplus-types.c: New file.
4016 * compile/compile-cplus.h: New file.
4017 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
4018 Declare.
4019 * compile/compile-object-load.c (get_out_value_type): Use
4020 strncmp_iw when comparing symbol names.
4021 (compile_object_load): Add mst_bss and mst_data.
4022 * compile/compile.c (_initialize_compile): Remove
4023 -Wno-implicit-function-declaration from `compile_args'.
4024 * compile/gcc-cp-plugin.h: New file.
4025 * NEWS: Mention C++ compile support and new debug options.
4026
fcaad03c
KS
40272018-08-29 Keith Seitz <keiths@redhat.com>
4028
4029 * linespec.c (collect_info::add_symbol): Make virtual.
4030 (struct symbol_searcher_collect_info): New struct.
4031 (symbol_searcher::find_all_symbols): New method.
4032 * symtab.h (class symbol_searcher): New class.
4033
7e41c8db
KS
40342018-08-29 Keith Seitz <keiths@redhat.com>
4035
4036 * linespec.c (struct linespec) <function_symbols, label_symbols>:
4037 Change to vector of block_symbol. Update all users.
4038 (struct collect_info) <symbols>: Likewise.
4039 (collect_info::add_symbol): Take block_symbol as argument.
4040 Update all callers.
4041 (decode_compound_collector) <m_symbols>: Change type to vector
4042 of block_symbol. Update all users.
4043 (decode_compound_collector::operator ()): Change parameter type
4044 to block_symbol.
4045 (find_method, find_function_symbols, find_linespec_symbols)
4046 (find_label_symbols_in_block, find_label_symbols): Change symbol
4047 vectors to block_symbol vectors.
4048 * symtab.h (symbol_found_callback_ftype): Change parameter type to
4049 block_symbol.
4050
63e8c3da
KS
40512018-08-29 Keith Seitz <keiths@redhat.com>
4052
4053 * linespec.c (symbolp): Remove typedef and VEC definitions.
4054 (bound_minimal_symbol_d): Likewise.
4055
4dedf84d
KS
40562018-08-29 Keith Seitz <keiths@redhat.com>
4057
4058 * linespec.c (decode_compound_collector::decode_compound_collector):
4059 Remove initialization for `m_symtabs'.
4060 (decode_compound_collector::release_symbols): Change return type
4061 to std::vector. Update all callers.
4062 (class decode_compound_collector) <m_symbols>: Change type to
4063 std::vector.
4064 (lookup_prefix_sym): Change return type to std::vector. Update all
4065 callers.
4066 (compare_symbols): Remove.
4067 (std_compare_symbols): Rename to `compare_symbols'.
4068 (find_method): Change `sym_classes' parameter to std::vector.
4069 Update all callers. Use std::sort to sort sym_classes.
4070 (find_linespec_symbols): Remove cleanup.
4071
c2a031c5
KS
40722018-08-29 Keith Seitz <keiths@redhat.com>
4073
4074 * linespec.c (struct linespec) <minimal_symbols>: Change type to
4075 std::vector. Update all users.
4076 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
4077 (struct collect_info) <minimal_symbols>: Likewise.
4078 (compare_msymbols): Return bool. Change parameters to const
4079 bound_minimal_symbol references.
4080 (find_method, find_function_symbols, find_linespec_symbols): Change
4081 `minsyms' parameter to std::vector. Update all callers.
4082
3553eadc
KS
40832018-08-29 Keith Seitz <keiths@redhat.com>
4084
4085 * linespec.c (struct linespec) <label_symbols>: Change type to
4086 std::vector. Update all users.
4087 (find_label_symbols_in_block): Change `result' parameter to
4088 std::vector. Update all callers.
4089 (find_label_symbols): Return std::vector. Update all callers.
4090
7243d011
KS
40912018-08-29 Keith Seitz <keiths@redhat.com>
4092
4093 * linespec.c (struct linespec) <function_symbols>: Change type to
4094 std::vector. Update all users.
4095 (struct collect_info) <function_symbols>: Likewise.
4096 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
4097 (std_compare_symbols): New function.
4098 (find_method, find_function_symbols, find_linespec_symbols)
4099 (find_label_symbols_in_block): Change `symbols' parameter to
4100 std::vector. Update all callers.
4101 (find_label_symbols): Likewise for `function_symbols' and
4102 `label_funcs_ret'.
4103
2a908241
KS
41042018-08-29 Keith Seitz <keiths@redhat.com>
4105
4106 * linespec.c (symtab_vector_up): Define.
4107 (struct linespec) <file_symtabs>: Change type to std::vector *.
4108 Update all uses.
4109 (struct collect_info) <file_symtabs>: Likewise.
4110 (collect_symtabs_from_filename): Return symtab_vector_up.
4111 Update all callers.
4112 (decode_objc): Remove cleanup.
4113 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
4114 (symtab_collector::release_symtabs): Return symtab_vector_up.
4115 Update all callers.
4116 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
4117 Update all users.
4118 (collect_symtabs_from_filename, symtabs_from_filename): Return
4119 symtab_vector_up. Update all callers.
4120
f6c4e3e8
TT
41212018-08-29 Tom Tromey <tom@tromey.com>
4122
4123 * csky-tdep.c (csky_analyze_prologue): Use
4124 core_addr_to_string_nz.
4125
73c13fe6
TT
41262018-08-29 Tom Tromey <tom@tromey.com>
4127
4128 * windows-nat.c (struct xlate_exception) <them>: Change type to
4129 DWORD.
4130 (xlate): Fix formatting. Remove last entry.
4131 (struct xlate_exception, xlate): Comment out.
4132 (windows_nat_target::resume): Use ranged for.
4133
4d3928d7
JW
41342018-08-29 Jim Wilson <jimw@sifive.com>
4135
4136 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
4137 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
4138 of NT_PRFPREG.
4139 (riscv_linux_nat_target::store_registers): Likewise.
4140
7a6dbc2f
SDJ
41412018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
4142
4143 PR gdb/23555
4144 PR gdb/23558
4145 * gnulib/aclocal.m4: Regenerate.
4146 * gnulib/config.in: Regenerate.
4147 * gnulib/configure: Regenerate.
4148 * gnulib/import/Makefile.am: Update.
4149 * gnulib/import/Makefile.in: Update.
4150 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
4151 * gnulib/import/_Noreturn.h: ... this.
4152 * gnulib/import/alloca.in.h: Update.
4153 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
4154 * gnulib/import/arg-nonnull.h: ... this.
4155 * gnulib/import/assure.h: Update.
4156 * gnulib/import/at-func.c: Update.
4157 * gnulib/import/basename-lgpl.c: Update.
4158 * gnulib/import/extra/snippet/c++defs.h: Rename to...
4159 * gnulib/import/c++defs.h: ... this.
4160 * gnulib/import/canonicalize-lgpl.c: Update.
4161 * gnulib/import/cdefs.h: Update.
4162 * gnulib/import/chdir-long.c: Update.
4163 * gnulib/import/chdir-long.h: Update.
4164 * gnulib/import/cloexec.c: Update.
4165 * gnulib/import/cloexec.h: Update.
4166 * gnulib/import/close.c: Update.
4167 * gnulib/import/closedir.c: Update.
4168 * gnulib/import/config.charset: Update.
4169 * gnulib/import/dirent-private.h: Update.
4170 * gnulib/import/dirent.in.h: Update.
4171 * gnulib/import/dirfd.c: Update.
4172 * gnulib/import/dirname-lgpl.c: Update.
4173 * gnulib/import/dirname.h: Update.
4174 * gnulib/import/dosname.h: Update.
4175 * gnulib/import/dup-safer-flag.c: Update.
4176 * gnulib/import/dup-safer.c: Update.
4177 * gnulib/import/dup.c: Update.
4178 * gnulib/import/dup2.c: Update.
4179 * gnulib/import/errno.in.h: Update.
4180 * gnulib/import/error.c: Update.
4181 * gnulib/import/error.h: Update.
4182 * gnulib/import/exitfail.c: Update.
4183 * gnulib/import/exitfail.h: Update.
4184 * gnulib/import/extra/update-copyright: Update.
4185 * gnulib/import/fchdir.c: Update.
4186 * gnulib/import/fcntl.c: Update.
4187 * gnulib/import/fcntl.in.h: Update.
4188 * gnulib/import/fd-hook.c: Update.
4189 * gnulib/import/fd-hook.h: Update.
4190 * gnulib/import/fd-safer-flag.c: Update.
4191 * gnulib/import/fd-safer.c: Update.
4192 * gnulib/import/fdopendir.c: Update.
4193 * gnulib/import/filename.h: Update.
4194 * gnulib/import/filenamecat-lgpl.c: Update.
4195 * gnulib/import/filenamecat.h: Update.
4196 * gnulib/import/flexmember.h: Update.
4197 * gnulib/import/float+.h: Update.
4198 * gnulib/import/float.c: Update.
4199 * gnulib/import/float.in.h: Update.
4200 * gnulib/import/fnmatch.c: Update.
4201 * gnulib/import/fnmatch.in.h: Update.
4202 * gnulib/import/fnmatch_loop.c: Update.
4203 * gnulib/import/fpucw.h: Update.
4204 * gnulib/import/frexp.c: Update.
4205 * gnulib/import/frexpl.c: Update.
4206 * gnulib/import/fstat.c: Update.
4207 * gnulib/import/fstatat.c: Update.
4208 * gnulib/import/getcwd-lgpl.c: Update.
4209 * gnulib/import/getcwd.c: Update.
4210 * gnulib/import/getdtablesize.c: Update.
4211 * gnulib/import/getlogin_r.c: Update.
4212 * gnulib/import/getprogname.c: Update.
4213 * gnulib/import/getprogname.h: Update.
4214 * gnulib/import/gettext.h: Update.
4215 * gnulib/import/gettimeofday.c: Update.
4216 * gnulib/import/glob-libc.h: Update.
4217 * gnulib/import/glob.c: Update.
4218 * gnulib/import/glob.in.h: Update.
4219 * gnulib/import/glob_internal.h: Update.
4220 * gnulib/import/glob_pattern_p.c: Update.
4221 * gnulib/import/globfree.c: Update.
4222 * gnulib/import/hard-locale.c: Update.
4223 * gnulib/import/hard-locale.h: Update.
4224 * gnulib/import/intprops.h: Update.
4225 * gnulib/import/inttypes.in.h: Update.
4226 * gnulib/import/isnan.c: Update.
4227 * gnulib/import/isnand-nolibm.h: Update.
4228 * gnulib/import/isnand.c: Update.
4229 * gnulib/import/isnanl-nolibm.h: Update.
4230 * gnulib/import/isnanl.c: Update.
4231 * gnulib/import/itold.c: Update.
4232 * gnulib/import/libc-config.h: Update.
4233 * gnulib/import/limits.in.h: Update.
4234 * gnulib/import/localcharset.c: Update.
4235 * gnulib/import/localcharset.h: Update.
4236 * gnulib/import/localtime-buffer.c: Update.
4237 * gnulib/import/localtime-buffer.h: Update.
4238 * gnulib/import/lstat.c: Update.
4239 * gnulib/import/m4/00gnulib.m4: Update.
4240 * gnulib/import/m4/__inline.m4: Update.
4241 * gnulib/import/m4/absolute-header.m4: Update.
4242 * gnulib/import/m4/alloca.m4: Update.
4243 * gnulib/import/m4/builtin-expect.m4: Update.
4244 * gnulib/import/m4/canonicalize.m4: Update.
4245 * gnulib/import/m4/chdir-long.m4: Update.
4246 * gnulib/import/m4/close.m4: Update.
4247 * gnulib/import/m4/closedir.m4: Update.
4248 * gnulib/import/m4/configmake.m4: Update.
4249 * gnulib/import/m4/d-ino.m4: Update.
4250 * gnulib/import/m4/d-type.m4: Update.
4251 * gnulib/import/m4/dirent_h.m4: Update.
4252 * gnulib/import/m4/dirfd.m4: Update.
4253 * gnulib/import/m4/dirname.m4: Update.
4254 * gnulib/import/m4/double-slash-root.m4: Update.
4255 * gnulib/import/m4/dup.m4: Update.
4256 * gnulib/import/m4/dup2.m4: Update.
4257 * gnulib/import/m4/eealloc.m4: Update.
4258 * gnulib/import/m4/environ.m4: Update.
4259 * gnulib/import/m4/errno_h.m4: Update.
4260 * gnulib/import/m4/error.m4: Update.
4261 * gnulib/import/m4/exponentd.m4: Update.
4262 * gnulib/import/m4/exponentl.m4: Update.
4263 * gnulib/import/m4/extensions.m4: Update.
4264 * gnulib/import/m4/extern-inline.m4: Update.
4265 * gnulib/import/m4/fchdir.m4: Update.
4266 * gnulib/import/m4/fcntl-o.m4: Update.
4267 * gnulib/import/m4/fcntl.m4: Update.
4268 * gnulib/import/m4/fcntl_h.m4: Update.
4269 * gnulib/import/m4/fdopendir.m4: Update.
4270 * gnulib/import/m4/filenamecat.m4: Update.
4271 * gnulib/import/m4/flexmember.m4: Update.
4272 * gnulib/import/m4/float_h.m4: Update.
4273 * gnulib/import/m4/fnmatch.m4: Update.
4274 * gnulib/import/m4/fnmatch_h.m4: Update.
4275 * gnulib/import/m4/fpieee.m4: Update.
4276 * gnulib/import/m4/frexp.m4: Update.
4277 * gnulib/import/m4/frexpl.m4: Update.
4278 * gnulib/import/m4/fstat.m4: Update.
4279 * gnulib/import/m4/fstatat.m4: Update.
4280 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
4281 * gnulib/import/m4/getcwd-path-max.m4: Update.
4282 * gnulib/import/m4/getcwd.m4: Update.
4283 * gnulib/import/m4/getdtablesize.m4: Update.
4284 * gnulib/import/m4/getlogin.m4: Update.
4285 * gnulib/import/m4/getlogin_r.m4: Update.
4286 * gnulib/import/m4/getpagesize.m4: Update.
4287 * gnulib/import/m4/getprogname.m4: Update.
4288 * gnulib/import/m4/gettimeofday.m4: Update.
4289 * gnulib/import/m4/glibc21.m4: Update.
4290 * gnulib/import/m4/glob.m4: Update.
4291 * gnulib/import/m4/glob_h.m4: Update.
4292 * gnulib/import/m4/gnulib-cache.m4: Update.
4293 * gnulib/import/m4/gnulib-common.m4: Update.
4294 * gnulib/import/m4/gnulib-comp.m4: Update.
4295 * gnulib/import/m4/gnulib-tool.m4: Update.
4296 * gnulib/import/m4/hard-locale.m4: Update.
4297 * gnulib/import/m4/include_next.m4: Update.
4298 * gnulib/import/m4/inttypes-pri.m4: Update.
4299 * gnulib/import/m4/inttypes.m4: Update.
4300 * gnulib/import/m4/isnand.m4: Update.
4301 * gnulib/import/m4/isnanl.m4: Update.
4302 * gnulib/import/m4/largefile.m4: Update.
4303 * gnulib/import/m4/limits-h.m4: Update.
4304 * gnulib/import/m4/localcharset.m4: Update.
4305 * gnulib/import/m4/locale-fr.m4: Update.
4306 * gnulib/import/m4/locale-ja.m4: Update.
4307 * gnulib/import/m4/locale-zh.m4: Update.
4308 * gnulib/import/m4/localtime-buffer.m4: Update.
4309 * gnulib/import/m4/longlong.m4: Update.
4310 * gnulib/import/m4/lstat.m4: Update.
4311 * gnulib/import/m4/malloc.m4: Update.
4312 * gnulib/import/m4/malloca.m4: Update.
4313 * gnulib/import/m4/math_h.m4: Update.
4314 * gnulib/import/m4/mbrtowc.m4: Update.
4315 * gnulib/import/m4/mbsinit.m4: Update.
4316 * gnulib/import/m4/mbsrtowcs.m4: Update.
4317 * gnulib/import/m4/mbstate_t.m4: Update.
4318 * gnulib/import/m4/memchr.m4: Update.
4319 * gnulib/import/m4/memmem.m4: Update.
4320 * gnulib/import/m4/mempcpy.m4: Update.
4321 * gnulib/import/m4/memrchr.m4: Update.
4322 * gnulib/import/m4/mkdir.m4: Update.
4323 * gnulib/import/m4/mkstemp.m4: Update.
4324 * gnulib/import/m4/mmap-anon.m4: Update.
4325 * gnulib/import/m4/mode_t.m4: Update.
4326 * gnulib/import/m4/msvc-inval.m4: Update.
4327 * gnulib/import/m4/msvc-nothrow.m4: Update.
4328 * gnulib/import/m4/multiarch.m4: Update.
4329 * gnulib/import/m4/nocrash.m4: Update.
4330 * gnulib/import/m4/off_t.m4: Update.
4331 * gnulib/import/m4/onceonly.m4: Update.
4332 * gnulib/import/m4/open-cloexec.m4: Update.
4333 * gnulib/import/m4/open.m4: Update.
4334 * gnulib/import/m4/openat.m4: Update.
4335 * gnulib/import/m4/opendir.m4: Update.
4336 * gnulib/import/m4/pathmax.m4: Update.
4337 * gnulib/import/m4/rawmemchr.m4: Update.
4338 * gnulib/import/m4/readdir.m4: Update.
4339 * gnulib/import/m4/readlink.m4: Update.
4340 * gnulib/import/m4/realloc.m4: Update.
4341 * gnulib/import/m4/rename.m4: Update.
4342 * gnulib/import/m4/rewinddir.m4: Update.
4343 * gnulib/import/m4/rmdir.m4: Update.
4344 * gnulib/import/m4/save-cwd.m4: Update.
4345 * gnulib/import/m4/secure_getenv.m4: Update.
4346 * gnulib/import/m4/setenv.m4: Update.
4347 * gnulib/import/m4/signal_h.m4: Update.
4348 * gnulib/import/m4/ssize_t.m4: Update.
4349 * gnulib/import/m4/stat-time.m4: Update.
4350 * gnulib/import/m4/stat.m4: Update.
4351 * gnulib/import/m4/std-gnu11.m4: Update.
4352 * gnulib/import/m4/stdbool.m4: Update.
4353 * gnulib/import/m4/stddef_h.m4: Update.
4354 * gnulib/import/m4/stdint.m4: Update.
4355 * gnulib/import/m4/stdio_h.m4: Update.
4356 * gnulib/import/m4/stdlib_h.m4: Update.
4357 * gnulib/import/m4/strchrnul.m4: Update.
4358 * gnulib/import/m4/strdup.m4: Update.
4359 * gnulib/import/m4/strerror.m4: Update.
4360 * gnulib/import/m4/string_h.m4: Update.
4361 * gnulib/import/m4/strstr.m4: Update.
4362 * gnulib/import/m4/strtok_r.m4: Update.
4363 * gnulib/import/m4/sys_socket_h.m4: Update.
4364 * gnulib/import/m4/sys_stat_h.m4: Update.
4365 * gnulib/import/m4/sys_time_h.m4: Update.
4366 * gnulib/import/m4/sys_types_h.m4: Update.
4367 * gnulib/import/m4/tempname.m4: Update.
4368 * gnulib/import/m4/time_h.m4: Update.
4369 * gnulib/import/m4/unistd-safer.m4: Update.
4370 * gnulib/import/m4/unistd_h.m4: Update.
4371 * gnulib/import/m4/warn-on-use.m4: Update.
4372 * gnulib/import/m4/wchar_h.m4: Update.
4373 * gnulib/import/m4/wchar_t.m4: Update.
4374 * gnulib/import/m4/wctype_h.m4: Update.
4375 * gnulib/import/m4/wint_t.m4: Update.
4376 * gnulib/import/malloc.c: Update.
4377 * gnulib/import/malloc/scratch_buffer.h: Update.
4378 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
4379 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
4380 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
4381 * gnulib/import/malloca.c: Update.
4382 * gnulib/import/malloca.h: Update.
4383 * gnulib/import/malloca.valgrind: Update.
4384 * gnulib/import/math.in.h: Update.
4385 * gnulib/import/mbrtowc.c: Update.
4386 * gnulib/import/mbsinit.c: Update.
4387 * gnulib/import/mbsrtowcs-impl.h: Update.
4388 * gnulib/import/mbsrtowcs-state.c: Update.
4389 * gnulib/import/mbsrtowcs.c: Update.
4390 * gnulib/import/memchr.c: Update.
4391 * gnulib/import/memmem.c: Update.
4392 * gnulib/import/mempcpy.c: Update.
4393 * gnulib/import/memrchr.c: Update.
4394 * gnulib/import/mkdir.c: Update.
4395 * gnulib/import/mkstemp.c: Update.
4396 * gnulib/import/msvc-inval.c: Update.
4397 * gnulib/import/msvc-inval.h: Update.
4398 * gnulib/import/msvc-nothrow.c: Update.
4399 * gnulib/import/msvc-nothrow.h: Update.
4400 * gnulib/import/open.c: Update.
4401 * gnulib/import/openat-die.c: Update.
4402 * gnulib/import/openat-priv.h: Update.
4403 * gnulib/import/openat-proc.c: Update.
4404 * gnulib/import/openat.c: Update.
4405 * gnulib/import/openat.h: Update.
4406 * gnulib/import/opendir.c: Update.
4407 * gnulib/import/pathmax.h: Update.
4408 * gnulib/import/pipe-safer.c: Update.
4409 * gnulib/import/rawmemchr.c: Update.
4410 * gnulib/import/readdir.c: Update.
4411 * gnulib/import/readlink.c: Update.
4412 * gnulib/import/realloc.c: Update.
4413 * gnulib/import/ref-add.sin: Update.
4414 * gnulib/import/ref-del.sin: Update.
4415 * gnulib/import/rename.c: Update.
4416 * gnulib/import/rewinddir.c: Update.
4417 * gnulib/import/rmdir.c: Update.
4418 * gnulib/import/same-inode.h: Update.
4419 * gnulib/import/save-cwd.c: Update.
4420 * gnulib/import/save-cwd.h: Update.
4421 * gnulib/import/scratch_buffer.h: Update.
4422 * gnulib/import/secure_getenv.c: Update.
4423 * gnulib/import/setenv.c: Update.
4424 * gnulib/import/signal.in.h: Update.
4425 * gnulib/import/stat-time.c: Update.
4426 * gnulib/import/stat-time.h: Update.
4427 * gnulib/import/stat-w32.c: Update.
4428 * gnulib/import/stat-w32.h: Update.
4429 * gnulib/import/stat.c: Update.
4430 * gnulib/import/stdbool.in.h: Update.
4431 * gnulib/import/stddef.in.h: Update.
4432 * gnulib/import/stdint.in.h: Update.
4433 * gnulib/import/stdio.in.h: Update.
4434 * gnulib/import/stdlib.in.h: Update.
4435 * gnulib/import/str-two-way.h: Update.
4436 * gnulib/import/strchrnul.c: Update.
4437 * gnulib/import/strdup.c: Update.
4438 * gnulib/import/streq.h: Update.
4439 * gnulib/import/strerror-override.c: Update.
4440 * gnulib/import/strerror-override.h: Update.
4441 * gnulib/import/strerror.c: Update.
4442 * gnulib/import/string.in.h: Update.
4443 * gnulib/import/stripslash.c: Update.
4444 * gnulib/import/strnlen1.c: Update.
4445 * gnulib/import/strnlen1.h: Update.
4446 * gnulib/import/strstr.c: Update.
4447 * gnulib/import/strtok_r.c: Update.
4448 * gnulib/import/sys_stat.in.h: Update.
4449 * gnulib/import/sys_time.in.h: Update.
4450 * gnulib/import/sys_types.in.h: Update.
4451 * gnulib/import/tempname.c: Update.
4452 * gnulib/import/tempname.h: Update.
4453 * gnulib/import/time.in.h: Update.
4454 * gnulib/import/unistd--.h: Update.
4455 * gnulib/import/unistd-safer.h: Update.
4456 * gnulib/import/unistd.in.h: Update.
4457 * gnulib/import/unsetenv.c: Update.
4458 * gnulib/import/verify.h: Update.
4459 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4460 * gnulib/import/wchar.in.h: Update.
4461 * gnulib/import/wctype.in.h: Update.
4462 * gnulib/import/xalloc-oversized.h: Update.
4463 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4464 "53e2c179f26a890fa6685af4b6c1397ee370433b".
4465
b0f492b9
GB
44662018-08-16 Gary Benson <gbenson@redhat.com>
4467
4468 PR gdb/13000:
4469 * gdb/main.c (captured_main_1): Exit with nonzero status
4470 in batch mode if the last command to be executed failed.
4471 * NEWS: Mention the above.
4472
2362e7f7
SM
44732018-08-29 Simon Marchi <simon.marchi@ericsson.com>
4474
4475 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
4476 end of warning message.
4477
4f4aedeb
AH
44782018-08-29 Alan Hayward <alan.hayward@arm.com>
4479
4480 PR gdb/22943:
4481 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
4482 (aarch64_extract_return_value): Use
4483 aapcs_is_vfp_call_or_return_candidate.
4484 (aarch64_return_in_memory): Likewise.
4485 (aarch64_store_return_value): Likewise.
4486
0e745c60
AH
44872018-08-29 Alan Hayward <alan.hayward@arm.com>
4488
4489 * aarch64-tdep.c
4490 (aapcs_is_vfp_call_or_return_candidate): Make static
4491 (pass_in_v_or_stack): Remove function.
4492 (pass_in_v_vfp_candidate): New function.
4493 (aarch64_push_dummy_call): Check for float register candidates.
4494
ea92689a
AH
44952018-08-29 Alan Hayward <alan.hayward@arm.com>
4496
4497 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
4498 (aapcs_is_vfp_call_or_return_candidate_1): New function.
4499 (aapcs_is_vfp_call_or_return_candidate): Likewise.
4500
ad202fcc
SM
45012018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4502
4503 PR build/23399
4504 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
4505 (struct ipa_sym_addresses): Rename to...
4506 (struct ipa_sym_addresses_common): ... this.
4507 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
4508
5fe3f3e4
TT
45092018-08-28 Tom Tromey <tom@tromey.com>
4510
4511 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4512 (token_fifo): Now a std::vector.
4513 (yylex, c_parse): Update.
4514 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4515 (token_fifo): Now a std::vector.
4516 (yylex, d_parse): Update.
4517 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4518 (token_fifo): Now a std::vector.
4519 (yylex, go_parse): Update.
4520
858d8004
SM
45212018-08-28 Simon Marchi <simon.marchi@ericsson.com>
4522
4523 * parser-defs.h (struct type_stack) <elements>: Change type to
4524 std::vector<union type_stack_elt>.
4525 <depth, size>: Remove.
4526 * parse.c (parse_exp_in_context_1): Adjust.
4527 (type_stack_reserve): Remove.
4528 (check_type_stack_depth): Remove.
4529 (insert_into_type_stack): Adjust to std::vector.
4530 (insert_type): Likewise.
4531 (push_type): Likewise.
4532 (push_type_int): Likewise.
4533 (insert_type_address_space): Likewise.
4534 (pop_type): Likewise.
4535 (pop_type_int): Likewise.
4536 (pop_typelist): Likewise.
4537 (pop_type_stack): Likewise.
4538 (append_type_stack): Likewise.
4539 (push_type_stack): Likewise.
4540 (get_type_stack): Likewise.
4541 (type_stack_cleanup): Likewise.
4542 (push_typelist): Likewise.
4543 (follow_types): Likewise.
4544 (_initialize_parse): Likewise.
4545
416a69af
HAQ
45462018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
4547
4548 * NEWS: Mention csky target.
4549
9d24df82
HAQ
45502018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
4551 Hafiz Abid Qadeer <abidh@codesourcery.com>
4552 Don Breazeal <donb@codesourcery.com>
4553
4554 * csky-linux-tdep.c: New file.
4555 * csky-tdep.c: Likewise.
4556 * csky-tdep.h: Likewise.
4557 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
4558 csky-tdep.o.
4559 (HFILES_NO_SRCDIR): Add csky-tdep.h.
4560 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
4561 * configure.tgt: Add csky support.
4562
3bf9c013
JV
45632018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
4564
4565 * python/py-framefilter.c (py_print_frame): Print frame architecture
4566 when printing on an MI output.
4567
d3d8724a
TT
45682018-08-27 Tom Tromey <tom@tromey.com>
4569
4570 PR build/23087:
4571 * configure: Rebuild.
4572 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
4573
1885053b
TT
45742018-08-27 Tom Tromey <tom@tromey.com>
4575
4576 * aarch64-linux-tdep.c
4577 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
4578 casts to int.
4579
8406672e
TT
45802018-08-27 Tom Tromey <tom@tromey.com>
4581
4582 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
4583 unsigned.
4584 (ppc64_standard_linkage1, ppc64_standard_linkage2)
4585 (ppc64_standard_linkage3, ppc64_standard_linkage4)
4586 (ppc64_standard_linkage5, ppc64_standard_linkage6)
4587 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
4588 unsigned.
4589
ec40cf90
TT
45902018-08-27 Tom Tromey <tom@tromey.com>
4591
4592 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
4593 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
4594
7bc02706
TT
45952018-08-27 Tom Tromey <tom@tromey.com>
4596
4597 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
4598 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
4599 ULONGEST_MAX.
4600 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
4601 ULONGEST_MAX.
4602 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
4603 ULONGEST_MAX.
4604 * sparc-linux-tdep.c (sparc32_linux_sigframe)
4605 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
4606 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
4607 ULONGEST_MAX.
4608 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
4609 (ppc64_linux_sigaction_tramp_frame)
4610 (ppc32_linux_sighandler_tramp_frame)
4611 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4612 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
4613 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
4614 * mn10300-linux-tdep.c (am33_linux_sigframe)
4615 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
4616 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
4617 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4618 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4619 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
4620 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
4621 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
4622 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
4623 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
4624 * microblaze-linux-tdep.c
4625 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4626 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
4627 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
4628 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
4629 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
4630 * common/common-types.h (ULONGEST_MAX): New define.
4631 (CORE_ADDR_MAX): Fix formatting.
4632 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
4633 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
4634 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
4635 (arm_linux_rt_sigreturn_tramp_frame)
4636 (arm_eabi_linux_sigreturn_tramp_frame)
4637 (arm_eabi_linux_rt_sigreturn_tramp_frame)
4638 (thumb2_eabi_linux_sigreturn_tramp_frame)
4639 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
4640 (arm_linux_restart_syscall_tramp_frame)
4641 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
4642 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
4643 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
4644 ULONGEST_MAX.
4645 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
4646
70ab8ccd
TT
46472018-08-27 Tom Tromey <tom@tromey.com>
4648
4649 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
4650 CORE_ADDR_MAX.
4651 * mips-tdep.c (mips_deal_with_atomic_sequence)
4652 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
4653 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
4654 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
4655 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
4656 CORE_ADDR_MAX.
4657 * aarch64-tdep.c (aarch64_software_single_step): Use
4658 CORE_ADDR_MAX.
4659
896a7aa6
TT
46602018-08-27 Tom Tromey <tom@tromey.com>
4661
4662 * linespec.c (complete_linespec_component): Add cast to "char".
4663 * completer.c (completion_tracker::build_completion_result): Add
4664 cast to "char".
4665
dd33d41d
SM
46662018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4667
4668 * solist.h (struct solist, struct target_so_ops): Fix
4669 indentation.
4670
c645cda4
SM
46712018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4672
4673 * ada-tasks.c (ada_task_info_s): Remove typedef.
4674 (DEF_VEC_O(ada_task_info_s)): Remove.
4675 (struct ada_tasks_inferior_data): Initialize fields.
4676 <task_list>: Make an std::vector.
4677 (get_ada_tasks_inferior_data): Allocate with new.
4678 (ada_get_task_number): Adjust.
4679 (get_task_number_from_id): Likewise.
4680 (valid_task_id): Likewise.
4681 (ada_get_task_info_from_ptid): Likewise.
4682 (iterate_over_live_ada_tasks): Likewise.
4683 (add_ada_task): Likewise.
4684 (read_known_tasks): Likewise.
4685 (ada_build_task_list): Likewise.
4686 (print_ada_task_info): Likewise.
4687 (info_task): Likewise.
4688 (task_command_1): Likewise.
4689
39e7af3e
SM
46902018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4691
4692 * ada-lang.c (add_angle_brackets): Return std::string.
4693
bbbbbcee
SM
46942018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
4695
4696 * python/py-threadevent.c (py_get_event_thread): Initialize
4697 pythread.
4698
d98fc15b
PA
46992018-08-24 Pedro Alves <palves@redhat.com>
4700
4701 * python/py-bpevent.c (create_breakpoint_event_object): Use
4702 copy-initialization.
4703 * python/py-continueevent.c (emit_continue_event): Use
4704 copy-initialization.
4705 * python/py-exitedevent.c (create_exited_event_object): Return a
4706 gdbpy_ref<>.
4707 (emit_exited_event): Use copy-initialization.
4708 * python/py-inferior.c (python_new_inferior)
4709 (python_inferior_deleted, add_thread_object): Use
4710 copy-initialization.
4711 * python/py-infevents.c (create_inferior_call_event_object)
4712 (create_register_changed_event_object)
4713 (create_memory_changed_event_object): Return a gdbpy_ref<>.
4714 (emit_inferior_call_event, emit_memory_changed_event)
4715 (emit_register_changed_event): Use copy-initialization.
4716 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4717 Return a gdbpy_ref<>.
4718 (emit_new_objfile_event): Use copy-initialization.
4719 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
4720 (emit_clear_objfiles_event): Use copy-initialization.
4721 * python/py-signalevent.c (create_signal_event_object): Use
4722 copy-initialization.
4723 * python/py-threadevent.c (create_thread_event_object): Use
4724 copy-initialization.
4725
da3c8738
PA
47262018-08-24 Pedro Alves <palves@redhat.com>
4727 Simon Marchi <simon.marchi@ericsson.com>
4728
4729 PR gdb/23379
4730 * python/py-continueevent.c: Include "gdbthread.h".
4731 (create_continue_event_object): Add intro comment. Add 'ptid'
4732 parameter. Use it to find thread to pass to
4733 create_thread_event_object.
4734 (emit_continue_event): Pass PTID down to
4735 create_continue_event_object.
4736 * python/py-event.h (py_get_event_thread): Declare.
4737 (create_thread_event_object): Remove default from 'thread'
4738 parameter.
4739 * python/py-stopevent.c (create_stop_event_object): Use
4740 py_get_event_thread.
4741 * python/py-threadevent.c (get_event_thread): Rename to ...
4742 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
4743 and use it to find the thread.
4744 (create_thread_event_object): Assert that THREAD isn't null.
4745 Don't find the event thread here.
4746
26457a9c
KB
47472018-08-23 Kevin Buettner <kevinb@redhat.com>
4748
4749 * block.h (blockrange, blockranges): New struct declarations.
4750 (struct block): Add new field named `ranges'.
4751 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
4752 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
4753 macros for accessing ranges in struct block.
4754 (make_blockranges): New declaration.
4755 block.c (make_blockranges): New function.
2d5f09ec
KB
4756 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
4757 for block.
fc811edd
KB
4758 * symtab.h (find_pc_partial_function): Add new parameter `block'.
4759 * blockframe.c (cache_pc_function_block): New static global.
4760 (clear_pc_function_cache): Clear cache_pc_function_block.
4761 (find_pc_partial_function): Move comment to symtab.h. Add
4762 support for non-contiguous blocks.
e9480230
KB
4763 * cli/cli-cmds.c (block.h): Include.
4764 (print_disassembly): Handle printing of non-contiguous blocks.
4765 (disassemble_current_function): Likewise.
4766 (disassemble_command): Likewise.
26457a9c 4767
2b1ffcfd
KB
4768 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
4769 BLOCK_START.
4770 * blockframe.c (get_pc_function_start): Likewise.
4771 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
4772 (gcc_symbol_address): Likewise.
4773 * compile/compile-object-run.c (compile_object_run): Likewise.
4774 * compile/compile.c (get_expr_block_and_pc): Likewise.
4775 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
4776 (func_addr_to_tail_call_list): Likewise.
4777 * findvar.c (default_read_var_value): Likewise.
4778 * inline-frame.c (inline_frame_this_id): Likewise.
4779 (skip-inline_frames): Likewise.
4780 * infcmd.c (until_next_command): Likewise.
4781 * linespec.c (convert_linespec_to_sals): Likewise.
4782 * parse.c (parse_exp_in_context_1): Likewise.
4783 * printcmd.c (build_address_symbolic): likewise.
4784 (info_address_command): Likewise.
4785 symtab.c (find_function_start_sal): Likewise.
4786 (skip_prologue_sal): Likewise.
4787 (find_function_alias_target): Likewise.
4788 (find_gnu_ifunc): Likewise.
4789 * stack.c (find_frame_funname): Likewise.
4790 * symtab.c (fixup_symbol_section): Likewise.
4791 (find_function_start_sal): Likewise.
4792 (skip_prologue_sal): Likewsie.
4793 (find_function_alias_target): Likewise.
4794 (find_gnu_ifunc): Likewise.
4795 * tracepoint.c (info_scope_command): Likewise.
4796 * value.c (value_fn_field): Likewise.
4797
9644dc3a
KB
4798 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
4799 in place of find_pc_partial_function.
4800 * blockframe.c (find_function_entry_range_from_pc): New function.
4801 * symtab.h (find_function_entry_range_from_pc): Declare and document.
4802 * objfiles.c (objfile_relocate1): Relocate start and end addresses
4803 for each range in a block.
4804
4805
12a0d0f6
XR
48062018-08-23 Xavier Roirand <roirand@adacore.com>
4807
4808 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
4809 incrementation.
4810
d1012b8e
SM
48112018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4812
4813 * solib-svr4.c (read_program_headers_from_bfd): Return
4814 gdb::optional<gdb::byte_vector>.
4815 (svr4_exec_displacement): Adjust.
4816
17658d46
SM
48172018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4818
4819 * solib-svr4.c (read_program_header): Return
4820 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
4821 (find_program_interpreter): Return
4822 gdb::optional<gdb::byte_vector>.
4823 (scan_dyntag_auxv): Adjust.
4824 (enable_break): Adjust.
4825 (svr4_exec_displacement): Adjust.
4826
ae739fe7
SM
48272018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4828
4829 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
4830 * inf-child.c (inf_child_target::terminal_save_inferior): New.
4831
467dc1e2
SM
48322018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4833
4834 * guile/scm-string.c (gdbscm_scm_from_printf): Use
4835 string_vprintf.
4836 * guile/scm-utils.c (gdbscm_printf): Likewise.
4837 * serial.c (serial_printf): Likewise.
4838 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
4839
6d52907e
JV
48402018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
4841
4842 * stack.c (print_frame): Print frame architecture when printing on
4843 an MI output.
4844 * NEWS: Mention new "arch" attribute in frame output.
4845
9758a8f8
AH
48462018-08-21 Alan Hayward <alan.hayward@arm.com>
4847
4848 * arch/aarch64.h (aarch64_regnum): Update comment.
4849
1461bdac
AH
48502018-08-21 Alan Hayward <alan.hayward@arm.com>
4851
4852 * NEWS: Add SVE to 8.2 section.
4853
4895f384
PA
48542018-08-21 Pedro Alves <palves@redhat.com>
4855
4856 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
4857 out from gdbscm_parse_function_args.
4858 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
4859 gdbscm_parse_function_args_1.
4860
a4497d2f
SM
48612018-08-21 Simon Marchi <simon.marchi@ericsson.com>
4862
4863 PR gdb/17816
4864 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
4865 operator.
4866
c44deb73
SM
48672018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
4868
4869 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
4870
be2d111a
MS
48712018-08-19 Michael Spang <spang@google.com>
4872
4873 PR gdb/11786
4874 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
4875 for PT_TLS segments.
4876
a6b786da
KB
48772018-08-18 Kevin Buettner <kevinb@redhat.com>
4878
4879 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
4880 dwarf_variable_value.
4881 * dwarf2-frame.c (class dwarf_expr_executor):
4882 Add override for dwarf_variable_value.
4883 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
4884 (class symbol_needs_eval_context): Likewise.
4885 (indirect_synthetic_pointer): Add forward declaration.
4886 (sect_variable_value): New function.
4887 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
4888 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
4889 for DW_OP_GNU_variable_value.
4890
89fbedf3
TT
48912018-08-16 Tom Tromey <tom@tromey.com>
4892
4893 * top.c (read_command_file): Update.
4894 (command_line_input): Remove "repeat" argument.
4895 * ada-lang.c (get_selections): Update.
4896 * linespec.c (decode_line_2): Update.
4897 * defs.h (command_line_input): Remove argument.
4898 * cli/cli-script.c (read_next_line): Update.
4899 * python/py-gdb-readline.c: Update.
4900
12582533
TT
49012018-08-17 Tom Tromey <tom@tromey.com>
4902
4903 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
4904 command_line_input.
4905
49514353
TT
49062018-08-15 Tom Tromey <tom@tromey.com>
4907
4908 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
4909
26fb3983
JV
49102018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
4911
4912 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
4913 If used, use find_pc_partial_function to find address range
4914 to disassemble.
4915 * mi/mi-main.c (mi_cmd_list_features): Report
4916 "data-disassemble-a-option" feature.
4917 * NEWS: Mention new -data-disassemble option -a.
4918
a97b53dd
TT
49192018-08-13 Tom Tromey <tom@tromey.com>
4920
4921 * common/common-defs.h (_FORTIFY_SOURCE): Define.
4922
0c76e06d
AH
49232018-08-13 Alan Hayward <alan.hayward@arm.com>
4924
4925 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
4926 (aarch64_linux_collect_sve_regset): Likewise.
4927 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
4928 * regcache.h (regcache_map_entry_size): New function.
4929
b7fd65b9
AH
49302018-08-13 Alan Hayward <alan.hayward@arm.com>
4931
4932 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
4933 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
4934 (SVE_HEADER_VL_LENGTH): Likewise.
4935 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
4936 (SVE_HEADER_FLAGS_LENGTH): Likewise.
4937 (SVE_HEADER_RESERVED_LENGTH): Likewise.
4938 (SVE_HEADER_SIZE_OFFSET): Likewise.
4939 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
4940 (SVE_HEADER_VL_OFFSET): Likewise.
4941 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
4942 (SVE_HEADER_FLAGS_OFFSET): Likewise.
4943 (SVE_HEADER_RESERVED_OFFSET): Likewise.
4944 (SVE_HEADER_SIZE): Likewise.
4945 (aarch64_linux_core_read_vq): Add function.
4946 (aarch64_linux_core_read_description): Check for SVE section.
4947
a616bb94
AH
49482018-08-13 Alan Hayward <alan.hayward@arm.com>
4949
4950 * aarch64-fbsd-tdep.c
4951 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
4952 collect_size.
4953 * aarch64-linux-tdep.c
4954 (aarch64_linux_iterate_over_regset_sections): Likewise.
4955 * alpha-linux-tdep.c
4956 (alpha_linux_iterate_over_regset_sections):
4957 * alpha-nbsd-tdep.c
4958 (alphanbsd_iterate_over_regset_sections): Likewise.
4959 * amd64-fbsd-tdep.c
4960 (amd64fbsd_iterate_over_regset_sections): Likewise.
4961 * amd64-linux-tdep.c
4962 (amd64_linux_iterate_over_regset_sections): Likewise.
4963 * arm-bsd-tdep.c
4964 (armbsd_iterate_over_regset_sections): Likewise.
4965 * arm-fbsd-tdep.c
4966 (arm_fbsd_iterate_over_regset_sections): Likewise.
4967 * arm-linux-tdep.c
4968 (arm_linux_iterate_over_regset_sections): Likewise.
4969 * corelow.c (get_core_registers_cb): Likewise.
4970 (core_target::fetch_registers): Likewise.
4971 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
4972 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
4973 * gdbarch.h (void): Regenerate.
4974 * gdbarch.sh: Add supply_size and collect_size.
4975 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
4976 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
4977 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
4978 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
4979 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
4980 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
4981 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
4982 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
4983 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
4984 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
4985 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
4986 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
4987 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
4988 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
4399bce9
PA
4989 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections):
4990 Likewise.
a616bb94
AH
4991 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
4992 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
4993 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
4994 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
4995 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
4996 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
4399bce9
PA
4997 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections):
4998 Likewise.
a616bb94
AH
4999 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
5000 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
5001 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
5002 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
5003 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
5004 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
5005 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
5006 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
5007
a9925d4f
SM
50082018-08-10 Simon Marchi <simon.marchi@ericsson.com>
5009
5010 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
5011 with string_printf.
5012
ad3a68e9
KS
50132018-08-10 Keith Seitz <keiths@redhat.com>
5014
5015 * compile/compile-c-support.c (add_code_header, add_code_footer):
5016 Move into policy class.
5017 (c_push_user_expression, pop_user_expression_nop)
5018 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
5019 (compile_program): New host class.
5020 (c_compile_program): New typedef.
5021 (c_compute_porgram): Use c_compile_program.
5022
0cfbf430
KS
50232018-08-10 Keith Seitz <keiths@redhat.com>
5024
5025 * compile/compile-internal.h (compile_instance::~compile_instance):
5026 Remove calls to htab_delete.
5027 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
5028 * compile.c (compile_instance::compile_instance): Initialize
5029 htab unique pointers.
5030 (compile_instance::get_cached_type, compile_instance::insert_type)
5031 (compile_instance::error_symbol_once): Update for unique_ptr.
5032
946d3d10
KS
50332018-08-10 Keith Seitz <keiths@redhat.com>
5034
5035 * compile/compile-c-symbols.c (struct symbol_error)
5036 (hash_symbol_error, eq_symbol_error, del_symbol_error)
5037 (compile_instance::insert_symbol_error)
5038 (compile_instance::error_symbol_once): Move to ...
5039 * compile/compile.c: ... here.
5040
9cdfd9a2
KS
50412018-08-10 Keith Seitz <keiths@redhat.com>
5042
5043 * compile/compile-c-support.c (c_get_compile_context): Use `new'
5044 instead of `new_compile_instance'.
5045 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
5046 Update description.
5047 If the symbol error map is not initialized, create it.
5048 (generate_c_for_for_one_symbol): Do not check/initialize
5049 the symbol error map.
5050 * compile/compile-c-types.c (compile_c_instance): Make a class.
5051 Update all callers.
5052 (compile_instance::compile_instance): Initialize the type cache.
5053 (get_cached_type): New function.
5054 (insert_type): Update description.
5055 (compile_c_instance::m_default_cflags): Define.
5056 (convert_type): Update description. Use get_cached_type.
5057 (delete_instance): Moved to destructor.
5058 (new_compile_instance): Moved to constructor.
5059 * compile/compile-c.h (compile_c_instance): Make class inheriting
5060 from compile_instance.
5061 <base>: Remove field.
5062 <type_map, symbol_err_map>: Move to base class.
5063 <c_plugin>: Rename to `m_plugin' and remove pointer type.
5064 * compile/compile-internal.h (compile_instance): Make class.
5065 <type_map_t, symbol_err_map_t>: Define.
5066 <fe>: Rename to `m_gcc_fe'.
5067 <scope, block, gcc_target_options>: Add `m_' prefix.
5068 <m_type_map, m_symbol_err_map>: New fields, moved from
5069 compile_c_instance.
5070 <destroy>: Remove.
5071 (convert_type, new_compile_instance): Remove.
5072 * compile/compile.c (cleanup_compile_instance): Remove.
5073 (compile_to_object): Use unique_ptr to eliminate cleanups.
5074 (compile_instance::set_print_callback, compile_instance::version)
5075 (compile_instance::set_verbose)
5076 (compile_instance::set_driver_filename)
5077 (compile_instance::set_triplet_regexp)
5078 (compile_instance::set_arguments)
5079 (compile_instance::set_source_file)
5080 (compile_instance::compile): Define.
5081
18cdc6d8
KS
50822018-08-10 Keith Seitz <keiths@redhat.com>
5083
5084 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
5085 * compile/compile-c-types.c: Define GCC_METHODN macros and include
5086 gcc-c-fe.def to define C plugin.
5087 (delete_instance): Delete `c_plugin'.
5088 (new_compile_instance): Initialize `c_plugin'.
5089 * compile/compile-c.h: Include gcc_c_plugin.h.
5090 (struct compile_c_instance) <c_plugin>: New member.
5091 * gcc-c-plugin.h: New file.
5092 Update all callers with API change.
5093
b7dc48b4
KS
50942018-08-10 Keith Seitz <keiths@redhat.com>
5095
5096 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
5097 (HFILES_NO_SRCDIR): ... to here.
5098 Add compile-internal.h and compile-c.h.
5099 * compile/compile-c-support.c: Include compile-c.h.
5100 * compile/compile-c-symbols.c: Include compile-c.h.
5101 (generate_c_for_variable_locations): Update comment.
5102 * compile/compile-c-types.c: Include compile-c.h.
5103 * compile/compile-c.h: New file -- moved C language declarations
5104 from other files here.
5105 * compile/compile-internal.h: Do not include hashtab.h or
5106 common/enum-flags.h.
5107 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
5108 (gcc_convert_symbol, gcc_symbol_address)
5109 (generate_c_for_variable_locations, c_get_mode_for_size)
5110 (c_get_range_decl_name): Definitions moved to compile-c.h.
5111 * compile/compile-loc2c.c: Include compile-c.h.
5112
6f36b6d2
KS
51132018-08-10 Keith Seitz <keiths@redhat.com>
5114
5115 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
5116 (c_symbol_substitution_name): ... this.
5117 Update all callers.
5118
bd923e51
KS
51192018-08-10 Keith Seitz <keiths@redhat.com>
5120
5121 * compile/compile-c-support.c (c_compute_program): Use
5122 unique_xmalloc_ptr to eliminate cleanup.
5123 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
5124 Return a unique_xmalloc_ptr and eliminate cleanup.
5125 * compile/compile-internal.h (generate_c_for_variable_locations):
5126 Return unique_xmalloc_ptr and update description.
5127
dbd534fe
AH
51282018-08-10 Alan Hayward <alan.hayward@arm.com>
5129
5130 * corelow.c (core_target::get_core_register_section): Rename
5131 min_size to section_min_size.
5132
90ad3654
JW
51332018-08-09 Jim Wilson <jimw@sifive.com>
5134
52a187f8
JW
5135 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
5136 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
5137 * NEWS: Mention new GNU/Linux RISC-V target.
5138 * configure.host: Add riscv*-*-linux*.
5139 * configure.nat: Add riscv*.
5140 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 5141 * riscv-linux-nat.c: New file.
90ad3654
JW
5142 * riscv-linux-tdep.c: New file.
5143
aff4e175
AB
51442018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
5145
5146 * infrun.c (resume): Make static, add forward declaration.
5147 (proceed): Update header comment.
5148 * infrun.h (resume): Delete declaration.
5149
06ab9219
TT
51502018-08-09 Tom Tromey <tom@tromey.com>
5151
5152 * riscv-tdep.h: Minor formatting fixes.
5153
83c8d318
SM
51542018-08-09 Simon Marchi <simon.marchi@ericsson.com>
5155
5156 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
5157 * dwarf-index-cache.c (create_dir_and_check): Likewise.
5158 (test_mkdir_recursive): Likewise.
5159 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
5160
5ff2bbae
AB
51612018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
5162
5163 * valarith.c (value_subscripted_rvalue): If an array is not in
5164 memory, and we don't know the upper bound, then we can't know that
5165 the requested element exists or not.
5166
fdbac7d8
SM
51672018-08-08 Simon Marchi <simon.marchi@ericsson.com>
5168
5169 * target.c (str_comma_list_concat_elem): Fix typo in comment.
5170 (target_options_to_string): Add comment.
5171
83202f7a
TT
51722018-08-08 Tom Tromey <tom@tromey.com>
5173
5174 * unittests/scoped_mmap-selftests.c: Check result of "write".
5175
411baa47
JW
51762018-08-08 Jim Wilson <jimw@sifive.com>
5177
5c720ed8
JW
5178 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
5179 (decode_register_index_short): New.
5180 (decode_j_type_insn, decode_cj_type_insn): New.
5181 (decode_b_type_insn, decode_cb_type_insn): New.
5182 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
5183 local xlen. Check xlen when decoding ambiguous compressed insns. In
5184 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
5185 is_c_sw_insn instead of is_sw_insn.
5186 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
5187 (riscv_software_single_step): New.
5188 * riscv-tdep.h (riscv_software_single_step): Declare.
5189
411baa47
JW
5190 * riscv-tdep.c (riscv_isa_xlen): Drop static.
5191 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
5192
9d4a934c
AB
51932018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
5194
5195 PR gdb/18050:
5196 * target.c (dispose_inferior): Don't dispose of inferiors that are
5197 already killed.
5198
ff36536c
SN
51992018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
5200
5201 * remote.c (remote_target::download_tracepoint): Change char* to
5202 const char*.
5203
09ce46f2
SM
52042018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5205
5206 * target.h (target_options_to_string): Return an std::string.
5207 * target.c (str_comma_list_concat_elem): Return void, use
5208 std::string.
5209 (do_option): Likewise.
5210 (target_options_to_string): Return an std::string.
5211 * linux-nat.c (linux_nat_target::wait): Adjust.
5212 * target-debug.h (target_debug_print_options): Adjust.
5213
9c612964
TT
52142018-08-07 Tom Tromey <tom@tromey.com>
5215
5216 * Makefile.in (CPPFLAGS): New variable.
5217 (INTERNAL_CPPFLAGS): Use it.
5218
7d11235d
SM
52192018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5220
5221 * NEWS: Mention the index cache.
5222
87d6a7aa
SM
52232018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5224
5225 * common/pathstuff.h (get_standard_cache_dir): New.
5226 * common/pathstuff.c (get_standard_cache_dir): New.
5227 * build-id.h (build_id_to_string): New.
5228 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
5229 DEBUG_STR_SUFFIX): Move to here.
5230 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
5231 DEBUG_STR_SUFFIX): Move from there.
5232 (write_psymtabs_to_index): Make non-static, add basename
5233 parameter. Write to temporary files, rename when done.
5234 (save_gdb_index_command): Adjust call to
5235 write_psymtabs_to_index.
5236 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
5237 field.
5238 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
5239 (get_gdb_index_contents_from_cache): New.
5240 (get_gdb_index_contents_from_cache_dwz): New.
5241 (dwarf2_initialize_objfile): Read index from cache.
5242 (dwarf2_build_psymtabs): Save to index.
5243 * dwarf-index-cache.h: New file.
5244 * dwarf-index-cache.c: New file.
5245 * dwarf-index-write.h: New file.
5246
8a99096f
SM
52472018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5248
5249 * gnulib/aclocal.m4: Re-generate.
5250 * gnulib/config.in: Re-generate.
5251 * gnulib/configure: Re-generate.
5252 * gnulib/import/Makefile.am: Re-generate.
5253 * gnulib/import/Makefile.in: Re-generate.
5254 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
5255 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
5256 * gnulib/import/m4/mkdir.m4: New file.
5257 * gnulib/import/mkdir.c: New file.
5258 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
5259 module.
5260
5c831bb1
SM
52612018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5262
5263 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
5264 * common/scoped_mmap.c: New file.
5265 * common/scoped_mmap.h (destroy): New method.
5266 (~scoped_mmap, reset): Use destroy.
5267 (scoped_mmap): New move constructor.
5268 (mmap_file): New declaration.
5269 * unittests/scoped_mmap-selftests.c (test_normal,
5270 test_invalid_filename, run_tests): New functions.
5271 (_initialize_scoped_mmap_selftests): Register selftest.
5272
4485a1c1
SM
52732018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5274
5275 * dwarf2read.c (read_gdb_index_from_section): Rename to...
5276 (read_gdb_index_from_buffer): ... this. Remove section
5277 parameter, add buffer parameter.
5278 (get_gdb_index_contents_ftype,
5279 get_gdb_index_contents_dwz_ftype): New typedefs.
5280 (dwarf2_read_gdb_index): Add callback parameters to get the
5281 index contents.
5282 (get_gdb_index_contents_from_section): New.
5283 (dwarf2_initialize_objfile): Update call to
5284 dwarf2_read_gdb_index.
5285
528e1572
SM
52862018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5287
5288 * common/filestuff.h (gdb_fopen_cloexec): New overload.
5289 (gdb_open_cloexec): Likewise.
5290 * nat/linux-osdata.c (command_from_pid): Use string_printf.
5291 (commandline_from_pid): Likewise.
5292 (linux_xfer_osdata_threads): Likewise.
5293 (linux_xfer_osdata_fds): Likewise.
5294 * ada-lang.c (is_package_name): Likewise.
5295 * auxv.c (procfs_xfer_auxv): Likewise.
5296 * breakpoint.c (print_one_breakpoint_location): Use
5297 uiout::field_fmt.
5298 (print_one_catch_solib): Use string_printf.
5299 * coff-pe-read.c (add_pe_exported_sym): Likewise.
5300 (add_pe_forwarded_sym): Likewise.
5301 * dwarf2read.c (create_type_unit_group): Likewise.
5302 (build_error_marker_type): Likewise.
5303 * infcall.c (get_function_name): Likewise.
5304 * valprint.c (print_converted_chars_to_obstack): Likewise.
5305 * xtensa-tdep.c (xtensa_register_type): Likewise.
5306
a7f25a84
SM
53072018-08-06 Simon Marchi <simon.marchi@ericsson.com>
5308
5309 * remote.c (remote_target::download_tracepoint): Fix format
5310 string errors.
5311
296956be
PFC
53122018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5313
5314 * tracefile.c: Include common/byte-vector.h.
5315 (trace_save): Change type of buf to gdb::byte_vector. Initialize
5316 with trace_regblock_size if needed. Update uses of buf.
5317
a04b9d62
PFC
53182018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5319
5320 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
5321 std::vector<unsigned char>.
5322 * tracepoint.c (collection_list::collection_list): Remove
5323 m_regs_mask initializer from initializer list. Resize
5324 m_regs_mask using the largest remote register number.
5325 (collection_list::add_remote_register): Remove size check on
5326 m_regs_mask. Use at to access element.
5327 (collection_list::stringify): Change type of temp_buf to
5328 gdb::char_vector. Update uses of temp_buf. Resize if needed to
5329 stringify the register mask. Use pack_hex_byte for the register
5330 mask.
5331
4277c4b8
PFC
53322018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5333
5334 * tracepoint.h (class collection_list) <add_register>: Remove.
5335 <add_remote_register, add_ax_registers, add_local_register>:
5336 Declare.
5337 <add_memrange>: Add scope parameter.
5338 * tracepoint.c (encode_actions_1): Likewise.
5339 (collection_list::add_register): Rename to ...
5340 (collection_list::add_remote_register): ... this. Update
5341 comment.
5342 (collection_list::add_ax_registers, add_local_register): New
5343 methods.
5344 (collection_list::add_memrange): Add scope parameter. Call
5345 add_local_register instead of add_register.
5346 (finalize_tracepoint_aexpr): New function.
5347 (collection_list::collect_symbol): Update calls to add_memrange.
5348 Call add_local_register instead of add_register. Call
5349 add_ax_registers. Call finalize_tracepoint_aexpr.
5350 (encode_actions_1): Get remote regnos for $reg action. Call
5351 add_remote_register, add_ax_registers, and add_local_register.
5352 Update call to add_memrange. Call finalize_tracepoint_aexpr.
5353 (validate_actionline): Call finalize_tracepoint_aexpr.
5354
3df3a985
PFC
53552018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5356
5357 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
5358 Replace array buf with gdb::char_vector buf, of size
5359 get_remote_packet_size (). Replace references to buf and
5360 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
5361 and xsnprintf with snprintf. Raise errors if the buffer is too
5362 small.
5363
aa6f3694
PFC
53642018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5365
5366 * remote.c (remote_target::download_tracepoint): Fix the has_more
5367 predicate in the QTDP action list iteration.
5368
05abfc39
PFC
53692018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5370
5371 * remote.c (remote_target::download_tracepoint): Fix indentation
5372 in for block.
5373
821a2682
RO
53742018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5375
5376 * proc-api.c (_initialize_proc_api): Remove c, unused.
5377 * procfs.c (procfs_init_inferior): Remove signals, unused.
5378 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
5379 unused.
5380
95347337
AB
53812018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
5382 Andrew Burgess <andrew.burgess@embecosm.com>
5383
5384 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
5385 'W_STOPCODE (0)' as this could be ambiguous.
5386
425699f5
SDJ
53872018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
5388
5389 * ser-tcp.c (net_open): Fix thinko when deciding whether to
5390 disable TCP's Nagle algorithm (use "ai_protocol" instead of
5391 "ai_socktype").
5392
3e1d3d8c
TT
53932018-08-02 Tom Tromey <tom@tromey.com>
5394
5395 PR symtab/16842.
5396 * dwarf2read.c (read_func_scope): Set symtab on template parameter
5397 symbols.
5398 (process_structure_scope): Likewise.
5399
15843549
XR
54002018-08-02 Xavier Roirand <roirand@adacore.com>
5401
5402 PR gdb/22629:
4399bce9
PA
5403 * darwin-nat.c (darwin_kill_inferior): Fix handling of
5404 kill inferior.
15843549 5405
b5bddbbb
TT
54062018-08-02 Tom Tromey <tom@tromey.com>
5407
5408 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
5409 (darwin_suspend_inferior, darwin_resume_inferior)
5410 (darwin_decode_notify_message, darwin_resume_inferior_threads)
5411 (darwin_check_new_threads): Check result of get_darwin_inferior.
5412
f61cfa07
JB
54132018-07-31 Joel Brobecker <brobecker@adacore.com>
5414
5415 GDB 8.1.1 released.
5416
5abe0f0c
JV
54172018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
5418
5419 * varobj.c (varobj_get_path_expr_parent): Report an error if
5420 parent is a dynamic varobj.
5421
472fa5ee
SM
54222018-07-31 Simon Marchi <simon.marchi@ericsson.com>
5423
5424 * gnulib/aclocal.m4: Re-generate.
5425 * gnulib/config.in: Re-generate.
5426 * gnulib/configure: Re-generate.
5427 * gnulib/import/Makefile.in: Re-generate.
5428 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
5429 * gnulib/import/m4/onceonly.m4: Re-generate.
5430
1c28969e
SM
54312018-07-31 Simon Marchi <simon.marchi@ericsson.com>
5432
5433 * target-descriptions.c (struct xml_test_tdesc): New.
5434 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
5435 (record_xml_tdesc): Update.
5436 (maintenance_check_xml_descriptions): Update.
5437 * target-descriptions.h (record_xml_tdesc): Update comment.
5438
c8f2dc0d
AB
54392018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
5440
5441 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
5442 checking array bounds are defined.
5443
463c08d1
TT
54442018-07-30 Tom Tromey <tom@tromey.com>
5445
5446 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
5447 irreflexivity violation.
5448
dba7455e
TT
54492018-07-30 Tom Tromey <tom@tromey.com>
5450
5451 * cli/cli-decode.c (lookup_cmd): Remove lint code.
5452 * value.c (unpack_long): Remove lint code.
5453 * valops.c (value_ind): Remove lint code.
5454 * valarith.c (value_x_binop, value_x_unop, value_equal)
5455 (value_pos): Remove lint code.
5456
37cc0cae
TV
54572018-07-28 Tom de Vries <tdevries@suse.de>
5458
5459 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
5460 with undefined upper bound as <optimized out>.
5461
129eb0f1
SDJ
54622018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
5463
5464 * gcore.in: Rename variable "name" to "prefix". Expand
5465 "usage" text.
5466
6af79d7b
JT
54672018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
5468
5469 * windows-nat.c (windows_nat_target::create_inferior): Update to
5470 call close() in global namespace.
5471
79748972
TT
54722018-07-26 Tom Tromey <tom@tromey.com>
5473
5474 * dwarf-index-write.c (add_address_entry): Don't add objfile
5475 offsets.
5476 * dbxread.c (find_stab_function): Rename from
5477 find_stab_function_addr. Return a bound_minimal_symbol.
5478 (read_dbx_symtab): Use raw_text_low, raw_text_high.
5479 Don't add objfile offsets.
5480 (end_psymtab): Use raw_text_low, raw_text_high,
5481 MSYMBOL_VALUE_RAW_ADDRESS.
5482 (read_ofile_symtab): Update.
5483 (process_one_symbol): Update.
5484 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
5485 offsets.
5486 (dw2_relocate): Remove.
5487 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
5488 searching addrmap.
5489 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
5490 Update.
5491 (process_psymtab_comp_unit_reader, add_partial_symbol)
5492 (add_partial_subprogram, dwarf2_ranges_read): Update.
5493 (load_partial_dies): Update.
5494 (add_address_entry): Don't add objfile offsets.
5495 (dwarf2_build_include_psymtabs): Update.
5496 (create_addrmap_from_aranges): Don't add objfile offsets.
5497 (dw2_find_pc_sect_compunit_symtab): Update.
5498 * mdebugread.c (parse_symbol): Don't add objfile offsets.
5499 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
5500 Update.
5501 (parse_partial_symbols): Don't add objfile offsets. Use
5502 raw_text_low, raw_text_high. Update.
5503 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
5504 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
5505 or call 'relocate' quick function. Clear psymbol_map.
5506 * psympriv.h (struct partial_symbol) <address>: Add section
5507 offset.
5508 <set_unrelocated_address>: Rename from set_address.
5509 <raw_text_low, raw_text_high>: New methods.
5510 <text_low, text_high>: Add objfile parameter.
5511 (add_psymbol_to_bcache): Add 'section' parameter. Call
5512 set_unrelocated_address.
5513 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5514 (find_pc_psymbol): Update.
5515 (fixup_psymbol_section, relocate_psymtabs): Remove.
5516 (dump_psymtab, psym_functions): Update.
5517 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
5518 parameter.
5519 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5520 (start_psymtab_common): Update.
5521 * symfile-debug.c (debug_qf_relocate): Remove.
5522 (debug_sym_quick_functions): Update.
5523 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
5524 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
5525 Update.
5526
52948f01
TT
55272018-07-26 Tom Tromey <tromey@redhat.com>
5528
5529 * dbxread.c (end_psymtab): Use text_high_valid and
5530 text_low_valid.
5531 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
5532 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
5533 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5534 Update comment.
5535 <text_low_valid, text_high_valid>: New fields.
5536 <set_text_low, set_text_high>: Update.
5537 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
5538
4ae976d1
TT
55392018-07-26 Tom Tromey <tom@tromey.com>
5540
5541 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
5542 Update.
5543 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
5544 textlow and texthigh fields.
5545 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
5546 Update.
5547 * mdebugread.c (parse_lines, parse_partial_symbols)
5548 (psymtab_to_symtab_1): Update.
5549 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5550 Rename fields. Update comment. Now private.
5551 <text_low, text_high, set_text_low, set_text_high>: New methods.
5552 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5553 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
5554 (start_psymtab_common, maintenance_info_psymtabs)
5555 (maintenance_check_psymtabs): Update.
5556 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
5557 texthigh fields.
5558 (scan_xcoff_symtab): Update.
5559
02e9e7f7
TT
55602018-07-26 Tom Tromey <tromey@redhat.com>
5561
5562 * psympriv.h (struct partial_symbol) <unrelocated_address,
5563 address, set_address>: New methods.
5564 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
5565 (fixup_psymbol_section, relocate_psymtabs): Update.
5566 (print_partial_symbols): Add 'objfile' parameter. Update.
5567 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
5568 Update.
5569
8a6d4234
TT
55702018-07-26 Tom Tromey <tom@tromey.com>
5571
5572 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5573 (debug_names::write_psymbols): Update.
5574 * psympriv.h (struct partial_symbol): Derive from
5575 general_symbol_info.
5576 <obj_section>: New method.
5577 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
5578 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5579 (find_pc_sect_psymbol, fixup_psymbol_section)
5580 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
5581 (print_partial_symbols, recursively_search_psymtabs)
5582 (compare_psymbols, psymbol_hash, psymbol_compare)
5583 (add_psymbol_to_bcache, maintenance_check_psymtabs)
5584 (psymbol_name_matches, psym_fill_psymbol_map): Update.
5585
08994e1d
TT
55862018-07-26 Tom Tromey <tromey@redhat.com>
5587
5588 * dbxread.c (end_psymtab): Remove dead code.
5589
3c3bb058
AB
55902018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
5591
5592 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
5593 DWARF unwinders are disabled.
5594 * dwarf2-frame.c: Add dwarf2read.h include.
5595 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
5596 disabled.
5597 (dwarf2_frame_unwinders_enabled_p): Define.
5598 (show_dwarf_unwinders_enabled_p): New function.
5599 (_initialize_dwarf2_frame): Register switch to control DWARF
5600 unwinder use.
5601 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
5602 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
5603 (show_dwarf_cmdlist): Remove static keyword.
5604 * dwarf2read.h (set_dwarf_cmdlist): Declare.
5605 (show_dwarf_cmdlist): Declare.
5606 * NEWS: Document new feature.
5607
9e7f3bbb
TV
56082018-07-26 Tom de Vries <tdevries@suse.de>
5609
5610 PR breakpoints/23366
5611 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
5612
506f5c41
TV
56132018-07-26 Tom de Vries <tdevries@suse.de>
5614
5615 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
5616 DW_AT_count can't be translated to a dynamic prop.
5617
16f808ec
TV
56182018-07-25 Tom de Vries <tdevries@suse.de>
5619
5620 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
5621 try/catch.
5622
d7154a8d
JV
56232018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
5624
5625 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
5626
a45389f6
JB
56272018-07-25 Joel Brobecker <brobecker@adacore.com>
5628
5629 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
5630
380618d6
KS
56312018-07-24 Keith Seitz <keiths@redhat.comt
5632
5633 PR symtab/23010
5634 * dwarf2read.c (dw2_add_symbol_to_list): New function.
5635 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
5636 instead of add_symbol_to_list.
5637 (read_file_scope): Call prepare_one_comp_unit before reading
5638 any other DIEs.
5639
4b17aefe
SM
56402018-07-24 Simon Marchi <simon.marchi@ericsson.com>
5641
5642 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
5643
29d17e47
TT
56442018-07-24 Tom Tromey <tom@tromey.com>
5645
5646 * utils.c (malloc, realloc, free): Don't declare.
5647 * configure, config.in: Rebuild.
5648 * configure.ac: Don't check for declarations of free, malloc, or
5649 realloc.
5650
cf4088a9
SM
56512018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5652
5653 * aarch64-linux-nat.c
5654 (aarch64_linux_nat_target::stopped_data_address): Remove unused
5655 variable.
5656 * arm-linux-nat.c (fetch_regs): Likewise.
5657 (store_regs): Likewise.
5658 (fetch_vfp_regs): Likewise.
5659 (store_vfp_regs): Likewise.
5660 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
5661 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
5662 (arm_linux_nat_target::insert_watchpoint): Likewise.
5663 (arm_linux_nat_target::remove_watchpoint): Likewise.
5664 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
5665 Likewise.
5666 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
5667 Likewise.
5668 * ppc-linux-nat.c (fetch_register): Likewise.
5669 (fetch_all_gp_regs): Likewise.
5670 (fetch_ppc_registers): Likewise.
5671 (store_all_gp_regs): Likewise.
5672 (store_ppc_registers): Likewise.
5673 (hwdebug_insert_point): Likewise.
5674 (can_use_watchpoint_cond_accel): Likewise.
5675 * remote-sim.c (gdb_os_write_stdout): Likewise.
5676
a0de763e
TT
56772018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5678 Tom Tromey <tom@tromey.com>
5679
5680 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
5681 test for it.
5682 * configure: Rebuild.
5683
3b20124b
TT
56842018-07-22 Tom Tromey <tom@tromey.com>
5685
5686 * regformats/regdat.sh: Define xmltarget_${name} inside
5687 #ifndef IN_PROCESS_AGENT.
5688
8c8807f4
TT
56892018-07-22 Tom Tromey <tom@tromey.com>
5690
5691 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
5692
c486b610
TT
56932018-07-22 Tom Tromey <tom@tromey.com>
5694
5695 * symfile.c (reread_symbols): Notify iter, not objfile.
5696
494f80a9
TT
56972018-07-22 Tom Tromey <tom@tromey.com>
5698
5699 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
5700 Use arch_ops.
5701 (ravenscar_thread_target::prepare_to_store): Likewise.
5702
c51f6a54
TT
57032018-07-22 Tom Tromey <tom@tromey.com>
5704
5705 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
5706 unused variable. Call value_fetch_lazy when needed.
5707 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5708 Remove unused variable. Call value_fetch_lazy when needed.
5709
374fd1fd
TT
57102018-07-22 Tom Tromey <tom@tromey.com>
5711
5712 * m32c-tdep.c (mark_dma): Return void.
5713 (make_regs): Remove unused declarations.
5714
d5e9a511
TT
57152018-07-22 Tom Tromey <tom@tromey.com>
5716
5717 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
5718 cmdscm_get_valid_command_smob_arg_unsafe for effect.
5719 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
5720 bkscm_get_valid_block_smob_arg_unsafe for effect.
5721
996d693a
TT
57222018-07-22 Tom Tromey <tom@tromey.com>
5723
5724 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
5725 value_type.
5726
15766370
TT
57272018-07-22 Tom Tromey <tom@tromey.com>
5728
5729 * windows-nat.c (saved_context): Conditionally define.
5730 * remote.c (remote_target::remote_btrace_maybe_reopen):
5731 Conditionally declare "warned".
5732 * inflow.c (sigquit_ours): Conditionally define.
5733 (new_tty): Move "tty" declaration inside #if.
5734 * guile/guile.c (guile_datadir): Conditionally define.
5735 * charset.c (set_be_le_names): Move some declarations inside #if.
5736 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
5737 #if.
5738 (parse_xml_btrace_conf): Likewise.
5739
f4e80e13
TT
57402018-07-22 Tom Tromey <tom@tromey.com>
5741
5742 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
5743
8d49165d
TT
57442018-07-22 Tom Tromey <tom@tromey.com>
5745
5746 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
5747 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
5748 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
5749 * buildsym-legacy.c (get_macro_table): Remove unused variable.
5750 * stack.c (frame_apply_level_command): Remove unused variable.
5751 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
5752 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
5753 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
5754 unused variable.
5755 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
5756 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
5757 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
5758 variable.
5759 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
5760 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
5761 variable.
5762 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
5763 Remove unused variable.
5764 * cli/cli-script.c (recurse_read_control_structure): Remove unused
5765 variable.
5766 * common/tdesc.c (print_xml_feature::visit): Remove unused
5767 variable.
5768 * compile/compile-object-load.c (store_regs): Remove unused
5769 variables.
5770 * complaints.c (clear_complaints): Remove unused variable.
5771 * corelow.c (core_target_open): Remove unused variable.
5772 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
5773 variable.
5774 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
5775 variable.
5776 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
5777 variable.
5778 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
5779 variable.
5780 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
5781 variable.
5782 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
5783 variable.
5784 * ia64-tdep.c (examine_prologue): Remove unused variable.
5785 * infcall.c (run_inferior_call): Remove unused variable.
5786 * inferior.c (exit_inferior): Remove unused variable.
5787 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
5788 * linespec.c (decode_line_2): Remove unused variable.
5789 * linux-nat.c (super_close): Remove.
5790 * linux-tdep.c (linux_info_proc): Remove unused variable.
5791 * mi/mi-main.c (mi_execute_command): Remove unused variable.
5792 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
5793 Remove unused variable.
5794 * parse.c (find_minsym_type_and_address): Remove unused variable.
5795 * printcmd.c (info_symbol_command, printf_floating): Remove unused
5796 variable.
5797 * python/py-breakpoint.c (bppy_set_commands): Remove unused
5798 variable.
5799 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
5800 variables.
5801 * record-btrace.c (record_btrace_target::store_registers): Remove
5802 unused variable.
5803 (cmd_show_record_btrace_cpu): Remove unused variable.
5804 * riscv-tdep.c (riscv_register_reggroup_p)
5805 (riscv_push_dummy_call, riscv_return_value): Remove unused
5806 variable.
5807 * rust-exp.y (literal): Remove unused variable.
5808 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
5809 unused variable.
5810 <STRUCTOP_ANONYMOUS>: Likewise.
5811 * s390-linux-tdep.c (s390_linux_init_abi_31)
5812 (s390_linux_init_abi_64): Remove unused variable.
5813 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
5814 (file_select_thread, net_windows_open, _initialize_ser_windows):
5815 Remove unused variables.
5816 * symtab.c (find_pc_sect_line): Remove unused variable.
5817 * target-memory.c (compute_garbled_blocks): Remove unused
5818 variable.
5819 (target_write_memory_blocks): Remove unused variable.
5820 * target.c (target_stack::unpush): Remove unused variables.
5821 * tracepoint.c (start_tracing, all_tracepoint_actions)
5822 (merge_uploaded_trace_state_variables)
5823 (print_one_static_tracepoint_marker): Remove unused variable.
5824 * unittests/basic_string_view/element_access/char/1.cc (test01):
5825 Remove unused variable.
5826 * windows-nat.c (windows_continue, windows_add_all_dlls)
5827 (do_initial_windows_stuff, windows_nat_target::create_inferior):
5828 Remove unused variables.
5829
17cbafdb
SM
58302018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5831
5832 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
5833 attr_profile in HAVE_ELF.
5834 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
5835 HAVE_ELF.
5836
0ee6c332
SM
58372018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
5838
5839 * frame.c (frame_register_unwind): Change parameter name.
5840 (frame_unwind_register): Likewise.
5841 (frame_unwind_register_value): Likewise.
5842 (frame_unwind_register_signed): Likewise.
5843 (frame_unwind_register_unsigned): Likewise.
5844 * frame.h (frame_register_unwind): Likewise.
5845 (frame_unwind_register): Likewise.
5846 (frame_unwind_register_value): Likewise.
5847 (frame_unwind_register_signed): Likewise.
5848 (frame_unwind_register_unsigned): Likewise.
5849 (frame_unwind_arch): Likewise.
5850
e2e31f10
MR
58512018-07-20 Maciej W. Rozycki <macro@mips.com>
5852
5853 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
5854 ISA maintenance.
5855
2d389915
MR
58562018-07-20 Maciej W. Rozycki <macro@mips.com>
5857
5858 * mips-linux-nat.c (mips_linux_nat_target::read_description):
5859 Call `get_ptrace_pid' rather than extracting the ptrace PID by
5860 hand.
5861
cbb09508
KS
58622018-07-20 Keith Seitz <keiths@redhat.com>
5863
5864 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
5865 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
5866 m_compunit_symtab, m_language>: Add "m_" prefix.
5867 Update all uses.
5868 * buildsym.c: Update all uses.
5869
bfe2e011
TT
58702018-07-20 Tom Tromey <tom@tromey.com>
5871
5872 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
5873 * buildsym.h (record_line_ftype): Remove typedef.
5874
0e6f3061
TT
58752018-07-20 Tom Tromey <tom@tromey.com>
5876
5877 * buildsym-legacy.h (augment_type_symtab): Don't declare.
5878 (end_expandable_symtab): Likewise.
5879 (end_symtab_get_static_block): Likewise.
5880 (end_symtab_from_static_block): Likewise.
5881 * buildsym-legacy.c (augment_type_symtab): Remove.
5882 (end_expandable_symtab): Remove.
5883 (end_symtab_get_static_block): Remove.
5884 (end_symtab_from_static_block): Remove.
5885
804d2729
TT
58862018-07-20 Tom Tromey <tom@tromey.com>
5887
5888 * dwarf2read.c: Include buildsym.h.
5889 (struct dwarf2_cu) <builder>: New method.
5890 (fixup_go_packaging): Update.
5891 (process_full_comp_unit, process_full_type_unit): Update. Don't
5892 use scoped_free_pendings.
5893 (using_directives): Add "cu" parameter, remove "language".
5894 (read_import_statement, setup_type_unit_groups, )
5895 (read_func_scope, read_lexical_block_scope)
5896 (dwarf2_record_block_ranges, read_namespace): Update.
5897 (lnp_state_machine::lnp_state_machine): Add cu parameter.
5898 (lnp_state_machine::handle_end_sequence): Update.
5899 (class lnp_state_machine) <m_cu>: New member.
5900 <m_record_line_callback>: Remove.
5901 <m_currently_recording_lines>: New member.
5902 (lnp_state_machine::handle_set_file): Update.
5903 (noop_record_line): Remove.
5904 (dwarf_record_line_p): Add cu parameter.
5905 (dwarf_record_line_1, dwarf_finish_line): Likewise.
5906 (lnp_state_machine::record_line)
5907 (lnp_state_machine::lnp_state_machine)
5908 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5909 (dwarf_decode_lines): Update.
5910 (dwarf2_start_subfile): Add cu parameter.
5911 (dwarf2_start_symtab, new_symbol): Update.
5912 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
5913 Remove dwarf2_per_objfile parameter.
5914 (dwarf_decode_macros): Update.
5915
80e649fc
TT
59162018-07-20 Tom Tromey <tom@tromey.com>
5917
5918 * stabsread.c (define_symbol): Update.
5919 * buildsym-legacy.h (get_buildsym_compunit): Declare.
5920 * dwarf2read.c (new_symbol): Update.
5921 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
5922 * cp-namespace.c: Include buildsym.h.
5923 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
5924 * buildsym-legacy.c (get_buildsym_compunit): New function.
5925
0baae8db
TT
59262018-07-20 Tom Tromey <tom@tromey.com>
5927
5928 * xcoffread.c: Include buildsym-legacy.h.
5929 * windows-nat.c: Include buildsym-legacy.h.
5930 * stabsread.c: Include buildsym-legacy.h.
5931 * mdebugread.c: Include buildsym-legacy.h.
5932 * buildsym-legacy.h: New file.
5933 * buildsym-legacy.c: New file, from buildsym.c.
5934 * go32-nat.c: Include buildsym-legacy.h.
5935 * dwarf2read.c: Include buildsym-legacy.h.
5936 * dbxread.c: Include buildsym-legacy.h.
5937 * cp-namespace.c: Include buildsym-legacy.h.
5938 * coffread.c: Include buildsym-legacy.h.
5939 * buildsym.h: Move some contents to buildsym-legacy.h.
5940 * buildsym.c: Include buildsym-legacy.h. Move many functions to
5941 buildsym-legacy.c.
5942 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
5943
ab209f6f
TT
59442018-07-20 Tom Tromey <tom@tromey.com>
5945
5946 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
5947 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
5948 (buildsym_compunit::buildsym_compunit)
5949 (buildsym_compunit::~buildsym_compunit)
5950 (buildsym_compunit::get_macro_table): Define.
5951
74c72eac
TT
59522018-07-20 Tom Tromey <tom@tromey.com>
5953
5954 * buildsym.c (reset_symtab_globals): Remove.
5955 (buildsym_compunit::end_symtab_from_static_block): Update.
5956 (buildsym_compunit::augment_type_symtab): Update.
5957 (end_symtab_from_static_block): Call free_buildsym_compunit.
5958 (augment_type_symtab, end_symtab, end_expandable_symtab):
5959 Likewise.
5960
da6580e5
TT
59612018-07-20 Tom Tromey <tom@tromey.com>
5962
5963 * arch-utils.c: Do not include buildsym.h.
5964 * mipsread.c: Do not include buildsym.h.
5965 * machoread.c: Do not include buildsym.h.
5966 * elfread.c: Do not include buildsym.h.
5967
4a2125f5
TT
59682018-07-20 Tom Tromey <tom@tromey.com>
5969
5970 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
5971 initialization.
5972 (buildsym_compunit): Add new constructor.
5973 (struct buildsym_compunit) <get_last_source_file, finish_block,
5974 record_block_range, start_subfile, patch_subfile_names,
5975 push_subfile, pop_subfile, record_line, get_compunit_symtab,
5976 set_last_source_start_addr, get_last_source_start_addr,
5977 get_local_using_directives, set_local_using_directives,
5978 get_global_using_directives, outermost_context_p,
5979 get_current_context_stack, get_context_stack_depth,
5980 get_current_subfile, get_local_symbols, get_file_symbols,
5981 get_global_symbols, record_debugformat, record_producer,
5982 push_context, pop_context, end_symtab_get_static_block,
5983 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
5984 New public methods.
5985 <record_pending_block, finish_block_internal, make_blockvector,
5986 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
5987 private methods.
5988 Update all users.
5989
59902018-05-22 Tom Tromey <tom@tromey.com>
5991
5992 * buildsym.c (record_pending_block): Move earlier. Remove objfile
5993 parameter.
5994 (finish_block_internal): Update.
5995
6b213a47
TT
59962018-07-20 Tom Tromey <tom@tromey.com>
5997
5998 * buildsym.c (record_pending_block): Move earlier. Remove objfile
5999 parameter.
6000 (finish_block_internal): Update.
6001
b80a981d
TT
60022018-07-20 Tom Tromey <tom@tromey.com>
6003
6004 * buildsym.h (EXTERN): Don't define or undef.
6005 * buildsym.c (EXTERN): Don't define.
6006
ddb70602
TT
60072018-07-20 Tom Tromey <tom@tromey.com>
6008
6009 * buildsym.c: Remove TODO comment.
6010
b37dd3bc
TT
60112018-07-20 Tom Tromey <tom@tromey.com>
6012
6013 * coffread.c (coff_symtab_read): Update.
6014 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6015 (xcoff_new_init): Update.
6016 * mipsread.c (mipscoff_new_init): Update.
6017 * mdebugread.c (mdebug_build_psymtabs): Update.
6018 * elfread.c (elf_new_init): Update.
6019 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
6020 Update.
6021 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
6022 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6023 (stabsect_build_psymtabs): Update.
6024 * buildsym.h (buildsym_init): Don't declare.
6025 * buildsym.c: Update comment.
6026 (prepare_for_building): Remove.
6027 (start_symtab, restart_symtab): Update.
6028 (reset_symtab_globals): Update comment.
6029 (buildsym_init): Remove.
6030
e148f09d
TT
60312018-07-20 Tom Tromey <tom@tromey.com>
6032
6033 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
6034 * stabsread.c (patch_block_stabs, define_symbol, read_type)
6035 (read_enum_type, common_block_start, common_block_end)
6036 (cleanup_undefined_types_1, finish_global_stabs): Update.
6037 * mdebugread.c (psymtab_to_symtab_1): Update.
6038 * dwarf2read.c (fixup_go_packaging, read_func_scope)
6039 (read_lexical_block_scope, new_symbol): Update.
6040 * dbxread.c (process_one_symbol): Update.
6041 * coffread.c (coff_symtab_read, process_coff_symbol)
6042 (coff_read_enum_type): Update.
6043 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
6044 declare.
6045 (get_local_symbols, get_file_symbols, get_global_symbols): New
6046 functions.
6047 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
6048 m_global_symbols.
6049 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
6050 (~scoped_free_pendings): Update.
6051 (finish_block, prepare_for_building, reset_symtab_globals)
6052 (end_symtab_get_static_block, end_symtab_with_blockvector)
6053 (augment_type_symtab, push_context): Update.
6054 (get_local_symbols, get_file_symbols, get_global_symbols): New
6055 functions.
6056 (buildsym_init): Update.
6057
93b8bea4
TT
60582018-07-20 Tom Tromey <tom@tromey.com>
6059
6060 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
6061 (process_full_type_unit): Likewise.
6062 (dwarf2_start_symtab): Set list_in_scope.
6063
f62f6af5
TT
60642018-07-20 Tom Tromey <tom@tromey.com>
6065
6066 * dwarf2read.c (process_psymtab_comp_unit_reader)
6067 (build_type_psymtabs_reader): Do not set list_in_scope.
6068
1d376700
TT
60692018-07-20 Tom Tromey <tom@tromey.com>
6070
6071 * buildsym.c (free_pendings): Remove.
6072 (add_symbol_to_list, scoped_free_pendings)
6073 (finish_block_internal, buildsym_init): Update.
6074
c233e9c6
TT
60752018-07-20 Tom Tromey <tom@tromey.com>
6076
6077 * xcoffread.c (read_xcoff_symtab): Update.
6078 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
6079 Update.
6080 * dbxread.c (process_one_symbol): Update.
6081 * coffread.c (coff_symtab_read): Update.
6082 * buildsym.h (finish_block): Update.
6083 * buildsym.c (finish_block): Remove "listhead" argument.
6084 (end_symtab_get_static_block): Update.
6085
5ac04550
TT
60862018-07-20 Tom Tromey <tom@tromey.com>
6087
6088 * buildsym.h (class scoped_free_pendings): Remove constructor.
6089 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
6090 method.
6091 <m_pending_block_obstack, m_pending_blocks>: New members.
6092 (pending_block_obstack, pending_blocks): Remove.
6093 (scoped_free_pendings::scoped_free_pendings): Default.
6094 (~scoped_free_pendings): Update.
6095 (free_pending_blocks): Remove.
6096 (finish_block_internal, record_pending_block, make_blockvector)
6097 (end_symtab_get_static_block, augment_type_symtab, push_context)
6098 (buildsym_init): Update.
6099
7ea05a7b
TT
61002018-07-20 Tom Tromey <tom@tromey.com>
6101
6102 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
6103 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
6104 members.
6105 (pending_addrmap, pending_addrmap_obstack)
6106 (pending_addrmap_interesting): Remove.
6107 (scoped_free_pendings, record_block_range, make_blockvector)
6108 (prepare_for_building, reset_symtab_globals, buildsym_init):
6109 Update.
6110
3c65e5b3
TT
61112018-07-20 Tom Tromey <tom@tromey.com>
6112
6113 * xcoffread.c (process_linenos): Update.
6114 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
6115 * mdebugread.c (psymtab_to_symtab_1): Update.
6116 * dwarf2read.c (setup_type_unit_groups)
6117 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
6118 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
6119 * dbxread.c (process_one_symbol): Update.
6120 * coffread.c (coff_symtab_read, enter_linenos)
6121 (process_coff_symbol): Update.
6122 * buildsym.h (current_subfile): Don't declare.
6123 (get_current_subfile): Declare.
6124 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
6125 member.
6126 (start_subfile, free_buildsym_compunit, push_subfile)
6127 (prepare_for_building, start_symtab): Update.
6128 (get_current_subfile): New function.
6129
a60f3166
TT
61302018-07-20 Tom Tromey <tom@tromey.com>
6131
6132 * coffread.c (coff_symtab_read): Update.
6133 * xcoffread.c (read_xcoff_symtab): Update.
6134 * dwarf2read.c (new_symbol): Update.
6135 (read_func_scope, read_lexical_block_scope): Update.
6136 * dbxread.c (process_one_symbol): Update.
6137 * buildsym.h (context_stack, context_stack_depth): Don't declare.
6138 (outermost_context_p): Remove macro.
6139 (outermost_context_p, get_current_context_stack)
6140 (get_context_stack_depth): Declare.
6141 (pop_context): Return struct context_stack.
6142 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
6143 member.
6144 (context_stack_size): Remove.
6145 (INITIAL_CONTEXT_STACK_SIZE): Remove.
6146 (prepare_for_building, end_symtab_get_static_block)
6147 (augment_type_symtab, push_context): Update.
6148 (pop_context): Return struct context_stack.
6149 (outermost_context_p, get_current_context_stack)
6150 (get_context_stack_depth): New functions.
6151 (buildsym_init): Update.
6152
56ba65a0
TT
61532018-07-20 Tom Tromey <tom@tromey.com>
6154
6155 * rust-exp.y: Now a pure parser. Update all rules.
6156 (%union): Move earlier.
6157 (current_parser, work_obstack): Remove globals.
6158 (rust_parser, ~rust_parser): Update.
6159 (class rust_parser) <copy_name, concat3, crate_name, super_name,
6160 lex_character, lex_number, lex_string, lex_identifier,
6161 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
6162 convert_name, convert_params_to_expression,
6163 convert_ast_to_expression, ast_basic_type, ast_operation,
6164 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
6165 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
6166 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
6167 ast_array_type, ast_slice_type, ast_reference_type,
6168 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
6169 (rust_parse): Update.
6170 (rustyyerror, rustyylex): Add parser parameter.
6171 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
6172 (rust_lex_stringish_test, rust_lex_test_sequence)
6173 (rust_lex_test_trailing_dot, rust_lex_test_completion)
6174 (rust_lex_test_push_back, rust_lex_tests): Update.
6175
4c693332
PA
61762018-07-19 Pedro Alves <palves@redhat.com>
6177
6178 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
6179 gdb::unique_xmalloc_ptr.
6180 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
6181 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
6182 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
6183 copy-initialization.
6184 * guile/scm-pretty-print.c (ppscm_print_children): Use
6185 gdb::unique_xmalloc_ptr instead of cleanups.
6186 (gdbscm_apply_val_pretty_printer): Remove cleanups.
6187 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
6188 gdb::unique_xmalloc_ptr.
6189 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
6190 Adjust to use gdb::unique_xmalloc_ptr.
6191 * guile/scm-utils.c (extract_arg): Adjust.
6192 * guile/scm-value.c (gdbscm_value_field): Adjust to use
6193 gdb::unique_xmalloc_ptr instead of a cleanup.
6194
4581dc82
TT
61952018-07-19 Tom Tromey <tom@tromey.com>
6196
6197 * utils.c (do_value_free_to_mark)
6198 (make_cleanup_value_free_to_mark): Remove.
6199 * utils.h (make_cleanup_value_free_to_mark): Remove.
6200
43cc6c3a
PA
62012018-07-19 Pedro Alves <palves@redhat.com>
6202
6203 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
6204 forwarding reference.
6205
3a5f2a48
PA
62062018-07-18 Pedro Alves <palves@redhat.com>
6207
6208 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
6209 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
6210 cleanup.
6211
557e56be
PA
62122018-07-18 Pedro Alves <palves@redhat.com>
6213
6214 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
6215 exceptions.
6216 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
6217 (gdbscm_wrap): New.
6218 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
6219 directly instead of a cleanup.
6220 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
6221 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
6222 (vlscm_binop_gdbthrow): New, factored out from ...
6223 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
6224 (vlscm_rich_compare): Use gdbscm_wrap.
6225 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
6226 instead of a cleanup.
6227 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
6228 cleanup.
6229 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
6230 Use xfree directly instead of a cleanup.
6231 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
6232 Adjust to use gdbscm_wrap and scoped_value_mark.
6233 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
6234 (gdbscm_value_address, gdbscm_value_dereference)
6235 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
6236 scoped_value_mark.
6237 (gdbscm_value_dynamic_type): Use scoped_value_mark.
6238 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
6239 scoped_value_mark.
6240 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
6241 gdbscm_wrap and scoped_value_mark.
6242 (gdbscm_value_to_string): Use xfree directly instead of a
6243 cleanup. Move 'buffer' unique_ptr to TRY scope.
6244 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
6245 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
6246 scoped_value_mark.
6247 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
6248 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
6249 scoped_value_mark.
6250 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
6251 gdbscm_wrap.
6252
42dc7699
TV
62532018-07-18 Tom de Vries <tdevries@suse.de>
6254
6255 * findvar.c (default_read_var_value): Also resolve dynamic type for
6256 LOC_OPTIMIZED_OUT vars.
6257
6592ceed
MR
62582018-07-18 Maciej W. Rozycki <macro@mips.com>
6259
6260 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
6261 decoding.
6262
c6c6149a
TT
62632018-07-17 Tom Tromey <tom@tromey.com>
6264
6265 * guile/scm-param.c (pascm_set_func, pascm_show_func)
6266 (compute_enum_list, pascm_set_param_value_x)
6267 (gdbscm_parameter_value): Update.
6268 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
6269 (gdbscm_scm_to_host_string): Update.
6270 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
6271 Update.
6272 * guile/scm-cmd.c (cmdscm_add_completion): Update.
6273 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
6274 * guile/scm-string.c (gdbscm_scm_to_string): Return
6275 unique_xmalloc_ptr.
6276 (gdbscm_scm_to_host_string): Likewise.
6277
a1a31cb8
TT
62782018-07-17 Tom Tromey <tom@tromey.com>
6279
6280 * guile/guile.c (gdbscm_eval_from_control_command): Update.
6281 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
6282 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
6283 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
6284 unique_xmalloc_ptr.
6285
15bf3002
TT
62862018-07-17 Tom Tromey <tom@tromey.com>
6287
6288 * guile/scm-param.c (pascm_signal_setshow_error): Update.
6289 * guile/guile-internal.h (gdbscm_exception_message_to_string):
6290 Update.
6291 * guile/scm-cmd.c (cmdscm_function): Update.
6292 * guile/scm-pretty-print.c
6293 (ppscm_print_exception_unless_memory_error): Update.
6294 * guile/scm-exception.c (gdbscm_exception_message_to_string):
6295 Return unique_xmalloc_ptr.
6296
7eb1a66c
TT
62972018-07-17 Tom Tromey <tom@tromey.com>
6298
6299 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
6300 Use string_printf.
6301
ce73f310
JW
63022018-07-17 Jim Wilson <jimw@sifive.com>
6303
27724bad
JW
6304 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
6305 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
6306 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
6307 unecessary braces after EF_RISCV_RVC test. Delete call to
6308 set_gdbarch_decr_pc_after_break.
6309
ce73f310
JW
6310 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
6311 RISCV_LAST_FP_REGNUM + 1.
6312 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
6313
056dec39
TT
63142018-07-17 Tom Tromey <tom@tromey.com>
6315
6316 * configure.ac: Remove --disable-gdbcli.
6317 * configure: Rebuild.
6318 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
6319 (SUBDIR_CLI_CFLAGS): Remove.
6320 (SFILES): Use SUBDIR_CLI_SRCS.
6321 (COMMON_OBS): Use SUBDIR_CLI_OBS.
6322
4735f0ed
TT
63232018-07-17 Tom Tromey <tom@tromey.com>
6324
6325 PR gdb/18624:
6326 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
6327
117a0e99
JW
63282018-07-16 Jim Wilson <jimw@sifive.com>
6329
6330 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
6331
8a67aaa8
SM
63322018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6333
6334 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
6335 variable.
6336 (libunwind_frame_sniffer): Likewise.
6337 (libunwind_frame_prev_register): Likewise.
6338 (libunwind_sigtramp_frame_sniffer): Likewise.
6339 * ia64-tdep.c (ia64_access_reg): Likewise.
6340 (ia64_access_rse_reg): Likewise.
6341 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
6342 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
6343
ec74dcd8
SM
63442018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6345
6346 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
6347
a700e753
SM
63482018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6349
6350 * remote-sim.c (gdbsim_target::close,
6351 gdbsim_target::mourn_inferior): Remove unused variables.
6352
8b411ff8
SM
63532018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
6354
6355 * ia64-tdep.c (ktab_buf): New global.
6356 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
6357 (get_kernel_table): Adjust.
6358
edb0470b
TT
63592018-07-16 Tom Tromey <tom@tromey.com>
6360
6361 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
6362 * dwarf2read.c (using_directives, new_symbol): Use
6363 outermost_context_p.
6364 * dbxread.c (process_one_symbol): Use outermost_context_p.
6365 * coffread.c (coff_symtab_read): Use outermost_context_p.
6366
6cccc9a8
TT
63672018-07-16 Tom Tromey <tom@tromey.com>
6368
6369 * dwarf2read.c (using_directives, read_func_scope)
6370 (read_lexical_block_scope): Update.
6371 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6372 * buildsym.h (local_using_directives, global_using_directives):
6373 Don't declare.
6374 (get_local_using_directives, set_local_using_directives)
6375 (get_global_using_directives): Declare.
6376 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
6377 m_global_using_directives>: New members.
6378 (finish_block_internal, prepare_for_building)
6379 (reset_symtab_globals, end_symtab_get_static_block)
6380 (push_context): Update.
6381 (get_local_using_directives, set_local_using_directives)
6382 (get_global_using_directives): New functions.
6383 (buildsym_init): Update.
6384
652788a7
TT
63852018-07-16 Tom Tromey <tom@tromey.com>
6386
6387 * xcoffread.c (xcoff_initial_scan): Don't call
6388 free_pending_blocks.
6389 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
6390 * buildsym.h (class scoped_free_pendings): Add constructor.
6391 (free_pending_blocks): Don't declare.
6392 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
6393 (free_pending_blocks): Now static.
6394
8419ee53
TT
63952018-07-16 Tom Tromey <tom@tromey.com>
6396
6397 * buildsym.h (push_subfile, pop_subfile): Update declarations.
6398 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
6399 member.
6400 (struct subfile_stack): Remove.
6401 (subfile_stack): Remove.
6402 (push_subfile, pop_subfile, buildsym_init): Update.
6403
ccdac490
TT
64042018-07-16 Tom Tromey <tom@tromey.com>
6405
6406 * buildsym.c (push_subfile): Use gdb_assert.
6407 (pop_subfile): Use gdb_assert.
6408
43130d6f
TT
64092018-07-16 Tom Tromey <tom@tromey.com>
6410
6411 * buildsym.h (merge_symbol_lists): Remove.
6412 * buildsym.c (merge_symbol_lists): Remove.
6413
77d6f1aa
TT
64142018-07-16 Tom Tromey <tom@tromey.com>
6415
6416 * stabsread.c (scan_file_globals): Update comment.
6417 * stabsread.h (scan_file_globals): Move from buildsym.h.
6418 * buildsym.h (scan_file_globals): Move to stabsread.h.
6419
2c722d18
TT
64202018-07-16 Tom Tromey <tom@tromey.com>
6421
6422 * xcoffread.c (xcoff_new_init): Update.
6423 * mipsread.c (mipscoff_new_init): Update.
6424 * mdebugread.c (mdebug_build_psymtabs): Update.
6425 * elfread.c (elf_new_init): Update.
6426 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
6427 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
6428 * buildsym.h (buildsym_new_init): Don't declare.
6429 * buildsym.c (buildsym_new_init): Remove.
6430
5985ac61
TT
64312018-07-16 Tom Tromey <tom@tromey.com>
6432
6433 * stabsread.h (within_function): Move from buildsym.h.
6434 * stabsread.c (start_stabs): Clear within_function.
6435 * coffread.c (coff_start_symtab): Clear within_function.
6436 * buildsym.h (within_function): Move to stabsread.h.
6437 * buildsym.c (prepare_for_building): Update.
6438
6b84eeb2
TT
64392018-07-16 Tom Tromey <tom@tromey.com>
6440
6441 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
6442 * dwarf2read.c (dwarf2_start_symtab): Don't set
6443 processing_gcc_compilation.
6444 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
6445
2150c3ef
TT
64462018-07-16 Tom Tromey <tom@tromey.com>
6447
6448 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
6449 (next_symbol_text_func): Move from buildsym.h.
6450 * stabsread.c (hashname): Move from buildsym.c.
6451 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
6452 (next_symbol_text_func, hashname): Move to stabsread.h.
6453 * buildsym.c: Don't include bcache.h
6454 (hashname): Move to stasbread.c.
6455
0ec44fc0
TT
64562018-07-16 Tom Tromey <tom@tromey.com>
6457
6458 * buildsym.h (context_stack_size): Don't declare.
6459 * buildsym.c (context_stack_size): New global.
6460
81cc346d
TT
64612018-07-16 Tom Tromey <tom@tromey.com>
6462
6463 * dbxread.c (processing_acc_compilation): New global.
6464 * buildsym.h (processing_acc_compilation): Don't declare.
6465
2c99ee5c
TT
64662018-07-16 Tom Tromey <tom@tromey.com>
6467
6468 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
6469 * dbxread.c (read_ofile_symtab): Update.
6470 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
6471 * buildsym.h (last_source_start_addr): Remove.
6472 (set_last_source_start_addr, get_last_source_start_addr):
6473 Declare.
6474 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
6475 parameter.
6476 (struct buildsym_compunit) <m_last_source_start_addr>: New
6477 member.
6478 (prepare_for_building): Remove start_addr parameter.
6479 (start_symtab, restart_symtab, end_symtab_get_static_block)
6480 (end_symtab_with_blockvector): Update.
6481 (set_last_source_start_addr, get_last_source_start_addr): New
6482 functions.
6483
530fedbc
TT
64842018-07-16 Tom Tromey <tom@tromey.com>
6485
6486 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
6487 member.
6488 (have_line_numbers): Remove.
6489 (record_line, prepare_for_building, end_symtab_get_static_block)
6490 (augment_type_symtab): Update.
6491
6a976300
TT
64922018-07-16 Tom Tromey <tom@tromey.com>
6493
6494 * buildsym.c (~buildsym_compunit): Free the macro table.
6495 (struct buildsym_compunit) <get_macro_table, release_macros>: New
6496 methods.
6497 <m_pending_macros>: New member.
6498 (pending_macros): Remove.
6499 (~scoped_free_pendings, get_macro_table, prepare_for_building)
6500 (reset_symtab_globals, end_symtab_get_static_block)
6501 (end_symtab_with_blockvector, augment_type_symtab)
6502 (buildsym_init): Update.
6503
c0015d44
TT
65042018-07-16 Tom Tromey <tom@tromey.com>
6505
6506 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
6507 parameter.
6508 (buildsym_compunit::set_last_source_file): New method.
6509 <m_last_source_file>: New member.
6510 (prepare_for_building): Remove "name" parameter.
6511 (start_symtab, restart_symtab, reset_symtab_globals): Update.
6512 (last_source_file): Remove.
6513 (set_last_source_file, get_last_source_file): Update.
6514
e62cca7c
TT
65152018-07-16 Tom Tromey <tom@tromey.com>
6516
6517 * buildsym.c (prepare_for_building): Add assert.
6518
905eb0e2
TT
65192018-07-16 Tom Tromey <tom@tromey.com>
6520
6521 * buildsym.c (~buildsym_compunit): Update.
6522 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
6523 (start_subfile, patch_subfile_names)
6524 (end_symtab_with_blockvector): Update.
6525
b248663f
TT
65262018-07-16 Tom Tromey <tom@tromey.com>
6527
6528 * buildsym.c (struct buildsym_compunit): Add constructor,
6529 destructor, initializers.
6530 (start_buildsym_compunit): Remove.
6531 (free_buildsym_compunit): Use "delete".
6532 (start_symtab, restart_symtab): Use "new".
6533
ff27d073
SM
65342018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
6535
6536 * symfile.c (set_objfile_default_section_offset): Remove struct
6537 keyword.
6538
6a15ecf5
SH
65392018-07-14 Stafford Horne <shorne@gmail.com>
6540
6541 * (Responsible Maintainers): Add myself as or1k maintainer.
6542
027a4c30
TT
65432018-07-13 Tom Tromey <tom@tromey.com>
6544
6545 * symfile.c (set_objfile_default_section_offset): Use extra braces
6546 around initializer.
6547
5c1eda30
AA
65482018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6549
6550 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
6551 non-branching basr.
6552
bc7b042b
PW
65532018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6554
6555 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6556 unittests/cli-utils-selftests.c
6557 * unittests/cli-utils-selftests.c: New file.
6558
a14c4daa
PW
65592018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6560
6561 * NEWS: Mention new commands. Mention change to 'thread apply'.
6562
1fe75df7
PW
65632018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6564
6565 * thread.c (thr_try_catch_cmd): New function.
6566 (thread_apply_all_command): Handle qcs flags.
6567 (thread_apply_command): Handle qcs flags.
6568 (taas_command): New function.
6569 (tfaas_command): New function.
6570 (_initialize_thread): Update to setup the new commands 'taas
6571 and 'tfaas'. Change doc string for 'thread apply'.
6572
6a70eb7d
PW
65732018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6574
6575 * stack.c: (trailing_outermost_frame): New function, mostly
6576 extracted from backtrace_command_1.
6577 (leading_innermost_frame): New function.
6578 (backtrace_command_1): Update to call trailing_outermost_frame.
6579 (frame_apply_command_count): New function.
6580 (frame_apply_level_command): New function.
6581 (frame_apply_all_command): New function.
6582 (frame_apply_command): New function.
6583 (faas_command): New function.
6584 (frame_cmd_list): New variable.
6585 (_initialize_stack): Update to setup the new commands 'frame apply'
6586 and 'faas'.
6587
529c08b2
PW
65882018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6589
6590 * cli-utils.c (number_or_range_parser::get_number): Only handle
6591 numbers or convenience var as numbers.
6592 (parse_flags): New function.
6593 (parse_flags_qcs): New function.
6594 (number_or_range_parser::finished): Ensure parsing end is detected
6595 before end of string.
6596 * cli-utils.h (parse_flags): New function.
6597 (parse_flags_qcs): New function.
6598 (number_or_range_parser): Remove m_finished bool.
6599 (number_or_range_parser::skip_range): Set m_in_range to false.
6600
64b58472
SDJ
66012018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
6602
6603 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
6604 on Windows.
6605
c7ab0aef
SDJ
66062018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6607 Jan Kratochvil <jan.kratochvil@redhat.com>
6608 Paul Fertser <fercerpav@gmail.com>
6609 Tsutomu Seki <sekiriki@gmail.com>
6610 Pedro Alves <palves@redhat.com>
6611
6612 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6613 'unittests/parse-connection-spec-selftests.c'.
6614 (COMMON_SFILES): Add 'common/netstuff.c'.
6615 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
6616 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
6617 * common/netstuff.c: New file.
6618 * common/netstuff.h: New file.
6619 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
6620 (wait_for_connect): Update comment. New parameter
6621 'gdb::optional<int> sock' instead of 'struct serial *scb'.
6622 Use 'sock' directly instead of 'scb->fd'.
6623 (try_connect): New function, with code from 'net_open'.
6624 (net_open): Rewrite main loop to deal with multiple
6625 sockets/addresses. Handle IPv6-style hostnames; implement
6626 support for IPv6 connections.
6627 * unittests/parse-connection-spec-selftests.c: New file.
6628
4c7333b3
PA
66292018-07-11 Pedro Alves <palves@redhat.com>
6630
6631 PR gdb/23377
6632 * remote.c (remote_target::remote_detach_pid): Call
6633 set_current_process.
6634
a6f88f6e
PA
66352018-07-11 Pedro Alves <palves@redhat.com>
6636
6637 * h8300-tdep.c (h8300_gdbarch_init): Remove
6638 set_gdbarch_ecoff_reg_to_regnum calls.
6639
16ff70dd
SDJ
66402018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6641
6642 PR c++/23373
6643 * c-typeprint.c (c_type_print_base_struct_union): Don't print
6644 offsets/sizes for static members of a class/struct.
6645
12863263
AH
66462018-07-11 Alan Hayward <alan.hayward@arm.com>
6647
6648 * target-descriptions.c (tdesc_register_bitsize): Rename.
6649 * target-descriptions.h (tdesc_register_bitsize): Likewise.
6650 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
6651 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
6652
1123588c
TT
66532018-07-10 Tom Tromey <tom@tromey.com>
6654
6655 * breakpoint.c (moribund_locations): Now static and a
6656 std::vector.
6657 (breakpoint_init_inferior, moribund_breakpoint_here_p)
6658 (build_bpstat_chain, update_global_location_list)
6659 (breakpoint_retire_moribund): Update.
6660 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
6661 VEC.
6662
8c49aa89
AB
66632018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6664
6665 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
6666 (riscv_register_reggroup_p): Use new function, remove unneeded
6667 parenthesis.
6668 (riscv_push_dummy_call): Extend assert to compare against xlen or
6669 flen based on register type.
6670
42ecac17
AB
66712018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6672
6673 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
6674
055303e2
AB
66752018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6676
6677 * remote.c (show_hardware_watchpoint_limit): New function.
6678 (show_hardware_watchpoint_length_limit): New function.
6679 (show_hardware_breakpoint_limit): New function.
6680 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
6681 where appropriate, update help text.
6682
8fd32c1c
TT
66832018-07-09 Tom Tromey <tom@tromey.com>
6684
6685 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
6686 (CLIBS): Don't mention NAT_CLIBS.
6687
31278b51
TT
66882018-07-09 Tom Tromey <tom@tromey.com>
6689
6690 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
6691 (LIBGDB_OBS, clean mostlyclean): Update.
6692 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
6693
e5fd1493
TT
66942018-07-09 Tom Tromey <tom@tromey.com>
6695
6696 * Makefile.in (%.c: %.y): Use ECHO_YACC.
6697 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
6698 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
6699
981e0c0c
TT
67002018-07-09 Tom Tromey <tom@tromey.com>
6701
6702 * Makefile.in (ALLDEPFILES): Remove exec.c.
6703 (COMMON_OBS): Remove exec.o.
6704 (COMMON_SFILES): Add exec.c.
6705
14ccceb2
TT
67062018-07-09 Tom Tromey <tom@tromey.com>
6707
6708 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
6709
5d3c3a68
TT
67102018-07-09 Tom Tromey <tom@tromey.com>
6711
6712 * Makefile.in (clean mostlyclean): Remove stamp-version.
6713 (version.c): Depend on stamp-version.
6714 (stamp-version): New rule, from version.c rule.
6715
1998086d
TT
67162018-07-09 Tom Tromey <tom@tromey.com>
6717
6718 * Makefile.in (init.c): Depend on stamp-init.
6719 (stamp-init): New rule, from init.c rule.
6720 (clean mostlyclean): Remove stamp-init.
6721
4c754949
TT
67222018-07-09 Tom Tromey <tom@tromey.com>
6723
6724 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
6725 SUBDIR_GCC_COMPILE_SRCS.
6726
6497f1dd
TT
67272018-07-09 Tom Tromey <tom@tromey.com>
6728
6729 * Makefile.in (init.c): Remove some unused sed rules.
6730
97a34db9
TT
67312018-07-09 Tom Tromey <tom@tromey.com>
6732
6733 * Makefile.in (TSOBS): Remove.
6734 (INIT_FILES): Update.
6735 (LIBGDB_OBS): Update.
6736 (COMMON_SFILES): Add inflow.c.
6737 (SFILES): Remove inflow.c.
6738
25289ac1
JK
67392018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6740
6741 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
6742
e83f4d97
SM
67432018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
6744
4869c585
SM
6745 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
6746 get_saveloc_name, is_signal_frame_name, step_name,
6747 init_remote_name, create_addr_space_name,
6748 destroy_addr_space_name, search_unwind_table_name,
6749 find_dyn_list_name): Constify.
e83f4d97 6750
6821842f
SM
67512018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
6752
6753 * darwin-nat.c (darwin_pthread_kill): New function.
6754 (darwin_resume_thread): Use darwin_pthread_kill.
6755
c530603c
TV
67562018-07-05 Tom de Vries <tdevries@suse.de>
6757
6758 * macroexp.c (macro_buffer) <operator=>: New member function.
6759
a7d0f0f0
TT
67602018-07-04 Tom Tromey <tom@tromey.com>
6761
6762 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
6763
6242c6a6
SM
67642018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
6765
6766 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
6767 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
6768 * maint.c: Likewise.
6769 * top.c: Likewise.
6770
4e5b2f89
JB
67712018-07-04 Joel Brobecker <brobecker@adacore.com>
6772
6773 * NEWS: Create a new section for the next release branch.
6774 Rename the section of the current branch, now that it has
6775 been cut.
6776
538ccc4a
JB
67772018-07-04 Joel Brobecker <brobecker@adacore.com>
6778
6779 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
6780 * version.in: Bump version to 8.2.50.DATE-git.
6781
1b919490
VB
67822018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6783 Pedro Alves <palves@redhat.com>
6784
6785 * linux-nat.c (linux_init_ptrace): Rename to ...
6786 (linux_init_ptrace_procfs): ... this. Call
6787 linux_proc_init_warnings.
6788 (linux_nat_target::post_attach)
6789 (linux_nat_target::post_startup_inferior): Adjust.
6790 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
6791 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
6792
1ea5da02
TV
67932018-07-04 Tom de Vries <tdevries@suse.de>
6794
6795 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
6796 check ...
6797 (read_comp_unit_head): ... here.
6798
f51e0e20
TT
67992018-07-03 Tom Tromey <tom@tromey.com>
6800
6801 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
6802 (stop_tracing, tstatus_command)
6803 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
6804 (print_one_static_tracepoint_marker): Update.
6805 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
6806 std::vector.
6807 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
6808 VEC.
6809 (all_tracepoints, static_tracepoints_here): Return std::vector.
6810
d7e15655
TT
68112018-07-03 Tom Tromey <tom@tromey.com>
6812
6813 * common/ptid.c (ptid_equal): Remove.
6814 * common/ptid.h (ptid_equal): Don't declare.
6815 * ada-tasks.c: Update.
6816 * breakpoint.c: Update.
6817 * common/agent.c: Update.
6818 * corelow.c: Update.
6819 * darwin-nat-info.c: Update.
6820 * darwin-nat.c: Update.
6821 * dcache.c: Update.
6822 * dtrace-probe.c: Update.
6823 * dummy-frame.c: Update.
6824 * fbsd-nat.c: Update.
6825 * frame.c: Update.
6826 * gdbthread.h: Update.
6827 * gnu-nat.c: Update.
6828 * go32-nat.c: Update.
6829 * inf-loop.c: Update.
6830 * inf-ptrace.c: Update.
6831 * infcall.c: Update.
6832 * infcmd.c: Update.
6833 * inflow.c: Update.
6834 * infrun.c: Update.
6835 * linux-fork.c: Update.
6836 * linux-nat.c: Update.
6837 * linux-thread-db.c: Update.
6838 * mi/mi-cmd-var.c: Update.
6839 * mi/mi-interp.c: Update.
6840 * mi/mi-main.c: Update.
6841 * nto-procfs.c: Update.
6842 * ppc-linux-tdep.c: Update.
6843 * procfs.c: Update.
6844 * python/py-inferior.c: Update.
6845 * python/py-record-btrace.c: Update.
6846 * python/py-record.c: Update.
6847 * ravenscar-thread.c: Update.
6848 * regcache.c: Update.
6849 * remote-sim.c: Update.
6850 * remote.c: Update.
6851 * sol-thread.c: Update.
6852 * solib.c: Update.
6853 * target.c: Update.
6854 * tui/tui-stack.c: Update.
6855 * varobj.c: Update.
6856 * windows-nat.c: Update.
6857 * windows-tdep.c: Update.
6858
26a57c92
TT
68592018-07-03 Tom Tromey <tom@tromey.com>
6860
6861 * common/ptid.c (ptid_match): Remove.
6862 * common/ptid.h (ptid_match): Don't declare.
6863 * fbsd-nat.c: Update.
6864 * infcmd.c: Update.
6865 * infrun.c: Update.
6866 * linux-nat.c: Update.
6867 * record-btrace.c: Update.
6868 * regcache.c: Update.
6869 * remote.c: Update.
6870
d2a107e3
TT
68712018-07-03 Tom Tromey <tom@tromey.com>
6872
6873 * common/ptid.c (ptid_tid_p): Remove.
6874 * common/ptid.h (ptid_tid_p): Don't declare.
6875 * sol-thread.c: Update.
6876
15a9e13e
TT
68772018-07-03 Tom Tromey <tom@tromey.com>
6878
6879 * common/ptid.c (ptid_lwp_p): Remove.
6880 * common/ptid.h (ptid_lwp_p): Don't declare.
6881 * fbsd-nat.c: Update.
6882 * linux-nat.c: Update.
6883 * nat/linux-procfs.c: Update.
6884 * nat/x86-linux-dregs.c: Update.
6885 * sol-thread.c: Update.
6886
0e998d96
TT
68872018-07-03 Tom Tromey <tom@tromey.com>
6888
6889 * common/ptid.c (ptid_is_pid): Remove.
6890 * common/ptid.h (ptid_is_pid): Don't declare.
6891 * infrun.c: Update.
6892 * linux-nat.c: Update.
6893 * mi/mi-interp.c: Update.
6894 * remote.c: Update.
6895 * thread.c: Update.
6896
cc6bcb54
TT
68972018-07-03 Tom Tromey <tom@tromey.com>
6898
6899 * common/ptid.c (ptid_get_tid): Remove.
6900 * common/ptid.h (ptid_get_tid): Don't declare.
6901 * ada-tasks.c: Update.
6902 * aix-thread.c: Update.
6903 * bsd-uthread.c: Update.
6904 * darwin-nat.c: Update.
6905 * fbsd-nat.c: Update.
6906 * i386-darwin-nat.c: Update.
6907 * infrun.c: Update.
6908 * linux-tdep.c: Update.
6909 * nto-procfs.c: Update.
6910 * ppc-ravenscar-thread.c: Update.
6911 * python/py-infthread.c: Update.
6912 * ravenscar-thread.c: Update.
6913 * sol-thread.c: Update.
6914 * sparc-ravenscar-thread.c: Update.
6915 * windows-nat.c: Update.
6916
e38504b3
TT
69172018-07-03 Tom Tromey <tom@tromey.com>
6918
6919 * common/ptid.c (ptid_get_lwp): Remove.
6920 * common/ptid.h (ptid_get_lwp): Don't declare.
6921 * aarch64-linux-nat.c: Update.
6922 * ada-tasks.c: Update.
6923 * aix-thread.c: Update.
6924 * amd64-linux-nat.c: Update.
6925 * arm-linux-nat.c: Update.
6926 * corelow.c: Update.
6927 * fbsd-nat.c: Update.
6928 * fbsd-tdep.c: Update.
6929 * gnu-nat.c: Update.
6930 * i386-cygwin-tdep.c: Update.
6931 * i386-gnu-nat.c: Update.
6932 * i386-linux-nat.c: Update.
6933 * ia64-linux-nat.c: Update.
6934 * inf-ptrace.c: Update.
6935 * infrun.c: Update.
6936 * linux-fork.c: Update.
6937 * linux-nat.c: Update.
6938 * linux-tdep.c: Update.
6939 * linux-thread-db.c: Update.
6940 * mips-linux-nat.c: Update.
6941 * nat/aarch64-linux-hw-point.c: Update.
6942 * nat/aarch64-linux.c: Update.
6943 * nat/linux-btrace.c: Update.
6944 * nat/linux-osdata.c: Update.
6945 * nat/linux-procfs.c: Update.
6946 * nat/x86-linux-dregs.c: Update.
6947 * obsd-nat.c: Update.
6948 * ppc-fbsd-nat.c: Update.
6949 * ppc-linux-nat.c: Update.
6950 * procfs.c: Update.
6951 * python/py-infthread.c: Update.
6952 * ravenscar-thread.c: Update.
6953 * remote.c: Update.
6954 * s390-linux-nat.c: Update.
6955 * sol-thread.c: Update.
6956 * sol2-tdep.c: Update.
6957 * spu-linux-nat.c: Update.
6958 * x86-linux-nat.c: Update.
6959 * xtensa-linux-nat.c: Update.
6960
e99b03dc
TT
69612018-07-03 Tom Tromey <tom@tromey.com>
6962
6963 * common/ptid.c (ptid_get_pid): Remove.
6964 * common/ptid.h (ptid_get_pid): Don't declare.
6965 * aarch64-linux-nat.c: Update.
6966 * ada-lang.c: Update.
6967 * aix-thread.c: Update.
6968 * alpha-bsd-nat.c: Update.
6969 * amd64-fbsd-nat.c: Update.
6970 * amd64-linux-nat.c: Update.
6971 * arm-linux-nat.c: Update.
6972 * arm-nbsd-nat.c: Update.
6973 * auxv.c: Update.
6974 * break-catch-syscall.c: Update.
6975 * breakpoint.c: Update.
6976 * bsd-uthread.c: Update.
6977 * corelow.c: Update.
6978 * ctf.c: Update.
6979 * darwin-nat.c: Update.
6980 * fbsd-nat.c: Update.
6981 * fbsd-tdep.c: Update.
6982 * gcore.c: Update.
6983 * gnu-nat.c: Update.
6984 * hppa-nbsd-nat.c: Update.
6985 * hppa-obsd-nat.c: Update.
6986 * i386-fbsd-nat.c: Update.
6987 * ia64-linux-nat.c: Update.
6988 * inf-ptrace.c: Update.
6989 * infcmd.c: Update.
6990 * inferior.c: Update.
6991 * inferior.h: Update.
6992 * inflow.c: Update.
6993 * infrun.c: Update.
6994 * linux-fork.c: Update.
6995 * linux-nat.c: Update.
6996 * linux-tdep.c: Update.
6997 * linux-thread-db.c: Update.
6998 * m68k-bsd-nat.c: Update.
6999 * mi/mi-interp.c: Update.
7000 * mi/mi-main.c: Update.
7001 * mips-linux-nat.c: Update.
7002 * mips-nbsd-nat.c: Update.
7003 * mips64-obsd-nat.c: Update.
7004 * nat/aarch64-linux-hw-point.c: Update.
7005 * nat/aarch64-linux.c: Update.
7006 * nat/linux-btrace.c: Update.
7007 * nat/linux-osdata.c: Update.
7008 * nat/linux-procfs.c: Update.
7009 * nat/x86-linux-dregs.c: Update.
7010 * nto-procfs.c: Update.
7011 * obsd-nat.c: Update.
7012 * ppc-linux-nat.c: Update.
7013 * ppc-nbsd-nat.c: Update.
7014 * ppc-obsd-nat.c: Update.
7015 * proc-service.c: Update.
7016 * procfs.c: Update.
7017 * python/py-inferior.c: Update.
7018 * python/py-infthread.c: Update.
7019 * ravenscar-thread.c: Update.
7020 * record.c: Update.
7021 * remote-sim.c: Update.
7022 * remote.c: Update.
7023 * rs6000-nat.c: Update.
7024 * s390-linux-nat.c: Update.
7025 * sh-nbsd-nat.c: Update.
7026 * sol-thread.c: Update.
7027 * sparc-nat.c: Update.
7028 * sparc64-tdep.c: Update.
7029 * spu-linux-nat.c: Update.
7030 * spu-tdep.c: Update.
7031 * target-debug.h: Update.
7032 * target.c: Update.
7033 * thread.c: Update.
7034 * tid-parse.c: Update.
7035 * tracefile-tfile.c: Update.
7036 * vax-bsd-nat.c: Update.
7037 * windows-nat.c: Update.
7038 * x86-linux-nat.c: Update.
7039 * x86-nat.c: Update.
7040
f2907e49
TT
70412018-07-03 Tom Tromey <tom@tromey.com>
7042
7043 * common/ptid.c (pid_to_ptid): Remove.
7044 * common/ptid.h (pid_to_ptid): Don't declare.
7045 * aix-thread.c: Update.
7046 * arm-linux-nat.c: Update.
7047 * common/ptid.c: Update.
7048 * common/ptid.h: Update.
7049 * corelow.c: Update.
7050 * ctf.c: Update.
7051 * darwin-nat.c: Update.
7052 * fbsd-nat.c: Update.
7053 * fork-child.c: Update.
7054 * gnu-nat.c: Update.
7055 * go32-nat.c: Update.
7056 * inf-ptrace.c: Update.
7057 * infcmd.c: Update.
7058 * inferior.c: Update.
7059 * infrun.c: Update.
7060 * linux-fork.c: Update.
7061 * linux-nat.c: Update.
7062 * nat/aarch64-linux-hw-point.c: Update.
7063 * nat/fork-inferior.c: Update.
7064 * nat/x86-linux-dregs.c: Update.
7065 * nto-procfs.c: Update.
7066 * obsd-nat.c: Update.
7067 * procfs.c: Update.
7068 * progspace.c: Update.
7069 * remote.c: Update.
7070 * rs6000-nat.c: Update.
7071 * s390-linux-nat.c: Update.
7072 * sol-thread.c: Update.
7073 * spu-linux-nat.c: Update.
7074 * target.c: Update.
7075 * top.c: Update.
7076 * tracefile-tfile.c: Update.
7077 * windows-nat.c: Update.
7078
fd79271b
TT
70792018-07-03 Tom Tromey <tom@tromey.com>
7080
7081 * common/ptid.h (ptid_build): Don't declare.
7082 * common/ptid.c (ptid_build): Remove.
7083 * aix-thread.c: Update.
7084 * bsd-kvm.c: Update.
7085 * bsd-uthread.c: Update.
7086 * common/agent.c: Update.
7087 * common/ptid.c: Update.
7088 * common/ptid.h: Update.
7089 * corelow.c: Update.
7090 * darwin-nat.c: Update.
7091 * fbsd-nat.c: Update.
7092 * gnu-nat.c: Update.
7093 * linux-fork.c: Update.
7094 * linux-nat.c: Update.
7095 * linux-thread-db.c: Update.
7096 * nat/linux-osdata.c: Update.
7097 * nat/linux-procfs.c: Update.
7098 * nto-procfs.c: Update.
7099 * obsd-nat.c: Update.
7100 * proc-service.c: Update.
7101 * procfs.c: Update.
7102 * ravenscar-thread.c: Update.
7103 * remote-sim.c: Update.
7104 * remote.c: Update.
7105 * sol-thread.c: Update.
7106 * target.c: Update.
7107 * windows-nat.c: Update.
7108
057302ce
TT
71092018-07-03 Tom Tromey <tom@tromey.com>
7110
7111 * infrun.c (follow_exec): Use exit_inferior_silent.
7112 * inferior.c (exit_inferior_num_silent): Remove.
7113 * inferior.h (exit_inferior_num_silent): Don't declare.
7114
a50c11c6
TT
71152018-07-03 Tom Tromey <tom@tromey.com>
7116
7117 PR cli/23340:
7118 * darwin-nat.c (darwin_attach_pid): Reset inferior and
7119 inferior_ptid on error.
7120
471b9d15
MR
71212018-07-02 Maciej W. Rozycki <macro@mips.com>
7122 Simon Marchi <simon.marchi@polymtl.ca>
7123
7124 PR tdep/8282
7125 * disasm.h (gdb_disassembler): Add
7126 `m_disassembler_options_holder'. member
7127 * disasm.c (get_all_disassembler_options): New function.
7128 (gdb_disassembler::gdb_disassembler): Use it.
7129 (gdb_buffered_insn_length_init_dis): Likewise.
7130 (gdb_buffered_insn_length): Adjust accordingly.
7131 (set_disassembler_options): Handle options with arguments.
7132 (show_disassembler_options_sfunc): Likewise. Add a leading new
7133 line if showing options with descriptions.
7134 (disassembler_options_completer): Adapt to using the
7135 `disasm_options_and_args_t' structure.
7136 * mips-tdep.c (mips_disassembler_options): New variable.
7137 (mips_disassembler_options_o32): Likewise.
7138 (mips_disassembler_options_n32): Likewise.
7139 (mips_disassembler_options_n64): Likewise.
7140 (gdb_print_insn_mips): Don't set `disassembler_options'.
7141 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
7142 functions.
7143 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
7144 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
7145 `gdbarch_disassembler_options_implicit' and
7146 `gdbarch_valid_disassembler_options'.
7147 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
7148 `disasm_options_and_args_t' structure.
7149 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
7150 method.
7151 (valid_disassembler_options): Switch from `disasm_options_t' to
7152 the `disasm_options_and_args_t' structure.
7153 * NEWS: Document `set disassembler-options' support for the MIPS
7154 target.
7155 * gdbarch.h: Regenerate.
7156 * gdbarch.c: Regenerate.
7157
41823f29
SH
71582018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
7159
7160 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
7161
41206e32
JB
71622018-06-29 Joel Brobecker <brobecker@adacore.com>
7163
7164 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
7165 parameter in call to amd64_target_description.
7166 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
7167 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
7168 (amd64fbsd_init_abi): Likewise.
7169 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7170 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7171 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7172 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
7173
de52b960
PA
71742018-06-29 Pedro Alves <palves@redhat.com>
7175
7176 * gdb/amd64-tdep.h (amd64_create_target_description): Add
7177 "segments" parameter.
7178 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
7179 (_initialize_amd64_tdep): Update call to
7180 amd64_create_target_description.
7181 (amd64_target_description): Add "segments" parameter. Adjust
7182 the implementation to use it.
7183 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
7184 call to amd64_create_target_description.
7185 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
7186 * gdb/arch/amd64.h (amd64_create_target_description): Add
7187 "segments" register.
7188 * gdb/arch/amd64.c (amd64_create_target_description): Add
7189 "segments" parameter. Call create_feature_i386_64bit_segments
7190 only if SEGMENTS is true.
7191 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
7192 call to amd64_create_target_description.
7193
75acb486
PA
71942018-06-29 Pedro Alves <palves@redhat.com>
7195
7196 * thread.c (thread_target_id_str): New, factored out from ...
7197 (print_thread_info_1): ... here. Use it to compute the max
7198 "Target Id" column width.
7199
c76a8ea3
PA
72002018-06-29 Pedro Alves <palves@redhat.com>
7201
7202 * remote.c (remote_target::extra_thread_info): Delete
7203 'display_buf' and 'n' locals. from the cache, regardless of
7204 packet mechanims is in use. Use cache for qThreadExtra and qP
7205 methods too.
7206
cd2bb709
PA
72072018-06-29 Pedro Alves <palves@redhat.com>
7208
7209 * blockframe.c (find_pc_sect_containing_function): New function.
7210 * breakpoint.c (print_breakpoint_location): Don't call
7211 find_pc_sect_function.
7212 * linespec.c (create_sals_line_offset): Record the location's
7213 symbol in the sal.
7214 * linespec.c (convert_address_location_to_sals): Fill in sal's
7215 symbol with find_pc_sect_containing_function.
7216 * symtab.c (find_function_start_sal): Rename to ...
7217 (find_function_start_sal_1): ... this.
7218 (find_function_start_sal): Reimplement as wrapper around
7219 find_function_start_sal_1, and use
7220 find_pc_sect_containing_function to fill in the sal's symbol.
7221 (find_function_start_sal(symbol*, bool)): Adjust.
7222 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
7223 comments.
7224 (find_pc_sect_containing_function): Declare.
7225
991ff292
PA
72262018-06-29 Pedro Alves <palves@redhat.com>
7227
7228 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
7229 true if the the location has no symbol.
7230
44cee4fd
TT
72312018-06-28 Tom Tromey <tom@tromey.com>
7232
7233 * NEWS: Mention --enable-codesign.
7234 * silent-rules.mk (ECHO_SIGN): New variable.
7235 * configure.ac: Add --enable-codesign.
7236 * configure: Rebuild.
7237 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
7238 (gdb$(EXEEXT)): Optionally invoke codesign.
7239
f2ffa92b
PA
72402018-06-28 Pedro Alves <palves@redhat.com>
7241
7242 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
7243 comments.
7244 (switch_to_thread_no_regs): Adjust comment.
7245 * infcmd.c (stop_pc): Delete.
7246 (post_create_inferior, info_program_command): Replace references
7247 to stop_pc with references to thread_info->suspend.stop_pc.
7248 * inferior.h (stop_pc): Delete declaration.
7249 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
7250 (handle_inferior_event_1, handle_signal_stop)
7251 (process_event_stop_test, keep_going_stepped_thread)
7252 (handle_step_into_function, handle_step_into_function_backward)
7253 (print_stop_location): Replace references to stop_pc with
7254 references to thread_info->suspend.stop_pc.
7255 (struct infcall_suspend_state) <stop_pc>: Delete field.
7256 (save_infcall_suspend_state, restore_infcall_suspend_state):
7257 Remove references to inf_stat->stop_pc.
7258 * linux-fork.c (fork_load_infrun_state): Likewise.
7259 * record-btrace.c (record_btrace_set_replay): Likewise.
7260 * record-full.c (record_full_goto_entry): Likewise.
7261 * remote.c (print_one_stopped_thread): Likewise.
7262 * target.c (target_resume): Extend comment.
7263 * thread.c (set_executing_thread): New.
7264 (set_executing): Use it.
7265 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
7266 Remove references to stop_pc.
7267
ecdc3a72
PA
72682018-06-28 Pedro Alves <palves@redhat.com>
7269
7270 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
7271 Moving fetching stop_pc until after ecs->event_thread is refreshed.
7272
d95d3aef
TT
72732018-06-28 Tom Tromey <tom@tromey.com>
7274
7275 * coffread.c (coff_symfile_finish): Update.
7276 * xcoffread.c (xcoff_symfile_finish): Update.
7277 * elfread.c (elf_symfile_finish): Update.
7278 * symfile.h (dwarf2_free_objfile): Don't declare.
7279 * dwarf2read.c (_initialize_dwarf2_read): Use
7280 register_objfile_data_with_cleanup.
7281 (dwarf2_free_objfile): Now static. Change signature.
7282
291f9a96
PT
72832018-06-28 Petr Tesarik <ptesarik@suse.cz>
7284
7285 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
7286 option "-o" to add-symbol-file-load to add an offset to each
7287 section's load address.
7288 * symfile.c (set_objfile_default_section_offset): New function.
7289
d81a3eaf
PT
72902018-06-28 Petr Tesarik <ptesarik@suse.cz>
7291
7292 * symfile.c (add_symbol_file_command): Make sure that sections
7293 with the same name are sorted in the same order.
7294
ed6dfe51
PT
72952018-06-28 Petr Tesarik <ptesarik@suse.cz>
7296
7297 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
7298 require the second argument. If omitted, load sections at the
7299 addresses specified in the file.
7300
d4d429d5
PT
73012018-06-28 Petr Tesarik <ptesarik@suse.cz>
7302
7303 * symfile.c (symbol_file_command, symbol_file_add_main_1)
7304 (_initialize_symfile): Add option "-o" to symbol-file to add an
7305 offset to each section of the symbol file.
7306
39b27ab6
PT
73072018-06-28 Petr Tesarik <ptesarik@suse.cz>
7308
7309 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
7310
41827fc3
TT
73112018-06-27 Tom Tromey <tom@tromey.com>
7312
7313 * stack.c (_initialize_stack): Update "func" help text.
7314
0c6aef22
TT
73152018-06-27 Tom Tromey <tom@tromey.com>
7316
7317 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
7318 std::vector.
7319 (unwind_infopy_str, pyuw_create_unwind_info)
7320 (unwind_infopy_add_saved_register, pyuw_sniffer)
7321 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
7322 Update.
7323 (struct saved_reg): Add constructor.
7324 <value>: Now a gdbpy_ref<>.
7325
63177289
TT
73262018-06-27 Tom Tromey <tom@tromey.com>
7327
7328 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
7329
e76f78a0
SM
73302018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7331
7332 * gdb-gdb.py.in: Format using autopep8.
7333
9a14af7b
SM
73342018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7335
7336 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
7337 (type_lookup_function): Recognize CORE_ADDR values.
7338
189366cd
SM
73392018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7340
7341 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
7342 print tag_name.
7343
68ad5fb9
SM
73442018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7345
7346 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
7347 <__lt__>: Add.
7348
141ec9f6
SM
73492018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7350
7351 * gdb-gdb.py: Move to...
7352 * gdb-gdb.py.in: ... here.
7353 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
7354 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
7355 dependencies.
7356 (distclean): Remove gdb-gdb.py when cleaning.
7357 (gdb-gdb.py, gdb-gdb.gdb): New rules.
7358 * configure: Re-generate.
7359
4c4e7ad4
PA
73602018-06-27 Pedro Alves <palves@redhat.com>
7361
7362 * proc-service.c (get_ps_regcache): New.
7363 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7364 (ps_lsetfpregs): Use it.
7365
7ab6656f
OJ
73662018-06-27 Omair Javaid <omair.javaid@linaro.org>
7367
7368 PR gdb/21695
4399bce9
PA
7369 * dwarf2read.c (lnp_state_machine::check_line_address): Update
7370 declaration.
7ab6656f
OJ
7371 (dwarf_decode_lines_1): Adjust.
7372
bd583225
SM
73732018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7374
7375 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
7376 override.
7377 <info_proc>: Likewise.
7378
9a325b7b
JB
73792018-06-26 Joel Brobecker <brobecker@adacore.com>
7380
7381 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
7382 to windows_fetch_one_register, and only handle the case of
7383 fetching one register. Move the code that reloads the context
7384 and iterates over all registers if R is negative to...
7385 (windows_nat_target::fetch_registers): ... here.
7386 (do_windows_store_inferior_registers): Rename to
7387 windows_store_one_register, and only handle the case of storing
7388 one register. Move the code that handles the case where r is
7389 negative to...
7390 (windows_nat_target::store_registers) ... here.
7391
a33ccfc7
TT
73922018-06-26 Tom Tromey <tom@tromey.com>
7393
7394 PR rust/22574:
7395 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
7396 * rust-lang.c (rust_print_struct_def): Add podata parameter.
7397 Update.
7398 (rust_internal_print_type): Add podata parameter.
7399 (rust_print_type): Update.
7400
e0c547d1
TT
74012018-06-26 Tom Tromey <tom@tromey.com>
7402
7403 * typeprint.h (struct print_offset_data) <update, finish,
7404 maybe_print_hole>: New methods.
7405 <indentation>: New constant.
7406 * typeprint.c (print_offset_data::indentation): Define.
7407 (print_offset_data::maybe_print_hole, print_offset_data::update)
7408 (print_offset_data::finish): Move from c-typeprint.c and rename.
7409 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
7410 (print_spaces_filtered_with_print_options): Update.
7411 (c_print_type_union_field_offset, maybe_print_hole)
7412 (c_print_type_struct_field_offset): Move to typeprint.c and
7413 rename.
7414 (c_type_print_base_struct_union): Update.
7415
75cbc781
PA
74162018-06-25 Pedro Alves <palves@redhat.com>
7417
7418 * gdbthread.h (thread_info_ref, delete_thread)
7419 (delete_thread_silent, first_thread_of_inferior)
7420 (any_thread_of_inferior, switch_to_thread)
7421 (enable_thread_stack_temporaries)
7422 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7423 (get_last_thread_stack_temporary)
7424 (value_in_thread_stack_temporaries, can_access_registers_thread):
7425 Spell out "struct thread_info" instead of just "thread_info".
7426 * inferior.h (notice_new_inferior): Likewise.
7427
b7a08269
PA
74282018-06-25 Pedro Alves <palves@redhat.com>
7429
7430 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
7431 pass thread_info pointer to delete_thread.
7432 (windows_nat_target::detach): Pass inferior pointer to
7433 detach_inferior.
7434 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
7435 delete_thread.
7436 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
7437 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
7438 and pass a thread_info pointer to delete_thread.
7439 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
7440 pass thread_info pointer to delete_thread.
7441 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
7442 delete_thread_silent call.
7443 * procfs.c (procfs_target::detach): Pass inferior pointer to
7444 detach_inferior.
7445 (procfs_target::wait): Pass thread_info pointer to delete_thread.
7446 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
7447 delete_thread_silent call.
7448 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
7449 pass thread_info pointer to delete_thread.
7450 (windows_nat_target::detach): Pass inferior pointer to
7451 delete_inferior.
7452
8e7767e3
AH
74532018-06-22 Alan Hayward <alan.hayward@arm.com>
7454
7455 * regcache.c (readable_regcache::read_part): Fix asserts.
7456 (reg_buffer::raw_collect_part): New function.
7457 (regcache::write_part): Fix asserts.
7458 (reg_buffer::raw_supply_part): New function.
7459 (regcache::transfer_regset_register): New helper function.
7460 (regcache::transfer_regset): Call new functions.
7461 (regcache_supply_regset): Use gdb_byte*.
7462 (regcache::supply_regset): Likewise.
7463 (regcache_collect_regset): Likewise.
7464 (regcache::collect_regset): Likewise.
7465 * regcache.h (reg_buffer::raw_collect_part): New declaration.
7466 (reg_buffer::raw_supply_part): Likewise.
7467 (regcache::transfer_regset_register): Likewise.
7468 (regcache::transfer_regset): Use gdb_byte*.
7469
bfd60e34
AH
74702018-06-22 Alan Hayward <alan.hayward@arm.com>
7471
7472 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
7473
00431a78
PA
74742018-06-21 Pedro Alves <palves@redhat.com>
7475
7476 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
7477 instead of a ptid_t. All callers adjusted.
7478 * ada-tasks.c (ada_get_task_number): Likewise. All callers
7479 adjusted.
7480 (print_ada_task_info, display_current_task_id, task_command_1):
7481 Adjust.
7482 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
7483 inferior_thread.
7484 (breakpoint_kind): Adjust.
7485 (remove_breakpoints_pid): Rename to ...
7486 (remove_breakpoints_inf): ... this. Adjust to take an inferior
7487 pointer. All callers adjusted.
7488 (bpstat_clear_actions): Use inferior_thread.
7489 (get_bpstat_thread): New.
7490 (bpstat_do_actions): Use it.
7491 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
7492 to take a thread_info pointer. All callers adjusted.
7493 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
7494 (breakpoint_re_set_thread): Use inferior_thread.
7495 * breakpoint.h (struct inferior): Forward declare.
7496 (bpstat_stop_status): Update.
7497 (remove_breakpoints_pid): Delete.
7498 (remove_breakpoints_inf): New.
7499 * bsd-uthread.c (bsd_uthread_target::wait)
7500 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
7501 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
7502 (maint_btrace_packet_history_cmd)
7503 (maint_btrace_clear_packet_history_cmd): Adjust.
7504 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
7505 inferior_thread.
7506 * cli/cli-interp.c: Include "inferior.h".
7507 * common/refcounted-object.h (struct
7508 refcounted_object_ref_policy): New.
7509 * compile/compile-object-load.c: Include gdbthread.h.
7510 (store_regs): Use inferior_thread.
7511 * corelow.c (core_target::close): Use current_inferior.
7512 (core_target_open): Adjust to use first_thread_of_inferior and use
7513 the current inferior.
7514 * ctf.c (ctf_target::close): Adjust to use current_inferior.
7515 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
7516 <thread>: ... this new field. All references adjusted.
7517 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
7518 Take a thread_info pointer instead of a ptid_t.
7519 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
7520 (dummy_frame_discard, register_dummy_frame_dtor): Take a
7521 thread_info pointer instead of a ptid_t.
7522 * elfread.c: Include "inferior.h".
7523 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
7524 Use inferior_thread.
7525 * eval.c (evaluate_subexp): Likewise.
7526 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
7527 inferior_thread.
7528 * gdb_proc_service.h (struct thread_info): Forward declare.
7529 (struct ps_prochandle) <ptid>: Delete, replaced by ...
7530 <thread>: ... this new field. All references adjusted.
7531 * gdbarch.h, gdbarch.c: Regenerate.
7532 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
7533 'thread' parameter. All implementations and callers adjusted.
7534 * gdbthread.h (thread_info) <set_running>: New method.
7535 (delete_thread, delete_thread_silent): Take a thread_info pointer
7536 instead of a ptid.
7537 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
7538 (first_thread_of_process): Delete, replaced by ...
7539 (first_thread_of_inferior): ... this new function. All callers
7540 adjusted.
7541 (any_live_thread_of_process): Delete, replaced by ...
7542 (any_live_thread_of_inferior): ... this new function. All callers
7543 adjusted.
7544 (switch_to_thread, switch_to_no_thread): Declare.
7545 (is_executing): Delete.
7546 (enable_thread_stack_temporaries): Update comment.
7547 <enable_thread_stack_temporaries>: Take a thread_info pointer
7548 instead of a ptid_t. Incref the thread.
7549 <~enable_thread_stack_temporaries>: Decref the thread.
7550 <m_ptid>: Delete
7551 <m_thr>: New.
7552 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7553 (get_last_thread_stack_temporary)
7554 (value_in_thread_stack_temporaries, can_access_registers_thread):
7555 Take a thread_info pointer instead of a ptid_t. All callers
7556 adjusted.
7557 * infcall.c (get_call_return_value): Use inferior_thread.
7558 (run_inferior_call): Work with thread pointers instead of ptid_t.
7559 (call_function_by_hand_dummy): Work with thread pointers instead
7560 of ptid_t. Use thread_info_ref.
7561 * infcmd.c (proceed_thread_callback): Access thread's state
7562 directly.
7563 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
7564 access thread's state directly.
7565 (continue_command): Use inferior_thread.
7566 (info_program_command): Use find_thread_ptid and access thread
7567 state directly.
7568 (proceed_after_attach_callback): Use thread state directly.
7569 (notice_new_inferior): Take a thread_info pointer instead of a
7570 ptid_t. All callers adjusted.
7571 (exit_inferior): Take an inferior pointer instead of a pid. All
7572 callers adjusted.
7573 (exit_inferior_silent): New.
7574 (detach_inferior): Delete.
7575 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
7576 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
7577 (detach_inferior_command, kill_inferior_command): Use
7578 find_inferior_id instead of valid_gdb_inferior_id and
7579 gdb_inferior_id_to_pid.
7580 (inferior_command): Use inferior and thread pointers.
7581 * inferior.h (struct thread_info): Forward declare.
7582 (notice_new_inferior): Take a thread_info pointer instead of a
7583 ptid_t. All callers adjusted.
7584 (detach_inferior): Delete declaration.
7585 (exit_inferior, exit_inferior_silent): Take an inferior pointer
7586 instead of a pid. All callers adjusted.
7587 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
7588 (valid_gdb_inferior_id): Delete.
7589 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
7590 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
7591 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
7592 ...
7593 <inf>: ... this new field.
7594 <step_ptid>: Delete, replaced by ...
7595 <step_thread>: ... this new field.
7596 (get_displaced_stepping_state): Take an inferior pointer instead
7597 of a pid. All callers adjusted.
7598 (displaced_step_in_progress_any_inferior): Adjust.
7599 (displaced_step_in_progress_thread): Take a thread pointer instead
7600 of a ptid_t. All callers adjusted.
7601 (displaced_step_in_progress, add_displaced_stepping_state): Take
7602 an inferior pointer instead of a pid. All callers adjusted.
7603 (get_displaced_step_closure_by_addr): Adjust.
7604 (remove_displaced_stepping_state): Take an inferior pointer
7605 instead of a pid. All callers adjusted.
7606 (displaced_step_prepare_throw, displaced_step_prepare)
7607 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
7608 All callers adjusted.
7609 (start_step_over): Adjust.
7610 (infrun_thread_ptid_changed): Remove bit updating ptids in the
7611 displaced step queue.
7612 (do_target_resume): Adjust.
7613 (fetch_inferior_event): Use inferior_thread.
7614 (context_switch, get_inferior_stop_soon): Take an
7615 execution_control_state pointer instead of a ptid_t. All callers
7616 adjusted.
7617 (switch_to_thread_cleanup): Delete.
7618 (stop_all_threads): Use scoped_restore_current_thread.
7619 * inline-frame.c: Include "gdbthread.h".
7620 (inline_state) <inline_state>: Take a thread pointer instead of a
7621 ptid_t. All callers adjusted.
7622 <ptid>: Delete, replaced by ...
7623 <thread>: ... this new field.
7624 (find_inline_frame_state): Take a thread pointer instead of a
7625 ptid_t. All callers adjusted.
7626 (skip_inline_frames, step_into_inline_frame)
7627 (inline_skipped_frames, inline_skipped_symbol): Take a thread
7628 pointer instead of a ptid_t. All callers adjusted.
7629 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
7630 (inline_skipped_frames, inline_skipped_symbol): Likewise.
7631 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
7632 pointers directly.
7633 * linux-nat.c (get_detach_signal): Likewise.
7634 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
7635 (thread_db_notice_clone): Adjust.
7636 (thread_db_find_new_threads_silently)
7637 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
7638 a thread pointer instead of a ptid_t. All callers adjusted.
7639 * mi/mi-cmd-var.c: Include "inferior.h".
7640 (mi_cmd_var_update_iter): Update to use thread pointers.
7641 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
7642 inferior directly.
7643 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
7644 out to ...
7645 (mi_output_running): ... this new function.
7646 (mi_on_resume_1): Adjust to use it.
7647 (mi_user_selected_context_changed): Adjust to use inferior_thread.
7648 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
7649 directly.
7650 (interrupt_thread_callback): : Adjust to use thread and inferior
7651 pointers.
7652 * proc-service.c: Include "gdbthread.h".
7653 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
7654 * progspace-and-thread.c: Include "inferior.h".
7655 * progspace.c: Include "inferior.h".
7656 * python/py-exitedevent.c (create_exited_event_object): Adjust to
7657 hold a reference to an inferior_object.
7658 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
7659 inferior_thread.
7660 * python/py-inferior.c (struct inferior_object): Give the type a
7661 tag name instead of a typedef.
7662 (python_on_normal_stop): No need to check if the current thread is
7663 listed.
7664 (inferior_to_inferior_object): Change return type to
7665 inferior_object. All callers adjusted.
7666 (find_thread_object): Delete, bits factored out to ...
7667 (thread_to_thread_object): ... this new function.
7668 * python/py-infthread.c (create_thread_object): Use
7669 inferior_to_inferior_object.
7670 (thpy_is_stopped): Use thread pointer directly.
7671 (gdbpy_selected_thread): Use inferior_thread.
7672 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
7673 field, replaced with ...
7674 <thread>: ... this new field. All users adjusted.
7675 (btpy_insn_or_gap_new): Drop const.
7676 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
7677 callers adjusted.
7678 * python/py-record.c: Include "gdbthread.h".
7679 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7680 a ptid_t. All callers adjusted.
7681 (gdbpy_current_recording): Use inferior_thread.
7682 * python/py-record.h (recpy_record_object) <ptid>: Delete
7683 field, replaced with ...
7684 <thread>: ... this new field. All users adjusted.
7685 (recpy_element_object) <ptid>: Delete
7686 field, replaced with ...
7687 <thread>: ... this new field. All users adjusted.
7688 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7689 a ptid_t. All callers adjusted.
7690 * python/py-threadevent.c: Include "gdbthread.h".
7691 (get_event_thread): Use thread_to_thread_object.
7692 * python/python-internal.h (struct inferior_object): Forward
7693 declare.
7694 (find_thread_object, find_inferior_object): Delete declarations.
7695 (thread_to_thread_object, inferior_to_inferior_object): New
7696 declarations.
7697 * record-btrace.c: Include "inferior.h".
7698 (require_btrace_thread): Use inferior_thread.
7699 (record_btrace_frame_sniffer)
7700 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
7701 (get_thread_current_frame): Use scoped_restore_current_thread and
7702 switch_to_thread.
7703 (get_thread_current_frame): Use thread pointer directly.
7704 (record_btrace_replay_at_breakpoint): Use thread's inferior
7705 pointer directly.
7706 * record-full.c: Include "inferior.h".
7707 * regcache.c: Include "gdbthread.h".
7708 (get_thread_arch_regcache): Use the inferior's address space
7709 directly.
7710 (get_thread_regcache, registers_changed_thread): New.
7711 * regcache.h (get_thread_regcache(thread_info *thread)): New
7712 overload.
7713 (registers_changed_thread): New.
7714 (remote_target) <remote_detach_1>: Swap order of parameters.
7715 (remote_add_thread): <remote_add_thread>: Return the new thread.
7716 (get_remote_thread_info(ptid_t)): New overload.
7717 (remote_target::remote_notice_new_inferior): Use thread pointers
7718 directly.
7719 (remote_target::process_initial_stop_replies): Use
7720 thread_info::set_running.
7721 (remote_target::remote_detach_1, remote_target::detach)
7722 (extended_remote_target::detach): Adjust.
7723 * stack.c (frame_show_address): Use inferior_thread.
7724 * target-debug.h (target_debug_print_thread_info_pp): New.
7725 * target-delegates.c: Regenerate.
7726 * target.c (default_thread_address_space): Delete.
7727 (memory_xfer_partial_1): Use current_inferior.
7728 (target_detach): Use current_inferior.
7729 (target_thread_address_space): Delete.
7730 (generic_mourn_inferior): Use current_inferior.
7731 * target.h (struct target_ops) <thread_address_space>: Delete.
7732 (target_thread_address_space): Delete.
7733 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
7734 pointers directly.
7735 (delete_thread_1, delete_thread, delete_thread_silent): Take a
7736 thread pointer instead of a ptid_t. Adjust all callers.
7737 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
7738 (first_thread_of_process): Delete, replaced by ...
7739 (first_thread_of_inferior): ... this new function. All callers
7740 adjusted.
7741 (any_thread_of_process): Rename to ...
7742 (any_thread_of_inferior): ... this, and take an inferior pointer.
7743 (any_live_thread_of_process): Rename to ...
7744 (any_live_thread_of_inferior): ... this, and take an inferior
7745 pointer.
7746 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7747 (value_in_thread_stack_temporaries)
7748 (get_last_thread_stack_temporary): Take a thread pointer instead
7749 of a ptid_t. Adjust all callers.
7750 (thread_info::set_running): New.
7751 (validate_registers_access): Use inferior_thread.
7752 (can_access_registers_ptid): Rename to ...
7753 (can_access_registers_thread): ... this, and take a thread
7754 pointer.
7755 (print_thread_info_1): Adjust to compare thread pointers instead
7756 of ptids.
7757 (switch_to_no_thread, switch_to_thread): Make extern.
7758 (scoped_restore_current_thread::~scoped_restore_current_thread):
7759 Use m_thread pointer directly.
7760 (scoped_restore_current_thread::scoped_restore_current_thread):
7761 Use inferior_thread.
7762 (thread_command): Use thread pointer directly.
7763 (thread_num_make_value_helper): Use inferior_thread.
7764 * top.c (execute_command): Use inferior_thread.
7765 * tui/tui-interp.c: Include "inferior.h".
7766 * varobj.c (varobj_create): Use inferior_thread.
7767 (value_of_root_1): Use find_thread_global_id instead of
7768 global_thread_id_to_ptid.
7769
33bab475
AH
77702018-06-21 Alan Hayward <alan.hayward@arm.com>
7771
4399bce9
PA
7772 * regcache.c (readable_regcache::read_part): Avoid memcpy when
7773 possible.
7774 (regcache::write_part): Likewise.
7775 (readable_regcache::cooked_read_part): Update comment.
7776 (readable_regcache::cooked_write_part): Likewise.
7777 * regcache.h: (readable_regcache::read_part): Likewise.
7778 (regcache::write_part): Likewise.
33bab475 7779
8363f9d5
RB
77802018-06-21 Richard Bunt <richard.bunt@arm.com>
7781 Dirk Schubert <dirk.schubert@arm.com>
7782
7783 * aarch64-linux-nat.c (post_attach): New.
7784 (aarch64_linux_nat_target::post_attach): Override post_attach to
7785 record the number of hardware debug registers.
7786
0d0b0ea2
TT
77872018-06-20 Tom Tromey <tom@tromey.com>
7788
7789 * python/py-param.c (add_setshow_generic): Make parameters const.
7790 (parmpy_init): Update.
7791
302abd6e
SM
77922018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
7793
7794 * regcache.h (regcache_cooked_read_ftype): Rename to...
7795 (register_read_ftype): ...this, change type to function_view.
7796 (class reg_buffer) <save>: Remove src parameter.
7797 (readonly_detached_regcache) <readonly_detached_regcache>: Make
7798 parameter non-const in first overload. Remove src parameter in
7799 second overload.
7800 * regcache.c (do_cooked_read): Remove.
7801 (readonly_detached_regcache::readonly_detached_regcache): Make
7802 parameter non-const, adjust call to other constructor.
7803 (reg_buffer::save): Remove src parameter.
7804 * frame.c (do_frame_register_read): Remove.
7805 (frame_save_as_regcache): Use lambda function.
7806 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
7807 parameter to ppu2spu_data *.
7808 (ppu2spu_sniffer): Use lambda function.
7809
19f3f25f
SM
78102018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
7811
7812 * record-full.c (record_full_target::insert_breakpoint): Remove
7813 "struct" keyword, add const.
7814
d0ac1c44
SM
78152018-06-19 Simon Marchi <simon.marchi@ericsson.com>
7816
7817 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
7818 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
7819 * configure.ac: Remove AC_PREREQ, add missing quoting.
7820 * gnulib/configure.ac: Modernize usage of
7821 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
7822 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
7823 (AUTOMAKE_VERSION): Bump to 1.15.1.
7824 * configure: Re-generate.
7825 * config.in: Re-generate.
7826 * aclocal.m4: Re-generate.
7827 * gnulib/aclocal.m4: Re-generate.
7828 * gnulib/config.in: Re-generate.
7829 * gnulib/configure: Re-generate.
7830 * gnulib/import/Makefile.in: Re-generate.
7831
6ae50267
PA
78322018-06-19 Pedro Alves <palves@redhat.com>
7833
7834 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
7835 (lookup_minimal_symbol_by_pc_section): ... here with
7836 gdb_assert_not_reached added.
7837
61b04dd0
PA
78382018-06-19 Pedro Alves <palves@redhat.com>
7839
7840 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
7841 parameter with a block parameter. Compare location's block symbol
7842 with the frame's block instead of addresses.
7843 (skip_inline_frames): Pass the current block instead of the
7844 frame's address. Break out as soon as we determine the frame
7845 should not be skipped.
7846
f709fabb
TT
78472018-06-18 Tom Tromey <tom@tromey.com>
7848
7849 * solib-aix.c (solib_aix_get_section_offsets): Return
7850 unique_xmalloc_ptr.
7851 (solib_aix_solib_create_inferior_hook): Update.
7852
668eb2f0
TT
78532018-06-18 Tom Tromey <tom@tromey.com>
7854
7855 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
7856
309822ca
TT
78572018-06-18 Tom Tromey <tom@tromey.com>
7858
7859 * solib-frv.c (frv_relocate_main_executable): Use
7860 unique_xmalloc_ptr.
7861 * solib-dsbt.c (dsbt_relocate_main_executable): Use
7862 unique_xmalloc_ptr.
7863
06424eac
TT
78642018-06-18 Tom Tromey <tom@tromey.com>
7865
7866 * objfiles.h (inhibit_section_map_updates): Update.
7867 (resume_section_map_updates, resume_section_map_updates_cleanup):
7868 Remove.
7869 * solib-svr4.c (svr4_handle_solib_event): Update.
7870 * objfiles.c (inhibit_section_map_updates): Return
7871 scoped_restore_tmpl<int>.
7872 (resume_section_map_updates, resume_section_map_updates_cleanup):
7873 Remove.
7874
b4be9fad
TT
78752018-06-18 Tom Tromey <tom@tromey.com>
7876
7877 * valprint.h (read_string): Update.
7878 * valprint.c (read_string): Change type of "buffer".
7879 (val_print_string): Update.
7880 * python/py-value.c (valpy_string): Update.
7881 * language.h (struct language_defn) <la_get_string>: Change
7882 type of "buffer".
7883 (default_get_string, c_get_string): Update.
7884 * language.c (default_get_string): Change type of "buffer".
7885 * guile/scm-value.c (gdbscm_value_to_string): Update.
7886 * c-lang.c (c_get_string): Change type of "buffer".
7887
3f0dbd67
TT
78882018-06-18 Tom Tromey <tom@tromey.com>
7889
7890 * ser-mingw.c (struct pipe_state_destroyer): New.
7891 (pipe_state_up): New typedef.
7892 (cleanup_pipe_state): Remove.
7893 (pipe_windows_open): Use pipe_state_up. Don't release argv.
7894
69d340c6
TT
78952018-06-18 Tom Tromey <tom@tromey.com>
7896
7897 * rust-lang.h (rust_yyerror): Don't declare.
7898 * rust-lang.c (rust_language_defn): Update.
7899 * rust-exp.y (yyerror): Now static.
7900 * parse.c (parse_exp_in_context_1): Update.
7901 * p-lang.h (p_yyerror): Don't declare.
7902 * p-lang.c (p_language_defn): Update.
7903 * p-exp.y (yyerror): Now static.
7904 * opencl-lang.c (opencl_language_defn): Update.
7905 * objc-lang.c (objc_language_defn): Update.
7906 * m2-lang.h (m2_yyerror): Don't declare.
7907 * m2-lang.c (m2_language_defn): Update.
7908 * m2-exp.y (yyerror): Now static.
7909 * language.h (struct language_defn) <la_error>: Remove.
7910 * language.c (unk_lang_error): Remove.
7911 (unknown_language_defn, auto_language_defn): Remove.
7912 * go-lang.h (go_yyerror): Don't declare.
7913 * go-lang.c (go_language_defn): Update.
7914 * go-exp.y (yyerror): Now static.
7915 * f-lang.h (f_yyerror): Don't declare.
7916 * f-lang.c (f_language_defn): Update.
7917 * f-exp.y (yyerror): Now static.
7918 * d-lang.h (d_yyerror): Don't declare.
7919 * d-lang.c (d_language_defn): Update.
7920 * d-exp.y (yyerror): Now static.
7921 * c-lang.h (c_yyerror): Don't declare.
7922 * c-lang.c (c_language_defn, cplus_language_defn)
7923 (asm_language_defn, minimal_language_defn): Update.
7924 * c-exp.y (yyerror): Now static.
7925 * ada-lang.h (ada_yyerror): Don't declare.
7926 * ada-lang.c (ada_language_defn): Update.
7927 * ada-exp.y (yyerror): Now static.
7928
e9902bfc
AH
79292018-06-18 Alan Hayward <alan.hayward@arm.com>
7930
7931 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
7932 (store_sveregs_to_thread): Likewise.
7933 (aarch64_linux_fetch_inferior_registers): Check for SVE.
7934 (aarch64_linux_store_inferior_registers): Likewise.
7935 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
7936 function.
7937 (aarch64_sve_regs_copy_to_regcache): Likewise.
7938 (aarch64_sve_regs_copy_from_regcache): Likewise.
7939 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
7940 declaration.
7941 (aarch64_sve_regs_copy_to_regcache): Likewise.
7942 (aarch64_sve_regs_copy_from_regcache): Likewise.
7943 (sve_context): Structure from Linux headers.
7944 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
7945 (SVE_SIG_ZREG_SIZE): Likewise.
7946 (SVE_SIG_PREG_SIZE): Likewise.
7947 (SVE_SIG_FFR_SIZE): Likewise.
7948 (SVE_SIG_REGS_OFFSET): Likewise.
7949 (SVE_SIG_ZREGS_OFFSET): Likewise.
7950 (SVE_SIG_ZREG_OFFSET): Likewise.
7951 (SVE_SIG_ZREGS_SIZE): Likewise.
7952 (SVE_SIG_PREGS_OFFSET): Likewise.
7953 (SVE_SIG_PREG_OFFSET): Likewise.
7954 (SVE_SIG_PREGS_SIZE): Likewise.
7955 (SVE_SIG_FFR_OFFSET): Likewise.
7956 (SVE_SIG_REGS_SIZE): Likewise.
7957 (SVE_SIG_CONTEXT_SIZE): Likewise.
7958 (SVE_PT_REGS_MASK): Likewise.
7959 (SVE_PT_REGS_FPSIMD): Likewise.
7960 (SVE_PT_REGS_SVE): Likewise.
7961 (SVE_PT_VL_INHERIT): Likewise.
7962 (SVE_PT_VL_ONEXEC): Likewise.
7963 (SVE_PT_REGS_OFFSET): Likewise.
7964 (SVE_PT_FPSIMD_OFFSET): Likewise.
7965 (SVE_PT_FPSIMD_SIZE): Likewise.
7966 (SVE_PT_SVE_ZREG_SIZE): Likewise.
7967 (SVE_PT_SVE_PREG_SIZE): Likewise.
7968 (SVE_PT_SVE_FFR_SIZE): Likewise.
7969 (SVE_PT_SVE_FPSR_SIZE): Likewise.
7970 (SVE_PT_SVE_FPCR_SIZE): Likewise.
7971 (__SVE_SIG_TO_PT): Likewise.
7972 (SVE_PT_SVE_OFFSET): Likewise.
7973 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
7974 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
7975 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
7976 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
7977 (SVE_PT_SVE_PREG_OFFSET): Likewise.
7978 (SVE_PT_SVE_PREGS_SIZE): Likewise.
7979 (SVE_PT_SVE_FFR_OFFSET): Likewise.
7980 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
7981 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
7982 (SVE_PT_SVE_SIZE): Likewise.
7983 (SVE_PT_SIZE): Likewise.
7984 (HAS_SVE_STATE): New define.
7985
17a1cc89
AH
79862018-06-18 Alan Hayward <alan.hayward@arm.com>
7987
7988 * nat/aarch64-sve-linux-sigcontext.h: New file.
7989 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
7990 new files.
7991 (SVE_VQ_MIN): Likewise.
7992 (SVE_VQ_MAX): Likewise.
7993 (SVE_VL_MIN): Likewise.
7994 (SVE_VL_MAX): Likewise.
7995 (SVE_NUM_ZREGS): Likewise.
7996 (SVE_NUM_PREGS): Likewise.
7997 (sve_vl_valid): Likewise.
7998 (struct user_sve_header): Likewise.
7999
7010835a
AB
80002018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8001 Richard Bunt <Richard.Bunt@arm.com>
8002
8003 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
8004 was requested by GDB.
8005
479b3ef4
TV
80062018-06-15 Tom de Vries <tdevries@suse.de>
8007
8008 * MAINTAINERS (Write After Approval): Add Tom de Vries.
8009
8199b8f4
SM
80102018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
8011
8012 * gnulib/update-gnulib.sh: Print expected versions of
8013 autoconf/aclocal.
8014
55c748a1
SM
80152018-06-14 Simon Marchi <simon.marchi@ericsson.com>
8016
8017 * arch-utils.c (default_type_align): Use type_length_units.
8018 * gdbtypes.c (type_align): Use type_length_units.
8019
87a8eca7
PW
80202018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8021
8022 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
8023 of 'define' command.
8024
5d9a0608
TV
80252018-06-14 Tom de Vries <tdevries@suse.de>
8026
8027 PR cli/22573
8028 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
8029 get_no_prettyformat_print_options.
8030
ab89b5a5
SM
80312018-06-13 Simon Marchi <simon.marchi@ericsson.com>
8032
8033 * sparc-nat.h: Include target.h.
8034 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
8035 <fetch_registers>: Remove this argument in function call.
8036 <store_registers>: Remove this argument in function call, remove
8037 extra semicolon.
8038 <low_forget_process>: Call sparc64_forget_process instead of
8039 sparc_forget_process.
8040
62c808ae
RO
80412018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8042
8043 * procfs.c (_initialize_procfs): Use add_inf_child_target.
8044 (procfs_target::make_corefile_notes): Adjust to new
8045 target_read_alloc return type.
8046
1840d81a
AB
80472018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8048 Stephen Roberts <stephen.roberts@arm.com>
8049
8050 PR gdb/22882
8051 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
8052 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
8053 Move should_notify_stop local into more inner scope.
8054
9516f85a
AB
80552018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8056 Stephen Roberts <stephen.roberts@arm.com>
8057
8058 PR gdb/22882
8059 * infrun.c (resume_1): Add call to mark_async_event_handler.
8060
defd2172
AB
80612018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8062
8063 * infrun.c (do_target_wait): Change old version of $pc printed.
8064
7b23e087
SM
80652018-06-11 Simon Marchi <simon.marchi@ericsson.com>
8066
8067 * dwarf2read.c (read_index_from_section): Rename to...
8068 (read_gdb_index_from_section): ... this, update all callers.
8069 (dwarf2_read_index): Rename to...
8070 (dwarf2_read_gdb_index): ... this, update all callers.
8071
69c67a0b
JDA
80722018-06-11 John David Anglin <danglin@gcc.gnu.org>
8073
4399bce9 8074 * hppa-linux-nat.c
69c67a0b
JDA
8075 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
8076 hppa_linux_nat_target::fetch_registers.
8077
65d4cada
AH
80782018-06-11 Alan Hayward <alan.hayward@arm.com>
8079
8080 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
8081 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
8082 (AARCH64_DWARF_SVE_FFR): Likewise.
8083 (AARCH64_DWARF_SVE_P0): Likewise.
8084 (AARCH64_DWARF_SVE_Z0): Likewise.
8085
f868386e
AH
80862018-06-11 Alan Hayward <alan.hayward@arm.com>
8087
8088 * common/common-regcache.h (raw_compare): New function.
8089 * regcache.c (regcache::raw_compare): Likewise.
8090 * regcache.h (regcache::raw_compare): New declaration.
8091
9c861883
AH
80922018-06-11 Alan Hayward <alan.hayward@arm.com>
8093
8094 * common/common-regcache.h (reg_buffer_common): New structure.
8095 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
8096 (reg_buffer::raw_supply): Likewise.
8097 (reg_buffer::raw_supply_integer): Likewise.
8098 (reg_buffer::raw_supply_zeroed): Likewise.
8099 (reg_buffer::raw_collect): Likewise.
8100 (reg_buffer::raw_collect_integer): Likewise.
8101 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
8102 (reg_buffer::raw_supply): Likewise.
8103 (reg_buffer::raw_supply_integer): Likewise.
8104 (reg_buffer::raw_supply_zeroed): Likewise.
8105 (reg_buffer::raw_collect): Likewise.
8106 (reg_buffer::raw_collect_integer): Likewise.
8107
953edf2b
TT
81082018-06-10 Tom Tromey <tom@tromey.com>
8109
8110 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
8111 (class remote_state) <stop_reply_queue>: Now std::vector.
8112 (remote_state::~remote_state)
8113 (remote_target::stop_reply_queue_length): Update.
8114 (struct queue_iter_param, remove_child_of_pending_fork)
8115 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
8116 (check_pending_event_prevents_wildcard_vcont_callback)
8117 (remove_stop_reply_for_inferior)
8118 (remove_stop_reply_of_remote_state)
8119 (remote_notif_remove_once_on_match)
8120 (stop_reply_match_ptid_and_ws)
8121 (remote_kill_child_of_pending_fork): Remove.
8122 (remote_target::remove_new_fork_children)
8123 (remote_target::check_pending_events_prevent_wildcard_vcont)
8124 (remote_target::discard_pending_stop_replies)
8125 (remote_target::discard_pending_stop_replies_in_queue)
8126 (remote_target::remote_notif_remove_queued_reply)
8127 (remote_target::queued_stop_reply)
8128 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
8129 (remote_target::wait, remote_target::kill_new_fork_children)
8130 (remote_target::async): Update.
8131
1ddbba9d
TT
81322018-06-10 Tom Tromey <tom@tromey.com>
8133
8134 * record-full.c (record_full_arch_list_cleanups): Remove.
8135 (record_full_message): Use try/catch.
8136 (record_full_wait_cleanups): Remove.
8137 (record_full_wait_1): Use try/catch.
8138 (record_full_restore): Likewise.
8139
219605fd
TT
81402018-06-10 Tom Tromey <tom@tromey.com>
8141
8142 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
8143 declare VEC. Add constructor.
8144 <in_target_beneath>: Now bool.
8145 (record_full_breakpoints): Now a std::vector, static.
8146 (record_full_sync_record_breakpoints)
8147 (record_full_init_record_breakpoints)
8148 (record_full_target::insert_breakpoint)
8149 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
8150
71b73764
SM
81512018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8152
8153 * dwarf2read.c (process_cu_includes): Remove struct keyword.
8154 * serial.c (serial_interface_lookup): Remove struct keyword.
8155
4360561f
TT
81562018-06-10 Tom Tromey <tom@tromey.com>
8157
8158 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
8159 method.
8160 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
8161 a method.
8162 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
8163 method.
8164 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
8165 "beneath" as a method.
8166 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
8167 Use "beneath" as a method.
8168
d14b92bf
TT
81692018-06-10 Tom Tromey <tom@tromey.com>
8170
8171 * tracefile.c (struct trace_file_writer_deleter): New.
8172 <operator()>: Rename from trace_file_writer_xfree.
8173 (trace_file_writer_up): New typedef.
8174 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
8175
835dcf92
SM
81762018-06-09 Simon Marchi <simon.marchi@ericsson.com>
8177
8178 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
8179 <m_registers, m_register_status>: Change type to
8180 std::unique_ptr.
8181 * regcache.c (reg_buffer::reg_buffer): Use new instead of
8182 XCNEWVEC.
8183
aac0d564
SM
81842018-06-09 Simon Marchi <simon.marchi@ericsson.com>
8185
8186 * common/common-regcache.h (enum register_status): Add
8187 underlying type "signed char".
8188 * regcache.h (reg_buffer) <m_register_status>: Change type to
8189 register_status *.
8190 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
8191 register_status instead of signed char.
8192 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
8193 (reg_buffer::get_register_status): Remove cast.
8194 (readable_regcache::raw_read): Remove cast.
8195 (readable_regcache::cooked_read): Remove cast.
8196
77ad7394
TT
81972018-06-09 Tom Tromey <tom@tromey.com>
8198
8199 * source.c (reverse_search_command, forward_search_command): Use
8200 scoped_fd.
8201
191cca63
TT
82022018-06-09 Tom Tromey <tom@tromey.com>
8203
8204 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
8205 (serial_ops_list): Now static, std::vector.
8206 (serial_interface_lookup, serial_add_interface): Update.
8207
c5d0225d
TT
82082018-06-09 Tom Tromey <tom@tromey.com>
8209
8210 * dwarf2read.c (process_cu_includes): Update.
8211 (process_full_comp_unit): Update.
8212 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
8213 std::vector.
8214
aeab5128
PK
82152018-06-08 Paul Koning <paul_koning@dell.com>
8216
8217 PR gdb/23252
8218
8219 * python/python.c (do_start_initialization):
8220 Avoid call to internal Python API.
8221 (init__gdb_module): New function.
8222
5045b3d7
GB
82232018-06-08 Gary Benson <gbenson@redhat.com>
8224
8225 * linux-thread-db.c (valprint.h): New include.
8226 (struct check_thread_db_info): New structure.
8227 (check_thread_db_on_load, tdb_testinfo): New static globals.
8228 (check_thread_db, check_thread_db_callback): New functions.
8229 (try_thread_db_load_1): Run integrity checks if requested.
8230 (maintenance_check_libthread_db): New function.
8231 (_initialize_thread_db): Register "maint check libthread-db"
8232 and "maint set/show check-libthread-db".
8233 * NEWS: Mention the above new commands.
8234
2f4f025f
TT
82352018-06-08 Tom Tromey <tom@tromey.com>
8236
8237 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
8238 now a method.
8239
343b0027
TT
82402018-06-08 Tom Tromey <tom@tromey.com>
8241
8242 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
8243
8dcc53b3
TT
82442018-06-08 Tom Tromey <tom@tromey.com>
8245
8246 * common/btrace-common.h (struct btrace_data): Add constructor,
8247 destructor, move assignment operator.
8248 <empty, clear, fini>: New methods.
8249 <format>: Initialize.
8250 (btrace_data_init, btrace_data_fini, btrace_data_clear)
8251 (btrace_data_empty): Don't declare.
8252 * common/btrace-common.c (btrace_data_init): Remove.
8253 (btrace_data::fini): Rename from btrace_data_fini.
8254 (btrace_data::empty): Rename from btrace_data_empty.
8255 (btrace_data::clear): Rename from btrace_data_clear. Return
8256 bool.
8257 * btrace.h (make_cleanup_btrace_data): Don't declare.
8258 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
8259 (parse_xml_btrace): Update.
8260 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
8261 (maint_btrace_clear_packet_history_cmd): Update.
8262
a1740ee1
PA
82632018-06-07 Pedro Alves <palves@redhat.com>
8264
8265 * target.h (target_ops) <beneath>: Now a method. All references
8266 updated.
8267 (class target_stack): New.
8268 * target.c (g_target_stack): New.
8269 (g_current_top_target): Delete.
8270 (current_top_target): Get the top target out of g_target_stack.
8271 (target_stack::push, target_stack::unpush): New.
8272 (push_target, unpush_target): Reimplement.
8273 (target_is_pushed): Reimplement in terms of g_target_stack.
8274 (target_ops::beneath, target_stack::find_beneath): New.
8275
d6ca69cd
PA
82762018-06-07 Pedro Alves <palves@redhat.com>
8277
8278 * target.h (find_target_beneath): Delete declaration.
8279 * target.c (find_target_beneath): Delete definition.
8280 * aix-thread.c: All callers of find_target_beneath adjusted to
8281 call target_ops::beneath instead.
8282 * bsd-uthread.c: Likewise.
8283 * linux-thread-db.c: Likewise.
8284 * ravenscar-thread.c: Likewise.
8285 * sol-thread.c: Likewise.
8286 * spu-multiarch.c: Likewise.
8287
b6a8c27b
PA
82882018-06-07 Pedro Alves <palves@redhat.com>
8289
8290 * target.h (target_ops) <beneath>: Now a method. All references
8291 updated.
8292 (target_ops) <m_beneath>: New.
8293 * target.c (target_ops::beneath): New.
8294 * corelow.c: Adjust all references to target_ops::beneath.
8295 * linux-thread-db.c: Likewise.
8296 * make-target-delegates: Likewise.
8297 * record-btrace.c: Likewise.
8298 * record-full.c: Likewise.
8299 * remote.c: Likewise.
8300 * target.c: Likewise.
8301 * target-delegates.c: Regenerate.
8302
8b88a78e
PA
83032018-06-07 Pedro Alves <palves@redhat.com>
8304
8305 * target.h (target_stack): Delete.
8306 (current_top_target): Declare function.
8307 * target.c (target_stack): Delete.
8308 (g_current_top_target): New.
8309 (current_top_target): New function.
8310 * auxv.c: Use current_top_target instead of target_stack
8311 throughout.
8312 * avr-tdep.c: Likewise.
8313 * breakpoint.c: Likewise.
8314 * corefile.c: Likewise.
8315 * elfread.c: Likewise.
8316 * eval.c: Likewise.
8317 * exceptions.c: Likewise.
8318 * frame.c: Likewise.
8319 * gdbarch-selftests.c: Likewise.
8320 * gnu-v3-abi.c: Likewise.
8321 * ia64-tdep.c: Likewise.
8322 * ia64-vms-tdep.c: Likewise.
8323 * infcall.c: Likewise.
8324 * infcmd.c: Likewise.
8325 * infrun.c: Likewise.
8326 * linespec.c: Likewise.
8327 * linux-tdep.c: Likewise.
8328 * minsyms.c: Likewise.
8329 * ppc-linux-nat.c: Likewise.
8330 * ppc-linux-tdep.c: Likewise.
8331 * procfs.c: Likewise.
8332 * regcache.c: Likewise.
8333 * remote.c: Likewise.
8334 * rs6000-tdep.c: Likewise.
8335 * s390-linux-nat.c: Likewise.
8336 * s390-tdep.c: Likewise.
8337 * solib-aix.c: Likewise.
8338 * solib-darwin.c: Likewise.
8339 * solib-dsbt.c: Likewise.
8340 * solib-spu.c: Likewise.
8341 * solib-svr4.c: Likewise.
8342 * solib-target.c: Likewise.
8343 * sparc-tdep.c: Likewise.
8344 * sparc64-tdep.c: Likewise.
8345 * spu-tdep.c: Likewise.
8346 * symfile.c: Likewise.
8347 * symtab.c: Likewise.
8348 * target-descriptions.c: Likewise.
8349 * target-memory.c: Likewise.
8350 * target.c: Likewise.
8351 * target.h: Likewise.
8352 * tracefile-tfile.c: Likewise.
8353 * tracepoint.c: Likewise.
8354 * valops.c: Likewise.
8355 * valprint.c: Likewise.
8356 * value.c: Likewise.
8357 * windows-tdep.c: Likewise.
8358 * mi/mi-main.c: Likewise.
8359
c7110220
TT
83602018-06-07 Tom Tromey <tom@tromey.com>
8361
8362 * valprint.h (build_address_symbolic): Declare.
8363 * printcmd.c (print_address_symbolic): Update.
8364 (build_address_symbolic): Change "name" and "filename" to
8365 std::string.
8366 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
8367 Update.
8368 * defs.h (build_address_symbolic): Remove declaration.
8369
63bad7b6
AH
83702018-06-07 Alan Hayward <alan.hayward@arm.com>
8371
8372 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
8373 (aarch64_vnv_type): Add function.
8374 (aarch64_pseudo_register_name): Add V regs for SVE.
8375 (aarch64_pseudo_register_type): Likewise.
8376 (aarch64_pseudo_register_reggroup_p): Likewise.
8377 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
8378 (aarch64_pseudo_read_value): Add V regs for SVE.
8379 (aarch64_pseudo_write_2): Use V0 offset for SVE
8380 (aarch64_pseudo_write): Add V regs for SVE.
8381 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
8382
13e3c608
SDJ
83832018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
8384
8385 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
8386 (sve_vl_from_vq): Likewise.
8387
c61b06a1
TT
83882018-06-05 Tom Tromey <tom@tromey.com>
8389
8390 * cli/cli-cmds.c (show_version): Update.
8391 * top.c (print_gdb_version): Add "interactive" parameter.
8392 Update.
8393 * main.c (captured_main_1): Update.
8394 * top.h (print_gdb_version): Add "interactive" parameter and a
8395 comment.
8396
115f7325
DM
83972018-06-05 David Malcolm <dmalcolm@redhat.com>
8398
8399 * common/enum-flags.h: Add trailing semicolon to example in
8400 comment.
8401
eb6af809
TT
84022018-06-05 Tom Tromey <tom@tromey.com>
8403
8404 PR cli/12326:
8405 * NEWS: Add entry about pager.
8406 * utils.c (pagination_disabled_for_command): New global.
8407 (prompt_for_continue): Allow "c" response to prompt.
8408 (reinitialize_more_filter): Clear
8409 pagination_disabled_for_command.
8410 (fputs_maybe_filtered): Check pagination_disabled_for_command.
8411
54d343a2
TT
84122018-06-04 Tom Tromey <tom@tromey.com>
8413
8414 * ada-lang.h (ada_lookup_symbol_list): Update.
8415 * ada-lang.c (resolve_subexp): Update.
8416 (symbols_are_identical_enums): Change type of syms. Remove nsyms
8417 parameter.
8418 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
8419 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
8420 results parameter to std::vector.
8421 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
8422 Update.
8423 * ada-exp.y (block_lookup): Update.
8424 (select_possible_type_sym): Change type of syms. Remove nsyms
8425 parameter.
8426 (write_var_or_type, write_name_assoc): Update.
8427
178d6a63
JB
84282018-06-04 Joel Brobecker <brobecker@adacore.com>
8429
8430 * windows-nat.c (windows_nat_target::xfer_partial): Return
8431 TARGET_XFER_E_IO if we need to delegate to the target beneath
8432 but BENEATH is NULL.
8433
baf00c2d
SM
84342018-06-04 Simon Marchi <simon.marchi@ericsson.com>
8435
8436 * Makefile.in (config.status): Add configure.nat as a
8437 dependency.
8438
214b073c
TT
84392018-06-04 Tom Tromey <tom@tromey.com>
8440
8441 * cp-name-parser.y (cpname_state): Add method declarations.
8442 (HANDLE_QUAL): Update.
8443 (cpname_state::d_grab, cpname_state::fill_comp)
8444 (cpname_state::make_operator, cpname_state::make_dtor)
8445 (cpname_state::make_builtin_type, cpname_state::make_name)
8446 (cpname_state::d_qualify, cpname_state::d_int_type)
8447 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
8448 (%union): Move earlier.
8449
62b74cb8
AH
84502018-06-04 Alan Hayward <alan.hayward@arm.com>
8451
8452 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
8453
3c5cd5c3
AH
84542018-06-04 Alan Hayward <alan.hayward@arm.com>
8455
8456 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
8457 (aarch64_pseudo_write_1): Likewise.
8458 (aarch64_pseudo_read_value): Use helper.
8459 (aarch64_pseudo_write): Likewise.
8460
59f413d5
PA
84612018-06-04 Pedro Alves <palves@redhat.com>
8462
8463 * darwin-nat.c (darwin_ops): Delete.
8464 (darwin_attach_pid): Use get_native_target.
8465
1332a140
AH
84662018-06-04 Alan Hayward <alan.hayward@arm.com>
8467
8468 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
8469 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
8470
ba2d2bb2
AH
84712018-06-04 Alan Hayward <alan.hayward@arm.com>
8472
8473 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
8474 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
8475 (aarch64_gdbarch_init): Check for SVE.
8476 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
8477
84782018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
8479
8480 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
8481 * aarch64-tdep.h (aarch64_read_description): Likewise.
8482 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8483 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8484 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
8485 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
8486 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
8487
41c60b4b
SM
84882018-06-02 Simon Marchi <simon.marchi@ericsson.com>
8489
8490 * value.c (value_fetch_lazy_bitfield): New.
8491 (value_fetch_lazy_memory): New.
8492 (value_fetch_lazy_register): New.
8493 (value_fetch_lazy): Factor out to smaller functions.
8494
7b640f72
TT
84952018-06-01 Tom Tromey <tom@tromey.com>
8496
8497 * cp-name-parser.y (backslashable, represented): Now const.
8498
98e69eb3
TT
84992018-06-01 Tom Tromey <tom@tromey.com>
8500
8501 * cp-name-parser.y: Include parser-defs.h.
8502 (parser_fprintf): Remove declaration.
8503
49265499
TT
85042018-06-01 Tom Tromey <tom@tromey.com>
8505
8506 * cp-name-parser.y: Use %pure-parser, %lex-param, and
8507 %parse-param.
8508 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
8509 (global_result): Remove globals.
8510 (struct cpname_state): New.
8511 (yyparse): Don't declare.
8512 (yylex, yyerror): Move declarations after %union.
8513 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
8514 (make_name): Add state parameter.
8515 Update all callers.
8516 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
8517 parameter.
8518 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
8519 Update.
8520 (yylex): Add lvalp, state parameters.
8521 (yyerror): Add state parameter.
8522 (cp_demangled_name_to_comp): Update.
8523
55b6c984
TT
85242018-06-01 Tom Tromey <tom@tromey.com>
8525
8526 * cp-name-parser.y (parser_fprintf): Declare.
8527 (GDB_YY_REMAP_PREFIX): Define.
8528 Include yy-remap.h. Don't redefine yy* identifiers.
8529
3513a6bb
TT
85302018-06-01 Tom Tromey <tom@tromey.com>
8531
8532 * python/py-type.c (typy_legacy_template_argument): Update.
8533 * cp-support.h (cp_demangled_name_to_comp): Update.
8534 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
8535 parameter to be a "std::string *".
8536 (main): Update.
8537
e9cb46ab
L
85382018-06-01 H.J. Lu <hongjiu.lu@intel.com>
8539
8540 * ada-lex.l: Include "diagnostics.h" instead of
8541 "common/diagnostics.h".
8542 * unittests/environ-selftests.c: Likewise.
8543 * common/diagnostics.h: Moved to ../include.
8544
8e817061
JB
85452018-06-01 Joel Brobecker <brobecker@adacore.com>
8546
8547 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
8548 to language_mode_manual while calling breakpoint_re_set_one.
8549
a737d952
TT
85502018-06-01 Tom Tromey <tom@tromey.com>
8551
8552 * valops.c (value_cast_structs, destructor_name_p): Update.
8553 * symtab.c (gdb_mangle_name): Update.
8554 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
8555 Update.
8556 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
8557 (pascal_object_print_value_fields, pascal_object_print_value):
8558 Update.
8559 * p-typeprint.c (pascal_type_print_derivation_info): Update.
8560 * linespec.c (find_methods): Update.
8561 * gdbtypes.h (type_name_no_tag): Remove.
8562 (type_name_or_error): Rename from type_name_no_tag_or_error.
8563 * gdbtypes.c (type_name_no_tag): Remove.
8564 (type_name_or_error): Rename from type_name_no_tag_or_error.
8565 (lookup_struct_elt_type, check_typedef): Update.
8566 * expprint.c (print_subexp_standard): Update.
8567 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
8568 * d-namespace.c (d_lookup_nested_symbol): Update.
8569 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
8570 (cp_print_class_member): Update.
8571 * cp-namespace.c (cp_lookup_nested_symbol): Update.
8572 * completer.c (add_struct_fields): Update.
8573 * c-typeprint.c (cp_type_print_derivation_info)
8574 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
8575 Update.
8576 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
8577 (ada_prefer_type, ada_is_exception_sym): Update.
8578
e86ca25f
TT
85792018-06-01 Tom Tromey <tom@tromey.com>
8580
8581 * valops.c (enum_constant_from_type, value_namespace_elt)
8582 (value_maybe_namespace_elt): Update.
8583 * valarith.c (find_size_for_pointer_math): Update.
8584 * target-descriptions.c (make_gdb_type): Update.
8585 * symmisc.c (print_symbol): Update.
8586 * stabsread.c (define_symbol, read_type)
8587 (complain_about_struct_wipeout, add_undefined_type)
8588 (cleanup_undefined_types_1): Update.
8589 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
8590 (rust_range_type_p, val_print_struct, rust_print_struct_def)
8591 (rust_internal_print_type, rust_composite_type)
8592 (rust_evaluate_funcall, rust_evaluate_subexp)
8593 (rust_inclusive_range_type_p): Update.
8594 * python/py-type.c (typy_get_tag): Update.
8595 * p-typeprint.c (pascal_type_print_base): Update.
8596 * mdebugread.c (parse_symbol, parse_type): Update.
8597 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
8598 Update.
8599 * guile/scm-type.c (gdbscm_type_tag): Update.
8600 * go-lang.c (sixg_string_p): Update.
8601 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
8602 Update.
8603 * gdbtypes.h (struct main_type) <tag_name>: Remove.
8604 (TYPE_TAG_NAME): Remove.
8605 * gdbtypes.c (type_name_no_tag): Simplify.
8606 (check_typedef, check_types_equal, recursive_dump_type)
8607 (copy_type_recursive, arch_composite_type): Update.
8608 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
8609 in summary mode when needed.
8610 * eval.c (evaluate_funcall): Update.
8611 * dwarf2read.c (fixup_go_packaging, read_structure_type)
8612 (process_structure_scope, read_enumeration_type)
8613 (read_namespace_type, read_module_type, determine_prefix): Update.
8614 * cp-support.c (inspect_type): Update.
8615 * coffread.c (process_coff_symbol, decode_base_type): Update.
8616 * c-varobj.c (c_is_path_expr_parent): Update.
8617 * c-typeprint.c (c_type_print_base_struct_union): Update.
8618 (c_type_print_base_1): Update. Print struct/class/union/enum in
8619 summary when using C language.
8620 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
8621 (gen_maybe_namespace_elt): Update.
8622 * ada-lang.c (ada_type_name): Simplify.
8623 (empty_record, ada_template_to_fixed_record_type_1)
8624 (template_to_static_fixed_type)
8625 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
8626
c1ec8cea
TT
86272018-06-01 Tom Tromey <tom@tromey.com>
8628
8629 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
8630 c_print_type.
8631 * c-typeprint.c (c_print_type_1): Add "language" parameter.
8632 (c_print_type): Update.
8633 (c_print_type): New overload.
8634 (c_type_print_varspec_prefix, c_type_print_args)
8635 (c_type_print_varspec_suffix, c_print_type_no_offsets)
8636 (c_type_print_base_struct_union, c_type_print_base_1)
8637 (cp_type_print_method_args): Add "language" parameter.
8638 (c_type_print_base): Update.
8639 * c-lang.h (c_print_type): Add new overload.
8640
bc8453a7
TT
86412018-06-01 Tom Tromey <tom@tromey.com>
8642
8643 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
8644 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
8645
739e8682
AH
86462018-06-01 Alan Hayward <alan.hayward@arm.com>
8647
8648 * aarch64-tdep.c (aarch64_sve_register_names): New const
8649 var.
8650 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
8651 (AARCH64_SVE_Z_REGS_NUM): New define.
8652 (AARCH64_SVE_P_REGS_NUM): Likewise.
8653 (AARCH64_SVE_NUM_REGS): Likewise.
8654
8a60efe7
UB
86552018-05-31 Uros Bizjak <ubizjak@gmail.com>
8656
8657 * nat/linux-ptrace.h [__alpha__]
8658 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
8659 definitions.
8660
4b2dfa9d
MR
86612018-05-31 Maciej W. Rozycki <macro@mips.com>
8662
8663 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
8664 the endianness selected.
8665 * NEWS: Document `set endian auto' mode operation update.
8666
122394f1
AH
86672018-05-31 Alan Hayward <alan.hayward@arm.com>
8668
8669 * Makefile.in: Add new header.
8670 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
8671 (sve_vl_from_vg): Likewise.
8672 (sve_vq_from_vl): Likewise.
8673 (sve_vl_from_vq): Likewise.
8674 (sve_vq_from_vg): Likewise.
8675 (sve_vg_from_vq): Likewise.
8676 * configure.nat: Add new c file.
8677 * nat/aarch64-sve-linux-ptrace.c: New file.
8678 * nat/aarch64-sve-linux-ptrace.h: New file.
8679
95228a0d
AH
86802018-05-31 Alan Hayward <alan.hayward@arm.com>
8681
8682 * aarch64-linux-nat.c (aarch64_linux_read_description):
8683 Add parmeter zero.
8684 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8685 Likewise.
8686 * aarch64-tdep.c (tdesc_aarch64_list): Add.
8687 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
8688 (aarch64_gdbarch_init): Add parmeter zero.
8689 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
8690 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
8691 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
8692 parmeter.
8693 * doc/gdb.texinfo: Describe SVE feature
8694 * features/aarch64-sve.c: New file.
8695
5969f0db
OJ
86962018-05-31 Omair Javaid <omair.javaid@linaro.org>
8697
8698 PR gdb/23210
8699 * gdbarch.sh (significant_addr_bit): Default to zero when
8700 not set by target architecture.
8701 * gdbarch.c: Re-generated.
8702 * utils.c (address_significant): Update.
8703
61367c61
JB
87042018-05-30 Joel Brobecker <brobecker@adacore.com>
8705
8706 * stack.c (func_command): Remove trailing newline in call to error.
8707
34a79281
SM
87082018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8709
8710 * regcache.h (regcache_raw_collect): Remove, update callers to
8711 use regcache::raw_collect.
8712 * regcache.c (regcache_raw_collect): Remove.
8713
73e1c03f
SM
87142018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8715
8716 * regcache.h (regcache_raw_supply): Remove, update callers to
8717 use detached_regcache::raw_supply.
8718 * regcache.c (regcache_raw_supply): Remove.
8719
e4c4a59b
SM
87202018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8721
8722 * regcache.h (regcache_cooked_write_part): Remove, update
8723 callers to use regcache::cooked_write_part.
8724 * regcache.c (regcache_cooked_write_part): Remove.
8725
73bb0000
SM
87262018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8727
8728 * regcache.h (regcache_cooked_read_part): Remove, update callers
8729 to use readable_regcache::cooked_read_part.
8730 * regcache.c (regcache_cooked_read_part): Remove.
8731
46a45e9d
SM
87322018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8733
8734 * regcache.h (regcache_cooked_read_value): Remove, update
8735 callers to use readable_regcache::cooked_read_value.
8736 * regcache.c (regcache_cooked_read_value): Remove.
8737
b66f5587
SM
87382018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8739
8740 * regcache.h (regcache_cooked_write): Remove, update callers to
8741 use regcache::cooked_write.
8742 * regcache.c (regcache_cooked_write): Remove.
8743
6aa7d724
SM
87442018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8745
8746 * regcache.h (regcache_invalidate): Remove, update callers to
8747 use detached_regcache::invalidate instead.
8748 * regcache.c (regcache_invalidate): Remove.
8749
4f0420fd
SM
87502018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8751
8752 * regcache.h (regcache_raw_write_part): Remove, update callers
8753 to use regcache::raw_write_part instead.
8754 * regcache.c (regcache_raw_write_part): Remove.
8755
502fe83e
SM
87562018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8757
8758 * regcache.h (regcache_raw_read_part): Remove, update callers to
8759 use readable_regcache::raw_read_part instead.
8760 * regcache.c (regcache_raw_read_part): Remove.
8761
dca08e1f
SM
87622018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8763
8764 * regcache.h (regcache_cooked_read): Remove, update callers to
8765 use readable_regcache::cooked_read instead.
8766 * regcache.c (regcache_cooked_read): Remove.
8767
10eaee5f
SM
87682018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8769
8770 * regcache.h (regcache_raw_write): Remove, update callers to use
8771 regcache::raw_write instead.
8772 * regcache.c (regcache_raw_write): Remove.
8773
0b883586
SM
87742018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8775
8776 * regcache.h (regcache_raw_read): Remove, update callers to use
8777 readable_regcache::raw_read instead.
8778 * regcache.c (regcache_raw_read): Remove.
8779
0b47d985
SM
87802018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8781
8782 * regcache.h (regcache_raw_update): Remove, update callers to
8783 use readable_regcache::raw_update instead.
8784 * regcache.c (regcache_raw_update): Remove.
8785
0ec9f114
SM
87862018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8787
8788 * regcache.h (regcache_register_status): Remove, update callers
8789 to use reg_buffer::get_register_status directly instead.
8790 * regcache.c (regcache_register_status): Remove.
8791
222312d3
SM
87922018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8793
8794 * regcache.h (regcache_get_ptid): Remove, update all callers to
8795 call regcache::ptid instead.
8796 * regcache.c (regcache_get_ptid): Remove.
8797
fdbe37e3
SM
87982018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8799
8800 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
8801
f7c6f423
PA
88022018-05-30 Pedro Alves <palves@redhat.com>
8803
8804 * common/common-exceptions.h (exception_rethrow): Use
8805 ATTRIBUTE_NORETURN.
8806
52941706
SM
88072018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
8808
8809 * breakpoint.c (print_solib_event, check_status_catch_solib):
8810 Remove struct keyword in range-based for loops.
8811 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
8812 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
8813 Likewise.
8814 * linespec.c (find_superclass_methods, search_minsyms_for_name):
8815 Likewise.
8816 * symfile.c (addr_info_make_relative): Likewise.
8817 * thread.c (value_in_thread_stack_temporaries): Likewise.
8818
bf2977b5
WP
88192018-06-12 Weimin Pan <weimin.pan@oracle.com>
8820
8821 PR gdb/16841
8822 * valops.c (value_struct_elt_for_reference): Call check_typedef on
8823 aggregate type to get its real type before accessing it.
8824
64cc34d8
WP
88252018-05-29 Weimin Pan <weimin.pan@oracle.com>
8826
8827 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
8828 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
8829 * coff-pe-read.c (add_pe_forwarded_sym): Replace
8830 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
8831 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
8832 * jit.c (jit_breakpoint_re_set_internal): Likewise.
8833 * printcmd.c (info_address_command): Likewise.
8834
e7ec8713
TT
88352018-05-29 Tom Tromey <tom@tromey.com>
8836
8837 * windows-nat.c (handle_exception): Update fall-through comment.
8838
bcb430e4
TT
88392018-05-29 Tom Tromey <tom@tromey.com>
8840
8841 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
8842 (struct program_space) <added_solibs>: Now a std::vector.
8843 * breakpoint.c (print_solib_event): Update.
8844 (check_status_catch_solib): Update.
8845 * progspace.c (clear_program_space_solib_cache): Update.
8846 * solib.c (update_solib_list): Update.
8847
894882e3
TT
88482018-05-29 Tom Tromey <tom@tromey.com>
8849
8850 * python/py-type.c (typy_richcompare): Update.
8851 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
8852 * gdbtypes.h (types_deeply_equal): Return bool.
8853 (types_equal): Likewise.
8854 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
8855 declare VEC.
8856 (check_types_equal): Change worklist to std::vector. Return
8857 bool.
8858 (struct type_equality_entry): Add constructor.
8859 (compare_maybe_null_strings): Return bool.
8860 (check_types_worklist): Return bool. Change worklist to
8861 std::vector.
8862 (types_deeply_equal): Use std::vector.
8863 (types_equal): Return bool.
8864 (compare_maybe_null_strings): Simplify.
8865
10b2ded4
TT
88662018-05-29 Tom Tromey <tom@tromey.com>
8867
8868 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
8869
4f7deebe
TT
88702018-05-29 Tom Tromey <tom@tromey.com>
8871
8872 * objc-lang.h: Don't include cp-support.h.
8873 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
8874 declare VEC.
8875
b8283aea
TT
88762018-05-27 Tom Tromey <tom@tromey.com>
8877
8878 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
8879
41a883c8
TT
88802018-05-25 Tom Tromey <tom@tromey.com>
8881
8882 * value.c (value::location): Initialize.
8883
bf259e25
TT
88842018-05-25 Tom Tromey <tom@tromey.com>
8885
8886 * dbxread.c (init_bincl_list): Remove.
8887 (bincl_list): Now a std::vector.
8888 (bincls_allocated, next_bincl): Remove.
8889 (free_bincl_list, do_free_bincl_list_cleanup)
8890 (make_cleanup_free_bincl_list): Remove.
8891 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
8892 unique_xmalloc_ptr.
8893 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
8894 (struct header_file_location): Add constructor.
8895 (add_bincl_to_list): Remove.
8896
d525a99b
TT
88972018-05-25 Tom Tromey <tom@tromey.com>
8898
8899 * tui/tui.c (tui_enable): Update.
8900 * mi/mi-interp.c (mi_interp::init): Update.
8901 * interps.h (class interp) <name>: New method.
8902 <m_name>: Rename from name.
8903 (~scoped_restore_interp): Update.
8904 * interps.c (interp::interp): Update.
8905 (interp_add, interp_set, interp_lookup_existing)
8906 (current_interp_named_p): Update.
8907
da505cff
TT
89082018-05-25 Tom Tromey <tom@tromey.com>
8909
8910 * interps.c (interp_name): Remove.
8911 * mi/mi-interp.c (mi_interp::init): Update.
8912 * interps.h (interp_name): Remove.
8913 (~scoped_restore_interp): Update.
8914 * tui/tui.c (tui_enable): Update.
8915
29f94340
TT
89162018-05-25 Tom Tromey <tom@tromey.com>
8917
8918 * utils.c (fputs_maybe_filtered): Update.
8919 * linespec.c (decode_line_full): Update.
8920 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
8921 (mi_print_breakpoint_for_event, mi_solib_loaded)
8922 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
8923 (mi_user_selected_context_changed): Update.
8924 * mi/mi-main.c (mi_execute_command): Update.
8925 * cli/cli-script.c (execute_control_command): Update.
8926 * python/python.c (execute_gdb_command): Update.
8927 * solib.c (info_sharedlibrary_command): Update.
8928 * interps.c (interp_ui_out): Remove.
8929 * interps.h (interp_ui_out): Remove.
8930
716b8bc5
TT
89312018-05-25 Tom Tromey <tom@tromey.com>
8932
8933 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
8934 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
8935 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
8936
753ff9bd
TT
89372018-05-25 Tom Tromey <tom@tromey.com>
8938
8939 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
8940 * interps.c (interp_exec): Use scoped_restore.
8941
5ca3b260
TT
89422018-05-25 Tom Tromey <tom@tromey.com>
8943
8944 * remote.c (remote_target::remote_file_get): Use
8945 gdb::byte_vector.
8946 (remote_target::remote_file_put): Likewise.
8947
3173aa2f
TT
89482018-05-25 Tom Tromey <tom@tromey.com>
8949
8950 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
8951 a std::string.
8952 (get_pe_section_index, add_pe_exported_sym): Update.
8953 (read_pe_exported_syms): Use gdb::def_vector.
8954
09a5e1b5
TT
89552018-05-25 Tom Tromey <tom@tromey.com>
8956
8957 * frame.c (remove_prev_frame): Remove.
8958 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
8959
d8dab6c3
MR
89602018-05-25 Maciej W. Rozycki <macro@mips.com>
8961
8962 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
8963 Remove prototypes.
8964 * mips-linux-nat.c (supply_fpregset): Always call
8965 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
8966 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
8967 `mips_fill_fpregset'.
8968 * mips-linux-tdep.c (mips_supply_fpregset)
8969 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
8970 (mips_fill_fpregset_wrapper): Remove functions.
8971 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
8972 (mips_linux_fpregset): Remove variable.
8973 (mips_linux_iterate_over_regset_sections): Use
8974 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
8975 (mips_linux_o32_sigframe_init): Remove comment.
8976
3c69da40
PA
89772018-05-25 Pedro Alves <palves@redhat.com>
8978
8979 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
8980 (struct readahead_cache, struct packet_reg, struct
8981 remote_arch_state, class remote_state): Move higher up in the
8982 file.
8983 (remote_target::m_remote_state): Now an object instead of a pointer.
8984 (remote_target::get_remote_state): Adjust.
8985
39f0c204
AB
89862018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
8987
8988 * stack.c (select_and_print_frame): Delete.
8989 (struct function_bounds): Move struct within function.
8990 (func_command): Most content moved into new function
8991 find_frame_for_function, use new function, print result, add
8992 function comment.
8993 (find_frame_for_function): New function, now returns a result.
8994
d392224a
PW
89952018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8996
8997 * stack.c (iterate_over_block_arg_vars): Fix comment.
8998 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
8999
45f25d6c
AB
90002018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
9001
9002 PR gdb/23203
9003 * frame.c
9004 (scoped_restore_selected_frame::scoped_restore_selected_frame):
9005 Define.
9006 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
9007 Define.
9008 * frame.h (class scoped_restore_selected_frame): New class.
9009 * stack.c (print_frame_local_vars): Remove catching and rethrowing
9010 of any exception, use scoped_restore_selected_frame to restore the
9011 frame instead.
9012
da05d921
PA
90132018-05-24 Pedro Alves <palves@redhat.com>
9014
9015 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
9016 override.
9017
a8be540e
TT
90182018-05-23 Tom Tromey <tom@tromey.com>
9019
9020 * complaints.c (struct complaints): Remove.
9021 (symfile_complaint_book): Remove.
9022 (series): New global.
9023 (complaint_internal): Update.
9024 (clear_complaints): Update.
9025
ff1cf532
TT
90262018-05-23 Tom Tromey <tom@tromey.com>
9027
9028 * complaints.c (counters): New global.
9029 (struct complain): Remove.
9030 (struct complaints) <root>: Remove.
9031 (complaint_sentinel): Remove.
9032 (symfile_complaint_book): Update.
9033 (find_complaint) Remove.
9034 (complaint_internal, clear_complaints): Update.
9035
7ff88174
TT
90362018-05-23 Tom Tromey <tom@tromey.com>
9037
9038 * complaints.c (struct complain) <file, line>: Remove.
9039 (find_complaint): Remove file, line parameters.
9040 (complaint_internal): Update.
9041
de54e1a5
TT
90422018-05-23 Tom Tromey <tom@tromey.com>
9043
9044 * complaints.c (vcomplaint): Remove.
9045 (complaint_internal) Merge in contents of vcomplaint.
9046
2ac237e5
TT
90472018-05-23 Tom Tromey <tom@tromey.com>
9048
9049 * complaints.c (struct complaints) <explanation>: Remove.
9050 (symfile_explanations): Remove.
9051 (symfile_complaint_book): Update.
9052 (vcomplaint): Update.
9053 (struct explanation): Remove.
9054
b98664d3
TT
90552018-05-23 Tom Tromey <tom@tromey.com>
9056
9057 * complaints.c (symfile_complaints): Remove.
9058 (complaint_internal): Remove "complaints" parameter.
9059 (clear_complaints, vcomplaint): Remove "c" parameter.
9060 (get_complaints): Remove.
9061 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
9062 (dwarf2_debug_line_missing_file_complaint)
9063 (dwarf2_debug_line_missing_end_sequence_complaint)
9064 (dwarf2_complex_location_expr_complaint)
9065 (dwarf2_const_value_length_mismatch_complaint)
9066 (dwarf2_section_buffer_overflow_complaint)
9067 (dwarf2_macro_malformed_definition_complaint)
9068 (dwarf2_invalid_attrib_class_complaint)
9069 (create_addrmap_from_index, dw2_symtab_iter_next)
9070 (dw2_expand_marked_cus)
9071 (dw2_debug_names_iterator::find_vec_in_debug_names)
9072 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
9073 (create_debug_type_hash_table, init_cutu_and_read_dies)
9074 (partial_die_parent_scope, add_partial_enumeration)
9075 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
9076 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
9077 (read_import_statement, read_file_scope, create_dwo_cu_reader)
9078 (create_cus_hash_table, create_dwp_hash_table)
9079 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9080 (dwarf2_rnglists_process, dwarf2_ranges_process)
9081 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
9082 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
9083 (handle_struct_member_die, process_structure_scope)
9084 (read_array_type, read_common_block, read_module_type)
9085 (read_tag_pointer_type, read_typedef, read_base_type)
9086 (read_subrange_type, load_partial_dies, partial_die_info::read)
9087 (partial_die_info::read, partial_die_info::read)
9088 (partial_die_info::read, read_checked_initial_length_and_offset)
9089 (dwarf2_string_attr, read_formatted_entries)
9090 (dwarf_decode_line_header)
9091 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
9092 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
9093 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
9094 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9095 (get_signatured_type, get_DW_AT_signature_type)
9096 (decode_locdesc, file_file_name, consume_improper_spaces)
9097 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
9098 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9099 (dwarf2_symbol_mark_computed, set_die_type)
9100 (read_attribute_value): Update.
9101 * stap-probe.c (handle_stap_probe, get_stap_base_address):
9102 Update.
9103 * dbxread.c (unknown_symtype_complaint)
9104 (lbrac_mismatch_complaint, repeated_header_complaint)
9105 (set_namestring, function_outside_compilation_unit_complaint)
9106 (read_dbx_symtab, process_one_symbol): Update.
9107 * gdbtypes.c (stub_noname_complaint): Update.
9108 * windows-nat.c (handle_unload_dll): Update.
9109 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
9110 (decode_base_type): Update.
9111 * xcoffread.c (bf_notfound_complaint, ef_complaint)
9112 (eb_complaint, record_include_begin, record_include_end)
9113 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
9114 (process_xcoff_symbol, read_symbol)
9115 (function_outside_compilation_unit_complaint)
9116 (scan_xcoff_symtab): Update.
9117 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
9118 * buildsym.c (finish_block_internal, make_blockvector)
9119 (end_symtab_get_static_block, augment_type_symtab): Update.
9120 * dtrace-probe.c (dtrace_process_dof)
9121 (dtrace_static_probe_ops::get_probes): Update.
9122 * complaints.h (struct complaint): Don't declare.
9123 (symfile_complaints): Remove.
9124 (complaint_internal): Remove "complaints" parameter.
9125 (complaint): Likewise.
9126 (clear_complaints): Likewise.
9127 * symfile.c (syms_from_objfile_1, finish_new_objfile)
9128 (reread_symbols): Update.
9129 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
9130 (dwarf2_frame_cache, decode_frame_entry): Update.
9131 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
9132 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9133 (info_selectors_command): Update.
9134 * macrotab.c (macro_include, check_for_redefinition)
9135 (macro_undef): Update.
9136 * objfiles.c (filter_overlapping_sections): Update.
9137 * stabsread.c (invalid_cpp_abbrev_complaint)
9138 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
9139 (define_symbol, error_type, read_type, rs6000_builtin_type)
9140 (stabs_method_name_from_physname, read_member_functions)
9141 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
9142 (attach_fields_to_type, complain_about_struct_wipeout)
9143 (read_range_type, read_args, common_block_start)
9144 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
9145 Update.
9146 * mdebugread.c (index_complaint, unknown_ext_complaint)
9147 (basic_type_complaint, bad_tag_guess_complaint)
9148 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
9149 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
9150 (parse_procedure, parse_lines)
9151 (function_outside_compilation_unit_complaint)
9152 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
9153 (bad_tag_guess_complaint, reg_value_complaint): Update.
9154 * cp-support.c (demangled_name_complaint): Update.
9155 * macroscope.c (sal_macro_scope): Update.
9156 * dwarf-index-write.c (class debug_names): Update.
9157
4e9668d0
TT
91582018-05-23 Tom Tromey <tom@tromey.com>
9159
9160 * complaints.c (clear_complaints): Remove "noisy" parameter.
9161 * complaints.h (clear_complaints): Update.
9162 * symfile.c (syms_from_objfile_1, finish_new_objfile)
9163 (reread_symbols): Update.
9164
43ba33c7
TT
91652018-05-23 Tom Tromey <tom@tromey.com>
9166
9167 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
9168 SUBSEQUENT_MESSAGE.
9169 (vcomplaint, clear_complaints): Update.
9170 (symfile_explanations): Remove some messages.
9171
2b9496b2
TT
91722018-05-23 Tom Tromey <tom@tromey.com>
9173
9174 * complaints.c (internal_complaint): Remove.
9175 * complaints.h (internal_complaint): Remove.
9176
35f1fea3
MR
91772018-05-22 Maciej W. Rozycki <macro@mips.com>
9178
9179 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
9180
6b8edb51
PA
91812018-05-22 Pedro Alves <palves@redhat.com>
9182
9183 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
9184 (remote_fileio_badfd, remote_fileio_return_errno)
9185 (remote_fileio_return_success, remote_fileio_func_open)
9186 (remote_fileio_func_open, remote_fileio_func_close)
9187 (remote_fileio_func_read, remote_fileio_func_write)
9188 (remote_fileio_func_lseek, remote_fileio_func_rename)
9189 (remote_fileio_func_unlink, remote_fileio_func_stat)
9190 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
9191 (remote_fileio_func_isatty, remote_fileio_func_system): Add
9192 remote_target parameter.
9193 (remote_fio_func_map) <func>: Add remote_target parameter.
9194 (do_remote_fileio_request, remote_fileio_request):
9195 * remote-fileio.h (remote_fileio_request):
9196 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
9197 remote_target parameter.
9198 (remote_notif_process, handle_notification): Adjust to pass down
9199 the remote.
9200 (remote_notif_state_allocate): Add remote_target parameter. Save
9201 it.
9202 * remote-notif.h (struct remote_target): Forward declare.
9203 (struct notif_client) <parse, ack, can_get_pending_events>: Add
9204 remote_target parameter.
9205 (struct remote_notif_state) <remote>: New field.
9206 (remote_notif_ack, remote_notif_parse): Add remote_target
9207 parameter.
9208 (remote_notif_state_allocate, remote_notif_state_allocate): Add
9209 remote_target parameter.
9210 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
9211 (threads_listing_context, rmt_thread_action, protocol_feature)
9212 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
9213 (packet_result, struct threads_listing_context, remote_state):
9214 Move definitions and declarations higher up.
9215 (remote_target) <~remote_target>: Declare.
9216 (remote_download_command_source, remote_file_put, remote_file_get)
9217 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
9218 (remote_hostio_pread_vFile, remote_hostio_send_command)
9219 (remote_hostio_set_filesystem, remote_hostio_open)
9220 (remote_hostio_close, remote_hostio_unlink, remote_state)
9221 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
9222 (get_memory_write_packet_size, get_memory_read_packet_size)
9223 (append_pending_thread_resumptions, remote_detach_1)
9224 (append_resumption, remote_resume_with_vcont)
9225 (add_current_inferior_and_thread, wait_ns, wait_as)
9226 (process_stop_reply, remote_notice_new_inferior)
9227 (process_initial_stop_replies, remote_add_thread)
9228 (btrace_sync_conf, remote_btrace_maybe_reopen)
9229 (remove_new_fork_children, kill_new_fork_children)
9230 (discard_pending_stop_replies, stop_reply_queue_length)
9231 (check_pending_events_prevent_wildcard_vcont)
9232 (discard_pending_stop_replies_in_queue, stop_reply)
9233 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
9234 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
9235 (remote_interrupt_as, remote_interrupt_ns)
9236 (remote_get_noisy_reply, remote_query_attached)
9237 (remote_add_inferior, remote_current_thread, get_current_thread)
9238 (set_thread, set_general_thread, set_continue_thread)
9239 (set_general_process, write_ptid)
9240 (remote_unpack_thread_info_response, remote_get_threadinfo)
9241 (parse_threadlist_response, remote_get_threadlist)
9242 (remote_threadlist_iterator, remote_get_threads_with_ql)
9243 (remote_get_threads_with_qxfer)
9244 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
9245 (get_offsets, remote_check_symbols, remote_supported_packet)
9246 (remote_query_supported, remote_packet_size)
9247 (remote_serial_quit_handler, remote_detach_pid)
9248 (remote_vcont_probe, remote_resume_with_hc)
9249 (send_interrupt_sequence, interrupt_query)
9250 (remote_notif_get_pending_events, fetch_register_using_p)
9251 (send_g_packet, process_g_packet, fetch_registers_using_g)
9252 (store_register_using_P, store_registers_using_G)
9253 (set_remote_traceframe, check_binary_download)
9254 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
9255 (remote_xfer_live_readonly_partial, remote_read_bytes)
9256 (remote_send_printf, remote_flash_write, readchar)
9257 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
9258 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
9259 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
9260 (extended_remote_disable_randomization, extended_remote_run)
9261 (send_environment_packet, extended_remote_environment_support)
9262 (extended_remote_set_inferior_cwd, remote_write_qxfer)
9263 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
9264 (packet_command): Now methods of ...
9265 (remote_target): ... this class.
9266 (m_remote_state) <remote_target>: New field.
9267 (struct remote_state) <stop_reply_queue,
9268 remote_async_inferior_event_token, wait_forever_enabled_p>: New
9269 fields.
9270 (remote_state::remote_state): Allocate stop_reply_queue.
9271 (remote_state): Delete global.
9272 (get_remote_state_raw): Delete.
9273 (remote_target::get_remote_state): Allocate m_remote_state on
9274 demand.
9275 (get_current_remote_target): New.
9276 (remote_ops, extended_remote_ops): Delete.
9277 (wait_forever_enabled_p, remote_async_inferior_event_token):
9278 Delete, moved to struct remote_state.
9279 (remote_target::close): Delete self. Destruction bits split to
9280 ...
9281 (remote_target::~remote_target): ... this.
9282 (show_memory_packet_size): Adjust to use
9283 get_current_remote_target.
9284 (struct protocol_feature) <func>: Add remote_target parameter.
9285 All callers adjusted.
9286 (curr_quit_handler_target): New.
9287 (remote_serial_quit_handler): Reimplement.
9288 (remote_target::open_1): Adjust to use get_current_remote_target.
9289 Heap-allocate remote_target/extended_remote_target instances.
9290 (vcont_builder::vcont_builder): Add remote_target parameter, and
9291 save it in m_remote. All callers adjusted.
9292 (vcont_builder::m_remote): New field.
9293 (vcont_builder::restart, vcont_builder::flush)
9294 (vcont_builder::push_action): Use it.
9295 (remote_target::commit_resume): Use it.
9296 (struct queue_iter_param) <remote>: New field.
9297 (remote_target::remove_new_fork_children): Fill in 'remote' field.
9298 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
9299 (check_pending_event_prevents_wildcard_vcont_callback)
9300 (remote_target::check_pending_events_prevent_wildcard_vcont)
9301 (remote_target::discard_pending_stop_replies)
9302 (remote_target::discard_pending_stop_replies_in_queue)
9303 (remote_target::remote_notif_remove_queued_reply): Fill in
9304 'remote' field.
9305 (remote_notif_get_pending_events): New.
9306 (remote_target::readchar, remote_target::remote_serial_write):
9307 Save/restore curr_quit_handler_target.
9308 (putpkt): New.
9309 (kill_new_fork_children): Fill in 'remote' field.
9310 (packet_command): Use get_current_remote_target, defer to
9311 remote_target method of same name.
9312 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
9313 parameter, and save it in m_remote. All callers adjusted.
9314 (scoped_remote_fd::release): Use m_remote.
9315 (scoped_remote_fd::m_remote): New field.
9316 (remote_file_put, remote_file_get, remote_file_delete): Use
9317 get_current_remote_target, defer to remote_target method of same
9318 name.
9319 (remote_btrace_reset): Add remote_state paremeter. Update all
9320 callers.
9321 (remote_async_inferior_event_handler). Pass down 'data'.
9322 (remote_new_objfile): Use get_current_remote_target.
9323 (remote_target::vcont_r_supported): New.
9324 (set_range_stepping): Use get_current_remote_target and
9325 remote_target::vcont_r_supported.
9326 (_initialize_remote): Don't allocate 'remote_state' and
9327 'stop_reply_queue' globals.
9328 * remote.h (struct remote_target): Forward declare.
9329 (getpkt, putpkt, remote_notif_get_pending_events): Add
9330 'remote_target' parameter.
9331
f5db4863
PA
93322018-05-22 Pedro Alves <palves@redhat.com>
9333
9334 * remote.c (vcont_builder): Now a class. Make all data members
9335 private.
9336 (vcont_builder) <vcont_builder, restart, flush, push_action>:
9337 Declare methods.
9338 (vcont_builder_restart): Rename to ...
9339 (vcont_builder::restart): ... this.
9340 (vcont_builder_flush): Rename to ...
9341 (vcont_builder::flush): ... this.
9342 (vcont_builder_push_action): Rename to ...
9343 (vcont_builder::push_action): ... this.
9344 (remote_target::commit_resume): Adjust.
9345
cc0be08f
PA
93462018-05-22 Pedro Alves <palves@redhat.com>
9347
9348 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
9349 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
9350 (get_fixed_memory_packet_size): New.
9351 (get_memory_packet_size): Use it.
9352 (set_memory_packet_size): Don't override the config size with
9353 DEFAULT_MAX_MEMORY_PACKET_SIZE.
9354 (show_memory_packet_size): Use get_fixed_memory_packet_size.
9355 Don't refer to get_memory_packet_size if not connected to a remote
9356 target. Show "(default)" if configured size is 0.
9357
9607784a
PA
93582018-05-22 Pedro Alves <palves@redhat.com>
9359
9360 * remote.c (remote_target::mourn_inferior): Move
9361 discard_pending_stop_replies call here from ...
9362 (_initialize_remote): ... here.
9363
0e9a6b2f
PA
93642018-05-22 Pedro Alves <palves@redhat.com>
9365
9366 * remote.c (compare_section_command): Remove set_general_process
9367 call.
9368
43c3a0e4
PA
93692018-05-22 Pedro Alves <palves@redhat.com>
9370
9371 * remote.c (struct packet_reg, struct remote_arch_state):
9372 Move higher up in the file.
9373 (remote_state) <m_arch_states>: Store remote_arch_state values
9374 instead of remote_arch_state pointers.
9375 (remote_state::get_remote_arch_state): Adjust.
9376
9d6eea31
PA
93772018-05-22 Pedro Alves <palves@redhat.com>
9378
9379 * remote.c: Include <unordered_map>.
9380 (remote_state): Now a class.
9381 (remote_state) <get_remote_arch_state>: Declare method.
9382 <get_remote_arch_state>: New field.
9383 (remote_arch_state) <remote_arch_state>: Declare ctor.
9384 <regs>: Now a unique_ptr.
9385 (remote_gdbarch_data_handle): Delete.
9386 (get_remote_arch_state): Delete.
9387 (remote_state::get_remote_arch_state): New.
9388 (get_remote_state): Adjust to call remote_state's
9389 get_remote_arch_state method.
9390 (init_remote_state): Delete, bits factored out to ...
9391 (remote_arch_state::remote_arch_state): ... this new method.
9392 (get_remote_packet_size, get_memory_packet_size)
9393 (process_g_packet, remote_target::fetch_registers)
9394 (remote_target::prepare_to_store, store_registers_using_G)
9395 (remote_target::store_registers, remote_target::get_trace_status):
9396 Adjust to call remote_state's method.
9397 (_initialize_remote): Remove reference to
9398 remote_gdbarch_data_handle.
9399
dd194f6b
PA
94002018-05-22 Pedro Alves <palves@redhat.com>
9401
9402 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
9403 pread>: New method declarations.
9404 (remote_target::open_1): Adjust.
9405 (readahead_cache_invalidate): Rename to ...
9406 (readahead_cache::invalidate): ... this, and adjust to be a class
9407 method.
9408 (readahead_cache_invalidate_fd): Rename to ...
9409 (readahead_cache::invalidate_fd): ... this, and adjust to be a
9410 class method.
9411 (remote_hostio_pwrite): Adjust.
9412 (remote_hostio_pread_from_cache): Rename to ...
9413 (readahead_cache::pread): ... this, and adjust to be a class
9414 method.
9415 (remote_hostio_close): Adjust.
9416
440b7aec
PA
94172018-05-22 Pedro Alves <palves@redhat.com>
9418
9419 * remote.c (remote_hostio_close_cleanup): Delete.
9420 (class scoped_remote_fd): New.
9421 (remote_file_put, remote_file_get): Use it.
9422
de44f5a7
PA
94232018-05-22 Pedro Alves <palves@redhat.com>
9424
9425 (struct vCont_action_support): Use bool and initialize all fields.
9426 (struct readahead_cache): Initialize all fields.
9427 (remote_state): Use bool and initialize all fields.
9428 (remote_state::remote_state, remote_state::~remote_state): New.
9429 (new_remote_state): Delete.
9430 (_initialize_remote): Use new to allocate remote_state.
9431
b1b60145
PA
94322018-05-22 Pedro Alves <palves@redhat.com>
9433 張俊芝 <zjz@zjz.name>
9434
9435 PR gdb/22973
9436 * c-exp.y: Include "c-support.h".
9437 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
9438 of tolower. Use c_ident_is_alpha to scan names.
9439 * c-lang.c: Include "c-support.h".
9440 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
9441 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
9442 * c-support.h: New file, with bits factored out from ...
9443 * cp-name-parser.y: ... this file.
9444 Include "c-support.h".
9445 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
9446 c-support.h and renamed.
9447 (symbol_end, yylex): Adjust.
9448
0ec848ad
PFC
94492018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9450
9451 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
9452 parameter type to CORE_ADDR.
9453 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
9454 parameter type in declaration to CORE_ADDR.
9455 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
9456 target_auxv_search to get AT_HWCAP and use the result to get the
9457 target description.
9458 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
9459 to CORE_ADDR. Remove the cast of the return value to unsigned
9460 long. Fix error predicate of target_auxv_search.
9461 (ppc_linux_nat_target::read_description): Change the type of the
9462 hwcap variable to CORE_ADDR.
9463
0fb2aaa1
PFC
94642018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9465
9466 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
9467 if the size of fpscr is larger than 32 bits.
9468
2c3305f6
PFC
94692018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9470
9471 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
9472 (ppc32_linux_vsxregmap): New global.
9473 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
9474 regcache_supply_regset, and regcache_collect_regset.
9475 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
9476 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
9477 (fetch_vsx_register, store_vsx_register): Remove.
9478 (fetch_vsx_registers): Add regno parameter. Get regset using
9479 ppc_linux_vsxregset. Use regset to supply registers.
9480 (store_vsx_registers): Add regno parameter. Get regset using
9481 ppc_linux_vsxregset. Use regset to collect registers.
9482 (fetch_register): Call fetch_vsx_registers instead of
9483 fetch_vsx_register.
9484 (store_register): Call store_vsx_registers instead of
9485 store_vsx_register.
9486 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
9487 new regno parameter.
9488 (store_ppc_registers): Call store_vsx_registers with -1 for the
9489 new regno parameter.
9490 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
9491 (ppc_collect_vsxregset): Remove.
9492
1d75a658
PFC
94932018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9494
9495 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
9496 offset fields.
9497 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
9498 for vector register offset fields.
9499 (ppc64_fbsd_reg_offsets): Likewise.
9500 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9501 to vector register offset fields.
9502 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9503 to vector register offset fields.
9504 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
9505 vector register offset fields.
9506 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
9507 initializers for vector register offset fields.
9508 (rs6000_aix64_reg_offsets): Likewise.
9509 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
9510 (ppc_supply_vrregset): Remove.
9511 (ppc_collect_vrregset): Remove.
9512 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
9513 (ppc_linux_vrregset) : New function.
9514 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
9515 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
9516 (ppc32_linux_vrregset): Remove.
9517 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
9518 and use result instead of ppc32_linux_vrregset.
9519 (ppc32_linux_reg_offsets): Remove initializers for vector register
9520 offset fields.
9521 (ppc64_linux_reg_offsets): Likewise.
9522 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
9523 * ppc-linux-nat.c: Include regset.h.
9524 (gdb_vrregset_t): Adjust comment to account for little-endian
9525 mode.
9526 (supply_vrregset, fill_vrregset): Remove.
9527 (fetch_altivec_register, store_altivec_register): Remove.
9528 (fetch_altivec_registers): Add regno parameter. Get regset using
9529 ppc_linux_vrregset. Use regset to supply registers.
9530 (store_altivec_registers): Add regno parameter. Get regset using
9531 ppc_linux_vrregset. Use regset to collect registers.
9532 (fetch_register): Call fetch_altivec_registers instead of
9533 fetch_altivec_register.
9534 (store_register): Call store_altivec_registers instead of
9535 store_altivec_register.
9536 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
9537 the new regno parameter.
9538 (store_ppc_registers): Call store_altivec_registers with -1 for
9539 the new regno parameter.
9540
d078308a
PFC
95412018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9542
9543 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
9544 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
9545 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
9546 (gdb_vrregset_t): Change array type size to
9547 PPC_LINUX_SIZEOF_VRREGSET.
9548 (gdb_vsxregset_t): Change array type size to
9549 PPC_LINUX_SIZEOF_VSXREGSET.
9550 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
9551 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
9552 PPC_LINUX_SIZEOF_VSXREGSET.
9553
2e077f5e
PFC
95542018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9555
9556 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
9557 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
9558 nat/ppc-linux.c.
9559 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
9560 ppc_linux_target_wordsize with tid.
9561 (ppc_linux_nat_target::read_description): Call ppc_linux_target
9562 wordsize with tid.
9563 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
9564 (ppc64_64bit_inferior_p): Add static and inline specifiers.
9565 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
9566 tid parameter. Remove static specifier.
9567 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
9568 (ppc_linux_target_wordsize): New declaration.
9569
bd64614e
PFC
95702018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9571
9572 * arch/ppc-linux-common.c: New file.
9573 * arch/ppc-linux-common.h: New file.
9574 * arch/ppc-linux-tdesc.h: New file.
9575 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
9576 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
9577 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
9578 arch/ppc-linux-tdesc.h.
9579 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
9580 arch/ppc-linux-tdesc.h.
9581 (ppc_linux_nat_target::read_description): Remove target
9582 description matching code. Fill a ppc_linux_features struct and
9583 call ppc_linux_match_description with it. Move comment about ISA
9584 2.05 to ppc-linux-common.c.
9585 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
9586 arch/ppc-linux-tdesc.h.
9587 (ppc_linux_core_read_description): Remove target description
9588 matching code. Fill a ppc_linux_features struct and call
9589 ppc_linux_match_description with it.
9590 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
9591 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
9592 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
9593 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
9594 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
9595 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
9596 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
9597 (tdesc_powerpc_e500l): Remove.
9598
241db429
JB
95992018-05-22 Joel Brobecker <brobecker@adacore.com>
9600
9601 * ada-lang.c (catch_assert_command): Pass empty string instead
9602 of NULL for excep_string argument.
9603
75d74cca
MR
96042018-05-22 Maciej W. Rozycki <macro@mips.com>
9605
9606 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
9607 the width of the requested register exceeds the width of the
9608 `ptrace' data type.
9609
122b53ea
TT
96102018-05-21 Tom Tromey <tom@tromey.com>
9611
9612 * printcmd.c (output_command): Remove.
9613 (output_command_const): Rename to output_command.
9614 * valprint.h (output_command): Rename from output_command_const.
9615 * tracepoint.c (trace_dump_actions): Call output_command.
9616
bc18fbb5
TT
96172018-05-21 Tom Tromey <tom@tromey.com>
9618
9619 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
9620 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
9621 * ada-lang.h (create_ada_exception_catchpoint): Update.
9622 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
9623 std::string.
9624 (create_excep_cond_exprs, ~ada_catchpoint)
9625 (should_stop_exception, print_one_exception)
9626 (print_mention_exception, print_recreate_exception): Update.
9627 (ada_get_next_arg): Remove.
9628 (catch_ada_exception_command_split): Use std::string. Change type
9629 of "excep_string", "cond_string".
9630 (catch_ada_exception_command): Update.
9631 (create_ada_exception_catchpoint): Change type of excep_string.
9632 (ada_exception_sal): Remove excep_string parameter.
9633 (~ada_catchpoint): Remove.
9634
790217f6
TT
96352018-05-21 Tom Tromey <tom@tromey.com>
9636
9637 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
9638 cleanup.
9639
6f46ac85
TT
96402018-05-21 Tom Tromey <tom@tromey.com>
9641
9642 * ada-lang.c (ada_exception_message_1, ada_exception_message):
9643 Return unique_xmalloc_ptr.
9644 (print_it_exception): Update.
9645
15b6611c
TT
96462018-05-21 Tom Tromey <tom@tromey.com>
9647
9648 * tracepoint.c (trace_dump_actions): Use std::string.
9649
c0c9f665
TT
96502018-05-21 Tom Tromey <tom@tromey.com>
9651
9652 * symfile.c (reread_symbols): Use std::string for original_name.
9653
22ca247e
TT
96542018-05-21 Tom Tromey <tom@tromey.com>
9655
9656 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
9657 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
9658 constructor.
9659
184cde75
SM
96602018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
9661
9662 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
9663 instance to...
9664 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
9665 * objfiles.c (get_objfile_bfd_data): Allocate
9666 objfile_per_bfd_storage with obstack_new when allocating on
9667 obstack.
9668
e39db4db
SM
96692018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9670
9671 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
9672 OBSTACK_ZALLOC.
9673 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
9674 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
9675 * mdebugread.c (mdebug_build_psymtabs): Likewise.
9676 (add_pending): Likewise.
9677 (parse_symbol): Likewise.
9678 (parse_partial_symbols): Likewise.
9679 (psymtab_to_symtab_1): Likewise.
9680 (new_psymtab): Likewise.
9681 (elfmdebug_build_psymtabs): Likewise.
9682 * minsyms.c (terminate_minimal_symbol_table): Likewise.
9683 * objfiles.c (get_objfile_bfd_data): Likewise.
9684 (objfile_register_static_link): Likewise.
9685 * psymtab.c (allocate_psymtab): Likewise.
9686 * stabsread.c (read_member_functions): Likewise.
9687 * xcoffread.c (xcoff_end_psymtab): Likewise.
9688
284a0e3c
SM
96892018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9690
9691 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
9692 compiler supports std::is_trivially_constructible.
9693 * common/poison.h: Include obstack.h.
9694 (IsMallocable): Define to is_trivially_constructible if the
9695 compiler supports it, define to true_type otherwise.
9696 (xobnew): New.
9697 (XOBNEW): Redefine.
9698 (xobnewvec): New.
9699 (XOBNEWVEC): Redefine.
9700 * gdb_obstack.h (obstack_zalloc): New.
9701 (OBSTACK_ZALLOC): Redefine.
9702 (obstack_calloc): New.
9703 (OBSTACK_CALLOC): Redefine.
9704 (obstack_new): New.
9705 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
9706 (gdbarch_obstack): New declaration in gdbarch.h, definition in
9707 gdbarch.c.
9708 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
9709 obstack_calloc/obstack_zalloc.
9710 (gdbarch_obstack_zalloc): Remove.
9711 * target-descriptions.c (tdesc_data_init): Use obstack_new.
9712
59f66be3
PW
97132018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9714
9715 * stack.c (backtrace_command_1): Remove useless variable int i.
9716
50c65c2d
PW
97172018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9718
9719 * stack.c (print_frame_info): Fix comment.
9720
7ff8cb8c
TT
97212018-05-18 Tom Tromey <tom@tromey.com>
9722
9723 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
9724 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
9725 (~dwarf2_per_objfile): Update
9726 (dwarf2_get_dwz_file): Use new.
9727 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
9728 unique_ptr.
9729
400174b1
TT
97302018-05-18 Tom Tromey <tom@tromey.com>
9731
9732 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
9733 unique_ptr.
9734 * dwarf2read.c (struct dwp_file): Add constructor and
9735 initializers.
9736 (open_and_init_dwp_file): Return a unique_ptr.
9737 (dwarf2_per_objfile, create_dwp_hash_table)
9738 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
9739 (lookup_dwo_unit_in_dwp): Update.
9740 (open_and_init_dwp_file, get_dwp_file): Update.
9741
3063847f
TT
97422018-05-18 Tom Tromey <tom@tromey.com>
9743
9744 * dwarf2read.c (dwarf2_per_objfile): Update.
9745 (struct mapped_index): Add initializers.
9746 (dwarf2_read_index): Use new.
9747 (dw2_symtab_iter_init): Update.
9748 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
9749 unique_ptr.
9750
d3d02dee
SM
97512018-05-18 Simon Marchi <simon.marchi@ericsson.com>
9752
9753 * dwarf2read.c (mapped_index) <total_size>: Remove.
9754
1d143c36
SM
97552018-05-18 Simon Marchi <simon.marchi@ericsson.com>
9756
9757 * unittests/format_pieces-selftests.c (test_format_specifier):
9758 Add ARI comments.
9759
ce1e8424
TT
97602018-05-18 Tom Tromey <tom@tromey.com>
9761
9762 * c-typeprint.c (maybe_print_hole): New function.
9763 (c_print_type_struct_field_offset): Update.
9764 (c_type_print_base_struct_union): Call maybe_print_hole.
9765
ddfe970e
KS
97662018-05-17 Keith Seitz <keiths@redhat.com>
9767
9768 * breakpoint.c (build_bpstat_chain): New function, moved from
9769 bpstat_stop_status.
9770 (bpstat_stop_status): Add optional parameter, `stop_chain'.
9771 If no stop chain is passed, call build_bpstat_chain to build it.
9772 * breakpoint.h (build_bpstat_chain): Declare.
9773 (bpstat_stop_status): Move documentation here from breakpoint.c.
9774 * infrun.c (handle_signal_stop): Before eliding inlined frames,
9775 build the stop chain and pass it to skip_inline_frames.
9776 Pass this stop chain to bpstat_stop_status.
9777 * inline-frame.c: Include breakpoint.h.
9778 (stopped_by_user_bp_inline_frame): New function.
9779 (skip_inline_frames): Add parameter `stop_chain'.
9780 Move documention to inline-frame.h.
9781 If non-NULL, use stopped_by_user_bp_inline_frame to determine
9782 whether the frame should be elided.
9783 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
9784 Add moved documentation and update for new parameter.
9785
b17992c1
SM
97862018-05-17 Simon Marchi <simon.marchi@ericsson.com>
9787
9788 PR cli/14975
9789 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9790 unittests/format_pieces-selftests.c.
9791 * common/format.h (format_piece) <operator==>: New.
9792 (format_pieces) <operator[]>: Remove.
9793 * common/format.c (format_pieces::format_pieces): Handle \e.
9794 * unittests/format_pieces-selftests.c: New.
9795
58f0c718
TT
97962018-05-17 Tom Tromey <tom@tromey.com>
9797
9798 PR symtab/23010:
9799 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
9800 (dw2_instantiate_symtab): Add skip_partial parameter.
9801 (dw2_find_last_source_symtab, dw2_map_expand_apply)
9802 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
9803 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
9804 (dw2_expand_symtabs_matching_one)
9805 (dw2_find_pc_sect_compunit_symtab)
9806 (dw2_debug_names_lookup_symbol)
9807 (dw2_debug_names_expand_symtabs_for_function): Update.
9808 (init_cutu_and_read_dies): Add skip_partial parameter.
9809 (process_psymtab_comp_unit, build_type_psymtabs_1)
9810 (process_skeletonless_type_unit, load_partial_comp_unit)
9811 (psymtab_to_symtab_1): Update.
9812 (load_full_comp_unit): Add skip_partial parameter.
9813 (process_imported_unit_die, dwarf2_read_addr_index)
9814 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
9815 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
9816 (read_signatured_type): Update.
9817
3e618834
SM
98182018-05-17 Simon Marchi <simon.marchi@ericsson.com>
9819
9820 * value.c (release_value): Remove unused variable.
9821 (record_latest_value): Likewise.
9822 (access_value_history): Likewise.
9823 (preserve_values): Likewise.
9824
fe10fe31
TT
98252018-05-17 Tom Tromey <tom@tromey.com>
9826
9827 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
9828 Initialize.
9829
1d761124
MR
98302018-05-16 Maciej W. Rozycki <macro@mips.com>
9831
9832 PR gdb/22286
9833 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
9834 Also handle registers whose width is not a multiple of
9835 PTRACE_TYPE_RET.
9836 (linux_nat_trad_target::store_register): Likewise.
9837
06333fea
TT
98382018-05-16 Tom Tromey <tom@tromey.com>
9839
9840 * gdbcore.h (core_bfd): Redefine.
9841 * corelow.c (core_target::close): Update.
9842 (core_target_open): Update.
9843 * progspace.h (struct program_space) <cbfd>: Now a
9844 gdb_bfd_ref_ptr.
9845
921222e2
TT
98462018-05-16 Tom Tromey <tom@tromey.com>
9847
9848 PR cli/19551:
9849 * symfile-add-flags.h (enum symfile_add_flags)
9850 <SYMFILE_NOT_FILENAME>: New constant.
9851 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
9852 objfile name from BFD.
9853 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
9854 * minidebug.c (find_separate_debug_file_in_section): Put
9855 ".gnu_debugdata" into BFD's file name.
9856
3acb7083
SM
98572018-05-16 Simon Marchi <simon.marchi@ericsson.com>
9858
9859 * regcache.c (regcache_read_ftype, regcache_write_ftype):
9860 Remove.
9861
561a72d4
TC
98622018-05-15 Tamar Christina <tamar.christina@arm.com>
9863
9864 PR binutils/21446
9865 * aarch64-tdep.c (aarch64_analyze_prologue,
9866 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
9867 Indicate not interested in errors.
9868
4e6ff0e1
MR
98692018-05-15 Maciej W. Rozycki <macro@mips.com>
9870
9871 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
9872 Supply the MIPS_ZERO_REGNUM register.
9873
ea33cd92
MR
98742018-05-15 Maciej W. Rozycki <macro@mips.com>
9875
9876 * mips-tdep.c (mask_address_var): Make variable static.
9877
2d79090e
TT
98782018-05-14 Tom Tromey <tom@tromey.com>
9879
9880 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
9881
cf4912ae
AB
98822018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
9883
9884 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
9885 FXSAVE_ADDR for the mxcsr register.
9886
67e6f569
MF
98872018-05-11 Max Filippov <jcmvbkbc@gmail.com>
9888
9889 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
9890
15244507
PA
98912018-05-11 Pedro Alves <palves@redhat.com>
9892
9893 * corelow.c (core_target) <core_target>: No longer inline.
9894 Initialize m_core_gdbarch, m_core_vec and build the section table
9895 here.
9896 <~core_target>: New.
9897 <core_gdbarch, get_core_register_section>: New methods.
9898 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
9899 factored out from ...
9900 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
9901 (core_ops): Delete.
9902 (sniff_core_bfd): Add gdbarch parameter.
9903 (core_close): Delete, merged into ...
9904 (core_target::close): ... here. Delete self.
9905 (core_close_cleanup): Delete.
9906 (core_target_open): Allocate a core_target on the heap. Use a
9907 unique_ptr instead of a cleanup. Bits moved into the core_target
9908 ctor. Adjust to use core_target methods instead of globals.
9909 (get_core_register_section): Rename to ...
9910 (core_target::get_core_register_section): ... this and adjust.
9911 (struct get_core_registers_cb_data): New.
9912 (get_core_registers_cb): Use it. Use bool.
9913 (core_target::fetch_registers, core_target::files_info)
9914 (core_target::xfer_partial, core_target::read_description)
9915 (core_target::pid_to, core_target::thread_name): Adjust to
9916 reference class fields instead of globals.
9917 * target.h (struct target_ops_deleter, target_ops_up): New.
9918
451953fa
PA
99192018-05-11 Pedro Alves <palves@redhat.com>
9920
9921 * corefile.c (core_file_command): Move to corelow.c.
9922 * corelow.c (the_core_target): Delete.
9923 (core_file_command): Moved from corefile.c. Check exec_bfd
9924 instead of the_core_target. Use target_detach instead of calling
9925 into the_core_target directly.
9926 (maybe_say_no_core_file_now): New.
9927 (core_target::detach): Use it.
9928 (_initialize_corelow): Remove references to the_core_target.
9929 * gdbcore.h (the_core_target): Delete.
9930
e540a5a2 99312018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 9932 Pedro Alves <palves@redhat.com>
e540a5a2
TT
9933
9934 * corefile.c (core_bfd): Remove.
9935 * gdbcore.h (core_bfd): Now a macro.
9936 * progspace.h (struct program_space) <cbfd>: New field.
9937
633cf254
TT
99382018-05-11 Tom Tromey <tom@tromey.com>
9939
9940 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
9941 gdb::def_vector.
9942
1a34f210
TT
99432018-05-10 Tom Tromey <tom@tromey.com>
9944
9945 * configure: Rebuild.
9946 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
9947
190852c8
JB
99482018-05-10 Joel Brobecker <brobecker@adacore.com>
9949
9950 PR server/23158:
9951 * regformats/regdat.sh: Adjust script, following the addition
9952 of the new expedite_regs parameter to init_target_desc.
9953
8727de56
OJ
99542018-05-10 Omair Javaid <omair.javaid@linaro.org>
9955
9956 PR gdb/23127
9957 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
9958 set_gdbarch_significant_addr_bit.
9959 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
9960 set_gdbarch_significant_addr_bit.
9961 * utils.c (address_significant): Update to sign extend addr.
9962
37d9e062
MF
99632018-05-09 Max Filippov <jcmvbkbc@gmail.com>
9964
9965 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
9966 (xtensa_linux_init_abi): Limit tdep->num_regs by
9967 tdep->num_nopriv_regs.
9968 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
9969 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
9970 not initialized.
9971
7402fbca
SM
99722018-05-08 Simon Marchi <simon.marchi@ericsson.com>
9973
9974 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
9975
8ee22052
AB
99762018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9977
9978 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
9979 (I387_MXCSR_INIT_VAL): New constant.
9980 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
9981 buffer if it was supplied by the inferior.
9982 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
9983 (i387_xsave_get_clear_bv): New function.
9984 (i387_supply_xsave): Only read x87 control registers from the
9985 xsave buffer if the feature is enabled, and the state will have
9986 been written, otherwise, provide a suitable default.
9987 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
9988 including x87 control registers. Update control registers if they
9989 have changed from the default value, and mark features as enabled
9990 as required.
9991 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
9992
968ae51b
UW
99932018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
9994
9995 * spu-tdep.c (info_spu_event_command): Fix output formatting.
9996
aff689d3
TT
99972018-05-07 Tom Tromey <tom@tromey.com>
9998
9999 * configure: Rebuild.
10000 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
10001
ce887586
TT
100022018-05-07 Tom Tromey <tom@tromey.com>
10003
10004 PR tdep/20362:
10005 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
10006 bit. Use correct value for VDIV.
10007
85e26832
TT
100082018-05-04 Tom Tromey <tom@tromey.com>
10009
10010 * configure: Rebuild.
10011 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
10012
449b1ac7
TT
100132018-05-04 Tom Tromey <tom@tromey.com>
10014
10015 * linux-record.c (record_linux_system_call) <case
10016 RECORD_SYS_RECVFROM>: Add "break".
10017
15c9ffd6
TT
100182018-05-04 Tom Tromey <tom@tromey.com>
10019
10020 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
10021 Add missing "break".
10022 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
10023 Add missing "break".
10024
e3829d13
TT
100252018-05-04 Tom Tromey <tom@tromey.com>
10026
10027 * rs6000-tdep.c (ppc_process_record_op4)
10028 (ppc_process_record_op63): Add fall-through comment.
10029
da0e1563
TT
100302018-05-04 Tom Tromey <tom@tromey.com>
10031
10032 * i386-tdep.c (i386_process_record): Add fall-through comment.
10033
0019cd49
TT
100342018-05-04 Tom Tromey <tom@tromey.com>
10035
10036 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
10037 comment.
10038
565e0eda
TT
100392018-05-04 Tom Tromey <tom@tromey.com>
10040
10041 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
10042 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
10043 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
10044 comment.
10045 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
10046 comment.
10047 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
10048 comment.
10049
621846f4
TT
100502018-05-04 Tom Tromey <tom@tromey.com>
10051
10052 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
10053
86a73007
TT
100542018-05-04 Tom Tromey <tom@tromey.com>
10055
10056 * s390-tdep.c (s390_process_record): Fix fall-through comments.
10057 * xcoffread.c (scan_xcoff_symtab): Move comment later.
10058 * symfile.c (section_is_mapped): Fix fall-through comment.
10059 * stabsread.c (define_symbol, read_member_functions): Fix
10060 fall-through comment.
10061 * s390-linux-tdep.c (s390_process_record): Fix fall-through
10062 comment.
10063 * remote.c (remote_wait_as): Fix fall-through comment.
10064 * p-exp.y (yylex): Fix fall-through comment.
10065 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
10066 comment.
10067 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
10068 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
10069 * jv-exp.y (yylex): Fix fall-through comment.
10070 * go-exp.y (lex_one_token): Fix fall-through comment.
10071 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
10072 fall-through comment.
10073 * f-exp.y (yylex): Fix fall-through comment.
10074 * dwarf2read.c (process_die): Fix fall-through comments.
10075 * dbxread.c (process_one_symbol): Fix fall-through comment.
10076 * d-exp.y (lex_one_token): Fix fall-through comment.
10077 * cp-name-parser.y (yylex): Fix fall-through comment.
10078 * coffread.c (coff_symtab_read): Fix fall-through comment.
10079 * c-exp.y (lex_one_token): Fix fall-through comment.
10080 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
10081 comment.
10082 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
10083 comment.
10084
56bcdbea
TT
100852018-05-04 Tom Tromey <tom@tromey.com>
10086
10087 PR python/22730:
10088 * NEWS: Mention gdb.execute change.
10089 * gdbcmd.h (execute_control_command): Don't declare.
10090 * python/python.c (execute_gdb_command): Use read_command_lines_1,
10091 execute_control_commands, execute_control_commands_to_string.
10092 * cli/cli-script.h (execute_control_commands)
10093 (execute_control_commands_to_string): Declare.
10094 (execute_control_command): Add from_tty parameter.
10095 * cli/cli-script.c (execute_control_commands)
10096 (execute_control_commands_to_string): New functions.
10097 (execute_user_command): Use execute_control_commands.
10098 (execute_control_command_1): Add "from_tty" parameter. Update.
10099 (execute_control_command): Likewise.
10100
a913fffb
TT
101012018-05-04 Tom Tromey <tom@tromey.com>
10102
10103 PR python/22731:
10104 * NEWS: Mention that breakpoint commands are writable.
10105 * python/py-breakpoint.c (bppy_set_commands): New function.
10106 (breakpoint_object_getset) <"commands">: Use it.
10107
60b3cef2
TT
101082018-05-04 Tom Tromey <tom@tromey.com>
10109
10110 * tracepoint.c (actions_command): Update.
10111 * mi/mi-cmd-break.c (mi_command_line_array)
10112 (mi_command_line_array_cnt, mi_command_line_array_ptr)
10113 (mi_read_next_line): Remove.
10114 (mi_cmd_break_commands): Update.
10115 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
10116 function_view.
10117 * cli/cli-script.c (get_command_line): Update.
10118 (process_next_line): Use function_view. Constify.
10119 (recurse_read_control_structure, read_command_lines)
10120 (read_command_lines_1): Change argument types to function_view.
10121 (do_define_command, document_command): Update.
10122 * breakpoint.h (check_tracepoint_command): Don't declare.
10123 * breakpoint.c (check_tracepoint_command): Remove.
10124 (commands_command_1, create_tracepoint_from_upload): Update.
10125
7a2c85f2
TT
101262018-05-04 Tom Tromey <tom@tromey.com>
10127
10128 PR gdb/11750:
10129 * cli/cli-script.h (enum command_control_type) <define_control>:
10130 New constant.
10131 * cli/cli-script.c (multi_line_command_p): Handle define_control.
10132 (build_command_line, execute_control_command_1)
10133 (process_next_line): Likewise.
10134 (do_define_command): New function, extracted from define_command.
10135 (define_command): Use it.
10136
295dc222
TT
101372018-05-04 Tom Tromey <tom@tromey.com>
10138
10139 * tracepoint.c (actions_command): Update.
10140 * cli/cli-script.h (read_command_lines): Update.
10141 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
10142 (MAX_TMPBUF): Remove define.
10143 (define_command): Use string_printf.
10144 (document_command): Likewise.
10145 * breakpoint.c (commands_command_1): Update.
10146
1263a9d5
TT
101472018-05-04 Tom Tromey <tom@tromey.com>
10148
10149 * top.c (execute_command): Update.
10150 * cli/cli-script.h (print_command_lines): Now varargs.
10151 * cli/cli-script.c (print_command_lines): Now varargs.
10152 (execute_control_command_1) <case while_control, case if_control>:
10153 Update.
10154
12973681
TT
101552018-05-04 Tom Tromey <tom@tromey.com>
10156
10157 * tracepoint.c (all_tracepoint_actions): Rename from
10158 all_tracepoint_actions_and_cleanup. Change return type.
10159 (actions_command, encode_actions_1, encode_actions)
10160 (trace_dump_actions, tdump_command): Update.
10161 * remote.c (remote_download_command_source): Update.
10162 * python/python.c (gdbpy_eval_from_control_command)
10163 (python_command, python_interactive_command): Update.
10164 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10165 * guile/guile.c (guile_command)
10166 (gdbscm_eval_from_control_command, guile_command): Update.
10167 * compile/compile.c (compile_code_command)
10168 (compile_print_command, compile_to_object): Update.
10169 * cli/cli-script.h (struct command_lines_deleter): New.
10170 (counted_command_line): New typedef.
10171 (struct command_line): Add constructor, destructor.
10172 <body_list>: Remove.
10173 <body_list_0, body_list_1>: New members.
10174 (command_line_up): Remove typedef.
10175 (read_command_lines, read_command_lines_1, get_command_line):
10176 Update.
10177 (copy_command_lines): Don't declare.
10178 * cli/cli-script.c (build_command_line): Use "new".
10179 (get_command_line): Return counted_command_line.
10180 (print_command_lines, execute_user_command)
10181 (execute_control_command_1, while_command, if_command): Update.
10182 (realloc_body_list): Remove.
10183 (process_next_line, recurse_read_control_structure): Update.
10184 (read_command_lines, read_command_lines_1): Return counted_command_line.
10185 (free_command_lines): Use "delete".
10186 (copy_command_lines): Remove.
10187 (define_command, document_command, show_user_1): Update.
10188 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
10189 a counted_command_line.
10190 * breakpoint.h (counted_command_line): Remove typedef.
10191 (breakpoint_set_commands): Update.
10192 * breakpoint.c (check_no_tracepoint_commands)
10193 (validate_commands_for_breakpoint): Update.
10194 (breakpoint_set_commands): Change commands to be a
10195 counted_command_line.
10196 (commands_command_1, update_dprintf_command_list)
10197 (create_tracepoint_from_upload): Update.
10198
e2fc72e2
TT
101992018-05-04 Tom Tromey <tom@tromey.com>
10200
10201 * cli/cli-decode.h (cmd_list_element): New constructor.
10202 (~cmd_list_element): New destructor.
10203 (struct cmd_list_element): Add initializers.
10204 * cli/cli-decode.c (do_add_cmd): Use "new".
10205 (delete_cmd): Use "delete".
10206
a3b60e45
JK
102072018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10208 Pedro Alves <palves@redhat.com>
10209
10210 PR breakpoints/19806 and support for PR external/20207.
10211 * NEWS: Mention Aarch64 watchpoint improvements.
10212 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
10213 watchpoints and PR external/20207 watchpoints.
10214 * nat/aarch64-linux-hw-point.c
10215 (kernel_supports_any_contiguous_range): New.
10216 (aarch64_watchpoint_offset): New.
10217 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
10218 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
10219 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
10220 (aarch64_align_watchpoint): New parameters aligned_offset_p and
10221 next_addr_orig_p. Support PR external/20207 watchpoints.
10222 (aarch64_downgrade_regs): New.
10223 (aarch64_dr_state_insert_one_point): New parameters offset and
10224 addr_orig.
10225 (aarch64_dr_state_remove_one_point): Likewise.
10226 (aarch64_handle_breakpoint): Update caller.
10227 (aarch64_handle_aligned_watchpoint): Likewise.
10228 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
10229 aligned_offset.
10230 (aarch64_linux_set_debug_regs): Remove const from state. Call
10231 aarch64_downgrade_regs.
10232 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
10233 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
10234 (DR_CONTROL_MASK): ... this.
10235 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
10236 (unsigned int aarch64_watchpoint_offset): New prototype.
10237 (aarch64_linux_set_debug_regs): Remove const from state.
10238 * utils.c (align_up, align_down): Move to ...
10239 * common/common-utils.c (align_up, align_down): ... here.
10240 * utils.h (align_up, align_down): Move to ...
10241 * common/common-utils.h (align_up, align_down): ... here.
10242
05bc7456
JB
102432018-05-04 Joel Brobecker <brobecker@adacore.com>
10244
10245 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
10246 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
10247 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
10248 Re-implement to match the ABI as summarized in GCC's
10249 gcc/config/sparc/sparc.c. All callers updated.
10250 (sparc32_store_arguments): Remove assertion.
10251
2f433492
TT
102522018-05-04 Tom Tromey <tom@tromey.com>
10253
10254 * printcmd.c: Don't include tui.h.
10255 (decode_format): Use skip_spaces.
10256
9be2ae8f
TT
102572018-05-04 Tom Tromey <tom@tromey.com>
10258
10259 PR gdb/22619:
10260 * printcmd.c (last_count): New global.
10261 (x_command): Use saved count when repeating.
10262
f0b3976b
TT
102632018-05-04 Tom Tromey <tom@tromey.com>
10264
10265 * nto-procfs.c (do_closedir_cleanup): Remove.
10266 (procfs_pidlist): Use gdb_dir_up.
10267 * procfs.c (do_closedir_cleanup): Remove.
10268 (proc_update_threads): Use gdb_dir_up.
10269 * common/filestuff.h (struct gdb_dir_deleter): New.
10270 (gdb_dir_up): New typedef.
10271
862d101a
TT
102722018-05-04 Tom Tromey <tom@tromey.com>
10273
10274 * ada-lang.c (print_mention_exception): Use std::string.
10275
cb7de75e
TT
102762018-05-04 Tom Tromey <tom@tromey.com>
10277
10278 * ada-lang.c (create_excep_cond_exprs): Update.
10279 (ada_exception_catchpoint_cond_string): Use std::string.
10280
49d83361
TT
102812018-05-04 Tom Tromey <tom@tromey.com>
10282
10283 * ada-lang.c (xget_renaming_scope): Return std::string.
10284 (old_renaming_is_invisible): Update.
10285
ade72a34
TT
102862018-05-04 Tom Tromey <tom@tromey.com>
10287
10288 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
10289 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
10290
2be4d7f0
UW
102912018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
10292
10293 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
10294
69b6ecb0
TT
102952018-05-04 Tom Tromey <tom@tromey.com>
10296
10297 * remote.c (remote_query_supported_append): Change type.
10298 (remote_check_symbols): Update.
10299
bf27f0e2
PP
103002018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
10301
10302 PR gdb/11420
10303 * configure.ac: Prepend libpython.
10304 * python/python-config.py: Likewise.
10305 * configure: Regenerate.
10306
4ea17de8
SM
103072018-05-03 Simon Marchi <simon.marchi@ericsson.com>
10308
10309 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
10310
bd732259
PA
103112018-05-03 Pedro Alves <palves@redhat.com>
10312
10313 * s390-linux-nat.c
10314 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
10315 override. Write 'true' instead of '1'.
10316 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
10317 declaration.
10318
d9f719f1
PA
103192018-05-02 Pedro Alves <palves@redhat.com>
10320
10321 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
10322 add_inf_child_target.
10323 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
10324 add_inf_child_target.
10325 * aix-thread.c (aix_thread_target_info): New.
10326 (aix_thread_target) <shortname, longname, doc>: Delete.
10327 <info>: New.
10328 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
10329 add_inf_child_target.
10330 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
10331 add_inf_child_target.
10332 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
10333 add_inf_child_target.
10334 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
10335 add_inf_child_target.
10336 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
10337 add_inf_child_target.
10338 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
10339 add_inf_child_target.
10340 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
10341 add_inf_child_target.
10342 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
10343 add_inf_child_target.
10344 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
10345 add_inf_child_target.
10346 * bfd-target.c (target_bfd_target_info): New.
10347 (target_bfd) <shortname, longname, doc>: Delete.
10348 <info>: New.
10349 * bsd-kvm.c (bsd_kvm_target_info): New.
10350 (bsd_kvm_target) <shortname, longname, doc>: Delete.
10351 <info>: New.
10352 (bsd_kvm_target::open): Rename to ...
10353 (bsd_kvm_target_open): ... this. Adjust.
10354 * bsd-uthread.c (bsd_uthread_target_info): New.
10355 (bsd_uthread_target) <shortname, longname, doc>: Delete.
10356 <info>: New.
10357 * corefile.c (core_file_command): Adjust.
10358 * corelow.c (core_target_info): New.
10359 (core_target) <shortname, longname, doc>: Delete.
10360 <info>: New.
10361 (core_target::open): Rename to ...
10362 (core_target_open): ... this. Adjust.
10363 * ctf.c (ctf_target_info): New.
10364 (ctf_target) <shortname, longname, doc>: Delete.
10365 <info>: New.
10366 (ctf_target::open): Rename to ...
10367 (ctf_target_open): ... this.
10368 (_initialize_ctf): Adjust.
10369 * exec.c (exec_target_info): New.
10370 (exec_target) <shortname, longname, doc>: Delete.
10371 <info>: New.
10372 (exec_target::open): Rename to ...
10373 (exec_target_open): ... this.
10374 * gdbcore.h (core_target_open): Declare.
10375 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
10376 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
10377 add_inf_child_target.
10378 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
10379 add_inf_child_target.
10380 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
10381 add_inf_child_target.
10382 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
10383 add_inf_child_target.
10384 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
10385 add_inf_child_target.
10386 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
10387 add_inf_child_target.
10388 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
10389 add_inf_child_target.
10390 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
10391 add_inf_child_target.
10392 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
10393 add_inf_child_target.
10394 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
10395 add_inf_child_target.
10396 * inf-child.c (inf_child_target_info): New.
10397 (inf_child_target::info): New.
10398 (inf_child_open_target): Remove 'target' parameter. Use
10399 get_native_target instead.
10400 (inf_child_target::open): Delete.
10401 (add_inf_child_target): New.
10402 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
10403 Delete.
10404 <info>: New.
10405 (add_inf_child_target): Declare.
10406 (inf_child_open_target): Declare.
10407 * linux-thread-db.c (thread_db_target_info): New.
10408 (thread_db_target) <shortname, longname, doc>: Delete.
10409 <info>: New.
10410 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
10411 add_inf_child_target.
10412 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
10413 add_inf_child_target.
10414 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
10415 add_inf_child_target.
10416 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
10417 add_inf_child_target.
10418 * make-target-delegates (print_class): Adjust.
10419 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
10420 add_inf_child_target.
10421 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
10422 add_inf_child_target.
10423 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
10424 add_inf_child_target.
10425 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
10426 add_inf_child_target.
10427 * nto-procfs.c (nto_native_target_info): New.
10428 (nto_procfs_target_native) <shortname, longname, doc>:
10429 Delete.
10430 <info>: New.
10431 (nto_procfs_target_info): New.
10432 (nto_procfs_target_procfs) <shortname, longname, doc>:
10433 Delete.
10434 <info>: New.
10435 (init_procfs_targets): Adjust.
10436 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
10437 add_inf_child_target.
10438 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
10439 add_inf_child_target.
10440 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
10441 add_inf_child_target.
10442 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
10443 add_inf_child_target.
10444 * ravenscar-thread.c (ravenscar_target_info): New.
10445 (ravenscar_thread_target) <shortname, longname, doc>:
10446 Delete.
10447 <info>: New.
10448 * record-btrace.c (record_btrace_target_info):
10449 (record_btrace_target) <shortname, longname, doc>: Delete.
10450 <info>: New.
10451 (record_btrace_target::open): Rename to ...
10452 (record_btrace_target_open): ... this. Adjust.
10453 * record-full.c (record_longname, record_doc): New.
10454 (record_full_base_target) <shortname, longname, doc>: Delete.
10455 <info>: New.
10456 (record_full_target_info): New.
10457 (record_full_target): <shortname>: Delete.
10458 <info>: New.
10459 (record_full_core_open_1, record_full_open_1): Update comments.
10460 (record_full_base_target::open): Rename to ...
10461 (record_full_open): ... this.
10462 (cmd_record_full_restore): Update.
10463 (_initialize_record_full): Update.
10464 * remote-sim.c (remote_sim_target_info): New.
10465 (gdbsim_target) <shortname, longname, doc>: Delete.
10466 <info>: New.
10467 (gdbsim_target::open): Rename to ...
10468 (gdbsim_target_open): ... this.
10469 (_initialize_remote_sim): Adjust.
10470 * remote.c (remote_doc): New.
10471 (remote_target_info): New.
10472 (remote_target) <shortname, longname, doc>: Delete.
10473 <info>: New.
10474 (extended_remote_target_info): New.
10475 (extended_remote_target) <shortname, longname, doc>: Delete.
10476 <info>: New.
10477 (remote_target::open_1): Make static. Adjust.
10478 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
10479 * s390-linux-nat.c (_initialize_s390_nat): Use
10480 add_inf_child_target.
10481 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
10482 add_inf_child_target.
10483 * sol-thread.c (thread_db_target_info): New.
10484 (sol_thread_target) <shortname, longname, doc>: Delete.
10485 <info>: New.
10486 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
10487 add_inf_child_target.
10488 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
10489 add_inf_child_target.
10490 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
10491 add_inf_child_target.
10492 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
10493 add_inf_child_target.
10494 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
10495 add_inf_child_target.
10496 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
10497 add_inf_child_target.
10498 * spu-linux-nat.c (_initialize_spu_nat): Use
10499 add_inf_child_target.
10500 * spu-multiarch.c (spu_multiarch_target_info): New.
10501 (spu_multiarch_target) <shortname, longname, doc>: Delete.
10502 <info>: New.
10503 * target-delegates.c: Regenerate.
10504 * target.c: Include <unordered_map>.
10505 (target_ops_p): Delete.
10506 (DEF_VEC_P(target_ops_p)): Delete.
10507 (target_factories): New.
10508 (test_target_info): New.
10509 (test_target_ops::info): New.
10510 (open_target): Adjust to use target_factories.
10511 (add_target_with_completer): Rename to ...
10512 (add_target): ... this. Change prototype. Register target_info
10513 and open callback in target_factories. Register target_info in
10514 command context instead of target_ops.
10515 (add_target): Delete old implementation.
10516 (add_deprecated_target_alias): Change prototype. Adjust.
10517 (the_native_target): New.
10518 (set_native_target, get_native_target): New.
10519 (find_default_run_target): Use the_native_target.
10520 (find_attach_target, find_run_target): Simplify.
10521 (target_ops::open): Delete.
10522 (dummy_target_info): New.
10523 (dummy_target::shortname, dummy_target::longname)
10524 (dummy_target::doc): Delete.
10525 (dummy_target::info): New.
10526 (debug_target::shortname, debug_target::longname)
10527 (debug_target::doc): Delete.
10528 (debug_target::info): New.
10529 * target.h (struct target_info): New.
10530 (target_ops::~target_ops): Add comment.
10531 (target_ops::info): New.
10532 (target_ops::shortname, target_ops::longname, target_ops::doc): No
10533 longer virtual. Implement in terms of target_info.
10534 (set_native_target, get_native_target): Declare.
10535 (target_open_ftype): New.
10536 (add_target, add_target_with_completer)
10537 (add_deprecated_target_alias): Change prototype.
10538 (test_target) <shortname, longname, doc>: Delete.
10539 <info>: New.
10540 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
10541 add_inf_child_target.
10542 * tracefile-tfile.c (tfile_target_info): New.
10543 (tfile_target) <shortname, longname, doc>: Delete.
10544 <info>: New.
10545 (tfile_target::open): Rename to ...
10546 (tfile_target_open): ... this.
10547 (_initialize_tracefile_tfile): Adjust.
10548 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
10549 add_inf_child_target.
10550 * windows-nat.c (_initialize_windows_nat): Use
10551 add_inf_child_target.
10552 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
10553 add_inf_child_target.
10554
135340af
PA
105552018-05-02 Pedro Alves <palves@redhat.com>
10556
10557 * linux-nat.h (linux_nat_target) <low_new_thread,
10558 low_delete_thread, low_new_fork, low_forget_process,
10559 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
10560 New virtual methods.
10561 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10562 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
10563 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
10564 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10565 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
10566 Delete.
10567 * linux-fork.c (delete_fork): Adjust to call low method.
10568 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
10569 (linux_nat_new_fork, linux_nat_forget_process_hook)
10570 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
10571 (linux_nat_status_is_event):
10572 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
10573 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
10574 to call low method.
10575 (sigtrap_is_event): Rename to ...
10576 (linux_nat_target::low_status_is_event): ... this.
10577 (linux_nat_set_status_is_event): Delete.
10578 (save_stop_reason, linux_nat_wait_1)
10579 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
10580 low methods.
10581 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10582 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10583 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10584 (linux_nat_set_prepare_to_resume): Delete.
10585 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
10586 low virtual methods.
10587 * amd64-linux-nat.c: Likewise.
10588 * arm-linux-nat.c: Likewise.
10589 * i386-linux-nat.c: Likewise.
10590 * ia64-linux-nat.c: Likewise.
10591 * mips-linux-nat.c: Likewise.
10592 * ppc-linux-nat.c: Likewise.
10593 * s390-linux-nat.c: Likewise.
10594 * sparc64-linux-nat.c: Likewise.
10595 * x86-linux-nat.c: Likewise.
10596 * x86-linux-nat.h: Include "nat/x86-linux.h".
10597 (x86_linux_nat_target) <low_new_fork, low_forget_process,
10598 low_prepare_to_resume, low_new_thread, low_delete_thread>:
10599 Override methods.
10600
57810aa7
PA
106012018-05-02 Pedro Alves <palves@redhat.com>
10602
10603 * target.h (target_ops)
10604 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10605 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
10606 stopped_by_watchpoint, have_continuable_watchpoint,
10607 stopped_data_address, watchpoint_addr_within_range,
10608 can_accel_watchpoint_condition, can_run, thread_alive,
10609 has_all_memory, has_memory, has_stack, has_registers,
10610 has_execution, can_async_p, is_async_p, supports_non_stop,
10611 always_non_stop_p, can_execute_reverse, supports_multi_process,
10612 supports_enable_disable_tracepoint,
10613 supports_disable_randomization, supports_string_tracing,
10614 supports_evaluation_of_breakpoint_conditions,
10615 can_run_breakpoint_commands, filesystem_is_local,
10616 can_download_tracepoint, get_trace_state_variable_value,
10617 set_trace_notes, get_tib_address, use_agent, can_use_agent,
10618 record_is_replaying, record_will_replay,
10619 augmented_libraries_svr4_read>: Adjust to return bool.
10620 * aarch64-linux-nat.c: All implementations adjusted.
10621 * aix-thread.c: All implementations adjusted.
10622 * arm-linux-nat.c: All implementations adjusted.
10623 * breakpoint.c: All implementations adjusted.
10624 * bsd-kvm.c: All implementations adjusted.
10625 * bsd-uthread.c: All implementations adjusted.
10626 * corelow.c: All implementations adjusted.
10627 * ctf.c: All implementations adjusted.
10628 * darwin-nat.c: All implementations adjusted.
10629 * darwin-nat.h: All implementations adjusted.
10630 * exec.c: All implementations adjusted.
10631 * fbsd-nat.c: All implementations adjusted.
10632 * fbsd-nat.h: All implementations adjusted.
10633 * gnu-nat.c: All implementations adjusted.
10634 * gnu-nat.h: All implementations adjusted.
10635 * go32-nat.c: All implementations adjusted.
10636 * ia64-linux-nat.c: All implementations adjusted.
10637 * inf-child.c: All implementations adjusted.
10638 * inf-child.h: All implementations adjusted.
10639 * inf-ptrace.c: All implementations adjusted.
10640 * inf-ptrace.h: All implementations adjusted.
10641 * linux-nat.c: All implementations adjusted.
10642 * linux-nat.h: All implementations adjusted.
10643 * mips-linux-nat.c: All implementations adjusted.
10644 * nto-procfs.c: All implementations adjusted.
10645 * ppc-linux-nat.c: All implementations adjusted.
10646 * procfs.c: All implementations adjusted.
10647 * ravenscar-thread.c: All implementations adjusted.
10648 * record-btrace.c: All implementations adjusted.
10649 * record-full.c: All implementations adjusted.
10650 * remote-sim.c: All implementations adjusted.
10651 * remote.c: All implementations adjusted.
10652 * s390-linux-nat.c: All implementations adjusted.
10653 * sol-thread.c: All implementations adjusted.
10654 * spu-multiarch.c: All implementations adjusted.
10655 * target-delegates.c: All implementations adjusted.
10656 * target.c: All implementations adjusted.
10657 * target.h: All implementations adjusted.
10658 * tracefile-tfile.c: All implementations adjusted.
10659 * tracefile.c: All implementations adjusted.
10660 * tracefile.h: All implementations adjusted.
10661 * windows-nat.c: All implementations adjusted.
10662 * x86-linux-nat.h: All implementations adjusted.
10663 * x86-nat.h: All implementations adjusted.
10664
ad6a4e2d
PA
106652018-05-02 Pedro Alves <palves@redhat.com>
10666
10667 * make-target-delegates (scan_target_h): Don't trim lines here.
10668 Replace sequences of tabs and/or whitespace with a single
10669 whitespace.
10670 (top level, parsing methods): Trim each line before processing it
10671 here.
10672
f6ac5f3d
PA
106732018-05-02 Pedro Alves <palves@redhat.com>
10674 John Baldwin <jhb@freebsd.org>
10675
10676 * target.h (enum strata) <debug_stratum>: New.
10677 (struct target_ops) <all delegation methods>: Replace by C++
10678 virtual methods, and drop "to_" prefix. All references updated
10679 throughout.
10680 <to_shortname, to_longname, to_doc, to_data,
10681 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
10682 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
10683 virtual methods. All references updated throughout.
10684 <can_attach, supports_terminal_ours, can_create_inferior,
10685 get_thread_control_capabilities, attach_no_wait>: New
10686 virtual methods.
10687 <insert_breakpoint, remove_breakpoint>: Now
10688 TARGET_DEFAULT_NORETURN methods.
10689 <info_proc>: Now returns bool.
10690 <to_magic>: Delete.
10691 (OPS_MAGIC): Delete.
10692 (current_target): Delete. All references replaced by references
10693 to ...
10694 (target_stack): ... this. New.
10695 (target_shortname, target_longname): Adjust.
10696 (target_can_run): Now a function declaration.
10697 (default_child_has_all_memory, default_child_has_memory)
10698 (default_child_has_stack, default_child_has_registers)
10699 (default_child_has_execution): Remove target_ops parameter.
10700 (complete_target_initialization): Delete.
10701 (memory_breakpoint_target): New template class.
10702 (test_target_ops): Refactor as a C++ class with virtual methods.
10703 * make-target-delegates (NAME_PART): Tighten.
10704 (POINTER_PART, CP_SYMBOL): New.
10705 (SIMPLE_RETURN_PART): Reimplement.
10706 (VEC_RETURN_PART): Expect less.
10707 (RETURN_PART, VIRTUAL_PART): New.
10708 (METHOD): Adjust to C++ virtual methods.
10709 (scan_target_h): Remove reference to C99.
10710 (dname): Output "target_ops::" prefix.
10711 (write_function_header): Adjust to output a C++ class method.
10712 (write_declaration): New.
10713 (write_delegator): Adjust to output a C++ class method.
10714 (tdname): Output "dummy_target::" prefix.
10715 (write_tdefault, write_debugmethod): Adjust to output a C++ class
10716 method.
10717 (tdefault_names, debug_names): Delete.
10718 (return_types, tdefaults, styles, argtypes_array): New.
10719 (top level): All methods are delegators.
10720 (print_class): New.
10721 (top level): Print dummy_target and debug_target classes.
10722 * target-delegates.c: Regenerate.
10723 * target-debug.h (target_debug_print_enum_info_proc_what)
10724 (target_debug_print_thread_control_capabilities)
10725 (target_debug_print_thread_info_p): New.
10726 * target.c (dummy_target): Delete.
10727 (the_dummy_target, the_debug_target): New.
10728 (target_stack): Now extern.
10729 (set_targetdebug): Push/unpush debug target.
10730 (default_child_has_all_memory, default_child_has_memory)
10731 (default_child_has_stack, default_child_has_registers)
10732 (default_child_has_execution): Remove target_ops parameter.
10733 (complete_target_initialization): Delete.
10734 (add_target_with_completer): No longer call
10735 complete_target_initialization.
10736 (target_supports_terminal_ours): Use regular delegation.
10737 (update_current_target): Delete.
10738 (push_target): No longer check magic number. Don't call
10739 update_current_target.
10740 (unpush_target): Don't call update_current_target.
10741 (target_is_pushed): No longer check magic number.
10742 (target_require_runnable): Skip for all stratums over
10743 process_stratum.
10744 (target_ops::info_proc): New.
10745 (target_info_proc): Use find_target_at and
10746 find_default_run_target.
10747 (target_supports_disable_randomization): Use regular delegation.
10748 (target_get_osdata): Use find_target_at.
10749 (target_ops::open, target_ops::close, target_ops::can_attach)
10750 (target_ops::attach, target_ops::can_create_inferior)
10751 (target_ops::create_inferior, target_ops::can_run)
10752 (target_can_run): New.
10753 (default_fileio_target): Use regular delegation.
10754 (target_ops::fileio_open, target_ops::fileio_pwrite)
10755 (target_ops::fileio_pread, target_ops::fileio_fstat)
10756 (target_ops::fileio_close, target_ops::fileio_unlink)
10757 (target_ops::fileio_readlink): New.
10758 (target_fileio_open_1, target_fileio_unlink)
10759 (target_fileio_readlink): Always call the target method. Handle
10760 FILEIO_ENOSYS.
10761 (return_zero, return_zero_has_execution): Delete.
10762 (init_dummy_target): Delete.
10763 (dummy_target::dummy_target, dummy_target::shortname)
10764 (dummy_target::longname, dummy_target::doc)
10765 (debug_target::debug_target, debug_target::shortname)
10766 (debug_target::longname, debug_target::doc): New.
10767 (target_supports_delete_record): Use regular delegation.
10768 (setup_target_debug): Delete.
10769 (maintenance_print_target_stack): Skip debug_stratum.
10770 (initialize_targets): Instantiate the_dummy_target and
10771 the_debug_target.
10772 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
10773 use target_stack.
10774 (target_auxv_search, fprint_target_auxv): Adjust.
10775 (info_auxv_command): Adjust to use target_stack.
10776 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
10777 * exceptions.c (print_flush): Handle a NULL target_stack.
10778 * regcache.c (target_ops_no_register): Refactor as class with
10779 virtual methods.
10780
10781 * exec.c (exec_target): New class.
10782 (exec_ops): Now an exec_target.
10783 (exec_open, exec_close_1, exec_get_section_table)
10784 (exec_xfer_partial, exec_files_info, exec_has_memory)
10785 (exec_make_note_section): Refactor as exec_target methods.
10786 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
10787 Delete.
10788 (exec_target::find_memory_regions): New.
10789 (_initialize_exec): Don't call init_exec_ops.
10790 * gdbcore.h (exec_file_clear): Delete.
10791
10792 * corefile.c (core_target): Delete.
10793 (core_file_command): Adjust.
10794 * corelow.c (core_target): New class.
10795 (the_core_target): New.
10796 (core_close): Remove target_ops parameter.
10797 (core_close_cleanup): Adjust.
10798 (core_target::close): New.
10799 (core_open, core_detach, get_core_registers, core_files_info)
10800 (core_xfer_partial, core_thread_alive, core_read_description)
10801 (core_pid_to_str, core_thread_name, core_has_memory)
10802 (core_has_stack, core_has_registers, core_info_proc): Rework as
10803 core_target methods.
10804 (ignore, core_remove_breakpoint, init_core_ops): Delete.
10805 (_initialize_corelow): Initialize the_core_target.
10806 * gdbcore.h (core_target): Delete.
10807 (the_core_target): New.
10808
10809 * ctf.c: (ctf_target): New class.
10810 (ctf_ops): Now a ctf_target.
10811 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
10812 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
10813 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
10814 methods.
10815 (init_ctf_ops): Delete.
10816 (_initialize_ctf): Don't call it.
10817 * tracefile-tfile.c (tfile_target): New class.
10818 (tfile_ops): Now a tfile_target.
10819 (tfile_open, tfile_close, tfile_files_info)
10820 (tfile_get_tracepoint_status, tfile_trace_find)
10821 (tfile_fetch_registers, tfile_xfer_partial)
10822 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
10823 Refactor as tfile_target methods.
10824 (tfile_xfer_partial_features): Remove target_ops parameter.
10825 (init_tfile_ops): Delete.
10826 (_initialize_tracefile_tfile): Don't call it.
10827 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
10828 (tracefile_has_stack, tracefile_has_registers)
10829 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
10830 tracefile_target methods.
10831 (init_tracefile_ops): Delete.
10832 (tracefile_target::tracefile_target): New.
10833 * tracefile.h: Include "target.h".
10834 (tracefile_target): New class.
10835 (init_tracefile_ops): Delete.
10836
10837 * spu-multiarch.c (spu_multiarch_target): New class.
10838 (spu_ops): Now a spu_multiarch_target.
10839 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
10840 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
10841 (spu_search_memory, spu_mourn_inferior): Refactor as
10842 spu_multiarch_target methods.
10843 (init_spu_ops): Delete.
10844 (_initialize_spu_multiarch): Remove references to init_spu_ops,
10845 complete_target_initialization.
10846
10847 * ravenscar-thread.c (ravenscar_thread_target): New class.
10848 (ravenscar_ops): Now a ravenscar_thread_target.
10849 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
10850 (ravenscar_thread_alive, ravenscar_pid_to_str)
10851 (ravenscar_fetch_registers, ravenscar_store_registers)
10852 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
10853 (ravenscar_stopped_by_hw_breakpoint)
10854 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
10855 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
10856 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
10857 methods.
10858 (init_ravenscar_thread_ops): Delete.
10859 (_initialize_ravenscar): Remove references to
10860 init_ravenscar_thread_ops and complete_target_initialization.
10861
10862 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
10863 (bsd_uthread_target): New class.
10864 (bsd_uthread_ops): Now a bsd_uthread_target.
10865 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
10866 (bsd_uthread_close, bsd_uthread_mourn_inferior)
10867 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
10868 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
10869 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
10870 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
10871 (bsd_uthread_target): Delete function.
10872 (_initialize_bsd_uthread): Remove reference to
10873 complete_target_initialization.
10874
10875 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
10876 (target_bfd): ... this new class.
10877 (target_bfd_xfer_partial, target_bfd_get_section_table)
10878 (target_bfd_close): Refactor as target_bfd methods.
10879 (target_bfd::~target_bfd): New.
10880 (target_bfd_reopen): Adjust.
10881 (target_bfd::close): New.
10882
10883 * record-btrace.c (record_btrace_target): New class.
10884 (record_btrace_ops): Now a record_btrace_target.
10885 (record_btrace_open, record_btrace_stop_recording)
10886 (record_btrace_disconnect, record_btrace_close)
10887 (record_btrace_async, record_btrace_info)
10888 (record_btrace_insn_history, record_btrace_insn_history_range)
10889 (record_btrace_insn_history_from, record_btrace_call_history)
10890 (record_btrace_call_history_range)
10891 (record_btrace_call_history_from, record_btrace_record_method)
10892 (record_btrace_is_replaying, record_btrace_will_replay)
10893 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
10894 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
10895 (record_btrace_store_registers, record_btrace_prepare_to_store)
10896 (record_btrace_to_get_unwinder)
10897 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
10898 (record_btrace_commit_resume, record_btrace_wait)
10899 (record_btrace_stop, record_btrace_can_execute_reverse)
10900 (record_btrace_stopped_by_sw_breakpoint)
10901 (record_btrace_supports_stopped_by_sw_breakpoint)
10902 (record_btrace_stopped_by_hw_breakpoint)
10903 (record_btrace_supports_stopped_by_hw_breakpoint)
10904 (record_btrace_update_thread_list, record_btrace_thread_alive)
10905 (record_btrace_goto_begin, record_btrace_goto_end)
10906 (record_btrace_goto, record_btrace_stop_replaying_all)
10907 (record_btrace_execution_direction)
10908 (record_btrace_prepare_to_generate_core)
10909 (record_btrace_done_generating_core): Refactor as
10910 record_btrace_target methods.
10911 (init_record_btrace_ops): Delete.
10912 (_initialize_record_btrace): Remove reference to
10913 init_record_btrace_ops.
10914 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
10915 the execution_direction global.
10916 (record_full_base_target, record_full_target)
10917 (record_full_core_target): New classes.
10918 (record_full_ops): Now a record_full_target.
10919 (record_full_core_ops): Now a record_full_core_target.
10920 (record_full_target::detach, record_full_target::disconnect)
10921 (record_full_core_target::disconnect)
10922 (record_full_target::mourn_inferior, record_full_target::kill):
10923 New.
10924 (record_full_open, record_full_close, record_full_async): Refactor
10925 as methods of the record_full_base_target class.
10926 (record_full_resume, record_full_commit_resume): Refactor
10927 as methods of the record_full_target class.
10928 (record_full_wait, record_full_stopped_by_watchpoint)
10929 (record_full_stopped_data_address)
10930 (record_full_stopped_by_sw_breakpoint)
10931 (record_full_supports_stopped_by_sw_breakpoint)
10932 (record_full_stopped_by_hw_breakpoint)
10933 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
10934 methods of the record_full_base_target class.
10935 (record_full_store_registers, record_full_xfer_partial)
10936 (record_full_insert_breakpoint, record_full_remove_breakpoint):
10937 Refactor as methods of the record_full_target class.
10938 (record_full_can_execute_reverse, record_full_get_bookmark)
10939 (record_full_goto_bookmark, record_full_execution_direction)
10940 (record_full_record_method, record_full_info, record_full_delete)
10941 (record_full_is_replaying, record_full_will_replay)
10942 (record_full_goto_begin, record_full_goto_end, record_full_goto)
10943 (record_full_stop_replaying): Refactor as methods of the
10944 record_full_base_target class.
10945 (record_full_core_resume, record_full_core_kill)
10946 (record_full_core_fetch_registers)
10947 (record_full_core_prepare_to_store)
10948 (record_full_core_store_registers, record_full_core_xfer_partial)
10949 (record_full_core_insert_breakpoint)
10950 (record_full_core_remove_breakpoint)
10951 (record_full_core_has_execution): Refactor
10952 as methods of the record_full_core_target class.
10953 (record_full_base_target::supports_delete_record): New.
10954 (init_record_full_ops): Delete.
10955 (init_record_full_core_ops): Delete.
10956 (record_full_save): Refactor as method of the
10957 record_full_base_target class.
10958 (_initialize_record_full): Remove references to
10959 init_record_full_ops and init_record_full_core_ops.
10960
10961 * remote.c (remote_target, extended_remote_target): New classes.
10962 (remote_ops): Now a remote_target.
10963 (extended_remote_ops): Now an extended_remote_target.
10964 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
10965 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
10966 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
10967 (remote_pass_signals, remote_set_syscall_catchpoint)
10968 (remote_program_signals, )
10969 (remote_thread_always_alive): Remove target_ops parameter.
10970 (remote_thread_alive, remote_thread_name)
10971 (remote_update_thread_list, remote_threads_extra_info)
10972 (remote_static_tracepoint_marker_at)
10973 (remote_static_tracepoint_markers_by_strid)
10974 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
10975 (remote_open): Refactor as methods of remote_target.
10976 (extended_remote_open, extended_remote_detach)
10977 (extended_remote_attach, extended_remote_post_attach):
10978 (extended_remote_supports_disable_randomization)
10979 (extended_remote_create_inferior): : Refactor as method of
10980 extended_remote_target.
10981 (remote_set_permissions, remote_open_1, remote_detach)
10982 (remote_follow_fork, remote_follow_exec, remote_disconnect)
10983 (remote_resume, remote_commit_resume, remote_stop)
10984 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
10985 (remote_terminal_ours, remote_wait, remote_fetch_registers)
10986 (remote_prepare_to_store, remote_store_registers)
10987 (remote_flash_erase, remote_flash_done, remote_files_info)
10988 (remote_kill, remote_mourn, remote_insert_breakpoint)
10989 (remote_remove_breakpoint, remote_insert_watchpoint)
10990 (remote_watchpoint_addr_within_range)
10991 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
10992 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
10993 (remote_supports_stopped_by_sw_breakpoint)
10994 (remote_stopped_by_hw_breakpoint)
10995 (remote_supports_stopped_by_hw_breakpoint)
10996 (remote_stopped_by_watchpoint, remote_stopped_data_address)
10997 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
10998 (remote_verify_memory): Refactor as methods of remote_target.
10999 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
11000 parameter.
11001 (remote_xfer_partial, remote_get_memory_xfer_limit)
11002 (remote_search_memory, remote_rcmd, remote_memory_map)
11003 (remote_pid_to_str, remote_get_thread_local_address)
11004 (remote_get_tib_address, remote_read_description): Refactor as
11005 methods of remote_target.
11006 (remote_target::fileio_open, remote_target::fileio_pwrite)
11007 (remote_target::fileio_pread, remote_target::fileio_close): New.
11008 (remote_hostio_readlink, remote_hostio_fstat)
11009 (remote_filesystem_is_local, remote_can_execute_reverse)
11010 (remote_supports_non_stop, remote_supports_disable_randomization)
11011 (remote_supports_multi_process, remote_supports_cond_breakpoints)
11012 (remote_supports_enable_disable_tracepoint)
11013 (remote_supports_string_tracing)
11014 (remote_can_run_breakpoint_commands, remote_trace_init)
11015 (remote_download_tracepoint, remote_can_download_tracepoint)
11016 (remote_download_trace_state_variable, remote_enable_tracepoint)
11017 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
11018 (remote_trace_start, remote_get_trace_status)
11019 (remote_get_tracepoint_status, remote_trace_stop)
11020 (remote_trace_find, remote_get_trace_state_variable_value)
11021 (remote_save_trace_data, remote_get_raw_trace_data)
11022 (remote_set_disconnected_tracing, remote_core_of_thread)
11023 (remote_set_circular_trace_buffer, remote_traceframe_info)
11024 (remote_get_min_fast_tracepoint_insn_len)
11025 (remote_set_trace_buffer_size, remote_set_trace_notes)
11026 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
11027 (remote_disable_btrace, remote_teardown_btrace)
11028 (remote_read_btrace, remote_btrace_conf)
11029 (remote_augmented_libraries_svr4_read, remote_load)
11030 (remote_pid_to_exec_file, remote_can_do_single_step)
11031 (remote_execution_direction, remote_thread_handle_to_thread_info):
11032 Refactor as methods of remote_target.
11033 (init_remote_ops, init_extended_remote_ops): Delete.
11034 (remote_can_async_p, remote_is_async_p, remote_async)
11035 (remote_thread_events, remote_upload_tracepoints)
11036 (remote_upload_trace_state_variables): Refactor as methods of
11037 remote_target.
11038 (_initialize_remote): Remove references to init_remote_ops and
11039 init_extended_remote_ops.
11040
11041 * remote-sim.c (gdbsim_target): New class.
11042 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
11043 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
11044 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
11045 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
11046 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
11047 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
11048 Refactor as methods of gdbsim_target.
11049 (gdbsim_ops): Now a gdbsim_target.
11050 (init_gdbsim_ops): Delete.
11051 (gdbsim_cntrl_c): Adjust.
11052 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
11053
11054 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
11055 (the_amd64_linux_nat_target): New.
11056 (amd64_linux_fetch_inferior_registers)
11057 (amd64_linux_store_inferior_registers): Refactor as methods of
11058 amd64_linux_nat_target.
11059 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
11060 * i386-linux-nat.c: Don't include "linux-nat.h".
11061 (i386_linux_nat_target): New class.
11062 (the_i386_linux_nat_target): New.
11063 (i386_linux_fetch_inferior_registers)
11064 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
11065 as methods of i386_linux_nat_target.
11066 (_initialize_i386_linux_nat): Adjust. Set linux_target.
11067 * inf-child.c (inf_child_ops): Delete.
11068 (inf_child_fetch_inferior_registers)
11069 (inf_child_store_inferior_registers): Delete.
11070 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
11071 methods of inf_child_target.
11072 (inf_child_target::supports_terminal_ours)
11073 (inf_child_target::terminal_init)
11074 (inf_child_target::terminal_inferior)
11075 (inf_child_target::terminal_ours_for_output)
11076 (inf_child_target::terminal_ours, inf_child_target::interrupt)
11077 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
11078 New.
11079 (inf_child_open, inf_child_disconnect, inf_child_close)
11080 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
11081 (inf_child_post_startup_inferior, inf_child_can_run)
11082 (inf_child_pid_to_exec_file): Refactor as methods of
11083 inf_child_target.
11084 (inf_child_follow_fork): Delete.
11085 (inf_child_target::can_create_inferior)
11086 (inf_child_target::can_attach): New.
11087 (inf_child_target::has_all_memory, inf_child_target::has_memory)
11088 (inf_child_target::has_stack, inf_child_target::has_registers)
11089 (inf_child_target::has_execution): New.
11090 (inf_child_fileio_open, inf_child_fileio_pwrite)
11091 (inf_child_fileio_pread, inf_child_fileio_fstat)
11092 (inf_child_fileio_close, inf_child_fileio_unlink)
11093 (inf_child_fileio_readlink, inf_child_use_agent)
11094 (inf_child_can_use_agent): Refactor as methods of
11095 inf_child_target.
11096 (return_zero, inf_child_target): Delete.
11097 (inf_child_target::inf_child_target): New.
11098 * inf-child.h: Include "target.h".
11099 (inf_child_target): Delete function prototype.
11100 (inf_child_target): New class.
11101 (inf_child_open_target, inf_child_mourn_inferior)
11102 (inf_child_maybe_unpush_target): Delete.
11103 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
11104 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
11105 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
11106 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
11107 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
11108 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
11109 (inf_ptrace_wait, inf_ptrace_xfer_partial)
11110 (inf_ptrace_thread_alive, inf_ptrace_files_info)
11111 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
11112 methods of inf_ptrace_target.
11113 (inf_ptrace_target): Delete function.
11114 * inf-ptrace.h: Include "inf-child.h".
11115 (inf_ptrace_target): Delete function declaration.
11116 (inf_ptrace_target): New class.
11117 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
11118 * linux-nat.c (linux_target): New.
11119 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
11120 (linux_nat_target::~linux_nat_target): New.
11121 (linux_child_post_attach, linux_child_post_startup_inferior)
11122 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
11123 (linux_child_remove_fork_catchpoint)
11124 (linux_child_insert_vfork_catchpoint)
11125 (linux_child_remove_vfork_catchpoint)
11126 (linux_child_insert_exec_catchpoint)
11127 (linux_child_remove_exec_catchpoint)
11128 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
11129 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
11130 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
11131 (linux_nat_stopped_data_address)
11132 (linux_nat_stopped_by_sw_breakpoint)
11133 (linux_nat_supports_stopped_by_sw_breakpoint)
11134 (linux_nat_stopped_by_hw_breakpoint)
11135 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
11136 (linux_nat_kill, linux_nat_mourn_inferior)
11137 (linux_nat_xfer_partial, linux_nat_thread_alive)
11138 (linux_nat_update_thread_list, linux_nat_pid_to_str)
11139 (linux_nat_thread_name, linux_child_pid_to_exec_file)
11140 (linux_child_static_tracepoint_markers_by_strid)
11141 (linux_nat_is_async_p, linux_nat_can_async_p)
11142 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
11143 (linux_nat_supports_multi_process)
11144 (linux_nat_supports_disable_randomization, linux_nat_async)
11145 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
11146 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
11147 (linux_nat_fileio_open, linux_nat_fileio_readlink)
11148 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
11149 methods of linux_nat_target.
11150 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
11151 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
11152 parameter.
11153 (check_stopped_by_watchpoint): Adjust.
11154 (linux_xfer_partial): Delete.
11155 (linux_target_install_ops, linux_target, linux_nat_add_target):
11156 Delete.
11157 (linux_nat_target::linux_nat_target): New.
11158 * linux-nat.h: Include "inf-ptrace.h".
11159 (linux_nat_target): New.
11160 (linux_target, linux_target_install_ops, linux_nat_add_target):
11161 Delete function declarations.
11162 (linux_target): Declare global.
11163 * linux-thread-db.c (thread_db_target): New.
11164 (thread_db_target::thread_db_target): New.
11165 (thread_db_ops): Delete.
11166 (the_thread_db_target): New.
11167 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
11168 (thread_db_update_thread_list, thread_db_pid_to_str)
11169 (thread_db_extra_thread_info)
11170 (thread_db_thread_handle_to_thread_info)
11171 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
11172 (thread_db_resume): Refactor as methods of thread_db_target.
11173 (init_thread_db_ops): Delete.
11174 (_initialize_thread_db): Remove reference to init_thread_db_ops.
11175 * x86-linux-nat.c: Don't include "linux-nat.h".
11176 (super_post_startup_inferior): Delete.
11177 (x86_linux_nat_target::~x86_linux_nat_target): New.
11178 (x86_linux_child_post_startup_inferior)
11179 (x86_linux_read_description, x86_linux_enable_btrace)
11180 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
11181 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
11182 methods of x86_linux_nat_target.
11183 (x86_linux_create_target): Delete. Bits folded ...
11184 (x86_linux_add_target): ... here. Now takes a linux_nat_target
11185 pointer.
11186 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
11187 (x86_linux_nat_target): New class.
11188 (x86_linux_create_target): Delete.
11189 (x86_linux_add_target): Now takes a linux_nat_target pointer.
11190 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
11191 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
11192 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
11193 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
11194 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
11195 make extern.
11196 (x86_use_watchpoints): Delete.
11197 * x86-nat.h: Include "breakpoint.h" and "target.h".
11198 (x86_use_watchpoints): Delete.
11199 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
11200 (x86_stopped_by_watchpoint, x86_stopped_data_address)
11201 (x86_insert_watchpoint, x86_remove_watchpoint)
11202 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
11203 (x86_stopped_by_hw_breakpoint): New declarations.
11204 (x86_nat_target): New template class.
11205
11206 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
11207 (the_ppc_linux_nat_target): New.
11208 (ppc_linux_fetch_inferior_registers)
11209 (ppc_linux_can_use_hw_breakpoint)
11210 (ppc_linux_region_ok_for_hw_watchpoint)
11211 (ppc_linux_ranged_break_num_registers)
11212 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
11213 (ppc_linux_insert_mask_watchpoint)
11214 (ppc_linux_remove_mask_watchpoint)
11215 (ppc_linux_can_accel_watchpoint_condition)
11216 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
11217 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
11218 (ppc_linux_watchpoint_addr_within_range)
11219 (ppc_linux_masked_watch_num_registers)
11220 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
11221 (ppc_linux_read_description): Refactor as methods of
11222 ppc_linux_nat_target.
11223 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
11224
11225 * procfs.c (procfs_xfer_partial): Delete forward declaration.
11226 (procfs_target): New class.
11227 (the_procfs_target): New.
11228 (procfs_target): Delete function.
11229 (procfs_auxv_parse, procfs_attach, procfs_detach)
11230 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
11231 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
11232 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
11233 (procfs_create_inferior, procfs_update_thread_list)
11234 (procfs_thread_alive, procfs_pid_to_str)
11235 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
11236 (procfs_stopped_data_address, procfs_insert_watchpoint)
11237 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
11238 (proc_find_memory_regions, procfs_info_proc)
11239 (procfs_make_note_section): Refactor as methods of procfs_target.
11240 (_initialize_procfs): Adjust.
11241 * sol-thread.c (sol_thread_target): New class.
11242 (sol_thread_ops): Now a sol_thread_target.
11243 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
11244 (sol_thread_fetch_registers, sol_thread_store_registers)
11245 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
11246 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
11247 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
11248 (init_sol_thread_ops): Delete.
11249 (_initialize_sol_thread): Adjust. Remove references to
11250 init_sol_thread_ops and complete_target_initialization.
11251
11252 * windows-nat.c (windows_nat_target): New class.
11253 (windows_fetch_inferior_registers)
11254 (windows_store_inferior_registers, windows_resume, windows_wait)
11255 (windows_attach, windows_detach, windows_pid_to_exec_file)
11256 (windows_files_info, windows_create_inferior)
11257 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
11258 (windows_close, windows_pid_to_str, windows_xfer_partial)
11259 (windows_get_tib_address, windows_get_ada_task_ptid)
11260 (windows_thread_name, windows_thread_alive): Refactor as
11261 windows_nat_target methods.
11262 (do_initial_windows_stuff): Adjust.
11263 (windows_target): Delete function.
11264 (_initialize_windows_nat): Adjust.
11265
11266 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
11267 (darwin_mourn_inferior, darwin_kill_inferior)
11268 (darwin_create_inferior, darwin_attach, darwin_detach)
11269 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
11270 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
11271 (darwin_supports_multi_process): Refactor as darwin_nat_target
11272 methods.
11273 (darwin_resume_to, darwin_files_info): Delete.
11274 (_initialize_darwin_inferior): Rename to ...
11275 (_initialize_darwin_nat): ... this. Adjust to C++ification.
11276 * darwin-nat.h: Include "inf-child.h".
11277 (darwin_nat_target): New class.
11278 (darwin_complete_target): Delete.
11279 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
11280 (darwin_target): New.
11281 (i386_darwin_fetch_inferior_registers)
11282 (i386_darwin_store_inferior_registers): Refactor as methods of
11283 darwin_nat_target.
11284 (darwin_complete_target): Delete, with ...
11285 (_initialize_i386_darwin_nat): ... bits factored out here.
11286
11287 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
11288 (the_alpha_linux_nat_target): New.
11289 (alpha_linux_register_u_offset): Refactor as
11290 alpha_linux_nat_target method.
11291 (_initialize_alpha_linux_nat): Adjust.
11292 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
11293 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11294 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
11295 methods of linux_nat_trad_target.
11296 (linux_trad_target): Delete.
11297 * linux-nat-trad.h (linux_trad_target): Delete function.
11298 (linux_nat_trad_target): New class.
11299 * mips-linux-nat.c (mips_linux_nat_target): New class.
11300 (super_fetch_registers, super_store_registers, super_close):
11301 Delete.
11302 (the_mips_linux_nat_target): New.
11303 (mips64_linux_regsets_fetch_registers)
11304 (mips64_linux_regsets_store_registers)
11305 (mips64_linux_fetch_registers, mips64_linux_store_registers)
11306 (mips_linux_register_u_offset, mips_linux_read_description)
11307 (mips_linux_can_use_hw_breakpoint)
11308 (mips_linux_stopped_by_watchpoint)
11309 (mips_linux_stopped_data_address)
11310 (mips_linux_region_ok_for_hw_watchpoint)
11311 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
11312 (mips_linux_close): Refactor as methods of mips_linux_nat.
11313 (_initialize_mips_linux_nat): Adjust to C++ification.
11314
11315 * aix-thread.c (aix_thread_target): New class.
11316 (aix_thread_ops): Now an aix_thread_target.
11317 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
11318 (aix_thread_fetch_registers, aix_thread_store_registers)
11319 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
11320 (aix_thread_thread_alive, aix_thread_pid_to_str)
11321 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
11322 Refactor as methods of aix_thread_target.
11323 (init_aix_thread_ops): Delete.
11324 (_initialize_aix_thread): Remove references to init_aix_thread_ops
11325 and complete_target_initialization.
11326 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
11327 (rs6000_nat_target): New class.
11328 (the_rs6000_nat_target): New.
11329 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
11330 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
11331 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
11332 (super_create_inferior): Delete.
11333 (_initialize_rs6000_nat): Adjust to C++ification.
11334
11335 * arm-linux-nat.c (arm_linux_nat_target): New class.
11336 (the_arm_linux_nat_target): New.
11337 (arm_linux_fetch_inferior_registers)
11338 (arm_linux_store_inferior_registers, arm_linux_read_description)
11339 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
11340 (arm_linux_remove_hw_breakpoint)
11341 (arm_linux_region_ok_for_hw_watchpoint)
11342 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
11343 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
11344 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
11345 arm_linux_nat_target.
11346 (_initialize_arm_linux_nat): Adjust to C++ification.
11347
11348 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
11349 (the_aarch64_linux_nat_target): New.
11350 (aarch64_linux_fetch_inferior_registers)
11351 (aarch64_linux_store_inferior_registers)
11352 (aarch64_linux_child_post_startup_inferior)
11353 (aarch64_linux_read_description)
11354 (aarch64_linux_can_use_hw_breakpoint)
11355 (aarch64_linux_insert_hw_breakpoint)
11356 (aarch64_linux_remove_hw_breakpoint)
11357 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
11358 (aarch64_linux_region_ok_for_hw_watchpoint)
11359 (aarch64_linux_stopped_data_address)
11360 (aarch64_linux_stopped_by_watchpoint)
11361 (aarch64_linux_watchpoint_addr_within_range)
11362 (aarch64_linux_can_do_single_step): Refactor as methods of
11363 aarch64_linux_nat_target.
11364 (super_post_startup_inferior): Delete.
11365 (_initialize_aarch64_linux_nat): Adjust to C++ification.
11366
11367 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
11368 (the_hppa_linux_nat_target): New.
11369 (hppa_linux_fetch_inferior_registers)
11370 (hppa_linux_store_inferior_registers): Refactor as methods of
11371 hppa_linux_nat_target.
11372 (_initialize_hppa_linux_nat): Adjust to C++ification.
11373
11374 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
11375 (the_ia64_linux_nat_target): New.
11376 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
11377 (ia64_linux_stopped_data_address)
11378 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
11379 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
11380 ia64_linux_nat_target methods.
11381 (super_xfer_partial): Delete.
11382 (_initialize_ia64_linux_nat): Adjust to C++ification.
11383
11384 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
11385 (the_m32r_linux_nat_target): New.
11386 (m32r_linux_fetch_inferior_registers)
11387 (m32r_linux_store_inferior_registers): Refactor as
11388 m32r_linux_nat_target methods.
11389 (_initialize_m32r_linux_nat): Adjust to C++ification.
11390
11391 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
11392 (the_m68k_linux_nat_target): New.
11393 (m68k_linux_fetch_inferior_registers)
11394 (m68k_linux_store_inferior_registers): Refactor as
11395 m68k_linux_nat_target methods.
11396 (_initialize_m68k_linux_nat): Adjust to C++ification.
11397
11398 * s390-linux-nat.c (s390_linux_nat_target): New class.
11399 (the_s390_linux_nat_target): New.
11400 (s390_linux_fetch_inferior_registers)
11401 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
11402 (s390_insert_watchpoint, s390_remove_watchpoint)
11403 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
11404 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
11405 (s390_auxv_parse, s390_read_description): Refactor as methods of
11406 s390_linux_nat_target.
11407 (_initialize_s390_nat): Adjust to C++ification.
11408
11409 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
11410 (the_sparc_linux_nat_target): New.
11411 (_initialize_sparc_linux_nat): Adjust to C++ification.
11412 * sparc-nat.c (sparc_fetch_inferior_registers)
11413 (sparc_store_inferior_registers): Remove target_ops parameter.
11414 * sparc-nat.h (sparc_fetch_inferior_registers)
11415 (sparc_store_inferior_registers): Remove target_ops parameter.
11416 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
11417 (the_sparc64_linux_nat_target): New.
11418 (_initialize_sparc64_linux_nat): Adjust to C++ification.
11419
11420 * spu-linux-nat.c (spu_linux_nat_target): New class.
11421 (the_spu_linux_nat_target): New.
11422 (spu_child_post_startup_inferior, spu_child_post_attach)
11423 (spu_child_wait, spu_fetch_inferior_registers)
11424 (spu_store_inferior_registers, spu_xfer_partial)
11425 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
11426 methods.
11427 (_initialize_spu_nat): Adjust to C++ification.
11428
11429 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
11430 (the_tilegx_linux_nat_target): New.
11431 (fetch_inferior_registers, store_inferior_registers):
11432 Refactor as methods.
11433 (_initialize_tile_linux_nat): Adjust to C++ification.
11434
11435 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
11436 (the_xtensa_linux_nat_target): New.
11437 (xtensa_linux_fetch_inferior_registers)
11438 (xtensa_linux_store_inferior_registers): Refactor as
11439 xtensa_linux_nat_target methods.
11440 (_initialize_xtensa_linux_nat): Adjust to C++ification.
11441
11442 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
11443 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
11444 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
11445 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
11446 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
11447 (fbsd_stopped_by_sw_breakpoint)
11448 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
11449 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
11450 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
11451 (fbsd_post_startup_inferior, fbsd_post_attach)
11452 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
11453 (fbsd_set_syscall_catchpoint)
11454 (super_xfer_partial, super_resume, super_wait)
11455 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
11456 (fbsd_handle_debug_trap): Remove target_ops parameter.
11457 (fbsd_nat_add_target): Delete.
11458 * fbsd-nat.h: Include "inf-ptrace.h".
11459 (fbsd_nat_add_target): Delete.
11460 (USE_SIGTRAP_SIGINFO): Define.
11461 (fbsd_nat_target): New class.
11462
11463 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
11464 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
11465 (amd64bsd_target): Delete.
11466 * amd64-bsd-nat.h: New file.
11467 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
11468 "x86-bsd-nat.h".
11469 (amd64_fbsd_nat_target): New class.
11470 (the_amd64_fbsd_nat_target): New.
11471 (amd64fbsd_read_description): Refactor as method of
11472 amd64_fbsd_nat_target.
11473 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11474 (_initialize_amd64fbsd_nat): Adjust to C++ification.
11475 * amd64-nat.h (amd64bsd_target): Delete function declaration.
11476 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
11477 (i386bsd_store_inferior_registers): Remove target_ops parameter.
11478 (i386bsd_target): Delete.
11479 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
11480 (i386bsd_fetch_inferior_registers)
11481 (i386bsd_store_inferior_registers): Declare.
11482 (i386_bsd_nat_target): New class.
11483 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
11484 (the_i386_fbsd_nat_target): New.
11485 (i386fbsd_resume, i386fbsd_read_description): Refactor as
11486 i386_fbsd_nat_target methods.
11487 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11488 (_initialize_i386fbsd_nat): Adjust to C++ification.
11489 * x86-bsd-nat.c (super_mourn_inferior): Delete.
11490 (x86bsd_mourn_inferior, x86bsd_target): Delete.
11491 (_initialize_x86_bsd_nat): Adjust to C++ification.
11492 * x86-bsd-nat.h: Include "x86-nat.h".
11493 (x86bsd_target): Delete declaration.
11494 (x86bsd_nat_target): New class.
11495
11496 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
11497 (the_aarch64_fbsd_nat_target): New.
11498 (aarch64_fbsd_fetch_inferior_registers)
11499 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
11500 aarch64_fbsd_nat_target.
11501 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
11502 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
11503 (the_alpha_bsd_nat_target): New.
11504 (alphabsd_fetch_inferior_registers)
11505 (alphabsd_store_inferior_registers): Refactor as
11506 alpha_bsd_nat_target methods.
11507 (_initialize_alphabsd_nat): Refactor as methods of
11508 alpha_bsd_nat_target.
11509 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
11510 (the_amd64_nbsd_nat_target): New.
11511 (_initialize_amd64nbsd_nat): Adjust to C++ification.
11512 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
11513 (the_amd64_obsd_nat_target): New.
11514 (_initialize_amd64obsd_nat): Adjust to C++ification.
11515 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
11516 (the_arm_fbsd_nat_target): New.
11517 (arm_fbsd_fetch_inferior_registers)
11518 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
11519 (_initialize_arm_fbsd_nat): Refactor as methods of
11520 arm_fbsd_nat_target.
11521 (_initialize_arm_fbsd_nat): Adjust to C++ification.
11522 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
11523 (the_arm_netbsd_nat_target): New.
11524 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
11525 arm_netbsd_nat_target.
11526 (_initialize_arm_netbsd_nat): Adjust to C++ification.
11527 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
11528 (the_hppa_nbsd_nat_target): New.
11529 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
11530 hppa_nbsd_nat_target methods.
11531 (_initialize_hppanbsd_nat): Adjust to C++ification.
11532 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
11533 (the_hppa_obsd_nat_target): New.
11534 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
11535 methods of hppa_obsd_nat_target.
11536 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
11537 add_target.
11538 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
11539 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
11540 add_target.
11541 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
11542 (_initialize_i386obsd_nat): Use add_target.
11543 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
11544 (the_m68k_bsd_nat_target): New.
11545 (m68kbsd_fetch_inferior_registers)
11546 (m68kbsd_store_inferior_registers): Refactor as methods of
11547 m68k_bsd_nat_target.
11548 (_initialize_m68kbsd_nat): Adjust to C++ification.
11549 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
11550 (the_mips_fbsd_nat_target): New.
11551 (mips_fbsd_fetch_inferior_registers)
11552 (mips_fbsd_store_inferior_registers): Refactor as methods of
11553 mips_fbsd_nat_target.
11554 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
11555 add_target.
11556 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
11557 (the_mips_nbsd_nat_target): New.
11558 (mipsnbsd_fetch_inferior_registers)
11559 (mipsnbsd_store_inferior_registers): Refactor as methods of
11560 mips_nbsd_nat_target.
11561 (_initialize_mipsnbsd_nat): Adjust to C++ification.
11562 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
11563 (the_mips64_obsd_nat_target): New.
11564 (mips64obsd_fetch_inferior_registers)
11565 (mips64obsd_store_inferior_registers): Refactor as methods of
11566 mips64_obsd_nat_target.
11567 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
11568 add_target.
11569 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
11570 nbsd_nat_target.
11571 * nbsd-nat.h: Include "inf-ptrace.h".
11572 (nbsd_nat_target): New class.
11573 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
11574 (obsd_wait): Refactor as methods of obsd_nat_target.
11575 (obsd_add_target): Delete.
11576 * obsd-nat.h: Include "inf-ptrace.h".
11577 (obsd_nat_target): New class.
11578 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
11579 (the_ppc_fbsd_nat_target): New.
11580 (ppcfbsd_fetch_inferior_registers)
11581 (ppcfbsd_store_inferior_registers): Refactor as methods of
11582 ppc_fbsd_nat_target.
11583 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
11584 add_target.
11585 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
11586 (the_ppc_nbsd_nat_target): New.
11587 (ppcnbsd_fetch_inferior_registers)
11588 (ppcnbsd_store_inferior_registers): Refactor as methods of
11589 ppc_nbsd_nat_target.
11590 (_initialize_ppcnbsd_nat): Adjust to C++ification.
11591 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
11592 (the_ppc_obsd_nat_target): New.
11593 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
11594 methods of ppc_obsd_nat_target.
11595 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
11596 add_target.
11597 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
11598 (the_sh_nbsd_nat_target): New.
11599 (shnbsd_fetch_inferior_registers)
11600 (shnbsd_store_inferior_registers): Refactor as methods of
11601 sh_nbsd_nat_target.
11602 (_initialize_shnbsd_nat): Adjust to C++ification.
11603 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
11604 (inf_ptrace_xfer_partial): Delete.
11605 (sparc_xfer_partial, sparc_target): Delete.
11606 * sparc-nat.h (sparc_fetch_inferior_registers)
11607 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
11608 (sparc_target): Delete function declaration.
11609 (sparc_target): New template class.
11610 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
11611 (_initialize_sparcnbsd_nat): Adjust to C++ification.
11612 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
11613 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
11614 add_target.
11615 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
11616 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
11617 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
11618 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
11619 add_target.
11620 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
11621 (the_vax_bsd_nat_target): New.
11622 (vaxbsd_fetch_inferior_registers)
11623 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
11624 methods.
11625 (_initialize_vaxbsd_nat): Adjust to C++ification.
11626
11627 * bsd-kvm.c (bsd_kvm_target): New class.
11628 (bsd_kvm_ops): Now a bsd_kvm_target.
11629 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
11630 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
11631 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
11632 bsd_kvm_target.
11633 (bsd_kvm_return_one): Delete.
11634 (bsd_kvm_add_target): Adjust to C++ification.
11635
11636 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
11637 (nto_procfs_target_procfs): New classes.
11638 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
11639 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
11640 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
11641 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
11642 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
11643 (procfs_remove_hw_breakpoint, procfs_resume)
11644 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
11645 (procfs_kill_inferior, procfs_store_registers)
11646 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
11647 as methods of nto_procfs_target.
11648 (nto_procfs_ops): Now an nto_procfs_target_procfs.
11649 (nto_native_ops): Delete.
11650 (procfs_open, procfs_native_open): Delete.
11651 (nto_native_ops): Now an nto_procfs_target_native.
11652 (init_procfs_targets): Adjust to C++ification.
11653 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
11654 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
11655 Refactor as methods of nto_procfs_target.
11656
11657 * go32-nat.c (go32_nat_target): New class.
11658 (the_go32_nat_target): New.
11659 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
11660 (go32_store_registers, go32_xfer_partial, go32_files_info)
11661 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
11662 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
11663 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
11664 (go32_pid_to_str): Refactor as methods of go32_nat_target.
11665 (go32_target): Delete.
11666 (_initialize_go32_nat): Adjust to C++ification.
11667
11668 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
11669 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
11670 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
11671 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
11672 gnu_nat_target.
11673 (gnu_target): Delete.
11674 * gnu-nat.h (gnu_target): Delete.
11675 (gnu_nat_target): New class.
11676 * i386-gnu-nat.c (gnu_base_target): New.
11677 (i386_gnu_nat_target): New class.
11678 (the_i386_gnu_nat_target): New.
11679 (_initialize_i386gnu_nat): Adjust to C++ification.
11680
3fffc070
PA
116812018-05-02 Pedro Alves <palves@redhat.com>
11682
11683 * bfd-target.c (target_bfd_xclose): Rename to ...
11684 (target_bfd_close): ... this.
11685 (target_bfd_reopen): Adjust.
11686 * target.c (target_close): Remove references to to_xclose.
11687 * target.h (target_ops::to_xclose): Delete.
11688 (target_ops::to_close): Update comments.
11689
6798487f
PA
116902018-05-02 Pedro Alves <palves@redhat.com>
11691
11692 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
11693 "linux-nat.h".
11694 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
11695 * inf-ptrace.c (inf_ptrace_register_u_offset)
11696 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11697 (inf_ptrace_store_register, inf_ptrace_store_registers)
11698 (inf_ptrace_trad_target): Move to ...
11699 * linux-nat-trad.c: ... this new file.
11700 * linux-nat-trad.h: New file.
11701 * linux-nat.c (linux_target_install_ops): Make extern.
11702 (linux_trad_target): Delete.
11703 * linux-nat.h (linux_trad_target): Delete declaration.
11704 (linux_target_install_ops): Declare.
11705 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
11706 "linux-nat.h".
11707
c1955e17
PA
117082018-05-02 Pedro Alves <palves@redhat.com>
11709
11710 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11711 procfs_target/add_target here.
11712 * procfs.c (procfs_target): Make static.
11713 (_initialize_procfs): Call add_target here.
11714 * procfs.h (struct target_ops): Remove forward declaration.
11715 (procfs_target): Remove declaration.
11716 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
11717
b5c8fcb1
PA
117182018-05-02 Pedro Alves <palves@redhat.com>
11719
11720 * procfs.c (procfs_stopped_by_watchpoint)
11721 (procfs_insert_watchpoint, procfs_remove_watchpoint)
11722 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
11723 Forward declare.
11724 (procfs_use_watchpoints): Delete, move contents...
11725 (procfs_target): ... here.
11726 * procfs.h (procfs_use_watchpoints): Delete declaration.
11727 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11728 procfs_use_watchpoints.
11729 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
11730 procfs_use_watchpoints.
11731
0489430a
TT
117322018-05-02 Tom Tromey <tom@tromey.com>
11733
11734 PR python/20084:
11735 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
11736 and var_zuinteger_unlimited.
11737 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
11738 and PARAM_ZUINTEGER_UNLIMITED.
11739 (set_parameter_value): Handle var_zuinteger and
11740 var_zuinteger_unlimited.
11741 (add_setshow_generic): Likewise.
11742 (parmpy_init): Likewise.
11743
1632f8ba
DR
117442018-04-28 Dan Robertson <danlrobertson89@gmail.com>
11745
11746 PR rust/23124
11747 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
11748 pointer is not null before dereferencing it.
11749
76761936
TT
117502018-04-30 Tom Tromey <tom@tromey.com>
11751
11752 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
11753 is_mi_like_p.
11754
2d33446d
TT
117552018-04-30 Tom Tromey <tom@tromey.com>
11756
11757 * breakpoint.c (mention): Remove use of is_mi_like_p.
11758 (print_mention_ranged_breakpoint): Likewise.
11759 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
11760 of is_mi_like_p.
11761
f3c6abab
TT
117622018-04-30 Tom Tromey <tom@tromey.com>
11763
11764 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
11765
40c03530
TT
117662018-04-30 Tom Tromey <tom@tromey.com>
11767
11768 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
11769 (info_spu_event_command): Remove some uses of is_mi_like_p.
11770
2038b7fd
TT
117712018-04-30 Tom Tromey <tom@tromey.com>
11772
11773 * python/py-framefilter.c (py_print_single_arg)
11774 (enumerate_locals, py_print_args, py_print_frame): Remove some
11775 uses of is_mi_like_p.
11776
4904c3c6
TT
117772018-04-30 Tom Tromey <tom@tromey.com>
11778
11779 * ui-out.c: Update.
11780 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
11781 * ui-out.h (ui_out::is_mi_like_p): Now const.
11782 (ui_out::do_is_mi_like_p): Now const.
11783 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
11784
7c66fffc
TT
117852018-04-30 Tom Tromey <tom@tromey.com>
11786
11787 * varobj.c (varobj_set_visualizer): Use new_reference.
11788 * python/python.c (gdbpy_decode_line): Use new_reference.
11789 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
11790 new_reference.
11791
bbfa6f00
TT
117922018-04-30 Tom Tromey <tom@tromey.com>
11793
11794 * varobj.c (install_new_value): Use new_reference.
11795 * value.h (value_incref): Return void. Swap intro comment with
11796 value_decref.
11797 * value.c (set_value_parent): Use new_reference.
11798 (value_incref): Return void. Update intro comment.
11799 (release_value): Use new_reference.
11800 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
11801
1831a9f9
TT
118022018-04-30 Tom Tromey <tom@tromey.com>
11803
11804 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
11805 * gdb_bfd.h (new_bfd_ref): Remove.
11806 (gdb_bfd_open): Update comment.
11807 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11808 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
11809 (gdb_bfd_fdopenr): Use new_reference.
11810 * exec.c (exec_file_attach): Use new_reference.
11811
7c1b5f3d
TT
118122018-04-30 Tom Tromey <tom@tromey.com>
11813
11814 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
11815 method.
11816
e11fb955
TT
118172018-04-30 Tom Tromey <tom@tromey.com>
11818
11819 * jit.c (jit_read_code_entry): Use type_align.
11820 * i386-tdep.c (i386_gdbarch_init): Don't call
11821 set_gdbarch_long_long_align_bit.
11822 * gdbarch.sh: Remove long_long_align_bit.
11823 * gdbarch.c, gdbarch.h: Rebuild.
11824 * arc-tdep.c (arc_type_align): New function.
11825 (arc_gdbarch_init): Use arc_type_align. Don't call
11826 set_gdbarch_long_long_align_bit.
11827
2fff16dd
TT
118282018-04-30 Tom Tromey <tom@tromey.com>
11829
11830 * rust-lang.c (rust_type_alignment): Remove.
11831 (rust_composite_type): Use type_align.
11832
6d7bb824
TT
118332018-04-30 Tom Tromey <tom@tromey.com>
11834
11835 * NEWS: Mention Type.align.
11836 * python/py-type.c (typy_get_alignof): New function.
11837 (type_object_getset): Add "alignof".
11838
007e1530
TT
118392018-04-30 Tom Tromey <tom@tromey.com>
11840
11841 PR exp/17095:
11842 * NEWS: Update.
11843 * std-operator.def (UNOP_ALIGNOF): New operator.
11844 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
11845 New.
11846 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
11847 * c-lang.c (c_op_print_tab): Add alignof.
11848 * c-exp.y (ALIGNOF): New token.
11849 (exp): Add "ALIGNOF" production.
11850 (ident_tokens): Add _Alignof and alignof.
11851
2b4424c3
TT
118522018-04-30 Tom Tromey <tom@tromey.com>
11853
11854 * i386-tdep.c (i386_type_align): New function.
11855 (i386_gdbarch_init): Update.
11856 * gdbarch.sh (type_align): New method.
11857 * gdbarch.c, gdbarch.h: Rebuild.
11858 * arch-utils.h (default_type_align): Declare.
11859 * arch-utils.c (default_type_align): New function.
11860 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
11861 (struct type) <align_log2>: New field.
11862 <instance_flags>: Now a bitfield.
11863 (TYPE_RAW_ALIGN): New macro.
11864 (type_align, type_raw_align, set_type_align): Declare.
11865 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
11866 functions.
11867 * dwarf2read.c (quirk_rust_enum): Set type alignment.
11868 (get_alignment, maybe_set_alignment): New functions.
11869 (read_structure_type, read_enumeration_type, read_array_type)
11870 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
11871 (read_subrange_type, read_base_type): Set type alignment.
11872
d33bc52e
SM
118732018-04-30 Simon Marchi <simon.marchi@ericsson.com>
11874
11875 * dwarf2read.c (read_index_from_section): Use bool.
11876
e28b63a9
FG
118772018-04-29 Fabian Groffen <grobian@gentoo.org>
11878
11879 PR gdb/22950
11880 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
11881 with #ifdef.
11882
cd8c76e4
JR
118832018-04-29 John Reiser <jreiser@BitWagon.com>
11884
11885 PR build/22873
11886 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
11887 last step, and do it atomically.
11888
476d250e
AO
118892018-04-27 Alexandre Oliva <aoliva@redhat.com>
11890
11891 * compile/compile-c-types.c (convert_int, convert_float):
11892 Update for C FE v1.
11893
6873858b
TT
118942018-04-27 Tom Tromey <tom@tromey.com>
11895
11896 PR rust/22545:
11897 * rust-lang.c (rust_inclusive_range_type_p): New function.
11898 (rust_range): Handle inclusive ranges.
11899 (rust_compute_range): Likewise.
11900 * rust-exp.y (struct rust_op) <inclusive>: New field.
11901 (DOTDOTEQ): New constant.
11902 (range_expr): Add "..=" productions.
11903 (operator_tokens): Add "..=" token.
11904 (ast_range): Add "inclusive" parameter.
11905 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
11906 ranges.
11907 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
11908 bounds values.
11909 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
11910 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
11911 Update comments.
11912 * expprint.c (print_subexp_standard): Handle new bounds values.
11913 (dump_subexp_body_standard): Likewise.
11914
632e107b
TT
119152018-04-27 Tom Tromey <tom@tromey.com>
11916
11917 * configure: Rebuild.
11918 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
11919 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
11920 "OVERRIDE".
11921 (class symbol_needs_eval_context): Likewise.
11922 * dwarf2read.c (mock_mapped_index::symbol_name_count)
11923 (mock_mapped_index::symbol_name_at): Use "override". Remove
11924 "virtual".
11925 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
11926 "override".
11927 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
11928 * aarch64-tdep.c (instruction_reader::read): Use "override".
11929 (instruction_reader_test::read): Likewise.
11930 * arm-tdep.c (instruction_reader::read): Use "override".
11931 (instruction_reader_thumb::read): Likewise.
11932
b75abf5b
AK
119332018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
11934
11935 PR remote/9665
11936 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
11937 instead of remote_send.
11938 (remote_send): Remove.
11939
79188d8d
PA
119402018-04-26 Pedro Alves <palves@redhat.com>
11941
11942 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
11943 find_function_start_sal instead of find_pc_line.
11944
f50776aa
PA
119452018-04-26 Pedro Alves <palves@redhat.com>
11946
11947 * breakpoint.c (set_breakpoint_location_function): Handle
11948 mst_data_gnu_ifunc.
11949 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
11950 * elfread.c (elf_symtab_read): Give data symbols with
11951 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
11952 (elf_rel_plt_read): Update comment.
11953 * linespec.c (convert_linespec_to_sals): Handle
11954 mst_data_gnu_ifunc.
11955 (minsym_found): Handle mst_data_gnu_ifunc.
11956 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
11957 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
11958 * parse.c (find_minsym_type_and_address): Handle
11959 mst_data_gnu_ifunc.
11960 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
11961 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
11962 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
11963 comment.
11964 <mst_data_gnu_ifunc>: New enumerator.
11965
20944a6e
PA
119662018-04-26 Pedro Alves <palves@redhat.com>
11967
11968 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
11969 (lookup_minimal_symbol_by_pc_section): ... this. Replace
11970 'want_trampoline' parameter by a lookup_msym_prefer parameter.
11971 Handle it.
11972 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
11973 (lookup_minimal_symbol_by_pc): Adjust.
11974 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
11975 (lookup_solib_trampoline_symbol_by_pc): Adjust.
11976 * minsyms.h (lookup_msym_prefer): New enum.
11977 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11978 parameter by a lookup_msym_prefer parameter.
11979
1adeb822
PA
119802018-04-26 Pedro Alves <palves@redhat.com>
11981
11982 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
11983 ends in "@plt" instead of looking at the symbol's section.
11984
a0aca7b0
PA
119852018-04-26 Pedro Alves <palves@redhat.com>
11986
11987 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
11988 all references.
11989 (find_pc_partial_function_gnu_ifunc): Rename to ...
11990 (find_pc_partial_function): ... this, and remove references to
11991 'is_gnu_ifunc_p'.
11992 (find_pc_partial_function): Delete old implementation.
11993 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
11994
76af0f26
PA
119952018-04-26 Pedro Alves <palves@redhat.com>
11996
11997 * linespec.c (struct bound_minimal_symbol_search_key): New.
11998 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
11999 skip first line if we found a GNU ifunc minimal symbol by name.
12000 (compare_msymbols): Change parameters to work with a destructured
12001 lhs minsym.
12002 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
12003 functions.
12004
3467ec66
PA
120052018-04-26 Pedro Alves <palves@redhat.com>
12006
12007 * breakpoint.c (set_breakpoint_location_function): Don't resolve
12008 ifunc targets here. Instead, if we have an ifunc minsym, use its
12009 address/name.
12010 (add_location_to_breakpoint): Store the minsym and the objfile in
12011 the breakpoint location.
12012 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
12013 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
12014 Record the minsym in the sal.
12015 * symtab.h (symtab_and_line) <msymbol>: New field.
12016
28f4fa4d
PA
120172018-04-26 Pedro Alves <palves@redhat.com>
12018
12019 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
12020 unless we actually resolved the ifunc.
12021
ca31ab1d
PA
120222018-04-26 Pedro Alves <palves@redhat.com>
12023
12024 * c-exp.y (variable production): Prefer ifunc minsyms over
12025 regular function symbols.
12026 * symtab.c (find_gnu_ifunc): New function.
12027 * minsyms.h (lookup_msym_prefer): New enum.
12028 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
12029 parameter by a lookup_msym_prefer parameter.
12030 * symtab.h (find_gnu_ifunc): New declaration.
12031
8388016d
PA
120322018-04-26 Pedro Alves <palves@redhat.com>
12033
12034 * blockframe.c (find_gnu_ifunc_target_type): New function.
12035 (find_function_type): New.
12036 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
12037 return a value with a memory address.
12038 (eval_call): For calls to GNU ifunc functions, try to find the
12039 type of the target function from the type that the resolver
12040 returns.
12041 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
12042 symbols.
12043 * infcall.c (find_function_return_type): Delete.
12044 (find_function_addr): Add 'function_type' parameter. For calls to
12045 GNU ifunc functions, try to find the type of the target function
12046 from the type that the resolver returns, and return it via
12047 FUNCTION_TYPE.
12048 (call_function_by_hand_dummy): Adjust to use the function type
12049 returned by find_function_addr.
12050 (find_function_addr): Add 'function_type' parameter and move
12051 description here.
12052 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
12053 declarations.
12054
a376e11d
PA
120552018-04-26 Pedro Alves <palves@redhat.com>
12056
12057 * c-exp.y (variable production): Skip finding an alias for ifunc
12058 symbols.
12059
02e169e2
PA
120602018-04-26 Pedro Alves <palves@redhat.com>
12061
12062 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
12063
249b5733
PA
120642018-04-25 Pedro Alves <palves@redhat.com>
12065
12066 * infcmd.c (kill_command): Print the pid as string, not the whole
12067 thread's ptid. Add comment. s/has been killed/killed/ in output
12068 message.
12069 * remote.c (remote_detach_1): Print the pid as string, not the
12070 whole thread's ptid.
12071
f67c0c91
SDJ
120722018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12073 Sergio Durigan Junior <sergiodj@redhat.com>
12074 Pedro Alves <palves@redhat.com>
12075
12076 * infcmd.c (kill_command): Print message when inferior has
12077 been killed.
12078 * inferior.c (print_inferior_events): Remove 'static'. Set as
12079 '1'.
12080 (add_inferior): Improve message printed when
12081 'print_inferior_events' is on.
12082 (exit_inferior): Remove message printed when
12083 'print_inferior_events' is on.
12084 (detach_inferior): Improve message printed when
12085 'print_inferior_events' is on.
12086 (initialize_inferiors): Use 'add_inferior_silent' to set
12087 'current_inferior_'.
12088 * inferior.h (print_inferior_events): Declare here as
12089 'extern'.
12090 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
12091 '[Detaching...]' messages when 'print_inferior_events' is on.
12092 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
12093 as prefix/suffix for messages. Remove periods. Fix erroneous
12094 'Detaching after fork from child...', replace it by '... from
12095 parent...'.
12096 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
12097 prefix/suffix when printing 'Detaching...' messages. Print
12098 them when 'print_inferior_events' is on.
12099 * remote.c (remote_detach_1): Print message when detaching
12100 from inferior and '!is_fork_parent'.
12101
e427af18
TT
121022018-04-24 Tom Tromey <tom@tromey.com>
12103
12104 * cli-out.h: Reindent.
12105
05b1d8d6
TT
121062018-04-24 Tom Tromey <tom@tromey.com>
12107
12108 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
12109 (cli_ui_out::do_field_string): Use fputs_filtered.
12110 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
12111
a95c7dab
TT
121122018-04-23 Tom Tromey <tom@tromey.com>
12113
12114 * guile/scm-frame.c (gdbscm_frame_read_var): Use
12115 gdb::unique_xmalloc_ptr.
12116
458412c3
TT
121172018-04-23 Tom Tromey <tom@tromey.com>
12118
12119 * configure: Rebuild.
12120
db86b02b
RS
121212018-04-22 Rajendra SY <rajendra.sy@gmail.com>
12122
12123 PR gdb/23095
12124 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
12125 prepare_for_testing. Set normal_bp to r_debug_state if target
12126 is bsd.
12127
00aecdcf
PA
121282018-04-21 Pedro Alves <palves@redhat.com>
12129 Rajendra SY <rajendra.sy@gmail.com>
12130
12131 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
12132 * remote.c (extended_remote_attach): In all-stop mode, mark the
12133 thread as executing.
12134
224608c3
PW
121352018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12136
12137 * thread.c (thread_apply_all_command): Fix comment.
12138 (thread_command): Fix comment.
12139
3b74854b
AH
121402018-04-10 Alan Hayward <alan.hayward@arm.com>
12141
12142 * common/tdesc.h (tdesc_create_feature): Remove xml filename
12143 parameter.
12144 * features/aarch64-core.c (create_feature_aarch64_core):
12145 Regenerate.
12146 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
12147 Likewise.
12148 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
12149 Likewise.
12150 * features/i386/32bit-avx512.c
12151 (create_feature_i386_32bit_avx512): Likewise.
12152 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
12153 Likewise.
12154 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
12155 Likewise.
12156 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
12157 Likewise.
12158 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
12159 Likewise.
12160 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
12161 Likewise.
12162 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
12163 Likewise.
12164 * features/i386/64bit-avx512.c
12165 (create_feature_i386_64bit_avx512): Likewise.
12166 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
12167 Likewise.
12168 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
12169 Likewise.
12170 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
12171 Likewise.
12172 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
12173 Likewise.
12174 * features/i386/64bit-segments.c
12175 (create_feature_i386_64bit_segments): Likewise.
12176 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
12177 Likewise.
12178 * features/i386/x32-core.c
12179 (create_feature_i386_x32_core): Likewise.
12180 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
12181 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
12182 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
12183 * target-descriptions.c: In generated code, don't pass xml
12184 filename.
12185
e98577a9
AH
121862018-04-18 Alan Hayward <alan.hayward@arm.com>
12187
12188 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
12189 (print_xml_feature::visit_post): Likewise.
12190 (print_xml_feature::visit): Likewise.
12191 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
12192 (print_xml_feature): Add new class.
12193 * regformats/regdat.sh: Null xmltarget on feature targets.
12194 * target-descriptions.c (struct target_desc): Add xmltarget.
12195 (maintenance_check_tdesc_xml_convert): Add unittest function.
12196 (tdesc_get_features_xml): Add function to get xml.
12197 (maintenance_check_xml_descriptions): Test xml generation.
12198 * xml-tdesc.c (string_read_description_xml): Add function.
12199 * xml-tdesc.h (string_read_description_xml): Add declaration.
12200
ad7fc756
AH
122012018-04-18 Alan Hayward <alan.hayward@arm.com>
12202
12203 * features/Makefile: Add feature marker to targets with new style
12204 target descriptions.
12205 * regformats/aarch64.dat: Regenerate.
12206 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
12207 * regformats/i386/amd64-avx-linux.dat: Likewise.
12208 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
12209 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
12210 * regformats/i386/amd64-linux.dat: Likewise.
12211 * regformats/i386/amd64-mpx-linux.dat: Likewise.
12212 * regformats/i386/amd64.dat: Likewise.
12213 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
12214 * regformats/i386/i386-avx-linux.dat: Likewise.
12215 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
12216 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
12217 * regformats/i386/i386-linux.dat: Likewise.
12218 * regformats/i386/i386-mmx-linux.dat: Likewise.
12219 * regformats/i386/i386-mpx-linux.dat: Likewise.
12220 * regformats/i386/i386.dat: Likewise.
12221 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
12222 * regformats/i386/x32-avx-linux.dat: Likewise.
12223 * regformats/i386/x32-linux.dat: Likewise.
12224 * regformats/tic6x-c62x-linux.dat: Likewise.
12225 * regformats/tic6x-c64x-linux.dat: Likewise.
12226 * regformats/tic6x-c64xp-linux.dat: Likewise.
12227 * regformats/regdat.sh: Parse feature marker.
12228
d278f585
AH
122292018-04-18 Alan Hayward <alan.hayward@arm.com>
12230
12231 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
12232 (tdesc_osabi_name): Likewise.
12233 * target-descriptions.c (tdesc_architecture_name): Add new
12234 function.
12235 (tdesc_osabi_name): Likewise.
12236
eee8a18d
AH
122372018-04-18 Alan Hayward <alan.hayward@arm.com>
12238
12239 * common/tdesc.c (tdesc_predefined_type): Move to here.
12240 (tdesc_named_type): Likewise.
12241 (tdesc_create_vector): Likewise.
12242 (tdesc_create_struct): Likewise.
12243 (tdesc_set_struct_size): Likewise.
12244 (tdesc_create_union): Likewise.
12245 (tdesc_create_flags): Likewise.
12246 (tdesc_create_enum): Likewise.
12247 (tdesc_add_field): Likewise.
12248 (tdesc_add_typed_bitfield): Likewise.
12249 (tdesc_add_bitfield): Likewise.
12250 (tdesc_add_flag): Likewise.
12251 (tdesc_add_enum_value): Likewise.
12252 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
12253 (struct tdesc_type_vector): Likewise.
12254 (struct tdesc_type_field): Likewise.
12255 (struct tdesc_type_with_fields): Likewise.
12256 (tdesc_create_enum): Add declaration.
12257 (tdesc_add_typed_bitfield): Likewise.
12258 (tdesc_add_enum_value): Likewise.
12259 * target-descriptions.c (tdesc_type_field): Move from here.
12260 (tdesc_type_builtin): Likewise.
12261 (tdesc_type_vector): Likewise.
12262 (tdesc_type_with_fields): Likewise.
12263 (tdesc_predefined_types): Likewise.
12264 (tdesc_named_type): Likewise.
12265 (tdesc_create_vector): Likewise.
12266 (tdesc_create_struct): Likewise.
12267 (tdesc_set_struct_size): Likewise.
12268 (tdesc_create_union): Likewise.
12269 (tdesc_create_flags): Likewise.
12270 (tdesc_create_enum): Likewise.
12271 (tdesc_add_field): Likewise.
12272 (tdesc_add_typed_bitfield): Likewise.
12273 (tdesc_add_bitfield): Likewise.
12274 (tdesc_add_flag): Likewise.
12275 (tdesc_add_enum_value): Likewise.
12276 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
12277 (tdesc_add_typed_bitfield): Likewise.
12278 (tdesc_add_enum_value): Likewise.
12279
82ec9bc7
AH
122802018-04-18 Alan Hayward <alan.hayward@arm.com>
12281
12282 * common/tdesc.c (tdesc_feature::accept): Move to here.
12283 (tdesc_feature::operator==): Likewise.
12284 (tdesc_create_reg): Likewise.
12285 * common/tdesc.h (tdesc_type_kind): Likewise.
12286 (struct tdesc_type): Likewise.
12287 (struct tdesc_feature): Likewise.
12288 * regformats/regdat.sh: Create a feature.
12289 * target-descriptions.c (tdesc_type_kind): Move from here.
12290 (tdesc_type): Likewise.
12291 (tdesc_type_up): Likewise.
12292 (tdesc_feature): Likewise.
12293 (tdesc_create_reg): Likewise.
12294
ea3e7d71
AH
122952018-04-18 Alan Hayward <alan.hayward@arm.com>
12296
12297 * Makefile.in: Add arch/tdesc.c
12298 * common/tdesc.c: New file.
12299 * common/tdesc.h (tdesc_element_visitor): Move to here.
12300 (tdesc_element): Likewise.
12301 (tdesc_reg): Likewise.
12302 (tdesc_reg_up): Likewise.
12303 * regformats/regdef.h (reg): Add offset to constructors.
12304 * target-descriptions.c (tdesc_element_visitor): Move from here.
12305 (tdesc_element): Likewise.
12306 (tdesc_reg): Likewise.
12307 (tdesc_reg_up): Likewise.
12308
bedda9ac
TT
123092018-04-17 Tom Tromey <tom@tromey.com>
12310
12311 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
12312 discriminant field.
12313
a037790e
TT
123142018-04-17 Tom Tromey <tom@tromey.com>
12315
12316 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
12317
c7dcbf88
AA
123182018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
12319
12320 * symtab.c (print_symbol_info): Skip printing filename and line
12321 number when `last' is NULL.
12322 (symtab_symbol_info): Use empty string instead of NULL for first
12323 invocation of print_symbol_info.
12324 (rbreak_command): Pass NULL to `last' parameter of
12325 print_symbol_info.
12326
07d28c77
SM
123272018-04-16 Simon Marchi <simon.marchi@ericsson.com>
12328
12329 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
12330 instead of nullptr.
12331
8a3de5e1
PA
123322018-04-16 Pedro Alves <palves@redhat.com>
12333
12334 * MAINTAINERS (sh): Remove.
12335 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
12336 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
12337 (ALLDEPFILES): Remove sh64-tdep.c.
12338 * NEWS: Mentions that support for SH-5/SH64 is removed.
12339 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
12340 (sh*-*-openbsd*): Ditto.
12341 (sh64-*-elf*): Remove.
12342 (sh*): Remove.
12343 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
12344 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
12345 * sh-tdep.c: No longer include "sh64-tdep.h".
12346 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
12347 * sh64-tdep.c, sh64-tdep.h: Remove files.
12348
a2a79012
PA
123492018-04-16 Pedro Alves <palves@redhat.com>
12350
12351 * MAINTAINERS: Remove m88k.
12352 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
12353 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
12354 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
12355 * NEWS: Mention that support for m88k was removed.
12356 * configure.host (m88*-*-*): Remove support.
12357 * configure.nat (m88k-*-*): Remove support.
12358 * configure.tgt (m88*-*-openbsd*): Remove.
12359 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
12360
eda4efb1
SM
123612018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
12362
12363 * configure.tgt (x86_tobjs): New variable.
12364 (amd64_tobjs, i386_tobjs): Use it.
12365
b744723f
AA
123662018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12367
12368 * symtab.c (print_symbol_info): Precede the symbol definition by
12369 the line number when available.
12370 * NEWS: Advertise this enhancement.
12371
4a4495d6
MM
123722018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12373
12374 * NEWS (New options): announce set/show record btrace cpu.
12375 * btrace.c: Include record-btrace.h.
12376 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
12377 the vendor is unknown.
12378 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
12379 Maybe overwrite the btrace configuration's cpu.
12380 (btrace_compute_ftrace): Add cpu parameter. Update callers.
12381 (btrace_fetch): Add cpu parameter. Update callers.
12382 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
12383 Maybe overwrite the btrace configuration's cpu. Skip enabling
12384 errata workarounds if the vendor is unknown.
12385 * python/py-record-btrace.c: Include record-btrace.h.
12386 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
12387 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
12388 * record-btrace.c (record_btrace_cpu_state_kind): New.
12389 (record_btrace_cpu): New.
12390 (set_record_btrace_cpu_cmdlist): New.
12391 (record_btrace_get_cpu): New.
12392 (require_btrace_thread, record_btrace_info)
12393 (record_btrace_resume_thread): Call record_btrace_get_cpu.
12394 (cmd_set_record_btrace_cpu_none): New.
12395 (cmd_set_record_btrace_cpu_auto): New.
12396 (cmd_set_record_btrace_cpu): New.
12397 (cmd_show_record_btrace_cpu): New.
12398 (_initialize_record_btrace): Initialize set/show record btrace cpu
12399 commands.
12400 * record-btrace.h (record_btrace_get_cpu): New.
12401
69f90c75
MM
124022018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12403
12404 * record.c (set_record_command): Fix typo in message.
12405
b85310e1
MM
124062018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12407
12408 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
12409
1d509aa6
MM
124102018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12411
12412 * infrun.c (process_event_stop_test): Call
12413 gdbarch_in_indirect_branch_thunk.
12414 * gdbarch.sh (in_indirect_branch_thunk): New.
12415 * gdbarch.c: Regenerated.
12416 * gdbarch.h: Regenerated.
12417 * x86-tdep.h: New.
12418 * x86-tdep.c: New.
12419 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
12420 (HFILES_NO_SRCDIR): Add x86-tdep.h.
12421 (ALLDEPFILES): Add x86-tdep.c.
12422 * arch-utils.h (default_in_indirect_branch_thunk): New.
12423 * arch-utils.c (default_in_indirect_branch_thunk): New.
12424 * i386-tdep: Include x86-tdep.h.
12425 (i386_in_indirect_branch_thunk): New.
12426 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
12427 function.
12428 * amd64-tdep: Include x86-tdep.h.
12429 (amd64_in_indirect_branch_thunk): New.
12430 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
12431
b4be9bfd
JK
124322018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12433
12434 PR gdb/23053
12435 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
12436 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
12437 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
12438 regression.
12439
53d7df28
TT
124402018-04-12 Tom Tromey <tom@tromey.com>
12441
12442 * rust-lang.c (rust_print_struct_def): Remove univariant code.
12443 (rust_evaluate_subexp): Likewise.
12444
70b33f19
PA
124452018-04-12 Pedro Alves <palves@redhat.com>
12446
12447 * procfs.c (procfs_detach): Make forward declaration's prototype
12448 match definition's protototype.
12449 (proc_get_LDT_entry): Remove stale do_cleanups call.
12450
436411b1
PA
124512018-04-12 Pedro Alves <palves@redhat.com>
12452
12453 * target.h (target_ops::to_has_exited): Delete.
12454 (target_has_exited): Delete.
12455 * target-delegates.c: Regenerate.
12456
20db9c52
PA
124572018-04-11 Pedro Alves <palves@redhat.com>
12458
12459 * target.c (fileio_fh_t::t): Add comment.
12460 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12461 (target_fileio_close): Handle a NULL target.
12462 (invalidate_fileio_fh): New.
12463 (target_close): Call it.
12464 * remote.c (remote_hostio_send_command): No longer check whether
12465 remote_desc is open.
12466
5ff79300
PA
124672018-04-11 Pedro Alves <palves@redhat.com>
12468
12469 * target.c (fileio_fh_t): Make it a named struct instead of a
12470 typedef.
12471 (fileio_fh_t::is_closed): New method.
12472 (DEF_VEC_O (fileio_fh_t)): Remove.
12473 (fileio_fhandles): Now a std::vector.
12474 (is_closed_fileio_fh): Delete.
12475 (acquire_fileio_fd): Adjust. Rename parameters.
12476 (release_fileio_fd): Adjust.
12477 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
12478 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12479 (target_fileio_close): Adjust.
12480
6e22e10d
SM
124812018-04-10 Simon Marchi <simon.marchi@ericsson.com>
12482
12483 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
12484 index.
12485
731f534f
PA
124862018-04-10 Pedro Alves <palves@redhat.com>
12487
12488 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
12489 (scoped_finish_thread_state): New class.
12490 * infcmd.c (run_command_1): Use it instead of finish_thread_state
12491 cleanup.
12492 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
12493 (fetch_inferior_event, normal_stop): Likewise.
12494 * thread.c (finish_thread_state_cleanup): Delete.
12495
d5f4488f
SM
124962018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12497 Pedro Alves <palves@redhat.com>
12498
12499 * value.c: Include "selftest.h" and "common/array-view.h".
12500 (struct range) <operator ==>: New.
12501 (test_ranges_contain): New.
12502 (check_ranges_vector): New.
12503 (test_insert_into_bit_range_vector): New.
12504 (_initialize_values): Register selftests.
12505 * common/array-view.h (operator==, operator!=): New.
12506
b24531ed
SM
125072018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12508
12509 * common/gdb_vecs.h (unordered_remove): Add overload that takes
12510 an iterator.
12511 * inline-frame.c: Include <algorithm>.
12512 (struct inline_state): Add constructor.
12513 (inline_state_s): Remove.
12514 (DEF_VEC_O(inline_state_s)): Remove.
12515 (inline_states): Change type to std::vector.
12516 (find_inline_frame_state): Adjust to std::vector.
12517 (allocate_inline_frame_state): Remove.
12518 (clear_inline_frame_state): Adjust to std::vector.
12519 (skip_inline_frames): Adjust to std::vector.
12520
c252925c
SM
125212018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12522
12523 * tracepoint.h (struct trace_state_variable): Add constructor.
12524 <name>: Change type to std::string.
12525 * tracepoint.c (tsv_s): Remove.
12526 (DEF_VEC_O(tsv_s)): Remove.
12527 (tvariables): Change to std::vector.
12528 (create_trace_state_variable): Adjust to std::vector.
12529 (find_trace_state_variable): Likewise.
12530 (find_trace_state_variable_by_number): Likewise.
12531 (delete_trace_state_variable): Likewise.
12532 (trace_variable_command): Adjust to std::string.
12533 (delete_trace_variable_command): Likewise.
12534 (tvariables_info_1): Adjust to std::vector.
12535 (save_trace_state_variables): Likewise.
12536 (start_tracing): Likewise.
12537 (merge_uploaded_trace_state_variables): Adjust to std::vector
12538 and std::string.
12539 * target.h (struct target_ops)
12540 <to_download_trace_state_variable>: Pass reference to
12541 trace_state_variable.
12542 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
12543 * target-delegates.c: Re-generate.
12544 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
12545 (mi_tsv_deleted): Likewise.
12546 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
12547 * remote.c (remote_download_trace_state_variable): Change
12548 pointer to reference and adjust.
12549 * make-target-delegates (parse_argtypes): Handle references.
12550 (write_function_header): Likewise.
12551 (munge_type): Likewise.
12552
c9638d26
SM
125532018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12554
12555 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12556 string_view-selftests.c.
12557 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
12558 testsuite.
12559 * unittests/basic_string_view/cons/char/1.cc: Likewise.
12560 * unittests/basic_string_view/cons/char/2.cc: Likewise.
12561 * unittests/basic_string_view/cons/char/3.cc: Likewise.
12562 * unittests/basic_string_view/element_access/char/1.cc:
12563 Likewise.
12564 * unittests/basic_string_view/element_access/char/empty.cc:
12565 Likewise.
12566 * unittests/basic_string_view/element_access/char/front_back.cc:
12567 Likewise.
12568 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
12569 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
12570 Likewise.
12571 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
12572 Likewise.
12573 * unittests/basic_string_view/modifiers/swap/char/1.cc:
12574 Likewise.
12575 * unittests/basic_string_view/operations/compare/char/1.cc:
12576 Likewise.
12577 * unittests/basic_string_view/operations/compare/char/13650.cc:
12578 Likewise.
12579 * unittests/basic_string_view/operations/copy/char/1.cc:
12580 Likewise.
12581 * unittests/basic_string_view/operations/data/char/1.cc:
12582 Likewise.
12583 * unittests/basic_string_view/operations/find/char/1.cc:
12584 Likewise.
12585 * unittests/basic_string_view/operations/find/char/2.cc:
12586 Likewise.
12587 * unittests/basic_string_view/operations/find/char/3.cc:
12588 Likewise.
12589 * unittests/basic_string_view/operations/find/char/4.cc:
12590 Likewise.
12591 * unittests/basic_string_view/operations/rfind/char/1.cc:
12592 Likewise.
12593 * unittests/basic_string_view/operations/rfind/char/2.cc:
12594 Likewise.
12595 * unittests/basic_string_view/operations/rfind/char/3.cc:
12596 Likewise.
12597 * unittests/basic_string_view/operations/substr/char/1.cc:
12598 Likewise.
12599 * unittests/basic_string_view/operators/char/2.cc: Likewise.
12600 * unittests/string_view-selftests.c: New file.
12601
fdc11678
SM
126022018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12603
12604 * unittests/basic_string_view/capacity/1.cc: New file.
12605 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
12606 * unittests/basic_string_view/cons/char/1.cc: New file.
12607 * unittests/basic_string_view/cons/char/2.cc: New file.
12608 * unittests/basic_string_view/cons/char/3.cc: New file.
12609 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
12610 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
12611 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
12612 * unittests/basic_string_view/element_access/char/1.cc: New file.
12613 * unittests/basic_string_view/element_access/char/2.cc: New file.
12614 * unittests/basic_string_view/element_access/char/empty.cc: New file.
12615 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
12616 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
12617 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
12618 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
12619 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
12620 * unittests/basic_string_view/include.cc: New file.
12621 * unittests/basic_string_view/inserters/char/1.cc: New file.
12622 * unittests/basic_string_view/inserters/char/2.cc: New file.
12623 * unittests/basic_string_view/inserters/char/3.cc: New file.
12624 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
12625 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
12626 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
12627 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
12628 * unittests/basic_string_view/literals/types.cc: New file.
12629 * unittests/basic_string_view/literals/values.cc: New file.
12630 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
12631 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
12632 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
12633 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
12634 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
12635 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
12636 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
12637 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
12638 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
12639 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
12640 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
12641 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
12642 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
12643 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
12644 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
12645 * unittests/basic_string_view/operations/data/char/1.cc: New file.
12646 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
12647 * unittests/basic_string_view/operations/find/char/1.cc: New file.
12648 * unittests/basic_string_view/operations/find/char/2.cc: New file.
12649 * unittests/basic_string_view/operations/find/char/3.cc: New file.
12650 * unittests/basic_string_view/operations/find/char/4.cc: New file.
12651 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
12652 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
12653 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
12654 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
12655 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
12656 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
12657 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
12658 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
12659 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
12660 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
12661 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
12662 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
12663 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
12664 * unittests/basic_string_view/operators/char/2.cc: New file.
12665 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
12666 * unittests/basic_string_view/range_access/char/1.cc: New file.
12667 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
12668 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
12669 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
12670 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
12671 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
12672 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
12673 * unittests/basic_string_view/requirements/typedefs.cc: New file.
12674 * unittests/basic_string_view/typedefs.cc: New file.
12675 * unittests/basic_string_view/types/1.cc: New file.
12676
8345c4a2
SM
126772018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12678
12679 * common/gdb_string_view.h: Remove libstdc++ implementation
12680 details, adjust to gdb reality.
12681 * common/gdb_string_view.tcc: Likewise.
12682 * cli/cli-script.c (struct string_view): Remove.
12683 (user_args) <m_args>: Change element type to gdb::string_view.
12684 (user_args::insert_args): Adjust.
12685
7adcdf08
SM
126862018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12687
12688 * common/gdb_string_view.h: New file.
12689 * common/gdb_string_view.tcc: New file.
12690
41260ac2
SM
126912018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12692
12693 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
12694 * configure: Re-generate.
12695
0bee6dd4
PA
126962018-04-09 Pedro Alves <palves@redhat.com>
12697
12698 * gdbarch.sh: Include "observable.h" instead of "observer.h".
12699 (set_target_gdbarch): Call
12700 gdb::observers::architecture_changed.notify instead of
12701 observer_notify_architecture_changed.
12702
6f14adc5
SM
127032018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12704
12705 * tracepoint.c (struct current_traceframe_cleanup): Remove.
12706 (do_restore_current_traceframe_cleanup): Remove.
12707 (restore_current_traceframe_cleanup_dtor): Remove.
12708 (make_cleanup_restore_current_traceframe): Remove.
12709 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
12710 New.
12711 * tracepoint.h (struct scoped_restore_current_traceframe): New.
12712 * infrun.c (fetch_inferior_event): Use
12713 scoped_restore_current_traceframe.
12714
b2bdb8cf
SM
127152018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12716
12717 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
12718 Remove.
12719 <n_allocated_type_units>: Remove.
12720 <all_type_units>: Change to std::vector.
12721 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12722 to std::vector change.
12723 (dwarf2_per_objfile::get_cutu): Likewise.
12724 (dwarf2_per_objfile::get_tu): Likewise.
12725 (create_signatured_type_table_from_index): Likewise.
12726 (create_signatured_type_table_from_debug_names): Likewise.
12727 (dw2_symtab_iter_next): Likewise.
12728 (dw2_print_stats): Likewise.
12729 (dw2_expand_all_symtabs): Likewise.
12730 (dw2_expand_marked_cus): Likewise.
12731 (dw2_debug_names_iterator::next): Likewise.
12732 (dwarf2_initialize_objfile): Likewise.
12733 (add_signatured_type_cu_to_table): Likewise.
12734 (create_all_type_units): Likewise.
12735 (add_type_unit): Likewise.
12736 (struct tu_abbrev_offset): Add constructor.
12737 (build_type_psymtabs_1): Adjust to std::vector change.
12738 (print_tu_stats): Likewise.
12739 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12740 (write_debug_names): Likewise.
12741
b76e467d
SM
127422018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12743
12744 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
12745 Make an std::vector.
12746 <n_comp_units>: Remove.
12747 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12748 to std::vector change.
12749 (dwarf2_per_objfile::get_cutu): Likewise.
12750 (dwarf2_per_objfile::get_cu): Likewise.
12751 (create_cus_from_index): Likewise.
12752 (create_addrmap_from_index): Likewise.
12753 (create_addrmap_from_aranges): Likewise.
12754 (dwarf2_read_index): Likewise.
12755 (dw2_find_last_source_symtab): Likewise.
12756 (dw2_map_symtabs_matching_filename): Likewise.
12757 (dw2_symtab_iter_next): Likewise.
12758 (dw2_print_stats): Likewise.
12759 (dw2_expand_all_symtabs): Likewise.
12760 (dw2_expand_symtabs_with_fullname): Likewise.
12761 (dw2_expand_marked_cus): Likewise.
12762 (dw2_map_symbol_filenames): Likewise.
12763 (create_cus_from_debug_names): Likewise.
12764 (dwarf2_read_debug_names): Likewise.
12765 (dw2_debug_names_iterator::next): Likewise.
12766 (dwarf2_initialize_objfile): Likewise.
12767 (set_partial_user): Likewise.
12768 (dwarf2_build_psymtabs_hard): Likewise.
12769 (read_comp_units_from_section): Remove arguments, adjust to
12770 std::vector change.
12771 (create_all_comp_units): Adjust to std::vector and
12772 read_comp_units_from_section changes.
12773 (dwarf2_find_containing_comp_unit): Adjust to std::vector
12774 change.
12775 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12776 (psyms_seen_size): Likewise.
12777 (write_gdbindex): Likewise.
12778 (write_debug_names): Likewise.
12779
12359b5e
SM
127802018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12781
12782 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
12783 with dwarf2_per_objfile.
12784 (create_cus_from_index): Likewise.
12785 (create_signatured_type_table_from_index): Likewise.
12786 (dwarf2_read_index): Likewise.
12787 (dwarf2_initialize_objfile): Likewise.
12788 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
12789 per_cu rather than get_dwarf2_per_objfile.
12790
ff4c9fec
SM
127912018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12792
12793 * dwarf2read.h (struct signatured_type): Forward declare.
12794 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
12795 New methods.
12796 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
12797 (dw2_get_cutu): ...this.
12798 (dwarf2_per_objfile::get_cu): Rename from...
12799 (dw2_get_cu): ...this.
12800 (dwarf2_per_objfile::get_tu): New.
12801 (create_addrmap_from_index): Adjust.
12802 (create_addrmap_from_aranges): Adjust.
12803 (dw2_find_last_source_symtab): Adjust.
12804 (dw2_map_symtabs_matching_filename): Adjust.
12805 (dw2_symtab_iter_next): Adjust.
12806 (dw2_print_stats): Adjust.
12807 (dw2_expand_all_symtabs): Adjust.
12808 (dw2_expand_symtabs_with_fullname): Adjust.
12809 (dw2_expand_marked_cus): Adjust.
12810 (dw_expand_symtabs_matching_file_matcher): Adjust.
12811 (dw2_map_symbol_filenames): Adjust.
12812 (dw2_debug_names_iterator::next): Adjust.
12813 (dwarf2_initialize_objfile): Adjust.
12814 (set_partial_user): Adjust.
12815 (dwarf2_build_psymtabs_hard): Adjust.
12816
5ca3fcb6
SM
128172018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12818
12819 * dwarf2read.c (create_signatured_type_table_from_debug_names):
12820 Remove unused variables.
12821 (dw2_map_symtabs_matching_filename): Likewise.
12822 (dwarf2_record_block_ranges): Likewise.
12823 (dwarf2_read_addr_index): Likewise.
12824 (follow_die_offset): Likewise.
12825
b2e586e8
SM
128262018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12827
12828 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
12829 to symbol_file_add_main.
12830
7c4e78cf
SM
128312018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12832
12833 PR mi/22299
12834 * mi/mi-console.c (do_fputc_async_safe): New.
12835 (mi_console_file::write_async_safe): New.
12836 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
12837 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
12838 New.
12839 * ui-file.c (ui_file::putstrn): Adjust call to
12840 fputstrn_unfiltered.
12841 * utils.c (printchar): Replace do_fputs and do_fprintf
12842 parameters by do_fputc.
12843 (fputstr_filtered): Adjust call to printchar.
12844 (fputstr_unfiltered): Likewise.
12845 (fputstrn_filtered): Likewise.
12846 (fputstrn_unfiltered): Add do_fputc parameter, pass to
12847 printchar.
12848 * utils.h (do_fputc_ftype): New typedef.
12849 (fputstrn_unfiltered): Add do_fputc parameter.
12850
5dc026d3
SM
128512018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12852
12853 * regformats/i386/i386-avx.dat: Remove.
12854
c912f608
SM
128552018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12856
12857 PR gdb/22979
12858 * amd64-tdep.c (amd64_none_init_abi): New function.
12859 (amd64_x32_none_init_abi): New function.
12860 (_initialize_amd64_tdep): Register handlers for x86-64 and
12861 x64_32 with GDB_OSABI_NONE.
12862 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
12863 GDB_OSABI_NONE osabi.
12864
26540402
SM
128652018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12866
12867 PR gdb/22980
12868 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
12869 GDB_OSABI_NONE.
12870 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
12871 * osabi.c (gdb_osabi_names): Add "unknown" entry.
12872
9018be22
SM
128732018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12874
12875 * common/byte-vector.h (char_vector): New type.
12876 * target.h (target_read_alloc): Return
12877 gdb::optional<byte_vector>.
12878 (target_read_stralloc): Return gdb::optional<char_vector>.
12879 (target_get_osdata): Return gdb::optional<char_vector>.
12880 * target.c (target_read_alloc_1): Templatize. Replacement
12881 manual memory management with vector.
12882 (target_read_alloc): Change return type, adjust.
12883 (target_read_stralloc): Change return type, adjust.
12884 (target_get_osdata): Change return type, adjust.
12885 * auxv.c (struct auxv_info) <length>: Remove.
12886 <data>: Change type to gdb::optional<byte_vector>.
12887 (auxv_inferior_data_cleanup): Free auxv_info with delete.
12888 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
12889 (target_auxv_search): Adjust.
12890 (fprint_target_auxv): Adjust.
12891 * avr-tdep.c (avr_io_reg_read_command): Adjust.
12892 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
12893 (linux_make_corefile_notes): Adjust.
12894 * osdata.c (get_osdata): Adjust.
12895 * remote.c (remote_get_threads_with_qxfer): Adjust.
12896 (remote_memory_map): Adjust.
12897 (remote_traceframe_info): Adjust.
12898 (btrace_read_config): Adjust.
12899 (remote_read_btrace): Adjust.
12900 (remote_pid_to_exec_file): Adjust.
12901 * solib-aix.c (solib_aix_get_library_list): Adjust.
12902 * solib-dsbt.c (decode_loadmap): Don't free buf.
12903 (dsbt_get_initial_loadmaps): Adjust.
12904 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
12905 * solib-target.c (solib_target_current_sos): Adjust.
12906 * tracepoint.c (sdata_make_value): Adjust.
12907 * xml-support.c (xinclude_start_include): Adjust.
12908 (xml_fetch_content_from_file): Adjust.
12909 * xml-support.h (xml_fetch_another): Change return type.
12910 (xml_fetch_content_from_file): Change return type.
12911 * xml-syscall.c (xml_init_syscalls_info): Adjust.
12912 * xml-tdesc.c (file_read_description_xml): Adjust.
12913 (fetch_available_features_from_target): Change return type.
12914 (target_fetch_description_xml): Adjust.
12915 (target_read_description_xml): Adjust.
12916
14c88955
TT
129172018-04-06 Tom Tromey <tom@tromey.com>
12918
12919 * value.c (~value): Update.
12920 (struct value) <contents>: Now unique_xmalloc_ptr.
12921 (value_contents_bits_eq, allocate_value_contents)
12922 (value_contents_raw, value_contents_all_raw)
12923 (value_contents_for_printing, value_contents_for_printing_const)
12924 (set_value_enclosing_type): Update.
12925
0c7e6dd8
TT
129262018-04-06 Tom Tromey <tom@tromey.com>
12927
12928 * value.c (range_s): Remove typedef, VEC.
12929 (struct range): Add operator<.
12930 (range_lessthan): Remove.
12931 (ranges_contain): Change type.
12932 (~value): Update.
12933 (struct value) <unavailable, optimized_out>: Now std::vector.
12934 (value_entirely_available)
12935 (value_entirely_covered_by_range_vector)
12936 (value_entirely_unavailable, value_entirely_optimized_out):
12937 Update.
12938 (insert_into_bit_range_vector): Change argument type.
12939 (find_first_range_overlap): Likewise.
12940 (struct ranges_and_idx, value_contents_bits_eq)
12941 (require_not_optimized_out, require_available): Update.
12942 (ranges_copy_adjusted): Change argument types.
12943 (value_optimized_out, value_copy, value_fetch_lazy): Update.
12944
2c8331b9
TT
129452018-04-06 Tom Tromey <tom@tromey.com>
12946
12947 * value.c (~value): Update.
12948 (struct value) <parent>: Now a value_ref_ptr.
12949 (value_parent, set_value_parent, value_address, value_copy):
12950 Update.
12951
466ce3ae
TT
129522018-04-06 Tom Tromey <tom@tromey.com>
12953
12954 * value.c (struct value): Add constructor, destructor, and member
12955 initializers.
12956 (allocate_value_lazy, value_decref): Update.
12957
062d818d
TT
129582018-04-06 Tom Tromey <tom@tromey.com>
12959
12960 * value.c (struct value) <released, next>: Remove.
12961 (all_values): Now a std::vector.
12962 (allocate_value_lazy): Update.
12963 (value_next): Remove.
12964 (value_mark, value_free_to_mark, release_value)
12965 (value_release_to_mark): Update.
12966
a6535de1
TT
129672018-04-06 Tom Tromey <tom@tromey.com>
12968
12969 * value.h (fetch_subexp_value, value_release_to_mark): Update.
12970 (free_value_chain): Remove.
12971 * value.c (free_value_chain): Remove.
12972 (value_release_to_mark): Return a std::vector.
12973 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
12974 std::vector.
12975 (check_condition): Update.
12976 * eval.c (fetch_subexp_value): Change "val_chain" to a
12977 std::vector.
12978 * breakpoint.c (update_watchpoint): Update.
12979 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
12980
b5621201
TT
129812018-04-06 Tom Tromey <tom@tromey.com>
12982
12983 * value.h (free_all_values): Remove.
12984 * value.c (free_all_values): Remove.
12985
4d0266a0
TT
129862018-04-06 Tom Tromey <tom@tromey.com>
12987
12988 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
12989 (value_history_chain, value_history_count): Remove.
12990 (value_history): New global.
12991 (record_latest_value, access_value_history, show_values)
12992 (preserve_values): Update.
12993
b4d61099
TT
129942018-04-06 Tom Tromey <tom@tromey.com>
12995
12996 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
12997 * varobj.c (varobj_set_display_format, varobj_set_value)
12998 (install_default_visualizer, construct_visualizer)
12999 (install_new_value, ~varobj, varobj_get_value_type)
13000 (my_value_of_variable, varobj_editable_p): Update.
13001 * c-varobj.c (c_describe_child, c_value_of_variable)
13002 (cplus_number_of_children, cplus_describe_child): Update.
13003 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
13004 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
13005 (ada_value_of_variable, ada_value_is_changeable_p): Update.
13006
9b558729
TT
130072018-04-06 Tom Tromey <tom@tromey.com>
13008
13009 * printcmd.c (last_examine_address): Change type to
13010 value_ref_ptr.
13011 (do_examine, x_command): Update.
13012
850645cf
TT
130132018-04-06 Tom Tromey <tom@tromey.com>
13014
13015 * value.c (release_value): Update.
13016 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
13017 (struct bpstats) <val>: Now a value_ref_ptr.
13018 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
13019 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
13020 (~watchpoint, print_it_watchpoint, watch_command_1)
13021 (invalidate_bp_value_on_memory_change): Update.
13022
22bc8444
TT
130232018-04-06 Tom Tromey <tom@tromey.com>
13024
13025 * varobj.c (varobj_clear_saved_item)
13026 (update_dynamic_varobj_children, install_new_value, ~varobj):
13027 Update.
13028 * value.h (value_incref): Move declaration earlier.
13029 (value_decref): Rename from value_free.
13030 (struct value_ref_policy): New.
13031 (value_ref_ptr): New typedef.
13032 (struct value_deleter): Remove.
13033 (gdb_value_up): Remove typedef.
13034 (release_value): Change return type.
13035 (release_value_or_incref): Remove.
13036 * value.c (set_value_parent): Update.
13037 (value_incref): Change return type.
13038 (value_decref): Rename from value_free.
13039 (value_free_to_mark, free_all_values, free_value_chain): Update.
13040 (release_value): Return value_ref_ptr.
13041 (release_value_or_incref): Remove.
13042 (record_latest_value, set_internalvar, clear_internalvar):
13043 Update.
13044 * stack.c (info_frame_command): Don't call value_free.
13045 * python/py-value.c (valpy_dealloc, valpy_new)
13046 (value_to_value_object): Update.
13047 * printcmd.c (do_examine): Update.
13048 * opencl-lang.c (lval_func_free_closure): Update.
13049 * mi/mi-main.c (register_changed_p): Don't call value_free.
13050 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
13051 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
13052 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
13053 value_free.
13054 * guile/scm-value.c (vlscm_free_value_smob)
13055 (vlscm_scm_from_value): Update.
13056 * frame.c (frame_register_unwind, frame_unwind_register_signed)
13057 (frame_unwind_register_unsigned, get_frame_register_bytes)
13058 (put_frame_register_bytes): Don't call value_free.
13059 * findvar.c (address_from_register): Don't call value_free.
13060 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
13061 * dwarf2loc.c (entry_data_value_free_closure)
13062 (value_of_dwarf_reg_entry, free_pieced_value_closure)
13063 (dwarf2_evaluate_loc_desc_full): Update.
13064 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
13065 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
13066 (~watchpoint, watch_command_1)
13067 (invalidate_bp_value_on_memory_change): Update.
13068 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
13069
7f8a5d38
SM
130702018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
13071
13072 PR gdb/23022
13073 * warning.m4: Add -Wno-error=deprecated-register.
13074 * configure: Re-generate.
13075
8a76bd3b
TT
130762018-04-05 Tom Tromey <tom@tromey.com>
13077
13078 * linespec.h: Remove include of "vec.h".
13079
8e8d776e
TT
130802018-04-05 Tom Tromey <tom@tromey.com>
13081
13082 * linespec.c (typep): Remove typedef.
13083 (find_methods, find_superclass_methods): Take a std::vector.
13084 (find_method): Use std::vector.
13085
9b2f8581
TT
130862018-04-05 Tom Tromey <tom@tromey.com>
13087
13088 * utils.c (compare_strings): Remove.
13089 * utils.h (compare_strings): Remove.
13090 * objc-lang.h (find_imps): Update.
13091 * objc-lang.c (find_methods): Take a std::vector.
13092 (uniquify_strings, find_imps): Likewise.
13093 * linespec.c (find_methods): Take a std::vector.
13094 (decode_objc): Use std::vector.
13095 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
13096 a std::vector.
13097 (find_method, find_function_symbols): Use std::vector.
13098
459a2e4c
TT
130992018-04-05 Tom Tromey <tom@tromey.com>
13100
13101 * completer.c (completion_tracker::completion_tracker): Remove
13102 cast.
13103 (completion_tracker::discard_completions): Likewise.
13104 * breakpoint.c (ambiguous_names_p): Remove cast.
13105 * ada-lang.c (_initialize_ada_language): Remove cast.
13106 * utils.h (streq): Update.
13107 (streq_hash): Add new declaration.
13108 * utils.c (streq): Return bool.
13109 (streq_hash): New function.
13110
9be2c17a
TT
131112018-04-05 Tom Tromey <tom@tromey.com>
13112
13113 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
13114 Remove a string copy.
13115
f73c6ece
TT
131162018-04-05 Tom Tromey <tom@tromey.com>
13117
13118 * linespec.c (filter_results): Use std::vector.
13119 (decode_line_2, decode_line_full): Update.
13120
53a0f8a2
TT
131212018-04-05 Tom Tromey <tom@tromey.com>
13122
13123 * linespec.c (canonical_to_fullform): Return std::string.
13124 (filter_results): Update.
13125 (struct decode_line_2_item): Add constructor.
13126 <fullform, displayform>: Now std::string.
13127 (decode_line_2_compare_items): Now a std::sort comparator.
13128 (decode_line_2): Update.
13129
a5b5adf5
TT
131302018-04-05 Tom Tromey <tom@tromey.com>
13131
13132 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
13133 (unexpected_linespec_error): Update.
13134 (linespec_parse_basic, parse_linespec): Update.
13135
6a307fc5
TT
131362018-04-05 Tom Tromey <tom@tromey.com>
13137
13138 * linespec.c (linespec_parse_basic): Reindent.
13139
41c1efc6
TT
131402018-04-05 Tom Tromey <tom@tromey.com>
13141
13142 * minsyms.h (iterate_over_minimal_symbols): Update.
13143 * minsyms.c (iterate_over_minimal_symbols): Take a
13144 gdb::function_view.
13145 * linespec.c (struct collect_minsyms): Remove.
13146 (compare_msyms): Now a std::sort comparator.
13147 (add_minsym): Add parameters.
13148 (search_minsyms_for_name): Update. Use std::vector.
13149
c5edbf3d
TT
131502018-04-03 Tom Tromey <tom@tromey.com>
13151
13152 * mipsread.c (read_alphacoff_dynamic_symtab): Use
13153 gdb::byte_vector.
13154
b39efc48
WP
131552018-04-02 Weimin Pan <weimin.pan@oracle.com>
13156
13157 * MAINTAINERS (Write After Approval): Add Weimin Pan.
13158
121ad66c 131592018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
13160
13161 PR gdb/16959
13162 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
13163 printing static type.
13164
09473be8
TT
131652018-04-01 Tom Tromey <tom@tromey.com>
13166
13167 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
13168 (rs6000_xfer_shared_libraries): Update.
13169
ec1f2d91
SM
131702018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13171
13172 * common/gdb_vecs.h (char_ptr): Remove.
13173 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
13174
d8611974
SM
131752018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
13176
13177 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
13178 with std::vector.
13179 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
13180
a18ba4e4
SM
131812018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
13182
13183 * tracepoint.h (struct uploaded_tp): Initialize fields.
13184 <actions, step_actions, cmd_strings>: Change type to
13185 std::vector<char *>.
13186 * tracepoint.c (get_uploaded_tp): Allocate with new.
13187 (free_uploaded_tps): Free with delete.
13188 (parse_tracepoint_definition): Adjust to std::vector change.
13189 * breakpoint.c (read_uploaded_action): Likewise.
13190 (create_tracepoint_from_upload): Likewise.
13191 * ctf.c (ctf_write_uploaded_tp): Likewise.
13192 (SET_ARRAY_FIELD): Likewise.
13193 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
13194
a7961323
TT
131952018-03-30 Tom Tromey <tom@tromey.com>
13196
13197 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
13198 std::unique_ptr.
13199 (svr4_keep_data_in_core): Update.
13200 (svr4_read_so_list): Update.
13201
e83e4e24
TT
132022018-03-30 Tom Tromey <tom@tromey.com>
13203
13204 * windows-nat.c (handle_output_debug_string, handle_exception):
13205 Update.
13206 * target.h (target_read_string): Update.
13207 * target.c (target_read_string): Change "string" to
13208 unique_xmalloc_ptr.
13209 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
13210 Update.
13211 * solib-frv.c (frv_current_sos): Update.
13212 * solib-dsbt.c (dsbt_current_sos): Update.
13213 * solib-darwin.c (darwin_current_sos): Update.
13214 * linux-thread-db.c (inferior_has_bug): Update.
13215 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
13216 Update. Remove alloca.
13217 * ada-lang.c (ada_main_name): Update.
13218
263db9a1
TT
132192018-03-30 Tom Tromey <tom@tromey.com>
13220
13221 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
13222 (struct dwo_file_deleter): New.
13223 (dwo_file_up): New typedef.
13224 (open_and_init_dwo_file): Use dwo_file_up.
13225 (free_dwo_file_cleanup): Remove.
13226
5dafb3d1
TT
132272018-03-30 Tom Tromey <tom@tromey.com>
13228
13229 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
13230 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
13231
11ed8cad
TT
132322018-03-30 Tom Tromey <tom@tromey.com>
13233
13234 * dwarf2read.c (class free_cached_comp_units): New class.
13235 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
13236 (free_cached_comp_units): Remove function.
13237
9ae79dac
TT
132382018-03-30 Tom Tromey <tom@tromey.com>
13239
13240 * utils.h (make_cleanup_unpush_target): Remove.
13241 * inf-ptrace.c (struct target_unpusher): New.
13242 (target_unpush_up) New typedef.
13243 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
13244 target_unpush_up.
13245 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
13246
5aa89276
TT
132472018-03-27 Tom Tromey <tom@tromey.com>
13248
13249 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
13250
1dbeed45
TT
132512018-03-27 Pedro Alves <palves@redhat.com>
13252 Tom Tromey <tom@tromey.com>
13253
13254 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
13255 destructor. Now a class.
13256 (gdb_readline_wrapper_cleanup): Remove function.
13257 (gdb_readline_wrapper): Remove cleanups.
13258
c819b2c0
TT
132592018-03-27 Tom Tromey <tom@tromey.com>
13260
13261 * typeprint.h (struct type_print_options) <local_typedefs,
13262 global_typedefs>: Remove "struct" keyword.
13263 (class typedef_hash_table): New class.
13264 (recursively_update_typedef_hash, add_template_parameters)
13265 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
13266 (find_typedef_in_hash): Don't declare.
13267 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
13268 (typedef_hash_table::recursively_update): Rename from
13269 recursively_update_typedef_hash. Now a member.
13270 (typedef_hash_table::add_template_parameters): Rename from
13271 add_template_parameters. Now a member.
13272 (typedef_hash_table::typedef_hash_table): Now a constructor;
13273 rename from create_typedef_hash.
13274 (typedef_hash_table::~typedef_hash_table): Now a destructor;
13275 rename from free_typedef_hash.
13276 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
13277 (do_free_global_table): Remove.
13278 (typedef_hash_table::typedef_hash_table): New constructor; renamed
13279 from copy_type_recursive.
13280 (create_global_typedef_table): Remove.
13281 (typedef_hash_table::find_global_typedef): Now a member of
13282 typedef_hash_table.
13283 (typedef_hash_table::find_typedef): Rename from
13284 find_typedef_in_hash; now a member.
13285 (whatis_exp): Update.
13286 * extension.h (struct ext_lang_type_printers): Add constructor and
13287 destructor.
13288 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
13289 declare.
13290 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
13291 Now a constructor; rename from start_ext_lang_type_printers.
13292 (ext_lang_type_printers): Now a destructor; rename from
13293 free_ext_lang_type_printers.
13294 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
13295 Update.
13296 (c_type_print_base_struct_union): Update. Remove cleanups.
13297
608219fb
TT
132982018-03-27 Tom Tromey <tom@tromey.com>
13299
13300 * dwarf-index-write.c: Include <cmath>.
13301
3fcded8f
JB
133022018-03-27 Joel Brobecker <brobecker@adacore.com>
13303
13304 * NEWS: Add entry describing new "set|show varsize-limit" command.
13305 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
13306 command.
13307 * printcmd.c (_initialize_printcmd): Add "set var" alias of
13308 "set variable".
13309
cd4fb1b2
SM
133102018-03-27 Simon Marchi <simon.marchi@ericsson.com>
13311
13312 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
13313 dwarf-index-write.c
13314 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
13315 * dwarf-index-common.c: New file.
13316 * dwarf-index-common.h: New file.
13317 * dwarf-index-write.c: New file.
13318 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
13319 (struct dwarf2_section_info): Move from here.
13320 (dwarf2_section_info_def): Likewise.
13321 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
13322 (offset_type): Likewise.
13323 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
13324 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
13325 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
13326 (byte_swap): Likewise.
13327 (MAYBE_SWAP): Likewise.
13328 (dwarf2_per_cu_ptr): Likewise.
13329 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
13330 (struct tu_stats): Likewise.
13331 (struct dwarf2_per_objfile): Likewise.
13332 (struct dwarf2_per_cu_data): Likewise.
13333 (struct signatured_type): Likewise.
13334 (sig_type_ptr): Likewise.
13335 (DEF_VEC_P (sig_type_ptr)): Likewise.
13336 (INDEX4_SUFFIX): Likewise.
13337 (INDEX5_SUFFIX): Likewise.
13338 (DEBUG_STR_SUFFIX): Likewise.
13339 (dwarf2_read_section): Make non-static.
13340 (mapped_index_string_hash): Move from here.
13341 (dwarf5_djb_hash): Likewise.
13342 (file_write): Likewise.
13343 (class data_buf): Likewise.
13344 (struct symtab_index_entry): Likewise.
13345 (struct mapped_symtab): Likewise.
13346 (find_slot): Likewise.
13347 (hash_expand): Likewise.
13348 (add_index_entry): Likewise.
13349 (uniquify_cu_indices): Likewise.
13350 (class c_str_view): Likewise.
13351 (class c_str_view_hasher): Likewise.
13352 (class vector_hasher): Likewise.
13353 (write_hash_table): Likewise.
13354 (psym_index_map): Likewise.
13355 (struct addrmap_index_data): Likewise.
13356 (add_address_entry): Likewise.
13357 (add_address_entry_worker): Likewise.
13358 (write_address_map): Likewise.
13359 (symbol_kind): Likewise.
13360 (write_psymbols): Likewise.
13361 (struct signatured_type_index_data): Likewise.
13362 (write_one_signatured_type): Likewise.
13363 (recursively_count_psymbols): Likewise.
13364 (recursively_write_psymbols): Likewise.
13365 (class debug_names): Likewise.
13366 (check_dwarf64_offsets): Likewise.
13367 (psyms_seen_size): Likewise.
13368 (write_gdbindex): Likewise.
13369 (write_debug_names): Likewise.
13370 (assert_file_size): Likewise.
13371 (write_psymtabs_to_index): Likewise.
13372 (save_gdb_index_command): Likewise.
13373 (_initialize_dwarf2_read): Don't register the "save gdb-index"
13374 command.
13375 * dwarf2read.h: New file.
13376
59cc4834
JB
133772018-03-27 Joel Brobecker <brobecker@adacore.com>
13378
13379 PR gdb/22670
13380 * dwarf2read.c (dwarf2_physname): Do not return the demangled
13381 symbol name if the CU's language stores symbol names in linkage
13382 format.
13383 * language.h (struct language_defn)
13384 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
13385 all instances of this struct.
13386
67501539
TT
133872018-03-26 Tom Tromey <tom@tromey.com>
13388
13389 * stack.c (backtrace_command_1): Remove verbose code.
13390
76c939ac
TT
133912018-03-26 Tom Tromey <tom@tromey.com>
13392
13393 * python/py-framefilter.c (py_print_type): Don't catch
13394 exceptions. Return void.
13395 (py_print_value): Likewise.
13396 (py_print_single_arg): Likewise.
13397 (enumerate_args): Don't catch exceptions.
13398 (py_print_args): Likewise.
13399 (py_print_frame): Likewise.
13400 (gdbpy_apply_frame_filter): Catch exceptions here.
13401
9507b29c
TT
134022018-03-26 Tom Tromey <tom@tromey.com>
13403
13404 * stack.c (_initialize_stack): Remove trailing newlines from help
13405 text. Add "Usage" line to "backtrace" help.
13406
eb68e487
TT
134072018-03-26 Tom Tromey <tom@tromey.com>
13408
13409 PR python/16486:
13410 * python/py-framefilter.c (py_print_args): Call wrap_hint.
13411
1f111921
TT
134122018-03-26 Tom Tromey <tom@tromey.com>
13413
13414 * python/py-framefilter.c (py_print_single_arg): Return
13415 EXT_LANG_BT_ERROR from catch.
13416
fb7eb8b5
TT
134172018-03-26 Tom Tromey <tom@tromey.com>
13418
13419 PR backtrace/15584:
13420 * stack.c (backtrace_command_1): Move some code into no-filters
13421 "if".
13422
4ca59a9f
TT
134232018-03-26 Tom Tromey <tom@tromey.com>
13424
13425 * python/py-framefilter.c (throw_quit_or_print_exception): New
13426 function.
13427 (gdbpy_apply_frame_filter): Use it.
13428
92256134
TT
134292018-03-26 Tom Tromey <tom@tromey.com>
13430
13431 PR cli/17716:
13432 * python/py-framefilter.c (py_print_type, py_print_value)
13433 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
13434 RETURN_MASK_ERROR.
13435
7a630bc2
TT
134362018-03-26 Tom Tromey <tom@tromey.com>
13437
13438 * python/py-framefilter.c (enumerate_args): Use
13439 gdb::unique_xmalloc_ptr.
13440
63283d4a
TT
134412018-03-26 Tom Tromey <tom@tromey.com>
13442
13443 * python/py-framefilter.c (py_print_frame): Return
13444 EXT_LANG_BT_OK.
13445 (gdbpy_apply_frame_filter): Update comment.
13446 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
13447 Remove.
13448 <EXT_LANG_BT_NO_FILTERS>: Change value.
13449
978d6c75
TT
134502018-03-26 Tom Tromey <tom@tromey.com>
13451
13452 PR backtrace/15582:
13453 * stack.c (backtrace_command): Parse "hide" argument.
13454 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
13455 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
13456 constant.
13457
1cf7e640
TT
134582018-03-26 Tom Tromey <tom@tromey.com>
13459
13460 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
13461 add "flags".
13462 (backtrace_command): Remove "fulltrace", add "flags".
13463
ea3b0687
TT
134642018-03-26 Tom Tromey <tom@tromey.com>
13465
13466 * stack.c (backtrace_command): Rewrite command line parsing.
13467
9f034d75
SM
134682018-03-26 Simon Marchi <simon.marchi@ericsson.com>
13469
13470 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
13471
ce1459e5
SM
134722018-03-26 Simon Marchi <simon.marchi@ericsson.com>
13473
13474 * filename-seen-cache.h: Add include guard.
13475
4f7ae6f5
KS
134762018-03-26 Keith Seitz <keiths@redhat.com>
13477
13478 * symfile.c (place_section): Remove "struct" from section_addr_info
13479 in comment.
13480 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
13481 "struct" keyword from section_addr_info.
13482
5cd3e386
AH
134832018-03-26 Alan Hayward <alan.hayward@arm.com>
13484
13485 * regformats/regdef.h (reg): Add constructors.
13486
3e5ef9a4
PA
134872018-03-25 Pedro Alves <palves@redhat.com>
13488
13489 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
13490 if then/else bodies in var_func_name extraction.
13491
c88d2fcc 134922018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
13493
13494 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
13495 lookup_minimal_symbol() to find symbol entry.
13496 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
13497
b7fee5a3
KS
134982018-03-23 Keith Seitz <keiths@redhat.com>
13499
13500 PR c++/22968
13501 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
13502 nested type definitions for C++, too.
13503
2cc9b304
TT
135042018-03-23 Tom Tromey <tom@tromey.com>
13505
13506 * machoread.c (struct oso_el): Add a constructor. Don't define as
13507 a typedef.
13508 (macho_register_oso): Remove.
13509 (macho_symtab_read): Take a std::vector.
13510 (oso_el_compare_name): Now a std::sort comparator.
13511 (macho_symfile_read_all_oso): Take a std::vector.
13512 (macho_symfile_read): Use std::vector. Remove cleanups.
13513
a2b2bc12
TT
135142018-03-22 Tom Tromey <tom@tromey.com>
13515
13516 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
13517 (record_full_goto_bookmark): Use std::string.
13518
7a8f494c
PFC
135192018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13520
13521 PR tdep/18295
13522 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
13523 a single mask.
13524
dd6d677f
PFC
135252018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13526
13527 * rs6000-tdep.c (store_insn_p): New function.
13528 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
13529 and cr_reg to their unshifted values. Use store_insn_p to
13530 match LR saves using either R1 or fdata->alloca_reg. Use
13531 store_insn_p to match CR saves. Set alloca_reg_offset
13532 when alloca_reg and framep are set. Remove lr_reg shift
13533 when assigning to fdata->lr_register.
13534
26d6cec4
AA
135352018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
13536
13537 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
13538 command line args instead of emitting a warning.
13539
5d9310c4
SM
135402018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13541
13542 * tracepoint.h (struct static_tracepoint_marker): Initialize
13543 fields, define default constructor, move constructor and move
13544 assignment, disable the rest.
13545 <str_id, extra>: Make std::string.
13546 (release_static_tracepoint_marker): Remove.
13547 (free_current_marker): Remove.
13548 * tracepoint.c (free_current_marker): Remove.
13549 (parse_static_tracepoint_marker_definition): Adjust to
13550 std::string, use new hex2str overload.
13551 (release_static_tracepoint_marker): Remove.
13552 (print_one_static_tracepoint_marker): Get marker by reference
13553 and adjust to std::string.
13554 (info_static_tracepoint_markers_command): Adjust to std::vector
13555 changes
13556 * target.h (static_tracepoint_marker_p): Remove typedef.
13557 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
13558 (struct target_ops) <to_static_tracepoint_marker_at>: Return
13559 bool.
13560 <to_static_tracepoint_markers_by_strid>: Return std::vector.
13561 * target-debug.h
13562 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
13563 (target_debug_print_std_vector_static_tracepoint_marker): New.
13564 (target_debug_print_struct_static_tracepoint_marker_p): Rename
13565 to...
13566 (target_debug_print_static_tracepoint_marker_p): ... this.
13567 * target-delegates.c: Re-generate.
13568 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
13569 Make std::string.
13570 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
13571 (decode_static_tracepoint_spec): Adjust to std::vector.
13572 (tracepoint_print_one_detail): Adjust to std::string.
13573 (strace_marker_decode_location): Adjust to std::string.
13574 (update_static_tracepoint): Adjust to std::string, remove call
13575 to release_static_tracepoint_marker.
13576 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
13577 Adjust to std::vector.
13578 * remote.c (remote_static_tracepoint_marker_at): Return bool.
13579 (remote_static_tracepoint_markers_by_strid): Adjust to
13580 std::vector.
13581 * common/rsp-low.h (hex2str): New overload with explicit count
13582 of bytes.
13583 * common/rsp-low.c (hex2str): New overload with explicit count
13584 of bytes.
13585 * unittests/rsp-low-selftests.c (test_hex2str): New function.
13586 (_initialize_rsp_low_selftests): Add test_hex2str test.
13587 * unittests/tracepoint-selftests.c
13588 (test_parse_static_tracepoint_marker_definition): Adjust to
13589 std::string.
13590
62c222b6
SM
135912018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13592
13593 * tracepoint.c (parse_static_tracepoint_marker_definition):
13594 Consider case where the definition is followed by more
13595 definitions.
13596 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13597 tracepoint-selftests.c.
13598 * unittests/tracepoint-selftests.c: New.
13599
7eb2418f
PFC
136002018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13601
13602 * MAINTAINERS (Write After Approval): Add Pedro Franco de
13603 Carvalho.
13604
7cbe16e9
SR
136052018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13606
3d6b3b82 13607 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 13608
4ee89e90
SR
136092018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13610
3d6b3b82 13611 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 13612
92630041
TT
136132018-03-19 Tom Tromey <tom@tromey.com>
13614
13615 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
13616 "IDENT" production.
13617
76727919
TT
136182018-03-19 Pedro Alves <palves@redhat.com>
13619 Tom Tromey <tom@tromey.com>
13620
13621 * unittests/observable-selftests.c: New file.
13622 * common/observable.h: New file.
13623 * observable.h: New file.
13624 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
13625 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
13626 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
13627 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
13628 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
13629 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
13630 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
13631 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
13632 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
13633 python/py-breakpoint.c, python/py-finishbreakpoint.c,
13634 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
13635 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
13636 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
13637 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
13638 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
13639 tui/tui-interp.c, valops.c: Update all users.
13640 * tui/tui-hooks.c (tui_bp_created_observer)
13641 (tui_bp_deleted_observer, tui_bp_modified_observer)
13642 (tui_inferior_exit_observer, tui_before_prompt_observer)
13643 (tui_normal_stop_observer, tui_register_changed_observer):
13644 Remove.
13645 (tui_observers_token): New global.
13646 (attach_or_detach, tui_attach_detach_observers): New functions.
13647 (tui_install_hooks, tui_remove_hooks): Use
13648 tui_attach_detach_observers.
13649 * record-btrace.c (record_btrace_thread_observer): Remove.
13650 (record_btrace_thread_observer_token): New global.
13651 * observer.sh: Remove.
13652 * observer.c: Rename to observable.c.
13653 * observable.c (namespace gdb_observers): Define new objects.
13654 (observer_debug): Move into gdb_observers namespace.
13655 (struct observer, struct observer_list, xalloc_observer_list_node)
13656 (xfree_observer_list_node, generic_observer_attach)
13657 (generic_observer_detach, generic_observer_notify): Remove.
13658 (_initialize_observer): Update.
13659 Don't include observer.inc.
13660 * Makefile.in (generated_files): Remove observer.h, observer.inc.
13661 (clean mostlyclean): Likewise.
13662 (observer.h, observer.inc): Remove targets.
13663 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
13664 (COMMON_SFILES): Use observable.c, not observer.c.
13665 * .gitignore: Remove observer.h.
13666
1cb1f3da
TT
136672018-03-18 Tom Tromey <tom@tromey.com>
13668
13669 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
13670 gdb::def_vector.
13671 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
13672
a06ab151
TT
136732018-03-17 Tom Tromey <tom@tromey.com>
13674
13675 * auto-load.c (auto_load_objfile_script_1): Use std::string.
13676
770623f7
TT
136772018-03-17 Tom Tromey <tom@tromey.com>
13678
13679 * target.c (class scoped_target_fd): New.
13680 (target_fileio_close_cleanup): Remove.
13681 (target_fileio_read_alloc_1): Use scoped_target_fd.
13682
39be3c7e
SM
136832018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
13684
13685 * silent-rules.mk: New.
13686 * Makefile.in: Include silent-rules.mk
13687 (srcdir, VPATH, top_srcdir): Move up.
13688 (COMPILE): Add ECHO_CXX.
13689 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
13690 (init.c): Add ECHO_INIT_C.
13691 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
13692 (version.c): Add ECHO_GEN.
13693 (printcmd.o): Add ECHO_CXX.
13694 (target-float.o): Add ECHO_CXX.
13695 (ada-exp.o): Add ECHO_CXX.
13696 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
13697 (insight$(EXEEXT)): Add ECHO_CXXLD.
13698 * gnulib/configure.ac: Add AM_SILENT_RULES.
13699 * gnulib/aclocal.m4: Re-generate.
13700 * gnulib/configure: Re-generate.
13701 * gnulib/import/Makefile.in: Re-generate.
13702
37e136b1
TT
137032018-03-16 Tom Tromey <tom@tromey.com>
13704
13705 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
13706 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
13707 * utils.c (do_free_section_addr_info)
13708 (make_cleanup_free_section_addr_info): Remove.
13709 * symfile.h (struct other_sections): Add constructor.
13710 (struct section_addr_info): Remove.
13711 (section_addr_info): New typedef.
13712 (struct sym_fns) <sym_offsets>: Change type of parameter.
13713 (build_section_addr_info_from_objfile)
13714 (relative_addr_info_to_section_offsets, addr_info_make_relative)
13715 (default_symfile_offsets, symbol_file_add)
13716 (symbol_file_add_from_bfd)
13717 (build_section_addr_info_from_section_table): Update.
13718 (alloc_section_addr_info, free_section_addr_info): Don't declare.
13719 * symfile.c (alloc_section_addr_info): Remove.
13720 (build_section_addr_info_from_section_table): Change return type.
13721 Update.
13722 (build_section_addr_info_from_bfd)
13723 (build_section_addr_info_from_objfile): Likewise.
13724 (free_section_addr_info): Remove.
13725 (relative_addr_info_to_section_offsets): Change type of "addrs".
13726 (addrs_section_compar): Now a std::sort comparator.
13727 (addrs_section_sort): Change return type.
13728 (addr_info_make_relative): Change type of "addrs". Update.
13729 (default_symfile_offsets, syms_from_objfile_1)
13730 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
13731 (symbol_file_add_separate): Update.
13732 (symbol_file_add): Change type of "addrs". Update.
13733 (add_symbol_file_command): Update. Remove cleanups.
13734 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
13735 cleanups.
13736 * symfile-debug.c (debug_sym_offsets): Change type of "info".
13737 * solib.c (solib_read_symbols): Update.
13738 * objfiles.c (objfile_relocate): Update. Remove cleanups.
13739 * machoread.c (macho_symfile_offsets): Update.
13740 * jit.c (jit_bfd_try_read_symtab): Update.
13741
03afa6ef
SM
137422018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
13743
13744 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13745 unittests/utils-selftests.c.
13746 * unittests/utils-selftests.c: New file.
13747
3ae9ce5d
TT
137482018-03-14 Tom Tromey <tom@tromey.com>
13749
13750 PR cli/14977:
13751 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
13752 for NULL.
13753
b8c2339b
TT
137542018-03-14 Tom Tromey <tom@tromey.com>
13755
13756 PR cli/19918:
13757 * printcmd.c (printf_pointer): Allow "-" in format.
13758
80ae639d
TT
137592018-03-14 Tom Tromey <tom@tromey.com>
13760
13761 * printcmd.c (_initialize_printcmd): Add usage to printf.
13762
0d671d99
YQ
137632018-03-14 Yao Qi <qiyao@sourceware.org>
13764
13765 * MAINTAINERS: Update my email address.
13766
b577b6af
TT
137672018-03-13 Tom Tromey <tom@tromey.com>
13768
13769 * machoread.c (macho_check_dsym): Change filenamep to a
13770 std::string*.
13771 (macho_symfile_read): Update.
13772 * symfile.c (load_command): Use std::string.
13773
89a3b63e
AB
137742018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
13775
13776 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
13777 to error message string.
13778 (riscv_register_name): Use xsnprintf instead of sprintf.
13779 (riscv_insn::fetch_instruction): Use gdb_assert instead of
13780 internal_error.
13781 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
13782 error.
13783 (riscv_push_dummy_call): Likewise.
13784
984c7238
TT
137852018-03-12 Tom Tromey <tom@tromey.com>
13786
13787 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
13788 Use gdb::byte_vector.
13789 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
13790
933522d1
YQ
137912018-03-12 Yao Qi <yao.qi@linaro.org>
13792
13793 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
13794 parameter type to readable_regcache.
13795 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
13796 the declaration.
13797
be2daae6
TT
137982018-03-11 Tom Tromey <tom@tromey.com>
13799
13800 * dwarf2read.c (struct nextfield): Add initializers.
13801 (struct nextfnfield): Remove.
13802 (struct fnfieldlist): Add initializers. Remove "length" and
13803 "head", use std::vector.
13804 (struct decl_field_list): Remove.
13805 (struct field_info): Add initializers.
13806 <fields, baseclasses>: Now std::vector.
13807 <nbaseclasses, nfnfields, typedef_field_list_count,
13808 nested_types_list_count>: Remove.
13809 (dwarf2_add_field, dwarf2_add_type_defn)
13810 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
13811 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
13812 (process_structure_scope): Update.
13813
484cf504
TT
138142018-03-11 Tom Tromey <tom@tromey.com>
13815
13816 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
13817 for use by std::sort.
13818 (build_type_psymtabs_1): Use std::vector.
13819
9bd8e0b0
EZ
138202018-03-09 Eli Zaretskii <eliz@gnu.org>
13821
13822 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
13823 and LIBMPFR in the printed configuration.
13824
5dc1a704
TT
138252018-03-08 Tom Tromey <tom@tromey.com>
13826
13827 * source.c (get_filename_and_charpos): Use scoped_fd.
13828 * nto-procfs.c (procfs_open_1): Use scoped_fd.
13829 (procfs_pidlist): Likewise.
13830 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
13831 (iterate_over_mappings): Likewise.
13832
fdf07f3a
TT
138332018-03-08 Tom Tromey <tom@tromey.com>
13834
13835 * infcall.c (struct call_return_meta_info)
13836 <stack_temporaries_enabled>: Remove.
13837 (get_call_return_value, call_function_by_hand_dummy): Update.
13838 * thread.c (disable_thread_stack_temporaries): Remove.
13839 (enable_thread_stack_temporaries): Remove.
13840 (thread_stack_temporaries_enabled_p): Return bool.
13841 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
13842 (get_last_thread_stack_temporary): Update.
13843 * eval.c (evaluate_subexp): Update.
13844 * gdbthread.h (class enable_thread_stack_temporaries): Now a
13845 class, not a function.
13846 (value_ptr, value_vec): Remove typedefs.
13847 (class thread_info) <stack_temporaries_enabled>: Now bool.
13848 <stack_temporaries>: Now a std::vector.
13849 (thread_stack_temporaries_enabled_p)
13850 (value_in_thread_stack_temporaries): Return bool.
13851
567a3e54
SM
138522018-03-08 Simon Marchi <simon.marchi@ericsson.com>
13853
13854 * remote.c (putpkt_binary): Fix omitted bytes reporting.
13855 (getpkt_or_notif_sane_1): Likewise.
13856
00b40057
SM
138572018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13858
13859 * build-id.c (build_id_to_debug_bfd): Use std::string.
13860
a8dbfd58
SM
138612018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13862
13863 * build-id.c (find_separate_debug_file_by_buildid): Return
13864 std::string.
13865 * build-id.h (find_separate_debug_file_by_buildid): Return
13866 std::string.
13867 * coffread.c (coff_symfile_read): Adjust to std::string.
13868 * elfread.c (elf_symfile_read): Adjust to std::string.
13869 * symfile.c (separate_debug_file_exists): Change parameter to
13870 std::string.
13871 (find_separate_debug_file): Return std::string.
13872 (find_separate_debug_file_by_debuglink): Return std::string.
13873 * symfile.h (find_separate_debug_file_by_debuglink): Return
13874 std::string.
13875
e6a58aa8
SM
138762018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13877
13878 * common/xml-utils.c (xml_escape_text): Move code to...
13879 (xml_escape_text_append): ... this new function.
13880 * common/xml-utils.h (xml_escape_text_append): New declaration.
13881 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
13882 New function.
13883 (_initialize_xml_utils): register test_xml_escape_text_append as
13884 a selftest.
13885
4ef0bef6
AH
138862018-03-07 Alan Hayward <alan.hayward@arm.com>
13887
13888 * defs.h: Remove MAX_REGISTER_SIZE.
13889 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
13890 asserts.
13891 * python/py-unwind.c (pyuw_sniffer): Likewise.
13892
e0d3522b
TT
138932018-03-07 Tom Tromey <tom@tromey.com>
13894
13895 * linux-tdep.c (linux_info_proc): Update.
13896 * target.h (struct target_ops) <to_fileio_readlink>: Return
13897 optional<string>.
13898 (target_fileio_readlink): Return optional<string>.
13899 * remote.c (remote_hostio_readlink): Return optional<string>.
13900 * inf-child.c (inf_child_fileio_readlink): Return
13901 optional<string>.
13902 * target.c (target_fileio_readlink): Return optional<string>.
13903
ea005f31
AB
139042018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13905
13906 * regcache.c (cooked_read_test): Add riscv to the list of
13907 architectures that have a save_reggroup.
13908
e95a97d4
AA
139092018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
13910
13911 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
13912 value is not a dynamic class object.
13913
d8344f3d
TT
139142018-03-06 Tom Tromey <tom@tromey.com>
13915
13916 * rust-exp.y: Formatting fixes.
13917
9add17f2
AB
139182018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13919
13920 * riscv-tdep.c (riscv_register_name): Remove target description
13921 support.
13922 (riscv_gdbarch_init): Remove target description check.
13923
c9486dfe
AB
139242018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13925
13926 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
13927 comment.
13928 * riscv-tdep.h: Likewise.
13929
d74aff3d
AB
139302018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13931
13932 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
13933 (riscv_pseudo_register_write): Delete.
13934 (riscv_gdbarch_init): Remove all use of pseudo registers.
13935
7ea78b59
SM
139362018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13937
13938 * record-btrace.c (btrace_print_lines): Replace cleanup
13939 parameter with RAII equivalents.
13940 (btrace_insn_history): Replace cleanup with RAII equivalents.
13941 * ui-out.h (make_cleanup_ui_out_list_begin_end,
13942 make_cleanup_ui_out_tuple_begin_end): Remove.
13943 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
13944 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
13945 make_cleanup_ui_out_list_begin_end): Remove.
13946
53127008
SM
139472018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13948
13949 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
13950 parameter types to std::vector. Use bool.
13951 (record_btrace_wait): Replace VEC(tp_t) with
13952 std::vector<thread_info *>.
13953 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
13954
228f1508
SM
139552018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13956
13957 * record-btrace.c (record_btrace_disable_callback): Remove.
13958 (struct scoped_btrace_disable): New.
13959 (record_btrace_open): Use scoped_btrace_disable.
13960
b2970c23
AB
139612018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13962
13963 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
13964 reading values from registers.
13965
fb294655
AB
139662018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13967
13968 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
13969 where appropriate.
13970
cab5bb9d
AB
139712018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13972
13973 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
13974 change parameter type. Use GDB's print functions, and use
13975 core_addr_to_string where appropriate.
13976 (riscv_push_dummy_call): Use core_addr_to_string where
13977 appropriate, update call to riscv_print_arg_location, and reindent
13978 a few lines.
13979 (riscv_return_value): Update call to riscv_print_arg_location.
13980
dbbb1059
AB
139812018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13982 Tim Newsome <tim@sifive.com>
13983 Albert Ou <a0u@eecs.berkeley.edu>
13984 Darius Rad <darius@bluespec.com>
13985
13986 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
13987 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
13988 (ALLDEPFILES): Add riscv-tdep.c
13989 * configure.tgt: Add riscv support.
13990 * riscv-tdep.c: New file.
13991 * riscv-tdep.h: New file.
13992 * NEWS: Mention new target.
13993 * MAINTAINERS: Add entry for riscv.
13994
5dc43913
AB
139952018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13996
13997 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
13998 fields within aggregates.
13999
3dea1ef7
SM
140002018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
14001
14002 * record-btrace.c (btrace_print_lines): Change type of flags to
14003 gdb_disassembly_flags.
14004
7efba073
JB
140052018-03-04 John Baldwin <jhb@FreeBSD.org>
14006
14007 * fbsd-nat.c: Include "inf-ptrace.h".
14008 (USE_SIGTRAP_SIGINFO): Conditionally define.
14009 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
14010 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
14011 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
14012 function.
14013 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
14014 Likewise.
14015 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
14016 Likewise.
14017 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
14018 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
14019 "supports_stopped_by_hw_breakpoint" target methods.
14020
386a8676
JB
140212018-03-04 John Baldwin <jhb@FreeBSD.org>
14022
14023 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
14024 * fbsd-nat.c (debug_fbsd_nat): New variable.
14025 (show_fbsd_nat_debug): New function.
14026 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
14027 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
14028
12279366
JB
140292018-03-04 John Baldwin <jhb@FreeBSD.org>
14030
14031 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
14032 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
14033 prototype.
14034 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
14035 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
14036 method.
14037
54693cf5
SM
140382018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14039
14040 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
14041 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
14042
ccb2231c
SM
140432018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14044
14045 * charset.c (struct charset_vector): New.
14046 (charsets): Change type to charset_vector.
14047 (find_charset_names): Adjust.
14048 (add_one): Adjust.
14049 (_initialize_charset): Adjust.
14050
6fb16ce6
SM
140512018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14052
14053 * progspace.h (struct program_space) <deleted_solibs>: Change
14054 type to std::vector<std::string>.
14055 * progspace.c (clear_program_space_solib_cache): Adjust.
14056 * breakpoint.c (print_solib_event): Adjust.
14057 (check_status_catch_solib): Adjust.
14058 * solib.c (update_solib_list): Adjust.
14059 * ui-out.h (class ui_out) <field_string>: New overload.
14060 * ui-out.c (ui_out::field_string): New overload.
14061
564b1e3f
SM
140622018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14063
14064 * progspace.h (struct program_space): Add constructor and
14065 destructor, initialize fields.
14066 (add_program_space): Remove.
14067 * progspace.c (add_program_space): Rename to...
14068 (program_space::program_space): ... this.
14069 (release_program_space): Rename to...
14070 (program_space::~program_space): ... this.
14071 (delete_program_space): Use delete to delete program_space.
14072 (initialize_progspace): Use new to allocate program_space.
14073 * inferior.c (add_inferior_with_spaces): Likewise.
14074 (clone_inferior_command): Likewise.
14075 * infrun.c (follow_fork_inferior): Likewise.
14076 (handle_vfork_child_exec_or_exit): Likewise.
14077
e80aaf61
SM
140782018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14079
14080 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
14081 (delim_string_to_char_ptr_vec): Return std::vector of
14082 gdb::unique_xmalloc_ptr.
14083 (dirnames_to_char_ptr_vec_append): Take std::vector of
14084 gdb::unique_xmalloc_ptr.
14085 (dirnames_to_char_ptr_vec): Return std::vector of
14086 gdb::unique_xmalloc_ptr.
14087 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
14088 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
14089 (delim_string_to_char_ptr_vec): Return an std::vector of
14090 gdb::unique_xmalloc_ptr, adjust the code.
14091 (dirnames_to_char_ptr_vec_append): Take an std::vector of
14092 gdb::unique_xmalloc_ptr, adjust the code.
14093 (dirnames_to_char_ptr_vec): Return an std::vector of
14094 gdb::unique_xmalloc_ptr, adjust the code.
14095 * auto-load.c (auto_load_safe_path_vec): Change type to
14096 std::vector of gdb::unique_xmalloc_ptr.
14097 (auto_load_expand_dir_vars): Return an std::vector of
14098 gdb::unique_xmalloc_ptr, adjust the code.
14099 (auto_load_safe_path_vec_update): Adjust.
14100 (filename_is_in_auto_load_safe_path_vec): Adjust.
14101 (auto_load_objfile_script_1): Adjust.
14102 * build-id.c (build_id_to_debug_bfd): Adjust.
14103 * linux-thread-db.c (thread_db_load_search): Adjust.
14104 * source.c (add_path): Adjust.
14105 (openp): Adjust.
14106 * symfile.c (find_separate_debug_file): Adjust.
14107 * utils.c (do_free_char_ptr_vec): Remove.
14108 (make_cleanup_free_char_ptr_vec): Remove.
14109
ab818ade
SDJ
141102018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
14111
14112 PR gdb/22907
14113 * common/pathstuff.c: Conditionally include "<windows.h>".
14114
e1e6f073
GS
141152018-03-01 Georg Sauthoff <mail@georg.so>
14116
14117 PR gdb/22888
14118 * gcore.in: Quote variables and switch interpreter to bash.
14119
c7b15a66
TT
141202018-03-01 Tom Tromey <tom@tromey.com>
14121
14122 * dwarf2read.c (alloc_discriminant_info): Fix default_index
14123 assertion. Add assertion for discriminant_index.
14124 (quirk_rust_enum): Use correct base type name in univariant case.
14125
0cb7c7b0
SM
141262018-03-01 Simon Marchi <simon.marchi@ericsson.com>
14127
14128 * record.c (get_call_history_modifiers): Return a
14129 record_print_flags.
14130 (cmd_record_call_history): Adjust.
14131 * record-btrace.c (record_btrace_call_history): Adjust.
14132 (record_btrace_call_history_range): Adjust.
14133 (record_btrace_call_history_from): Adjust.
14134 * target-debug.h (target_debug_print_record_print_flags): New.
14135 * target-delegates.c: Re-generate.
14136 * target.c (target_call_history): Change flags type.
14137 (target_call_history_from): Likewise.
14138 (target_call_history_range): Likewise.
14139 * target.h (struct target_ops) <target_call_history>: Likewise.
14140 (target_call_history_from): Likewise.
14141 (target_call_history_range): Likewise.
14142
25e3c82c
SDJ
141432018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
14144 Simon Marchi <simon.marchi@polymtl.ca>
14145
14146 * common/common-utils.c: Include "sys/stat.h".
14147 (is_regular_file): Move here from "source.c"; change return
14148 type to "bool".
14149 * common/common-utils.h (is_regular_file): New prototype.
14150 * common/pathstuff.c (contains_dir_separator): New function.
14151 * common/pathstuff.h (contains_dir_separator): New prototype.
14152 * source.c: Don't include "sys/stat.h".
14153 (is_regular_file): Move to "common/common-utils.c".
14154
b4987c95
SDJ
141552018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
14156
14157 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
14158 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
14159 * auto-load.c: Include "common/pathstuff.h".
14160 * common/common-def.h (current_directory): Move here.
14161 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
14162 function.
14163 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
14164 prototype.
14165 * common/pathstuff.c: New file.
14166 * common/pathstuff.h: New file.
14167 * compile/compile.c: Include "common/pathstuff.h".
14168 * defs.h (current_directory): Move to "common/common-defs.h".
14169 * dwarf2read.c: Include "common/pathstuff.h".
14170 * exec.c: Likewise.
14171 * guile/scm-safe-call.c: Likewise.
14172 * linux-thread-db.c: Likewise.
14173 * main.c: Likewise.
14174 * nto-tdep.c: Likewise.
14175 * objfiles.c: Likewise.
14176 * source.c: Likewise.
14177 * symtab.c: Likewise.
14178 * utils.c: Include "common/pathstuff.h".
14179 (gdb_realpath): Move to "common/pathstuff.c".
14180 (gdb_realpath_keepfile): Likewise.
14181 (gdb_abspath): Likewise.
14182 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
14183 (gdb_realpath_keepfile): Likewise.
14184 (gdb_abspath): Likewise.
14185
f169cfdc
JB
141862018-02-28 John Baldwin <jhb@FreeBSD.org>
14187
14188 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
14189 wildcard process pid for super_resume for kernels with a
14190 specific bug.
14191
e05cac70
PM
141922018-02-27 Phil Muldoon <pmuldoon@redhat.com>
14193
14194 * compile/compile.c (get_args): Add additional comments
14195 explaining function.
14196
55089490
TT
141972018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
14198 Tom Tromey <tom@tromey.com>
14199
14200 * target.h (memory_write_request_s): Remove typedef. Don't define
14201 VEC.
14202 (target_write_memory_blocks): Change argument to std::vector.
14203 (struct memory_write_request): Add constructor.
14204 * target-memory.c (compare_block_starting_address): Return bool.
14205 Change argument types.
14206 (claim_memory): Change arguments to use std::vector.
14207 (split_regular_and_flash_blocks, blocks_to_erase)
14208 (compute_garbled_blocks): Likewise.
14209 (cleanup_request_data, cleanup_write_requests_vector): Remove.
14210 (target_write_memory_blocks): Change argument to std::vector.
14211 * symfile.c (struct load_section_data): Add constructor and
14212 destructor. Use std::vector for "requests".
14213 (struct load_progress_data): Add initializers.
14214 (load_section_callback): Update. Use "new".
14215 (clear_memory_write_data): Remove.
14216 (generic_load): Update.
14217
0c305b61
AH
142182018-02-27 Alan Hayward <alan.hayward@arm.com>
14219
14220 * arch/aarch64.h: Use common/tdesc.h.
14221
c5196c92
MR
142222018-02-26 Maciej W. Rozycki <macro@mips.com>
14223
14224 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
14225 architecture with a 64-bit ABI.
14226
37c33887
MR
142272018-02-26 Maciej W. Rozycki <macro@mips.com>
14228
14229 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
14230 ahead of target description loading.
14231
d4dd3282
TT
142322018-02-26 Tom Tromey <tom@tromey.com>
14233
14234 * stack.c (backtrace_command_1): Update.
14235 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
14236 of "flags".
14237 * python/py-framefilter.c (py_print_frame)
14238 (gdbpy_apply_frame_filter): Change type of "flags".
14239 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
14240 of "flags".
14241 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
14242 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
14243 * extension.h (enum frame_filter_flag): Rename from
14244 frame_filter_flags.
14245 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
14246 (apply_ext_lang_frame_filter): Change type of "flags".
14247 * extension.c (apply_ext_lang_frame_filter): Change type of
14248 "flags".
14249 * extension-priv.h (struct extension_language_ops)
14250 <apply_frame_filter>: Change type of "flags".
14251
6893c19a
TT
142522018-02-26 Tom Tromey <tom@tromey.com>
14253
14254 PR python/16497:
14255 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
14256 off-by-one in py_end computation.
14257 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
14258 PRINT_MORE_FRAMES.
14259 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
14260 constant.
14261
2ddeaf8a
TT
142622018-02-26 Tom Tromey <tom@tromey.com>
14263
14264 * dwarf2read.c (struct variant_field): New.
14265 (struct nextfield) <variant>: New field.
14266 (dwarf2_add_field): Handle DW_TAG_variant_part.
14267 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
14268 discriminated union.
14269 (read_structure_type): Handle DW_TAG_variant_part.
14270 (handle_struct_member_die): New function, extracted from
14271 process_structure_scope. Handle DW_TAG_variant.
14272 (process_structure_scope): Handle discriminated unions. Call
14273 handle_struct_member_die.
14274
c9317f21
TT
142752018-02-26 Tom Tromey <tom@tromey.com>
14276
14277 * rust-lang.h (rust_last_path_segment): Declare.
14278 * rust-lang.c (rust_last_path_segment): Now public. Change
14279 contract.
14280 (struct disr_info): Remove.
14281 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
14282 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
14283 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
14284 (rust_enum_p, rust_enum_variant): New function.
14285 (rust_underscore_fields): Remove "offset" parameter.
14286 (rust_print_enum): New function.
14287 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
14288 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
14289 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
14290 enums.
14291 (rust_internal_print_type): New function, from rust_print_type.
14292 Remove enum code.
14293 (rust_print_type): Call rust_internal_print_type.
14294 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
14295 Update enum handling.
14296 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
14297 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
14298 (rust_union_quirks): New functions.
14299 (process_full_comp_unit, process_full_type_unit): Call
14300 rust_union_quirks.
14301 (process_structure_scope): Update rust_unions if necessary.
14302
7c22600a
TT
143032018-02-26 Tom Tromey <tom@tromey.com>
14304
14305 * value.h (value_union_variant): Declare.
14306 * valops.c (value_union_variant): New function.
14307 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
14308 (struct discriminant_info): New.
14309 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
14310 enumerator.
14311 (struct main_type) <flag_discriminated_union>: New field.
14312
15ce8941
TT
143132018-02-26 Tom Tromey <tom@tromey.com>
14314
14315 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14316 unittests/unpack-selftests.c.
14317 * unittests/unpack-selftests.c: New file.
14318 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
14319
48fbe735
YQ
143202018-02-26 Yao Qi <yao.qi@linaro.org>
14321
14322 * dwarf2read.c (struct partial_die_info) <read>: New method.
14323 (read_partial_die): Remove the declaration.
14324 (load_partial_dies): Update.
14325 (partial_die_info::partial_die_info):
14326 (read_partial_die): Change it to partial_die_info::read.
14327
52356b79
YQ
143282018-02-26 Yao Qi <yao.qi@linaro.org>
14329
14330 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
14331 (fixup_partial_die): Remove declaration.
14332 (scan_partial_symbols): Update.
14333 (partial_die_parent_scope): Likewise.
14334 (partial_die_full_name): Likewise.
14335 (fixup_partial_die): Change it to partial_die_info::fixup.
14336
35cc7ed7
YQ
143372018-02-26 Yao Qi <yao.qi@linaro.org>
14338
14339 * dwarf2read.c (read_partial_die): Update the declaration.
14340 (load_partial_dies): Caller update.
14341 (read_partial_die): Remove one argument abbrev_len.
14342
6f06d47b
YQ
143432018-02-26 Yao Qi <yao.qi@linaro.org>
14344
14345 * dwarf2read.c (struct partial_die_info): Add ctor, delete
14346 assignment operator.
14347 (load_partial_dies): Use ctor and copy ctor.
14348 (read_partial_die): Update.
14349 (dwarf2_cu::find_partial_die): Use ctor.
14350
d590ff25
YQ
143512018-02-26 Yao Qi <yao.qi@linaro.org>
14352
14353 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
14354 (find_partial_die_in_comp_unit): Change it to
14355 dwarf2_cu::find_partial_die.
14356 (find_partial_die): Update.
14357
fd0a254f
YQ
143582018-02-26 Yao Qi <yao.qi@linaro.org>
14359
14360 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
14361 is NULL.
14362
cd9983dd
YQ
143632018-02-26 Yao Qi <yao.qi@linaro.org>
14364
14365 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
14366
f46cd62a
AH
143672018-02-26 Alan Hayward <alan.hayward@arm.com>
14368
14369 * arch/amd64.h: Use common/tdesc.h.
14370 * arch/i386.c: Likewise.
14371 * arch/i386.h: Likewise.
14372 * arch/tic6x.c: Likewise.
14373 * arch/tdesc.h: Move file from here...
14374 * common/tdesc.h: ...to here.
14375 * features/aarch64-core.c: Regenerate.
14376 * features/aarch64-fpu.c: Regenerate.
14377 * features/i386/32bit-avx.c: Regenerate.
14378 * features/i386/32bit-avx512.c: Regenerate.
14379 * features/i386/32bit-core.c: Regenerate.
14380 * features/i386/32bit-linux.c: Regenerate.
14381 * features/i386/32bit-mpx.c: Regenerate.
14382 * features/i386/32bit-pkeys.c: Regenerate.
14383 * features/i386/32bit-sse.c: Regenerate.
14384 * features/i386/64bit-avx.c: Regenerate.
14385 * features/i386/64bit-avx512.c: Regenerate.
14386 * features/i386/64bit-core.c: Regenerate.
14387 * features/i386/64bit-linux.c: Regenerate.
14388 * features/i386/64bit-mpx.c: Regenerate.
14389 * features/i386/64bit-pkeys.c: Regenerate.
14390 * features/i386/64bit-segments.c: Regenerate.
14391 * features/i386/64bit-sse.c: Regenerate.
14392 * features/i386/x32-core.c: Regenerate.
14393 * features/tic6x-c6xp.c: Regenerate.
14394 * features/tic6x-core.c: Regenerate.
14395 * features/tic6x-gp.c: Regenerate.
14396 * target-descriptions.c: Use common/tdesc.h.
14397 * target-descriptions.h: Likewise.
14398
9b292f68
TT
143992018-02-24 Tom Tromey <tom@tromey.com>
14400
14401 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
14402 (try_thread_db_load_from_dir, thread_db_load_search): Use
14403 std::string.
14404 (info_auto_load_libthread_db_compare): Return bool. Change
14405 argument types.
14406 (info_auto_load_libthread_db): Use std::vector, std::string.
14407 Remove cleanups.
14408
281d762b
TT
144092018-02-24 Tom Tromey <tom@tromey.com>
14410
14411 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
14412 std::string.
14413 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
14414 std::string*.
14415 * gdbarch.c: Rebuild.
14416 * gdbarch.h: Rebuild.
14417 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
14418 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
14419 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
14420 std::string*.
14421
9d8780f0
SM
144222018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
14423
14424 * gdbtypes.h (sect_offset): Change type to uint64_t.
14425 (sect_offset_str): New function.
14426 * dwarf2read.c (create_addrmap_from_aranges): Use
14427 sect_offset_str.
14428 (error_check_comp_unit_head): Likewise.
14429 (create_debug_type_hash_table): Likewise.
14430 (read_cutu_die_from_dwo): Likewise.
14431 (init_cutu_and_read_dies): Likewise.
14432 (init_cutu_and_read_dies_no_follow): Likewise.
14433 (process_psymtab_comp_unit_reader): Likewise.
14434 (partial_die_parent_scope): Likewise.
14435 (peek_die_abbrev): Likewise.
14436 (process_queue): Likewise.
14437 (dwarf2_physname): Likewise.
14438 (read_namespace_alias): Likewise.
14439 (read_import_statement): Likewise.
14440 (create_dwo_cu_reader): Likewise.
14441 (create_cus_hash_table): Likewise.
14442 (lookup_dwo_cutu): Likewise.
14443 (inherit_abstract_dies): Likewise.
14444 (read_func_scope): Likewise.
14445 (read_call_site_scope): Likewise.
14446 (dwarf2_add_member_fn): Likewise.
14447 (read_common_block): Likewise.
14448 (read_module_type): Likewise.
14449 (read_typedef): Likewise.
14450 (read_subrange_type): Likewise.
14451 (load_partial_dies): Likewise.
14452 (read_partial_die): Likewise.
14453 (find_partial_die): Likewise.
14454 (read_str_index): Likewise.
14455 (dwarf2_string_attr): Likewise.
14456 (build_error_marker_type): Likewise.
14457 (lookup_die_type): Likewise.
14458 (dump_die_shallow): Likewise.
14459 (follow_die_ref): Likewise.
14460 (dwarf2_fetch_die_loc_sect_off): Likewise.
14461 (dwarf2_fetch_constant_bytes): Likewise.
14462 (follow_die_sig): Likewise.
14463 (get_signatured_type): Likewise.
14464 (get_DW_AT_signature_type): Likewise.
14465 (dwarf2_find_containing_comp_unit): Likewise.
14466 (set_die_type): Likewise.
14467
8ec57239
JB
144682018-02-21 John Baldwin <jhb@FreeBSD.org>
14469
14470 * arch/aarch64.c: Include "common-defs.h".
14471 * arch/amd64.c: Likewise.
14472 * arch/i386.c: Likewise.
14473
3eac2b65
TT
144742018-02-21 Tom Tromey <tom@tromey.com>
14475
14476 * value.h: (extract_field_op): Update.
14477 * eval.c (extract_field_op): Return a const char *.
14478 * expression.h (parse_expression_for_completion): Update.
14479 * completer.c (complete_expression): Update.
14480 (add_struct_fields): Make fieldname const.
14481 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
14482 (mark_completion_tag, parse_exp_in_context_1): Update.
14483 (parse_expression_for_completion): Change "name" to
14484 unique_xmalloc_ptr*.
14485
6ccb583f
TT
144862018-02-21 Tom Tromey <tom@tromey.com>
14487
14488 * infcall.c (call_function_by_hand_dummy): Use std::vector.
14489
c113ed0c
YQ
144902018-02-21 Yao Qi <yao.qi@linaro.org>
14491
14492 * avr-tdep.c (avr_read_pc): Change parameter type to
14493 readable_regcache.
14494 * gdbarch.sh (read_pc): Likewise.
14495 * gdbarch.c: Re-generated.
14496 * gdbarch.h: Re-generated.
14497 * hppa-tdep.c (hppa_read_pc): Change parameter type to
14498 readable_regcache.
14499 * ia64-tdep.c (ia64_read_pc): Likewise.
14500 * mips-tdep.c (mips_read_pc): Likewise.
14501 * spu-tdep.c (spu_read_pc): Likewise.
14502
4c74fe6b
YQ
145032018-02-21 Yao Qi <yao.qi@linaro.org>
14504
14505 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
14506 * regcache-dump.c: New file.
14507 * regcache.c: Move register_dump to regcache-dump.c.
14508 (maintenance_print_registers): Likewise.
14509 (maintenance_print_raw_registers): Likewise.
14510 (maintenance_print_cooked_registers): Likewise.
14511 (maintenance_print_register_groups): Likewise.
14512 (maintenance_print_remote_registers): Likewise.
14513 (_initialize_regcache): Likewise.
14514 * regcache.h (register_dump): Moved from regcache.c.
14515
796bb026
YQ
145162018-02-21 Yao Qi <yao.qi@linaro.org>
14517
14518 * regcache.c (regcache::regcache): Update.
14519 (regcache::invalidate): Move it to detached_regcache::invalidate.
14520 (get_thread_arch_aspace_regcache): Update.
14521 (regcache::raw_update): Update.
14522 (regcache::cooked_read): Remove some code.
14523 (regcache::cooked_read_value): Likewise.
14524 (regcache::raw_write): Remove assert on m_readonly_p.
14525 (regcache::raw_supply_integer): Move it to
14526 detached_regcache::raw_supply_integer.
14527 (regcache::raw_supply_zeroed): Likewise.
14528 * regcache.h (detached_regcache) <raw_supply_integer>: New
14529 declaration.
14530 <raw_supply_zeroed, invalidate>: Likewise.
14531 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
14532 <invalidate>: Likewise.
14533 <m_readonly_p>: Removed.
14534
215c69dc
YQ
145352018-02-21 Yao Qi <yao.qi@linaro.org>
14536
14537 * infcmd.c (get_return_value): Let stop_regs point to
14538 get_current_regcache.
14539 * regcache.c (regcache::regcache): Remove.
14540 (register_dump_reg_buffer): New class.
14541 (regcache_print): Adjust.
14542 * regcache.h (regcache): Remove constructors.
14543
f3384e66
YQ
145442018-02-21 Yao Qi <yao.qi@linaro.org>
14545
14546 * regcache.c (class register_dump): New class.
14547 (register_dump_regcache, register_dump_none): New class.
14548 (register_dump_remote, register_dump_groups): New class.
14549 (regcache_print): Update.
14550 * regcache.h (regcache_dump_what): Move it to regcache.c.
14551 (regcache) <dump>: Remove.
14552
c8ec2f33
YQ
145532018-02-21 Yao Qi <yao.qi@linaro.org>
14554
14555 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
14556 reg_buffer_rw *.
14557 (jit_unwind_reg_set_impl): Call raw_supply.
14558 (jit_frame_sniffer): Use reg_buffer_rw.
14559 * record-full.c (record_full_core_regbuf): Change its type.
14560 (record_full_core_open_1): Use reg_buffer_rw.
14561 (record_full_close): Likewise.
14562 (record_full_core_fetch_registers): Use regcache->raw_supply.
14563 (record_full_core_store_registers): Likewise.
14564 * regcache.c (regcache::get_register_status): Move it to
14565 reg_buffer.
14566 (regcache_raw_set_cached_value): Remove.
14567 (regcache::raw_set_cached_value): Remove.
14568 (regcache::raw_write): Call raw_supply.
14569 (regcache::raw_supply): Move it to reg_buffer_rw.
14570 * regcache.h (regcache_raw_set_cached_value): Remove.
14571 (reg_buffer_rw): New class.
14572
daf6667d
YQ
145732018-02-21 Yao Qi <yao.qi@linaro.org>
14574
14575 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
14576 readonly_detached_regcache.
14577 (dummy_frame_prev_register): Use regcache->cooked_read.
14578 * frame.c (frame_save_as_regcache): Change return type.
14579 (frame_pop): Update.
14580 * frame.h (frame_save_as_regcache): Update declaration.
14581 * inferior.h (get_infcall_suspend_state_regcache): Update
14582 declaration.
14583 * infrun.c (infcall_suspend_state) <registers>: use
14584 readonly_detached_regcache.
14585 (save_infcall_suspend_state): Don't use regcache_dup.
14586 (get_infcall_suspend_state_regcache): Change return type.
14587 * linux-fork.c (struct fork_info) <savedregs>: Change to
14588 readonly_detached_regcache.
14589 <pc>: New field.
14590 (fork_save_infrun_state): Don't use regcache_dup.
14591 (info_checkpoints_command): Adjust.
14592 * mi/mi-main.c (register_changed_p): Update declaration.
14593 (mi_cmd_data_list_changed_registers): Use
14594 readonly_detached_regcache.
14595 (register_changed_p): Change parameter type to
14596 readonly_detached_regcache.
14597 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
14598 readonly_detached_regcache.
14599 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
14600 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
14601 New.
14602 (regcache::save): Move it to reg_buffer.
14603 (regcache::restore): Change parameter type.
14604 (regcache_dup): Remove.
14605 * regcache.h (reg_buffer) <save>: New method.
14606 (readonly_detached_regcache): New class.
14607 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
14608 readonly_detached_regcache.
14609 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
14610
fc5b8736
YQ
146112018-02-21 Yao Qi <yao.qi@linaro.org>
14612
14613 * frame.c (frame_save_as_regcache): Use regcache method save.
14614 (frame_pop): Use regcache method restore.
14615 * infrun.c (restore_infcall_suspend_state): Likewise.
14616 * linux-fork.c (fork_load_infrun_state): Likewise.
14617 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
14618 save.
14619 * regcache.c (regcache_save): Remove.
14620 (regcache::restore): More asserts.
14621 (regcache_cpy): Remove.
14622 * regcache.h (regcache_save): Remove the declaration.
14623 (regcache::restore): Move from private to public.
14624 Remove the friend declaration of regcache_cpy.
14625 (regcache_cpy): Remove declaration.
14626
849d0ba8
YQ
146272018-02-21 Yao Qi <yao.qi@linaro.org>
14628
14629 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
14630 parameter type to 'readable_regcache *'.
14631 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14632 * arm-tdep.c (arm_neon_quad_read): Likewise.
14633 (arm_pseudo_read): Likewise.
14634 * avr-tdep.c (avr_pseudo_register_read): Likewise.
14635 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14636 * frv-tdep.c (frv_pseudo_register_read): Likewise.
14637 * gdbarch.c: Re-generated.
14638 * gdbarch.h: Re-generated.
14639 * gdbarch.sh (pseudo_register_read): Change parameter type to
14640 'readable_regcache *'.
14641 (pseudo_register_read_value): Likewise.
14642 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
14643 (h8300_pseudo_register_read): Likewise.
14644 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
14645 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14646 (i386_pseudo_register_read_into_value): Likewise.
14647 (i386_pseudo_register_read_value): Likewise.
14648 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
14649 declaration.
14650 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
14651 * m32c-tdep.c (m32c_raw_read): Likewise.
14652 (m32c_read_flg): Likewise.
14653 (m32c_banked_register): Likewise.
14654 (m32c_banked_read): Likewise.
14655 (m32c_sb_read): Likewise.
14656 (m32c_part_read): Likewise.
14657 (m32c_cat_read): Likewise.
14658 (m32c_r3r2r1r0_read): Likewise.
14659 (m32c_pseudo_register_read): Likewise.
14660 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14661 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14662 (mep_pseudo_cr64_read): Likewise.
14663 (mep_pseudo_register_read): Likewise.
14664 * mips-tdep.c (mips_pseudo_register_read): Likewise.
14665 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14666 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14667 * regcache.c (regcache::raw_read): Move it to readable_regcache.
14668 (regcache::cooked_read): Likewise.
14669 (regcache::cooked_read_value): Likewise.
14670 (regcache_cooked_read_signed):
14671 (regcache::cooked_read): Likewise.
14672 * regcache.h (readable_regcache): New class.
14673 (regcache): Inherit readable_regcache. Move some methods to
14674 readable_regcache.
14675 * rl78-tdep.c (rl78_pseudo_register_read): Change
14676 parameter type to 'readable_regcache *'.
14677 * rs6000-tdep.c (do_regcache_raw_read): Remove.
14678 (e500_pseudo_register_read): Change parameter type to
14679 'readable_regcache *'.
14680 (dfp_pseudo_register_read): Likewise.
14681 (vsx_pseudo_register_read): Likewise.
14682 (efpr_pseudo_register_read): Likewise.
14683 * s390-tdep.c (s390_pseudo_register_read): Likewise.
14684 * sh-tdep.c (sh_pseudo_register_read): Likewise.
14685 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
14686 (sh64_pseudo_register_read): Likewise.
14687 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14688 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14689 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14690 (spu_pseudo_register_read): Likewise.
14691 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14692 (xtensa_pseudo_register_read): Likewise.
14693
31716595
YQ
146942018-02-21 Yao Qi <yao.qi@linaro.org>
14695
14696 * regcache.c (regcache::regcache): Call reg_buffer ctor.
14697 (regcache::arch): Move it to reg_buffer::arch.
14698 (regcache::register_buffer): Likewise.
14699 (regcache::assert_regnum): Likewise.
14700 (regcache::num_raw_registers): Likewise.
14701 * regcache.h (reg_buffer): New class.
14702 (regcache): Inherit reg_buffer.
14703
7104e59b
SM
147042018-02-20 Simon Marchi <simon.marchi@ericsson.com>
14705
14706 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
14707 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
14708
2d8adcbd
MM
147092018-02-20 Markus Metzger <markus.t.metzger@intel.com>
14710
14711 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
14712
b5884fa7
AH
147132018-02-19 Alan Hayward <alan.hayward@arm.com>
14714
14715 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
14716 (SFILES): Remove common/*.c files.
14717 (COMMON_OBS): Remove some *.o files built from common/*.c files.
14718 * common/common.host: Add common reference.
14719 * configure.ac: Likewise.
14720 * configure: Regenerate.
14721
fd90ace4
YQ
147222018-02-16 Yao Qi <yao.qi@linaro.org>
14723
14724 * block.c (block_namespace_info): Inherit allocate_on_obstack.
14725 (block_initialize_namespace): Use new.
14726 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
14727 (dwarf2_free_objfile): Use delete.
14728 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
14729 (copy_type_recursive): Use new.
14730 * gdb_obstack.h (allocate_on_obstack): New.
14731
85046ae2
YQ
147322018-02-15 Yao Qi <yao.qi@linaro.org>
14733
14734 PR gdb/22849
14735 * inferior.c (exit_inferior_1): Reset inf->control.
14736
355c559b
JB
147372018-02-15 Joel Brobecker <brobecker@adacore.com>
14738
14739 * ada-lang.c (ada_to_fixed_value_create): Delete advance
14740 declaration.
14741
980548fd
PA
147422018-02-14 Pedro Alves <palves@redhat.com>
14743
14744 * frame-unwind.c (frame_unwind_try_unwinder): Always call
14745 frame_cleanup_after_sniffer on exception.
14746
692d6f97
TT
147472018-02-14 Tom Tromey <tom@tromey.com>
14748
14749 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
14750 const.
14751 (solib_bfd_open): Make pathname const.
14752 * solib.c (solib_bfd_open): Make pathname const.
14753 * solib-spu.c (spu_bfd_fopen): Make name const.
14754 (spu_bfd_open): Make pathname const.
14755 * solib-darwin.c (darwin_bfd_open): Make pathname const.
14756 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
14757
e0cc99a6
TT
147582018-02-14 Tom Tromey <tom@tromey.com>
14759
14760 * symfile.c (symfile_bfd_open): Update.
14761 * source.h (openp, source_full_path_of, find_and_open_source):
14762 Change argument type to unique_xmalloc_ptr.
14763 * source.c (openp): Take a unique_xmalloc_ptr.
14764 (source_full_path_of, find_and_open_source): Likewise.
14765 (open_source_file, symtab_to_fullname): Update.
14766 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
14767 unique_xmalloc_ptr.
14768 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
14769 (exec_file_find): Update.
14770 * psymtab.c (psymtab_to_fullname): Update.
14771 * nto-tdep.h (nto_find_and_open_solib): Update.
14772 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
14773 unique_xmalloc_ptr.
14774 * exec.c (exec_file_attach): Update.
14775 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
14776 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
14777
b46a8d7c
TT
147782018-02-14 Tom Tromey <tom@tromey.com>
14779
14780 * solib.c: Include source.h.
14781 * nto-tdep.c: Include source.h.
14782 * mi/mi-cmd-env.c: Include source.h.
14783 * infcmd.c: Include source.h.
14784 * exec.c: Include source.h.
14785 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
14786 (add_path, directory_switch, source_path, init_source_path): Move
14787 declarations...
14788 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
14789 (add_path, directory_switch, source_path, init_source_path):
14790 ...here.
14791
797bc1cb
TT
147922018-02-14 Tom Tromey <tom@tromey.com>
14793
14794 * solist.h (exec_file_find, solib_find): Return
14795 unique_xmalloc_ptr.
14796 (solib_bfd_fopen): Take a const char *.
14797 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
14798 (exec_file_find, solib_find): Likewise.
14799 (solib_bfd_fopen): Do not take ownership of "pathname".
14800 (solib_bfd_open): Use unique_xmalloc_ptr.
14801 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
14802 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
14803 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
14804 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
14805
f98b2e33
JB
148062018-02-14 Joel Brobecker <brobecker@adacore.com>
14807
14808 * ada-lang.c (name_match_type_from_name): Remove reference to
14809 ada_name_for_lookup in function's documentation.
14810 * ada-lang.h (ada_name_for_lookup): Delete declaration.
14811
24b9144d
SM
148122018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
14813
14814 * defs.h (enum openp_flags): New enum.
14815 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
14816 Move to enum openp_flags.
14817 (openp_flags): New enum flags.
14818 (openp): Change parameter type to openp_flags.
14819 * source.c (openp): Change parameter type to openp_flags.
14820 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
14821 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
14822
387cd15b
SM
148232018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
14824
14825 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
14826 per-command.
14827
b303c6f6
AB
148282018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
14829
14830 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
14831 into...
14832 (class dwarf2_queue_guard): ...the destructor of this new class.
14833 (dw2_do_instantiate_symtab): Create instance of the new class
14834 dwarf2_queue_guard, remove cleanup.
14835
9c3630e9
TT
148362018-02-09 Tom Tromey <tom@tromey.com>
14837
14838 * source.c (find_source_lines): Don't reference past the end of
14839 the vector.
14840
c4e12631
MM
148412018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14842
14843 * remote.c (remote_btrace_maybe_reopen): Change error message.
14844 * btrace.c (btrace_enable): Likewise.
14845 (parse_xml_btrace): Likewise.
14846 (parse_xml_btrace_conf): Likewise.
14847
88711fbf
MM
148482018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14849
14850 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
14851 (linux_enable_pt, linux_enable_bts): Call
14852 diagnose_perf_event_open_fail.
14853
17ad2a4f
MM
148542018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14855
14856 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
14857 Remove parameter and change return type. Update callers. Move it.
14858 (linux_enable_bts, linux_enable_pt): Improve error message.
14859 (linux_enable_pt): Remove zero buffer size check.
14860 (linux_enable_btrace): Improve error messages. Remove NULL return
14861 check.
14862
de6242d3
MM
148632018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14864
14865 * btrace.c (btrace_enable): Remove target_supports_btrace call.
14866 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
14867 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
14868 (linux_supports_pt, linux_supports_btrace): Remove.
14869 (linux_enable_bts): Call cpu_supports_bts.
14870 * nat/linux-btrace.h (linux_supports_btrace): Remove.
14871 * remote.c (remote_supports_btrace): Remove.
14872 (init_remote_ops): Remove remote_supports_btrace.
14873 * target-delegates.c: Regenerated.
14874 * target.c (target_supports_btrace): Remove.
14875 * target.h (target_ops) <to_supports_btrace>: Remove
14876 (target_supports_btrace): Remove.
14877 * x86-linux-nat.c (x86_linux_create_target): Remove
14878 linux_supports_btrace.
14879
9ee23a85
MM
148802018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14881
14882 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
14883 btrace failed.
14884 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
14885 exception and use message in own exception.
14886
5c3284c1
MM
148872018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14888
14889 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
14890 (perf_event_pt_event_type): Use gdb_file_up.
14891 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
14892 scoped_fd, and scoped_mmap.
14893
84696f37
MM
148942018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14895
14896 * common/scoped_mmap.h: New.
14897 * unittests/scoped_mmap-selftest.c: New.
14898 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14899 unittests/scoped_mmap-selftest.c.
14900
ea4a0888
MM
149012018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14902
14903 * common/scoped_fd.h: New.
14904 * unittests/scoped_fd-selftest.c: New.
14905 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14906 unittests/scoped_fd-selftest.c.
14907
869e8290
TT
149082018-02-09 Tom Tromey <tom@tromey.com>
14909
14910 * auto-load.c (auto_load_section_scripts): Use
14911 gdb::unique_xmalloc_ptr.
14912
a37a2ae7
TT
149132018-02-09 Tom Tromey <tom@tromey.com>
14914
14915 * auto-load.c (execute_script_contents): Use std::string.
14916
4e725347
JB
149172018-02-09 Joel Brobecker <brobecker@adacore.com>
14918
14919 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
14920 Python function, rather than a new command.
14921
9a897d43
TT
149222018-02-08 Tom Tromey <tom@tromey.com>
14923
14924 * solib.c (solib_find_1): Use std::string.
14925 (solib_bfd_fopen): Use unique_xmalloc_ptr.
14926
58ef3771
TT
149272018-02-08 Tom Tromey <tom@tromey.com>
14928
14929 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
14930
a9abc434
TT
149312018-02-08 Tom Tromey <tom@tromey.com>
14932
14933 * source.c (find_source_lines): Use gdb::def_vector.
14934
84f27c6f
TT
149352018-02-08 Tom Tromey <tom@tromey.com>
14936
14937 * macrocmd.c (struct temporary_macro_definition): New.
14938 (macro_define_command): Use temporary_macro_definition. Remove
14939 cleanups.
14940 (free_macro_definition_ptr): Remove.
14941
0354904b
TT
149422018-02-08 Tom Tromey <tom@tromey.com>
14943
14944 * macroexp.c (maybe_expand): Use std::string.
14945
1739cf24
TT
149462018-02-08 Tom Tromey <tom@tromey.com>
14947
14948 * macroexp.c (struct macro_buffer): Add initializers for some
14949 members.
14950 (init_buffer, init_shared_buffer, free_buffer)
14951 (free_buffer_return_text): Remove.
14952 (macro_buffer): New constructors.
14953 (~macro_buffer): New destructor.
14954 (macro_buffer::set_shared): New method.
14955 (macro_buffer::resize_buffer, macro_buffer::appendc)
14956 (macro_buffer::appendmem): Now methods, not free functions.
14957 (set_token, append_tokens_without_splicing, stringify)
14958 (macro_stringify): Update.
14959 (gather_arguments): Change return type. Remove argc_p argument,
14960 add args_ptr argument. Use std::vector.
14961 (substitute_args): Remove argc argument. Accept std::vector.
14962 (expand): Update. Use std::vector.
14963 (scan, macro_expand, macro_expand_next): Update.
14964
f6c2623e
TT
149652018-02-08 Tom Tromey <tom@tromey.com>
14966
14967 * symtab.c (default_collect_symbol_completion_matches_break_on):
14968 Use unique_xmalloc_ptr.
14969 * macroscope.h: (sal_macro_scope, user_macro_scope)
14970 (default_macro_scope): Return unique_xmalloc_ptr.
14971 * macroscope.c (sal_macro_scope, user_macro_scope)
14972 (default_macro_scope): Return unique_xmalloc_ptr.
14973 * macroexp.h (macro_expand, macro_expand_once): Return
14974 unique_xmalloc_ptr.
14975 * macroexp.c (macro_expand, macro_expand_once): Return
14976 unique_xmalloc_ptr.
14977 * macrocmd.c (macro_expand_command, macro_expand_once_command)
14978 (info_macro_command, info_macros_command): Use
14979 unique_xmalloc_ptr.
14980 * compile/compile-c-support.c (write_macro_definitions): Use
14981 unique_xmalloc_ptr.
14982 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
14983
c2e0e465
SM
149842018-02-07 Simon Marchi <simon.marchi@ericsson.com>
14985
14986 * value.c (value_static_field): Assign field type instead of
14987 containing type when returning an optimized out value.
14988
3f8c94b4
YQ
149892018-02-06 Yao Qi <yao.qi@linaro.org>
14990
14991 * ft32-tdep.c (ft32_read_pc): Remove.
14992 (ft32_write_pc): Remove.
14993 (ft32_gdbarch_init): Update.
14994 * m32r-tdep.c (m32r_read_pc): Remove.
14995 (m32r_gdbarch_init): Update.
14996 * mep-tdep.c (mep_read_pc): Remove.
14997 (mep_gdbarch_init): Update.
14998 * microblaze-tdep.c (microblaze_write_pc): Remove.
14999 (microblaze_gdbarch_init): Update.
15000 * mn10300-tdep.c (mn10300_read_pc): Remove.
15001 (mn10300_write_pc): Remove.
15002 (mn10300_gdbarch_init): Update.
15003 * moxie-tdep.c (moxie_read_pc): Remove.
15004 (moxie_write_pc): Remove.
15005 (moxie_gdbarch_init): Update.
15006
bca65a23
YQ
150072018-02-06 Yao Qi <yao.qi@linaro.org>
15008
15009 * expprint.c (print_subexp_standard): Handle
15010 OP_F77_UNDETERMINED_ARGLIST.
15011 (dump_subexp_body_standard): Likewise.
15012
583e3f90 150132018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 15014
583e3f90
YQ
15015 * target-descriptions.c (tdesc_element_visitor) Add empty
15016 implementations.
b8df6ca7
AH
15017 (tdesc_type): Move make_gdb_type from here.
15018 (tdesc_type_builtin): Likewise.
15019 (tdesc_type_vector): Likewise.
15020 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
15021 (make_gdb_type_struct): Move from tdesc_type_with_fields.
15022 (make_gdb_type_union): Likewise.
15023 (make_gdb_type_flags): Likewise.
15024 (make_gdb_type_enum): Likewise.
15025 (make_gdb_type): New function.
15026 (tdesc_register_type): Use static make_gdb_type.
15027
e813d34a
RK
150282018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
15029
15030 * infcmd.c (default_print_one_register_info): Align natural-format
15031 column values consistently one under another.
15032 (pad_to_column): New function.
15033
0eb876f5
JB
150342018-02-05 Joel Brobecker <brobecker@adacore.com>
15035
15036 * dwarf2read.c (dwarf2_physname): Move commment.
15037
0625771b
LS
150382018-02-01 Leszek Swirski <leszeks@google.com>
15039
15040 * varobj.c (varobj_formatted_print_options): Allow recursive
15041 pretty printing if pretty printing is enabled.
15042
59498c30
LS
150432018-02-01 Leszek Swirski <leszeks@google.com>
15044
15045 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
15046 names after a structop as a filename.
15047
2d9e6acb
YQ
150482018-02-01 Yao Qi <yao.qi@linaro.org>
15049
15050 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
15051 (arm_record_coproc_data_proc): Likewise.
15052
df95a9cf
YQ
150532018-02-01 Yao Qi <yao.qi@linaro.org>
15054
15055 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
15056
07e5f5cf
NP
150572018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
15058
15059 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
15060 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
15061
3045b475
PA
150622018-01-31 Pedro Alves <palves@redhat.com>
15063
15064 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
15065 * inflow.c (child_terminal_save_inferior): Wrap reference to
15066 tcgetpgrp in HAVE_TERMIOS_H.
15067 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
15068 _WIN32.
15069 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
15070 always iterate over all inferiors.
15071 (gdbsim_cntrl_c): Adjust.
15072 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
15073
929b5ad4
JB
150742018-01-31 Joel Brobecker <brobecker@adacore.com>
15075
15076 * gdbtypes.c (lookup_array_range_type): Make sure the array's
15077 index type is objfile-owned if the element type is as well.
15078
29236ca2
JB
150792018-01-31 Joel Brobecker <brobecker@adacore.com>
15080
15081 GDB 8.1 released.
15082
c81e8879
PR
150832018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
15084
15085 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
15086 "features/s390x-linux64.c".
15087 (_initialize_s390_linux_tdep): Remove initialization of tdescs
15088 s390_linux32 and s390x_linux64.
15089 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
15090 default tdesc.
15091 * s390-tdep.c: Include "features/s390-linux32.c" and
15092 "features/s390x-linux64.c".
15093 (s390_tdesc_valid): Add check for tdesc_has_registers.
15094 (s390_gdbarch_init): Make sure there is always a valid tdesc.
15095 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
15096 tdesc_s390x_linux64.
15097 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
15098 tdesc_s390x_linux64 to...
15099 * s390-tdep.h: ...here.
15100
e671cd59
PA
151012018-01-30 Pedro Alves <palves@redhat.com>
15102
15103 PR gdb/13211
15104 * config.in, configure: Regenerate.
15105 * configure.ac: Check for getpgid.
15106 * go32-nat.c (go32_pass_ctrlc): New.
15107 (go32_target): Install it.
15108 * inf-child.c (inf_child_target): Install
15109 child_terminal_save_inferior, child_pass_ctrlc and
15110 child_interrupt.
15111 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
15112 (inf_ptrace_target): No longer install it.
15113 * infcmd.c (interrupt_target_1): Adjust.
15114 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
15115 (child_interrupt): Declare.
15116 (inferior::terminal_state): New.
15117 * inflow.c (struct terminal_info): Update comments.
15118 (inferior_process_group): Delete.
15119 (terminal_is_ours): Delete.
15120 (gdb_tty_state): New.
15121 (child_terminal_init): Adjust.
15122 (is_gdb_terminal, sharing_input_terminal_1)
15123 (sharing_input_terminal): New functions.
15124 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
15125 Set the process's actual process group in the foreground if
15126 possible. Handle is_ours_for_output/is_ours distinction. Don't
15127 mark terminal as the inferior's if not sharing GDB's terminal.
15128 Don't check attach_flag.
15129 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
15130 pass down a target_terminal_state.
15131 (child_terminal_save_inferior): New, factored out from ...
15132 (child_terminal_ours_1): ... this. Handle
15133 target_terminal_state::is_ours_for_output.
15134 (child_interrupt, child_pass_ctrlc): New.
15135 (inflow_inferior_exit): Clear the inferior's terminal_state.
15136 (copy_terminal_info): Copy the inferior's terminal state.
15137 (_initialize_inflow): Remove reference to terminal_is_ours.
15138 * inflow.h (inferior_process_group): Delete.
15139 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
15140 * procfs.c (procfs_target): Don't install procfs_interrupt.
15141 (procfs_interrupt): Delete.
15142 * remote.c (remote_serial_quit_handler): Adjust.
15143 (remote_interrupt): Remove ptid parameter. Adjust.
15144 * target-delegates.c: Regenerate.
15145 * target.c: Include "terminal.h".
15146 (target_terminal::terminal_state): Rename to ...
15147 (target_terminal::m_terminal_state): ... this.
15148 (target_terminal::init): Adjust.
15149 (target_terminal::inferior): Adjust to per-inferior
15150 terminal_state.
15151 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
15152 (target_terminal::ours, target_terminal::ours_for_output): Use
15153 target_terminal_is_ours_kind.
15154 (target_interrupt): Remove ptid parameter. Adjust.
15155 (default_target_pass_ctrlc): Adjust.
15156 * target.h (target_ops::to_terminal_save_inferior): New field.
15157 (target_ops::to_interrupt): Remove ptid_t parameter.
15158 (target_interrupt): Remove ptid_t parameter. Update comment.
15159 (target_pass_ctrlc): Update comment.
15160 * target/target.h (target_terminal_state): New scoped enum,
15161 factored out of ...
15162 (target_terminal::terminal_state): ... here.
15163 (target_terminal::inferior): Update comments.
15164 (target_terminal::restore_inferior): New.
15165 (target_terminal::is_inferior, target_terminal::is_ours)
15166 (target_terminal::is_ours_for_output): Adjust.
15167 (target_terminal::scoped_restore_terminal_state): Adjust to
15168 rename, and call restore_inferior() instead of inferior().
15169 (target_terminal::scoped_restore_terminal_state::m_state): Change
15170 type.
15171 (target_terminal::terminal_state): Rename to ...
15172 (target_terminal::m_terminal_state): ... this and change type.
15173
9c3a5d93
PA
151742018-01-30 Pedro Alves <palves@redhat.com>
15175
15176 * linux-nat.c (wait_for_signal): New function.
15177 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
15178 directly.
15179 (async_terminal_is_ours)
15180 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
15181 (linux_nat_add_target): Don't override
15182 to_terminal_inferior/to_terminal_ours.
15183
69ab5edb
SDJ
151842018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
15185
15186 * remote.c (remote_follow_fork): Don't call "detach_inferior".
15187
fc8e7e75
SM
151882018-01-28 Simon Marchi <simon.marchi@ericsson.com>
15189
15190 * dwarf2read.c (free_dwo_files): Add forward-declaration.
15191 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
15192 dwarf2_per_objfile_free here.
15193 (dwarf2_per_objfile_free): Remove.
15194 (_initialize_dwarf2_read): Don't register
15195 dwarf2_per_objfile_free as a registry cleanup.
15196
b2a426e2
EZ
151972018-01-27 Eli Zaretskii <eliz@gnu.org>
15198
15199 Avoid compilation errors in MinGW native builds
15200
15201 The error is triggered by including python-internal.h, and the
15202 error message is:
15203
15204 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
15205 from build-gnulib/import/math.h:27,
15206 from d:/usr/Python26/include/pyport.h:235,
15207 from d:/usr/Python26/include/Python.h:58,
15208 from python/python-internal.h:94,
15209 from python/py-arch.c:24:
15210 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
15211 using ::hypot;
15212 ^~~~~
15213
15214 This happens because Python headers define 'hypot' to expand t
15215 '_hypot' in the Windows builds.
15216 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
15217 'hypoth'. This avoids a compilation error.
15218
0bdd8eac
AH
152192018-01-26 Alan Hayward <alan.hayward@arm.com>
15220
15221 * MAINTAINERS (Write After Approval): Fix ordering.
15222
56ae9dc3
AH
152232018-01-26 Alan Hayward <alan.hayward@arm.com>
15224
15225 * MAINTAINERS (Write After Approval): Add Alan Hayward.
15226
7433498b
AM
152272018-01-26 Alan Modra <amodra@gmail.com>
15228
15229 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
15230 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
15231 Remove nop. Make const. Comment.
15232 (powerpc32_plt_stub_so_2): New.
15233 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
15234 Correct count. Update uses.
15235 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
15236 Move common code reading PLT entry word. Correct
15237 powerpc32_plt_stub PLT address calculation.
15238 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
15239 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
15240 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
15241 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
15242 (ppc64_standard_linkage8): Likewise.
15243 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
15244 Correct insns description.
15245 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
15246
0f59d5fc
PA
152472018-01-24 Pedro Alves <palves@redhat.com>
15248
15249 GCC PR libstdc++/83906
15250 * gdbtypes.c (operator==(const dynamic_prop &,
15251 const dynamic_prop &)): New.
15252 (operator==(const range_bounds &, const range_bounds &)): New.
15253 (check_types_equal): Use them instead of memcmp.
15254 * gdbtypes.h (operator==(const dynamic_prop &,
15255 const dynamic_prop &)): Declare.
15256 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
15257 (operator==(const range_bounds &, const range_bounds &)): Declare.
15258 (operator!=(const range_bounds &, const range_bounds &)): Declare.
15259
ef8914a4
PR
152602018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15261
15262 * s390-linux-tdep.c (s390_record_address_mask)
15263 (s390_record_calc_disp_common, s390_record_calc_disp)
15264 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
15265 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
15266 (s390_process_record): Move to s390-tdep.c.
15267 (s390_linux_init_abi_any): Adjust.
15268 * s390-tdep.c (s390_record_address_mask)
15269 (s390_record_calc_disp_common, s390_record_calc_disp)
15270 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
15271 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
15272 (s390_process_record): Moved from s390-linux-tdep.c
15273 (s390_gdbarch_init): Adjust.
15274
d6e58945
PR
152752018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15276
15277 * s390-linux-nat.c (s390-tdep.h): New include.
15278 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
15279 (HFILES_NO_SRCDIR): Add s390-tdep.h.
15280 (ALLDEPFILES): Add s390-tdep.c.
15281 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
15282 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
15283 * s390-tdep.h: ...this. New file.
15284 * s390-linux-tdep.c (s390-tdep.h): New include.
15285 (_initialize_s390_tdep): Rename to...
15286 (_initialize_s390_linux_tdep): ...this and adjust.
15287 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
15288 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
15289 s390-tdep.h.
15290 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
15291 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
15292 (s390_is_partial_instruction, s390_software_single_step)
15293 (is_non_branch_ril, s390_displaced_step_copy_insn)
15294 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
15295 (s390_prologue_data, s390_addr, s390_store, s390_load)
15296 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
15297 (s390_register_call_saved, s390_guess_tracepoint_registers)
15298 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
15299 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
15300 (s390_pseudo_register_name, s390_pseudo_register_type)
15301 (s390_pseudo_register_read, s390_pseudo_register_write)
15302 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
15303 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
15304 (s390_addr_bits_remove, s390_address_class_type_flags)
15305 (s390_address_class_type_flags_to_name)
15306 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
15307 (s390_function_arg_float, s390_function_arg_vector)
15308 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
15309 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
15310 (s390_frame_align, s390_register_return_value, s390_return_value)
15311 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
15312 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
15313 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
15314 (s390_trad_frame_prev_register, s390_unwind_cache)
15315 (s390_prologue_frame_unwind_cache)
15316 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
15317 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
15318 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
15319 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
15320 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
15321 (s390_frame_base_address, s390_local_base_address)
15322 (s390_frame_base, s390_gcc_target_options)
15323 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
15324 (s390_validate_reg_range, s390_tdesc_valid)
15325 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
15326 * s390-tdep.c: ...this. New file.
15327
9c0b896e
PR
153282018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15329
15330 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
15331 (s390_process_record, s390_gdbarch_tdep_alloc)
15332 (s390_linux_init_abi_any): Use/set new hook.
15333
7042632b
PR
153342018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15335
15336 * s390-linux-tdep.c (osabi.h): New include.
15337 (s390_linux_init_abi_31, s390_linux_init_abi_64)
15338 (s390_linux_init_abi_any): New functions.
15339 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
15340
650f5e13
PR
153412018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15342
15343 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
15344 tdesc_has_registers check
15345
47c9317e
PR
153462018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15347
15348 * s390-linux-tdep.c (s390_tdesc_valid): New function.
15349 (s390_validate_reg_range): New macro.
15350 (s390_gdbarch_init): Adjust.
15351
095085d8
PR
153522018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15353
15354 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
15355 (s390_gdbarch_tdep_alloc): Adjust.
15356 (s390_gdbarch_init): Adjust.
15357
ab9bcc67
PR
153582018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15359
15360 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
15361 <have_tdb>: Change type to bool.
15362 (s390_gdbarch_tdep_alloc): Adjust.
15363 (s390_gdbarch_init): Adjust.
15364
21f6f5ff
PR
153652018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15366
15367 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
15368 (gdbarch_tdep) <have_upper, have_vx>: New fields.
15369 (s390_gdbarch_tdep_alloc): New function.
15370 (s390_gdbarch_init): Allocate tdep at start and use its fields
15371 instead of separate variables.
15372
0eb97953
PR
153732018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15374
15375 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
15376 when looking for cached gdbarch and add comment for remaining.
15377
5c319bb2
PA
153782018-01-22 Pedro Alves <palves@redhat.com>
15379 Sergio Durigan Junior <sergiodj@redhat.com>
15380
15381 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
15382 case.
15383
d65ce302
MR
153842018-01-22 Maciej W. Rozycki <macro@mips.com>
15385
15386 * MAINTAINERS: Update my company e-mail address.
15387
ec7a5fcb
YQ
153882018-01-22 Yao Qi <yao.qi@linaro.org>
15389
15390 * regcache.c (cooked_write_test): New function.
15391 (_initialize_regcache): Register the test.
15392
11f57cb6
YQ
153932018-01-22 Yao Qi <yao.qi@linaro.org>
15394
15395 * ia64-tdep.c (ia64_pseudo_register_read): Call
15396 regcache->cooked_read instead of regcache_cooked_read_unsigned.
15397 * m32c-tdep.c (m32c_cat_read): Likewise.
15398 (m32c_r3r2r1r0_read): Likewise.
15399 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
15400 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
15401
03f50fc8
YQ
154022018-01-22 Yao Qi <yao.qi@linaro.org>
15403
15404 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
15405 method raw_read instead of regcache_raw_read.
15406 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
15407 * arm-tdep.c (arm_neon_quad_read): Likewise.
15408 * avr-tdep.c (avr_pseudo_register_read): Likewise.
15409 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
15410 * frv-tdep.c (frv_pseudo_register_read): Likewise.
15411 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
15412 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
15413 (i386_pseudo_register_read_into_value): Likewise.
15414 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
15415 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
15416 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
15417 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
15418 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
15419 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
15420 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
15421 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
15422 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
15423
dc711524
YQ
154242018-01-22 Yao Qi <yao.qi@linaro.org>
15425
15426 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
15427 * configure.tgt: Remove target mt.
15428 * mt-tdep.c: Remove.
15429 * regcache.c (cooked_read_test): Remove the check for mt.
15430
3f5a868b
YQ
154312018-01-22 Yao Qi <yao.qi@linaro.org>
15432
15433 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
15434 instead of gdbarch_pseudo_register_read_value.
15435
de4cb04a
JB
154362018-01-22 Joel Brobecker <brobecker@adacore.com>
15437
15438 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
15439 language is Ada.
15440
a9e40818
JB
154412018-01-22 Joel Brobecker <brobecker@adacore.com>
15442
15443 * linespec.c (create_sals_line_offset): Remove code that preserved
15444 the symtab_and_line's line number.
15445
e707fc44
AB
154462018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15447
15448 * varobj.c (varobj_create): Don't set valid_block when creating a
15449 floating varobj.
15450
03d0bf7b
AB
154512018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15452
15453 * varobj.c (varobj_create): Remove out of date comment.
15454
ae451627
AB
154552018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15456
15457 PR mi/20395
15458 * ada-exp.y (write_var_from_sym): Pass extra parameter when
15459 updating innermost block.
15460 * parse.c (innermost_block_tracker::update): Take extra type
15461 parameter, and check types match before updating innermost block.
15462 (write_dollar_variable): Update innermost block for registers.
15463 * parser-defs.h (enum innermost_block_tracker_type): New enum.
15464 (innermost_block_tracker::innermost_block_tracker): Initialise
15465 m_types member.
15466 (innermost_block_tracker::reset): Take type parameter.
15467 (innermost_block_tracker::update): Take type parameter, and pass
15468 type through as needed.
15469 (innermost_block_tracker::m_types): New member.
15470 * varobj.c (varobj_create): Pass type when reseting innermost
15471 block.
15472
aee1fcdf
AB
154732018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15474
15475 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
15476 * ada-lang.c (resolve_subexp): Likewise.
15477 * breakpoint.c (set_breakpoint_condition) Likewise.
15478 (watch_command_1) Likewise.
15479 * c-exp.y (variable): Likewise.
15480 * d-exp.y (PrimaryExpression): Likewise.
15481 * f-exp.y (variable): Likewise.
15482 * go-exp.y (variable): Likewise.
15483 * m2-exp.y (variable): Likewise.
15484 * objfiles.c (objfile::~objfile): Likewise.
15485 * p-exp.y (variable): Likewise.
15486 * parse.c (innermost_block): Change type.
15487 * parser-defs.h (class innermost_block_tracker): New.
15488 (innermost_block): Change to innermost_block_tracker.
15489 * printcmd.c (display_command): Switch to innermost_block API.
15490 (do_one_display): Likewise.
15491 * rust-exp.y (do_one_display): Likewise.
15492 * symfile.c (clear_symtab_users): Likewise.
15493 * varobj.c (varobj_create): Switch to innermost_block API, replace
15494 use of innermost_block with block stored on varobj object.
15495
396af9a1
AB
154962018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15497
15498 * expression.h (innermost_block): Remove declaration.
15499 * varobj.c: Add 'parser-defs.h' include.
15500
fcfcc376
TT
155012018-01-19 Tom Tromey <tom@tromey.com>
15502
15503 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
15504 symbols in the static and global blocks.
15505
5a6c3296
JC
155062018-01-19 James Clarke <jrtc27@jrtc27.com>
15507
15508 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
15509 gdb_ptrace.h, and move including gdb_wait.h ...
15510 * nat/linux-ptrace.h: ... to here.
15511
bc09b0c1
SM
155122018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15513
15514 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
15515 inf_ptrace_detach_success.
15516 (inf_ptrace_detach_success): Add inferior parameter, use it
15517 instead of inferior_ptid, pass it to detach_inferior.
15518 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
15519 parameter.
15520 * inferior.c (detach_inferior): Add overload that takes an
15521 inferior object.
15522 * inferior.h (detach_inferior): Likewise.
15523 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
15524 use inferior_ptid, adjust call to inf_ptrace_detach_success.
15525 * linux-thread-db.c (thread_db_detach): Use inf parameter.
15526
6e1e1966
SM
155272018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15528
15529 * target.h (struct target_ops) <to_detach>: Add inferior
15530 parameter.
15531 (target_detach): Likewise.
15532 * target.c (dispose_inferior): Pass inferior down.
15533 (target_detach): Pass inferior down. Assert that it is equal to
15534 the current inferior.
15535 * aix-thread.c (aix_thread_detach): Pass inferior down.
15536 * corefile.c (core_file_command): Pass current_inferior() down.
15537 * corelow.c (core_detach): Add inferior parameter.
15538 * darwin-nat.c (darwin_detach): Likewise.
15539 * gnu-nat.c (gnu_detach): Likewise.
15540 * inf-ptrace.c (inf_ptrace_detach): Likewise.
15541 * infcmd.c (detach_command): Pass current_inferior() down to
15542 target_detach.
15543 * infrun.c (follow_fork_inferior): Pass parent_inf to
15544 target_detach.
15545 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
15546 target_detach.
15547 * linux-nat.c (linux_nat_detach): Add inferior parameter.
15548 * linux-thread-db.c (thread_db_detach): Likewise.
15549 * nto-procfs.c (procfs_detach): Likewise.
15550 * procfs.c (procfs_detach): Likewise.
15551 * record.c (record_detach): Likewise.
15552 * record.h (struct inferior): Forward-declare.
15553 (record_detach): Add inferior parameter.
15554 * remote-sim.c (gdbsim_detach): Likewise.
15555 * remote.c (remote_detach_1): Likewise.
15556 (remote_detach): Likewise.
15557 (extended_remote_detach): Likewise.
15558 * sol-thread.c (sol_thread_detach): Likewise.
15559 * target-debug.h (target_debug_print_inferior_p): New macro.
15560 * target-delegates.c: Re-generate.
15561 * top.c (kill_or_detach): Pass inferior down to target_detach.
15562 * windows-nat.c (windows_detach): Add inferior parameter.
15563
6bd6f3b6
SM
155642018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15565
15566 * target.h (struct target_ops) <to_detach>: Remove args
15567 parameter.
15568 (target_detach): Likewise.
15569 * target.c (dispose_inferior): Adjust.
15570 (target_detach): Remove args parameter, adjust.
15571 * aix-thread.c (aix_thread_detach): Adjust.
15572 * corefile.c (core_file_command): Adjust.
15573 * corelow.c (core_detach): Adjust.
15574 * darwin-nat.c (darwin_detach): Adjust.
15575 * gnu-nat.c (gnu_detach): Adjust.
15576 * inf-ptrace.c (inf_ptrace_detach): Adjust.
15577 * infcmd.c (detach_command): Adjust
15578 * infrun.c (follow_fork_inferior): Adjust.
15579 (handle_vfork_child_exec_or_exit): Adjust.
15580 * linux-fork.c (linux_fork_detach): Remove args parameter.
15581 * linux-fork.h (linux_fork_detach): Likewise.
15582 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
15583 * linux-thread-db.c (thread_db_detach): Likewise.
15584 * nto-procfs.c (procfs_detach): Likewise.
15585 * procfs.c (procfs_detach): Likewise.
15586 (do_detach): Remove signo parameter.
15587 * record.c (record_detach): Remove args parameter.
15588 * record.h (record_detach): Likewise.
15589 * remote-sim.c (gdbsim_detach): Likewise.
15590 * remote.c (remote_detach_1): Likewise.
15591 (remote_detach): Likewise.
15592 (extended_remote_detach): Likewise.
15593 * sol-thread.c (sol_thread_detach): Likewise.
15594 * target-delegates.c: Re-generate.
15595 * top.c (struct qt_args) <args>: Remove field.
15596 (kill_or_detach): Don't pass args.
15597 (quit_force): Don't set args.
15598 * windows-nat.c (windows_detach): Remove args parameter.
15599
88af8ea8
YQ
156002018-01-19 Yao Qi <yao.qi@linaro.org>
15601
15602 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
15603 (arm_linux_init_abi): Install it.
15604
dea445b9
YQ
156052018-01-19 Yao Qi <yao.qi@linaro.org>
15606
15607 * osabi.c (gdb_osabi_names): Extend the regexp for
15608 arm-linux-gnueabihf.
15609
4a17f768
YQ
156102018-01-18 Yao Qi <yao.qi@linaro.org>
15611
15612 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
15613 m_abbrevs.
15614 (abbrev_table::add_abbrev): Update.
15615 (abbrev_table::lookup_abbrev): Update.
15616
d679c21a
YQ
156172018-01-18 Yao Qi <yao.qi@linaro.org>
15618
15619 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
15620
7d937cad
SDJ
156212018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15622
15623 * compile/compile.c (compile_to_object): Convert "triplet_rx"
15624 to "std::string".
15625
9e14690d
TT
156262018-01-17 Tom Tromey <tom@tromey.com>
15627
15628 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
15629
50a82047
TT
156302018-01-17 Tom Tromey <tom@tromey.com>
15631
15632 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
15633 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
15634 (create_array_type_with_stride): Update.
15635 * dwarf2read.c (set_die_type): Update.
15636
c89b44cd
TT
156372018-01-17 Tom Tromey <tom@tromey.com>
15638
15639 * dwarf2read.c (delayed_method_info): Remove typedef.
15640 (dwarf2_cu::method_info): Now a std::vector.
15641 (add_to_method_list): Update.
15642 (free_delayed_list): Remove.
15643 (compute_delayed_physnames): Update.
15644 (process_full_comp_unit, process_full_type_unit): Clear the method
15645 list. Remove cleanups.
15646 (psymtab_include_file_name): Add name_holder parameter. Use
15647 unique_xmalloc_ptr.
15648 (dwarf_decode_lines): Update.
15649
fcd3b13d
SM
156502018-01-17 Tom Tromey <tom@tromey.com>
15651 Simon Marchi <simon.marchi@ericsson.com>
15652
15653 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
15654 (dwarf2_per_objfile::free_cached_comp_units)
15655 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15656 (init_cutu_and_read_dies_no_follow): Update.
15657 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
15658 (dwarf2_cu::~dwarf2_cu): New.
15659 (free_heap_comp_unit, free_stack_comp_unit): Remove.
15660 (age_cached_comp_units, free_one_cached_comp_unit): Update.
15661
685af9cd
TT
156622018-01-17 Tom Tromey <tom@tromey.com>
15663 Simon Marchi <simon.marchi@ericsson.com>
15664
15665 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
15666 (struct die_reader_specs) <abbrev_table>: New member.
15667 (struct abbrev_table): Add constructor.
15668 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
15669 <abbrev_obstack>: Now an auto_obstack.
15670 (abbrev_table_up): New typedef.
15671 (init_cu_die_reader): Add abbrev_table parameter.
15672 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
15673 Add result_dwo_abbrev_table.
15674 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15675 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
15676 Update.
15677 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
15678 parameter.
15679 (skip_children): Update.
15680 (abbrev_table::alloc_abbrev): Rename from
15681 abbrev_table_alloc_abbrev.
15682 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
15683 (abbrev_table::lookup_abbrev): Rename from
15684 abbrev_table_lookup_abbrev.
15685 (abbrev_table_read_table): Return abbrev_table_up.
15686 (abbrev_table_free, abbrev_table_free_cleanup)
15687 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
15688 (load_partial_dies): Update.
15689
5e2db402
TT
156902018-01-17 Tom Tromey <tom@tromey.com>
15691
15692 * dwarf2read.c (dwarf2_compute_name): Update comment.
15693 (read_func_scope, read_variable): Update.
15694 (new_symbol): Remove.
15695 (new_symbol_full): Rename to new_symbol.
15696
ee7f689e 156972018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
15698
15699 PR gdb/16577
15700 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
15701 a warning instead of throwing an error, set section size to 0 and return
15702 NULL.
15703 * gdb_bfd.h (gdb_bfd_map_section): Update description.
15704
4d9b86e1
SM
157052018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15706
15707 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
15708 std::string.
15709 (linux_ptrace_attach_fail_reason_string): Likewise.
15710 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
15711 Likewise.
15712 (linux_ptrace_attach_fail_reason_string): Likewise.
15713 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
15714
a7b2d0fb
SM
157152018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15716
15717 * linux-nat.c (linux_nat_attach): Remove xstrdup.
15718
f517c180
EA
157192018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
15720
15721 PR gdb/21559
15722 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
15723 checking for fs_base/gs_base fields in struct user_regs_struct.
15724 * configure: Regenerate.
15725
7045b1ca
YQ
157262018-01-17 Yao Qi <yao.qi@linaro.org>
15727
15728 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
15729 function.
15730 (aarch64_linux_init_abi): Install it to gdbarch hook
15731 gcc_target_options.
15732
db422fb2
PA
157332018-01-15 Pedro Alves <palves@redhat.com>
15734
15735 * common/signals-state-save-restore.c
15736 (save_original_signals_state): Fix typos.
15737
ba643918
SDJ
157382017-01-12 Tom Tromey <tom@tromey.com>
15739 Sergio Durigan Junior <sergiodj@redhat.com>
15740
15741 * Makefile.in (install-only): Install gdb-add-index.
15742
906b4aac
JB
157432018-01-12 John Baldwin <jhb@FreeBSD.org>
15744
15745 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
15746
bdf2a94a
AA
157472018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
15748
15749 * infrun.c (keep_going_pass_signal): Clear step-over info when
15750 insert_breakpoints fails.
15751
71d378ae
PA
157522018-01-11 Pedro Alves <palves@redhat.com>
15753
15754 PR gdb/22583
15755 * infrun.c (resume): Rename to ...
15756 (resume_1): ... this.
15757 (resume): Reimplement as wrapper around resume_1.
15758
3cada740
PA
157592018-01-11 Pedro Alves <palves@redhat.com>
15760
15761 PR remote/22597
15762 * remote.c (remote_parse_stop_reply): Default to the last-set
15763 general thread instead of to 'magic_null_ptid'.
15764
618daa93
PA
157652018-01-10 Pedro Alves <palves@redhat.com>
15766
15767 * language.h (language_get_symbol_name_matcher): Rename ...
15768 (get_symbol_name_matcher): ... this.
15769 * language.c (language_get_symbol_name_matcher): Ditto.
15770 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
15771 callers adjusted.
15772
c63d3e8d
PA
157732018-01-10 Pedro Alves <palves@redhat.com>
15774
15775 PR gdb/22670
15776 * dwarf2read.c
15777 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
15778 Adjust to use language_get_symbol_name_matcher instead of
15779 language_defn::la_get_symbol_name_matcher.
15780 * language.c (language_get_symbol_name_matcher): If in Ada mode
15781 and the lookup name is a verbatim match, return Ada's matcher.
15782 * language.h (language_get_symbol_name_matcher): Adjust comment.
15783 (ada_lookup_name_info::verbatim_p):: New method.
15784
d4c2a405
PA
157852018-01-10 Pedro Alves <palves@redhat.com>
15786
15787 PR gdb/22670
15788 * ada-lang.c (ada_collect_symbol_completion_matches): If the
15789 minsym's language is language_auto or language_cplus, pass down
15790 language_ada instead.
15791 * symtab.c (compare_symbol_name): Don't frob symbol language here.
15792
8825213e
PA
157932018-01-10 Pedro Alves <palves@redhat.com>
15794
15795 PR gdb/22670
15796 * minsyms.c (linkage_name_str): New function.
15797 (iterate_over_minimal_symbols): Use it.
15798
2d97a5d9
JB
157992018-01-09 John Baldwin <jhb@FreeBSD.org>
15800
15801 * NEWS: Document that 'info proc' now works on FreeBSD.
15802
92fce24d
JB
158032018-01-09 John Baldwin <jhb@FreeBSD.org>
15804
15805 * configure.ac: Check for kinfo_getfile in libutil.
15806 * configure: Regenerate.
15807 * config.in: Regenerate.
15808 * fbsd-nat.c: Include "fbsd-tdep.h".
15809 (fbsd_fetch_cmdline): New.
15810 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
15811 rather than calling error.
15812 (fbsd_info_proc): New.
15813 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
15814 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
15815 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
15816
262f62f5
JB
158172018-01-09 John Baldwin <jhb@FreeBSD.org>
15818
15819 * fbsd-nat.c (struct free_deleter): Remove.
15820 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
15821
b999e203
JB
158222018-01-09 John Baldwin <jhb@FreeBSD.org>
15823
15824 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
15825 NULL for an empty pathname.
15826
d2176225
JB
158272018-01-09 John Baldwin <jhb@FreeBSD.org>
15828
15829 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
15830 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
15831 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
15832 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
15833 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
15834 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
15835 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
15836 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
15837 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
15838 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
15839 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
15840 (fbsd_core_fetch_timeval, fbsd_print_sigset)
15841 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
15842 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
15843 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
15844
9c4ac400
ST
158452018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
15846
15847 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
15848 (gnu_xfer_auxv): New function.
15849 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
15850 TARGET_OBJECT_AUXV.
15851
1e5ded6c
YQ
158522018-01-08 Yao Qi <yao.qi@linaro.org>
15853 Simon Marchi <simon.marchi@ericsson.com>
15854
15855 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
15856 common/selftest.c.
15857 (COMMON_OBS): Remove selftest.o.
15858 * configure.ac: Append selftest-arch.c and common/selftest.c to
15859 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
15860 * configure: Re-generated.
15861 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
15862 GDB_SELF_TEST.
15863 (maintenance_info_selftests): Likewise.
15864
04bafb1e
XR
158652018-01-08 Xavier Roirand <roirand@adacore.com>
15866
15867 * ada-valprint.c (val_print_packed_array_elements): Use
15868 proper number of elements when printing an array indexed
15869 by an enumeration type.
15870
518817b3
SM
158712018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15872
15873 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
15874 (dw2_get_file_names_reader): Adjust.
15875 (lookup_dwo_signatured_type): Adjust.
15876 (lookup_dwp_signatured_type): Adjust.
15877 (lookup_signatured_type): Adjust.
15878 (create_type_unit_group): Adjust.
15879 (get_type_unit_group): Adjust.
15880 (process_psymtab_comp_unit_reader): Adjust.
15881 (build_type_psymtabs_reader): Adjust.
15882 (scan_partial_symbols): Adjust.
15883 (add_partial_symbol): Adjust.
15884 (add_partial_subprogram): Adjust.
15885 (peek_die_abbrev): Adjust.
15886 (fixup_go_packaging): Adjust.
15887 (process_imported_unit_die): Adjust.
15888 (dwarf2_compute_name): Adjust.
15889 (dwarf2_physname): Adjust.
15890 (read_import_statement): Adjust.
15891 (handle_DW_AT_stmt_list): Adjust.
15892 (read_file_scope): Adjust.
15893 (read_func_scope): Adjust.
15894 (read_lexical_block_scope): Adjust.
15895 (read_call_site_scope): Adjust.
15896 (read_variable): Adjust.
15897 (dwarf2_rnglists_process): Adjust.
15898 (dwarf2_ranges_process): Adjust.
15899 (dwarf2_ranges_read): Adjust.
15900 (dwarf2_get_pc_bounds): Adjust.
15901 (dwarf2_record_block_ranges): Adjust.
15902 (dwarf2_add_field): Adjust.
15903 (dwarf2_add_member_fn): Adjust.
15904 (read_structure_type): Adjust.
15905 (process_structure_scope): Adjust.
15906 (read_enumeration_type): Adjust.
15907 (read_array_type): Adjust.
15908 (mark_common_block_symbol_computed): Adjust.
15909 (read_common_block): Adjust.
15910 (read_namespace_type): Adjust.
15911 (read_namespace): Adjust.
15912 (read_module_type): Adjust.
15913 (read_tag_pointer_type): Adjust.
15914 (read_tag_ptr_to_member_type): Adjust.
15915 (read_tag_string_type): Adjust.
15916 (read_subroutine_type): Adjust.
15917 (read_typedef): Adjust.
15918 (read_base_type): Adjust.
15919 (attr_to_dynamic_prop): Adjust.
15920 (read_subrange_type): Adjust.
15921 (read_unspecified_type): Adjust.
15922 (dwarf2_read_abbrevs): Adjust.
15923 (load_partial_dies): Adjust.
15924 (read_partial_die): Adjust.
15925 (find_partial_die): Adjust.
15926 (guess_partial_die_structure_name): Adjust.
15927 (fixup_partial_die): Adjust.
15928 (read_attribute_value): Adjust.
15929 (read_addr_index): Adjust.
15930 (read_addr_index_from_leb128): Adjust.
15931 (read_str_index): Adjust.
15932 (dwarf2_string_attr): Adjust.
15933 (get_debug_line_section): Adjust.
15934 (dwarf_decode_line_header): Adjust.
15935 (lnp_state_machine::check_line_address): Adjust.
15936 (dwarf_decode_lines_1): Adjust.
15937 (dwarf_decode_lines): Adjust.
15938 (dwarf2_start_symtab): Adjust.
15939 (var_decode_location): Adjust.
15940 (new_symbol_full): Adjust.
15941 (dwarf2_const_value_data): Adjust.
15942 (dwarf2_const_value_attr): Adjust.
15943 (dwarf2_const_value): Adjust.
15944 (die_type): Adjust.
15945 (die_containing_type): Adjust.
15946 (build_error_marker_type): Adjust.
15947 (lookup_die_type): Adjust.
15948 (guess_full_die_structure_name): Adjust.
15949 (anonymous_struct_prefix): Adjust.
15950 (determine_prefix): Adjust.
15951 (dwarf2_name): Adjust.
15952 (follow_die_ref_or_sig): Adjust.
15953 (follow_die_offset): Adjust.
15954 (follow_die_ref): Adjust.
15955 (follow_die_sig_1): Adjust.
15956 (follow_die_sig): Adjust.
15957 (get_signatured_type): Adjust.
15958 (get_DW_AT_signature_type): Adjust.
15959 (decode_locdesc): Adjust.
15960 (dwarf_decode_macros): Adjust.
15961 (cu_debug_loc_section): Adjust.
15962 (fill_in_loclist_baton): Adjust.
15963 (dwarf2_symbol_mark_computed): Adjust.
15964 (init_one_comp_unit): Don't assign
15965 dwarf2_cu::dwarf2_per_objfile.
15966 (set_die_type): Adjust.
15967
ed2dc618
SM
159682018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15969
15970 * dwarf2read.c (struct mapped_debug_names): Add constructor.
15971 <dwarf2_per_objfile>: New field.
15972 (dwarf2_per_objfile): Remove global.
15973 (get_dwarf2_per_objfile): New function.
15974 (set_dwarf2_per_objfile): New function.
15975 (dwarf2_build_psymtabs_hard): Change objfile parameter to
15976 dwarf2_per_objfile.
15977 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15978 (read_abbrev_offset): Likewise.
15979 (read_indirect_string): Likewise.
15980 (read_indirect_line_string): Likewise.
15981 (read_indirect_string_at_offset): Likewise.
15982 (read_indirect_string_from_dwz): Likewise.
15983 (dwarf2_find_containing_comp_unit): Change objfile parameter to
15984 dwarf2_per_objfile.
15985 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15986 (create_all_comp_units): Change objfile parameter to
15987 dwarf2_per_objfile.
15988 (create_all_type_units): Likewise.
15989 (process_queue): Add dwarf2_per_objfile parameter.
15990 (read_and_check_comp_unit_head): Likewise.
15991 (lookup_dwo_unit_in_dwp): Likewise.
15992 (get_dwp_file): Likewise.
15993 (process_cu_includes): Likewise.
15994 (struct free_dwo_file_cleanup_data): New struct.
15995 (dwarf2_has_info): Use get_dwarf2_per_objfile and
15996 set_dwarf2_per_objfile.
15997 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
15998 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
15999 context, adjust calls.
16000 (dw2_instantiate_symtab): Likewise.
16001 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
16002 (dw2_get_cu): Likewise.
16003 (create_cu_from_index_list): Change objfile parameter to
16004 dwarf2_per_objfile.
16005 (create_cus_from_index_list): Get dwarf2_per_objfile from
16006 context, adjust calls.
16007 (create_cus_from_index): Likewise.
16008 (create_signatured_type_table_from_index): Change objfile
16009 parameter to dwarf2_per_objfile.
16010 (create_signatured_type_table_from_debug_names): Change objfile
16011 parameter to dwarf2_per_objfile.
16012 (create_addrmap_from_index): Likewise.
16013 (create_addrmap_from_aranges): Likewise.
16014 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
16015 (dw2_setup): Remove.
16016 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
16017 context.
16018 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
16019 get_dwarf2_per_objfile.
16020 (dw2_forget_cached_source_info): Likewise.
16021 (dw2_map_symtabs_matching_filename): Likewise.
16022 (struct dw2_symtab_iterator) <index>: Remove.
16023 <dwarf2_per_objfile>: New field.
16024 (dw2_symtab_iter_init): Replace index parameter with
16025 dwarf2_per_objfile.
16026 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
16027 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
16028 (dw2_print_stats): Likewise.
16029 (dw2_dump): Likewise.
16030 (dw2_expand_symtabs_for_function): Likewise.
16031 (dw2_expand_all_symtabs): Likewise.
16032 (dw2_expand_symtabs_with_fullname): Likewise.
16033 (dw2_expand_marked_cus): Replace index and objfile parameters
16034 with dwarf2_per_objfile.
16035 (dw_expand_symtabs_matching_file_matcher): Add
16036 dwarf2_per_objfile parameter and adjust calls.
16037 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
16038 adjust calls.
16039 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
16040 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
16041 adjust calls.
16042 (create_cus_from_debug_names_list): Replace objfile parameter
16043 with dwarf2_per_objfile and adjust calls.
16044 (create_cus_from_debug_names): Likewise.
16045 (dwarf2_read_debug_names): Likewise.
16046 (mapped_debug_names::namei_to_name): Adjust call.
16047 (dw2_debug_names_iterator::next): Likewise.
16048 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
16049 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
16050 (dw2_debug_names_dump): Likewise.
16051 (dw2_debug_names_expand_symtabs_for_function): Likewise.
16052 (dw2_debug_names_expand_symtabs_matching): Likewise.
16053 (dwarf2_initialize_objfile): Likewise.
16054 (dwarf2_build_psymtabs): Likewise.
16055 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
16056 this_cu.
16057 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
16058 (read_and_check_comp_unit_head): Likewise.
16059 (read_abbrev_offset): Likewise.
16060 (create_debug_type_hash_table): Likewise.
16061 (create_debug_types_hash_table): Likewise.
16062 (create_all_type_units): Replace objfile parameter with
16063 dwarf2_per_objfile.
16064 (add_type_unit): Add dwarf2_per_objfile parameter.
16065 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
16066 with dwarf2_per_objfile.
16067 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
16068 (lookup_dwp_signatured_type): Likewise.
16069 (lookup_signatured_type): Likewise.
16070 (read_cutu_die_from_dwo): Likewise.
16071 (init_tu_and_read_dwo_dies): Likewise.
16072 (init_cutu_and_read_dies): Likewise.
16073 (init_cutu_and_read_dies_no_follow): Likewise.
16074 (allocate_type_unit_groups_table): Add objfile parameter.
16075 (create_type_unit_group): Use dwarf2_per_objfile from cu.
16076 (get_type_unit_group): Likewise.
16077 (process_psymtab_comp_unit): Update call.
16078 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
16079 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
16080 (print_tu_stats): Likewise.
16081 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
16082 in void* parameter.
16083 (build_type_psymtabs): Change objfile parameter to
16084 dwarf2_per_objfile.
16085 (process_skeletonless_type_unit): Use dwarf2_per_objfile
16086 passed in void* parameter.
16087 (process_skeletonless_type_units): Change objfile parameter to
16088 dwarf2_per_objfile.
16089 (set_partial_user): Likewise.
16090 (dwarf2_build_psymtabs_hard): Likewise.
16091 (read_comp_units_from_section): Likewise.
16092 (create_all_comp_units): Likewise.
16093 (scan_partial_symbols): Update calls.
16094 (add_partial_symbol): Likewise.
16095 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
16096 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
16097 (process_queue): Add dwarf2_per_objfile parameter.
16098 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
16099 (compute_compunit_symtab_includes): Likewise.
16100 (process_cu_includes): Add dwarf2_per_objfile parameter.
16101 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
16102 (process_full_type_unit): Likewise.
16103 (process_imported_unit_die): Update call.
16104 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
16105 (read_file_scope): Likewise.
16106 (allocate_dwo_file_hash_table): Add objfile parameter.
16107 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
16108 (create_cus_hash_table): Likewise.
16109 (create_dwp_hash_table): Likewise.
16110 (create_dwo_unit_in_dwp_v1): Likewise.
16111 (create_dwp_v2_section): Likewise.
16112 (create_dwo_unit_in_dwp_v2): Likewise.
16113 (lookup_dwo_unit_in_dwp): Likewise.
16114 (try_open_dwop_file): Likewise.
16115 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
16116 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
16117 cleanup to include a reference to dwarf2_per_objfile.
16118 (open_dwp_file): Add dwarf2_per_objfile parameter.
16119 (open_and_init_dwp_file): Likewise.
16120 (get_dwp_file): Likewise.
16121 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
16122 (queue_and_load_all_dwo_tus): Update call.
16123 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
16124 data.
16125 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
16126 (dwarf2_ranges_process): Likewise.
16127 (dwarf2_get_pc_bounds): Likewise.
16128 (mark_common_block_symbol_computed): Likewise.
16129 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
16130 (dwarf2_read_abbrevs): Update call.
16131 (read_partial_die): Use dwarf2_per_objfile from cu.
16132 (find_partial_die): Likewise.
16133 (fixup_partial_die): Likewise.
16134 (read_attribute_value): Likewise.
16135 (read_indirect_string_at_offset_from): Add objfile parameter.
16136 (read_indirect_string_at_offset): Add dwarf2_per_objfile
16137 parameter.
16138 (read_indirect_string_from_dwz): Add objfile parameter.
16139 (read_indirect_string): Add objfile parameter.
16140 (read_addr_index_1): Add dwarf2_per_objfile parameter.
16141 (read_addr_index): Use dwarf2_per_objfile from cu.
16142 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
16143 call dw2_setup.
16144 (read_str_index): Use dwarf2_per_objfile from cu.
16145 (get_debug_line_section): Likewise.
16146 (read_formatted_entries): Add dwarf2_per_objfile parameter.
16147 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
16148 (new_symbol_full): Use dwarf2_per_objfile from cu.
16149 (build_error_marker_type): Likewise.
16150 (lookup_die_type): Likewise.
16151 (determine_prefix): Likewise.
16152 (follow_die_offset): Likewise.
16153 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
16154 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
16155 (dwarf2_fetch_die_type_sect_off): Likewise.
16156 (dwarf2_get_die_type): Likewise.
16157 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
16158 (get_signatured_type): Likewise.
16159 (get_DW_AT_signature_type): Likewise.
16160 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
16161 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
16162 (cu_debug_loc_section): Likewise.
16163 (fill_in_loclist_baton): Likewise.
16164 (dwarf2_symbol_mark_computed): Likewise.
16165 (dwarf2_find_containing_comp_unit): Change objfile parameter to
16166 dwarf2_per_objfile.
16167 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
16168 parameter.
16169 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
16170 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
16171 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
16172 (set_die_type): Use dwarf2_free_objfile from cu.
16173 (get_die_type_at_offset): Likewise.
16174 (dwarf2_per_objfile_free): Don't assign global variable.
16175 (debug_names) <constructor>: Add dwarf2_per_objfile
16176 parameter, update m_debugstrlookup construction.
16177 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
16178 parameter.
16179 <m_dwarf2_per_objfile>: New field.
16180 <lookup>: Use m_dwarf2_per_objfile.
16181 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
16182 (psyms_seen_size): Likewise.
16183 (write_gdbindex): Replace objfile parameter with
16184 dwarf2_per_objfile.
16185 (write_debug_names): Likewise.
16186 (write_psymtabs_to_index): Likewise.
16187 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
16188 calls.
16189
e3b94546
SM
161902018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16191
16192 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
16193 <dwarf2_per_objfile>: New field.
16194 (struct dwarf2_per_cu_data) <objfile>: Remove.
16195 <dwarf2_per_objfile>: New field.
16196 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
16197 of objfile.
16198 (create_signatured_type_table_from_index): Likewise.
16199 (create_debug_type_hash_table): Likewise.
16200 (fill_in_sig_entry_from_dwo_entry): Likewise.
16201 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
16202 (create_type_unit_group): Assign dwarf2_per_objfile instead of
16203 objfile.
16204 (create_partial_symtab): Access objfile through
16205 dwarf2_per_objfile.
16206 (process_psymtab_comp_unit_reader): Likewise.
16207 (read_comp_units_from_section): Likewise.
16208 (scan_partial_symbols): Likewise.
16209 (add_partial_symbol): Likewise.
16210 (add_partial_subprogram): Likewise.
16211 (peek_die_abbrev): Likewise.
16212 (fixup_go_packaging): Likewise.
16213 (process_full_comp_unit): Likewise.
16214 (process_full_type_unit): Likewise.
16215 (process_imported_unit_die): Likewise.
16216 (dwarf2_compute_name): Likewise.
16217 (dwarf2_physname): Likewise.
16218 (read_import_statement): Likewise.
16219 (create_cus_hash_table): Assign dwarf2_physname instead of
16220 objfile.
16221 (read_func_scope): Access objfile through dwarf2_per_objfile.
16222 (read_lexical_block_scope): Likewise.
16223 (read_call_site_scope): Likewise.
16224 (read_variable): Likewise.
16225 (dwarf2_rnglists_process): Likewise.
16226 (dwarf2_ranges_process): Likewise.
16227 (dwarf2_ranges_read): Likewise.
16228 (dwarf2_record_block_ranges): Likewise.
16229 (dwarf2_add_field): Likewise.
16230 (dwarf2_add_member_fn): Likewise.
16231 (read_structure_type): Likewise.
16232 (process_structure_scope): Likewise.
16233 (read_enumeration_type): Likewise.
16234 (read_array_type): Likewise.
16235 (read_common_block): Likewise.
16236 (read_namespace_type): Likewise.
16237 (read_namespace): Likewise.
16238 (read_module_type): Likewise.
16239 (read_tag_pointer_type): Likewise.
16240 (read_tag_ptr_to_member_type): Likewise.
16241 (read_tag_string_type): Likewise.
16242 (read_subroutine_type): Likewise.
16243 (read_typedef): Likewise.
16244 (read_base_type): Likewise.
16245 (attr_to_dynamic_prop): Likewise.
16246 (read_subrange_type): Likewise.
16247 (read_unspecified_type): Likewise.
16248 (load_partial_dies): Likewise.
16249 (read_partial_die): Likewise.
16250 (find_partial_die): Likewise.
16251 (guess_partial_die_structure_name): Likewise.
16252 (fixup_partial_die): Likewise.
16253 (read_attribute_value): Likewise.
16254 (read_addr_index_from_leb128): Likewise.
16255 (dwarf2_read_addr_index): Likewise.
16256 (dwarf2_string_attr): Likewise.
16257 (lnp_state_machine::check_line_address): Likewise.
16258 (dwarf_decode_lines_1): Likewise.
16259 (dwarf_decode_lines): Likewise.
16260 (dwarf2_start_symtab): Likewise.
16261 (var_decode_location): Likewise.
16262 (new_symbol_full): Likewise.
16263 (dwarf2_const_value_data): Likewise.
16264 (dwarf2_const_value_attr): Likewise.
16265 (dwarf2_const_value): Likewise.
16266 (die_type): Likewise.
16267 (die_containing_type): Likewise.
16268 (lookup_die_type): Likewise.
16269 (guess_full_die_structure_name): Likewise.
16270 (anonymous_struct_prefix): Likewise.
16271 (dwarf2_name): Likewise.
16272 (follow_die_ref_or_sig): Likewise.
16273 (follow_die_offset): Likewise.
16274 (follow_die_ref): Likewise.
16275 (dwarf2_fetch_die_loc_sect_off): Likewise.
16276 (dwarf2_fetch_constant_bytes): Likewise.
16277 (dwarf2_fetch_die_type_sect_off): Likewise.
16278 (dwarf2_get_die_type): Likewise.
16279 (follow_die_sig): Likewise.
16280 (decode_locdesc): Likewise.
16281 (dwarf2_per_cu_objfile): Likewise.
16282 (dwarf2_per_cu_text_offset): Likewise.
16283 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
16284 objfile.
16285 (set_die_type): Access objfile through
16286 dwarf2_per_objfile.
16287
b01ba14d
SM
162882018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16289
16290 * valprint.c (converted_character_d): Remove typedef.
16291 (DEF_VEC_O (converted_character_d)): Remove.
16292 (count_next_character): Use std::vector.
16293 (print_converted_chars_to_obstack): Likewise.
16294 (generic_printstr): Likewise.
16295
4d0fdd9b
SM
162962018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16297
16298 * xml-support.h (struct gdb_xml_value): Add constructor.
16299 <value>: Change type to unique_xmalloc_ptr.
16300 (gdb_xml_value_s): Remove typedef.
16301 (DEF_VEC_O (gdb_xml_value_s)): Remove.
16302 (gdb_xml_element_start_handler): Change parameter type to
16303 std::vector.
16304 (xml_find_attribute): Likewise.
16305 * xml-support.c (xml_find_attribute): Change parameter type to
16306 std::vector and adjust.
16307 (gdb_xml_values_cleanup): Remove.
16308 (gdb_xml_parser::start_element): Adjust to std::vector.
16309 (xinclude_start_include): Change paraeter type to std::vector
16310 and adjust.
16311 * btrace.c (check_xml_btrace_version): Likewise.
16312 (parse_xml_btrace_block): Likewise.
16313 (parse_xml_btrace_pt_config_cpu): Likewise.
16314 (parse_xml_btrace_pt): Likewise.
16315 (parse_xml_btrace_conf_bts): Likewise.
16316 (parse_xml_btrace_conf_pt): Likewise.
16317 * memory-map.c (memory_map_start_memory): Likewise.
16318 (memory_map_start_property): Likewise.
16319 * osdata.c (osdata_start_osdata): Likewise.
16320 (osdata_start_item): Likewise.
16321 (osdata_start_column): Likewise.
16322 * remote.c (start_thread): Likewise.
16323 * solib-aix.c (library_list_start_library): Likewise.
16324 (library_list_start_list): Likewise.
16325 * solib-svr4.c (library_list_start_library): Likewise.
16326 (svr4_library_list_start_list): Likewise.
16327 * solib-target.c (library_list_start_segment): Likewise.
16328 (library_list_start_section): Likewise.
16329 (library_list_start_library): Likewise.
16330 (library_list_start_list): Likewise.
16331 * tracepoint.c (traceframe_info_start_memory): Likewise.
16332 (traceframe_info_start_tvar): Likewise.
16333 * xml-syscall.c (syscall_start_syscall): Likewise.
16334 * xml-tdesc.c (tdesc_start_target): Likewise.
16335 (tdesc_start_feature): Likewise.
16336 (tdesc_start_reg): Likewise.
16337 (tdesc_start_union): Likewise.
16338 (tdesc_start_struct): Likewise.
16339 (tdesc_start_flags): Likewise.
16340 (tdesc_start_enum): Likewise.
16341 (tdesc_start_field): Likewise.
16342 (tdesc_start_enum_value): Likewise.
16343 (tdesc_start_vector): Likewise.
16344
f979c73f
SM
163452018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16346
16347 * extension.h (struct xmethod_worker) <clone>: Remove.
16348 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
16349 Remove.
16350 (python_xmethod_worker::clone): Remove.
16351 * valops.c (find_overload_match): Use std::move instead of
16352 clone.
16353
ba18742c
SM
163542018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16355
16356 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
16357 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
16358 <free_xmethod_worker_data>: Remove.
16359 <get_matching_xmethod_workers>: Chance VEC to std::vector.
16360 <get_xmethod_arg_types>: Remove.
16361 <get_xmethod_result_type>: Remove.
16362 <invoke_xmethod>: Remove.
16363 * extension.c (new_xmethod_worker): Remove.
16364 (clone_xmethod_worker): Remove.
16365 (get_matching_xmethod_workers): Return void, pass std::vector by
16366 pointer.
16367 (get_xmethod_arg_types): Rename to...
16368 (xmethod_worker::get_arg_types): ... this, and adjust.
16369 (get_xmethod_result_type): Rename to...
16370 (xmethod_worker::get_result_type): ... this, and adjust.
16371 (invoke_xmethod): Remove.
16372 (free_xmethod_worker): Remove.
16373 (free_xmethod_worker_vec): Remove.
16374 * extension.h (enum ext_lang_rc): Move here from
16375 extension-priv.h.
16376 (struct xmethod_worker): Add constructor and destructor.
16377 <data>: Remove.
16378 <value>: Remove.
16379 <invoke, clone, do_get_result_type, do_get_arg_types>: New
16380 virtual pure methods.
16381 <get_arg_types, get_result_type>: New methods.
16382 (xmethod_worker_ptr): Remove typedef.
16383 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
16384 (xmethod_worker_vec): Remove typedef.
16385 (xmethod_worker_up): New typedef.
16386 (invoke_xmethod): Remove.
16387 (clone_xmethod_worker): Remove.
16388 (free_xmethod_worker): Remove.
16389 (free_xmethod_worker_vec): Remove.
16390 (get_xmethod_arg_types): Remove.
16391 (get_xmethod_result_type): Remove.
16392 * valops.c (find_method_list): Use std::vector, don't use
16393 intermediate vector.
16394 (value_find_oload_method_list): Use std::vector.
16395 (find_overload_match): Use std::vector.
16396 (find_oload_champ): Use std::vector.
16397 * value.c (value_free): Use operator delete.
16398 (value_of_xmethod): Rename to...
16399 (value_from_xmethod): ... this. Don't assign
16400 xmethod_worker::value, take rvalue-reference.
16401 (result_type_of_xmethod): Adjust.
16402 (call_xmethod): Adjust.
16403 * value.h: Include extension.h.
16404 (struct xmethod_worker): Don't forward-declare.
16405 (value_of_xmethod): Rename to...
16406 (value_from_xmethod): ... this, take rvalue-reference.
16407 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
16408 (struct python_xmethod_worker): ... this, add constructor and
16409 destructor.
16410 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
16411 (gdbpy_free_xmethod_worker_data): Rename to...
16412 (python_xmethod_worker::~python_xmethod_worker): ... this and
16413 adjust.
16414 (gdbpy_clone_xmethod_worker_data): Rename to...
16415 (python_xmethod_worker::clone): ... this and adjust.
16416 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
16417 temporary vector.
16418 (gdbpy_get_xmethod_arg_types): Rename to...
16419 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
16420 (gdbpy_get_xmethod_result_type): Rename to...
16421 (python_xmethod_worker::do_get_result_type): ... this and
16422 adjust.
16423 (gdbpy_invoke_xmethod): Rename to...
16424 (python_xmethod_worker::invoke): ... this and adjust.
16425 (new_python_xmethod_worker): Rename to...
16426 (python_xmethod_worker::python_xmethod_worker): ... this and
16427 adjust.
16428 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
16429 Remove.
16430 (gdbpy_free_xmethod_worker_data): Remove.
16431 (gdbpy_get_matching_xmethod_workers): Use std::vector.
16432 (gdbpy_get_xmethod_arg_types): Remove.
16433 (gdbpy_get_xmethod_result_type): Remove.
16434 (gdbpy_invoke_xmethod): Remove.
16435 * python/python.c (python_extension_ops): Remove obsolete
16436 callbacks.
16437
e379cee6
PA
164382018-01-05 Pedro Alves <palves@redhat.com>
16439
16440 PR gdb/18653
16441 * common/signals-state-save-restore.c
16442 (save_original_signals_state): New parameter 'quiet'. Warn if we
16443 find a custom handler preinstalled, instead of internal erroring.
16444 But only warn if !quiet.
16445 * common/signals-state-save-restore.h
16446 (save_original_signals_state): New parameter 'quiet'.
16447 * main.c (captured_main_1): Move save_original_signals_state call
16448 after option handling, and pass QUIET.
16449
a655456c
PA
164502018-01-05 Pedro Alves <palves@redhat.com>
16451
16452 * spu-tdep.c (spu_catch_start): Pass
16453 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
16454
de63c46b
PA
164552018-01-05 Pedro Alves <palves@redhat.com>
16456
16457 PR gdb/22670
16458 * ada-lang.c (literal_symbol_name_matcher): New function.
16459 (ada_get_symbol_name_matcher): Use it for
16460 symbol_name_match_type::SEARCH_NAME.
16461 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
16462 it down instead of assuming symbol_name_match_type::FULL.
16463 * block.h (block_lookup_symbol): New parameter 'match_type'.
16464 * c-valprint.c (print_unpacked_pointer): Use
16465 lookup_symbol_search_name instead of lookup_symbol.
16466 * compile/compile-object-load.c (get_out_value_type): Pass down
16467 symbol_name_match_type::SEARCH_NAME.
16468 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
16469 symbol_name_match_type::FULL.
16470 * cp-support.c (cp_get_symbol_name_matcher): Handle
16471 symbol_name_match_type::SEARCH_NAME.
16472 * infrun.c (insert_exception_resume_breakpoint): Use
16473 lookup_symbol_search_name.
16474 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
16475 * psymtab.c (maintenance_check_psymtabs): Use
16476 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
16477 * stack.c (print_frame_args): Use lookup_symbol_search_name and
16478 SYMBOL_SEARCH_NAME.
16479 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
16480 if symbol_name_match_type::SEARCH_NAME.
16481 (lookup_symbol_in_language): Pass down
16482 symbol_name_match_type::FULL.
16483 (lookup_symbol_search_name): New.
16484 (lookup_language_this): Pass down
16485 symbol_name_match_type::SEARCH_NAME.
16486 (lookup_symbol_aux, lookup_local_symbol): New parameter
16487 'match_type'. Pass it down.
16488 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
16489 (lookup_symbol_search_name): New declaration.
16490 (lookup_symbol_in_block): New 'match_type' parameter.
16491
f98fc17b
PA
164922018-01-05 Pedro Alves <palves@redhat.com>
16493
16494 PR gdb/22670
16495 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
16496 ada_lookup_symbol.
16497 (ada_lookup_symbol): Reimplement in terms of
16498 ada_lookup_symbol_list, bits factored out from
16499 ada_lookup_encoded_symbol.
16500
342f8240
JB
165012018-01-05 Joel Brobecker <brobecker@adacore.com>
16502
16503 * ada-exp.y (write_object_renaming): When subscripting an array
16504 using a symbol as the index, pass the block in call to
16505 ada_lookup_encoded_symbol when looking that symbol up.
16506
7150d33c
JG
165072018-01-05 Jerome Guitton <guitton@adacore.com>
16508
16509 * ada-lang.c (ada_array_length): Use ada_index_type instead of
16510 TYPE_INDEX_TYPE.
16511
cc0e770c
JB
165122018-01-05 Joel Brobecker <brobecker@adacore.com>
16513
16514 * ada-lang.c (ada_to_fixed_value_create): Add handling of
16515 the case where VALUE_LVAL (val0) is not lval_memory.
16516
f79da888 165172018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
16518
16519 * ada-valprint.c (print_optional_low_bound): Handle
16520 character-indexed array printing like boolean-indexed array
16521 printing.
16522
cd385f94
JB
165232018-01-05 Joel Brobecker <brobecker@adacore.com>
16524
16525 * NEWS: Create a new section for the next release branch.
16526 Rename the section of the current branch, now that it has
16527 been cut.
16528
09aca949
JB
165292018-01-05 Joel Brobecker <brobecker@adacore.com>
16530
16531 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
16532 * version.in: Bump version to 8.1.50.DATE-git.
16533
9f757bf7
XR
165342018-01-03 Xavier Roirand <roirand@adacore.com>
16535
16536 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
16537 Add field.
16538 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
16539 Add field.
16540 (default_exception_support_info) <catch_handlers_sym>: Add field.
16541 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
16542 (ada_exception_name_addr_1): Add "catch handlers" handling.
16543 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
16544 Update all callers.
16545 (create_excep_cond_exprs) <ex>: Add parameter.
16546 (re_set_exception): Update create_excep_cond_exprs call.
16547 (print_it_exception, print_one_exception, print_mention_exception)
16548 (print_recreate_exception): Add "catch handler" handling.
16549 (allocate_location_catch_handlers, re_set_catch_handlers)
16550 (check_status_catch_handlers, print_it_catch_handlers)
16551 (print_one_catch_handlers, print_mention_catch_handlers)
16552 (print_recreate_catch_handlers): New function.
16553 (catch_handlers_breakpoint_ops): New variable.
16554 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
16555 Add parameter. Add "catch handler" handling.
16556 (ada_exception_sym_name, ada_exception_breakpoint_ops):
16557 Add "catch handler" handling.
16558 (ada_exception_catchpoint_cond_string): Add "catch handler"
16559 handling.
16560 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
16561 call.
16562 (catch_ada_handlers_command): New function.
16563 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
16564 operations structure.
16565 (_initialize_ada_language): Add "catch handlers" command entry.
16566 * NEWS: Document "catch handlers" feature.
16567
9fe561ab
JB
165682018-01-02 Joel Brobecker <brobecker@adacore.com>
16569
16570 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
16571 account when creating the array type of the slice.
16572 (ada_value_slice): Likewise.
16573
a405673c
JB
165742018-01-02 Joel Brobecker <brobecker@adacore.com>
16575
16576 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
16577 New enum value.
16578 (create_array_type_with_stride): Add byte_stride_prop parameter.
16579 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
16580 New parameter. Update all callers in this file.
16581 (array_type_has_dynamic_stride): New function.
16582 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
16583 of arrays with dynamic byte strides.
16584 * dwarf2read.c (read_array_type): Add support for dynamic
16585 DW_AT_byte_stride attributes.
16586
74a2f8ff
JB
165872018-01-02 Joel Brobecker <brobecker@adacore.com>
16588
16589 * dwarf2read.c (read_unspecified_type): Treat
16590 DW_TAG_enumeration_type DIEs from Ada units as stubs.
16591
e2882c85
JB
165922018-01-01 Joel Brobecker <brobecker@adacore.com>
16593
16594 Update copyright year range in all GDB files.
16595
5e70ee09 165962018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
1690bb24
JB
16597
16598 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
16599 and gdb/testsuite/gdb.base/step-line.c.
16600
0f0c98a8
JB
166012018-01-01 Joel Brobecker <brobecker@adacore.com>
16602
16603 * copyright.py (main): Dump the contents of
16604 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
16605 even if BY_HAND is empty.
16606
82e1e79a
JB
166072018-01-01 Joel Brobecker <brobecker@adacore.com>
16608
16609 * top.c (print_gdb_version): Update Copyright year in version
16610 message.
16611
053f54e5 166122018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 16613
053f54e5 16614 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 16615
053f54e5 16616For older changes see ChangeLog-2017.
c906108c
SS
16617\f
16618Local Variables:
16619mode: change-log
16620left-margin: 8
16621fill-column: 74
16622version-control: never
57da7796 16623coding: utf-8
c906108c 16624End:
This page took 4.608362 seconds and 4 git commands to generate.